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
21f1bf09c8dd0aad926531d69608c2ce2e299142
1,379
ex
Elixir
clients/consumer_surveys/lib/google_api/consumer_surveys/v2/model/token_pagination.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/consumer_surveys/lib/google_api/consumer_surveys/v2/model/token_pagination.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/consumer_surveys/lib/google_api/consumer_surveys/v2/model/token_pagination.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.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...
29.978261
82
0.754895
21f1c57501eff47242b9471ce7eb9fe6e70c8b94
1,706
exs
Elixir
test/messenger_bot/client/middlewares/event_bus_test.exs
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
16
2018-04-19T23:50:47.000Z
2020-07-18T08:28:07.000Z
test/messenger_bot/client/middlewares/event_bus_test.exs
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
62
2018-11-05T08:21:23.000Z
2021-08-02T13:15:16.000Z
test/messenger_bot/client/middlewares/event_bus_test.exs
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
4
2019-04-25T13:30:45.000Z
2020-07-12T15:39:23.000Z
defmodule MessengerBot.Client.Middleware.EventBusTest do use ExUnit.Case, async: false alias EventBus.Manager.Notification alias MessengerBot.Config @app_id "1881" @page_id "1234" @topic :mb_test @opts [ app_id: @app_id, page_id: @page_id, eb_tx_id: UUID.uuid4(), ...
26.65625
80
0.646542
21f1ca5e1bb6c3418f86984c1a9fb869f9223402
1,317
exs
Elixir
mix.exs
Roberto-XY/explorer
f6c88ae9959748180c6c07392e2b56080fc9a249
[ "MIT" ]
null
null
null
mix.exs
Roberto-XY/explorer
f6c88ae9959748180c6c07392e2b56080fc9a249
[ "MIT" ]
null
null
null
mix.exs
Roberto-XY/explorer
f6c88ae9959748180c6c07392e2b56080fc9a249
[ "MIT" ]
null
null
null
defmodule Explorer.MixProject do use Mix.Project @source_url "https://github.com/elixir-nx/explorer" @version "0.1.0-dev" def project do [ app: :explorer, name: "Explorer", version: @version, elixir: "~> 1.12", package: package(), deps: deps(), docs: docs() ] ...
18.814286
55
0.507973
21f1cd87b9809296982970833bf09050e878054f
573
exs
Elixir
HackerRank/Functional Programming/Elixir/mix.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
HackerRank/Functional Programming/Elixir/mix.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
HackerRank/Functional Programming/Elixir/mix.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
defmodule Solution.MixProject do use Mix.Project def project do [ app: :solution, version: "0.1.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_a...
19.758621
87
0.577661
21f1e578a93dfb1c437694c10d0a048dd848eea9
1,586
ex
Elixir
lib/cotoami/services/coto_search_service.ex
reallinfo/cotoami
faaee71710019fa55a8215ea60d1d3bafc30d506
[ "Apache-2.0" ]
null
null
null
lib/cotoami/services/coto_search_service.ex
reallinfo/cotoami
faaee71710019fa55a8215ea60d1d3bafc30d506
[ "Apache-2.0" ]
null
null
null
lib/cotoami/services/coto_search_service.ex
reallinfo/cotoami
faaee71710019fa55a8215ea60d1d3bafc30d506
[ "Apache-2.0" ]
null
null
null
defmodule Cotoami.CotoSearchService do @moduledoc """ Provides Coto full-text search functions. """ require Logger import Ecto.Query alias Cotoami.Amishi def search(query, %Amishi{} = amishi, search_string) do add_query(query, amishi, normalize(search_string)) end defmacro matching_coto_ids_and...
26.433333
70
0.610971
21f22ced53b025e84533817107f36dc9f9a59683
789
ex
Elixir
lib/mechanize/page/elementable.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
25
2020-06-26T02:21:35.000Z
2022-03-05T18:51:46.000Z
lib/mechanize/page/elementable.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
29
2019-07-02T21:50:06.000Z
2020-05-28T18:34:01.000Z
lib/mechanize/page/elementable.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
4
2020-06-24T02:11:47.000Z
2022-03-06T00:50:59.000Z
defprotocol Mechanize.Page.Elementable do @moduledoc """ Protocol used to extract element data using `Mechanize.Page.Element` module. To implement this protocol you have to implement a single function `Mechanize.Page.Elementable.element/1`. ## Example Implementation of Elementable for a `Mechanize.Form`:...
23.205882
78
0.708492
21f23af919e9116f10d2c80e087649f964c22902
525
ex
Elixir
test/helpers/session_store.ex
elixir-inspector/ref_inspector_plug
cc87a20edf2406de8e915e46c23908831a4a1fc1
[ "Apache-2.0" ]
1
2020-01-13T20:37:24.000Z
2020-01-13T20:37:24.000Z
test/helpers/session_store.ex
elixir-inspector/ref_inspector_plug
cc87a20edf2406de8e915e46c23908831a4a1fc1
[ "Apache-2.0" ]
null
null
null
test/helpers/session_store.ex
elixir-inspector/ref_inspector_plug
cc87a20edf2406de8e915e46c23908831a4a1fc1
[ "Apache-2.0" ]
null
null
null
defmodule RefInspector.Plug.TestHelpers.SessionStore do @moduledoc false @behaviour Plug.Session.Store def init(_opts), do: nil def get(_conn, sid, nil) do {sid, Process.get({:session, sid}) || %{}} end def delete(_conn, sid, nil) do Process.delete({:session, sid}) :ok end def put(conn,...
19.444444
55
0.645714
21f24c2d782c6e932b1d3310f3299df3181af1f2
11,229
exs
Elixir
test/unit/confex/resolver_test.exs
DavidMikeSimon/confex
bfa74b9576a2eaa39670b9331180e8ba9831072c
[ "MIT" ]
null
null
null
test/unit/confex/resolver_test.exs
DavidMikeSimon/confex
bfa74b9576a2eaa39670b9331180e8ba9831072c
[ "MIT" ]
null
null
null
test/unit/confex/resolver_test.exs
DavidMikeSimon/confex
bfa74b9576a2eaa39670b9331180e8ba9831072c
[ "MIT" ]
null
null
null
defmodule Confex.ResolverTest do use ExUnit.Case, async: false alias Confex.Resolver doctest Confex.Resolver defmodule TestAdapter do @behaviour Confex.Adapter def fetch_value(key), do: {:ok, key} end describe "resolve/1" do test "resolves nil values" do assert Resolver.resolve(nil) == ...
40.392086
117
0.618399
21f2535dcdb63e2fc5dc61182892a202970060e2
90
exs
Elixir
test/views/page_view_test.exs
cebartling/horse-racing-demo
7a50f2de35d275ed0dec2326fbba89f9ab3ee113
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
cebartling/horse-racing-demo
7a50f2de35d275ed0dec2326fbba89f9ab3ee113
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
cebartling/horse-racing-demo
7a50f2de35d275ed0dec2326fbba89f9ab3ee113
[ "MIT" ]
null
null
null
defmodule HorseRacingDemo.PageViewTest do use HorseRacingDemo.ConnCase, async: true end
22.5
43
0.844444
21f26a4ef9769661cfdad42955f7a66c8a73978c
86
ex
Elixir
03-chapter/10_test_list.ex
herminiotorres/elixir-in-action
25db6f50ce4d2587d5a8e44a0362a3dd8981741c
[ "MIT" ]
null
null
null
03-chapter/10_test_list.ex
herminiotorres/elixir-in-action
25db6f50ce4d2587d5a8e44a0362a3dd8981741c
[ "MIT" ]
null
null
null
03-chapter/10_test_list.ex
herminiotorres/elixir-in-action
25db6f50ce4d2587d5a8e44a0362a3dd8981741c
[ "MIT" ]
null
null
null
defmodule TestList do def empty?([]), do: true def empty?([_ | _]), do: false end
17.2
32
0.616279
21f2a715467105bbb50a561f07f33a397d20b817
1,280
exs
Elixir
test/shopify_api/rest/tag_test.exs
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
null
null
null
test/shopify_api/rest/tag_test.exs
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
null
null
null
test/shopify_api/rest/tag_test.exs
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
null
null
null
defmodule ShopifyAPI.REST.TagTest do use ExUnit.Case use ExUnitProperties alias ShopifyAPI.REST.Tag describe "Tags.encode and decode" do property "single tag test" do check all( tag_name <- string(:alphanumeric), tag_name != "", tag_value <- string(:alphanum...
29.090909
86
0.555469
21f2c52ca85c9d3813370cbdb9cb7ccd5f555d67
4,227
ex
Elixir
lib/shopify_api/auth_token_server.ex
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
null
null
null
lib/shopify_api/auth_token_server.ex
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
null
null
null
lib/shopify_api/auth_token_server.ex
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
null
null
null
defmodule ShopifyAPI.AuthTokenServer do use GenServer require Logger alias ShopifyAPI.AuthToken @name :shopify_api_auth_token_server def start_link(_opts) do Logger.info(fn -> "Starting #{__MODULE__} ..." end) GenServer.start_link(__MODULE__, %{}, name: @name) end @spec all :: map() def all,...
27.627451
94
0.644429
21f2d3287b561122649c6566a9c5de83e1c87068
886
ex
Elixir
clients/source_repo/lib/google_api/source_repo/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/source_repo/lib/google_api/source_repo/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/source_repo/lib/google_api/source_repo/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# 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.814815
74
0.759594
21f2fa05ada1b61b791633ccc8a4d43d968a9335
2,891
ex
Elixir
test/support/factory.ex
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
31
2017-11-25T00:18:12.000Z
2022-03-03T20:11:17.000Z
test/support/factory.ex
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
12
2018-01-09T21:18:30.000Z
2021-09-06T10:35:43.000Z
test/support/factory.ex
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
13
2018-02-08T15:15:11.000Z
2020-08-13T12:25:18.000Z
defmodule Commanded.Scheduler.Factory do @moduledoc false alias Commanded.Scheduler.ExampleCommand alias Commanded.Scheduler.{CancelSchedule, ScheduleOnce, ScheduleRecurring, TriggerSchedule} alias Commanded.Scheduler.Router alias ExampleDomain.TicketBooking.Commands.{ReserveTicket, TimeoutReservation} ali...
24.922414
94
0.692494
21f308bf2738bc7beedd085ae7239a47555f7275
129
ex
Elixir
programming/elixir/learning_elixir_code_bundle/code/chapter9/yaml_config_parser.ex
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
1
2020-01-09T03:22:09.000Z
2020-01-09T03:22:09.000Z
elixir/tour/learning_elixir_code_bundle/code/chapter9/yaml_config_parser.ex
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
elixir/tour/learning_elixir_code_bundle/code/chapter9/yaml_config_parser.ex
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
defmodule YamlConfigParser do @behaviour ConfigParser def parse(str), do: str def extensions(), do: ["yaml", "yml"] end
14.333333
39
0.689922
21f32f9b4b80553b14f1790392e793743ff26732
4,373
ex
Elixir
installer/lib/phx_new/web.ex
tgxworld/phoenix
89b885591431170de73e372d9544d841bedca3db
[ "MIT" ]
2
2020-07-24T08:34:36.000Z
2021-02-08T03:21:49.000Z
installer/lib/phx_new/web.ex
tgxworld/phoenix
89b885591431170de73e372d9544d841bedca3db
[ "MIT" ]
null
null
null
installer/lib/phx_new/web.ex
tgxworld/phoenix
89b885591431170de73e372d9544d841bedca3db
[ "MIT" ]
null
null
null
defmodule Phx.New.Web do @moduledoc false use Phx.New.Generator alias Phx.New.{Project} @pre "phx_umbrella/apps/app_name_web" template :new, [ {:config, "#{@pre}/config/config.exs", :project, "config/config.exs"}, {:config, "#{@pre}/config/dev.exs", :project, "config/dev.exs...
52.686747
122
0.583581
21f3315fe0db1a716cf9833a46835d2bab3ce126
220
exs
Elixir
priv/repo/migrations/20210312133630_add_postgis.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
13
2021-03-06T12:16:34.000Z
2022-03-31T09:46:35.000Z
priv/repo/migrations/20210312133630_add_postgis.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
148
2021-03-05T12:44:55.000Z
2022-03-11T12:09:06.000Z
priv/repo/migrations/20210312133630_add_postgis.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
2
2021-06-02T14:31:21.000Z
2022-02-14T08:36:51.000Z
defmodule Hierbautberlin.Repo.Migrations.AddPostgis do use Ecto.Migration def up do execute "CREATE EXTENSION IF NOT EXISTS postgis" end def down do execute "DROP EXTENSION IF EXISTS postgis" end end
18.333333
54
0.75
21f35decc47bf09572ab1211a99e3377d3788d1a
233
ex
Elixir
lib/web/plugs/graphql_context.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/web/plugs/graphql_context.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/web/plugs/graphql_context.ex
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Accent.Plugs.GraphQLContext do @behaviour Plug @type t :: %{context: map()} import Plug.Conn def init(opts), do: opts def call(conn, _) do put_private(conn, :absinthe, %{context: %{conn: conn}}) end end
16.642857
59
0.656652
21f36b19ba83f335e358ceb9ef8adb2b2d8286c6
12,804
ex
Elixir
lib/livebook/live_markdown/import.ex
admariner/livebook
4ba81cc1149493afed4b7ca5bd26c2c314a683f8
[ "Apache-2.0" ]
657
2021-07-15T07:38:37.000Z
2022-03-31T16:47:48.000Z
lib/livebook/live_markdown/import.ex
livebook-dev/livebook
4ba81cc1149493afed4b7ca5bd26c2c314a683f8
[ "Apache-2.0" ]
411
2021-07-15T07:41:54.000Z
2022-03-31T21:34:22.000Z
lib/livebook/live_markdown/import.ex
admariner/livebook
4ba81cc1149493afed4b7ca5bd26c2c314a683f8
[ "Apache-2.0" ]
112
2021-07-16T02:13:21.000Z
2022-03-30T01:25:08.000Z
defmodule Livebook.LiveMarkdown.Import do alias Livebook.Notebook alias Livebook.LiveMarkdown.MarkdownHelpers @doc """ Converts the given Markdown document into a notebook data structure. Returns the notebook structure and a list of informative messages/warnings related to the imported input. """ @spe...
32.251889
115
0.642534
21f378f5e8431605b803ca0a31cf4357591c5145
761
ex
Elixir
lib/core/asset_workers/firmware_config_worker.ex
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
843
2016-10-05T23:46:05.000Z
2022-03-14T04:31:55.000Z
farmbot_core/lib/farmbot_core/asset_workers/firmware_config_worker.ex
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
455
2016-10-15T08:49:16.000Z
2022-03-15T12:23:04.000Z
farmbot_core/lib/farmbot_core/asset_workers/firmware_config_worker.ex
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
261
2016-10-10T04:37:06.000Z
2022-03-13T21:07:38.000Z
defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.FirmwareConfig do @moduledoc """ This asset worker does not get restarted. It instead responds to GenServer calls. """ use GenServer require FarmbotCore.Logger alias FarmbotCore.Asset.FirmwareConfig def preload(%FirmwareConfig{}), do: [] def t...
27.178571
76
0.74113
21f3917521607c9eca2f59394710fc958300523c
21
ex
Elixir
lib/lp2.ex
RobertDober/LP2
f0a513fd7455352f6e983091bd1e58b7dd2caf28
[ "Apache-2.0" ]
null
null
null
lib/lp2.ex
RobertDober/LP2
f0a513fd7455352f6e983091bd1e58b7dd2caf28
[ "Apache-2.0" ]
null
null
null
lib/lp2.ex
RobertDober/LP2
f0a513fd7455352f6e983091bd1e58b7dd2caf28
[ "Apache-2.0" ]
null
null
null
defmodule LP2 do end
7
16
0.809524
21f39f9607418a4e7818c936e54e4324d950627f
11,944
ex
Elixir
lib/protocol.ex
shahryarjb/timex
d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a
[ "MIT" ]
1,623
2015-01-03T16:53:19.000Z
2022-03-27T01:25:50.000Z
lib/protocol.ex
shahryarjb/timex
d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a
[ "MIT" ]
654
2015-01-04T23:59:47.000Z
2022-03-08T01:02:01.000Z
lib/protocol.ex
shahryarjb/timex
d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a
[ "MIT" ]
428
2015-01-04T19:37:37.000Z
2022-03-31T10:48:44.000Z
defprotocol Timex.Protocol do @moduledoc """ This protocol defines the API for functions which take a `Date`, `NaiveDateTime`, or `DateTime` as input. """ @fallback_to_any true alias Timex.Types @doc """ Convert a date/time value to a Julian calendar date number """ @spec to_julian(Types.valid_da...
37.442006
101
0.695831
21f3a3d1dc1f8540c206ae44ac1aae8468e3ab33
533
ex
Elixir
sensors/lib/air_sensors/application.ex
Jwsonic/air
b4f6ed4b2be47aee78b40345044c96de1fc49813
[ "MIT" ]
1
2021-12-14T09:20:06.000Z
2021-12-14T09:20:06.000Z
sensors/lib/air_sensors/application.ex
Jwsonic/air
b4f6ed4b2be47aee78b40345044c96de1fc49813
[ "MIT" ]
null
null
null
sensors/lib/air_sensors/application.ex
Jwsonic/air
b4f6ed4b2be47aee78b40345044c96de1fc49813
[ "MIT" ]
null
null
null
defmodule AirSensors.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ AirSensors.Repo, AirSensors.TemperatureWorker, AirSensors.ParticleWorker ] #...
25.380952
64
0.722326
21f3d991dc15cbfdf0740ca9aedb656afba3601f
4,979
ex
Elixir
lib/coherence/schemas.ex
Sathras/coherence-react
c17f9143daceecade7ae724db2d51815f9d09c00
[ "MIT" ]
2
2018-01-19T06:12:16.000Z
2018-03-12T07:17:17.000Z
lib/coherence/schemas.ex
Sathras/coherence-react
c17f9143daceecade7ae724db2d51815f9d09c00
[ "MIT" ]
null
null
null
lib/coherence/schemas.ex
Sathras/coherence-react
c17f9143daceecade7ae724db2d51815f9d09c00
[ "MIT" ]
null
null
null
defmodule Coherence.Schemas do use Coherence.Config import Ecto.Query def schema(schema) do Module.concat [Config.module, Coherence, schema] end def list_user do Config.repo.all Config.user_schema end def list_by_user(opts) do Config.repo.all query_by(Config.user_schema, opts) end de...
25.403061
75
0.679253
21f3ee48aed4943780b3f33bbf2ce5c54a337d47
1,715
ex
Elixir
lib/nanocrawler_web.ex
meltingice/nanocrawler-phoenix
2477e8cb63a04d89eeda676c474e9b89c29da0e5
[ "MIT" ]
1
2020-04-19T07:48:46.000Z
2020-04-19T07:48:46.000Z
lib/nanocrawler_web.ex
meltingice/nanocrawler-phoenix
2477e8cb63a04d89eeda676c474e9b89c29da0e5
[ "MIT" ]
2
2021-03-09T20:27:19.000Z
2021-05-10T17:32:50.000Z
lib/nanocrawler_web.ex
meltingice/nanocrawler-phoenix
2477e8cb63a04d89eeda676c474e9b89c29da0e5
[ "MIT" ]
null
null
null
defmodule NanocrawlerWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use NanocrawlerWeb, :controller use NanocrawlerWeb, :view The definitions below will be executed for every view, ...
24.15493
83
0.699125
21f42122df258b3f84c042147c6544880f4981db
208
exs
Elixir
distillator_umbrella/apps/distillator_web/test/distillator_web/controllers/page_controller_test.exs
MadPumpkin/ex_distillator
6153c9c25e7ccc9117fb4db053a7df9d703d58ff
[ "Apache-2.0" ]
null
null
null
distillator_umbrella/apps/distillator_web/test/distillator_web/controllers/page_controller_test.exs
MadPumpkin/ex_distillator
6153c9c25e7ccc9117fb4db053a7df9d703d58ff
[ "Apache-2.0" ]
null
null
null
distillator_umbrella/apps/distillator_web/test/distillator_web/controllers/page_controller_test.exs
MadPumpkin/ex_distillator
6153c9c25e7ccc9117fb4db053a7df9d703d58ff
[ "Apache-2.0" ]
null
null
null
defmodule DistillatorWeb.PageControllerTest do use DistillatorWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
23.111111
60
0.692308
21f44748193f57ce4f25f6648a0457189095975c
1,389
exs
Elixir
apps/plant_monitor_web/config/config.exs
bartoszgorka/PlantMonitor
23e18cd76c51bd8eee021ee98668926de885047b
[ "MIT" ]
2
2019-01-25T21:21:56.000Z
2021-02-24T08:18:51.000Z
apps/plant_monitor_web/config/config.exs
bartoszgorka/PlantMonitor
23e18cd76c51bd8eee021ee98668926de885047b
[ "MIT" ]
null
null
null
apps/plant_monitor_web/config/config.exs
bartoszgorka/PlantMonitor
23e18cd76c51bd8eee021ee98668926de885047b
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :plant_monitor_web, namespace: PlantMoni...
31.568182
86
0.779698
21f44ee48ec75221594dbf115fd626281ec51961
510
ex
Elixir
lib/sms77/lookup.ex
sms77io/elixir
7767673fd48bbbc31afdd02aa781d7e6afcbf62d
[ "MIT" ]
1
2021-04-07T22:05:26.000Z
2021-04-07T22:05:26.000Z
lib/sms77/lookup.ex
sms77io/elixir
7767673fd48bbbc31afdd02aa781d7e6afcbf62d
[ "MIT" ]
null
null
null
lib/sms77/lookup.ex
sms77io/elixir
7767673fd48bbbc31afdd02aa781d7e6afcbf62d
[ "MIT" ]
null
null
null
defmodule Sms77.Lookup do @moduledoc "All code regarding endpoint /lookup belongs here." alias HTTPoison.Response alias Sms77.HTTPClient def post(params) do case HTTPClient.post("lookup", {:form, Map.to_list(params)}) do {:ok, %Response{status_code: 200, body: body}} -> {:ok, body} {:ok, %Res...
24.285714
68
0.641176
21f45dc8c29570d4b3924d43e8739a1973fecd4b
865
ex
Elixir
lib/plausible_web/plugs/authorize_stats_plug.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
2
2020-05-16T13:48:44.000Z
2020-05-22T09:52:36.000Z
lib/plausible_web/plugs/authorize_stats_plug.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
2
2020-07-09T21:44:35.000Z
2020-07-14T07:06:10.000Z
lib/plausible_web/plugs/authorize_stats_plug.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
null
null
null
defmodule PlausibleWeb.AuthorizeStatsPlug do import Plug.Conn use Plausible.Repo def init(options) do options end def call(conn, _opts) do site = Repo.get_by(Plausible.Site, domain: conn.params["domain"]) if !site do PlausibleWeb.ControllerHelpers.render_error(conn, 404) |> halt else ...
27.03125
94
0.669364
21f489fd66ea45ab7faa1dd4138a85035bae8cab
2,847
ex
Elixir
lib/grizzly/command_class/thermostat_setpoint/set.ex
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
lib/grizzly/command_class/thermostat_setpoint/set.ex
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
lib/grizzly/command_class/thermostat_setpoint/set.ex
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
defmodule Grizzly.CommandClass.ThermostatSetpoint.Set do @moduledoc """ Command module to work with the ThermostatSetpoint command class SET command Command Options: * `:value` - What the value of the set-point should be * `:type` - The set-point type being targeted: `:cooling`, `:heating`, or a byte ...
31.633333
93
0.602388
21f4ec920f6d4d37c97db4adeec08b17b52b9528
1,255
ex
Elixir
apps/admin_api/lib/admin_api/v1/controllers/invite_controller.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/admin_api/lib/admin_api/v1/controllers/invite_controller.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/controllers/invite_controller.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule AdminAPI.V1.InviteController do use AdminAPI, :controller import AdminAPI.V1.ErrorHandler alias AdminAPI.V1.UserView alias EWallet.Web.Preloader alias EWalletDB.{Invite, User} @doc """ Validates the user's invite token and activates the user. """ @spec accept(Plug.Conn.t(), map()) :: Plug.C...
31.375
103
0.63745
21f4eef7e6504e8f811f4e19e6098d98952f6916
112
exs
Elixir
test/phoenix_container_example_web/views/page_view_test.exs
wwaldner-amtelco/phoenix_container_example
aeee424b40f444fe6bbfeab4d57b78d201397701
[ "Apache-2.0" ]
19
2020-07-21T06:03:36.000Z
2022-03-21T22:35:22.000Z
test/phoenix_container_example_web/views/page_view_test.exs
wwaldner-amtelco/phoenix_container_example
aeee424b40f444fe6bbfeab4d57b78d201397701
[ "Apache-2.0" ]
1
2022-03-08T10:26:55.000Z
2022-03-08T10:26:55.000Z
test/phoenix_container_example_web/views/page_view_test.exs
wwaldner-amtelco/phoenix_container_example
aeee424b40f444fe6bbfeab4d57b78d201397701
[ "Apache-2.0" ]
1
2022-02-09T01:25:09.000Z
2022-02-09T01:25:09.000Z
defmodule PhoenixContainerExampleWeb.PageViewTest do use PhoenixContainerExampleWeb.ConnCase, async: true end
28
54
0.875
21f5172504ac189557726055de6b0b6d4e9ac684
1,692
ex
Elixir
lib/mix/lib/mix/local.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/mix/lib/mix/local.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/local.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Local do @moduledoc false @doc """ The path for local archives. Check `mix archive` for info. """ def archives_path do System.get_env("MIX_ARCHIVES") || Path.join(Mix.Utils.mix_home, "archives") end @doc """ Append archives paths into Erlang code path. """ def append_arc...
24.171429
94
0.634752
21f51b8edcb148d99e9be70e6690be8c754939c0
3,673
ex
Elixir
lib/oban/queue/executor.ex
tonjo/oban
9b1a6edfec2a4d225ab6969f8886dc021e2df34c
[ "Apache-2.0" ]
null
null
null
lib/oban/queue/executor.ex
tonjo/oban
9b1a6edfec2a4d225ab6969f8886dc021e2df34c
[ "Apache-2.0" ]
null
null
null
lib/oban/queue/executor.ex
tonjo/oban
9b1a6edfec2a4d225ab6969f8886dc021e2df34c
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Queue.Executor do @moduledoc false require Logger alias Oban.{Breaker, Config, Job, Query, Worker} @type success :: {:success, Job.t()} @type failure :: {:failure, Job.t(), Worker.t(), atom(), term()} @spec call(Job.t(), Config.t()) :: :success | :failure def call(%Job{} = job, %Config{...
27.616541
98
0.609039
21f5338aba3a33fc356bb577ba91b071db5939ee
1,454
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/api_endpoint_handler.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/api_endpoint_handler.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/api_endpoint_handler.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...
30.93617
115
0.742091
21f57c8d402a8097c653c13695cf8daf2d980b16
127
exs
Elixir
config/test.exs
niklaslong/tinybeam
fa69e985cfe8c5145cd9238dd01ff8804613e107
[ "MIT" ]
null
null
null
config/test.exs
niklaslong/tinybeam
fa69e985cfe8c5145cd9238dd01ff8804613e107
[ "MIT" ]
9
2020-06-16T10:41:57.000Z
2020-06-16T10:44:04.000Z
config/test.exs
niklaslong/tinybeam
fa69e985cfe8c5145cd9238dd01ff8804613e107
[ "MIT" ]
null
null
null
import Config config :tinybeam, router: Tinybeam.TestRouter, host: "127.0.0.1", host_rs: "127.0.0.1:4001", port: 4001
15.875
30
0.669291
21f57f2e54211e1b5f813646ef84d589a9879942
5,954
ex
Elixir
kousa/lib/beef/follows.ex
linus-jansson/dogehouse
67bd5a80c2ce6b7eb7f8dfa8998ff97f62da4364
[ "MIT" ]
2
2021-04-01T04:21:24.000Z
2021-04-01T04:21:25.000Z
kousa/lib/beef/follows.ex
linus-jansson/dogehouse
67bd5a80c2ce6b7eb7f8dfa8998ff97f62da4364
[ "MIT" ]
2
2022-02-15T04:33:25.000Z
2022-02-28T01:39:56.000Z
kousa/lib/beef/follows.ex
linus-jansson/dogehouse
67bd5a80c2ce6b7eb7f8dfa8998ff97f62da4364
[ "MIT" ]
null
null
null
defmodule Beef.Follows do @moduledoc """ Context module for Follows. This will eventually go away and be replaced by using associations on users. """ import Ecto.Query @fetch_limit 21 alias Beef.Schemas.Follow alias Beef.Schemas.User alias Beef.Schemas.Room alias Kousa.Utils.Pagination @spe...
26.462222
85
0.560967
21f58de4a40c428b815660985e00cf349a6f660e
3,454
exs
Elixir
test/chat_api_web/controllers/slack_controller_test.exs
primeithard/livachat
b338467d3205ba2afc49a31af2fc1438f75aab47
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/slack_controller_test.exs
primeithard/livachat
b338467d3205ba2afc49a31af2fc1438f75aab47
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/slack_controller_test.exs
primeithard/livachat
b338467d3205ba2afc49a31af2fc1438f75aab47
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.SlackControllerTest do use ChatApiWeb.ConnCase import ExUnit.CaptureLog alias ChatApi.{ Accounts, Conversations, Messages, SlackAuthorizations, SlackConversationThreads } @slack_channel "#test" @slack_thread_ts "123.456" @slack_user_id "U123" @auth_params %{ ...
27.632
87
0.648813
21f5acfd4ccc914048f99b0ab5d36562bcf5407b
916
ex
Elixir
lib/ingest_api/unstructured.ex
cblage/logger_humio_backend
1cc369af6032e9a44bcff2a3cc8ca37a22326f3d
[ "MIT" ]
null
null
null
lib/ingest_api/unstructured.ex
cblage/logger_humio_backend
1cc369af6032e9a44bcff2a3cc8ca37a22326f3d
[ "MIT" ]
null
null
null
lib/ingest_api/unstructured.ex
cblage/logger_humio_backend
1cc369af6032e9a44bcff2a3cc8ca37a22326f3d
[ "MIT" ]
null
null
null
defmodule Logger.Backend.Humio.IngestApi.Unstructured do @moduledoc """ This Ingest API implementation is for Humio's `Unstructured` API. [Humio Documentation]: https://docs.humio.com/api/ingest/#parser """ @behaviour Logger.Backend.Humio.IngestApi @path "/api/v1/ingest/humio-unstructured" @content_type ...
22.9
80
0.629913
21f5c952d4302fbb535779840071d0b8eb31ac09
1,622
ex
Elixir
clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/dimension_order_by.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/dimension_order_by.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/dimension_order_by.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "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...
32.44
107
0.731813
21f5d22ba456745a67fa6d9d9de60132a1bd14b1
896
ex
Elixir
apps/idp/src/idp/validators/password.ex
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/src/idp/validators/password.ex
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/src/idp/validators/password.ex
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
defmodule Idp.Validators.Password do @moduledoc false import Ecto.Changeset, only: [add_error: 3] @doc """ Check if new password and its confirmation both match. """ def validate_password_confirmation(%Ecto.Changeset{} = changeset) do %{ new_password: password, new_password_confirmation: co...
22.4
74
0.648438
21f5e57788b22f2d05fa8db058982f9dd3ff720d
1,589
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/test_permissions_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/test_permissions_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/test_permissions_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.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...
33.104167
199
0.739459
21f61474f1a400b4a82fe6522e1ed6d2ae693891
1,044
ex
Elixir
deps/timex/lib/comparable/naivedatetime.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
1
2020-01-31T10:23:37.000Z
2020-01-31T10:23:37.000Z
deps/timex/lib/comparable/naivedatetime.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
null
null
null
deps/timex/lib/comparable/naivedatetime.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
1
2019-11-23T12:09:14.000Z
2019-11-23T12:09:14.000Z
defimpl Timex.Comparable, for: NaiveDateTime do alias Timex.AmbiguousDateTime alias Timex.Comparable.Utils alias Timex.Comparable.Diff import Timex.Macros def compare(a, :epoch, granularity), do: compare(a, Timex.epoch(), granularity) def compare(a, :zero, granularity), do: compare(a, ...
40.153846
91
0.664751
21f63368b2896b384e69391c8f4830296f81e978
2,472
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/policy.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/policy.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/policy.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...
57.488372
1,120
0.684466
21f63f2315412cb61fde1672acc70001caf1293a
2,088
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/create_tenancy_unit_request.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/create_tenancy_unit_request.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/create_tenancy_unit_request.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "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...
43.5
554
0.775862
21f64760edda4067b9e6bc22d44ac6149560acaf
4,905
ex
Elixir
lib/aws/generated/iot_data_plane.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
341
2018-04-04T19:06:19.000Z
2022-03-25T21:34:23.000Z
lib/aws/generated/iot_data_plane.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
82
2018-04-04T17:32:33.000Z
2022-03-24T15:12:04.000Z
lib/aws/generated/iot_data_plane.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
76
2018-04-10T20:19:44.000Z
2022-03-15T13:49:19.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.IoTDataPlane do @moduledoc """ AWS IoT AWS IoT-Data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smar...
23.81068
127
0.627931
21f668b4f3401ab27ae399c9c6402a22d8ef32ee
8,180
ex
Elixir
lib/events/events.ex
bengtson/solar
705cb9b43e796563c8896f51fe9af6f2f16982c1
[ "Apache-2.0" ]
9
2017-01-28T19:05:40.000Z
2021-11-19T00:25:03.000Z
lib/events/events.ex
bengtson/solar
705cb9b43e796563c8896f51fe9af6f2f16982c1
[ "Apache-2.0" ]
null
null
null
lib/events/events.ex
bengtson/solar
705cb9b43e796563c8896f51fe9af6f2f16982c1
[ "Apache-2.0" ]
1
2019-08-24T19:52:01.000Z
2019-08-24T19:52:01.000Z
defmodule Solar.Events do @moduledoc """ The `Solar.Events` module provides the calculations for sunrise and sunset times. This is likely to be refactored as other events are added. """ @doc """ The event function takes a minimum of two parameters, the event of interest which can be either :rise or :set ...
34.514768
119
0.657213
21f68e6092eb4de60ba4fcbf026db09666d1e940
5,790
ex
Elixir
lib/action.ex
mayel/absinthe_client
6e5f06e62faebf34307f12e7b5596e3921d73254
[ "MIT" ]
1
2021-05-24T14:28:22.000Z
2021-05-24T14:28:22.000Z
lib/action.ex
mayel/absinthe_client
6e5f06e62faebf34307f12e7b5596e3921d73254
[ "MIT" ]
null
null
null
lib/action.ex
mayel/absinthe_client
6e5f06e62faebf34307f12e7b5596e3921d73254
[ "MIT" ]
null
null
null
defmodule AbsintheClient.Action do @moduledoc false @behaviour Plug @behaviour Absinthe.Phase alias Absinthe.{Blueprint, Phase} alias AbsintheClient.Helpers @impl Absinthe.Phase def run(bp, opts) do case internal?(bp, opts) do true -> #IO.inspect(internal: true) {:swap, bp, Ph...
28.106796
97
0.676166
21f6c5e38356a9baade637b7926f258283fb0867
722
ex
Elixir
web/gettext.ex
jusroberts/pingpong_server
fd090413076c84e4f7297349d4c9fd6323bd1ddf
[ "MIT" ]
null
null
null
web/gettext.ex
jusroberts/pingpong_server
fd090413076c84e4f7297349d4c9fd6323bd1ddf
[ "MIT" ]
null
null
null
web/gettext.ex
jusroberts/pingpong_server
fd090413076c84e4f7297349d4c9fd6323bd1ddf
[ "MIT" ]
null
null
null
defmodule PingpongServer.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import PingpongServer.Gettext # Simple translation gettext "He...
28.88
71
0.686981
21f6e1fe185afd3cb181b77ee7a06b89139ed6f7
124
exs
Elixir
.formatter.exs
alex-strizhakov/clickhousex
fd59717a22b2931322d4cf4c25b44d3bac6279ed
[ "Apache-2.0" ]
43
2018-04-02T07:00:44.000Z
2020-08-14T18:47:26.000Z
.formatter.exs
alex-strizhakov/clickhousex
fd59717a22b2931322d4cf4c25b44d3bac6279ed
[ "Apache-2.0" ]
21
2020-09-07T08:19:59.000Z
2021-08-25T03:46:38.000Z
.formatter.exs
alex-strizhakov/clickhousex
fd59717a22b2931322d4cf4c25b44d3bac6279ed
[ "Apache-2.0" ]
22
2018-08-08T07:45:44.000Z
2020-09-01T07:58:54.000Z
# Used by "mix format" [ inputs: ["{mix,.formatter,.credo}.exs", "{config,lib,test}/**/*.{ex,exs}"], line_length: 120 ]
20.666667
77
0.58871
21f6f7829e1718d77a89c325e4c801093c66302b
581
ex
Elixir
lib/phantomchain/crypto/transactions/serialisers/transfer.ex
PhantomChain/elixir-crypto
d842920d91a9bcbe997736b487f4e74ba0bf2fe3
[ "MIT" ]
null
null
null
lib/phantomchain/crypto/transactions/serialisers/transfer.ex
PhantomChain/elixir-crypto
d842920d91a9bcbe997736b487f4e74ba0bf2fe3
[ "MIT" ]
null
null
null
lib/phantomchain/crypto/transactions/serialisers/transfer.ex
PhantomChain/elixir-crypto
d842920d91a9bcbe997736b487f4e74ba0bf2fe3
[ "MIT" ]
null
null
null
defmodule PhantomChain.Crypto.Transactions.Serializers.Transfer do alias PhantomChain.Crypto.Helpers.Base58Check def serialize(bytes, transaction) do amount = <<transaction.amount::little-unsigned-integer-size(64)>> expiration = if Map.has_key?(transaction, :expiration) do <<transaction.expi...
27.666667
69
0.700516
21f6f8e4ebb47583f8f23b746515b81e8325b612
5,705
exs
Elixir
test/lib/apns/payload_test.exs
chvanikoff/apns4ex
7691a3ff660a722a37567f1a987e47583886a669
[ "MIT" ]
80
2015-09-08T16:35:52.000Z
2021-12-03T19:10:47.000Z
test/lib/apns/payload_test.exs
chvanikoff/apns4ex
7691a3ff660a722a37567f1a987e47583886a669
[ "MIT" ]
45
2015-09-10T19:33:12.000Z
2019-09-25T11:45:10.000Z
test/lib/apns/payload_test.exs
chvanikoff/apns4ex
7691a3ff660a722a37567f1a987e47583886a669
[ "MIT" ]
38
2015-09-08T16:37:27.000Z
2020-07-17T10:12:39.000Z
defmodule APNS.PayloadTest do use ExUnit.Case alias APNS.Payload @payload_min_size 38 setup do message = %APNS.Message{} |> Map.put(:token, String.duplicate("0", 64)) |> Map.put(:alert, String.duplicate("lorem ipsum", 100)) |> Map.put(:token, "1becf2320bcd26819f96d2d75d58b5e81b112...
41.34058
272
0.693427
21f6fe3d47880cb756455c696c62bcb6de785b1d
302
ex
Elixir
lib/option_calc/Utilities/ServiceLocator.ex
davidgrupp/Option-Calc
0b0e4607d827412e207d5fc5102aee001e93a821
[ "Apache-2.0" ]
null
null
null
lib/option_calc/Utilities/ServiceLocator.ex
davidgrupp/Option-Calc
0b0e4607d827412e207d5fc5102aee001e93a821
[ "Apache-2.0" ]
null
null
null
lib/option_calc/Utilities/ServiceLocator.ex
davidgrupp/Option-Calc
0b0e4607d827412e207d5fc5102aee001e93a821
[ "Apache-2.0" ]
null
null
null
defmodule OptionCalc.Utilities.ServiceLocator do def start_link, do: Agent.start(fn -> %{} end, name: __MODULE__ ) def add_service(service, node), do: Agent.update(__MODULE__, &(Map.put(&1, service, node))) def get_service(service), do: {service, Agent.get(__MODULE__, &(&1[service]))} end
50.333333
95
0.705298
21f70f1ce55ef5bb99533aac874d4207ef4192ee
1,081
ex
Elixir
test/support/conn_case.ex
akoutmos/ex_server
9daffd543e67c27c7c5b5a1a55bade925ab416b3
[ "MIT" ]
24
2022-02-18T01:13:32.000Z
2022-03-18T17:57:57.000Z
test/support/conn_case.ex
akoutmos/ex_server
9daffd543e67c27c7c5b5a1a55bade925ab416b3
[ "MIT" ]
null
null
null
test/support/conn_case.ex
akoutmos/ex_server
9daffd543e67c27c7c5b5a1a55bade925ab416b3
[ "MIT" ]
1
2022-02-25T20:31:39.000Z
2022-02-25T20:31:39.000Z
defmodule ExServerWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if t...
28.447368
62
0.73543
21f733074daecc64f5411574e174a2dbc9b35b02
10,979
ex
Elixir
lib/mix/lib/mix/local/installer.ex
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
1
2021-05-05T02:11:24.000Z
2021-05-05T02:11:24.000Z
lib/mix/lib/mix/local/installer.ex
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
6
2021-03-19T12:33:21.000Z
2021-04-02T17:52:45.000Z
lib/mix/lib/mix/local/installer.ex
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Local.Installer do @moduledoc false # This module implements pieces of functionality shared # by the archive- and escript-related tasks. @typedoc """ Installs types supported by `Mix.Local.Installer`. * `:project` - installs the current Mix project's artifact * `:local` - installs the...
27.936387
100
0.612078
21f737edbf4ab707a511e51ee09aadff4aca2391
225
exs
Elixir
priv/repo/migrations/20190331130808_add-foreign-key-indexes-to-retros-and-ideas.exs
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
523
2017-03-15T15:21:11.000Z
2022-03-14T03:04:18.000Z
priv/repo/migrations/20190331130808_add-foreign-key-indexes-to-retros-and-ideas.exs
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
524
2017-03-16T18:31:09.000Z
2022-02-26T10:02:06.000Z
priv/repo/migrations/20190331130808_add-foreign-key-indexes-to-retros-and-ideas.exs
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
60
2017-05-01T18:02:28.000Z
2022-03-04T21:04:56.000Z
defmodule :"Elixir.RemoteRetro.Repo.Migrations.Add-foreign-key-indexes-to-retros-and-ideas" do use Ecto.Migration def change do create index(:retros, [:facilitator_id]) create index(:ideas, [:user_id]) end end
25
94
0.733333
21f76194b59fb58af70f01f9a56c85e707f83fbd
1,682
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/candlestick_domain.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/candlestick_domain.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/candlestick_domain.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.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...
32.980392
112
0.737218
21f76b9645388071f577168b67e1c26e20a95fab
1,629
ex
Elixir
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
34.659574
126
0.763659
21f770f6f8d48f908e153b32f0f84bc11ed07af0
2,084
ex
Elixir
lib/history/predicted_funding_rates/create_chunks_producer.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history/predicted_funding_rates/create_chunks_producer.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history/predicted_funding_rates/create_chunks_producer.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defmodule History.PredictedFundingRates.CreateChunksProducer do use GenStage alias History.PredictedFundingRateJobs @behaviour Broadway.Producer defmodule State do @type t :: %State{ demand: non_neg_integer, last_job_id: non_neg_integer, receive_interval: non_neg_intege...
27.786667
97
0.699136
21f7a7d406ecca97a55cb28fde4d40417fba7d57
1,544
exs
Elixir
config/config.exs
kevindwells/broadway_cloud_pub_sub_example
65109ac6f710527ee7ddf8e924f0f1c9c517abc3
[ "Apache-2.0" ]
2
2020-11-16T20:41:05.000Z
2021-02-24T14:09:53.000Z
config/config.exs
kevindwells/broadway_cloud_pub_sub_example
65109ac6f710527ee7ddf8e924f0f1c9c517abc3
[ "Apache-2.0" ]
null
null
null
config/config.exs
kevindwells/broadway_cloud_pub_sub_example
65109ac6f710527ee7ddf8e924f0f1c9c517abc3
[ "Apache-2.0" ]
null
null
null
# 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.658537
85
0.765544
21f7ce0dfeb0da78588dec43ac75d1e751c2c3d2
1,135
exs
Elixir
config/config.exs
OtavioLMS/seven_segment
d4b83076ef7e935045c37f712006570bf8f86c7c
[ "MIT" ]
null
null
null
config/config.exs
OtavioLMS/seven_segment
d4b83076ef7e935045c37f712006570bf8f86c7c
[ "MIT" ]
null
null
null
config/config.exs
OtavioLMS/seven_segment
d4b83076ef7e935045c37f712006570bf8f86c7c
[ "MIT" ]
1
2018-10-05T10:18:32.000Z
2018-10-05T10:18:32.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.612903
73
0.754185
21f7ceedea08095ac6a2a7db1fb782facd7cfe34
178
ex
Elixir
lib/konvex/ability/to_check_key_exists.ex
KosyanMedia/konvex
03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a
[ "MIT" ]
1
2022-03-08T08:30:24.000Z
2022-03-08T08:30:24.000Z
lib/konvex/ability/to_check_key_exists.ex
KosyanMedia/konvex
03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a
[ "MIT" ]
1
2022-01-28T16:45:57.000Z
2022-01-28T16:56:22.000Z
lib/konvex/ability/to_check_key_exists.ex
KosyanMedia/konvex
03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a
[ "MIT" ]
null
null
null
defmodule Konvex.Ability.ToCheckKeyExists do @doc """ Checks whether key is associated with any (non-nil) value """ @callback key_exists?(key :: String.t) :: boolean end
25.428571
59
0.713483
21f7d990c27b6595a3a8ec09047a7f6f6a572ba6
577
ex
Elixir
lib/avrora.ex
matreyes/avrora
4eed729c24a016445ca0ec66f83821a57d669fba
[ "MIT" ]
null
null
null
lib/avrora.ex
matreyes/avrora
4eed729c24a016445ca0ec66f83821a57d669fba
[ "MIT" ]
null
null
null
lib/avrora.ex
matreyes/avrora
4eed729c24a016445ca0ec66f83821a57d669fba
[ "MIT" ]
null
null
null
defmodule Avrora do @moduledoc File.read!("README.md") use Supervisor defdelegate decode(payload), to: Avrora.Encoder defdelegate encode(payload, opts), to: Avrora.Encoder defdelegate decode(payload, opts), to: Avrora.Encoder defdelegate extract_schema(payload), to: Avrora.Encoder def start_link(opts \...
25.086957
91
0.714038
21f7fbbf7fc8268349c3fc1a7f630584ca7bd3c8
1,168
ex
Elixir
lib/mix/tasks/prune_events.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
lib/mix/tasks/prune_events.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
lib/mix/tasks/prune_events.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule Mix.Tasks.PruneEvents do use Mix.Task def run(db) do IO.inspect "Pruned events, device_stats, hotspot_stats from db" Mix.shell.cmd("psql -a #{db} -c 'select prune_events()'") Mix.shell.cmd("psql -a #{db} -c 'select prune_device_stats()'") Mix.shell.cmd("psql -a #{db} -c 'select prune_hots...
33.371429
98
0.701199
21f7fc544da5f118b54de1739e71ff7edb5ee3fa
23,626
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/public_advertised_prefixes.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/public_advertised_prefixes.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/public_advertised_prefixes.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...
54.689815
2,276
0.64738
21f817542e88ff7ce121e3b78f6e003328eeaa83
3,637
exs
Elixir
test/type/fetch_spec/lists_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
test/type/fetch_spec/lists_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
test/type/fetch_spec/lists_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
defmodule TypeTest.Type.FetchSpec.ListsTest do use ExUnit.Case, async: true import Type, only: :macros import Type.Operators import TypeTest.SpecCase @moduletag :fetch @source TypeTest.SpecExample.Lists alias Type.List test "literal/0 is empty list" do assert {:ok, identity_for([])} == Type.fet...
33.063636
120
0.675832
21f819cb61fc71bb82516ac38069b85b41c3f843
584
exs
Elixir
apps/snitch_core/priv/repo/migrations/20180516071627_associate_shipping_category_and_shipping_methods.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/priv/repo/migrations/20180516071627_associate_shipping_category_and_shipping_methods.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/priv/repo/migrations/20180516071627_associate_shipping_category_and_shipping_methods.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Repo.Migrations.AssociateShippingCategoryAndShippingMethods do use Ecto.Migration def change do create table("snitch_shipping_methods_categories") do add :shipping_method_id, references("snitch_shipping_methods", on_delete: :delete_all) add :shipping_category_id, references("snitch...
41.714286
107
0.804795
21f8388e73f82eea19d1eade5e1187c41849c56d
1,637
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/update_embedded_object_position_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/update_embedded_object_position_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sheets/lib/google_api/sheets/v4/model/update_embedded_object_position_response.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...
34.829787
140
0.761148
21f87503ae4f7d5c271fe796a2096d9f68de244e
2,205
exs
Elixir
mix.exs
samble/exlastic-load-balancer
55d5e85657567896f9ea1471f9b3f053d8dacc05
[ "MIT" ]
2
2016-06-30T00:19:48.000Z
2021-02-14T18:05:09.000Z
mix.exs
samble/exlastic-load-balancer
55d5e85657567896f9ea1471f9b3f053d8dacc05
[ "MIT" ]
null
null
null
mix.exs
samble/exlastic-load-balancer
55d5e85657567896f9ea1471f9b3f053d8dacc05
[ "MIT" ]
1
2016-06-28T13:46:16.000Z
2016-06-28T13:46:16.000Z
defmodule ExlasticLB.Mixfile do use Mix.Project def project do [app: :exlasticlb, version: "0.0.1", package: package, test_coverage: [ tool: Coverex.Task, console_log: true], elixir: "~> 1.0", escript: [main_module: ExlasticLB.CommandLine, app: nil], deps: deps, ...
23.709677
79
0.541043
21f88f9821025098c7bdaa76696bf414246c943e
1,032
exs
Elixir
tags_service/config/test.exs
miguelriosoliveira/dowhile-mural
3f616bf7d536f0442b41f6f8795af43ed54e61a0
[ "MIT" ]
null
null
null
tags_service/config/test.exs
miguelriosoliveira/dowhile-mural
3f616bf7d536f0442b41f6f8795af43ed54e61a0
[ "MIT" ]
null
null
null
tags_service/config/test.exs
miguelriosoliveira/dowhile-mural
3f616bf7d536f0442b41f6f8795af43ed54e61a0
[ "MIT" ]
null
null
null
import Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :nlw07_heat_tags, Nlw07HeatTags.Repo, username: "postgres", password: "postgres", database: "nlw07_heat...
33.290323
86
0.771318
21f8aa6b4aff472a24d337ad62eb19ec968d4032
11,817
ex
Elixir
lib/farmbot/bot_state/transport/amqp/amqp.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
null
null
null
lib/farmbot/bot_state/transport/amqp/amqp.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
null
null
null
lib/farmbot/bot_state/transport/amqp/amqp.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
null
null
null
defmodule Farmbot.BotState.Transport.AMQP do @moduledoc "AMQP Bot State Transport." use GenStage use AMQP use Farmbot.Logger alias Farmbot.CeleryScript alias CeleryScript.AST import Farmbot.BotState.Utils alias Farmbot.System.ConfigStorage import ConfigStorage, only: [get_config_value: 3, update_c...
34.054755
102
0.610476
21f8c0f0c600f9831487aa439d2d0d5332a061dd
1,268
exs
Elixir
create_fun_umbrella/apps/create_fun_cms/config/config.exs
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
null
null
null
create_fun_umbrella/apps/create_fun_cms/config/config.exs
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
9
2018-06-17T09:54:03.000Z
2018-06-17T09:55:20.000Z
create_fun_umbrella/apps/create_fun_cms/config/config.exs
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
1
2018-06-05T18:38:01.000Z
2018-06-05T18:38:01.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :create_fun_cms, namespace: CreateFunCms...
32.512821
68
0.798107
21f8c34ebedfe88c03e116b8183ee6fc903f48a9
896
ex
Elixir
clients/firebase_hosting/lib/google_api/firebase_hosting/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/firebase_hosting/lib/google_api/firebase_hosting/v1/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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
21f8dff9d8d3c6c163393358aace0f87e7214abb
76,834
ex
Elixir
lib/ecto/schema.ex
TheFirstAvenger/ecto
a18faadef8cfe55b3eccb63bc25f8ffc5263b653
[ "Apache-2.0" ]
null
null
null
lib/ecto/schema.ex
TheFirstAvenger/ecto
a18faadef8cfe55b3eccb63bc25f8ffc5263b653
[ "Apache-2.0" ]
null
null
null
lib/ecto/schema.ex
TheFirstAvenger/ecto
a18faadef8cfe55b3eccb63bc25f8ffc5263b653
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Schema do @moduledoc ~S""" Defines a schema. An Ecto schema is used to map any data source into an Elixir struct. The definition of the schema is possible through two main APIs: `schema/2` and `embedded_schema/1`. `schema/2` is typically used to map data from a persisted source, usually a...
36.60505
139
0.673061
21f929170ebbb6174367ba63bb75d4a9b815793e
215
exs
Elixir
priv/repo/migrations/2_create_comments.exs
suexcxine/scrivener_ecto
f606bc02dd21e34f38fa2d7f69024c2b8ca9a31f
[ "MIT" ]
509
2016-04-02T03:24:31.000Z
2022-03-23T06:11:01.000Z
priv/repo/migrations/2_create_comments.exs
suexcxine/scrivener_ecto
f606bc02dd21e34f38fa2d7f69024c2b8ca9a31f
[ "MIT" ]
85
2016-04-22T21:59:31.000Z
2022-02-10T15:10:32.000Z
priv/repo/migrations/2_create_comments.exs
suexcxine/scrivener_ecto
f606bc02dd21e34f38fa2d7f69024c2b8ca9a31f
[ "MIT" ]
125
2016-05-05T01:56:20.000Z
2022-03-24T07:21:06.000Z
defmodule Scrivener.Repo.Migrations.CreateComments do use Ecto.Migration def change do create table(:comments) do add :body, :string add :post_id, :integer timestamps() end end end
16.538462
53
0.674419
21f94e1a6f9a7d52ed97592160fae07204610330
1,613
ex
Elixir
lib/sudoku.ex
Hilife-Miller/SuDoKu
8df018df39ad319d9d7667296b999a1bbed0c666
[ "MIT" ]
null
null
null
lib/sudoku.ex
Hilife-Miller/SuDoKu
8df018df39ad319d9d7667296b999a1bbed0c666
[ "MIT" ]
null
null
null
lib/sudoku.ex
Hilife-Miller/SuDoKu
8df018df39ad319d9d7667296b999a1bbed0c666
[ "MIT" ]
null
null
null
defmodule Sudoku do def hello do :world end def fullboard do [ [1,2,3,4], [3,4,1,2], [2,3,4,1], [4,1,2,3] ] end def invalidboard do [ [1,0,0,3], [0,1,2,0], [2,2,1,0], [0,0,0,1] ] end def rows(board) do board end def row(board,ind...
19.202381
81
0.558586
21f958c68d1fa2e505540e9ab1706b32665edc63
1,189
exs
Elixir
apps/idp/mix.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/mix.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/mix.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
defmodule Idp.MixProject do use Mix.Project @vsn "0.1.0" @deps [ {:ecto_sql, "~> 3.1"}, {:postgrex, ">= 0.0.0"}, {:jason, "~> 1.0"}, {:uuid, "~> 1.1"}, {:auth, in_umbrella: true} ] @aliases [ "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], "ecto.reset":...
23.78
77
0.56434
21f96631610f453d5ede276f85fe91311c8d7dd3
6,836
ex
Elixir
lib/ex_unit/lib/ex_unit/filters.ex
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/ex_unit/lib/ex_unit/filters.ex
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/filters.ex
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.Filters do alias ExUnit.FailuresManifest @moduledoc """ Conveniences for parsing and evaluating filters. """ @type t :: list({atom, Regex.t() | String.Chars.t()} | atom) @doc """ Parses filters out of a path. Determines whether a given file path (supplied to ExUnit/Mix as arguments ...
30.382222
96
0.63151
21f9836899ea35d530bd3da9a143d706b8fc1c7f
1,281
ex
Elixir
lib/koans/19_protocols.ex
camisetags/elixir-koans
7bb1655d0f290c0834276091efa5a28b416dd91a
[ "MIT" ]
1
2020-11-23T17:01:37.000Z
2020-11-23T17:01:37.000Z
lib/koans/19_protocols.ex
camisetags/elixir-koans
7bb1655d0f290c0834276091efa5a28b416dd91a
[ "MIT" ]
null
null
null
lib/koans/19_protocols.ex
camisetags/elixir-koans
7bb1655d0f290c0834276091efa5a28b416dd91a
[ "MIT" ]
null
null
null
defmodule Protocols do use Koans @intro "Want to follow the rules? Adhere to the protocol!" defprotocol(School, do: def(enroll(person))) defimpl School, for: Any do def enroll(_) do "Pupil enrolled at school" end end defmodule Student do @derive School defstruct name: "" end d...
24.634615
79
0.661983
21f9897a518558444c8e796370068886399b8e67
168
ex
Elixir
lib/hl7/2.1/segments/dsc.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.1/segments/dsc.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.1/segments/dsc.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_1.Segments.DSC do @moduledoc false require Logger use HL7.Segment, fields: [ segment: nil, continuation_pointer: nil ] end
14
34
0.660714
21f98bd6a868e065aa1e4509b7f253d4d814504b
1,164
ex
Elixir
MixProject/help/lib/help_web/channels/user_socket.ex
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
MixProject/help/lib/help_web/channels/user_socket.ex
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
MixProject/help/lib/help_web/channels/user_socket.ex
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
defmodule HelpWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", HelpWeb.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 authent...
30.631579
83
0.701031
21f9cdfed63161b3b099f33d1ec5ec8c83650412
548
exs
Elixir
mix.exs
pluralsight/compliments
bb0a9f9cc55e41adbdb56d138bf462d0eb12208e
[ "MIT" ]
1
2019-01-16T01:03:14.000Z
2019-01-16T01:03:14.000Z
mix.exs
pluralsight/compliments
bb0a9f9cc55e41adbdb56d138bf462d0eb12208e
[ "MIT" ]
1
2020-04-12T09:58:03.000Z
2020-04-12T09:58:03.000Z
mix.exs
pluralsight/compliments
bb0a9f9cc55e41adbdb56d138bf462d0eb12208e
[ "MIT" ]
2
2018-10-02T18:09:55.000Z
2021-03-19T04:44:25.000Z
defmodule Compliments.MixProject do use Mix.Project def project do [ apps_path: "apps", start_permanent: Mix.env() == :prod, deps: deps() ] end # Dependencies listed here are available only for this # project and cannot be accessed from applications inside # the apps folder. # ...
20.296296
64
0.605839
21f9e0b3d0b6bebfcf64b975741c809d8e70ea73
1,034
ex
Elixir
lib/maru_reddit_stack.ex
whitfieldc/walmaru
72160007aa802e909df667977cb88eda43373d38
[ "MIT" ]
null
null
null
lib/maru_reddit_stack.ex
whitfieldc/walmaru
72160007aa802e909df667977cb88eda43373d38
[ "MIT" ]
null
null
null
lib/maru_reddit_stack.ex
whitfieldc/walmaru
72160007aa802e909df667977cb88eda43373d38
[ "MIT" ]
null
null
null
defmodule MaruRedditStack.Router.Homepage do use Maru.Router get do %{ hello: :world } end namespace :w do route_param :route do desc "get a subreddit by name" get do resp = Walmart.get!(params[:route]).body json_item = Walmart.strip_to_one_json_item(resp) Plug.Conn...
20.27451
145
0.681818
21f9e4ac852cf756b6e62172bbc6a309d074bf5f
3,294
exs
Elixir
test/hierbautberlin_web/controllers/subscription_controller_test.exs
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
13
2021-03-06T12:16:34.000Z
2022-03-31T09:46:35.000Z
test/hierbautberlin_web/controllers/subscription_controller_test.exs
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
148
2021-03-05T12:44:55.000Z
2022-03-11T12:09:06.000Z
test/hierbautberlin_web/controllers/subscription_controller_test.exs
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
2
2021-06-02T14:31:21.000Z
2022-02-14T08:36:51.000Z
defmodule HierbautberlinWeb.SubscriptionControllerTest do use HierbautberlinWeb.ConnCase, async: true alias Hierbautberlin.Accounts import Hierbautberlin.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /index" do test "redirects if not logged in", %{conn: conn} do conn =...
32.94
98
0.631148
21f9e7fddaba579a02ae416d2761c17ae9d4b5df
3,876
ex
Elixir
lib/parser/event_info_parser.ex
muziyoshiz/admiral_stats_parser_ex
89b1cf470b4ba823ed8902e415e798180023c156
[ "MIT" ]
null
null
null
lib/parser/event_info_parser.ex
muziyoshiz/admiral_stats_parser_ex
89b1cf470b4ba823ed8902e415e798180023c156
[ "MIT" ]
null
null
null
lib/parser/event_info_parser.ex
muziyoshiz/admiral_stats_parser_ex
89b1cf470b4ba823ed8902e415e798180023c156
[ "MIT" ]
null
null
null
defmodule AdmiralStatsParser.Parser.EventInfoParser do @moduledoc """ イベント進捗情報をパースするためのモジュールです。 """ alias AdmiralStatsParser.Parser.ParserUtil alias AdmiralStatsParser.Model.EventInfo # API version ごとの必須キーを格納したマップ @mandatory_keys %{ 1 => %{ "area_id" => &is_integer/1, "area_sub_id" => &i...
26.731034
91
0.654541
21f9f9bf34a3f09beb1166f5d8ebe051b4cef82a
1,753
exs
Elixir
config/config.exs
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
config/config.exs
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
config/config.exs
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # Configures the endpoint config :evolution, Evolution.Endpoint, url: [host: "loca...
29.216667
86
0.694809
21fa02879a2c0e4e964338a065f6e185188de3c7
349
ex
Elixir
orderapi/lib/orderapi_web/models/order.ex
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
1
2018-03-06T10:32:22.000Z
2018-03-06T10:32:22.000Z
orderapi/lib/orderapi_web/models/order.ex
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
null
null
null
orderapi/lib/orderapi_web/models/order.ex
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
null
null
null
defmodule OrderapiWeb.Order do use Ecto.Schema import Ecto.Changeset alias OrderapiWeb.Order schema "orders" do field :number field :customer timestamps() end @doc false def changeset(%Order{} = order, attrs) do order |> cast(attrs, [:number, :customer]) |> validate_required([:n...
17.45
46
0.667622
21fa0a05f59944bcd657d45c7645a6a5e7b50c0a
588
ex
Elixir
lib/doim_adapter_web/endpoint.ex
UrbanOS-Examples/doim_adapter
f40e993d0f9b3a15bc244d5453d9d1ed60b7eccc
[ "Apache-2.0" ]
null
null
null
lib/doim_adapter_web/endpoint.ex
UrbanOS-Examples/doim_adapter
f40e993d0f9b3a15bc244d5453d9d1ed60b7eccc
[ "Apache-2.0" ]
null
null
null
lib/doim_adapter_web/endpoint.ex
UrbanOS-Examples/doim_adapter
f40e993d0f9b3a15bc244d5453d9d1ed60b7eccc
[ "Apache-2.0" ]
null
null
null
defmodule DoimAdapterWeb.Endpoint do use Phoenix.Endpoint, otp_app: :doim_adapter if code_reloading? do socket "/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket plug Phoenix.LiveReloader plug Phoenix.CodeReloader end plug Plug.RequestId plug Plug.Parsers, parsers: [:urlencoded, :mu...
21.777778
69
0.719388
21fa170b9521ac035a672a441f6c4c9160debc8f
14,726
ex
Elixir
lib/phoenix_live_view/utils.ex
treble37/phoenix_live_view
042e2cdd9a38704b0569ca0489cec7ba3867845c
[ "MIT" ]
null
null
null
lib/phoenix_live_view/utils.ex
treble37/phoenix_live_view
042e2cdd9a38704b0569ca0489cec7ba3867845c
[ "MIT" ]
null
null
null
lib/phoenix_live_view/utils.ex
treble37/phoenix_live_view
042e2cdd9a38704b0569ca0489cec7ba3867845c
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.Utils do # Shared helpers used mostly by Channel and Diff, # but also Static, and LiveViewTest. @moduledoc false alias Phoenix.LiveView.{Rendered, Socket, Lifecycle} # All available mount options @mount_opts [:temporary_assigns, :layout] @max_flash_age :timer.seconds(60) @...
29.045365
106
0.639549
21fa1ca652c4c6146898a980364abfc47eb128af
2,443
exs
Elixir
config/prod.exs
davecremins/level
cc06b86d32e9bef954a199dc4a2b47561815fd4b
[ "Apache-2.0" ]
null
null
null
config/prod.exs
davecremins/level
cc06b86d32e9bef954a199dc4a2b47561815fd4b
[ "Apache-2.0" ]
null
null
null
config/prod.exs
davecremins/level
cc06b86d32e9bef954a199dc4a2b47561815fd4b
[ "Apache-2.0" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
31.727273
74
0.71183
21fa3ca625309f960fe73229ef98d29c03062443
354
ex
Elixir
testData/org/elixir_lang/formatting/comment_in_spec.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/formatting/comment_in_spec.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/formatting/comment_in_spec.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
defmodule Retort.Request do @spec from_string(String.t) :: {:ok, t} | # Poison 2.0 {:error, :invalid} | {:error, {:invalid, token :: String.t}} | # Poison 3.0 {:error, :invalid, position :: non_neg_integer} | {:error, {:invalid, token :: String.t, ...
32.181818
78
0.525424
21fa8da47198aed87fa54b3b989b157bebc59e96
97
ex
Elixir
v02/ch10/bar.edit0.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch10/bar.edit0.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch10/bar.edit0.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
defmodule Bar do defmacro __using__(_opts) do quote do import Enum end end end
12.125
30
0.659794
21faee1cc374cd8e854d05a5e1be292ff3936e28
429
exs
Elixir
test/red_black_tree/node_test.exs
kasparinho/red_black_tree
ca1b439383961826b5a24065bdc1bf8e3c768c2b
[ "MIT" ]
null
null
null
test/red_black_tree/node_test.exs
kasparinho/red_black_tree
ca1b439383961826b5a24065bdc1bf8e3c768c2b
[ "MIT" ]
1
2022-02-24T02:46:45.000Z
2022-02-24T02:46:45.000Z
test/red_black_tree/node_test.exs
kasparinho/red_black_tree
ca1b439383961826b5a24065bdc1bf8e3c768c2b
[ "MIT" ]
null
null
null
defmodule RedBlackTree.NodeTest do use ExUnit.Case, async: true alias RedBlackTree.Node test "#new" do assert %Node{ key: :walrus, value: :bubbles, color: :black, left: nil, right: nil } == Node.new(:walrus, :bubbles) end test "#color" do assert :red == Node.color(%...
21.45
65
0.608392
21faf8e21ed5cb10d110767bbe676464485fe7c1
136
exs
Elixir
v02/ch02/struct1.edit0d.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch02/struct1.edit0d.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch02/struct1.edit0d.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
m = %{"name" => "foo", "email" => "foo@example.com"} u = %User{"name" => "foo", "email" => "foo@example.com"} IO.inspect m IO.inspect u
27.2
56
0.558824
21fb0035aa0f90f04730ab2fafe4f1bb13beb610
4,598
exs
Elixir
test/chat_api_web/controllers/registration_controller_test.exs
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
1
2020-08-13T15:11:12.000Z
2020-08-13T15:11:12.000Z
test/chat_api_web/controllers/registration_controller_test.exs
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/registration_controller_test.exs
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.RegistrationControllerTest do use ChatApiWeb.ConnCase alias ChatApi.{Accounts, Repo, UserInvitations} @password "secret1234" describe "create/2" do @valid_params %{ "user" => %{ "company_name" => "Papercups", "email" => "test@example.com", "password" => ...
34.059259
98
0.630492
21fb09d7871e637236420fea645d8e448bb81180
2,955
exs
Elixir
test/glimesh/chat/renderer_test.exs
aMytho/glimesh.tv
f2855e83647611f33ecbdb21ab35d716933db024
[ "MIT" ]
null
null
null
test/glimesh/chat/renderer_test.exs
aMytho/glimesh.tv
f2855e83647611f33ecbdb21ab35d716933db024
[ "MIT" ]
null
null
null
test/glimesh/chat/renderer_test.exs
aMytho/glimesh.tv
f2855e83647611f33ecbdb21ab35d716933db024
[ "MIT" ]
null
null
null
defmodule Glimesh.Chat.RendererTest do use Glimesh.DataCase alias Glimesh.Chat.Renderer alias Glimesh.Chat.Parser alias Glimesh.Chat.Token describe "chat renderer" do test "renders a simple message" do assert Renderer.render_html([%Token{type: "text", text: "Hello world"}]) == "Hello world" ...
46.904762
424
0.565144
21fb2bc684874ecbd1d25faa75237bdbae1989ae
755
exs
Elixir
mix.exs
michaelbaudino/icu4ex
784f0526285df48a697c251c22c08837bb5c5c16
[ "MIT" ]
null
null
null
mix.exs
michaelbaudino/icu4ex
784f0526285df48a697c251c22c08837bb5c5c16
[ "MIT" ]
null
null
null
mix.exs
michaelbaudino/icu4ex
784f0526285df48a697c251c22c08837bb5c5c16
[ "MIT" ]
null
null
null
defmodule ICU.Mixfile do use Mix.Project def project do [app: :icu4ex, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" for more in...
20.972222
77
0.589404
21fb722dbc35bdb9dbb6d641b8f60ebeddb529f1
534
ex
Elixir
lib/clean_mixer/code_map/module_reference.ex
kianmeng/clean_mixer
c2ce915156472a86828b53538efb8979bebcd78d
[ "Apache-2.0" ]
45
2020-07-14T11:01:45.000Z
2022-03-10T18:40:04.000Z
lib/clean_mixer/code_map/module_reference.ex
kianmeng/clean_mixer
c2ce915156472a86828b53538efb8979bebcd78d
[ "Apache-2.0" ]
3
2021-07-03T15:37:02.000Z
2021-07-13T08:59:08.000Z
lib/clean_mixer/code_map/module_reference.ex
kianmeng/clean_mixer
c2ce915156472a86828b53538efb8979bebcd78d
[ "Apache-2.0" ]
4
2020-02-01T01:20:53.000Z
2020-06-18T11:58:55.000Z
defmodule CleanMixer.CodeMap.ModuleReference do alias CleanMixer.CodeMap.CodeModule # struct is valid only for elixir versions < 1.11 @type ref_type :: :compile | :struct | :export | :runtime | :unknown defstruct [:module_name, :ref_type] @type t :: %__MODULE__{ module_name: CodeModule.name(), ...
24.272727
70
0.657303
21fbba061186277c4aeff587d320a44cd19c376f
968
exs
Elixir
test/json_schema_test_suite/draft6/max_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/max_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/max_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
defmodule JsonSchemaTestSuite.Draft6.MaxPropertiesTest do use ExUnit.Case import Xema, only: [valid?: 2] describe "maxProperties validation" do setup do %{ schema: Xema.from_json_schema( %{"maxProperties" => 2}, draft: "draft6" ) } end ...
23.047619
66
0.56405
21fc0ad7948a396e8909aef44d6a99f2b00214c4
517
ex
Elixir
lib/insights/adapters/keenex/api.ex
gullitmiranda/insights
b2ae7aced8a96d9897af06ce7a81c84013aa22cd
[ "Apache-2.0" ]
null
null
null
lib/insights/adapters/keenex/api.ex
gullitmiranda/insights
b2ae7aced8a96d9897af06ce7a81c84013aa22cd
[ "Apache-2.0" ]
null
null
null
lib/insights/adapters/keenex/api.ex
gullitmiranda/insights
b2ae7aced8a96d9897af06ce7a81c84013aa22cd
[ "Apache-2.0" ]
null
null
null
defmodule Insights.Adapters.Keenex.Api do alias Keenex.Base @doc """ Implementation for `Keenex.Base.get/2` """ def get(endpoint, params \\ []) do try do Base.get(endpoint, params) rescue err in HTTPotion.HTTPError -> {:error, err} end end @doc """ Implementation for `Keenex.Ba...
19.884615
49
0.62089