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
657340694e96cc992348345200e147dad12f32a0
4,196
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_agent.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_agent.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_agent.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 "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...
55.210526
544
0.736416
6573468a6b15239a14ab6082dae20a133991010d
230
exs
Elixir
daily_meals/priv/repo/migrations/20220324205347_tb_users.exs
joabehenrique/daily-meals
ea8919a45dc155046289c96854348bd7ed89c1fb
[ "MIT" ]
null
null
null
daily_meals/priv/repo/migrations/20220324205347_tb_users.exs
joabehenrique/daily-meals
ea8919a45dc155046289c96854348bd7ed89c1fb
[ "MIT" ]
null
null
null
daily_meals/priv/repo/migrations/20220324205347_tb_users.exs
joabehenrique/daily-meals
ea8919a45dc155046289c96854348bd7ed89c1fb
[ "MIT" ]
null
null
null
defmodule DailyMeals.Repo.Migrations.TbUsers do use Ecto.Migration def change do create table(:users) do add(:name, :string) add(:cpf, :string) add(:email, :string) timestamps() end end end
16.428571
47
0.630435
6573baa65fb26bbea0e2f8c8510a873ef01d0def
78
exs
Elixir
myApp/test/myApp_web/views/layout_view_test.exs
CaptainAwesomeDi/unnamedproject
1b2bbdbc9774a073e70eb8fcd255339d7a36df70
[ "MIT" ]
1
2019-09-25T22:03:14.000Z
2019-09-25T22:03:14.000Z
myApp/test/myApp_web/views/layout_view_test.exs
CaptainAwesomeDi/unnamedproject
1b2bbdbc9774a073e70eb8fcd255339d7a36df70
[ "MIT" ]
2
2021-03-09T12:10:09.000Z
2021-05-10T01:25:36.000Z
test/my_app_web/views/layout_view_test.exs
brandedux/phoenix_api
3613d3d2a232a0d39cd125bd09cceee876fbf475
[ "MIT" ]
null
null
null
defmodule MyAppWeb.LayoutViewTest do use MyAppWeb.ConnCase, async: true end
19.5
36
0.820513
6573cdc061ff92d56ec31912940e0e46e77079fc
1,713
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sizes_list_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sizes_list_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sizes_list_response.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...
34.26
153
0.730881
6573d643a1f1a293e7e40fa1932cf90d58404c97
2,614
exs
Elixir
config/config.exs
axelson/changelog.com
bad9f461aabbde0faa938f7b2ae643ed47d1df9b
[ "MIT" ]
1
2021-01-06T18:21:45.000Z
2021-01-06T18:21:45.000Z
config/config.exs
codexn/changelog.com
25ce501ee62eef76731c38d590667e8132096ba8
[ "MIT" ]
null
null
null
config/config.exs
codexn/changelog.com
25ce501ee62eef76731c38d590667e8132096ba8
[ "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 Code.compile_file("config/secret_or_env.exs") config :changelog, ChangelogWeb.Endpoin...
34.853333
89
0.770467
6573f61a8dde353a6a8901548726b99e97cd69c7
2,469
ex
Elixir
backend/lib/edgehog_web.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
14
2021-12-02T16:31:16.000Z
2022-03-18T17:40:44.000Z
backend/lib/edgehog_web.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
77
2021-11-03T15:14:41.000Z
2022-03-30T14:13:32.000Z
backend/lib/edgehog_web.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
7
2021-11-03T10:58:37.000Z
2022-02-28T14:00:03.000Z
# # This file is part of Edgehog. # # Copyright 2021 SECO Mind Srl # # 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 app...
24.939394
76
0.704739
65740311ac9588600c1916729f1ddc76d7555207
1,132
exs
Elixir
test/acceptance/w3c-test-suites/expr_builtin_test.exs
pukkamustard/sparql-ex
4f8907ddbd15215c9b6c40edac19362c92e34d91
[ "MIT" ]
23
2018-09-25T21:09:35.000Z
2020-05-14T16:28:22.000Z
test/acceptance/w3c-test-suites/expr_builtin_test.exs
pukkamustard/sparql-ex
4f8907ddbd15215c9b6c40edac19362c92e34d91
[ "MIT" ]
2
2018-06-01T20:47:48.000Z
2019-03-05T23:20:34.000Z
test/acceptance/w3c-test-suites/expr_builtin_test.exs
pukkamustard/sparql-ex
4f8907ddbd15215c9b6c40edac19362c92e34d91
[ "MIT" ]
2
2019-12-13T19:20:54.000Z
2019-12-20T08:23:21.000Z
defmodule SPARQL.W3C.TestSuite.ExprBuiltinTest do @moduledoc """ The W3C SPARQL 1.0 expression test cases for builtins. <https://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/> """ use SPARQL.W3C.TestSuite.Case, async: false @test_suite {"1.0", "expr-builtin"} @manifest_graph TestSuite.manif...
33.294118
93
0.664311
65741516e1ff335b5d80140fc38c80c975612d6c
44,582
exs
Elixir
lib/elixir/test/elixir/file_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/file_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/file_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule Elixir.FileCase do use ExUnit.CaseTemplate import PathHelpers using do quote do import PathHelpers end end setup do File.mkdir_p!(tmp_path()) on_exit(fn -> File.rm_rf(tmp_path()) end) :ok end end defmodule FileTest do use...
26.117165
180
0.585102
65741b95892864e8fe6c332f56f006c4834368ea
1,438
ex
Elixir
clients/books/lib/google_api/books/v1/model/usersettings_notification_more_from_series.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/books/lib/google_api/books/v1/model/usersettings_notification_more_from_series.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/usersettings_notification_more_from_series.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 ...
30.595745
95
0.748957
6574349d99e8fb06036c33aa086bef15d8582c75
583
exs
Elixir
day16/test/day16_test.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
day16/test/day16_test.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
day16/test/day16_test.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
defmodule Day16Test do use ExUnit.Case doctest Day16 test "part 1 with my input data" do assert Day16.part1(input(), ticker_tape()) == 40 end test "part 2 with my input data" do assert Day16.part2(input(), ticker_tape()) == 241 end defp ticker_tape() do """ children: 3 cats: 7 s...
17.147059
53
0.590051
657439341ce4519e1b94f7fe0c954f27140f120c
306
ex
Elixir
learn-elixir/scripts/circle.ex
Itoktsnhc/learn
c7ccc68382702c145b6cadb111752b75b5e4bbf9
[ "MIT" ]
null
null
null
learn-elixir/scripts/circle.ex
Itoktsnhc/learn
c7ccc68382702c145b6cadb111752b75b5e4bbf9
[ "MIT" ]
null
null
null
learn-elixir/scripts/circle.ex
Itoktsnhc/learn
c7ccc68382702c145b6cadb111752b75b5e4bbf9
[ "MIT" ]
null
null
null
defmodule Circle do @moduledoc "Implements basic circle functions" @pi 3.14159 @doc "Computes the area of a circle" @spec area(number)::number def area(r), do: r*r*@pi @doc "Computes the circumference of a circle" @spec circumference(number) :: number def circumference(r), do: 2*r*@pi end
27.818182
48
0.705882
65748e9e6a215f74e2e75a4b09ac24d5c7e188c1
1,176
exs
Elixir
twitter/old/test/solar_test.exs
MrCeleryman/elixirtute
797e3cb29a68a54728258329b49ac4ae0787cc76
[ "MIT" ]
null
null
null
twitter/old/test/solar_test.exs
MrCeleryman/elixirtute
797e3cb29a68a54728258329b49ac4ae0787cc76
[ "MIT" ]
null
null
null
twitter/old/test/solar_test.exs
MrCeleryman/elixirtute
797e3cb29a68a54728258329b49ac4ae0787cc76
[ "MIT" ]
null
null
null
defmodule SolarTest do use ExUnit.Case, async: true doctest Solar setup do flares = [ %{classification: :X, scale: 99, date: Date.from_erl!({1859, 8, 29})}, %{classification: :M, scale: 5.8, date: Date.from_erl!({2015, 1, 12})}, %{classification: :M, scale: 1.2, date: Date.from_erl!({2015, 2, 9})}, ...
29.4
75
0.630952
6574d71712376c6758fd15e4408541554b63dc8d
45,291
ex
Elixir
lib/elixir/lib/calendar/datetime.ex
mguimas/elixir
161f5f9a3b6bc38faa152e08c567486b71b0602a
[ "Apache-2.0" ]
1
2018-02-24T19:48:35.000Z
2018-02-24T19:48:35.000Z
lib/elixir/lib/calendar/datetime.ex
mguimas/elixir
161f5f9a3b6bc38faa152e08c567486b71b0602a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar/datetime.ex
mguimas/elixir
161f5f9a3b6bc38faa152e08c567486b71b0602a
[ "Apache-2.0" ]
null
null
null
defmodule DateTime do @moduledoc """ A datetime implementation with a time zone. This datetime can be seen as an ephemeral snapshot of a datetime at a given time zone. For such purposes, it also includes both UTC and Standard offsets, as well as the zone abbreviation field used exclusively for formatting...
33.524056
134
0.62869
6574eff41c947256b36c834f85ea0cead1a43615
2,143
ex
Elixir
clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_create_analysis_operation_metadata.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_create_analysis_operation_metadata.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_create_analysis_operation_metadata.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "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...
35.716667
132
0.741951
6574faf4f68ed29d864203cf3da02d503a9dfa00
63
ex
Elixir
lib/queryhub_web/views/page_view.ex
blaedj/queryhub
1605d29e1d2b8a2a66bf911945dab441682083dc
[ "Apache-2.0" ]
null
null
null
lib/queryhub_web/views/page_view.ex
blaedj/queryhub
1605d29e1d2b8a2a66bf911945dab441682083dc
[ "Apache-2.0" ]
null
null
null
lib/queryhub_web/views/page_view.ex
blaedj/queryhub
1605d29e1d2b8a2a66bf911945dab441682083dc
[ "Apache-2.0" ]
null
null
null
defmodule QueryHubWeb.PageView do use QueryHubWeb, :view end
15.75
33
0.809524
65750850ba085886381a25e237da80f54b602127
927
ex
Elixir
frameworks/Elixir/phoenix/lib/hello.ex
ztellman/FrameworkBenchmarks
2efa214d727831922e5a95fc4436688588580684
[ "BSD-3-Clause" ]
6
2015-07-08T06:30:26.000Z
2021-12-11T16:13:17.000Z
frameworks/Elixir/phoenix/lib/hello.ex
gin-gonic/FrameworkBenchmarks
1f9c11762256a0f155bd610fb3213fa90340cc40
[ "BSD-3-Clause" ]
null
null
null
frameworks/Elixir/phoenix/lib/hello.ex
gin-gonic/FrameworkBenchmarks
1f9c11762256a0f155bd610fb3213fa90340cc40
[ "BSD-3-Clause" ]
1
2021-12-04T15:27:38.000Z
2021-12-04T15:27:38.000Z
defmodule Hello do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Start the endpoint when the application starts supervisor(Hello.Endpo...
30.9
71
0.707659
65750979ab968bc5fce626e0cb09a98c3b8fb07d
193
ex
Elixir
lib/realworld_phoenix_web/cors.ex
tamanugi/realworld-phoenix
1c0f90234926550a9124863b3946934b8f2e19a4
[ "MIT" ]
9
2021-08-23T23:21:31.000Z
2022-03-27T23:19:55.000Z
lib/realworld_phoenix_web/cors.ex
tamanugi/realworld-phoenix
1c0f90234926550a9124863b3946934b8f2e19a4
[ "MIT" ]
null
null
null
lib/realworld_phoenix_web/cors.ex
tamanugi/realworld-phoenix
1c0f90234926550a9124863b3946934b8f2e19a4
[ "MIT" ]
1
2021-09-06T07:26:37.000Z
2021-09-06T07:26:37.000Z
defmodule RealworldPhoenixWeb.CORS do use Corsica.Router, origins: "*", allow_headers: ["accept", "authorization", "content-type", "origin", "x-requested-with"] resource("/*") end
24.125
92
0.678756
6575c2372c0fb09b49278d3b72a514a69746d31a
793
ex
Elixir
web/models/Servico.ex
alissonfpmorais/tucano
d22480fc416d14b44862be2ed89040d92b7c08d1
[ "MIT" ]
null
null
null
web/models/Servico.ex
alissonfpmorais/tucano
d22480fc416d14b44862be2ed89040d92b7c08d1
[ "MIT" ]
null
null
null
web/models/Servico.ex
alissonfpmorais/tucano
d22480fc416d14b44862be2ed89040d92b7c08d1
[ "MIT" ]
null
null
null
defmodule Tucano.Servico do use Tucano.Web, :model schema "servico" do field :data_inicio, :date field :data_envio, :date field :codigo_postagem, :string field :observacao, :string belongs_to :prioridade, Tucano.Prioridade belongs_to :status, Tucano.Status belongs_to :cliente, Tucano.Cl...
26.433333
66
0.68348
6575eb626bc738be2c858feeacbfb9260bde9b4e
4,241
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router.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...
52.358025
488
0.713983
6575ef7613bcb91e83ff172e0eb030b961137bfe
122
exs
Elixir
test/custom_hooks/simple_sort_test.exs
mirego/rummage_ecto
e10f9455e21eac6de8c654c5777ba6fe65bb6169
[ "MIT" ]
null
null
null
test/custom_hooks/simple_sort_test.exs
mirego/rummage_ecto
e10f9455e21eac6de8c654c5777ba6fe65bb6169
[ "MIT" ]
null
null
null
test/custom_hooks/simple_sort_test.exs
mirego/rummage_ecto
e10f9455e21eac6de8c654c5777ba6fe65bb6169
[ "MIT" ]
null
null
null
defmodule Rummage.Ecto.CustomHooks.SimpleSortTest do use ExUnit.Case doctest Rummage.Ecto.CustomHooks.SimpleSort end
20.333333
52
0.836066
6576379468ed23cc15e56340580c7496cd9f4eb4
1,605
ex
Elixir
lib/sqlite_ecto/connection.ex
philipgiuliani/sqlite_ecto
f1a89dac6f76f60ed871a63f9aa9c37b984223ff
[ "MIT" ]
91
2015-05-21T04:32:42.000Z
2021-02-16T06:50:27.000Z
lib/sqlite_ecto/connection.ex
philipgiuliani/sqlite_ecto
f1a89dac6f76f60ed871a63f9aa9c37b984223ff
[ "MIT" ]
47
2015-04-18T15:26:29.000Z
2017-04-14T17:06:55.000Z
lib/sqlite_ecto/connection.ex
philipgiuliani/sqlite_ecto
f1a89dac6f76f60ed871a63f9aa9c37b984223ff
[ "MIT" ]
38
2015-05-22T03:47:14.000Z
2021-01-29T14:33:03.000Z
if Code.ensure_loaded?(Sqlitex.Server) do defmodule Sqlite.Ecto.Connection do @moduledoc false @behaviour Ecto.Adapters.SQL.Query # Connect to a new Sqlite.Server. Enable and verify the foreign key # constraints for the connection. def connect(opts) do {database, opts} = Keyword.pop(opts,...
24.318182
80
0.676636
657698c60c602914d63a01ac23c1e34c4f85d17d
2,779
ex
Elixir
lib/new_relic/span/event.ex
ll1498/elixir_agent
a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a
[ "Apache-2.0" ]
1
2020-08-13T05:08:20.000Z
2020-08-13T05:08:20.000Z
lib/new_relic/span/event.ex
ll1498/elixir_agent
a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a
[ "Apache-2.0" ]
null
null
null
lib/new_relic/span/event.ex
ll1498/elixir_agent
a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic.Span.Event do defstruct type: "Span", trace_id: nil, # Distributed Trace ID # = trace_id from Transaction guid: nil, # Segment Identifier: parent_id: nil, # Segment's Parent's GUID = # id of incoming ...
29.252632
94
0.581504
6576c91e6cedfd991f0fb355db31a6e69fc878ac
34,882
exs
Elixir
lib/elixir/test/elixir/file_test.exs
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/file_test.exs
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/file_test.exs
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule Elixir.FileCase do use ExUnit.CaseTemplate import PathHelpers using do quote do import PathHelpers end end setup do File.mkdir_p!(tmp_path) on_exit(fn -> File.rm_rf(tmp_path) end) :ok end end defmodule FileTest do use Eli...
25.762186
180
0.600367
6576f2f85356362e215fb0c6730435adf5e542e4
1,015
ex
Elixir
test/support/conn_case.ex
skatsuta/elixir_sample
8b03a5879278c492b0ba5fd212c8c4aeb6b55c57
[ "MIT" ]
null
null
null
test/support/conn_case.ex
skatsuta/elixir_sample
8b03a5879278c492b0ba5fd212c8c4aeb6b55c57
[ "MIT" ]
null
null
null
test/support/conn_case.ex
skatsuta/elixir_sample
8b03a5879278c492b0ba5fd212c8c4aeb6b55c57
[ "MIT" ]
null
null
null
defmodule ElixirSample.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 imports other functionality to make it easier to build and query models. Finally, if the test case interacts with t...
24.166667
71
0.7133
6576fe8c9973a0c235c05580442b808b5e29ab3d
1,790
exs
Elixir
test/groupher_server_web/query/cms/cheatsheet_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
test/groupher_server_web/query/cms/cheatsheet_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
test/groupher_server_web/query/cms/cheatsheet_test.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Test.Query.Cheatsheet do use GroupherServer.TestTools alias GroupherServer.CMS setup do {:ok, community} = db_insert(:community) cheatsheet_attrs = mock_attrs(:cheatsheet, %{community_id: community.id}) {:ok, cheatsheet} = CMS.sync_github_content(community, :cheatsheet, che...
28.412698
93
0.67095
657702ee0959070012fc8f6a7988cc6bce6639e4
1,440
exs
Elixir
test/simple_bayes/storage/file_system_test.exs
fredwu/simple_bayes
806d7e62ab90bdbd8d905faa9536425466f203e2
[ "MIT" ]
412
2016-07-14T15:34:26.000Z
2022-03-26T10:34:39.000Z
test/simple_bayes/storage/file_system_test.exs
fredwu/simple_bayes
806d7e62ab90bdbd8d905faa9536425466f203e2
[ "MIT" ]
7
2016-07-20T08:40:07.000Z
2018-06-11T12:44:19.000Z
test/simple_bayes/storage/file_system_test.exs
fredwu/simple_bayes
806d7e62ab90bdbd8d905faa9536425466f203e2
[ "MIT" ]
27
2016-07-17T13:05:19.000Z
2021-04-08T21:46:16.000Z
defmodule SimpleBayes.Storage.FileSystemTest do use ExUnit.Case, async: true doctest SimpleBayes.Storage.FileSystem describe "file system storage" do setup do opts = [ storage: :file_system, file_path: "test/temp/file_sysmte_test.txt" ] SimpleBayes.init(opts) |> Si...
30.638298
98
0.622917
657716ff7030873c0b8edbc85f05c0720a3785c6
1,062
ex
Elixir
lib/bankapi/application.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
4
2020-05-05T18:37:28.000Z
2022-01-05T00:56:19.000Z
lib/bankapi/application.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
21
2019-12-01T15:32:02.000Z
2019-12-19T13:10:36.000Z
lib/bankapi/application.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
2
2020-09-12T16:07:11.000Z
2020-12-11T06:46:45.000Z
defmodule Bank.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: false # List all child processes to be supervised children = [ # Start the Ect...
30.342857
64
0.70339
65772059caf07ddcb799b8e71a4f2d66f701ed76
1,722
ex
Elixir
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/analyze_packages_metadata_v1.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/analyze_packages_metadata_v1.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/analyze_packages_metadata_v1.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "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.44
115
0.738676
65773979408698aa248250c106c0f1cd6d9fb767
970
exs
Elixir
mix.exs
cainophile/pgoutput_decoder
abd265d90b2495793fbbc38ad0795283ffbde1a5
[ "Apache-2.0" ]
7
2019-07-31T20:18:00.000Z
2021-04-06T19:26:17.000Z
mix.exs
cainophile/pgoutput_decoder
abd265d90b2495793fbbc38ad0795283ffbde1a5
[ "Apache-2.0" ]
1
2019-09-26T09:57:39.000Z
2020-07-16T02:28:23.000Z
mix.exs
cainophile/pgoutput_decoder
abd265d90b2495793fbbc38ad0795283ffbde1a5
[ "Apache-2.0" ]
2
2019-10-08T06:32:03.000Z
2019-12-03T02:10:27.000Z
defmodule PgoutputDecoder.MixProject do use Mix.Project def project do [ app: :pgoutput_decoder, version: "0.1.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), source_url: "https://github.com/cainophile/pgoutput_decod...
24.25
87
0.604124
65773e727db5dd64ee10f2509caa6a6dca33088b
1,454
exs
Elixir
test/elixirfm/track_test.exs
jrichocean/Elixirfm
5595c08c3217500bbc3fe74fe1657fe0e7bfcda8
[ "MIT" ]
9
2016-10-04T10:09:17.000Z
2020-10-20T10:34:47.000Z
test/elixirfm/track_test.exs
jrichocean/Elixirfm
5595c08c3217500bbc3fe74fe1657fe0e7bfcda8
[ "MIT" ]
4
2017-06-19T11:11:15.000Z
2021-11-10T04:31:45.000Z
test/elixirfm/track_test.exs
jrichocean/Elixirfm
5595c08c3217500bbc3fe74fe1657fe0e7bfcda8
[ "MIT" ]
2
2018-10-12T09:53:36.000Z
2019-09-29T13:19:41.000Z
defmodule Elixirfm.TrackTest do use ExUnit.Case, async: true use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney import Elixirfm.Track setup do ExVCR.Config.cassette_library_dir("test/fixtures/vcr_cassettes/track") ExVCR.Config.filter_request_headers("Authorization") ExVCR.Config.filter_url_params(true)...
29.08
89
0.676066
657750a1853234504ba835098b348dbd01d6fdca
957
ex
Elixir
template/$PROJECT_NAME$/test/support/feature_case.ex
paridin/gen_template_dino
fa584b063558b3b38b7584fb951a7822a818b28b
[ "Apache-2.0" ]
null
null
null
template/$PROJECT_NAME$/test/support/feature_case.ex
paridin/gen_template_dino
fa584b063558b3b38b7584fb951a7822a818b28b
[ "Apache-2.0" ]
null
null
null
template/$PROJECT_NAME$/test/support/feature_case.ex
paridin/gen_template_dino
fa584b063558b3b38b7584fb951a7822a818b28b
[ "Apache-2.0" ]
null
null
null
defmodule <%= @project_name_camel_case %>Web.FeatureCase do @moduledoc """ Feature Case """ use ExUnit.CaseTemplate alias Ecto.Adapters.SQL.Sandbox using do quote do use Wallaby.DSL import Plug.Conn import Phoenix.ConnTest import Phoenix.LiveViewTest import <%= @project_...
25.864865
98
0.677116
65775fbad5356596e7466f67832f207afa23913d
1,092
exs
Elixir
clients/smart_device_management/test/test_helper.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/smart_device_management/test/test_helper.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/smart_device_management/test/test_helper.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "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.333333
83
0.745421
65776d51a72028073eba517b64f89e97d81ad498
1,277
ex
Elixir
lib/nadia/bot/config.ex
lightcyphers/nadia
b44535138aac3c61a40816d9460a731127360f1e
[ "MIT" ]
null
null
null
lib/nadia/bot/config.ex
lightcyphers/nadia
b44535138aac3c61a40816d9460a731127360f1e
[ "MIT" ]
null
null
null
lib/nadia/bot/config.ex
lightcyphers/nadia
b44535138aac3c61a40816d9460a731127360f1e
[ "MIT" ]
null
null
null
defmodule Nadia.Bot.Config do @default_timeout 5 @default_base_url "https://api.telegram.org/bot" @default_graph_base_url "https://api.telegra.ph" @default_file_base_url "https://api.telegram.org/file/bot" @spec token(atom) :: binary def token(bot), do: config_or_env(bot, :token) @spec proxy(atom) :: bi...
32.74359
93
0.671887
6577765e694e9336ff3acd5bf5cbefece453be72
2,039
exs
Elixir
config/prod.exs
sb8244/pow_starter_pack
82e16c3e4139ecc85295078b54024f58f95ab794
[ "MIT" ]
13
2020-03-31T21:45:40.000Z
2021-02-13T12:17:22.000Z
config/prod.exs
sb8244/pow_starter_pack
82e16c3e4139ecc85295078b54024f58f95ab794
[ "MIT" ]
1
2021-03-10T12:57:21.000Z
2021-03-10T12:57:21.000Z
config/prod.exs
sb8244/pow_starter_pack
82e16c3e4139ecc85295078b54024f58f95ab794
[ "MIT" ]
1
2020-04-28T15:41:56.000Z
2020-04-28T15:41:56.000Z
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
36.410714
66
0.718489
6577af2f9c1585acb2ba85181bf30a6e16372fba
1,928
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/orders_list_response.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/orders_list_response.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/orders_list_response.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "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...
36.377358
154
0.721992
6577e291b57008bdcab254ebdce3f4ecb66aeea7
521
exs
Elixir
samples/issues/test/github_issues_test.exs
thbar/elixir-playground
4c3e8cecb927d05f762b666d3064114451786db4
[ "MIT" ]
14
2016-01-18T13:58:37.000Z
2021-08-09T11:39:54.000Z
samples/issues/test/github_issues_test.exs
thbar/elixir-playground
4c3e8cecb927d05f762b666d3064114451786db4
[ "MIT" ]
null
null
null
samples/issues/test/github_issues_test.exs
thbar/elixir-playground
4c3e8cecb927d05f762b666d3064114451786db4
[ "MIT" ]
null
null
null
defmodule GithubIssuesTest do use ExUnit.Case, async: false # false required due to mocking afaik use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney import Issues.GithubIssues, only: [ fetch: 2 ] test "reports :error when not found" do {:ok, body} = Poison.encode(%{"message" => "this"}) use_cassette :stub...
30.647059
71
0.664107
6578187925c46560fc0a89361fc7c230d289e2d0
283
ex
Elixir
lib/mix/docker/compose/deploy_containers.ex
starbuildr/ex_factory
5248d0dd802f2df2fb25c736c48ae2489c01a98e
[ "MIT" ]
null
null
null
lib/mix/docker/compose/deploy_containers.ex
starbuildr/ex_factory
5248d0dd802f2df2fb25c736c48ae2489c01a98e
[ "MIT" ]
null
null
null
lib/mix/docker/compose/deploy_containers.ex
starbuildr/ex_factory
5248d0dd802f2df2fb25c736c48ae2489c01a98e
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Docker.Compose.DeployContainers do use Mix.Task import ExFactory.Util.Cmd @doc """ Create and run the new containers from latest local images. """ def run(_) do command = "docker-compose" args = ["up", "-d"] exec(command, args) end end
20.214286
61
0.667845
65781d7544098c6778cba362593b3e255e6f6c81
1,044
ex
Elixir
lib/boker_tov_nissim/handlers/version.ex
amitizle/boker-tov-nissim
048140d79b4a7755ed6e448216e002a28a174896
[ "MIT" ]
1
2017-11-05T22:07:31.000Z
2017-11-05T22:07:31.000Z
lib/boker_tov_nissim/handlers/version.ex
amitizle/boker-tov-nissim
048140d79b4a7755ed6e448216e002a28a174896
[ "MIT" ]
null
null
null
lib/boker_tov_nissim/handlers/version.ex
amitizle/boker-tov-nissim
048140d79b4a7755ed6e448216e002a28a174896
[ "MIT" ]
null
null
null
defmodule BokerTovNissim.Handlers.Version do use GenServer require BokerTovNissim.PubSub alias BokerTovNissim.PubSub require Logger @server :version @response_probability 1.0 # API def start_link do GenServer.start_link(__MODULE__, [], [name: @server]) end # Callbacks def init(_args) do ...
24.857143
92
0.683908
65781f3c9fb79d42e3095a6b1d3bbf6bfd8aadc4
116
exs
Elixir
test/git_ecto_test.exs
parndt/git_ecto
1527fcf4d5063426527086e4b97010e39e133660
[ "MIT" ]
null
null
null
test/git_ecto_test.exs
parndt/git_ecto
1527fcf4d5063426527086e4b97010e39e133660
[ "MIT" ]
null
null
null
test/git_ecto_test.exs
parndt/git_ecto
1527fcf4d5063426527086e4b97010e39e133660
[ "MIT" ]
null
null
null
defmodule GitEctoTest do use ExUnit.Case doctest GitEcto test "the truth" do assert 1 + 1 == 2 end end
12.888889
24
0.672414
657860da749530caeeb00cebcee86ff720bc7804
909
ex
Elixir
lib/inventory_management_web/router.ex
web2solutions/inventory_management
5ade39c983e344caa53db5fe4eb0684ba08b5dd1
[ "MIT" ]
null
null
null
lib/inventory_management_web/router.ex
web2solutions/inventory_management
5ade39c983e344caa53db5fe4eb0684ba08b5dd1
[ "MIT" ]
null
null
null
lib/inventory_management_web/router.ex
web2solutions/inventory_management
5ade39c983e344caa53db5fe4eb0684ba08b5dd1
[ "MIT" ]
null
null
null
defmodule InventoryManagementWeb.Router do use InventoryManagementWeb, :router pipeline :api do plug :accepts, ["json"] end scope "/api", InventoryManagementWeb do pipe_through :api get "/", WelcomeController, :index # path, cotroller, action end # Enables LiveDashboard only for developm...
29.322581
76
0.723872
65786819c4dd57239c24fa5c1db3cc25d0f436e6
517
ex
Elixir
lib/workos.ex
seantanly/workos-elixir
f601da8db8662657a9e4b3c206e45d88dc150058
[ "MIT" ]
6
2021-02-10T22:47:44.000Z
2022-01-16T21:02:33.000Z
lib/workos.ex
seantanly/workos-elixir
f601da8db8662657a9e4b3c206e45d88dc150058
[ "MIT" ]
6
2021-04-19T22:43:24.000Z
2022-02-11T18:19:17.000Z
lib/workos.ex
seantanly/workos-elixir
f601da8db8662657a9e4b3c206e45d88dc150058
[ "MIT" ]
4
2021-05-31T12:24:03.000Z
2022-02-04T04:08:56.000Z
defmodule WorkOS do def host, do: Application.get_env(:workos, :host) def base_url, do: "https://" <> Application.get_env(:workos, :host) def adapter, do: Application.get_env(:workos, :adapter) || Tesla.Adapter.Hackney def api_key(opts \\ []) def api_key(api_key: api_key), do: api_key def api_key(_opts), d...
36.928571
82
0.713733
6578964733f7c91196b5e055623bb80c857363ed
61
exs
Elixir
backend/test/test_helper.exs
mattiaslundberg/uptime
cef2657e5b5a4a851c088947ee9050c3b31dabdf
[ "MIT" ]
null
null
null
backend/test/test_helper.exs
mattiaslundberg/uptime
cef2657e5b5a4a851c088947ee9050c3b31dabdf
[ "MIT" ]
null
null
null
backend/test/test_helper.exs
mattiaslundberg/uptime
cef2657e5b5a4a851c088947ee9050c3b31dabdf
[ "MIT" ]
null
null
null
ExUnit.start() {:ok, _} = Uptime.DummySender.start_link([])
15.25
44
0.672131
65789e0310bbc6c4fcfd3e843dcd4e1720047d68
1,233
ex
Elixir
lib/hard_thing_rule/endpoint.ex
dummey/hard_thing_rule
4944e82931e638ed7fc40ff89acee9817628d994
[ "MIT" ]
null
null
null
lib/hard_thing_rule/endpoint.ex
dummey/hard_thing_rule
4944e82931e638ed7fc40ff89acee9817628d994
[ "MIT" ]
null
null
null
lib/hard_thing_rule/endpoint.ex
dummey/hard_thing_rule
4944e82931e638ed7fc40ff89acee9817628d994
[ "MIT" ]
null
null
null
defmodule HardThingRule.Endpoint do use Phoenix.Endpoint, otp_app: :hard_thing_rule socket "/socket", HardThingRule.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. ...
28.674419
69
0.72425
6578b87ec6e81e1815168c991569f8c002f8563f
6,421
ex
Elixir
lib/elasticsearch/cluster/cluster.ex
szajbus/elasticsearch-elixir
4ce751b4b5379ccc168a8930bca9c3ad99ffbc55
[ "MIT" ]
215
2019-01-28T23:31:14.000Z
2022-03-31T16:03:30.000Z
lib/elasticsearch/cluster/cluster.ex
szajbus/elasticsearch-elixir
4ce751b4b5379ccc168a8930bca9c3ad99ffbc55
[ "MIT" ]
56
2018-01-02T17:52:54.000Z
2019-01-19T16:05:47.000Z
lib/elasticsearch/cluster/cluster.ex
szajbus/elasticsearch-elixir
4ce751b4b5379ccc168a8930bca9c3ad99ffbc55
[ "MIT" ]
39
2019-03-12T20:35:03.000Z
2022-03-11T16:49:45.000Z
defmodule Elasticsearch.Cluster do @moduledoc """ Defines and holds configuration for your Elasticsearch cluster. defmodule MyApp.ElasticsearchCluster do use Elasticsearch.Cluster end Once you have created your cluster, add it to your application's supervision tree: children = [ ...
28.286344
92
0.61548
6578cf2de86fa7dbf149f4b94f0926b13c9e03a0
941
ex
Elixir
lib/soccer_table/gracenote/gracenote.ex
thomasbrus/phoenix-live-view-soccer-table
60bff384a71fb9c08eb22600409e71fe25e54712
[ "MIT" ]
1
2020-05-09T02:09:21.000Z
2020-05-09T02:09:21.000Z
lib/soccer_table/gracenote/gracenote.ex
thomasbrus/phoenix-live-view-soccer-table
60bff384a71fb9c08eb22600409e71fe25e54712
[ "MIT" ]
null
null
null
lib/soccer_table/gracenote/gracenote.ex
thomasbrus/phoenix-live-view-soccer-table
60bff384a71fb9c08eb22600409e71fe25e54712
[ "MIT" ]
1
2020-07-07T21:38:33.000Z
2020-07-07T21:38:33.000Z
defmodule SoccerTable.Gracenote do alias SoccerTable.Gracenote.API alias SoccerTable.Standings def get_standings do Enum.map(API.get_table(), fn json -> %{"c_Rank" => rank} = json %{"n_TeamID" => team_id} = json %{"c_Team" => team_name} = json %{"n_Matches" => matches} = json %{...
28.515152
49
0.601488
6578da65f8ab5e87b21da98a4cafd8e64bbf167c
587
ex
Elixir
lib/empex_cookbook_web/controllers/fallback_controller.ex
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
4
2019-02-11T12:15:36.000Z
2021-03-22T16:23:47.000Z
lib/empex_cookbook_web/controllers/fallback_controller.ex
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
null
null
null
lib/empex_cookbook_web/controllers/fallback_controller.ex
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
null
null
null
defmodule EmpexCookbookWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use EmpexCookbookWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn ...
27.952381
81
0.717206
6578efd25f1eaa2469f6106537290e185ad9808a
1,328
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_crypto_key_versions_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_crypto_key_versions_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_crypto_key_versions_response.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...
32.390244
102
0.760542
65794a74547cd188483219c598cc395bc100d8ff
1,040
exs
Elixir
test/savvy_test.exs
hfiguera/savvy
3ab6d08269367fa3f1aeec85adb102e55de7fe62
[ "Apache-2.0" ]
null
null
null
test/savvy_test.exs
hfiguera/savvy
3ab6d08269367fa3f1aeec85adb102e55de7fe62
[ "Apache-2.0" ]
null
null
null
test/savvy_test.exs
hfiguera/savvy
3ab6d08269367fa3f1aeec85adb102e55de7fe62
[ "Apache-2.0" ]
null
null
null
defmodule SavvyTest do use ExUnit.Case doctest Savvy test "get a list of enabled currencies" do currencies = Savvy.get_currencies() result = case currencies do %{"btc" => %{}} -> true _ -> false end assert result end test "get the current averag...
16
62
0.520192
657959b113d90c4f7cf019808f3d7eadc281ae4f
2,141
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "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.561404
148
0.726296
65795b52b3368e2b83e098e83fe08a54667145d9
285
ex
Elixir
apps/jobex_web/lib/jobex_web/util.ex
andyl/jobex
a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2
[ "MIT" ]
10
2019-10-24T01:23:07.000Z
2020-02-23T00:27:32.000Z
apps/jobex_web/lib/jobex_web/util.ex
andyl/crow
a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2
[ "MIT" ]
6
2021-03-09T18:41:09.000Z
2021-05-27T13:02:42.000Z
apps/jobex_web/lib/jobex_web/util.ex
andyl/crow
a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2
[ "MIT" ]
1
2019-10-24T01:23:08.000Z
2019-10-24T01:23:08.000Z
defmodule JobexWeb.Util do # TODO: add 'params' option... def live_link(lbl, opts) do klas = if opts[:class], do: "class='#{opts[:class]}'", else: "" """ <a href="#{opts[:to]}" to="#{opts[:to]}" data-phx-live-link="push" #{klas}> #{lbl} </a> """ end end
21.923077
79
0.526316
6579856ab435c36550f1209a9bc535236385d69b
2,395
exs
Elixir
server/satori/config/dev.exs
lastmeta/Satori
cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea
[ "MIT" ]
3
2022-02-16T17:25:53.000Z
2022-02-25T05:24:15.000Z
server/satori/config/dev.exs
lastmeta/Satori
cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea
[ "MIT" ]
9
2022-02-16T20:23:55.000Z
2022-03-26T17:27:23.000Z
server/satori/config/dev.exs
lastmeta/Satori
cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea
[ "MIT" ]
null
null
null
import Config # Configure your database config :satori, Satori.Repo, username: "postgres", password: "postgres", hostname: "localhost", database: "satori_dev", stacktrace: true, show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging an...
31.513158
86
0.71023
6579de2983fc5273782bb667160ace4a917a5259
2,464
exs
Elixir
test/controllers/problem_controller_test.exs
austinschwartz/docker_frontend_demo
5f6d0bb3db91db93d032b59cec95998bbb1935d8
[ "MIT" ]
null
null
null
test/controllers/problem_controller_test.exs
austinschwartz/docker_frontend_demo
5f6d0bb3db91db93d032b59cec95998bbb1935d8
[ "MIT" ]
null
null
null
test/controllers/problem_controller_test.exs
austinschwartz/docker_frontend_demo
5f6d0bb3db91db93d032b59cec95998bbb1935d8
[ "MIT" ]
null
null
null
defmodule Demo.ProblemControllerTest do use Demo.ConnCase alias Demo.Problem @valid_attrs %{desc: "some content", keywords: [], title: "some content"} @invalid_attrs %{} test "lists all entries on index", %{conn: conn} do conn = get conn, problem_path(conn, :index) assert html_response(conn, 200) =~...
36.776119
98
0.691964
6579f896776b56e7a61dde36f8f05dc11f877715
469
ex
Elixir
lib/companion/companion_web/application.ex
praekeltfoundation/nurseconnect-companion
9afaabaf3ae3e0123abcbd12e0a2073b681e9052
[ "BSD-3-Clause" ]
1
2018-10-10T18:20:22.000Z
2018-10-10T18:20:22.000Z
lib/companion/companion_web/application.ex
praekeltfoundation/nurseconnect-companion
9afaabaf3ae3e0123abcbd12e0a2073b681e9052
[ "BSD-3-Clause" ]
23
2018-06-07T15:13:15.000Z
2019-07-30T09:06:03.000Z
lib/companion/companion_web/application.ex
praekeltfoundation/nurseconnect-companion
9afaabaf3ae3e0123abcbd12e0a2073b681e9052
[ "BSD-3-Clause" ]
null
null
null
defmodule Companion.CompanionWeb.Application do @moduledoc """ Schema for Applications, which controls access to the API """ use Ecto.Schema import Ecto.Changeset schema "applications" do field(:name, :string) field(:token, Ecto.UUID) timestamps() end @doc false def changeset(applicatio...
20.391304
59
0.678038
657a1c270f0933b859e9b439c6f05c1c9909f60d
248
ex
Elixir
lib/aocCommon.ex
selfsimilar/aoc2019
5da1bf56d7b62e794a0811283d6b52bb456c0894
[ "Unlicense" ]
null
null
null
lib/aocCommon.ex
selfsimilar/aoc2019
5da1bf56d7b62e794a0811283d6b52bb456c0894
[ "Unlicense" ]
null
null
null
lib/aocCommon.ex
selfsimilar/aoc2019
5da1bf56d7b62e794a0811283d6b52bb456c0894
[ "Unlicense" ]
null
null
null
defmodule AocCommon do def readPuzzleInputFile(data) do String.trim(File.read!(data)) end def createIntInstructionList(instructionString) do Enum.map(String.split(instructionString, ","), fn x -> String.to_integer(x) end) end end
22.545455
84
0.737903
657a2f090ea8f3df3dfbf4598a3091aa6f46a2af
709
ex
Elixir
lib/new_relic/telemetry/ecto/supervisor.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
227
2018-09-05T15:33:23.000Z
2022-02-25T18:12:06.000Z
lib/new_relic/telemetry/ecto/supervisor.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
211
2018-09-05T21:42:41.000Z
2022-03-25T17:51:56.000Z
lib/new_relic/telemetry/ecto/supervisor.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
84
2018-09-05T04:26:26.000Z
2022-03-09T14:28:14.000Z
defmodule NewRelic.Telemetry.Ecto.Supervisor do @moduledoc false use DynamicSupervisor @ecto_repo_init [:ecto, :repo, :init] def start_link(_) do DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do :telemetry.attach( {:new_relic_ecto, :supervisor}, @e...
22.15625
71
0.671368
657a574d4b0011e1e1cb8ab1a31567dc95e2739d
24,170
ex
Elixir
lib/blockchain_api/committer.ex
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
1
2021-10-01T03:14:17.000Z
2021-10-01T03:14:17.000Z
lib/blockchain_api/committer.ex
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
null
null
null
lib/blockchain_api/committer.ex
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
null
null
null
defmodule BlockchainAPI.Committer do @moduledoc false alias BlockchainAPI.{ Committer, Batcher, Query, Repo, Schema.Account, Schema.AccountBalance, Schema.AccountTransaction, Schema.Block, Schema.CoinbaseTransaction, Schema.ConsensusMember, Schema.DataCreditTransaction, ...
31.886544
112
0.616218
657a618833dd6b74b284a631afc2b64a6498bf43
3,862
exs
Elixir
test/co2_offset/calculators/calculator_test.exs
styx/co2_offset
ac4b2bce8142e2d33ea089322c8dade34839448b
[ "Apache-2.0" ]
null
null
null
test/co2_offset/calculators/calculator_test.exs
styx/co2_offset
ac4b2bce8142e2d33ea089322c8dade34839448b
[ "Apache-2.0" ]
null
null
null
test/co2_offset/calculators/calculator_test.exs
styx/co2_offset
ac4b2bce8142e2d33ea089322c8dade34839448b
[ "Apache-2.0" ]
null
null
null
defmodule Co2Offset.Calculators.CalculatorTest do use Co2Offset.DataCase, async: true alias Co2Offset.Calculators.Calculator test "valid factory" do assert(%Co2Offset.Calculators.Calculator{} = insert(:calculator)) end @valid_attrs params_for(:calculator) @required_attributes [:iata_from, :iata_to, ...
29.037594
94
0.632315
657adb94939aa54d80272f42f73f8a984c655a05
1,018
ex
Elixir
lib/ecto_enum/typespec.ex
rschef/ecto_enum
30fb8e0a6ea4bbd51ac8a69e2a602daf2fc7234b
[ "MIT" ]
null
null
null
lib/ecto_enum/typespec.ex
rschef/ecto_enum
30fb8e0a6ea4bbd51ac8a69e2a602daf2fc7234b
[ "MIT" ]
null
null
null
lib/ecto_enum/typespec.ex
rschef/ecto_enum
30fb8e0a6ea4bbd51ac8a69e2a602daf2fc7234b
[ "MIT" ]
null
null
null
defmodule EctoEnum.Typespec do @moduledoc "Helper for generating enum typespecs" def make(enums) do enums |> Enum.reverse() |> Enum.reduce(fn a, acc when is_atom(a) or is_binary(a) -> add_type(a, acc) {a, _}, acc when is_atom(a) -> add_type(a, acc) _, acc -> acc end) end defp...
29.085714
77
0.689587
657ae3529d8f675febd32022bfa338999c7939c4
2,336
ex
Elixir
web/controllers/category_controller.ex
mukilarasan101/todos-backend
b7b3e00aa17bb117ea031dd0cba1d14d3d298159
[ "MIT" ]
null
null
null
web/controllers/category_controller.ex
mukilarasan101/todos-backend
b7b3e00aa17bb117ea031dd0cba1d14d3d298159
[ "MIT" ]
null
null
null
web/controllers/category_controller.ex
mukilarasan101/todos-backend
b7b3e00aa17bb117ea031dd0cba1d14d3d298159
[ "MIT" ]
null
null
null
defmodule Todo.CategoryController do use Todo.Web, :controller alias Todo.Category plug :scrub_params, "category" when action in [:create, :update] def index(conn, _params) do query = from(c in Category, order_by: c.id); categories = Repo.all(query) render(conn, "index.json", categories: categori...
38.295082
200
0.655822
657b96e7c8997f5e009bbcb1844ab132ad7a11ef
7,649
ex
Elixir
lib/extwitter/api/streaming.ex
KristerV/extwitter
96d38731ab27de8bc7ed4ba3e21f059f11be752c
[ "MIT" ]
null
null
null
lib/extwitter/api/streaming.ex
KristerV/extwitter
96d38731ab27de8bc7ed4ba3e21f059f11be752c
[ "MIT" ]
null
null
null
lib/extwitter/api/streaming.ex
KristerV/extwitter
96d38731ab27de8bc7ed4ba3e21f059f11be752c
[ "MIT" ]
null
null
null
defmodule ExTwitter.API.Streaming do @moduledoc """ Provides streaming API interfaces. """ @doc """ The default timeout value (in milliseconds) for how long keeps waiting until next message arrives. """ @default_stream_timeout 60_000 @default_control_timeout 10_000 @http_unauthorized 401 require L...
29.878906
122
0.613021
657ba7bcf84b6f190547077de97469dd08832967
1,929
ex
Elixir
lib/parking_lpr_web.ex
ianwestcott/parking_lpr
bd6a56b369624d1cf938ee0179a239d7d3c6d14b
[ "MIT" ]
null
null
null
lib/parking_lpr_web.ex
ianwestcott/parking_lpr
bd6a56b369624d1cf938ee0179a239d7d3c6d14b
[ "MIT" ]
null
null
null
lib/parking_lpr_web.ex
ianwestcott/parking_lpr
bd6a56b369624d1cf938ee0179a239d7d3c6d14b
[ "MIT" ]
null
null
null
defmodule ParkingLprWeb 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 ParkingLprWeb, :controller use ParkingLprWeb, :view The definitions below will be executed for every view, con...
23.52439
76
0.69155
657ba7f1e130cbb98e093f6422fc53f1fa128b3a
1,416
ex
Elixir
lib/exrush_web/telemetry.ex
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
lib/exrush_web/telemetry.ex
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
lib/exrush_web/telemetry.ex
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
defmodule ExrushWeb.Telemetry do @moduledoc false use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # eve...
27.764706
86
0.670198
657badf7f679f0aa7c52b0d99b92cb8e4900a392
221
ex
Elixir
lib/salty/core.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
23
2017-07-04T19:29:43.000Z
2021-02-16T19:44:38.000Z
lib/salty/core.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
16
2017-08-13T15:31:25.000Z
2019-06-19T14:44:13.000Z
lib/salty/core.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
19
2017-08-10T19:01:49.000Z
2021-06-20T01:34:59.000Z
defmodule Salty.Core do alias Salty.Nif, as: C def hchacha20(input, key, const) do C.core_hchacha20(input, key, const) end def hsalsa20(input, key, const) do C.core_hsalsa20(input, key, const) end end
18.416667
39
0.692308
657bb76ccc52300c3e54c7b954131228405a133a
3,643
ex
Elixir
lib/tesla/adapter/hackney.ex
moosecodebv/tesla
eb919a534aa115e7d1555d0c833fa2ebecbe5b9e
[ "MIT" ]
1
2019-06-25T07:01:01.000Z
2019-06-25T07:01:01.000Z
lib/tesla/adapter/hackney.ex
moosecodebv/tesla
eb919a534aa115e7d1555d0c833fa2ebecbe5b9e
[ "MIT" ]
null
null
null
lib/tesla/adapter/hackney.ex
moosecodebv/tesla
eb919a534aa115e7d1555d0c833fa2ebecbe5b9e
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(:hackney) do defmodule Tesla.Adapter.Hackney do @moduledoc """ Adapter for [hackney](https://github.com/benoitc/hackney). Remember to add `{:hackney, "~> 1.13"}` to dependencies (and `:hackney` to applications in `mix.exs`) Also, you need to recompile tesla after adding `:hackn...
29.144
105
0.611035
657be5cc7a31738b2f97d60ca89ba51dc3b1601d
74
exs
Elixir
config/prod.exs
thiamsantos/spike-kv
9fc1a779ef335721b7181808537248fc19ac8c04
[ "Apache-2.0" ]
1
2019-04-16T22:13:23.000Z
2019-04-16T22:13:23.000Z
config/prod.exs
thiamsantos/spike-kv
9fc1a779ef335721b7181808537248fc19ac8c04
[ "Apache-2.0" ]
null
null
null
config/prod.exs
thiamsantos/spike-kv
9fc1a779ef335721b7181808537248fc19ac8c04
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :spike, current_time: Spike.CurrentTime.SystemTime
18.5
57
0.824324
657bf7a180fec63e6ca26cbcc7183139a7695440
180
exs
Elixir
priv/repo/migrations/20170622210031_rename_release_version_column.exs
no0x9d/chankins
b4fd37d3145a001e4ebbe86eea91742d5a812858
[ "MIT" ]
null
null
null
priv/repo/migrations/20170622210031_rename_release_version_column.exs
no0x9d/chankins
b4fd37d3145a001e4ebbe86eea91742d5a812858
[ "MIT" ]
null
null
null
priv/repo/migrations/20170622210031_rename_release_version_column.exs
no0x9d/chankins
b4fd37d3145a001e4ebbe86eea91742d5a812858
[ "MIT" ]
null
null
null
defmodule Chankins.Repo.Migrations.RenameReleaseVersionColumn do use Ecto.Migration def change do rename table(:change_management_releases), :version, to: :name end end
22.5
66
0.788889
657c757851e11865a7353ebe7a8e1477515909cc
1,073
exs
Elixir
test/unit/strong_migrations/loader_test.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
23
2021-10-29T19:58:35.000Z
2021-11-13T21:42:45.000Z
test/unit/strong_migrations/loader_test.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
1
2022-02-07T12:15:16.000Z
2022-02-07T12:15:16.000Z
test/unit/strong_migrations/loader_test.exs
surgeventures/strong_migrations
3c82e34a6e7a372c6de17ba7a0b07da7664baa26
[ "MIT" ]
3
2021-10-31T02:14:10.000Z
2021-11-09T08:07:22.000Z
defmodule StrongMigrations.LoaderTest do use ExUnit.Case, async: true alias StrongMigrations.Loader setup_all do Application.put_env(:strong_migrations, :migration_paths, [ fixtures("migrations") ]) end test "load empty list of migrations when directory is empty" do assert [] == Loader.lo...
29.805556
95
0.745573
657cc0cc95532d3d099cb421950ba4411bf0ac50
59,786
ex
Elixir
lib/plug/conn.ex
almirsarajcic/plug
7b6ae2ffdc86ae77a4a63244d734f2220a7c8ebf
[ "Apache-2.0" ]
null
null
null
lib/plug/conn.ex
almirsarajcic/plug
7b6ae2ffdc86ae77a4a63244d734f2220a7c8ebf
[ "Apache-2.0" ]
null
null
null
lib/plug/conn.ex
almirsarajcic/plug
7b6ae2ffdc86ae77a4a63244d734f2220a7c8ebf
[ "Apache-2.0" ]
null
null
null
alias Plug.Conn.Unfetched defmodule Plug.Conn do @moduledoc """ The Plug connection. This module defines a `Plug.Conn` struct and the main functions for working with Plug connections. Note request headers are normalized to lowercase and response headers are expected to have lowercase keys. ## Request ...
33.140798
104
0.669521
657cd28362ed56573c4418c0da565d39d2c0b95f
316
ex
Elixir
lib/application.ex
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
3
2019-11-04T21:40:10.000Z
2021-12-22T11:25:37.000Z
lib/application.ex
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
null
null
null
lib/application.ex
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
null
null
null
defmodule Gate.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec children = [ worker(Gate.Locale, []) ] options = [ name: Gate.Supervisor, strategy: :one_for_one ] Supervisor.start_link(children, options) end end
15.047619
44
0.642405
657ce97c0d37c143594f696c0f2036c2d4afb40d
384
ex
Elixir
lib/mix/tasks/docker.ex
corka149/jarvis
66ddb3d919323aaf39be15e937c28cc8cc805e40
[ "MIT" ]
null
null
null
lib/mix/tasks/docker.ex
corka149/jarvis
66ddb3d919323aaf39be15e937c28cc8cc805e40
[ "MIT" ]
7
2019-05-25T06:39:46.000Z
2021-02-13T11:24:50.000Z
lib/mix/tasks/docker.ex
corka149/jarvis
66ddb3d919323aaf39be15e937c28cc8cc805e40
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Docker do @moduledoc """ Creates an docker image with jARVIS. """ use Mix.Task @shortdoc "Creates a docker image with tags" def run(_opts) do version = Mix.Project.config() |> Keyword.fetch!(:version) System.cmd("docker", ["build", "-t", "jarvis:" <> version, "-t", "jarvis:late...
24
91
0.619792
657cf4c57cc66c2cae31e5fe742681afa92d6915
214
exs
Elixir
test/fixtures/associations/has_many.exs
bcardarella/elixir-fixtures
2c49e0af3713bd912dc7bb639324da423d155299
[ "MIT" ]
139
2016-02-07T12:28:18.000Z
2022-02-15T11:39:58.000Z
test/fixtures/associations/has_many.exs
bcardarella/elixir-fixtures
2c49e0af3713bd912dc7bb639324da423d155299
[ "MIT" ]
17
2016-05-16T18:59:26.000Z
2020-09-11T16:53:53.000Z
test/fixtures/associations/has_many.exs
bcardarella/elixir-fixtures
2c49e0af3713bd912dc7bb639324da423d155299
[ "MIT" ]
10
2016-02-23T09:25:09.000Z
2020-02-29T14:21:21.000Z
owners model: Owner, repo: Base do brian do name "Brian" cars [cars.nissan, cars.tesla] end end cars model: Car, repo: Base do nissan do name "Nissan" end tesla do name "Tesla" end end
13.375
34
0.635514
657d5c6e660f7a93a98a15a1f591fc9afbb6033b
421
ex
Elixir
lib/nebulex_memcached_adapter/client.ex
cabol/nebulex_memcached_adapter
24d42b415c1d1782c8e37d0ecffb94eb32ed95df
[ "MIT" ]
1
2018-12-10T13:43:25.000Z
2018-12-10T13:43:25.000Z
lib/nebulex_memcached_adapter/client.ex
cabol/nebulex_memcached_adapter
24d42b415c1d1782c8e37d0ecffb94eb32ed95df
[ "MIT" ]
1
2019-01-11T19:38:01.000Z
2019-01-11T19:38:01.000Z
lib/nebulex_memcached_adapter/client.ex
cabol/nebulex_memcached_adapter
24d42b415c1d1782c8e37d0ecffb94eb32ed95df
[ "MIT" ]
null
null
null
defmodule NebulexMemcachedAdapter.Client do # Memcached Client Wrapper @moduledoc false @spec command(Nebulex.Cache.t(), fun, [term]) :: any | no_return def command(cache, fun, args) do apply(Memcache, fun, [get_conn(cache) | args]) end ## Private Functions defp get_conn(cache) do index = rem(S...
24.764706
72
0.700713
657d5d139d001feeb4c88bf7a2e4664c0a545add
270
ex
Elixir
lib/oli/repo/paging.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/repo/paging.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/repo/paging.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Repo.Paging do @moduledoc """ Params for paging queries. """ @enforce_keys [ :offset, :limit ] defstruct [ :offset, :limit ] @type t() :: %__MODULE__{ offset: integer(), limit: integer() } end
12.857143
28
0.522222
657d84f3634a6c051c30abb6b90d8a1f89109ee3
931
ex
Elixir
debian/init.d.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
debian/init.d.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
debian/init.d.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
#!/bin/sh # kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing. if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script fi ### BEGIN INIT INFO # Provides: helloworld # Required-Start: $remote_fs $syslog # Required-Stop:...
34.481481
79
0.662728
657d9b4c3ef6781f04d06399f46232236b575078
998
ex
Elixir
farmbot_os/lib/farmbot_os/sys_calls/factory_reset.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_os/lib/farmbot_os/sys_calls/factory_reset.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_os/lib/farmbot_os/sys_calls/factory_reset.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotOS.SysCalls.FactoryReset do @moduledoc false require FarmbotCore.Logger alias FarmbotCore.{Asset, BotState} alias FarmbotExt.APIFetcher def factory_reset("farmbot_os") do _ = APIFetcher.put!(APIFetcher.client(), "/api/device", %{needs_reset: false}) FarmbotOS.System.factory_re...
26.263158
80
0.693387
657db3894411417fa60093d5490e10eb8beeee6d
8,679
ex
Elixir
lib/jsonapi/view.ex
0urobor0s/jsonapi
f0cbe7373526af0bf73185689fe0bb065d5eb033
[ "MIT" ]
null
null
null
lib/jsonapi/view.ex
0urobor0s/jsonapi
f0cbe7373526af0bf73185689fe0bb065d5eb033
[ "MIT" ]
null
null
null
lib/jsonapi/view.ex
0urobor0s/jsonapi
f0cbe7373526af0bf73185689fe0bb065d5eb033
[ "MIT" ]
null
null
null
defmodule JSONAPI.View do @moduledoc """ A View is simply a module that defines certain callbacks to configure proper rendering of your JSONAPI documents. defmodule PostView do use JSONAPI.View def fields, do: [:id, :text, :body] def type, do: "post" def relationships do ...
31.33213
133
0.605369
657dc86fb06aa9ffc4212a4a3f2c94100ae64904
39,141
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/api/services.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/api/services.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/api/services.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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...
45.725467
314
0.616336
657df772ae51d276faf63f83ace56c636ca8438f
1,693
ex
Elixir
lib/elite_investigations/ecto/galnet_date.ex
lee-dohm/elite-investigations
6511bd1c734bcc7d1e4177b73006891fd1d81855
[ "MIT" ]
null
null
null
lib/elite_investigations/ecto/galnet_date.ex
lee-dohm/elite-investigations
6511bd1c734bcc7d1e4177b73006891fd1d81855
[ "MIT" ]
8
2019-03-14T16:31:37.000Z
2019-03-31T16:14:57.000Z
lib/elite_investigations/ecto/galnet_date.ex
lee-dohm/elite-investigations
6511bd1c734bcc7d1e4177b73006891fd1d81855
[ "MIT" ]
null
null
null
defmodule EliteInvestigations.Ecto.GalnetDate do @moduledoc """ An `Ecto.Type` that handles the conversion between a `utc_datetime` in the database and a `String` in memory. In the documentation below, these will be referred to as the "database type" and the "memory type". """ @behaviour Ecto.Type @d...
25.651515
94
0.634968
657e04f87e33e6f2bd199a59f6633dfd07aadca8
1,103
exs
Elixir
test/credo/check/config_comment_finder_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/check/config_comment_finder_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/check/config_comment_finder_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
1
2020-09-25T11:48:49.000Z
2020-09-25T11:48:49.000Z
defmodule Credo.Check.ConfigCommentFinderTest do use Credo.TestHelper alias Credo.Check.ConfigCommentFinder test "it should report the correct scope" do source_file = """ defmodule OtherModule do # credo:disable-for-next-line defmacro fooBarCool do {:ok} = File.read ...
23.978261
87
0.594742
657e25e7e0d721ebd0ad23310fc5eb4a10315900
3,137
ex
Elixir
lib/baseball/base64/encoder.ex
skovmand/baseball
dd8fd02b3c1ef12e03853dedbe12a43e23dd2073
[ "Unlicense" ]
1
2021-06-26T15:19:51.000Z
2021-06-26T15:19:51.000Z
lib/baseball/base64/encoder.ex
skovmand/baseball
dd8fd02b3c1ef12e03853dedbe12a43e23dd2073
[ "Unlicense" ]
null
null
null
lib/baseball/base64/encoder.ex
skovmand/baseball
dd8fd02b3c1ef12e03853dedbe12a43e23dd2073
[ "Unlicense" ]
null
null
null
defmodule Baseball.Base64.Encoder do @moduledoc """ Functions for Base64 Encoding The Base64 output is emitted in blocks of four characters, each character representing 6 bits of input. By definition in RFC4648, the input bitstring must contain an integral number of octets, in other words the total bit coun...
38.256098
105
0.675805
657e5c45bc30ff33147260510528184c6ceb1794
1,530
exs
Elixir
mix.exs
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
11
2016-09-10T01:24:32.000Z
2021-03-20T22:54:55.000Z
mix.exs
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
null
null
null
mix.exs
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
2
2017-03-01T04:16:41.000Z
2018-01-02T10:14:52.000Z
defmodule Chatroom.Mixfile do use Mix.Project def project do [app: :chatroom, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, alia...
28.867925
78
0.606536
657e9016c2400a2fe645a9bc911cc2f53bec5e59
2,740
exs
Elixir
test/actions/destroy_test.exs
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
1
2021-12-27T09:43:29.000Z
2021-12-27T09:43:29.000Z
test/actions/destroy_test.exs
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
null
null
null
test/actions/destroy_test.exs
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
null
null
null
defmodule Ash.Test.Actions.DestroyTest do @moduledoc false use ExUnit.Case, async: true defmodule Profile do @moduledoc false use Ash.Resource, data_layer: Ash.DataLayer.Ets ets do private?(true) end actions do read :default create :default update :default dest...
20.916031
87
0.629927
657ebeede4a02ee90ef9f73ae0146513ae7e9760
612
exs
Elixir
config/test.exs
kalamarski-marcin/bolt_sips
fe0e64d69c50bf41d100978628daff5a50f1d44c
[ "Apache-2.0" ]
242
2016-09-09T22:32:00.000Z
2022-02-20T18:50:29.000Z
config/test.exs
kalamarski-marcin/bolt_sips
fe0e64d69c50bf41d100978628daff5a50f1d44c
[ "Apache-2.0" ]
100
2016-10-18T04:19:09.000Z
2021-11-15T19:14:47.000Z
config/test.exs
kalamarski-marcin/bolt_sips
fe0e64d69c50bf41d100978628daff5a50f1d44c
[ "Apache-2.0" ]
51
2016-10-31T20:05:52.000Z
2022-01-20T11:45:49.000Z
use Mix.Config config :bolt_sips, Bolt, # default port considered to be: 7687 url: "bolt://localhost", basic_auth: [username: "neo4j", password: "test"], pool_size: 10, max_overflow: 2, queue_interval: 500, queue_target: 1500, prefix: :default level = if System.get_env("DEBUG") do :debug else...
18
52
0.689542
657eca2cd00b8c4f4bb1ae7d8083dcd88ffb0214
1,842
ex
Elixir
lib/codes/codes_r04.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_r04.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_r04.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_R04 do alias IcdCode.ICDCode def _R040 do %ICDCode{full_code: "R040", category_code: "R04", short_code: "0", full_name: "Epistaxis", short_name: "Epistaxis", category_name: "Epistaxis" } end def _R041 do %ICDCode{ful...
30.196721
78
0.611835
657f1444bea69457c9dd29a957b58c5091737745
485
ex
Elixir
lib/export/helpers.ex
glebmikulko/export
ab14f770f48a104e25eecbb3dbb0b3da32a0650e
[ "MIT" ]
166
2016-03-25T11:54:49.000Z
2022-01-14T13:42:00.000Z
lib/export/helpers.ex
glebmikulko/export
ab14f770f48a104e25eecbb3dbb0b3da32a0650e
[ "MIT" ]
8
2017-04-13T20:30:02.000Z
2021-10-01T16:37:11.000Z
lib/export/helpers.ex
glebmikulko/export
ab14f770f48a104e25eecbb3dbb0b3da32a0650e
[ "MIT" ]
22
2016-07-07T22:13:54.000Z
2021-12-11T08:11:08.000Z
defmodule Export.Helpers do @moduledoc false def convert_options(options) do options |> Enum.map(fn (opt)-> case opt do {key, other_options} when other_options |> is_list -> {key, other_options |> Enum.map(fn ({key, value}) -> {key |> Atom.to_charlist, value |> String.to_cha...
26.944444
66
0.575258
657f1ec5beb4e57e395550c1d014777d06a02b85
194
exs
Elixir
test/helpers/tuple_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
1
2021-03-11T23:24:01.000Z
2021-03-11T23:24:01.000Z
test/helpers/tuple_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
null
null
null
test/helpers/tuple_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
2
2021-03-11T23:27:39.000Z
2022-03-06T10:09:40.000Z
defmodule Buildex.Common.Helpers.TupleTest do use ExUnit.Case, async: false test "encodes tuple into list" do assert "[\"KEY\",\"VALUE\"]" == Poison.encode!({"KEY", "VALUE"}) end end
24.25
68
0.664948
657f2b5b7176da7c3b31d1125daaa5e49d5bde32
6,266
ex
Elixir
lib/chat_api_web/controllers/google_controller.ex
prefix-app/support
37de7e5e0456d1b8469875781f82eed76954a06e
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api_web/controllers/google_controller.ex
prefix-app/support
37de7e5e0456d1b8469875781f82eed76954a06e
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api_web/controllers/google_controller.ex
prefix-app/support
37de7e5e0456d1b8469875781f82eed76954a06e
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApiWeb.GoogleController do use ChatApiWeb, :controller require Logger alias ChatApi.Google alias ChatApi.Google.GoogleAuthorization @spec callback(Plug.Conn.t(), map()) :: Plug.Conn.t() @doc """ This action is reached via `/api/google/oauth` is the the callback URL that Google's OAuth2 ...
31.646465
98
0.600064
657f38c5f33466e2e8a1cb86d52d482c8a4fcd94
300
exs
Elixir
bench/decode_string.exs
xinz/crockford_base32
28e8e231a10db82ba8fd7cb3c93ccd87c739f331
[ "MIT" ]
null
null
null
bench/decode_string.exs
xinz/crockford_base32
28e8e231a10db82ba8fd7cb3c93ccd87c739f331
[ "MIT" ]
null
null
null
bench/decode_string.exs
xinz/crockford_base32
28e8e231a10db82ba8fd7cb3c93ccd87c739f331
[ "MIT" ]
null
null
null
defmodule Fixed128 do use CrockfordBase32, bits_size: 128 end Benchee.run( %{ "decode_to_binary" => fn -> CrockfordBase32.decode_to_binary("05ZV1G43W81HS41V10MT4Z1WMC", []) end, "fixed" => fn -> Fixed128.decode("05ZV1G43W81HS41V10MT4Z1WMC") end }, print: [fast_warning: false] )
23.076923
103
0.706667
657f3b4bb6ee426b903126792ad7f53cad0d2552
19,158
exs
Elixir
test/secret_agent_test.exs
ahamez/secrets_watcher
621f345c19dc90cf6fd056bf44c939cbffea4acb
[ "MIT" ]
1
2022-02-03T09:18:09.000Z
2022-02-03T09:18:09.000Z
test/secret_agent_test.exs
ahamez/secrets_watcher
621f345c19dc90cf6fd056bf44c939cbffea4acb
[ "MIT" ]
8
2022-02-09T04:39:09.000Z
2022-03-24T04:33:29.000Z
test/secret_agent_test.exs
ahamez/secrets_watcher
621f345c19dc90cf6fd056bf44c939cbffea4acb
[ "MIT" ]
null
null
null
defmodule SecretAgentTest do use ExUnit.Case doctest SecretAgent describe "Launch process" do test "Success: start_link/1" do assert {:ok, _pid} = start_supervised({SecretAgent, secret_agent_config: [secrets: %{}]}) end test "Success: start_link/1 with name" do assert {:ok, pid} = ...
33.434555
101
0.615304
657f59dc2ae48419d3e4f8fef6421c685cf356ac
1,365
ex
Elixir
lib/live_view_examples_web/endpoint.ex
zorbash/observer_live
f78af309a85783ac61d97ba9bb5ffd7a64ec9823
[ "MIT" ]
219
2019-04-02T02:51:59.000Z
2021-11-10T22:14:17.000Z
lib/live_view_examples_web/endpoint.ex
zorbash/observer_live
f78af309a85783ac61d97ba9bb5ffd7a64ec9823
[ "MIT" ]
1
2021-05-08T11:51:29.000Z
2021-05-08T11:51:29.000Z
lib/live_view_examples_web/endpoint.ex
zorbash/observer_live
f78af309a85783ac61d97ba9bb5ffd7a64ec9823
[ "MIT" ]
14
2019-04-02T07:19:38.000Z
2021-03-27T19:19:45.000Z
defmodule LiveViewExamplesWeb.Endpoint do use Phoenix.Endpoint, otp_app: :live_view_examples socket "/socket", LiveViewExamplesWeb.UserSocket, websocket: true, longpoll: false socket "/live", Phoenix.LiveView.Socket # Serve at "/" the static files from "priv/static" directory. # # You should set ...
27.857143
69
0.722344
657f64e88d8a2f9fcea72f1de304739b05f5e56b
1,635
ex
Elixir
lib/kv/registry.ex
anvk/kv_learn_elixir
d84ebce46e0a21463fc1a6741151b3848ff07348
[ "MIT" ]
null
null
null
lib/kv/registry.ex
anvk/kv_learn_elixir
d84ebce46e0a21463fc1a6741151b3848ff07348
[ "MIT" ]
null
null
null
lib/kv/registry.ex
anvk/kv_learn_elixir
d84ebce46e0a21463fc1a6741151b3848ff07348
[ "MIT" ]
null
null
null
defmodule KV.Registry do use GenServer ## Client API @doc """ Starts the registry """ def start_link(opts) do GenServer.start_link(__MODULE__, :ok, opts) end @doc """ Stops the registry """ def stop(server) do GenServer.stop(server) end @doc """ ...
23.695652
76
0.543731
657f7bdc8f6c0d7ab6ae04df87c4ab18ed0bfa86
2,008
exs
Elixir
config/prod.exs
shawn-mcginty/phoenix-webpack-skeleton
311559c860da97157d643d06cd2601aee81c6a3a
[ "MIT" ]
null
null
null
config/prod.exs
shawn-mcginty/phoenix-webpack-skeleton
311559c860da97157d643d06cd2601aee81c6a3a
[ "MIT" ]
null
null
null
config/prod.exs
shawn-mcginty/phoenix-webpack-skeleton
311559c860da97157d643d06cd2601aee81c6a3a
[ "MIT" ]
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...
32.387097
67
0.716135
657fa982e17b83809c2cc3556afdf969ad972b1a
4,187
ex
Elixir
lib/convert/convert.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
lib/convert/convert.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
lib/convert/convert.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
defmodule Timex.Convert do @moduledoc false @doc """ Converts a map to a Date, NaiveDateTime or DateTime, depending on the amount of date/time information in the map. """ @spec convert_map(map) :: Date.t | DateTime.t | NaiveDateTime.t | {:error, term} def convert_map(%{__struct__: _} = struct) do con...
35.786325
111
0.524003
657fc2be3896b605051f0abca7a90a4fe0a63362
685
ex
Elixir
apps/chain/lib/chain/snapshot/details.ex
vapordao/ex_testchain
0e954561502ae1ffefe6eb127f716fb350781ad7
[ "Apache-2.0" ]
5
2018-11-22T18:54:08.000Z
2021-05-07T18:47:20.000Z
apps/chain/lib/chain/snapshot/details.ex
vapordao/ex_testchain
0e954561502ae1ffefe6eb127f716fb350781ad7
[ "Apache-2.0" ]
29
2018-12-04T16:55:01.000Z
2019-01-29T14:33:26.000Z
apps/chain/lib/chain/snapshot/details.ex
vapordao/ex_testchain
0e954561502ae1ffefe6eb127f716fb350781ad7
[ "Apache-2.0" ]
3
2019-01-11T04:40:19.000Z
2022-03-23T17:31:37.000Z
defmodule Chain.Snapshot.Details do @moduledoc """ Snapshot details - `id` - Snapshot ID - `chain` - Chain type (ganache|geth|geth_vdb) - `description` - Snapshot description - `date` - Creation date - `path` - Path to snapshot file """ @type t :: %__MODULE__{ id: binary, ch...
22.833333
83
0.60146
657fca427af5b0fc52ed758c7e780c38552783fd
1,452
exs
Elixir
test/cizen/effects_test.exs
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
test/cizen/effects_test.exs
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
test/cizen/effects_test.exs
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
defmodule Cizen.EffectsTest do use ExUnit.Case test "aliases all effects" do use Cizen.Effects assert Code.ensure_loaded?(All) assert Code.ensure_loaded?(Chain) assert Code.ensure_loaded?(Dispatch) assert Code.ensure_loaded?(End) assert Code.ensure_loaded?(Fork) assert Code.ensure_loade...
28.470588
72
0.663912
657ff721482fe0d1b89cc33d51995355c8607494
982
ex
Elixir
elixir-in-action/ch-7/persistable_todo_cache/lib/todo/database.ex
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
elixir-in-action/ch-7/persistable_todo_cache/lib/todo/database.ex
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
elixir-in-action/ch-7/persistable_todo_cache/lib/todo/database.ex
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
defmodule Todo.Database do use GenServer @db_folder "./persist" @pool_size 3 def start do GenServer.start(__MODULE__, nil, name: __MODULE__ ) end def store(key, data) do key |> choose_worker() |> Todo.DatabaseWorker.store(key, data) end def get(key) do key |> ch...
18.884615
66
0.623218
6580032507dea38895ed9a478693b98a22a7abc8
82
exs
Elixir
test/grimoire_web/views/page_view_test.exs
ohr486/Grimoire
4ad1ff8bb2a31da5b848ca680b33b730d6ae5ce8
[ "MIT" ]
null
null
null
test/grimoire_web/views/page_view_test.exs
ohr486/Grimoire
4ad1ff8bb2a31da5b848ca680b33b730d6ae5ce8
[ "MIT" ]
null
null
null
test/grimoire_web/views/page_view_test.exs
ohr486/Grimoire
4ad1ff8bb2a31da5b848ca680b33b730d6ae5ce8
[ "MIT" ]
null
null
null
defmodule GrimoireWeb.PageViewTest do use GrimoireWeb.ConnCase, async: true end
20.5
39
0.829268
6580135a5be8004c55dc6ecb8b848baf5a517fea
146
ex
Elixir
debian/snow2-client.cron.d.ex
sethalves/snow2-client
b70c3ca5522a666a71a4c8992f771d5faaceccd6
[ "BSD-3-Clause" ]
15
2015-01-12T09:08:07.000Z
2021-10-03T10:03:28.000Z
debian/snow2-client.cron.d.ex
sethalves/snow2-client
b70c3ca5522a666a71a4c8992f771d5faaceccd6
[ "BSD-3-Clause" ]
1
2018-08-13T23:12:46.000Z
2018-08-14T17:46:42.000Z
debian/snow2-client.cron.d.ex
sethalves/snow2-client
b70c3ca5522a666a71a4c8992f771d5faaceccd6
[ "BSD-3-Clause" ]
3
2015-01-18T05:34:04.000Z
2018-08-13T21:56:59.000Z
# # Regular cron jobs for the snow2-client package # 0 4 * * * root [ -x /usr/bin/snow2-client_maintenance ] && /usr/bin/snow2-client_maintenance
29.2
92
0.712329
6580293687e4b48986921b45e7f0ed1c97280570
51,282
ex
Elixir
lib/elixir/lib/calendar/iso.ex
azizk/elixir
b2e33b428cea86579da22da58c3fedc2f3955170
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar/iso.ex
azizk/elixir
b2e33b428cea86579da22da58c3fedc2f3955170
[ "Apache-2.0" ]
1
2021-10-21T08:22:30.000Z
2021-10-21T08:22:30.000Z
lib/elixir/lib/calendar/iso.ex
azizk/elixir
b2e33b428cea86579da22da58c3fedc2f3955170
[ "Apache-2.0" ]
null
null
null
defmodule Calendar.ISO do @moduledoc """ The default calendar implementation, a Gregorian calendar following ISO 8601. This calendar implements a proleptic Gregorian calendar and is therefore compatible with the calendar used in most countries today. The proleptic means the Gregorian rules for leap years are...
31.655556
106
0.644827
65804183f2dba9fc2b08f3e97767edce71e200a6
960
exs
Elixir
example_avialia/config/test.exs
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
101
2020-06-11T23:51:50.000Z
2022-03-30T16:29:18.000Z
example_avialia/config/test.exs
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
11
2020-10-11T11:50:24.000Z
2022-02-12T08:54:50.000Z
example_avialia/config/test.exs
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
4
2020-07-02T08:54:22.000Z
2021-12-26T09:59:15.000Z
use Mix.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 :example_avialia, ExampleAvialia.BoardingsRepo, username: "postgres", password: "postgres", database: ...
32
84
0.76875