hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
b2e64a45f992fd26745a0cf51fe735d8bc52597c
1,966
ex
Elixir
lib/advent.ex
adamu/clova-advent-calendar
7456ada9e320a9a4dd66c29509d513fe85a85ff9
[ "Apache-2.0" ]
1
2019-02-12T02:23:52.000Z
2019-02-12T02:23:52.000Z
lib/advent.ex
adamu/clova-advent-calendar
7456ada9e320a9a4dd66c29509d513fe85a85ff9
[ "Apache-2.0" ]
null
null
null
lib/advent.ex
adamu/clova-advent-calendar
7456ada9e320a9a4dd66c29509d513fe85a85ff9
[ "Apache-2.0" ]
null
null
null
defmodule Advent do use Clova def handle_launch(_req, resp) do resp |> add_speech("今日は#{say_date(today())}です") |> add_speech(days_to_christmas() |> say_days_to_christmas()) |> add_speech(prompt_for_another()) end def handle_intent("different_day", req, resp) do with potential_date when not...
33.322034
86
0.670905
b2e66144096a880824a5c10890133c8f57fbe7bc
343
exs
Elixir
apps/ins/priv/repo/seeds.exs
ODYLIGHT/ins_umbrella
40534551b18030b4621f882f33b0416ab60ba02a
[ "MIT" ]
null
null
null
apps/ins/priv/repo/seeds.exs
ODYLIGHT/ins_umbrella
40534551b18030b4621f882f33b0416ab60ba02a
[ "MIT" ]
null
null
null
apps/ins/priv/repo/seeds.exs
ODYLIGHT/ins_umbrella
40534551b18030b4621f882f33b0416ab60ba02a
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Ins.Repo.insert!(%Ins.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail if...
28.583333
61
0.699708
b2e6711033bad4176a3e5345db398f5d87be7fb2
1,536
ex
Elixir
lib/litelist_web/views/utils_view.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T15:46:49.000Z
2021-01-13T15:46:49.000Z
lib/litelist_web/views/utils_view.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T16:42:24.000Z
2021-01-13T16:42:24.000Z
lib/litelist_web/views/utils_view.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
null
null
null
defmodule LitelistWeb.UtilsView do @moduledoc """ Utility functions for views """ @doc """ Given a resource, this function creates a path that can be used for show, edit or delete. ## Examples iex> path_builder(for_sale) "/sales/:id" """ def path_builder(resource) do ca...
26.947368
93
0.539714
b2e67f58d89ca445a8c94f984da594ab75233ac6
2,068
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/software_config.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/software_config.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/software_config.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
43.083333
518
0.76354
b2e690fa26bc99a5945a5e394a1ee07ce6b8bdfd
8,591
ex
Elixir
apps/artemis/lib/artemis/cache/cache_instance.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis/lib/artemis/cache/cache_instance.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
3
2019-03-05T23:55:09.000Z
2019-05-29T13:46:34.000Z
apps/artemis/lib/artemis/cache/cache_instance.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule Artemis.CacheInstance do use GenServer, restart: :transient import Cachex.Spec require Logger alias Artemis.CacheEvent defmodule CacheEntry do defstruct [:data, :inserted_at, :key] end @moduledoc """ A thin wrapper around a Cachex instance. Encapsulates all the application specific ...
28.828859
140
0.713421
b2e6b0d50d876ef0ccad6f170f016db3d5535d3d
1,755
ex
Elixir
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.340426
313
0.753276
b2e6c311195beb7884709e4c24080e7922ffbe19
587
exs
Elixir
priv/repo/migrations/20220207124821_create_customers.exs
jakon89/siwapp
b5f8fd43458deae72c76e434ed0c63b620cb97a4
[ "MIT" ]
4
2015-02-12T09:23:47.000Z
2022-03-09T18:11:06.000Z
priv/repo/migrations/20220207124821_create_customers.exs
jakon89/siwapp
b5f8fd43458deae72c76e434ed0c63b620cb97a4
[ "MIT" ]
254
2021-12-09T14:40:41.000Z
2022-03-31T08:09:37.000Z
priv/repo/migrations/20220207124821_create_customers.exs
jakon89/siwapp
b5f8fd43458deae72c76e434ed0c63b620cb97a4
[ "MIT" ]
1
2022-03-07T10:25:49.000Z
2022-03-07T10:25:49.000Z
defmodule Siwapp.Repo.Migrations.CreateCustomers do use Ecto.Migration def change do create table(:customers) do add :name, :string, size: 100 add :identification, :string, size: 50 add :hash_id, :string, size: 100 add :email, :string, size: 100 add :contact_person, :string, size:...
26.681818
61
0.660988
b2e6e162f3625e3648e4616ff9747303dd377121
6,134
exs
Elixir
lib/elixir/test/elixir/system_test.exs
rcoppolo/elixir
c4092e071f8b42f5a9ad213dd8b3632918097213
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/system_test.exs
rcoppolo/elixir
c4092e071f8b42f5a9ad213dd8b3632918097213
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/system_test.exs
rcoppolo/elixir
c4092e071f8b42f5a9ad213dd8b3632918097213
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule SystemTest do use ExUnit.Case import PathHelpers test "build_info/0" do build_info = System.build_info assert is_map build_info assert is_binary build_info[:build] assert is_binary build_info[:date] assert is_binary build_info[:revision]...
30.216749
113
0.642974
b2e753082d8bafe051d7e5949b9acb77f7b96ee8
1,156
ex
Elixir
web/channels/user_socket.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
web/channels/user_socket.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
web/channels/user_socket.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.UserSocket do use Phoenix.Socket ## Channels # channel "rooms:*", Cog.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and authenticate a...
30.421053
83
0.698097
b2e7536dcd5e14ab0e33e5cd9c2712d9924f0c9d
880
ex
Elixir
apps/rig_api/lib/rig_api/endpoint.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_api/lib/rig_api/endpoint.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_api/lib/rig_api/endpoint.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
defmodule RigApi.Endpoint do use Phoenix.Endpoint, otp_app: :rig_api # Code reloading can be explicitly enabled under the # :code_reloader configuration of your endpoint. if code_reloading? do plug Phoenix.CodeReloader end plug Plug.RequestId plug Plug.Logger plug Plug.Parsers, parsers: [:url...
24.444444
70
0.718182
b2e77b99d6153dc82d0be6c7a6124a467d00aeb6
10,970
exs
Elixir
test/absinthe/phase/document/complexity_test.exs
zoldar/absinthe
72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c
[ "MIT" ]
2
2021-04-22T23:45:04.000Z
2021-05-07T01:01:15.000Z
test/absinthe/phase/document/complexity_test.exs
zoldar/absinthe
72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c
[ "MIT" ]
1
2020-04-07T23:46:38.000Z
2020-04-07T23:46:38.000Z
test/absinthe/phase/document/complexity_test.exs
zoldar/absinthe
72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c
[ "MIT" ]
null
null
null
defmodule Absinthe.Phase.Document.ComplexityTest do use Absinthe.PhaseCase, phase: Absinthe.Phase.Document.Complexity.Result, schema: __MODULE__.Schema, async: true defmodule Schema do use Absinthe.Schema query do field :union_complexity, list_of(:search_result) do resolve fn _, ...
26.244019
98
0.53309
b2e77f69e5d01d517884ba7888c95c160e810646
1,582
exs
Elixir
mix.exs
crosscloudci/ex_ci_proxy
906b8d2f51f4324893f205ab647edaf34c271170
[ "Apache-2.0" ]
null
null
null
mix.exs
crosscloudci/ex_ci_proxy
906b8d2f51f4324893f205ab647edaf34c271170
[ "Apache-2.0" ]
2
2019-12-18T18:08:10.000Z
2020-11-30T23:01:37.000Z
mix.exs
crosscloudci/ex_ci_proxy
906b8d2f51f4324893f205ab647edaf34c271170
[ "Apache-2.0" ]
null
null
null
defmodule ExCiProxy.Mixfile do use Mix.Project def project do [app: :ex_ci_proxy, version: "0.0.1", elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, ...
28.763636
90
0.541719
b2e7ae7b785287fc7493dfbbc0f5925bf5cc0c78
414
exs
Elixir
test/ex338_web/mailer_test.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
test/ex338_web/mailer_test.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
test/ex338_web/mailer_test.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338Web.MailerTest do use Ex338.DataCase, async: true import ExUnit.CaptureLog require Logger alias Ex338Web.Mailer describe "handle_delivery/1" do test "logs an error email" do delivery = {:error, {:error, "reason"}} expected_msg = "reason" assert capture_log(fn -> ...
20.7
47
0.652174
b2e7b93ae4ea4ce2003d67a83390665ba0425576
1,648
ex
Elixir
dummy/lib/dummy/posts/posts.ex
zgohr/turbo_ecto
2467be3f0923193349c08d18061efbc952523b21
[ "MIT" ]
4
2019-01-23T14:10:31.000Z
2019-05-14T15:41:11.000Z
dummy/lib/dummy/posts/posts.ex
zgohr/turbo_ecto
2467be3f0923193349c08d18061efbc952523b21
[ "MIT" ]
35
2019-02-19T02:11:33.000Z
2021-09-01T07:09:42.000Z
dummy/lib/dummy/posts/posts.ex
zgohr/turbo_ecto
2467be3f0923193349c08d18061efbc952523b21
[ "MIT" ]
4
2019-11-03T16:11:39.000Z
2022-03-05T14:34:23.000Z
defmodule Dummy.Posts do @moduledoc """ The Posts context. """ import Ecto.Query, warn: false alias Dummy.Repo alias Dummy.Posts.Post @doc """ Returns the list of posts. ## Examples iex> list_posts() [%Post{}, ...] """ def list_posts do Repo.all(Post) end @doc """ Gets...
15.695238
59
0.561893
b2e7ee283376194c66a6eec519ff45890a6b6716
842
exs
Elixir
test/features/send_action_item_to_users_via_email_test.exs
pwjablonski/remote_retro
1b6acf359b362ae2ec187cfbd1a38dc8266aa546
[ "MIT" ]
null
null
null
test/features/send_action_item_to_users_via_email_test.exs
pwjablonski/remote_retro
1b6acf359b362ae2ec187cfbd1a38dc8266aa546
[ "MIT" ]
null
null
null
test/features/send_action_item_to_users_via_email_test.exs
pwjablonski/remote_retro
1b6acf359b362ae2ec187cfbd1a38dc8266aa546
[ "MIT" ]
null
null
null
defmodule SendActionItemToUsersViaEmailTest do alias RemoteRetro.{Emails, Idea} use RemoteRetro.IntegrationCase, async: false use Bamboo.Test, shared: true import ShorterMaps describe "when an action-item already exists in a retro" do setup [:persist_idea_for_retro] @tag [ idea: %Idea{categor...
30.071429
90
0.707838
b2e8111e4b26e86fc4e4c9389c927d0cebb59615
2,113
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_product_search_results_result.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_product_search_results_result.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_product_search_results_result.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.216667
128
0.731188
b2e861ef3a4e5d5e3f769aa1229393fdeb0067f4
486
ex
Elixir
lib/challenge_gov/contact_forms/contact_form.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
lib/challenge_gov/contact_forms/contact_form.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
lib/challenge_gov/contact_forms/contact_form.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule ChallengeGov.ContactForms.ContactForm do @moduledoc """ ContactForm schema """ use Ecto.Schema import Ecto.Changeset @type t :: %__MODULE__{} schema "" do field :email, :string, virtual: true field :body, :binary, virtual: true end def changeset(struct, params) do struct |...
17.357143
50
0.590535
b2e87e5f5e64219516fe6df197652269798471dd
670
exs
Elixir
test/phoenix/pubsub/pubsub_test.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
test/phoenix/pubsub/pubsub_test.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
test/phoenix/pubsub/pubsub_test.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
defmodule Phoenix.PubSub.PubSubTest do use ExUnit.Case, async: true alias Phoenix.PubSub def broadcast(error, _, _, _) do {:error, error} end test "broadcast!/3 and broadcast_from!/4 raises if broadcast fails" do :ets.new(FailedBroadcaster, [:named_table]) :ets.insert(FailedBroadcaster, {:broad...
26.8
72
0.69403
b2e87e7f4f875a422100482992f17fea9d7d1f89
876
ex
Elixir
clients/games/lib/google_api/games/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.444444
74
0.756849
b2e8938cf3710554fd0607872a8f874acd9264f0
1,804
ex
Elixir
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/lib/$PROJECT_NAME$_api/middleware/handle_errors.ex
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
54
2018-01-24T00:22:57.000Z
2019-01-15T20:03:52.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/lib/$PROJECT_NAME$_api/middleware/handle_errors.ex
infinitered/mithril
0bbad29f86c63d9a827dcaaf6fed78a176ab90d7
[ "MIT" ]
3
2018-02-05T18:00:39.000Z
2018-05-04T00:05:20.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/lib/$PROJECT_NAME$_api/middleware/handle_errors.ex
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
3
2018-02-15T19:08:23.000Z
2018-09-28T13:49:27.000Z
defmodule <%= @project_name_camel_case %>API.Middleware.HandleErrors do @moduledoc """ `Absinthe.Middleware` which handles error tuples from resolver functions. This allows resolver functions to be much simpler, because they do not have to handle their own errors. This is very similar to `action_fallback` in...
25.771429
88
0.618071
b2e8a76b9ad727fc3604804663ab1079f8cb9521
776
ex
Elixir
lib/jikan_ex/exception.ex
seanbreckenridge/jikan_ex
5ad8987129f213dc43c5250984c39664921eaeef
[ "MIT" ]
6
2020-03-03T02:57:01.000Z
2020-08-20T14:35:56.000Z
lib/jikan_ex/exception.ex
seanbreckenridge/jikan_ex
5ad8987129f213dc43c5250984c39664921eaeef
[ "MIT" ]
3
2020-03-02T07:47:15.000Z
2020-05-22T06:49:46.000Z
lib/jikan_ex/exception.ex
seanbreckenridge/jikan_ex
5ad8987129f213dc43c5250984c39664921eaeef
[ "MIT" ]
1
2020-10-10T14:36:42.000Z
2020-10-10T14:36:42.000Z
defmodule JikanEx.Exception do @moduledoc """ Defines the API Error class. It has two fields, a `message` and `response`. `message` is the error message from the Jikan response, and the response is the Response map from `JikanEx.Request` """ defexception [:message, :response] @default_error "An Unexpected er...
29.846154
193
0.67268
b2e8c3ae7754c5e6ce4a60f6d184963fda1e719a
38,916
ex
Elixir
clients/composer/lib/google_api/composer/v1/api/projects.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1/api/projects.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1/api/projects.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
51.818908
5,337
0.634623
b2e927d4f96fce6574319c957cebfec1f9e11de0
515
ex
Elixir
lib/backdoor/application.ex
mwhitworth/backdoor
4e8708d0a4e28b50a848af3239a8b8f6383f486a
[ "MIT" ]
3
2020-09-28T07:06:11.000Z
2021-12-17T19:01:55.000Z
lib/backdoor/application.ex
mwhitworth/backdoor
4e8708d0a4e28b50a848af3239a8b8f6383f486a
[ "MIT" ]
null
null
null
lib/backdoor/application.ex
mwhitworth/backdoor
4e8708d0a4e28b50a848af3239a8b8f6383f486a
[ "MIT" ]
2
2020-09-28T07:50:53.000Z
2021-12-19T14:11:02.000Z
defmodule Backdoor.Application do @moduledoc false use Application def start(_, _) do children = [ {Backdoor.Session.Counter, name: Backdoor.Session.Counter}, {DynamicSupervisor, name: Backdoor.Session.DynamicSupervisor, strategy: :one_for_one}, {Registry, keys: :unique, name: Backdoor.Sess...
24.52381
92
0.693204
b2e9395419ec19d6f726eceb65855e05112cf20d
683
exs
Elixir
test/json_schema_test_suite/draft7/exclusive_minimum_test.exs
hrzndhrn/json_xema
955eab7b0919d144b38364164d90275201c89474
[ "MIT" ]
54
2019-03-10T19:51:07.000Z
2021-12-23T07:31:09.000Z
test/json_schema_test_suite/draft7/exclusive_minimum_test.exs
hrzndhrn/json_xema
955eab7b0919d144b38364164d90275201c89474
[ "MIT" ]
36
2018-05-20T09:13:20.000Z
2021-03-14T15:22:03.000Z
test/json_schema_test_suite/draft7/exclusive_minimum_test.exs
hrzndhrn/json_xema
955eab7b0919d144b38364164d90275201c89474
[ "MIT" ]
3
2019-04-12T09:08:51.000Z
2019-12-04T01:23:56.000Z
defmodule JsonSchemaTestSuite.Draft7.ExclusiveMinimumTest do use ExUnit.Case import JsonXema, only: [valid?: 2] describe ~s|exclusiveMinimum validation| do setup do %{schema: JsonXema.new(%{"exclusiveMinimum" => 1.1})} end test ~s|above the exclusiveMinimum is valid|, %{schema: schema} do ...
24.392857
72
0.654466
b2e94574b146596de08dd452ce7b93440cc0bf4c
792
ex
Elixir
lib/battlenet/cache.ex
bryansray/battlenet
bb51f3737dec431f9e630ca1f55af15a098b1b5f
[ "MIT" ]
null
null
null
lib/battlenet/cache.ex
bryansray/battlenet
bb51f3737dec431f9e630ca1f55af15a098b1b5f
[ "MIT" ]
null
null
null
lib/battlenet/cache.ex
bryansray/battlenet
bb51f3737dec431f9e630ca1f55af15a098b1b5f
[ "MIT" ]
null
null
null
# Battlenet.Character.get("Greymane", "Virtualize") # Battlenet.Guild.get("Greymane", "Solution") defmodule Battlenet.Cache.URL do def get!(url) do url |> get_cache_file_for_url |> File.read |> handle_file_read(url) end defp handle_file_read({ :ok, content }, _), do: :erlang.binary_to_term(conte...
24
81
0.688131
b2e9615c2ca650012b49a8906179396411d4f25f
233
exs
Elixir
test/smlr/compressors/deflate_test.exs
data-twister/smlr
6c5bbb5d45feb1426c643fef3d714dcee039ad00
[ "MIT" ]
5
2020-03-03T08:33:50.000Z
2021-02-22T01:19:01.000Z
test/smlr/compressors/deflate_test.exs
mogorman/smlr
280b827be8df92969781269e59986d6d66a9f3e1
[ "MIT" ]
null
null
null
test/smlr/compressors/deflate_test.exs
mogorman/smlr
280b827be8df92969781269e59986d6d66a9f3e1
[ "MIT" ]
1
2021-02-06T05:01:41.000Z
2021-02-06T05:01:41.000Z
defmodule Smlr.Compressor.DeflateTest do use ExUnit.Case alias Smlr.Compressor.Deflate test "can compress a file" do blob = Deflate.compress("hello world", []) assert("hello world" == :zlib.uncompress(blob)) end end
23.3
51
0.712446
b2e9688580546062001191d039cf47764c883659
855
ex
Elixir
ex/loqui/lib/loqui/protocol/codecs/json.ex
NorthIsUp/loqui
8d394a7951fd3a82d109becc1aebbd9e7ccc894a
[ "MIT" ]
147
2017-10-02T18:16:52.000Z
2020-03-16T03:26:40.000Z
ex/loqui/lib/loqui/protocol/codecs/json.ex
NorthIsUp/loqui
8d394a7951fd3a82d109becc1aebbd9e7ccc894a
[ "MIT" ]
14
2017-09-19T16:13:32.000Z
2019-06-25T21:18:47.000Z
ex/loqui/lib/loqui/protocol/codecs/json.ex
NorthIsUp/loqui
8d394a7951fd3a82d109becc1aebbd9e7ccc894a
[ "MIT" ]
25
2017-10-01T20:10:31.000Z
2020-03-19T14:00:20.000Z
if Code.ensure_compiled?(:jiffy) do defmodule Loqui.Protocol.Codecs.Json do @moduledoc """ The Json codec. This codec represents many erlang terms in JavaScript object notation (JSON) format. Not all Erlang terms can be represented in JSON, so it's important to ensure that any data you wish to se...
27.580645
76
0.694737
b2e9880e4d81566cf4c5e7da33615523bfc0967e
2,558
exs
Elixir
apps/omg_eth/test/fixtures.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/fixtures.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/fixtures.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2021-12-04T00:37:46.000Z
2021-12-04T00:37:46.000Z
# Copyright 2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.106667
112
0.732213
b2e9e214e53e38ed6d1ac0abd916d96a2fe8743c
1,504
ex
Elixir
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/session_controller.ex
hassanshaikley/nerves_hub_web
9e187eacc0fbaa848d157b832a9ee6223019f0bd
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/session_controller.ex
hassanshaikley/nerves_hub_web
9e187eacc0fbaa848d157b832a9ee6223019f0bd
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/session_controller.ex
hassanshaikley/nerves_hub_web
9e187eacc0fbaa848d157b832a9ee6223019f0bd
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubWWWWeb.SessionController do use NervesHubWWWWeb, :controller alias NervesHubWebCore.Accounts @session_key "auth_user_id" def new(conn, _params) do conn |> get_session(@session_key) |> case do nil -> render(conn, "new.html") user_id -> case Accounts....
23.5
95
0.620346
b2e9fb4fd92d9bd601f813dbf86d10ac71df19c9
113
exs
Elixir
test/fun_land/appliable_test.exs
gerbal/elixir_fun_land
86adc20dc6af8c7c84d39dffd92195c3e9571009
[ "MIT" ]
47
2016-07-10T15:40:21.000Z
2019-04-22T09:41:01.000Z
test/fun_land/appliable_test.exs
gerbal/elixir_fun_land
86adc20dc6af8c7c84d39dffd92195c3e9571009
[ "MIT" ]
34
2019-08-30T05:27:17.000Z
2022-03-23T18:22:32.000Z
test/fun_land/appliable_test.exs
gerbal/elixir_fun_land
86adc20dc6af8c7c84d39dffd92195c3e9571009
[ "MIT" ]
3
2016-07-23T16:23:31.000Z
2019-02-03T17:18:47.000Z
defmodule FunLand.AppliableTest do use ExUnit.Case, async: true use FunLand doctest FunLand.Appliable end
16.142857
34
0.787611
b2ea016ce70c30a71680accab1763633e36198dc
141
exs
Elixir
emulator/test/emulator_test.exs
lucas-larsson/ID1019
b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c
[ "MIT" ]
null
null
null
emulator/test/emulator_test.exs
lucas-larsson/ID1019
b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c
[ "MIT" ]
null
null
null
emulator/test/emulator_test.exs
lucas-larsson/ID1019
b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c
[ "MIT" ]
null
null
null
defmodule EmulatorTest do use ExUnit.Case doctest Emulator test "greets the world" do assert Emulator.hello() == :world end end
15.666667
37
0.716312
b2ea73e04872f15dbb5263b542d91f7427e53b74
477
exs
Elixir
config/test.exs
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
config/test.exs
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
config/test.exs
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :banking_graph, BankingGraph.Repo, username: "postgres", password: "postgres", database: "test_test", hostname: "postgres", pool: Ecto.Adapters.SQL.Sandbox # We don't run a server during test. If one is required, # you can enable the server option below. confi...
25.105263
56
0.742138
b2ea8aa8f9f605767a00627dd976463960ebff6c
896
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.185185
74
0.762277
b2ea91649bdab3bfe20faa5527a1ca255e2c126c
1,800
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/list_students_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/classroom/lib/google_api/classroom/v1/model/list_students_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/list_students_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.294118
137
0.734444
b2eabb13c1c61fd69c2119f250cd80d0b49d8c4d
363
exs
Elixir
priv/repo/seeds.exs
rmartinsc/livrodealemao
337e2b7f5bd6de6b84d6ec44a37a839bee71319e
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
rmartinsc/livrodealemao
337e2b7f5bd6de6b84d6ec44a37a839bee71319e
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
rmartinsc/livrodealemao
337e2b7f5bd6de6b84d6ec44a37a839bee71319e
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Livrodealemao.Repo.insert!(%Livrodealemao.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) ...
30.25
61
0.716253
b2eabdb2416f9e5012bf351fe321b1d074c03d22
4,913
ex
Elixir
lib/exq/stats/server.ex
buob/exq
921fe26c7f3db7d77ff67e3a03ea9b83612f5598
[ "Apache-2.0" ]
null
null
null
lib/exq/stats/server.ex
buob/exq
921fe26c7f3db7d77ff67e3a03ea9b83612f5598
[ "Apache-2.0" ]
null
null
null
lib/exq/stats/server.ex
buob/exq
921fe26c7f3db7d77ff67e3a03ea9b83612f5598
[ "Apache-2.0" ]
3
2021-04-07T14:50:17.000Z
2021-04-07T14:50:30.000Z
defmodule Exq.Stats.Server do @moduledoc """ Stats process is responsible for recording all stats into Redis. The stats format is compatible with the Sidekiq stats format, so that The Sidekiq UI can be also used to view Exq status as well, and Exq can run side by side with Sidekiq without breaking any of it'...
30.141104
90
0.643192
b2ead4c800110606395384ac603e96033815b064
2,484
ex
Elixir
lib/pipedrive/deals.ex
steady-media/pipedrive
b0234d9caca1317c2550fd25bdf88945797a0a62
[ "MIT" ]
5
2019-08-02T13:17:34.000Z
2022-02-24T17:20:51.000Z
lib/pipedrive/deals.ex
steady-media/pipedrive
b0234d9caca1317c2550fd25bdf88945797a0a62
[ "MIT" ]
5
2019-03-05T07:21:56.000Z
2022-01-17T09:47:23.000Z
lib/pipedrive/deals.ex
steady-media/pipedrive
b0234d9caca1317c2550fd25bdf88945797a0a62
[ "MIT" ]
1
2020-03-18T18:57:14.000Z
2020-03-18T18:57:14.000Z
defmodule Pipedrive.Deals do @moduledoc """ API endpoint wrappers for working with `Deals`. """ @behaviour Pipedrive.RESTEntity alias Pipedrive.API import Pipedrive.Helpers.Serialization import Pipedrive, only: [api_docs_base_url: 0] @doc """ Get all deals. [Pipedrive API docs](#{api_docs_base_ur...
27
83
0.648551
b2eadf71ad3e6374a6aaac1a1c9d1748d8b3a6fd
499
ex
Elixir
lib/systemstats_web/views/error_view.ex
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
lib/systemstats_web/views/error_view.ex
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
lib/systemstats_web/views/error_view.ex
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
defmodule SystemstatsWeb.ErrorView do use SystemstatsWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the templ...
29.352941
61
0.739479
b2eb0bedfe81b712e40762dd473bbbd2a13adf24
603
ex
Elixir
lib/exfile_imagemagick/server.ex
sreecodeslayer/exfile-imagemagick
0103f8585901e295cc992a121c248a2d5e5eae7c
[ "MIT" ]
5
2015-12-25T18:17:10.000Z
2018-07-17T10:19:10.000Z
lib/exfile_imagemagick/server.ex
sreecodeslayer/exfile-imagemagick
0103f8585901e295cc992a121c248a2d5e5eae7c
[ "MIT" ]
7
2016-08-14T02:28:03.000Z
2017-11-04T23:07:15.000Z
lib/exfile_imagemagick/server.ex
sreecodeslayer/exfile-imagemagick
0103f8585901e295cc992a121c248a2d5e5eae7c
[ "MIT" ]
9
2016-08-22T11:06:04.000Z
2021-09-30T09:05:03.000Z
defmodule ExfileImagemagick.Server do use GenServer @image_processor Application.get_env(:exfile_imagemagick, :image_processor, :imagemagick) def start_link(_args) do GenServer.start_link(__MODULE__, :ok) end def cmd(s, command, args) do case @image_processor do :graphicsmagick -> GenServer.c...
23.192308
91
0.665008
b2eb215ec99766d36a03c0e737947db1792ff213
2,032
ex
Elixir
lib/mix/tasks/bmark.ex
timbuckley/bmark
79fbef2ef09ce829dbdd0632687cd54d1127de9f
[ "MIT" ]
74
2015-02-19T04:29:59.000Z
2020-09-22T14:57:27.000Z
lib/mix/tasks/bmark.ex
timbuckley/bmark
79fbef2ef09ce829dbdd0632687cd54d1127de9f
[ "MIT" ]
10
2015-02-21T17:38:06.000Z
2019-02-26T17:51:20.000Z
lib/mix/tasks/bmark.ex
timbuckley/bmark
79fbef2ef09ce829dbdd0632687cd54d1127de9f
[ "MIT" ]
8
2015-04-24T17:13:25.000Z
2018-03-11T03:27:56.000Z
defmodule Mix.Tasks.Bmark do use Mix.Task @shortdoc "Run bmark benchmark functions" @moduledoc """ ## Usage mix bmark Runs all benchmarks matching the pattern bmark/*_bmark.ex. Results of the tests will be written to results/<benchmark name>.results. The results directory will be created if nec...
26.051282
100
0.711122
b2eb24c3f11d579fcafd27bcb99618d614c50fd3
3,099
exs
Elixir
apps/omg_watcher_info/test/omg_watcher_info/order_fee_fetcher_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher_info/test/omg_watcher_info/order_fee_fetcher_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher_info/test/omg_watcher_info/order_fee_fetcher_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
31.948454
118
0.63827
b2eb2c5f085ecbc3146178a953581c86c8415536
187
exs
Elixir
apps/day21/test/day21_test.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
2
2019-12-21T21:21:04.000Z
2019-12-27T07:00:19.000Z
apps/day21/test/day21_test.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
apps/day21/test/day21_test.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
defmodule Day21Test do use ExUnit.Case doctest Day21 test "part1" do assert Day21.part1() == 19356081 end test "part2" do assert Day21.part2() == 1141901823 end end
14.384615
38
0.673797
b2eb2cc4a53d0ea6f1b5627c170de3a61de3254a
166
ex
Elixir
lib/athel_web/views/group_view.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
14
2016-09-12T02:45:12.000Z
2021-02-08T04:13:29.000Z
lib/athel_web/views/group_view.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
3
2016-09-12T05:17:35.000Z
2016-09-14T16:35:04.000Z
lib/athel_web/views/group_view.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
1
2018-02-12T04:30:52.000Z
2018-02-12T04:30:52.000Z
defmodule AthelWeb.GroupView do use AthelWeb, :view def title("show.html", assigns) do assigns.group.name end def title(_t, _) do "Groups" end end
15.090909
36
0.674699
b2eb554ec2301fdb27032584f6b72a4d2b89fb0c
596
ex
Elixir
lib/obank_web/controllers/auth_controller.ex
o-marchi/o-bank-api
fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4
[ "MIT" ]
null
null
null
lib/obank_web/controllers/auth_controller.ex
o-marchi/o-bank-api
fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4
[ "MIT" ]
null
null
null
lib/obank_web/controllers/auth_controller.ex
o-marchi/o-bank-api
fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4
[ "MIT" ]
null
null
null
defmodule ObankWeb.AuthController do use ObankWeb, :controller import Comeonin.Bcrypt, only: [check_pass: 2] alias Obank.Accounts alias ObankWeb.UserView action_fallback ObankWeb.FallbackController plug :put_view, UserView def login(conn, %{"email" => email, "password" => password}) do with {:ok...
25.913043
83
0.686242
b2eb9f02975d648cece8582e51fd01d546469f21
5,546
ex
Elixir
lib/bitcraft.ex
cabol/ex_bits
9cf85b33b2b5bbb240de7217dc6849cfd23a62e0
[ "MIT" ]
2
2020-09-06T20:34:45.000Z
2020-09-07T12:42:21.000Z
lib/bitcraft.ex
cabol/ex_bits
9cf85b33b2b5bbb240de7217dc6849cfd23a62e0
[ "MIT" ]
null
null
null
lib/bitcraft.ex
cabol/ex_bits
9cf85b33b2b5bbb240de7217dc6849cfd23a62e0
[ "MIT" ]
null
null
null
defmodule Bitcraft do @moduledoc """ The following are the main Bitcraft components: * `Bitcraft.BitBlock` - This is the main Bitcraft component. It provides a DSL that allows to define bit-blocks with their segments (useful for building binary protocols) and automatically injects encoding and deco...
29.657754
83
0.597367
b2eba4aa671de7918d2fc14800934640b0547c21
5,639
exs
Elixir
test/phoenix/integration/endpoint_test.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
test/phoenix/integration/endpoint_test.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
test/phoenix/integration/endpoint_test.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
Code.require_file "http_client.exs", __DIR__ defmodule Phoenix.Integration.EndpointTest do # This test case needs to be sync because we rely on # log capture which is global. use ExUnit.Case alias Phoenix.Integration.AdapterTest.ProdEndpoint alias Phoenix.Integration.AdapterTest.DevEndpoint Application.p...
29.678947
90
0.629367
b2ebb82e1b86906db68e71737c228236a7f46445
110
ex
Elixir
architect/lib/architect/repo.ex
VJftw/velocity
8335c39c510dbde1446e6cde03eebb450339d212
[ "Apache-2.0" ]
3
2017-12-09T21:05:54.000Z
2019-08-06T08:13:34.000Z
architect/lib/architect/repo.ex
VJftw/velocity
8335c39c510dbde1446e6cde03eebb450339d212
[ "Apache-2.0" ]
63
2017-09-09T15:44:24.000Z
2022-03-03T22:16:24.000Z
architect/lib/architect/repo.ex
VJftw/velocity
8335c39c510dbde1446e6cde03eebb450339d212
[ "Apache-2.0" ]
5
2017-09-14T00:17:22.000Z
2019-11-27T14:43:45.000Z
defmodule Architect.Repo do use Ecto.Repo, otp_app: :architect, adapter: Ecto.Adapters.Postgres end
18.333333
35
0.736364
b2ebbfc7846361d24e4931b9d1dc090fef7f1078
2,229
ex
Elixir
clients/admin/lib/google_api/admin/reports_v1/model/usage_reports_warnings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/reports_v1/model/usage_reports_warnings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/reports_v1/model/usage_reports_warnings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.527273
171
0.729475
b2ebc6cb028420db8de68ad1faeb6b76844cc923
756
exs
Elixir
config/dev.exs
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
config/dev.exs
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
config/dev.exs
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :doritos, DoritosWeb.Endpoint, http: [port: 40...
34.363636
72
0.748677
b2ebf046cf04083662679c45238fe1f64511a4d9
15,406
ex
Elixir
lib/materia_career/projects/projects.ex
karabiner-inc/materia_career
cb378d80a7bbb53b5370771227954d1a850ba28a
[ "Apache-2.0" ]
null
null
null
lib/materia_career/projects/projects.ex
karabiner-inc/materia_career
cb378d80a7bbb53b5370771227954d1a850ba28a
[ "Apache-2.0" ]
23
2019-01-16T01:52:22.000Z
2019-06-20T01:59:55.000Z
lib/materia_career/projects/projects.ex
karabiner-inc/materia_career
cb378d80a7bbb53b5370771227954d1a850ba28a
[ "Apache-2.0" ]
null
null
null
defmodule MateriaCareer.Projects do @moduledoc """ The Projects context. """ import Ecto.Query, warn: false alias Materia.Accounts alias MateriaCareer.Projects.Project alias MateriaCareer.Tags alias Materia.Organizations.Organization alias MateriaUtils.Calendar.CalendarUtil alias Materia.Errors.Bu...
22.823704
143
0.616708
b2ec2ba95c091baeb2fa4494b9ac8a2f589db1f5
318
ex
Elixir
lib/svalinn/encodings/base64.ex
IanLuites/svalinn
f23ce97db3ecc4b67c3621b37f9dc0e93bedd028
[ "MIT" ]
null
null
null
lib/svalinn/encodings/base64.ex
IanLuites/svalinn
f23ce97db3ecc4b67c3621b37f9dc0e93bedd028
[ "MIT" ]
null
null
null
lib/svalinn/encodings/base64.ex
IanLuites/svalinn
f23ce97db3ecc4b67c3621b37f9dc0e93bedd028
[ "MIT" ]
null
null
null
defmodule Svalinn.Encodings.Base64 do @behaviour Svalinn.Encoding @impl Svalinn.Encoding def encode(data), do: {:ok, Base.encode64(data, padding: false)} @impl Svalinn.Encoding def decode(data) do with :error <- Base.decode64(data, padding: false) do {:error, :decoding_failed} end end end
22.714286
66
0.701258
b2ec2dfdd7d46f4621fdece1fff9f53e0290c991
233
ex
Elixir
lib/steemex/http_api_client.ex
cyberpunk-ventures/steemex
dca8a33273aeaa3a5f03804fead1af71bd786f29
[ "MIT" ]
20
2016-08-06T22:53:11.000Z
2018-09-16T23:17:02.000Z
lib/steemex/http_api_client.ex
cyberpunk-ventures/steemex
dca8a33273aeaa3a5f03804fead1af71bd786f29
[ "MIT" ]
null
null
null
lib/steemex/http_api_client.ex
cyberpunk-ventures/steemex
dca8a33273aeaa3a5f03804fead1af71bd786f29
[ "MIT" ]
null
null
null
defmodule Steemex.HttpClient do alias JSONRPC2.Clients.HTTP @url Application.get_env(:steemex, :api_url) def call([api, method, args]) do response = HTTP.call(@url, "#{api}.#{method}", args) {:ok, response} end end
21.181818
56
0.67382
b2ec35875a5ce0ca0235c14949180bb1994efd76
281
exs
Elixir
year_2015/test/day_17_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2015/test/day_17_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2015/test/day_17_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
defmodule Day17Test do use ExUnit.Case, async: true test "it computes way to fill the containers" do assert Day17.part_one(InputTestFile, 25) == 4 end test "it computes ways to use the fewest containers" do assert Day17.part_two(InputTestFile, 25) == 3 end end
23.416667
57
0.72242
b2ec507faf6b4a3aa4ed827281f790332c6ca541
1,155
exs
Elixir
config/config.exs
mogorman/server_sent_event_stage
70a9396f9dcb1d22c5f01b61935096d895420ba9
[ "MIT" ]
3
2021-05-26T00:40:15.000Z
2022-01-06T20:01:35.000Z
config/config.exs
mogorman/server_sent_event_stage
70a9396f9dcb1d22c5f01b61935096d895420ba9
[ "MIT" ]
11
2018-08-11T18:37:34.000Z
2022-03-25T13:41:44.000Z
config/config.exs
mogorman/server_sent_event_stage
70a9396f9dcb1d22c5f01b61935096d895420ba9
[ "MIT" ]
3
2018-08-11T18:29:17.000Z
2019-05-17T16:55:41.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
37.258065
73
0.758442
b2ec5a6f2fb819f29605245d4d3d2330e96efa02
1,934
ex
Elixir
lib/rtsp.ex
simoexpo/membrane_rtsp
f5fe12364535fd4ca234bc80c57a2f0c89e5fe25
[ "Apache-2.0" ]
null
null
null
lib/rtsp.ex
simoexpo/membrane_rtsp
f5fe12364535fd4ca234bc80c57a2f0c89e5fe25
[ "Apache-2.0" ]
null
null
null
lib/rtsp.ex
simoexpo/membrane_rtsp
f5fe12364535fd4ca234bc80c57a2f0c89e5fe25
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.RTSP do @moduledoc """ This module provides a functionality to open a session, execute a RTSP requests through that session and close the session. """ alias Membrane.RTSP.{Response, Session} @type headers :: [{binary(), binary()}] @spec describe(Session.t(), headers()) :: Response.res...
41.148936
93
0.664426
b2ec61673d4ac5ba7ce146cdf33f5aab2527350b
114
exs
Elixir
test/ex_nrel_test.exs
techgaun/ex_nrel
6a6509903f9340e0d48b88b985ef2aa0eaae4594
[ "Apache-2.0" ]
null
null
null
test/ex_nrel_test.exs
techgaun/ex_nrel
6a6509903f9340e0d48b88b985ef2aa0eaae4594
[ "Apache-2.0" ]
null
null
null
test/ex_nrel_test.exs
techgaun/ex_nrel
6a6509903f9340e0d48b88b985ef2aa0eaae4594
[ "Apache-2.0" ]
null
null
null
defmodule ExNrelTest do use ExUnit.Case doctest ExNrel test "the truth" do assert 1 + 1 == 2 end end
12.666667
23
0.666667
b2ec93335082c12e5b5bca36e1073f7115f0d345
2,038
exs
Elixir
spec/lib/validators/generic_spec.exs
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
3
2019-11-04T21:40:10.000Z
2021-12-22T11:25:37.000Z
spec/lib/validators/generic_spec.exs
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
null
null
null
spec/lib/validators/generic_spec.exs
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
null
null
null
defmodule Gate.Validators.GenericSpec do use ESpec use Gate.Validators.Generic describe "equal" do context "when values match" do it "returns true" do expect(validate(1, {:equal, 1})) |> to(eq true) end end context "when values don't match" do it "returns false" do expect(valida...
21.010309
61
0.592247
b2eccd6492b2a18819e1c01c473d2737a9576fd8
13,897
ex
Elixir
lib/site_encrypt.ex
hexedpackets/site_encrypt
2fbe4815cb0d0bd5af2098e101400e0f11029b07
[ "MIT" ]
387
2018-05-22T21:46:20.000Z
2022-03-26T18:51:01.000Z
lib/site_encrypt.ex
hexedpackets/site_encrypt
2fbe4815cb0d0bd5af2098e101400e0f11029b07
[ "MIT" ]
41
2018-06-03T13:02:24.000Z
2022-02-14T11:16:24.000Z
lib/site_encrypt.ex
hexedpackets/site_encrypt
2fbe4815cb0d0bd5af2098e101400e0f11029b07
[ "MIT" ]
24
2018-05-24T07:04:12.000Z
2022-02-09T08:21:05.000Z
defmodule SiteEncrypt do @moduledoc "Functions for interacting with sites managed by SiteEncrypt." require Logger alias SiteEncrypt.Certification @opaque certification :: config @typedoc false @type config :: %{ id: id, directory_url: directory_url, domains: nonempty_list(S...
35.182278
119
0.659495
b2ecdf0b84a4529dca95ae4c32cce847c4253e13
23,499
exs
Elixir
test/appsignal/config_test.exs
jvanbaarsen/appsignal-elixir
e8c481f905736ed54402dc5304efd3269cda1574
[ "MIT" ]
null
null
null
test/appsignal/config_test.exs
jvanbaarsen/appsignal-elixir
e8c481f905736ed54402dc5304efd3269cda1574
[ "MIT" ]
null
null
null
test/appsignal/config_test.exs
jvanbaarsen/appsignal-elixir
e8c481f905736ed54402dc5304efd3269cda1574
[ "MIT" ]
null
null
null
defmodule Appsignal.ConfigTest do @moduledoc """ Test the configuratoin """ use ExUnit.Case import AppsignalTest.Utils alias Appsignal.{Config, Nif} setup do environment = freeze_environment() Application.delete_env(:appsignal, :config) ExUnit.Callbacks.on_exit fn() -> unfreeze_enviro...
33.618026
149
0.64424
b2ece0639bd7d96d6550ecab59b311f889fa4390
835
ex
Elixir
lib/linkir/emails.ex
byhbt/linkir
8ac72cd0da2696b628f6981595e75164adfc5945
[ "MIT" ]
null
null
null
lib/linkir/emails.ex
byhbt/linkir
8ac72cd0da2696b628f6981595e75164adfc5945
[ "MIT" ]
null
null
null
lib/linkir/emails.ex
byhbt/linkir
8ac72cd0da2696b628f6981595e75164adfc5945
[ "MIT" ]
null
null
null
defmodule Linkir.Emails do @moduledoc false import Bamboo.Email use Bamboo.Phoenix, view: LinkirWeb.EmailView @from "test@example.com" def welcome_email(%{email: email}) do base_email() |> subject("Welcome!") |> to(email) |> render("welcome.html", title: "Thank you for signing up", ...
21.410256
60
0.652695
b2ecec7b3cd78dd871e3f593acb0e4f7c141b0cf
10,176
ex
Elixir
lib/benchfella.ex
joekain/benchfella
0fd092f2b20bd1b80fda95eb347ae37919f66ec2
[ "MIT" ]
null
null
null
lib/benchfella.ex
joekain/benchfella
0fd092f2b20bd1b80fda95eb347ae37919f66ec2
[ "MIT" ]
null
null
null
lib/benchfella.ex
joekain/benchfella
0fd092f2b20bd1b80fda95eb347ae37919f66ec2
[ "MIT" ]
null
null
null
defmodule Benchfella do @bench_tab :"#{__MODULE__}:tests" @results_tab :"#{__MODULE__}:results" @bench_sec 1 @default_outdir "bench/snapshots" alias Benchfella.Snapshot defmacro __using__(_) do quote do import unquote(__MODULE__), only: :macros end end def start(opts \\ []) do cli_o...
29.841642
103
0.603774
b2ecf1b4e69fd714e2056bbfb611ecf43d6b9f04
1,133
exs
Elixir
config/config.exs
ug0/aliyun_util
d02e168d20319eb6d2d51634b3e3ce163978281d
[ "MIT" ]
null
null
null
config/config.exs
ug0/aliyun_util
d02e168d20319eb6d2d51634b3e3ce163978281d
[ "MIT" ]
6
2020-12-25T05:16:23.000Z
2021-09-22T02:21:25.000Z
config/config.exs
ug0/aliyun_util
d02e168d20319eb6d2d51634b3e3ce163978281d
[ "MIT" ]
5
2019-04-15T10:12:33.000Z
2021-09-18T07:12:26.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.548387
73
0.751986
b2ed0814b3282fc67aea3dd92dfeda69cca0f736
34,848
exs
Elixir
lib/elixir/test/elixir/string_test.exs
ukrbublik/elixir
1fd15774a4e00b161c6555fbe62ea134bb29b04e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/string_test.exs
ukrbublik/elixir
1fd15774a4e00b161c6555fbe62ea134bb29b04e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/string_test.exs
ukrbublik/elixir
1fd15774a4e00b161c6555fbe62ea134bb29b04e
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule StringTest do use ExUnit.Case, async: true doctest String test "next_codepoint/1" do assert String.next_codepoint("ésoj") == {"é", "soj"} assert String.next_codepoint(<<255>>) == {<<255>>, ""} assert String.next_codepoint("") == nil end #...
40.38007
98
0.570506
b2ed2a12459b03e5010c1ec6f700b7eb326461a0
3,622
ex
Elixir
clients/dns/lib/google_api/dns/v1/model/operation.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/model/operation.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/model/operation.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
51.742857
305
0.728603
b2ed2e9fe2470ba7e4314280ccd1f3c6fc3bddb4
834
ex
Elixir
lib/helpers.ex
harmon25/heroicons
4bd0387b73f73671434db62517e34e2bd40c162a
[ "MIT" ]
1
2021-01-03T19:22:46.000Z
2021-01-03T19:22:46.000Z
lib/helpers.ex
harmon25/heroicons
4bd0387b73f73671434db62517e34e2bd40c162a
[ "MIT" ]
null
null
null
lib/helpers.ex
harmon25/heroicons
4bd0387b73f73671434db62517e34e2bd40c162a
[ "MIT" ]
null
null
null
defmodule Heroicons.Helpers do def merge_attrs(type, size, opts \\ []) do Keyword.merge(dimensions(type, size), opts) end # w-4 defp dimensions("outline", "tiny"), do: calc_dimension(4) # w-5 defp dimensions("outline", "small"), do: calc_dimension(5) # w-6 defp dimensions("outline", "normal"), do: ...
26.903226
61
0.648681
b2ed4cbe0abf059d0cb041f6a2dcabef447587a0
1,797
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/transcode_setting.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/transcode_setting.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/transcode_setting.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.235294
177
0.743461
b2ed66806cb3f9d7878bf0db4b2e15bdd65f4aec
1,784
ex
Elixir
niex/lib/niex_web.ex
rellen/elixir_nx_demo
a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad
[ "Apache-2.0" ]
1
2021-04-10T01:02:29.000Z
2021-04-10T01:02:29.000Z
niex/lib/niex_web.ex
team-alembic/elixir_nx_demo
a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad
[ "Apache-2.0" ]
null
null
null
niex/lib/niex_web.ex
team-alembic/elixir_nx_demo
a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad
[ "Apache-2.0" ]
1
2021-03-24T23:04:57.000Z
2021-03-24T23:04:57.000Z
defmodule NiexWeb do @moduledoc false def controller do quote do use Phoenix.Controller, namespace: NiexWeb import Plug.Conn import NiexWeb.Gettext alias NiexWeb.Router.Helpers, as: Routes end end def view do quote do use Phoenix.View, root: "lib/niex_web/tem...
20.505747
78
0.661435
b2ed886e159891405ac1d10955d15028981d5d76
1,713
ex
Elixir
lib/mix/authentication_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
7
2019-04-11T21:12:49.000Z
2021-04-14T12:56:42.000Z
lib/mix/authentication_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
null
null
null
lib/mix/authentication_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
2
2019-06-06T18:05:33.000Z
2019-07-16T08:49:45.000Z
## # Copyright 2018 Abdulkadir DILSIZ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
30.052632
77
0.740806
b2eda36c44fa7c04b59b4b70a02ded7c6f1c7f79
197
ex
Elixir
test/support/web/controllers/broadcast1_controller.ex
Gamecode-HQ/drab
dfbe73c0675831f42829f0f3f7fe12d47a78badc
[ "MIT" ]
933
2017-01-14T13:47:37.000Z
2022-03-21T18:14:41.000Z
test/support/web/controllers/broadcast1_controller.ex
Gamecode-HQ/drab
dfbe73c0675831f42829f0f3f7fe12d47a78badc
[ "MIT" ]
189
2017-01-15T18:35:06.000Z
2022-01-24T17:41:22.000Z
test/support/web/controllers/broadcast1_controller.ex
Gamecode-HQ/drab
dfbe73c0675831f42829f0f3f7fe12d47a78badc
[ "MIT" ]
54
2017-01-15T18:10:48.000Z
2021-02-06T17:21:44.000Z
defmodule DrabTestApp.Broadcast1Controller do @moduledoc false use DrabTestApp.Web, :controller # use Drab.Controller def index(conn, _params) do render(conn, "index.html") end end
17.909091
45
0.741117
b2edc730bb7e72495098c5546385b3278f8af5cc
777
ex
Elixir
lib/elixir_google_scraper_web/controllers/user_session_controller.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
lib/elixir_google_scraper_web/controllers/user_session_controller.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
25
2021-05-21T02:23:37.000Z
2021-07-09T09:22:32.000Z
lib/elixir_google_scraper_web/controllers/user_session_controller.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
defmodule ElixirGoogleScraperWeb.UserSessionController do use ElixirGoogleScraperWeb, :controller alias ElixirGoogleScraper.Account.Users alias ElixirGoogleScraperWeb.UserAuth plug :put_layout, "authentication.html" def new(conn, _params) do render(conn, "new.html", error_message: nil) end def cre...
26.793103
74
0.715573
b2ee46766222ace7eed1832093905354bd42ea66
3,460
ex
Elixir
lib/fds/list_array.ex
shantiii/fds
5c941db87ef425fe014642ddc33753c08c8b9999
[ "Apache-2.0" ]
13
2020-02-13T05:09:45.000Z
2022-02-16T00:44:12.000Z
lib/fds/list_array.ex
shantiii/fds
5c941db87ef425fe014642ddc33753c08c8b9999
[ "Apache-2.0" ]
null
null
null
lib/fds/list_array.ex
shantiii/fds
5c941db87ef425fe014642ddc33753c08c8b9999
[ "Apache-2.0" ]
1
2020-06-16T08:20:52.000Z
2020-06-16T08:20:52.000Z
defmodule FDS.ListArray do defstruct [:ralist, :count] @type t :: %__MODULE__{ralist: :fds_ralist.ralist(any()), count: non_neg_integer()} @spec new() :: t def new() do %__MODULE__{ralist: :fds_ralist.new(), count: 0} end @spec push(t, term()) :: t def push(%__MODULE__{ralist: ralist, count: count} ...
37.608696
138
0.654913
b2ee51416b526dc60777a74c174b1a22954e4141
1,418
exs
Elixir
test/mix/tasks/elvis_test.exs
hauleth/mix_elvis
9e6442dfb16c00b886523d6f0167f3aea9fff9a6
[ "MIT" ]
1
2019-07-01T16:40:05.000Z
2019-07-01T16:40:05.000Z
test/mix/tasks/elvis_test.exs
hauleth/mix_elvis
9e6442dfb16c00b886523d6f0167f3aea9fff9a6
[ "MIT" ]
null
null
null
test/mix/tasks/elvis_test.exs
hauleth/mix_elvis
9e6442dfb16c00b886523d6f0167f3aea9fff9a6
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.ElvisTest do use ExUnit.Case import ExUnit.CaptureIO defp in_project(name, fun) do Mix.Project.in_project(name, "test/fixtures/#{name}", fn _ -> fun.() end) end defp run_elvis(args \\ []) do Mix.Task.rerun(:elvis, ["--format=plain" | args]) :ok rescue Mix.Er...
21.815385
103
0.598731
b2ee7c2ac567f2d5c997eab43a41b427b0faef2a
990
exs
Elixir
mix.exs
ritou/elixir-scratcher-httpoison
b27a2b80d73a4ca03d2ce516e152b1872ab909bd
[ "MIT" ]
null
null
null
mix.exs
ritou/elixir-scratcher-httpoison
b27a2b80d73a4ca03d2ce516e152b1872ab909bd
[ "MIT" ]
null
null
null
mix.exs
ritou/elixir-scratcher-httpoison
b27a2b80d73a4ca03d2ce516e152b1872ab909bd
[ "MIT" ]
null
null
null
defmodule Scratcher.HTTPoison.MixProject do use Mix.Project def project do [ app: :scratcher_httpoison, version: "0.1.0", elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, description: "Module for using HTTPoison as Scratcher's H...
23.571429
83
0.579798
b2ee97a75c92b77dd1d81355d551ec0f244e2141
102
exs
Elixir
test/live_view_collection_web/views/page_view_test.exs
sandeshsoni/phoenix-liveview-collection
6a3ae19f9aec1d2776a38edca2ff8497fc371257
[ "MIT" ]
32
2019-04-01T02:39:49.000Z
2020-12-04T02:57:01.000Z
test/live_view_collection_web/views/page_view_test.exs
sandeshsoni/phoenix-liveview-collection
6a3ae19f9aec1d2776a38edca2ff8497fc371257
[ "MIT" ]
13
2020-03-29T19:40:34.000Z
2021-12-06T22:18:02.000Z
test/live_view_collection_web/views/page_view_test.exs
sandeshsoni/phoenix-liveview-collection
6a3ae19f9aec1d2776a38edca2ff8497fc371257
[ "MIT" ]
4
2019-08-01T16:21:16.000Z
2020-04-01T17:39:10.000Z
defmodule LiveViewCollectionWeb.PageViewTest do use LiveViewCollectionWeb.ConnCase, async: true end
25.5
49
0.862745
b2eeaa1c1588eff2fb6a1c665aa4fa86ca169fd4
2,155
ex
Elixir
clients/apps_activity/lib/google_api/apps_activity/v1/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/apps_activity/lib/google_api/apps_activity/v1/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/apps_activity/lib/google_api/apps_activity/v1/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.916667
139
0.688631
b2eed0d4ba1bfb31264023a0c62a62e8de1843e4
1,581
ex
Elixir
web/web.ex
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
10
2015-09-23T05:26:35.000Z
2020-10-09T16:59:11.000Z
web/web.ex
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
3
2015-09-23T05:29:42.000Z
2017-12-21T19:38:39.000Z
web/web.ex
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
2
2015-10-03T12:25:28.000Z
2015-10-15T04:45:22.000Z
defmodule Dash.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use Dash.Web, :controller use Dash.Web, :view The definitions below will be executed for every view, controller, etc, so keep them short and cl...
19.280488
88
0.659077
b2eedbe03c628bb61a1c277cd156778357ee5f59
556
exs
Elixir
mix.exs
clanchun/ree
00d8c62d03a4c1c3ff4055057bb82646a9eb9864
[ "MIT" ]
1
2020-11-17T08:04:04.000Z
2020-11-17T08:04:04.000Z
mix.exs
clanchun/ree
00d8c62d03a4c1c3ff4055057bb82646a9eb9864
[ "MIT" ]
null
null
null
mix.exs
clanchun/ree
00d8c62d03a4c1c3ff4055057bb82646a9eb9864
[ "MIT" ]
null
null
null
defmodule Ree.MixProject do use Mix.Project def project do [ app: :ree, version: "0.1.0", elixir: "~> 1.7", escript: [main_module: Ree], deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:log...
19.172414
88
0.570144
b2eeed61a012c2daab8ddba0ad4b3a5a4266ebae
786
exs
Elixir
apps/omg_eth/test/test_helper.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/test_helper.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/test_helper.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
2
2020-06-07T11:14:54.000Z
2020-08-02T07:36:32.000Z
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
39.3
74
0.765903
b2ef006f0b61f34931cbb903a713a89509000f98
2,147
exs
Elixir
test/adoptoposs_web/views/project_view_test.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
120
2020-03-30T13:58:40.000Z
2022-03-30T10:17:50.000Z
test/adoptoposs_web/views/project_view_test.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
34
2020-04-01T23:11:59.000Z
2022-03-13T08:14:37.000Z
test/adoptoposs_web/views/project_view_test.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
16
2020-04-24T17:14:23.000Z
2022-03-27T22:32:48.000Z
defmodule AdoptopossWeb.ProjectViewTest do use AdoptopossWeb.ConnCase, async: true import Adoptoposs.Factory alias AdoptopossWeb.ProjectView test "can_be_contacted?/2 returns false if the passed user_id is nil" do project = build(:project) refute ProjectView.can_be_contacted?(project, nil) end t...
32.044776
94
0.716348
b2ef0130f22f8d713a78b5039d2d6f95a22ef7e4
4,031
exs
Elixir
mix.exs
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
mix.exs
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
mix.exs
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
defmodule Pow.MixProject do use Mix.Project @version "1.0.4" def project do [ app: :pow, version: @version, elixir: "~> 1.6", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, compilers: [:phoenix] ++ Mix.compilers(), deps: deps(), ...
28.387324
85
0.541553
b2ef3371cdd925976ecab900e64268b4d153ff18
1,870
ex
Elixir
lib/ex_rets/rets_response.ex
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
1
2019-12-20T14:23:19.000Z
2019-12-20T14:23:19.000Z
lib/ex_rets/rets_response.ex
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
null
null
null
lib/ex_rets/rets_response.ex
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
null
null
null
defmodule ExRets.RetsResponse do @moduledoc """ The parsed response of a RETS request. """ @moduledoc since: "0.1.0" alias ExRets.BaseXmlParser alias ExRets.LoginResponse alias ExRets.LogoutResponse alias ExRets.SearchResponse @typedoc "Parsed response of a RETS request." @typedoc since: "0.1.0" ...
28.333333
96
0.658289
b2ef8e195c70e3ebcfcd3bd81675357553433e71
16,274
exs
Elixir
xarb/test/xarb/accounts_test.exs
Erik-joh/examensarbete
951847f0ee5195abc0e3aa5f2b6fff78233127ee
[ "MIT" ]
null
null
null
xarb/test/xarb/accounts_test.exs
Erik-joh/examensarbete
951847f0ee5195abc0e3aa5f2b6fff78233127ee
[ "MIT" ]
null
null
null
xarb/test/xarb/accounts_test.exs
Erik-joh/examensarbete
951847f0ee5195abc0e3aa5f2b6fff78233127ee
[ "MIT" ]
null
null
null
defmodule Xarb.AccountsTest do use Xarb.DataCase alias Xarb.Accounts import Xarb.AccountsFixtures alias Xarb.Accounts.{User, UserToken} describe "get_user_by_email/1" do test "does not return the user if the email does not exist" do refute Accounts.get_user_by_email("unknown@example.com") end ...
33.83368
97
0.659764
b2ef91dd52c4708dc0d26f563ef587708af21b2d
1,375
exs
Elixir
test/transcoding/transcoding_test.exs
membraneframework/membrane_ffmpeg_h264_plugin
071265b0d9644120eafe446f23e6f21bfe0e3a29
[ "Apache-2.0" ]
4
2019-01-02T01:32:39.000Z
2020-01-29T19:35:30.000Z
test/transcoding/transcoding_test.exs
membraneframework/membrane_ffmpeg_h264_plugin
071265b0d9644120eafe446f23e6f21bfe0e3a29
[ "Apache-2.0" ]
4
2020-01-27T18:42:27.000Z
2020-08-24T14:29:27.000Z
test/transcoding/transcoding_test.exs
membraneframework/membrane_ffmpeg_h264_plugin
071265b0d9644120eafe446f23e6f21bfe0e3a29
[ "Apache-2.0" ]
1
2020-01-27T18:33:07.000Z
2020-01-27T18:33:07.000Z
defmodule TranscodingTest do use ExUnit.Case import Membrane.Testing.Assertions alias Membrane.H264 alias Membrane.Testing.Pipeline defp make_pipeline(in_path, out_path) do Pipeline.start_link(%Pipeline.Options{ elements: [ file_src: %Membrane.File.Source{chunk_size: 40_960, location: in_pa...
30.555556
79
0.691636
b2ef99ece87ddfd5f9d7acdd22cc88f1c83fe8b8
2,249
ex
Elixir
clients/content/lib/google_api/content/v2/model/lia_inventory_settings.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/lia_inventory_settings.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v2/model/lia_inventory_settings.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.160714
189
0.728768
b2efa06bb039ee906c1b06d1e33184f9f42fac4e
1,141
ex
Elixir
test/support/channel_case.ex
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
test/support/channel_case.ex
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
test/support/channel_case.ex
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
defmodule TransferdropWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case intera...
27.829268
74
0.734443
b2efec8e3d3c942162a9b2ba3ad8c6a8436b4063
90
exs
Elixir
config/test.exs
HGData/cldr_html
82254b96b1499a14089ea98deff03e0c24047869
[ "Apache-2.0" ]
1
2019-10-18T13:02:59.000Z
2019-10-18T13:02:59.000Z
config/test.exs
HGData/cldr_html
82254b96b1499a14089ea98deff03e0c24047869
[ "Apache-2.0" ]
3
2018-05-28T19:01:54.000Z
2018-05-29T11:38:25.000Z
config/test.exs
HGData/cldr_html
82254b96b1499a14089ea98deff03e0c24047869
[ "Apache-2.0" ]
2
2018-05-28T16:06:55.000Z
2020-01-20T07:15:41.000Z
import Config config :ex_cldr, default_locale: "en-001", default_backend: MyApp.Cldr
15
29
0.755556
b2f005543bdfc92320fc7b328ae67cdd90e08607
555
exs
Elixir
apps/admin_app/test/admin_app_web/views/error_view_test.exs
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
1
2018-12-01T18:13:55.000Z
2018-12-01T18:13:55.000Z
apps/admin_app/test/admin_app_web/views/error_view_test.exs
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
apps/admin_app/test/admin_app_web/views/error_view_test.exs
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
defmodule AdminAppWeb.ErrorViewTest do use AdminAppWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(AdminAppWeb.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do...
29.210526
93
0.727928
b2f006e7185108ae913b1d492f634ce78e2f6d37
1,095
exs
Elixir
mix.exs
defaulterr0r/phoenix_gon
19e678706fc4474ad71156d85bf3068d39c81ac9
[ "MIT" ]
null
null
null
mix.exs
defaulterr0r/phoenix_gon
19e678706fc4474ad71156d85bf3068d39c81ac9
[ "MIT" ]
null
null
null
mix.exs
defaulterr0r/phoenix_gon
19e678706fc4474ad71156d85bf3068d39c81ac9
[ "MIT" ]
null
null
null
defmodule PhoenixGon.Mixfile do use Mix.Project def project do [ app: :phoenix_gon_fork, version: "0.5.1", elixir: "~> 1.4", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), ...
22.346939
79
0.568037
b2f056a018c5b485ab3a82b41e41639a4b316707
733
ex
Elixir
lib/erlef_web/plugs/authz.ex
pedrosnk/erlef-website
bb8da73d09930056c9d31bcc75a92b8fb3caf6da
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/plugs/authz.ex
pedrosnk/erlef-website
bb8da73d09930056c9d31bcc75a92b8fb3caf6da
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/plugs/authz.ex
pedrosnk/erlef-website
bb8da73d09930056c9d31bcc75a92b8fb3caf6da
[ "Apache-2.0" ]
null
null
null
defmodule ErlefWeb.Plug.Authz do @moduledoc """ ErlefWeb.Plug.Authz - Redirects a conn unless the user is logged in """ import Plug.Conn def init(opts), do: opts def call(conn, _opts) do case get_session(conn, :member_session) do nil -> conn |> Phoenix.Controller.put_flash(:erro...
22.90625
94
0.60573
b2f068ccfe67431c585612aa82841e74e59cd620
1,962
exs
Elixir
mix.exs
ringcentral-elixir/ringcentral_elixir
51c5bec661cc469f3fa44933223bfd0e8a0d63d8
[ "MIT" ]
null
null
null
mix.exs
ringcentral-elixir/ringcentral_elixir
51c5bec661cc469f3fa44933223bfd0e8a0d63d8
[ "MIT" ]
null
null
null
mix.exs
ringcentral-elixir/ringcentral_elixir
51c5bec661cc469f3fa44933223bfd0e8a0d63d8
[ "MIT" ]
null
null
null
defmodule RingCentral.MixProject do use Mix.Project @version "0.2.1" @url "https://github.com/ringcentral-elixir/ringcentral_elixir" def project do [ app: :ringcentral, version: @version, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() ==...
22.044944
78
0.528542
b2f06c921ef2b886022dae7092407825c656d26a
4,175
ex
Elixir
lib/ex_wubook/query.ex
ChannexIO/wubook_api
c0e082ff3589fde42776de2eb9590cea08cb709f
[ "Apache-2.0" ]
null
null
null
lib/ex_wubook/query.ex
ChannexIO/wubook_api
c0e082ff3589fde42776de2eb9590cea08cb709f
[ "Apache-2.0" ]
null
null
null
lib/ex_wubook/query.ex
ChannexIO/wubook_api
c0e082ff3589fde42776de2eb9590cea08cb709f
[ "Apache-2.0" ]
2
2019-09-03T10:14:11.000Z
2019-11-11T07:17:18.000Z
defmodule ExWubook.Query do @moduledoc """ API Query module """ use HTTPClient alias ExWubook.Query.EscapedSymbolsConverter alias ExWubook.{Error, Meta} @api_endpoint "https://wired.wubook.net/xrws/" @doc """ Make query to API endpoint """ @spec send(String.t(), list) :: {:ok, list, %Meta{}} |...
25.931677
97
0.622515
b2f0837b5934d6e858f8f4564e18f55cabd5ca4a
3,297
ex
Elixir
lib/erlef/members.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
71
2019-07-02T18:06:15.000Z
2022-03-09T15:30:08.000Z
lib/erlef/members.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
157
2019-07-02T01:21:16.000Z
2022-03-30T16:08:12.000Z
lib/erlef/members.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
45
2019-07-04T05:51:11.000Z
2022-02-27T11:56:02.000Z
defmodule Erlef.Members do @moduledoc """ Members context """ alias Erlef.Repo alias Erlef.Members.{EmailRequest, EmailRequestNotification, Notifications} alias Erlef.Mailer alias Erlef.Admins alias Erlef.Accounts.Member import Ecto.Query def new_email_request(params \\ %{}) do EmailRequest.c...
23.055944
86
0.636943
b2f084af3d874e03590af2dfb0599a374aa877c4
2,245
ex
Elixir
lib/k8s/middleware.ex
pedep/k8s
7390339e1f7d9a773ef54a761552a33373b31e25
[ "MIT" ]
null
null
null
lib/k8s/middleware.ex
pedep/k8s
7390339e1f7d9a773ef54a761552a33373b31e25
[ "MIT" ]
null
null
null
lib/k8s/middleware.ex
pedep/k8s
7390339e1f7d9a773ef54a761552a33373b31e25
[ "MIT" ]
null
null
null
defmodule K8s.Middleware do @moduledoc """ Interface for interacting with cluster middleware While middlewares are applied to `K8s.Middleware.Request`s they are registerd by a _cluster name_ which is an atom. This allows multiple connections to be used (different credentials) with the same middleware stack. ...
31.180556
117
0.632962
b2f08f3ba968bcc6964864cbfaeb2f28c18bc388
839
exs
Elixir
lib/mix/test/mix/project_test.exs
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
1
2017-10-29T16:37:08.000Z
2017-10-29T16:37:08.000Z
lib/mix/test/mix/project_test.exs
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/project_test.exs
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper", __FILE__ defmodule Mix.ProjectTest do use MixTest.Case defmodule RealProject do def project do [hello: "world"] end end test "push and pop projects" do refute Mix.Project.defined? Mix.Project.push(RealProject) assert Mix.Project.current == Rea...
22.078947
89
0.694875
b2f0995a4ebf183c7e519fed5f2ec4d99327addb
1,311
ex
Elixir
lib/pki_storage_behavior.ex
tino415/u2f_ex
d95f52335dc85140b2b1b3d7975d29c6d71868ea
[ "BSD-3-Clause" ]
13
2018-10-15T10:39:24.000Z
2019-01-15T06:42:24.000Z
lib/pki_storage_behavior.ex
tino415/u2f_ex
d95f52335dc85140b2b1b3d7975d29c6d71868ea
[ "BSD-3-Clause" ]
19
2018-08-10T04:33:46.000Z
2018-12-02T04:55:48.000Z
lib/pki_storage_behavior.ex
tino415/u2f_ex
d95f52335dc85140b2b1b3d7975d29c6d71868ea
[ "BSD-3-Clause" ]
4
2019-07-06T04:38:31.000Z
2021-02-01T10:45:57.000Z
defmodule U2FEx.PKIStorageBehaviour do @moduledoc """ This is a way for you to store the key metadata required by u2f_ex in any manner you choose. An example can be seen here: ```elixir defmodule App.PKIStorage do @behaviour U2FEx.PKIStorageBehaviour @moduledoc false import Ecto.Query alias...
25.211538
94
0.559878
b2f0a3b0144c5190d39296c540879f1540dfeab3
165
ex
Elixir
lib/surface_bulma/card/footer-item.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
null
null
null
lib/surface_bulma/card/footer-item.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
null
null
null
lib/surface_bulma/card/footer-item.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
null
null
null
defmodule SurfaceBulma.Card.FooterItem do use Surface.Component, slot: "footer_items" @moduledoc """ Single to be displayed as a list in Card.Footer """ end
23.571429
49
0.739394
b2f0a59703abb0a06fa2a2374a14489e58e276e9
1,243
ex
Elixir
lib/exhttptest/utils.ex
slaily/exhttptest
c90d9277383cc93509c6c9806b79a677625d33f4
[ "BSD-3-Clause" ]
null
null
null
lib/exhttptest/utils.ex
slaily/exhttptest
c90d9277383cc93509c6c9806b79a677625d33f4
[ "BSD-3-Clause" ]
null
null
null
lib/exhttptest/utils.ex
slaily/exhttptest
c90d9277383cc93509c6c9806b79a677625d33f4
[ "BSD-3-Clause" ]
null
null
null
defmodule ExHTTPTest.Utils do def file_ext_supported?(file) do Path.extname(file) in [".json"] end def read_file(file) do case file_ext_supported?(file) do true -> File.read(file) false -> {:unsupported, :file_ext} end end def prepare_url(host, endpoint) do cond do host == ...
24.86
69
0.554304
b2f0af4feda67d3d69a44f8ff8dd371371d4a16a
910
exs
Elixir
apps/forklift/config/test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
1
2020-03-18T21:14:39.000Z
2020-03-18T21:14:39.000Z
apps/forklift/config/test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
apps/forklift/config/test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :logger, :level, :info config :forklift, data_reader: MockReader, topic_writer: MockTopic, table_writer: MockTable, collector: MockMetricCollector, retry_count: 5, retry_initial_delay: 10, retry_max_wait: 500, # To ensure that MessageWriter never starts while testing message_pr...
22.75
61
0.710989
b2f10e9d7784fe73a4332b75f7c9b1de603968a3
1,367
ex
Elixir
clients/vault/lib/google_api/vault/v1/model/account_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/account_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/vault/lib/google_api/vault/v1/model/account_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.085106
90
0.724945
b2f11649263aac1e3e5673a76f2bdede78033b57
3,972
ex
Elixir
lib/elixir/lib/calendar/date_range.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
1
2021-05-20T13:08:37.000Z
2021-05-20T13:08:37.000Z
lib/elixir/lib/calendar/date_range.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar/date_range.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
defmodule Date.Range do @moduledoc """ Returns an inclusive range between dates. Ranges must be created with the `Date.range/2` function. The following fields are public: * `:first` - the initial date on the range * `:last` - the last date on the range The remaining fields are private and should n...
30.320611
96
0.615307