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
9e45404620127a640029e2f9e0d5dfc99871f3c6
1,031
ex
Elixir
apps/ewallet_api/lib/ewallet_api/application.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
2
2019-07-13T05:49:03.000Z
2021-08-19T23:58:23.000Z
apps/ewallet_api/lib/ewallet_api/application.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/application.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
3
2018-05-08T17:15:42.000Z
2021-11-10T04:08:33.000Z
defmodule EWalletAPI.Application do @moduledoc """ EWalletAPI's startup and shutdown functionalities """ use Application alias EWalletAPI.Endpoint def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the endpoint w...
28.638889
64
0.71387
9e458e6befec9d202f32fe1b613a742e907a4810
4,590
ex
Elixir
lib/livebook/config.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook/config.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook/config.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Config do @moduledoc false @type auth_mode() :: :token | :password | :disabled @doc """ Returns the longname if the distribution mode is configured to use long names. """ @spec longname() :: binary() | nil def longname() do host = Livebook.Utils.node_host() if host =~ "." do ...
22.281553
114
0.591721
9e4599c4e2bb731621897b2454fd57e9f7ff0ff6
3,180
exs
Elixir
test/graphql/resolvers/comment_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
test/graphql/resolvers/comment_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
test/graphql/resolvers/comment_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule AccentTest.GraphQL.Resolvers.Comment do use Accent.RepoCase use Oban.Testing, repo: Accent.Repo alias Accent.GraphQL.Resolvers.Comment, as: Resolver alias Accent.{ Comment, Language, Project, Repo, Revision, Translation, User } defmodule PlugConn do defstruct [:a...
33.473684
130
0.632704
9e45a7cdb11938f2897b13d7f9865493ac64eb6c
6,648
exs
Elixir
lib/logger/test/logger_test.exs
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/logger/test/logger_test.exs
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/logger/test/logger_test.exs
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
defmodule LoggerTest do use Logger.Case require Logger test "add_translator/1 and remove_translator/1" do defmodule CustomTranslator do def t(:debug, :info, :format, {'hello: ~p', [:ok]}) do :skip end def t(:debug, :info, :format, {'world: ~p', [:ok]}) do {:ok, "rewritten"}...
26.698795
79
0.61778
9e45b6fc1b3e3dc44bfa86f721fc0a4a06d12605
2,700
ex
Elixir
lib/symmetric_encryption.ex
feals-inc/symmetric_encryption.ex
74cee41e615713238e8d4211ab069784d5a761e3
[ "Apache-2.0" ]
2
2020-08-20T20:01:07.000Z
2020-08-21T01:47:08.000Z
lib/symmetric_encryption.ex
feals-inc/symmetric_encryption.ex
74cee41e615713238e8d4211ab069784d5a761e3
[ "Apache-2.0" ]
2
2020-09-28T14:46:21.000Z
2020-10-12T22:04:56.000Z
lib/symmetric_encryption.ex
feals-inc/symmetric_encryption.ex
74cee41e615713238e8d4211ab069784d5a761e3
[ "Apache-2.0" ]
2
2020-09-24T14:37:03.000Z
2020-10-11T11:15:19.000Z
defmodule SymmetricEncryption do @moduledoc """ Symmetric Encryption. Supports AES symmetric encryption using the CBC block cipher. """ @doc """ Encrypt String data. ## Examples iex> SymmetricEncryption.encrypt("Hello World") "QEVuQwIAPiplaSyln4bywEKXYKDOqQ==" """ defdelegate encrypt...
26.213592
95
0.696667
9e45b8dc01d8c15af5b47dc7fffae8fde91efe27
1,161
ex
Elixir
web/channels/user_socket.ex
rubencaro/pedro
b550b3af700962283fa9e3985e1dcc2da2e14d0d
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
rubencaro/pedro
b550b3af700962283fa9e3985e1dcc2da2e14d0d
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
rubencaro/pedro
b550b3af700962283fa9e3985e1dcc2da2e14d0d
[ "MIT" ]
null
null
null
defmodule Pedro.UserSocket do use Phoenix.Socket ## Channels # channel "rooms:*", Pedro.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 authentica...
30.552632
83
0.700258
9e46056d3f4f2bbe231daab73732c1861cc110d2
81
ex
Elixir
lib/price_tracker_web/views/tracked_product_view.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker_web/views/tracked_product_view.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker_web/views/tracked_product_view.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
defmodule PriceTrackerWeb.TrackedProductView do use PriceTrackerWeb, :view end
20.25
47
0.851852
9e4611482366af48cddb60c36b906fd3c1893e8c
735
ex
Elixir
lib/budget_app_web/controllers/fallback_controller.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app_web/controllers/fallback_controller.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app_web/controllers/fallback_controller.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
defmodule BudgetAppWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use BudgetAppWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_s...
27.222222
77
0.70068
9e46361ca3a2d9e1fcae434c6ca410e19d63b2f2
550
exs
Elixir
priv/repo/migrations/20161030220220_modify_emails_unique_constraint.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
priv/repo/migrations/20161030220220_modify_emails_unique_constraint.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
priv/repo/migrations/20161030220220_modify_emails_unique_constraint.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule Hexpm.Repo.Migrations.ModifyEmailsUniqueConstraint do use Ecto.Migration def up() do execute("ALTER TABLE emails DROP CONSTRAINT emails_email_key") execute("CREATE UNIQUE INDEX emails_email_key ON emails (email) WHERE verified = 'true'") execute("CREATE UNIQUE INDEX emails_email_user_key ON e...
34.375
93
0.761818
9e463fae062397e2a9948e2fc0e4b8d1b157b3ba
134
ex
Elixir
web/controllers/page_controller.ex
slurmulon/thing
21791e7a9579d41de28a0a6131218aed3679d033
[ "Apache-2.0" ]
null
null
null
web/controllers/page_controller.ex
slurmulon/thing
21791e7a9579d41de28a0a6131218aed3679d033
[ "Apache-2.0" ]
null
null
null
web/controllers/page_controller.ex
slurmulon/thing
21791e7a9579d41de28a0a6131218aed3679d033
[ "Apache-2.0" ]
null
null
null
defmodule Thing.PageController do use Thing.Web, :controller def index(conn, _params) do render conn, "index.html" end end
16.75
33
0.723881
9e46480398f93ab5a49304a8f8335da25dbaa283
1,190
ex
Elixir
elixir/hello/lib/hello_web/endpoint.ex
hwaterke/backend-challenge
107f373c38b09b1db3562a843ce4c38428bc4b48
[ "MIT" ]
2
2019-10-29T22:24:37.000Z
2019-11-01T16:48:43.000Z
elixir/hello/lib/hello_web/endpoint.ex
hwaterke/backend-challenge
107f373c38b09b1db3562a843ce4c38428bc4b48
[ "MIT" ]
null
null
null
elixir/hello/lib/hello_web/endpoint.ex
hwaterke/backend-challenge
107f373c38b09b1db3562a843ce4c38428bc4b48
[ "MIT" ]
null
null
null
defmodule HelloWeb.Endpoint do use Phoenix.Endpoint, otp_app: :hello socket "/socket", HelloWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when deploying your static file...
26.444444
63
0.701681
9e464ae230e02d901df01687179323c6597bfe4c
1,480
ex
Elixir
lib/prima_auth0_ex/token_provider/auth0_jwks_kids_fetcher.ex
primait/auth0_ex
15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82
[ "MIT" ]
5
2021-12-01T10:50:40.000Z
2022-02-15T13:07:02.000Z
lib/prima_auth0_ex/token_provider/auth0_jwks_kids_fetcher.ex
primait/auth0_ex
15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82
[ "MIT" ]
11
2021-12-22T09:19:28.000Z
2022-03-24T06:15:04.000Z
lib/prima_auth0_ex/token_provider/auth0_jwks_kids_fetcher.ex
primait/auth0_ex
15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82
[ "MIT" ]
null
null
null
defmodule PrimaAuth0Ex.TokenProvider.Auth0JwksKidsFetcher do @moduledoc """ Fetches key ids (aka `kid`s) from Auth0 JWKS """ require Logger alias PrimaAuth0Ex.TokenProvider.JwksKidsFetcher @behaviour JwksKidsFetcher @auth0_jwks_api_path "/.well-known/jwks.json" @spec fetch_kids(PrimaAuth0Ex.Auth0Cred...
26.428571
96
0.656757
9e464e4446b7098a90b8daa8258d181b08a76b83
63
ex
Elixir
lib/travel/repo.ex
markevich/travel
f6f7dd7dd459149926c305984685d91ca1376f77
[ "MIT" ]
4
2016-11-01T14:59:33.000Z
2016-11-01T15:05:57.000Z
lib/travel/repo.ex
markevich/travel
f6f7dd7dd459149926c305984685d91ca1376f77
[ "MIT" ]
null
null
null
lib/travel/repo.ex
markevich/travel
f6f7dd7dd459149926c305984685d91ca1376f77
[ "MIT" ]
null
null
null
defmodule Travel.Repo do use Ecto.Repo, otp_app: :travel end
15.75
33
0.761905
9e464e99e74ecea09369a8d3924b28843781916f
437
exs
Elixir
test/fixtures/toolchain/nerves.exs
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
1
2019-06-12T17:34:10.000Z
2019-06-12T17:34:10.000Z
test/fixtures/toolchain/nerves.exs
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
null
null
null
test/fixtures/toolchain/nerves.exs
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
null
null
null
use Mix.Config version = Path.join(__DIR__, "VERSION") |> File.read! |> String.trim config :toolchain, :nerves_env, type: :toolchain, version: version, compiler: :nerves_package, target_tuple: :x86_64_unknown_linux_musl, platform: Nerves.Toolchain.CTNG, platform_config: [ defconfig: [ darw...
19
43
0.665904
9e4659e3703c5d2d02a83360c34109a594584699
9,517
exs
Elixir
spec/aoc/day10_spec.exs
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
spec/aoc/day10_spec.exs
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
spec/aoc/day10_spec.exs
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
defmodule AoC.Day10.Spec do @moduledoc false use ESpec describe "sanity checks" do it "tests a small example" do expect( AoC.Day10.zap_asteroids( [ ".#....#####...#..", "##...##.#####..##", "##...#...#.#####.", "..#.....X...###..", ...
27.665698
99
0.295471
9e469e4b00096ba903c4488499becddfabef2426
1,107
ex
Elixir
apps/institute/lib/institute/accounts.ex
hui-ad/institute
28242d9d324d710a0e70678ec2d79099f1d3a98d
[ "MIT" ]
4
2019-06-12T19:05:34.000Z
2019-08-18T15:02:56.000Z
apps/institute/lib/institute/accounts.ex
hui-ad/institute
28242d9d324d710a0e70678ec2d79099f1d3a98d
[ "MIT" ]
33
2019-06-12T18:59:21.000Z
2021-03-31T15:45:22.000Z
apps/institute/lib/institute/accounts.ex
hui-ad/institute
28242d9d324d710a0e70678ec2d79099f1d3a98d
[ "MIT" ]
1
2019-06-16T09:38:08.000Z
2019-06-16T09:38:08.000Z
defmodule Institute.Accounts do @moduledoc """ The Accounts context. """ alias Institute.Repo alias Institute.Accounts.User def get_user(id) do Repo.get(User, id) end def get_user!(id) do Repo.get!(User, id) end def get_user_by(params) do Repo.get_by(User, params) end def list_u...
18.147541
67
0.630533
9e46c4d8bb0a9b504f0e4a83731109f88f29d38f
203
ex
Elixir
test/support/test_repo.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
test/support/test_repo.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
test/support/test_repo.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
defmodule TestRepo do def transaction(fun) do send(self(), {:transaction, fun}) {:ok, fun.()} end def rollback(error) do send(self(), {:rollback, error}) {:error, error} end end
16.916667
37
0.605911
9e46dda96289d3fce56c7a68ccf71ead4f49e184
1,229
exs
Elixir
test/maintenance_mode/plug_test.exs
tlux/maintenance_mode
9c7f908e15df3bc5f7dbb08a1a7d52801d014656
[ "MIT" ]
null
null
null
test/maintenance_mode/plug_test.exs
tlux/maintenance_mode
9c7f908e15df3bc5f7dbb08a1a7d52801d014656
[ "MIT" ]
null
null
null
test/maintenance_mode/plug_test.exs
tlux/maintenance_mode
9c7f908e15df3bc5f7dbb08a1a7d52801d014656
[ "MIT" ]
null
null
null
defmodule MaintenanceMode.PlugTest do use ExUnit.Case use Plug.Test alias MaintenanceMode.Plug, as: MaintenanceModePlug alias MaintenanceMode.StatusAgent describe "init/1" do test "get config when mod option given" do assert MaintenanceModePlug.init(mod: MyMaintenanceMode) == {MyMai...
26.148936
79
0.672905
9e46f1806c0a87b72d94e9fa61918cefe7bb689a
2,277
ex
Elixir
lib/tesla/middleware/core.ex
hasclass/tesla
c1ee0e3417ea269124869ca1ff33fd2364391154
[ "MIT" ]
1
2020-12-21T03:45:23.000Z
2020-12-21T03:45:23.000Z
lib/tesla/middleware/core.ex
hasclass/tesla
c1ee0e3417ea269124869ca1ff33fd2364391154
[ "MIT" ]
null
null
null
lib/tesla/middleware/core.ex
hasclass/tesla
c1ee0e3417ea269124869ca1ff33fd2364391154
[ "MIT" ]
null
null
null
defmodule Tesla.Middleware.BaseUrl do @behaviour Tesla.Middleware @moduledoc """ Set base URL for all requests. The base URL will be prepended to request path/url only if it does not include http(s). ### Example usage ``` defmodule MyClient do use Tesla plug Tesla.Middleware.BaseUrl, "https:...
19.29661
81
0.610892
9e46f3359ccdabc1009e362452d38293a6eaf424
1,102
ex
Elixir
rojak-api/test/support/conn_case.ex
pyk/rojak
0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7
[ "BSD-3-Clause" ]
107
2016-10-02T05:54:42.000Z
2021-08-05T00:20:51.000Z
rojak-api/test/support/conn_case.ex
pyk/rojak
0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7
[ "BSD-3-Clause" ]
134
2016-10-02T21:21:08.000Z
2016-12-27T02:46:34.000Z
rojak-api/test/support/conn_case.ex
pyk/rojak
0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7
[ "BSD-3-Clause" ]
54
2016-10-02T08:47:56.000Z
2020-03-08T00:56:03.000Z
defmodule RojakAPI.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 and query models. Finally, if the test case interacts with the da...
24.488889
70
0.705989
9e47397eb2d3dc55b0943654eb8e305038b2b527
163
exs
Elixir
test/elixir_playground_test.exs
jeffcole/elixir_playground
39d0b099c97cd50a60c4f8d698c2776738e62094
[ "MIT" ]
null
null
null
test/elixir_playground_test.exs
jeffcole/elixir_playground
39d0b099c97cd50a60c4f8d698c2776738e62094
[ "MIT" ]
null
null
null
test/elixir_playground_test.exs
jeffcole/elixir_playground
39d0b099c97cd50a60c4f8d698c2776738e62094
[ "MIT" ]
null
null
null
require IEx defmodule ElixirPlaygroundTest do use ExUnit.Case doctest ElixirPlayground test "the truth" do # IEx.pry() assert 1 + 1 == 2 end end
13.583333
33
0.687117
9e474141500d1cdaa89de6dfb1f3a2676d8be0a3
14,225
ex
Elixir
lib/elixir/lib/system.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
1
2019-06-11T20:22:20.000Z
2019-06-11T20:22:20.000Z
lib/elixir/lib/system.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/system.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
defmodule System do @moduledoc """ The System module provides access to variables used or maintained by the VM and to functions that interact directly with the VM or the host system. """ defp strip_re(iodata, pattern) do :re.replace(iodata, pattern, "", [return: :binary]) end defp read_stripped(pa...
29.14959
118
0.660738
9e4745b179b4d2d32c3504efa0eb50c6a18e370c
3,527
ex
Elixir
lib/taex/moving_average.ex
benyblack/Taex
a98bb1523497c455ce626cadd345185ecc03cea8
[ "MIT" ]
20
2017-07-17T13:08:21.000Z
2021-07-15T05:58:19.000Z
lib/taex/moving_average.ex
benyblack/Taex
a98bb1523497c455ce626cadd345185ecc03cea8
[ "MIT" ]
3
2017-09-06T12:23:45.000Z
2021-05-25T07:11:06.000Z
lib/taex/moving_average.ex
benyblack/Taex
a98bb1523497c455ce626cadd345185ecc03cea8
[ "MIT" ]
6
2017-09-01T15:43:17.000Z
2019-12-30T07:58:25.000Z
defmodule Taex.MovingAverage do defmodule DoubleEma do defstruct [:ema, :ema_2, :value] end defmodule TripleEma do defstruct [:ema, :ema_2, :ema_3, :value] end defmodule VolumeWeightedMovingAverage do defstruct [:prices, :volumes, :periods, :value] def update(%VolumeWeightedMovingAverage{} ...
33.590476
115
0.623193
9e476faa91ecfbad85068ee8399d9448e7832c10
227
exs
Elixir
test/handlers/rcpt_test.exs
maxneuvians/pique
1f153d98e18cf58736abadf6efa73386eedb077c
[ "MIT" ]
13
2020-03-02T03:30:04.000Z
2022-02-21T10:29:59.000Z
test/handlers/rcpt_test.exs
maxneuvians/pique
1f153d98e18cf58736abadf6efa73386eedb077c
[ "MIT" ]
null
null
null
test/handlers/rcpt_test.exs
maxneuvians/pique
1f153d98e18cf58736abadf6efa73386eedb077c
[ "MIT" ]
null
null
null
defmodule Pique.Handlers.RCPTTest do use ExUnit.Case import Pique.Handlers.RCPT describe "handle/1" do test "returns {:ok, state} state is passed passed" do assert handle(%{}) == {:ok, %{}} end end end
17.461538
57
0.647577
9e478de2ac1ff11c54744bd630953686ef7d1deb
6,222
ex
Elixir
lib/iex/lib/iex/evaluator.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/evaluator.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/evaluator.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
defmodule IEx.Evaluator do @moduledoc false @doc """ Eval loop for an IEx session. Its responsibilities include: * loading of .iex files * evaluating code * trapping exceptions in the code being evaluated * keeping expression history """ def start(server, leader) do old_leader = Process...
29.770335
99
0.64738
9e479eef9f1d72c5f9bffde29ba38d24122f43eb
398
exs
Elixir
test/discount_test.exs
goravbhootra/braintree-elixir
53c10216125c13c05a19edf1dc1c98a818c46e09
[ "MIT" ]
null
null
null
test/discount_test.exs
goravbhootra/braintree-elixir
53c10216125c13c05a19edf1dc1c98a818c46e09
[ "MIT" ]
null
null
null
test/discount_test.exs
goravbhootra/braintree-elixir
53c10216125c13c05a19edf1dc1c98a818c46e09
[ "MIT" ]
null
null
null
defmodule Braintree.DiscountTest do use ExUnit.Case, async: true alias Braintree.Discount describe "new/1" do test "builds a sane struct" do discount = Discount.new(%{ "id" => "asdf1234", "amount" => "25.00" }) assert discount.id == "asdf1234" refute discount.never_e...
20.947368
51
0.630653
9e47a612cb04873ac1bd0b2a6454f9c909813021
1,236
ex
Elixir
test/event/support/upcast/events.ex
Cantido/commanded
e8058c4381e16547e6960eaf9f38619c6a43b18f
[ "MIT" ]
1,220
2017-10-31T10:56:40.000Z
2022-03-31T17:40:19.000Z
test/event/support/upcast/events.ex
Cantido/commanded
e8058c4381e16547e6960eaf9f38619c6a43b18f
[ "MIT" ]
294
2017-11-03T10:33:41.000Z
2022-03-24T08:36:42.000Z
test/event/support/upcast/events.ex
Cantido/commanded
e8058c4381e16547e6960eaf9f38619c6a43b18f
[ "MIT" ]
208
2017-11-03T10:56:47.000Z
2022-03-14T05:49:38.000Z
defmodule Commanded.Event.Upcast.Events do alias Commanded.Event.Upcaster defmodule EventOne do @derive Jason.Encoder defstruct [:version, :reply_to, :process_id] end defmodule EventTwo do @derive Jason.Encoder defstruct [:version, :reply_to, :process_id] defimpl Upcaster do def upc...
22.888889
86
0.673948
9e48269bbdfa1114b368f3ae87e5db4badd94e81
363
ex
Elixir
lib/slurp/iex/commands/help.ex
AwaitFuture/slurp
f1d0fe5feb21f3135727c1516908e89130ea5801
[ "MIT" ]
20
2021-01-02T07:45:04.000Z
2022-03-29T07:34:42.000Z
lib/slurp/iex/commands/help.ex
AwaitFuture/slurp
f1d0fe5feb21f3135727c1516908e89130ea5801
[ "MIT" ]
11
2021-01-25T13:10:34.000Z
2021-09-23T05:34:08.000Z
lib/slurp/iex/commands/help.ex
AwaitFuture/slurp
f1d0fe5feb21f3135727c1516908e89130ea5801
[ "MIT" ]
1
2021-03-12T07:27:05.000Z
2021-03-12T07:27:05.000Z
defmodule Slurp.IEx.Commands.Help do def help do IO.puts(""" * help * blockchains [where: [...], order: [...]] * start_blockchains [where: [...]] * stop_blockchains [where: [...]] * new_head_subscriptions [where: [...], order: [...]] * log_subscriptions [where: [...], order: [...]] """...
24.2
57
0.553719
9e4827f24e3ef7bc222e9c00b0857fd7fd460c4f
2,000
exs
Elixir
config/dev.exs
dreamingechoes/multi_tenancex
cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec
[ "MIT" ]
30
2018-06-27T17:51:53.000Z
2021-04-24T03:17:55.000Z
config/dev.exs
dreamingechoes/multi_tenancex
cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec
[ "MIT" ]
null
null
null
config/dev.exs
dreamingechoes/multi_tenancex
cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec
[ "MIT" ]
7
2018-07-24T17:56:14.000Z
2019-12-31T02:10:13.000Z
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :multi_tenancex, MultiTenancexWeb.Endpoint, ht...
30.769231
170
0.7045
9e482b6c594272326de85fdd4ddb1d5c6ec7d3ce
1,284
exs
Elixir
test/auth/bcrypt_test.exs
Fibrasek/doorman
1b32fc3d3dd39d077d69ad1d3ef62f80f3af59f4
[ "MIT" ]
null
null
null
test/auth/bcrypt_test.exs
Fibrasek/doorman
1b32fc3d3dd39d077d69ad1d3ef62f80f3af59f4
[ "MIT" ]
null
null
null
test/auth/bcrypt_test.exs
Fibrasek/doorman
1b32fc3d3dd39d077d69ad1d3ef62f80f3af59f4
[ "MIT" ]
null
null
null
defmodule Doorman.Auth.BcryptTest do use Doorman.ConnCase alias Doorman.Auth.Bcrypt defmodule FakeUser do use Ecto.Schema import Ecto.Changeset schema "fake_users" do field :hashed_password field :password, :string, virtual: true end def create_changeset(changes) do %__MO...
26.75
104
0.728193
9e483a5a06291033b6094dd48da1e592f3e4e515
1,070
ex
Elixir
priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/lib/foo_bar_web/router.ex
c4710n/phx_custom
19080ed8896be9ae846d12b2f631a1bc4aef5c78
[ "MIT" ]
null
null
null
priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/lib/foo_bar_web/router.ex
c4710n/phx_custom
19080ed8896be9ae846d12b2f631a1bc4aef5c78
[ "MIT" ]
null
null
null
priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/lib/foo_bar_web/router.ex
c4710n/phx_custom
19080ed8896be9ae846d12b2f631a1bc4aef5c78
[ "MIT" ]
null
null
null
defmodule FooBarWeb.Router do use FooBarWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", FooBarWeb do pipe_thr...
24.883721
70
0.697196
9e486adf6353834d7300f8e748aa4c6234ab3ee0
674
exs
Elixir
test/web/controller/admin/skill_controller_test.exs
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
test/web/controller/admin/skill_controller_test.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
test/web/controller/admin/skill_controller_test.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Web.Admin.SkillControllerTest do use Web.AuthConnCase test "create a skill", %{conn: conn} do params = %{ name: "Slash", command: "slash", description: "Slash at the target", level: "1", user_text: "You slash at your {target}", usee_text: "You are slashed at by {wh...
24.962963
81
0.61276
9e48a74d4e2d4be1e63f4ffb67614a7e30a21301
5,476
ex
Elixir
lib/ex_csv/parser.ex
CargoSense/ex_csv
247df4f6d244b5fdbad52dd27385716a6bd48825
[ "MIT", "Unlicense" ]
46
2015-07-27T15:11:46.000Z
2022-03-18T04:36:25.000Z
lib/ex_csv/parser.ex
CargoSense/ex_csv
247df4f6d244b5fdbad52dd27385716a6bd48825
[ "MIT", "Unlicense" ]
7
2015-06-23T17:55:27.000Z
2016-08-03T20:51:23.000Z
lib/ex_csv/parser.ex
CargoSense/ex_csv
247df4f6d244b5fdbad52dd27385716a6bd48825
[ "MIT", "Unlicense" ]
12
2015-04-11T05:26:40.000Z
2018-09-25T15:00:12.000Z
defmodule ExCsv.Parser do defstruct delimiter: 44, return: 13, newline: 10, quote: 34, headings: false, quoting: false, quote_at: nil, eat_next_quote: true def parse!(text, opts \\ []) do case parse(text, opts) do {:ok, table} -> table {:error, err} -> raise ArgumentError, err end end def ...
40.562963
149
0.660884
9e48e3353e81e3f8e0e4a41674189c083bb2acc7
2,940
ex
Elixir
lib/repg2/worker.ex
paulobezerr/repg2
824734df292dadf1705cf1709550e01e13170b5a
[ "Apache-2.0" ]
25
2018-02-17T16:15:36.000Z
2021-05-28T01:36:39.000Z
lib/repg2/worker.ex
paulobezerr/repg2
824734df292dadf1705cf1709550e01e13170b5a
[ "Apache-2.0" ]
null
null
null
lib/repg2/worker.ex
paulobezerr/repg2
824734df292dadf1705cf1709550e01e13170b5a
[ "Apache-2.0" ]
4
2018-09-27T08:54:07.000Z
2020-11-09T08:54:25.000Z
defmodule RePG2.Worker do @moduledoc false use GenServer require Logger alias RePG2.Impl def start_link(), do: GenServer.start_link(__MODULE__, [], name: __MODULE__) @doc """ Make a globally locked multi call to all `RePG2.Worker`s in the cluster. This function acquires a cluster-wide lock on the ...
23.149606
78
0.655102
9e48edfcfb1e98b17284be531af7be09d744c5ff
526
exs
Elixir
priv/repo/migrations/20211125042259_create_meetings.exs
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
null
null
null
priv/repo/migrations/20211125042259_create_meetings.exs
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
3
2021-11-25T05:44:03.000Z
2021-11-26T06:33:53.000Z
priv/repo/migrations/20211125042259_create_meetings.exs
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
null
null
null
defmodule Rostrum.Repo.Migrations.CreateMeetings do use Ecto.Migration def change do create table(:meetings, primary_key: false) do add :id, :binary_id, primary_key: true add :date, :naive_datetime add :title, :string add :unit_id, references(:units, on_delete: :nothing, type: :binary_i...
27.684211
80
0.68251
9e49306b35bb17163ccab92acf6a38b5a4781ff2
1,061
exs
Elixir
config/prod.exs
ruhrjs/ruhrjs-karaoke
93c6bee18873ead2854e1bbf835a665cc782f7da
[ "Unlicense" ]
null
null
null
config/prod.exs
ruhrjs/ruhrjs-karaoke
93c6bee18873ead2854e1bbf835a665cc782f7da
[ "Unlicense" ]
null
null
null
config/prod.exs
ruhrjs/ruhrjs-karaoke
93c6bee18873ead2854e1bbf835a665cc782f7da
[ "Unlicense" ]
null
null
null
use Mix.Config require Logger # 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.d...
34.225806
111
0.739868
9e497879d6e9723fad70b63eff6658f46eaea921
365
ex
Elixir
lib/cforum/jobs/appsignal.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum/jobs/appsignal.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum/jobs/appsignal.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule Cforum.Jobs.Appsignal do require Logger def handle_event([:oban, :job, :exception], _measurement, meta, _) do Logger.error("Error executing job: #{meta.kind} (#{inspect(meta.error)})\n\n#{inspect(meta.stacktrace)}") if meta.attempt >= meta.max_attempts, do: Appsignal.send_error(meta[:kind]...
33.181818
109
0.69863
9e4979c7e30e66aeef4f4f67258a1881baf84280
3,259
ex
Elixir
lib/aba_cli/score.ex
jscheel42/aba_cli
c66c4921f970dbc8acea4f273d9802c978d2f123
[ "MIT" ]
null
null
null
lib/aba_cli/score.ex
jscheel42/aba_cli
c66c4921f970dbc8acea4f273d9802c978d2f123
[ "MIT" ]
null
null
null
lib/aba_cli/score.ex
jscheel42/aba_cli
c66c4921f970dbc8acea4f273d9802c978d2f123
[ "MIT" ]
null
null
null
defmodule AbaCLI.Score do def db_update_score(score, player_db) do level = Map.get(score, "level") kills = Map.get(score, "kills") assists = Map.get(score, "assists") takedowns = Map.get(score, "takedowns") deaths = Map.get(score, "deaths") highest_kill_streak = Map.get(score, "highest_kill...
39.26506
77
0.670451
9e499ce88000f34ae886c3636218ad709d2502e2
501
ex
Elixir
lib/phx_crud_users_web/views/error_view.ex
LeonardoSSev/phx-crud-users
52dabaae0c81adeee39afa48eb17331de261d3c4
[ "MIT" ]
null
null
null
lib/phx_crud_users_web/views/error_view.ex
LeonardoSSev/phx-crud-users
52dabaae0c81adeee39afa48eb17331de261d3c4
[ "MIT" ]
null
null
null
lib/phx_crud_users_web/views/error_view.ex
LeonardoSSev/phx-crud-users
52dabaae0c81adeee39afa48eb17331de261d3c4
[ "MIT" ]
null
null
null
defmodule PhxCrudUsersWeb.ErrorView do use PhxCrudUsersWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the tem...
29.470588
61
0.740519
9e49a138b9d3d95b2a95452232176fd59cef17d9
1,949
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_disable_processor_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_disable_processor_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_disable_processor_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...
34.803571
193
0.770139
9e49ccb9010c10ede4338701301a5fd307365530
370
exs
Elixir
test/day3_ch1.exs
AJPcodes/advent_of_code_2018
1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235
[ "MIT" ]
1
2018-12-04T19:54:13.000Z
2018-12-04T19:54:13.000Z
test/day3_ch1.exs
AJPcodes/advent_of_code_2018
1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235
[ "MIT" ]
null
null
null
test/day3_ch1.exs
AJPcodes/advent_of_code_2018
1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235
[ "MIT" ]
null
null
null
defmodule Test.D3.Ch1 do use ExUnit.Case # 1288 @ 130,449: 22x26 # 1289 @ 310,489: 14x27 # 1290 @ 528,540: 20x11 test "Parses lines into data structs" do assert D3.Ch1.parse_line("#1288 @ 130,449: 22x26") == %{ id: 1288, left: 130, top: 449, width: 22,...
18.5
60
0.502703
9e49d8d00d4e980b99e67c19f051cdb8c7f72f04
143
ex
Elixir
chapter_8/todo_supervised/lib/todo/cache/client.ex
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
3
2021-04-22T11:55:58.000Z
2021-08-22T13:19:56.000Z
chapter_8/todo_supervised/lib/todo/cache/client.ex
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
null
null
null
chapter_8/todo_supervised/lib/todo/cache/client.ex
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
3
2021-04-22T21:19:45.000Z
2021-08-22T13:20:03.000Z
defmodule Todo.Cache.Client do def server_process(todo_list_name), do: GenServer.call(Todo.Cache, {:server_process, todo_list_name}) end
28.6
69
0.783217
9e49dacd2c73a660be960a18f35bfe5357719bb2
550
exs
Elixir
apps/location_service/config/config.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
apps/location_service/config/config.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
apps/location_service/config/config.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
use Mix.Config config :location_service, :http_pool, :google_http_pool config :location_service, google_api_key: System.get_env("GOOGLE_API_KEY"), google_client_id: System.get_env("GOOGLE_MAPS_CLIENT_ID") || "", google_signing_key: System.get_env("GOOGLE_MAPS_SIGNING_KEY") || "", geocode: {:system, "LOCATION_...
36.666667
70
0.745455
9e4a06c21ce36becf146be2f44b6af5262a4d8bf
120
ex
Elixir
apps/peedy_f/lib/behaviours/watermarker.ex
poteto/peedy
df9d5ee7fcbceb30b5939b36224a257249a180ea
[ "Apache-2.0" ]
34
2017-05-07T08:50:59.000Z
2021-11-25T00:27:11.000Z
apps/peedy_f/lib/behaviours/watermarker.ex
poteto/peedy
df9d5ee7fcbceb30b5939b36224a257249a180ea
[ "Apache-2.0" ]
null
null
null
apps/peedy_f/lib/behaviours/watermarker.ex
poteto/peedy
df9d5ee7fcbceb30b5939b36224a257249a180ea
[ "Apache-2.0" ]
7
2017-05-10T12:42:30.000Z
2021-11-03T01:21:02.000Z
defmodule PeedyF.WatermarkerBehaviour do alias PeedyF.Watermark @callback new(text :: String.t) :: Watermark.t end
20
48
0.766667
9e4a070e2e0350be9312ba937e0071119f1f8846
902
ex
Elixir
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
dsdshcym/elixir-google-api
2d9eef7207bb422d7ecfc1ec780721c6abd0ac81
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
dsdshcym/elixir-google-api
2d9eef7207bb422d7ecfc1ec780721c6abd0ac81
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
dsdshcym/elixir-google-api
2d9eef7207bb422d7ecfc1ec780721c6abd0ac81
[ "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.407407
74
0.763858
9e4a088a1e45ba14328e93e975ea6d615725716c
2,584
ex
Elixir
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_metric_filter.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_metric_filter.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_metric_filter.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.753846
138
0.709752
9e4a0a8bf15a56378a84f7deae301899131b5ddf
795
ex
Elixir
lib/nostrum/cache/guild/guild_register.ex
jos-b/nostrum
baf5c9de9f17c3bd99c5c06a454e03cc448aad1c
[ "MIT" ]
1
2020-12-08T23:47:17.000Z
2020-12-08T23:47:17.000Z
lib/nostrum/cache/guild/guild_register.ex
jos-b/nostrum
baf5c9de9f17c3bd99c5c06a454e03cc448aad1c
[ "MIT" ]
null
null
null
lib/nostrum/cache/guild/guild_register.ex
jos-b/nostrum
baf5c9de9f17c3bd99c5c06a454e03cc448aad1c
[ "MIT" ]
1
2020-09-03T13:55:55.000Z
2020-09-03T13:55:55.000Z
defmodule Nostrum.Cache.Guild.GuildRegister do @moduledoc false alias Nostrum.Cache.Guild.GuildSupervisor alias Nostrum.Cache.GuildCache def lookup(id) do case Registry.lookup(GuildRegistry, id) do [{pid, _}] -> {:ok, pid} [] -> {:error, :id_not_found_on_guild_lookup} end ...
19.875
82
0.6
9e4a43f812b0cca111375c6de92895b510cd2494
1,924
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_update_deidentify_template_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_update_deidentify_template_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_update_deidentify_template_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.981818
150
0.755198
9e4a9d8f04fdbb9b7b229d8cc38f76cbf483ffb4
539
ex
Elixir
lib/hl7/2.4/segments/om3.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/om3.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/om3.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.Segments.OM3 do @moduledoc false require Logger alias HL7.V2_4.{DataTypes} use HL7.Segment, fields: [ segment: nil, sequence_number_test_observation_master_file: nil, preferred_coding_system: DataTypes.Ce, valid_coded_answers_: DataTypes.Ce, normal_text_cod...
28.368421
69
0.758813
9e4aa509a5fa167c1a37c513616d15b49f70ffc5
3,396
ex
Elixir
lib/tesla/adapter/httpc.ex
hasclass/tesla
c1ee0e3417ea269124869ca1ff33fd2364391154
[ "MIT" ]
1
2020-12-21T03:45:23.000Z
2020-12-21T03:45:23.000Z
lib/tesla/adapter/httpc.ex
hasclass/tesla
c1ee0e3417ea269124869ca1ff33fd2364391154
[ "MIT" ]
null
null
null
lib/tesla/adapter/httpc.ex
hasclass/tesla
c1ee0e3417ea269124869ca1ff33fd2364391154
[ "MIT" ]
null
null
null
defmodule Tesla.Adapter.Httpc do @moduledoc """ Adapter for [httpc](http://erlang.org/doc/man/httpc.html) This is the default adapter. **NOTE** Tesla overrides default autoredirect value with false to ensure consistency between adapters """ @behaviour Tesla.Adapter import Tesla.Adapter.Shared, only: ...
32.970874
101
0.669317
9e4aa7ee4bab05a2c4c2044f4ce0b312cdde550d
19,885
ex
Elixir
lib/ecto/association.ex
rbishop/ecto
a8a3215c9e2e35f7556f54c8d47d78a3670796d8
[ "Apache-2.0" ]
null
null
null
lib/ecto/association.ex
rbishop/ecto
a8a3215c9e2e35f7556f54c8d47d78a3670796d8
[ "Apache-2.0" ]
null
null
null
lib/ecto/association.ex
rbishop/ecto
a8a3215c9e2e35f7556f54c8d47d78a3670796d8
[ "Apache-2.0" ]
null
null
null
import Ecto.Query, only: [from: 2, join: 4, distinct: 3, select: 3] defmodule Ecto.Association.NotLoaded do @moduledoc """ Struct returned by one to one associations when they are not loaded. The fields are: * `__field__` - the association field in `owner` * `__owner__` - the model that owns the associ...
30.877329
111
0.64873
9e4aa9a5ab1c0ad7cbf9bb1f5609eff7d2daca0b
2,691
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/maximize_spend_bid_strategy.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/maximize_spend_bid_strategy.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/maximize_spend_bid_strategy.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
48.053571
298
0.753623
9e4aacdc4e887043312afbe50d9ba6cc08effb47
1,355
exs
Elixir
test/oauth_xyz/model/interact_test.exs
ritou/elixir-oauth-xyz
110d4eadb16fa5c106ae0f6fad49c0424bdbf477
[ "MIT" ]
2
2020-04-22T13:22:25.000Z
2020-12-01T12:01:30.000Z
test/oauth_xyz/model/interact_test.exs
ritou/elixir-oauth-xyz
110d4eadb16fa5c106ae0f6fad49c0424bdbf477
[ "MIT" ]
3
2019-12-05T01:32:09.000Z
2019-12-09T01:15:32.000Z
test/oauth_xyz/model/interact_test.exs
ritou/elixir-oauth-xyz-web
110d4eadb16fa5c106ae0f6fad49c0424bdbf477
[ "MIT" ]
null
null
null
defmodule OAuthXYZ.Model.InteractTest do use OAuthXYZ.DataCase alias OAuthXYZ.Model.Interact test "constructor" do uri = "https://client.example.net/return/123455" nonce = "LKLTI25DK82FX4T4QFZC" interact = Interact.parse(%{ "redirect" => true, "callback" => %{ "uri" ...
21.171875
52
0.624354
9e4ad5e221dbfb105bc16839d7985b55770938b1
1,799
ex
Elixir
chromoid_web/lib/chromoid/application.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
7
2020-11-18T11:29:20.000Z
2022-01-16T03:16:14.000Z
chromoid_web/lib/chromoid/application.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
null
null
null
chromoid_web/lib/chromoid/application.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
1
2021-01-06T15:40:46.000Z
2021-01-06T15:40:46.000Z
defmodule Chromoid.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 = [ # Start the Ecto repositorys Chromoid.Repo, Chromoid.TimescaleRepo, # Start the T...
32.125
62
0.704836
9e4ada21a613c291bcc7190b70099701b6d8215b
808
exs
Elixir
test/tacit_test.exs
J3RN/tacit
2578342d500c135218b0c2dcc0b801c313f3564d
[ "MIT" ]
null
null
null
test/tacit_test.exs
J3RN/tacit
2578342d500c135218b0c2dcc0b801c313f3564d
[ "MIT" ]
null
null
null
test/tacit_test.exs
J3RN/tacit
2578342d500c135218b0c2dcc0b801c313f3564d
[ "MIT" ]
null
null
null
defmodule TacitTest do use ExUnit.Case defmodule Example do import Tacit import String, only: [capitalize: 1] let remote = String.split() |> Enum.reverse() let anonymous = then(&String.split(&1, ",")) |> Enum.reverse() let imported = capitalize let local = get_age |> a...
22.444444
66
0.612624
9e4add105c083cb3470a5f370acf111112563732
512
ex
Elixir
apps/dockup_ui/web/views/layout_view.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
1
2019-08-20T07:45:10.000Z
2019-08-20T07:45:10.000Z
apps/dockup_ui/web/views/layout_view.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
apps/dockup_ui/web/views/layout_view.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
2
2019-03-08T10:51:34.000Z
2019-08-20T07:45:13.000Z
defmodule DockupUi.LayoutView do use DockupUi.Web, :view def dockup_log_url do case Application.fetch_env!(:dockup_ui, :backend_module) do Dockup.Backends.Helm -> base_url = Application.fetch_env!(:dockup, :stackdriver_url) filter = "advancedFilter=resource.labels.container_name%3D%22dock...
32
79
0.677734
9e4adf5e7613f73ee20cae4af670305d4027d084
541
exs
Elixir
test/spandex_otlp/adapter_test.exs
fr0stbyte/spandex_otlp
5c311939c4035ea094cb7c22c96522e2bf08ba42
[ "MIT" ]
2
2021-05-24T16:34:13.000Z
2021-05-25T06:14:54.000Z
test/spandex_otlp/adapter_test.exs
fr0stbyte/spandex_otlp
5c311939c4035ea094cb7c22c96522e2bf08ba42
[ "MIT" ]
5
2021-05-22T19:30:03.000Z
2021-05-25T03:01:10.000Z
test/spandex_otlp/adapter_test.exs
fr0stbyte/spandex_otlp
5c311939c4035ea094cb7c22c96522e2bf08ba42
[ "MIT" ]
3
2021-05-25T06:15:00.000Z
2022-01-28T18:58:59.000Z
defmodule SpandexOTLP.AdapterTest do use ExUnit.Case, async: true alias SpandexOTLP.Adapter describe "now/1" do test "returns the time in nanoseconds" do t1 = Adapter.now() t2 = Adapter.now() assert t1 <= t2 end end describe "span_id/1" do test "returns a unique span identifi...
20.037037
53
0.658041
9e4b02e244f48a3a1f816703004c0d5decc20cbf
2,923
exs
Elixir
test/blacklist_test.exs
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
null
null
null
test/blacklist_test.exs
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
1
2021-02-23T18:08:32.000Z
2021-02-23T18:08:32.000Z
test/blacklist_test.exs
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
1
2020-07-17T05:17:32.000Z
2020-07-17T05:17:32.000Z
defmodule BlacklistTest do @moduledoc """ Blacklisting a session should terminate active connections and prevent new ones. """ use ExUnit.Case, async: true alias RIG.JWT @rig_api_url "http://localhost:4010/" describe "After blacklisting a session," do test "the API reports the session to be blackli...
32.477778
85
0.673623
9e4b4574037bb856d0d8485e33d9ba36ab137ef9
986
exs
Elixir
test/processor_state_test.exs
pragdave/jeeves
a5f745463f70540de1b0bbea29e629adbf0c45e8
[ "Apache-2.0" ]
87
2017-03-03T05:53:04.000Z
2020-07-30T02:41:50.000Z
test/processor_state_test.exs
pragdave/jeeves
a5f745463f70540de1b0bbea29e629adbf0c45e8
[ "Apache-2.0" ]
4
2017-03-03T18:44:55.000Z
2017-08-11T16:25:32.000Z
test/processor_state_test.exs
pragdave/service
a5f745463f70540de1b0bbea29e629adbf0c45e8
[ "Apache-2.0" ]
6
2017-03-03T18:11:46.000Z
2018-06-27T23:53:16.000Z
defmodule ProcessorStateTest do use ExUnit.Case alias Jeeves.Util.PreprocessorState, as: PS @some_options %{ name: "Vince", status: "playa" } @name PS.name_for(__MODULE__) test "can be started and stopped" do assert Process.whereis(@name) == nil PS.start_link(__MODULE__, @some_options) asser...
24.65
92
0.669371
9e4b6a06b1326c2d8764b00d67a275ba70beeb14
2,994
ex
Elixir
apps/astarte_appengine_api/lib/astarte_appengine_api/rpc/data_updater_plant.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
4
2018-03-15T14:26:43.000Z
2019-12-20T15:07:10.000Z
apps/astarte_appengine_api/lib/astarte_appengine_api/rpc/data_updater_plant.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
27
2018-06-28T16:00:07.000Z
2019-12-19T10:05:36.000Z
apps/astarte_appengine_api/lib/astarte_appengine_api/rpc/data_updater_plant.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
2
2018-03-16T09:37:29.000Z
2019-11-18T17:37:42.000Z
# # This file is part of Astarte. # # Copyright 2018 Ispirata 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 appl...
28.245283
95
0.727121
9e4b6da639dfed138e371f97c9ab9799a1daecd4
1,689
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/create_folder_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/create_folder_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/create_folder_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...
33.78
137
0.734754
9e4b736bba986753a34b50d83529fbba17ccc3e4
3,924
exs
Elixir
lib/ex_unit/test/ex_unit/supervised_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
2
2020-06-02T18:00:28.000Z
2021-12-10T03:21:42.000Z
lib/ex_unit/test/ex_unit/supervised_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/ex_unit/test/ex_unit/supervised_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule ExUnit.SupervisedTest do use ExUnit.Case, async: true defmodule MyAgent do use Agent def start_link(:error) do {:error, "some error"} end def start_link(:exception) do raise "some exception" end def start_link(arg) d...
29.727273
97
0.664118
9e4b99e187e5d03fac7a453cf803f476a80e9594
3,605
ex
Elixir
Chapter6/6.2/key_value_gen_server.ex
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter6/6.2/key_value_gen_server.ex
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter6/6.2/key_value_gen_server.ex
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
# KeyValueStore # Explore servers that utilize the GenServer wrapper of the OTP gen_server behaviour defmodule KeyValueStore do use GenServer # --------- # GenServer behaviour hook functions # --------- # hook into GenServer # the @impl module attribute can perform compile-time checking of contracts betwe...
39.184783
108
0.720388
9e4bbeb3aa04d35ae7f6a2de5292ecf0d39b31d8
192
ex
Elixir
lib/mapi/response/json.ex
codedge-llc/mapi
5e0db722658534bc06c7538b202083e6e7be240c
[ "MIT" ]
3
2018-02-05T03:37:27.000Z
2020-02-19T23:58:22.000Z
lib/mapi/response/json.ex
codedge-llc/mapi
5e0db722658534bc06c7538b202083e6e7be240c
[ "MIT" ]
null
null
null
lib/mapi/response/json.ex
codedge-llc/mapi
5e0db722658534bc06c7538b202083e6e7be240c
[ "MIT" ]
null
null
null
defmodule Mapi.Response.Json do @moduledoc false @behaviour Mapi.Response def content_type, do: "application/json" def format_result(result) do Poison.encode!(result) end end
16
42
0.739583
9e4bc9fef2775d141a82a347446d516ccdeb6d9b
356
exs
Elixir
priv/repo/migrations/20141227132645_initial_ledgers_create.exs
walterbm/hyperledger-beta
493cd02597775be917427d2d75ff293f53d3bc9d
[ "Apache-2.0" ]
1
2017-06-14T07:04:47.000Z
2017-06-14T07:04:47.000Z
priv/repo/migrations/20141227132645_initial_ledgers_create.exs
walterbm/hyperledger-beta
493cd02597775be917427d2d75ff293f53d3bc9d
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20141227132645_initial_ledgers_create.exs
walterbm/hyperledger-beta
493cd02597775be917427d2d75ff293f53d3bc9d
[ "Apache-2.0" ]
null
null
null
defmodule Hyperledger.Repo.Migrations.InitialLedgersCreate do use Ecto.Migration def up do create table(:ledgers, primary_key: false) do add :hash, :string, primary_key: true add :public_key, :string add :primary_account_public_key, :string timestamps end end def down do...
19.777778
61
0.685393
9e4bd7d44f84207d8650d687571672893e88001a
261
ex
Elixir
lib/transferdrop.ex
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
lib/transferdrop.ex
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
lib/transferdrop.ex
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
defmodule Transferdrop do @moduledoc """ Transferdrop keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
26.1
66
0.762452
9e4bf7d3c1ce8387c767c805f470da2a3d75124f
1,301
ex
Elixir
test/support/conn_case.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
test/support/conn_case.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
test/support/conn_case.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule SanbaseWeb.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 datastructures and query the data layer. Finally, if the...
27.104167
77
0.727133
9e4bfa51e2e0664d9e977a0c330ca741cedba632
1,956
exs
Elixir
config/dev.exs
niku/nigiwaiki
52c37d2abb2d19084d6bda69c10773ed87701135
[ "MIT" ]
2
2017-12-07T10:57:47.000Z
2018-02-04T09:01:05.000Z
config/dev.exs
niku/nigiwaiki
52c37d2abb2d19084d6bda69c10773ed87701135
[ "MIT" ]
null
null
null
config/dev.exs
niku/nigiwaiki
52c37d2abb2d19084d6bda69c10773ed87701135
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :nigiwiki, NigiwikiWeb.Endpoint, http: [port: ...
30.092308
170
0.697853
9e4c1a572808b5e8945d1d3d38a7e081cbab9203
3,490
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/line_properties.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/slides/lib/google_api/slides/v1/model/line_properties.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/line_properties.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 ...
44.177215
169
0.701433
9e4c3249ca934de84db4d1417724de7cdf06e1ef
7,809
exs
Elixir
apps/omg_watcher/test/fixtures.exs
karmonezz/elixir-omg
3b26fc072fa553992277e1b9c4bad37b3d61ec6a
[ "Apache-2.0" ]
1
2020-05-01T12:30:09.000Z
2020-05-01T12:30:09.000Z
apps/omg_watcher/test/fixtures.exs
karmonezz/elixir-omg
3b26fc072fa553992277e1b9c4bad37b3d61ec6a
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/test/fixtures.exs
karmonezz/elixir-omg
3b26fc072fa553992277e1b9c4bad37b3d61ec6a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
28.191336
118
0.641952
9e4c5945dfd6b7b90b39a4d5433b04c0aabde897
2,519
ex
Elixir
lib/deneb/chart.ex
tyrchen/deneb
97759b57700816471feabf3fb97676d5e28e2261
[ "MIT" ]
4
2021-03-07T01:11:30.000Z
2021-09-03T06:40:48.000Z
lib/deneb/chart.ex
tyrchen/deneb
97759b57700816471feabf3fb97676d5e28e2261
[ "MIT" ]
null
null
null
lib/deneb/chart.ex
tyrchen/deneb
97759b57700816471feabf3fb97676d5e28e2261
[ "MIT" ]
1
2021-05-04T12:06:39.000Z
2021-05-04T12:06:39.000Z
defmodule Deneb.Chart do @moduledoc """ Vega-lite chart implementation """ use TypedStruct alias Deneb.{Chart, Mark, Encoding, Projection, Selection, Transform, Utils} typedstruct do @typedoc "chart properties" field :mark, Mark.t() | nil, default: nil field :encoding, Encoding.t() | nil, defa...
27.681319
100
0.638349
9e4cad21ad0fe205c5235504af0d08232eaaf6c2
3,072
exs
Elixir
test/story_test.exs
LeviSchuck/madness
2914f012bd4f40cef2ad39a6d0344a97baf35c79
[ "MIT" ]
null
null
null
test/story_test.exs
LeviSchuck/madness
2914f012bd4f40cef2ad39a6d0344a97baf35c79
[ "MIT" ]
null
null
null
test/story_test.exs
LeviSchuck/madness
2914f012bd4f40cef2ad39a6d0344a97baf35c79
[ "MIT" ]
null
null
null
defmodule StoryTest do use ExUnit.Case doctest Madness.Story test "the truth" do assert 1 + 1 == 2 end test "Make a story" do story_sup_pid = Madness.Stories.Supervisor.whereis {:ok, story_uuid} = Madness.Stories.Supervisor.add_story story_sup_pid story_pid = Madness.Story.whereis story_uuid ...
34.133333
94
0.667969
9e4ce042c395ee057e8421f8622aae8346faef34
6,444
ex
Elixir
lib/finch/telemetry.ex
balexand/finch
19ad9389e003f3d437580a8fab16f51e930e9589
[ "MIT" ]
null
null
null
lib/finch/telemetry.ex
balexand/finch
19ad9389e003f3d437580a8fab16f51e930e9589
[ "MIT" ]
1
2020-12-15T20:14:43.000Z
2020-12-15T20:14:43.000Z
lib/finch/telemetry.ex
balexand/finch
19ad9389e003f3d437580a8fab16f51e930e9589
[ "MIT" ]
null
null
null
defmodule Finch.Telemetry do @moduledoc """ Telemetry integration. Unless specified, all time's are in `:native` units. Finch executes the following events: * `[:finch, :queue, :start]` - Executed before checking out a connection from the pool. #### Measurements * `:system_time` - The system ...
33.216495
134
0.63594
9e4d037cedb85e05656108882a1bbe59eb8f4d36
744
exs
Elixir
test/day01/inverse_captcha_test.exs
fboyer/advent_of_code_2017
feb21ede4828865270a1f7d0d499ba21d1ed8f8b
[ "MIT" ]
null
null
null
test/day01/inverse_captcha_test.exs
fboyer/advent_of_code_2017
feb21ede4828865270a1f7d0d499ba21d1ed8f8b
[ "MIT" ]
null
null
null
test/day01/inverse_captcha_test.exs
fboyer/advent_of_code_2017
feb21ede4828865270a1f7d0d499ba21d1ed8f8b
[ "MIT" ]
null
null
null
defmodule Day01.InverseCaptchaTest do use ExUnit.Case import Day01.InverseCaptcha describe "day 01 -" do test "part 1 - can sum all of the digits that match the next digit in the list" do assert calc_captcha("1122") == 3 assert calc_captcha("1111") == 4 assert calc_captcha("1234") == 0 ...
32.347826
107
0.678763
9e4d1aef49ed4612814a70b3417c3bde5d10a495
2,080
exs
Elixir
config/dev.exs
AminArria/reserva
13faef72927aeb84d456f080d65249b8ef50180e
[ "MIT" ]
null
null
null
config/dev.exs
AminArria/reserva
13faef72927aeb84d456f080d65249b8ef50180e
[ "MIT" ]
2
2021-03-09T00:49:12.000Z
2021-05-08T03:13:05.000Z
config/dev.exs
AminArria/reserva
13faef72927aeb84d456f080d65249b8ef50180e
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with webpack to recompile .js and .css sources. config :reserva, ReservaWeb.Endpoint, http: [port: 4000...
27.368421
68
0.686538
9e4d4224cadea9ba797ac9b5a7db210edd0af967
349
exs
Elixir
priv/repo/seeds.exs
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Purple.Repo.insert!(%Purple.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will f...
29.083333
61
0.704871
9e4d544b128425f08a5c000e297925f4f9ff80d4
1,773
exs
Elixir
test/model/serialization_test.exs
szTheory/neo4j_sips_models
70c7ad45da4aec97dc56dcf951df878b9e801e47
[ "MIT" ]
8
2016-04-22T03:13:02.000Z
2021-01-01T02:49:28.000Z
test/model/serialization_test.exs
szTheory/neo4j_sips_models
70c7ad45da4aec97dc56dcf951df878b9e801e47
[ "MIT" ]
2
2016-10-06T07:20:19.000Z
2020-03-05T02:04:52.000Z
test/model/serialization_test.exs
szTheory/neo4j_sips_models
70c7ad45da4aec97dc56dcf951df878b9e801e47
[ "MIT" ]
5
2016-07-21T04:31:24.000Z
2020-03-03T20:23:01.000Z
defmodule Model.SerializationTest do use ExUnit.Case test "serializes a model" do person = Person.build(name: "John DOE", email: "john.doe@example.com", doe_family: true, age: 30) assert Person.to_json(person) == "{\"people\":[{\"updated_at\":null,\"neo4j_sips\":true,\"name\":\"John DOE\",\"married_to\":[]...
88.65
477
0.624929
9e4d6c9a5fd3c69f334ff4630e844917a55733a1
568
ex
Elixir
template/$PROJECT_NAME$/lib/$PROJECT_NAME$/accounts/accounts.ex
luke-hawk/degree
9274fc979ea0715d3bdf65a0adb14fdd2419db9a
[ "MIT" ]
3
2019-08-01T08:28:24.000Z
2019-08-18T14:50:32.000Z
template/$PROJECT_NAME$/lib/$PROJECT_NAME$/accounts/accounts.ex
luke-hawk/degree
9274fc979ea0715d3bdf65a0adb14fdd2419db9a
[ "MIT" ]
3
2021-03-09T12:14:26.000Z
2022-02-10T18:46:15.000Z
template/$PROJECT_NAME$/lib/$PROJECT_NAME$/accounts/accounts.ex
luke-hawk/degree
9274fc979ea0715d3bdf65a0adb14fdd2419db9a
[ "MIT" ]
null
null
null
defmodule <%= @project_name_camel_case %>.Accounts do @moduledoc """ The Accounts context. """ import Ecto.Query, warn: false alias <%= @project_name_camel_case %>.Repo alias <%= @project_name_camel_case %>.Accounts.User def list_users do User |> Repo.all() end def create_user(attrs \\ %{}...
18.322581
53
0.646127
9e4d6d6d7c80095a7d426a961b94d4b9dba15208
1,980
ex
Elixir
lib/tilex_web/router.ex
dlederle/tilex
63520eeb013a2a18174de0b6e41e8b99977dbc20
[ "MIT" ]
null
null
null
lib/tilex_web/router.ex
dlederle/tilex
63520eeb013a2a18174de0b6e41e8b99977dbc20
[ "MIT" ]
null
null
null
lib/tilex_web/router.ex
dlederle/tilex
63520eeb013a2a18174de0b6e41e8b99977dbc20
[ "MIT" ]
null
null
null
defmodule TilexWeb.Router do use TilexWeb, :router @auth_controller Application.get_env(:tilex, :auth_controller) pipeline :browser do plug(:accepts, ["html"]) plug(:fetch_session) plug(:fetch_flash) plug(:protect_from_forgery) plug(:put_secure_browser_headers) plug(Tilex.Plug.BasicAuth)...
30
69
0.693434
9e4d71cdb3747fc124b6fcb6325c4948820ad4d1
1,006
ex
Elixir
lib/challenge_gov/images.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
lib/challenge_gov/images.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
lib/challenge_gov/images.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule ChallengeGov.Images do @moduledoc """ Common module for dealing with image conversion """ alias Stein.Storage.FileUpload alias Stein.Storage.Temp @type opts() :: Keyword.t() @doc """ Convert an image file using image magick """ @spec convert(FileUpload.t(), opts()) :: {:ok, Path.t()} | ...
22.863636
92
0.596421
9e4dd0892fb20c1f1c5ee48de85cf7a4adb263dc
1,175
ex
Elixir
lib/pixie/backends/ets/message_queue.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/backends/ets/message_queue.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/backends/ets/message_queue.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
defmodule Pixie.Backend.ETS.MessageQueue do use GenServer @moduledoc """ This process keeps track of any messages waiting to be delivered to clients. """ def start_link do GenServer.start_link __MODULE__, [], name: __MODULE__ end def init _options do table = :ets.new __MODULE__, [:bag, :prote...
25
89
0.662128
9e4df1e62b9810c318b431ae8b0c2a9415f28e35
2,509
ex
Elixir
lib/guess_who/engine.ex
alanvoss/guess_who
75227d97202283ffeeb6134fb8b2a591a9c49fbe
[ "MIT" ]
null
null
null
lib/guess_who/engine.ex
alanvoss/guess_who
75227d97202283ffeeb6134fb8b2a591a9c49fbe
[ "MIT" ]
null
null
null
lib/guess_who/engine.ex
alanvoss/guess_who
75227d97202283ffeeb6134fb8b2a591a9c49fbe
[ "MIT" ]
3
2021-10-07T23:28:18.000Z
2021-10-08T00:54:14.000Z
defmodule GuessWho.Engine do alias GuessWho.{Contender, Attributes, Game, Turn} @max_turns 50 @spec score_all_contenders() :: [{binary(), Integer.t()}] def score_all_contenders() do modules = Contender.all_player_modules() names = Enum.map(modules, & &1.name) scores = modules |> Enum...
30.975309
89
0.673177
9e4e13db1df4c8ec7687f44ecb8e01f28f8d8bfe
1,289
ex
Elixir
lib/mpdex/playback.ex
bosko/mpdex
fe64ce453332770df99c12320bfeeb5ac8b801dc
[ "MIT" ]
null
null
null
lib/mpdex/playback.ex
bosko/mpdex
fe64ce453332770df99c12320bfeeb5ac8b801dc
[ "MIT" ]
null
null
null
lib/mpdex/playback.ex
bosko/mpdex
fe64ce453332770df99c12320bfeeb5ac8b801dc
[ "MIT" ]
null
null
null
defmodule Mpdex.Playback do def crossfade(seconds) when is_integer(seconds) do client().send("crossfade #{seconds}") end def next do client().send("next") end def resume do client().send("pause 0") end def pause do client().send("pause 1") end def play(what, pos) do case {what,...
17.186667
69
0.597362
9e4e1744f889087d153cd4d0177796be147bcfe4
4,116
exs
Elixir
test/transform_test.exs
lnr0626/surface
11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb
[ "MIT" ]
1
2021-06-04T20:46:52.000Z
2021-06-04T20:46:52.000Z
test/transform_test.exs
lnr0626/surface
11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb
[ "MIT" ]
null
null
null
test/transform_test.exs
lnr0626/surface
11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb
[ "MIT" ]
null
null
null
defmodule Surface.TransformTest do use ExUnit.Case defmodule Span do use Surface.Component slot default def render(assigns) do ~F""" <span><#slot /></span> """ end end defmodule DivToSpan do use Surface.Component slot default @impl true def render(assigns)...
20.893401
90
0.607629
9e4e3782bfcba8a13b8ee4f820dedf6d52100702
1,067
exs
Elixir
mix.exs
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
mix.exs
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
mix.exs
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
defmodule Chat.Mixfile do use Mix.Project def project do [app: :chat, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end #...
26.675
63
0.596064
9e4e7c43eecd8b7dd7b78dd5a78ab5934469221b
1,004
ex
Elixir
elixir/lib/year_2015/day_02.ex
fdm1/advent_of_code
a1e91d847fd8fd9f6b2f48333203729b9d64fd80
[ "MIT" ]
null
null
null
elixir/lib/year_2015/day_02.ex
fdm1/advent_of_code
a1e91d847fd8fd9f6b2f48333203729b9d64fd80
[ "MIT" ]
null
null
null
elixir/lib/year_2015/day_02.ex
fdm1/advent_of_code
a1e91d847fd8fd9f6b2f48333203729b9d64fd80
[ "MIT" ]
1
2018-12-02T20:30:23.000Z
2018-12-02T20:30:23.000Z
# 2015 - Day 02: http://adventofcode.com/2015/day/2 defmodule ElixirAdvent.Year2015.Day02 do def part1(input) do Enum.sum(Enum.map(input_to_dim_list(input), fn(dim) -> paper_for_box(dim) end)) end def part2(input) do Enum.sum(Enum.map(input_to_dim_list(input), fn(dim) -> ribbon_for_box(dim) end)) end ...
26.421053
84
0.623506
9e4e814fd5ca221a6da90f6b32e44ec592ba5a12
186
ex
Elixir
lib/bio/virus/generator.ex
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
lib/bio/virus/generator.ex
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
lib/bio/virus/generator.ex
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
defmodule Bio.Virus.Generator do alias Bio.{Physic, Virus} @min_mass 5 @max_mass 10 def create(), do: Virus.new(Physic.Generator.create(Enum.random(@min_mass..@max_mass))) end
20.666667
89
0.725806
9e4ea8a9b1cb26ce2797e659db2bd0f9029a4ae5
3,231
ex
Elixir
clients/fitness/lib/google_api/fitness/v1/model/session.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/fitness/lib/google_api/fitness/v1/model/session.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/session.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 ...
45.507042
378
0.70195
9e4ec9ac13da5bc28e12e95ebb99d31d8a504444
637
exs
Elixir
apps/man_api/priv/repo/migrations/20181222092056_create_reimbursement_contract_request_template.exs
edenlabllc/man.api.public
010016c5ecc209413a56ee1f8e9e6fa31da8de18
[ "MIT" ]
null
null
null
apps/man_api/priv/repo/migrations/20181222092056_create_reimbursement_contract_request_template.exs
edenlabllc/man.api.public
010016c5ecc209413a56ee1f8e9e6fa31da8de18
[ "MIT" ]
null
null
null
apps/man_api/priv/repo/migrations/20181222092056_create_reimbursement_contract_request_template.exs
edenlabllc/man.api.public
010016c5ecc209413a56ee1f8e9e6fa31da8de18
[ "MIT" ]
null
null
null
defmodule Man.Repo.Migrations.CreateReimbursementContractRequestTemplate do use Ecto.Migration import Ecto.Changeset alias Man.Templates.Template alias Man.Repo def change do %Template{} |> cast( %{ "title" => "RCRPF", "description" => "Reimbursement contract request printout f...
25.48
84
0.601256
9e4ee2ce4256ea921b3cda65772c99ae46d70c34
1,211
ex
Elixir
lib/incident/event_store_supervisor.ex
OleMchls/incident
220e46598719fc50d10c96e5a848080172bf6f9b
[ "MIT" ]
null
null
null
lib/incident/event_store_supervisor.ex
OleMchls/incident
220e46598719fc50d10c96e5a848080172bf6f9b
[ "MIT" ]
null
null
null
lib/incident/event_store_supervisor.ex
OleMchls/incident
220e46598719fc50d10c96e5a848080172bf6f9b
[ "MIT" ]
null
null
null
defmodule Incident.EventStoreSupervisor do @moduledoc false use Supervisor alias Incident.EventStore alias Incident.EventStore.{InMemory, Postgres} @type adapter :: InMemory.Adapter | Postgres.Adapter @type lock_manager :: InMemory.LockManager | Postgres.LockManager @doc """ Starts the Event Store S...
30.275
90
0.74071
9e4ef16ee53ca5ec7b9cbc02e70afbf400f4ed6e
444
exs
Elixir
test/contour_builder_test.exs
NAISorg/conrex
bc9c6297eec2f8e4f135c38773459ceeb97938c9
[ "MIT" ]
51
2020-11-19T00:41:53.000Z
2022-03-15T13:50:54.000Z
test/contour_builder_test.exs
NAISorg/conrex
bc9c6297eec2f8e4f135c38773459ceeb97938c9
[ "MIT" ]
1
2020-11-12T22:35:08.000Z
2020-11-16T21:48:34.000Z
test/contour_builder_test.exs
NAISorg/conrex
bc9c6297eec2f8e4f135c38773459ceeb97938c9
[ "MIT" ]
1
2022-01-11T21:58:23.000Z
2022-01-11T21:58:23.000Z
defmodule Conrex.ContourBuilderTest do use ExUnit.Case alias Conrex.ContourBuilder test "it builds rings from a segment list" do rings = ContourBuilder.build_rings([ {{0, 0}, {0, 1}}, {{3, 6}, {2, 5}}, {{1, 1}, {0, 0}}, {{2, 5}, {2, 6}}, {{0, 1}, {1, 1}}, {{2, 6}, {3, 6}} ...
22.2
47
0.439189
9e4efd4cc64ffb095712976ae505b789740ce906
19,776
ex
Elixir
clients/content/lib/google_api/content/v2/api/datafeeds.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/datafeeds.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/datafeeds.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
44.945455
191
0.631169
9e4efdb9bda558bec7ed9bebde2066eb13a9b436
5,231
exs
Elixir
test/oidc/auth_test.exs
tanguilp/oidc
3a06cc72c88e7690cfee1ba35501fb06d2009756
[ "Apache-2.0" ]
null
null
null
test/oidc/auth_test.exs
tanguilp/oidc
3a06cc72c88e7690cfee1ba35501fb06d2009756
[ "Apache-2.0" ]
5
2020-05-30T14:09:52.000Z
2022-03-09T17:12:47.000Z
test/oidc/auth_test.exs
tanguilp/oidc
3a06cc72c88e7690cfee1ba35501fb06d2009756
[ "Apache-2.0" ]
3
2021-09-03T07:58:07.000Z
2021-09-21T12:27:29.000Z
defmodule OIDC.AuthTest do use ExUnit.Case alias OIDC.Auth import OIDCTest.Support.Helpers @nonce "a nonce" setup_all do client = client_conf() op = op_metadata() Tesla.Mock.mock_global(fn %{method: :get, url: "https://example.com/.well-known/openid-configuration"} -> %Tesla.Env...
27.103627
95
0.57943
9e4f1e7838a861875a5c70a6ee3577e16d1e897a
16,440
exs
Elixir
test/elixir/test/partition_mango_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
test/elixir/test/partition_mango_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
test/elixir/test/partition_mango_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
defmodule PartitionMangoTest do use CouchTestCase import PartitionHelpers, except: [get_partitions: 1] @moduledoc """ Test Partition functionality for mango """ def create_index(db_name, fields \\ ["some"], opts \\ %{}) do default_index = %{ index: %{ fields: fields } } ind...
22.306649
86
0.538504
9e4f47aaadf4a4611dd08dbc5daadd84ac532f84
358
exs
Elixir
priv/repo/seeds.exs
mapmeld/superfund-me
8bd1aeb78504e6ae068cf57dbefca05bebbb2b07
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
mapmeld/superfund-me
8bd1aeb78504e6ae068cf57dbefca05bebbb2b07
[ "MIT" ]
3
2016-09-09T21:09:17.000Z
2017-09-13T17:55:20.000Z
priv/repo/seeds.exs
Georeactor/superfund-me
8bd1aeb78504e6ae068cf57dbefca05bebbb2b07
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Superfundme.Repo.insert!(%Superfundme.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as th...
29.833333
61
0.712291
9e4f575d7c896a59e6560d6863c8fabc32b4b5e3
3,622
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/cluster.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/cluster.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/cluster.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "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...
52.492754
445
0.734953
9e4f7ddd0397f276e0216f606c5d813c41223bb7
15,250
exs
Elixir
test/phoenix/integration/websocket_channels_test.exs
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
1
2019-07-15T21:58:09.000Z
2019-07-15T21:58:09.000Z
test/phoenix/integration/websocket_channels_test.exs
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
test/phoenix/integration/websocket_channels_test.exs
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
Code.require_file "../../support/websocket_client.exs", __DIR__ defmodule Phoenix.Integration.WebSocketChannelsTest do use ExUnit.Case import ExUnit.CaptureLog alias Phoenix.Integration.WebsocketClient alias Phoenix.Socket.{V1, V2, Message} alias __MODULE__.Endpoint @moduletag :capture_log @port 5807 ...
37.561576
132
0.552721
9e4f8973947169f2f7970f7cc3b27e4657cb81db
2,386
exs
Elixir
playground/elixir-live-doom-fire/config/prod.exs
allmonty/doom-fire-algorithm
dac483b85973020c5f86962d3d9344018711043b
[ "MIT" ]
null
null
null
playground/elixir-live-doom-fire/config/prod.exs
allmonty/doom-fire-algorithm
dac483b85973020c5f86962d3d9344018711043b
[ "MIT" ]
null
null
null
playground/elixir-live-doom-fire/config/prod.exs
allmonty/doom-fire-algorithm
dac483b85973020c5f86962d3d9344018711043b
[ "MIT" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # LiveDoomFireWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done there. #...
34.57971
76
0.724644
9e4f9ab8135bb157074c755c3e205d7ce2506729
1,819
ex
Elixir
lib/wabanex_web/telemetry.ex
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
61
2021-06-22T00:15:59.000Z
2022-01-31T15:13:51.000Z
lib/wabanex_web/telemetry.ex
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
1
2021-06-21T18:42:41.000Z
2021-06-21T18:42:41.000Z
lib/wabanex_web/telemetry.ex
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
56
2021-06-21T17:17:36.000Z
2022-03-15T02:48:59.000Z
defmodule WabanexWeb.Telemetry do 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 # every 10_000ms. Learn ...
32.482143
86
0.671798
9e4fa58fadf4fdb4fba79a8563c8890fccc2f7fa
1,127
ex
Elixir
lib/minuet/type/condition.ex
exstruct/minuet
2ca8f6da3000bfdf00f271eb695cb468b50b71bb
[ "MIT" ]
null
null
null
lib/minuet/type/condition.ex
exstruct/minuet
2ca8f6da3000bfdf00f271eb695cb468b50b71bb
[ "MIT" ]
null
null
null
lib/minuet/type/condition.ex
exstruct/minuet
2ca8f6da3000bfdf00f271eb695cb468b50b71bb
[ "MIT" ]
null
null
null
defmodule Minuet.Type.Condition do defstruct expression: nil, enter: nil, exit: nil, value: nil, line: nil defimpl Minuet.Type do alias Minuet.Util def compile( %{line: line, enter: v_enter, exit: v_exit, expression: expression, value: value}, ...
22.54
92
0.484472