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
18a8e4ea1a83747290da726df9dd5f57f955fe4f
965
ex
Elixir
elixir/lib/sensedata/application.ex
samuelmesq/graphql_languages
f19158ba3a60bc1a6b3a0bcc7d8380002ebef151
[ "BSD-3-Clause" ]
null
null
null
elixir/lib/sensedata/application.ex
samuelmesq/graphql_languages
f19158ba3a60bc1a6b3a0bcc7d8380002ebef151
[ "BSD-3-Clause" ]
2
2021-01-08T13:31:06.000Z
2021-01-08T13:31:07.000Z
elixir/lib/sensedata/application.ex
samuelmesq/graphql_languages
f19158ba3a60bc1a6b3a0bcc7d8380002ebef151
[ "BSD-3-Clause" ]
1
2019-09-07T03:20:29.000Z
2019-09-07T03:20:29.000Z
defmodule Sensedata.Application do use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the endpoint when the ...
32.166667
87
0.724352
18a90f91963869d83a89a42a71bb4eba666f8549
1,966
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20180618131955_rename_transfer_uuid_to_transaction_uuid.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/priv/repo/migrations/20180618131955_rename_transfer_uuid_to_transaction_uuid.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/priv/repo/migrations/20180618131955_rename_transfer_uuid_to_transaction_uuid.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-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 ...
34.491228
101
0.691251
18a9769480c30ae7fab9fda2cd660a3bb2066684
3,100
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/audit_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/audit_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/audit_config.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...
50.819672
400
0.733871
18a98ccf1de3de79038887b217ed6533f1aedaf8
4,661
ex
Elixir
lib/ecto/query/builder/preload.ex
timgestson/ecto
1c1eb6d322db04cfa48a4fc81da1332e91adbc1f
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/builder/preload.ex
timgestson/ecto
1c1eb6d322db04cfa48a4fc81da1332e91adbc1f
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/builder/preload.ex
timgestson/ecto
1c1eb6d322db04cfa48a4fc81da1332e91adbc1f
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.Builder.Preload do @moduledoc false alias Ecto.Query.Builder @doc """ Escapes a preload. A preload may be an atom, a list of atoms or a keyword list nested as a rose tree. iex> escape(:foo, []) {[:foo], []} iex> escape([foo: :bar], []) {[foo: [:bar]], []} ...
35.580153
139
0.604806
18a9aecd75a2e4b9be69b090e1e25538672655b1
33,841
ex
Elixir
lib/elixir/lib/module.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
defmodule Module do @moduledoc ~S''' Provides functions to deal with modules during compilation time. It allows a developer to dynamically add, delete and register attributes, attach documentation and so forth. After a module is compiled, using many of the functions in this module will raise errors, since...
29.148148
164
0.646198
18a9c68813e9fbb805c8d71bceb01ecc284f8a3e
968
ex
Elixir
lib/CLI/cli.ex
Maultasche/elixir-console-template
fe34e7062cbde118ea83ed0c47a5a6844800204f
[ "MIT" ]
2
2021-02-07T19:41:11.000Z
2021-07-23T23:49:23.000Z
lib/CLI/cli.ex
Maultasche/elixir-console-template
fe34e7062cbde118ea83ed0c47a5a6844800204f
[ "MIT" ]
null
null
null
lib/CLI/cli.ex
Maultasche/elixir-console-template
fe34e7062cbde118ea83ed0c47a5a6844800204f
[ "MIT" ]
null
null
null
defmodule ElixirConsoleTemplate.CLI do alias ElixirConsoleTemplate.CLI.Args @doc """ Outputs argument validation errors to standard out ## Parameters - errors: a list of errors to be printed to standard out ## Returns :ok """ @spec output_arg_validation_errors(list(String.t())) :: :ok def outpu...
19.755102
91
0.674587
18aa34b3e37b29cae58f7a3d3d402dfd9e54b4df
1,092
exs
Elixir
mix.exs
dhanson358/ex_heap
1445fcf1dcbb19ca7b625de5e125b8f61c5e4597
[ "MIT" ]
null
null
null
mix.exs
dhanson358/ex_heap
1445fcf1dcbb19ca7b625de5e125b8f61c5e4597
[ "MIT" ]
null
null
null
mix.exs
dhanson358/ex_heap
1445fcf1dcbb19ca7b625de5e125b8f61c5e4597
[ "MIT" ]
null
null
null
defmodule ExHeap.MixProject do use Mix.Project @version "0.1.0" def project do [ app: :ex_heap, version: @version, elixir: "~> 1.10", start_permanent: Mix.env() == :prod, package: package(), docs: [ main: "readme", extras: ["README.md"], source_url...
22.285714
87
0.550366
18aa3548cd6c082d7f0c441dba0c2feb984e07ad
1,217
exs
Elixir
config/config.exs
nabinno/air_elixir
59dce413a4b46519859b7b62a4585290aef94f61
[ "MIT" ]
4
2018-12-16T15:10:39.000Z
2020-04-26T00:16:45.000Z
config/config.exs
nabinno/air_elixir
59dce413a4b46519859b7b62a4585290aef94f61
[ "MIT" ]
null
null
null
config/config.exs
nabinno/air_elixir
59dce413a4b46519859b7b62a4585290aef94f61
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.878788
73
0.744454
18aa68137eb3329e26703bc299d1cc7c608f064c
104,771
ex
Elixir
deps/postgrex/lib/postgrex/protocol.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
1
2019-11-11T21:48:20.000Z
2019-11-11T21:48:20.000Z
deps/postgrex/lib/postgrex/protocol.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
2
2021-03-09T09:26:25.000Z
2021-05-09T08:58:51.000Z
deps/postgrex/lib/postgrex/protocol.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
null
null
null
defmodule Postgrex.Protocol do @moduledoc false alias Postgrex.{Types, TypeServer, Query, Cursor, Copy} import Postgrex.{Messages, BinaryUtils} require Logger use DBConnection @timeout 15_000 @sock_opts [packet: :raw, mode: :binary, active: false] @max_packet 64 * 1024 * 1024 @nonposix_errors [:clos...
31.024874
100
0.598324
18aa86fcbe17de3345ed5e6a1f29685fcdb20899
486
ex
Elixir
apps/site/lib/site_web/plugs/uri_checker.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/lib/site_web/plugs/uri_checker.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/lib/site_web/plugs/uri_checker.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.Plugs.UriChecker do @moduledoc """ Checks for a malformed URI and if it exists, redirects with a 404 (and renders the 404 bus page) """ @behaviour Plug @impl true def init(opts) do opts end @impl true def call(conn, _) do try do Enum.map(conn.path_info, &URI.decode...
19.44
67
0.654321
18aa8bab360945309f35dbca7e18e011ee6fada0
6,806
exs
Elixir
test/plug/adapters/cowboy/conn_test.exs
falood/plug
6022465ed2e44cf092d16ae3d564648615eab87b
[ "Apache-2.0" ]
null
null
null
test/plug/adapters/cowboy/conn_test.exs
falood/plug
6022465ed2e44cf092d16ae3d564648615eab87b
[ "Apache-2.0" ]
null
null
null
test/plug/adapters/cowboy/conn_test.exs
falood/plug
6022465ed2e44cf092d16ae3d564648615eab87b
[ "Apache-2.0" ]
1
2020-12-07T08:04:20.000Z
2020-12-07T08:04:20.000Z
defmodule Plug.Adapters.Cowboy.ConnTest do use ExUnit.Case, async: true alias Plug.Conn import Plug.Conn ## Cowboy setup for testing setup_all do {:ok, _pid} = Plug.Adapters.Cowboy.http __MODULE__, [], port: 8001 :ok end teardown_all do :ok = Plug.Adapters.Cowboy.shutdown(__MODULE__.HTTP)...
31.953052
443
0.630767
18aa8eb4dd2bc638fa33da9dd561fcb65c2df10f
1,376
ex
Elixir
lib/vutuv_web/controllers/api/password_controller.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
309
2016-05-03T17:16:23.000Z
2022-03-01T09:30:22.000Z
lib/vutuv_web/controllers/api/password_controller.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
662
2016-04-27T07:45:18.000Z
2022-01-05T07:29:19.000Z
lib/vutuv_web/controllers/api/password_controller.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
40
2016-04-27T07:46:22.000Z
2021-12-31T05:54:34.000Z
defmodule VutuvWeb.Api.PasswordController do use VutuvWeb, :controller import VutuvWeb.Api.Authorize alias Vutuv.{Accounts, Accounts.UserCredential} alias VutuvWeb.Email plug VutuvWeb.RateLimiter, [type: :password] when action in [:create] def action(conn, _), do: auth_action_slug(conn, __MODULE__) d...
33.560976
87
0.6875
18aa942650d1c2f3cf5512f4914db8076701d96b
4,091
ex
Elixir
lib/grakn.ex
liveforeverx/grakn_elixir
e64745fb200dd64956396c33b986b94706556ab4
[ "MIT" ]
1
2019-04-25T18:12:23.000Z
2019-04-25T18:12:23.000Z
lib/grakn.ex
liveforeverx/grakn_elixir
e64745fb200dd64956396c33b986b94706556ab4
[ "MIT" ]
null
null
null
lib/grakn.ex
liveforeverx/grakn_elixir
e64745fb200dd64956396c33b986b94706556ab4
[ "MIT" ]
null
null
null
defmodule Grakn do @moduledoc """ The main entry point for interacting with Grakn. All functions take a connection reference. """ @typedoc """ A connection process name, pid or reference. A connection reference is used when making multiple requests within a transaction, see `transaction/3`. """ @ty...
32.212598
112
0.65803
18aa95fb107e726f24d26b410744c8f60d1caaec
476
ex
Elixir
kousa/lib/onion/start_rooms.ex
lazarospsa/dogehouse
4400518f5b6bce929e40eada615356e8814a8d28
[ "MIT" ]
1
2021-03-15T19:14:33.000Z
2021-03-15T19:14:33.000Z
kousa/lib/onion/start_rooms.ex
lazarospsa/dogehouse
4400518f5b6bce929e40eada615356e8814a8d28
[ "MIT" ]
1
2021-03-15T19:08:15.000Z
2021-03-15T19:08:15.000Z
kousa/lib/onion/start_rooms.ex
lazarospsa/dogehouse
4400518f5b6bce929e40eada615356e8814a8d28
[ "MIT" ]
1
2021-03-19T13:04:24.000Z
2021-03-19T13:04:24.000Z
# @todo should probably stop this after initial load defmodule Onion.StartRooms do use GenServer alias Beef.Rooms def start_link(_) do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def init(_opts) do Enum.each(Rooms.all_rooms(), fn room -> GenRegistry.lookup_or_start(Onion.RoomSes...
20.695652
63
0.634454
18aabcf59a4e65dc8b127801f89849d18431b66b
2,407
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_process_document_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_process_document_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_process_document_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.822581
257
0.769423
18aac6b9c5be9073f41b123c221a1e8ed874e019
8,840
exs
Elixir
test/mix/tasks/hex.user_test.exs
sudix/hex
f739a57d8829ea0b0f7759c164dc9149c3340e49
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/hex.user_test.exs
sudix/hex
f739a57d8829ea0b0f7759c164dc9149c3340e49
[ "Apache-2.0" ]
1
2021-06-25T15:19:59.000Z
2021-06-25T15:19:59.000Z
test/mix/tasks/hex.user_test.exs
sudix/hex
f739a57d8829ea0b0f7759c164dc9149c3340e49
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Hex.UserTest do use HexTest.Case @moduletag :integration test "register" do send(self(), {:mix_shell_input, :prompt, "eric"}) send(self(), {:mix_shell_input, :prompt, "mail@mail.com"}) send(self(), {:mix_shell_input, :yes?, false}) send(self(), {:mix_shell_input, :prompt, "hun...
36.528926
94
0.613801
18aada4b5ca278faafa415cd2056eb64c928ee85
3,569
ex
Elixir
lib/bert_gate/client.ex
suddenrushofsushi/bertgate
65955e778aeda428b51acfbaeaad900972dcaacc
[ "WTFPL" ]
null
null
null
lib/bert_gate/client.ex
suddenrushofsushi/bertgate
65955e778aeda428b51acfbaeaad900972dcaacc
[ "WTFPL" ]
null
null
null
lib/bert_gate/client.ex
suddenrushofsushi/bertgate
65955e778aeda428b51acfbaeaad900972dcaacc
[ "WTFPL" ]
null
null
null
defmodule BertGate.Client.State do defstruct host: nil, port: nil, socket: nil end ############################################################################ # api defmodule BertGate.Client do require Logger alias BertGate.Client.State def connect(host,options\\%{}) do port = Dict.get(options,:por...
28.552
114
0.549454
18ab0076369b7e2d0bf5a1686d767b198ce88ec9
639
exs
Elixir
apps/omg_status/test/test_helper.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_status/test/test_helper.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_status/test/test_helper.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
2
2020-06-07T11:14:54.000Z
2020-08-02T07:36:32.000Z
# Copyright 2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
37.588235
74
0.769953
18ab03d0796471c8c9f71dccd65960ba594166ff
1,359
ex
Elixir
lib/exq/support/config.ex
neslinesli93/exq
c1caff8052c5176b716715a8bf813d6e87d98f37
[ "Apache-2.0" ]
null
null
null
lib/exq/support/config.ex
neslinesli93/exq
c1caff8052c5176b716715a8bf813d6e87d98f37
[ "Apache-2.0" ]
null
null
null
lib/exq/support/config.ex
neslinesli93/exq
c1caff8052c5176b716715a8bf813d6e87d98f37
[ "Apache-2.0" ]
null
null
null
defmodule Exq.Support.Config do @default_config %{ name: Exq, mode: :default, host: "127.0.0.1", port: 6379, database: 0, redis_options: [], namespace: "exq", queues: ["default"], json_library: Jason, scheduler_enable: true, concurrency: 100, scheduler_poll_timeout: 200...
22.65
71
0.657101
18ab2ef3a171496f8eef1d0556abb9b308d47383
65
ex
Elixir
lib/party_hub_web/views/layout_view.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
2
2020-05-22T15:45:53.000Z
2020-06-07T21:07:03.000Z
lib/party_hub_web/views/layout_view.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
1
2021-03-10T16:36:46.000Z
2021-03-10T16:36:46.000Z
lib/party_hub_web/views/layout_view.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
null
null
null
defmodule PartyHubWeb.LayoutView do use PartyHubWeb, :view end
16.25
35
0.815385
18ab36a811103cb6e120ff4f5f296a0ff2e21e15
6,009
ex
Elixir
Microsoft.Azure.Management.Resources/lib/microsoft/azure/management/resources/api/tags.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Resources/lib/microsoft/azure/management/resources/api/tags.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Resources/lib/microsoft/azure/management/resources/api/tags.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Resources.Api.Tags do @moduledoc """ API calls for all endpoints tagged `Tags`. """ alias Microsoft.Azure.Mana...
39.532895
201
0.697287
18ab399be17aa8a9555ea3972fe34ad5295c26d4
317
exs
Elixir
day01/el_b.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
1
2019-12-13T22:44:09.000Z
2019-12-13T22:44:09.000Z
day01/el_b.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
null
null
null
day01/el_b.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
1
2019-12-05T21:06:06.000Z
2019-12-05T21:06:06.000Z
Code.require_file("el.ex", __DIR__) File.stream!("day01/input.txt", [encoding: :utf8], :line) |> Stream.map(&elem(Integer.parse(&1), 0)) |> Stream.map( &Enum.sum( Stream.unfold(Day01.fuel_equation(&1), fn x when x <= 0 -> nil x -> {x, Day01.fuel_equation(x)} end))) |> Enum.sum() |> IO.inspect
24.384615
57
0.605678
18ab77d700bda980a270874e99be69cc0fb27aee
672
ex
Elixir
lib/trento_web/openapi/schema/sles_subscription.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-22T16:59:34.000Z
2022-03-22T16:59:34.000Z
lib/trento_web/openapi/schema/sles_subscription.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
24
2022-03-22T16:45:25.000Z
2022-03-31T13:00:02.000Z
lib/trento_web/openapi/schema/sles_subscription.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-30T14:16:16.000Z
2022-03-30T14:16:16.000Z
defmodule TrentoWeb.OpenApi.Schema.SlesSubscription do @moduledoc false require OpenApiSpex alias OpenApiSpex.Schema OpenApiSpex.schema(%{ title: "SlesSubscription", description: "A discovered SLES Subscription on a host", type: :object, properties: %{ host_id: %Schema{type: :string, for...
28
60
0.653274
18ab938dea2cd9ad0650a4f19564c07f83568a14
1,347
exs
Elixir
test/supabase_surface/tabs_test.exs
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
5
2021-06-08T08:02:43.000Z
2022-02-09T23:13:46.000Z
test/supabase_surface/tabs_test.exs
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
test/supabase_surface/tabs_test.exs
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
1
2021-07-14T05:20:31.000Z
2021-07-14T05:20:31.000Z
defmodule SupabaseSurface.Components.TabsTest do use SupabaseSurface.ConnCase, async: true alias SupabaseSurface.Components.Button alias SupabaseSurface.Components.{Tabs, Tab} alias SupabaseSurface.Components.Tabs.AddOnBefore import Phoenix.ConnTest import Phoenix.LiveViewTest @endpoint Endpoint def...
23.631579
82
0.620638
18ab9ce26a05223312372bf51ea561376fd8d65d
1,000
exs
Elixir
test/day05_test.exs
azuline/aoc2019
78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a
[ "Apache-2.0" ]
null
null
null
test/day05_test.exs
azuline/aoc2019
78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a
[ "Apache-2.0" ]
null
null
null
test/day05_test.exs
azuline/aoc2019
78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a
[ "Apache-2.0" ]
null
null
null
defmodule Day05Test do use ExUnit.Case, async: true import Day05 import Intcode, only: [run_computer: 2] alias Day05.{Part1, Part2} test "part 1" do assert 11_193_703 == get_program() |> Part1.run() end test "part 2" do assert 12_410_607 == get_program() |> Part2.run() end @example_program...
13.157895
63
0.517
18abc05a6c2b95eda8cb4753a7474866ec17ae0e
1,735
exs
Elixir
mix.exs
membraneframework/membrane_element_gcloud_speech_to_text
05d38582ba41ad4233bc9a1b20404bde135258de
[ "Apache-2.0" ]
null
null
null
mix.exs
membraneframework/membrane_element_gcloud_speech_to_text
05d38582ba41ad4233bc9a1b20404bde135258de
[ "Apache-2.0" ]
null
null
null
mix.exs
membraneframework/membrane_element_gcloud_speech_to_text
05d38582ba41ad4233bc9a1b20404bde135258de
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Element.GCloud.SpeechToText.MixProject do use Mix.Project @version "0.7.0" @github_url "https://github.com/membraneframework/membrane-element-gcloud-speech-to-text" def project do [ app: :membrane_element_gcloud_speech_to_text, version: @version, elixir: "~> 1.7", ...
24.785714
91
0.584438
18abf7f5708435abc4e0e3fe193a69fe105a4821
1,057
exs
Elixir
mix.exs
Devotu/magirator_app_gui
25cdc23e81b0dd9f72bef8a899122a81c6c50479
[ "MIT" ]
null
null
null
mix.exs
Devotu/magirator_app_gui
25cdc23e81b0dd9f72bef8a899122a81c6c50479
[ "MIT" ]
1
2018-06-28T20:44:06.000Z
2018-06-28T20:44:06.000Z
mix.exs
Devotu/magirator_app_gui
25cdc23e81b0dd9f72bef8a899122a81c6c50479
[ "MIT" ]
null
null
null
defmodule MagiratorElm.Mixfile do use Mix.Project def project do [ app: :magirator_app_gui, version: "0.1.0", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, start_permanent: Mix.env == :prod, deps: deps() ...
24.022727
56
0.589404
18ac07da85e2ae7056b61ce2538f5b5bbac90f94
679
exs
Elixir
example/ex_config_simple/mix.exs
sega-yarkin/ex_config
bcb160c2414b08a59a5a5253bee0a8fee296cc3e
[ "MIT" ]
null
null
null
example/ex_config_simple/mix.exs
sega-yarkin/ex_config
bcb160c2414b08a59a5a5253bee0a8fee296cc3e
[ "MIT" ]
null
null
null
example/ex_config_simple/mix.exs
sega-yarkin/ex_config
bcb160c2414b08a59a5a5253bee0a8fee296cc3e
[ "MIT" ]
null
null
null
defmodule ExConfigSimple.MixProject do use Mix.Project def project do [ app: :ex_config_simple, version: "0.1.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), dialyzer: [ plt_add_apps: [:erts, :kernel, :stdlib], ignore_warnings: ".dial...
19.970588
52
0.522828
18ac2822f482141aeb0b6ddc4c820b6d2656c777
2,220
exs
Elixir
domain_holder/config/dev.exs
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
1
2019-08-30T08:45:43.000Z
2019-08-30T08:45:43.000Z
domain_holder/config/dev.exs
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
5
2020-10-15T13:33:02.000Z
2020-10-15T13:33:04.000Z
domain_holder/config/dev.exs
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "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 :domain_holder, DomainHolderWeb.Endpoint, http: ...
28.461538
68
0.698198
18ac33ccc9700b832ea6edce3d25b04d3de1db38
1,219
exs
Elixir
config/config.exs
mtanca/alchemic_avatar
8016ef8268581ae1c77605e228e3c62e64c0b21b
[ "MIT" ]
56
2016-04-05T09:41:04.000Z
2021-01-21T21:40:14.000Z
config/config.exs
mtanca/alchemic_avatar
8016ef8268581ae1c77605e228e3c62e64c0b21b
[ "MIT" ]
3
2016-08-28T03:37:18.000Z
2017-12-01T07:05:34.000Z
config/config.exs
mtanca/alchemic_avatar
8016ef8268581ae1c77605e228e3c62e64c0b21b
[ "MIT" ]
9
2016-04-05T11:20:36.000Z
2021-04-06T14:16:42.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
35.852941
73
0.756358
18ac3dae20912a22f6412bf6b38cf06414a94caf
273
exs
Elixir
integration_test/temple_demo/priv/repo/migrations/20200522023854_create_posts.exs
mhanberg/temple
ec484bcef65e1bffa9134c3b259795237c1845d0
[ "MIT" ]
366
2019-07-12T22:43:35.000Z
2022-03-31T07:26:25.000Z
integration_test/temple_demo/priv/repo/migrations/20200522023854_create_posts.exs
mhanberg/temple
ec484bcef65e1bffa9134c3b259795237c1845d0
[ "MIT" ]
114
2019-07-12T19:49:10.000Z
2022-03-23T10:48:48.000Z
integration_test/temple_demo/priv/repo/migrations/20200522023854_create_posts.exs
mhanberg/temple
ec484bcef65e1bffa9134c3b259795237c1845d0
[ "MIT" ]
17
2019-07-23T15:16:34.000Z
2021-02-25T02:42:02.000Z
defmodule TempleDemo.Repo.Migrations.CreatePosts do use Ecto.Migration def change do create table(:posts) do add :title, :string add :body, :text add :published_at, :naive_datetime add :author, :string timestamps() end end end
18.2
51
0.655678
18ac446808b7b6de25241338d92cf094e9dc3e07
370
exs
Elixir
examples/elixir/get_started/setup.exs
iakev/ockam
24f4b29c5af609e7d173838ee115456325666188
[ "Apache-2.0" ]
null
null
null
examples/elixir/get_started/setup.exs
iakev/ockam
24f4b29c5af609e7d173838ee115456325666188
[ "Apache-2.0" ]
23
2021-10-12T16:43:06.000Z
2022-03-23T22:07:22.000Z
examples/elixir/get_started/setup.exs
iakev/ockam
24f4b29c5af609e7d173838ee115456325666188
[ "Apache-2.0" ]
1
2021-12-01T19:40:11.000Z
2021-12-01T19:40:11.000Z
repo = "https://github.com/ockam-network/ockam.git" Mix.install([ {:ockam, git: repo, branch: "hairyhum/refactor-message-type", sparse: "implementations/elixir/ockam/ockam"}, {:ockam_vault_software, override: true, git: repo, branch: "develop", sparse: "implementations/elixir/ockam/ockam_vault_software"}, ...
30.833333
103
0.705405
18ac6a249dd86edb1453fe58fbcf70f1b78506d6
1,558
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/bucket_owner.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/bucket_owner.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/storage/lib/google_api/storage/v1/model/bucket_owner.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.16
104
0.715019
18ac7f351c3f5cb96a4e4508a13a197a963f4fa4
2,367
ex
Elixir
lib/oli/delivery/paywall/payment.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/delivery/paywall/payment.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/delivery/paywall/payment.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Delivery.Paywall.Payment do use Ecto.Schema import Ecto.Changeset @moduledoc """ Modeling of a payment. Payments can be one of two types: direct or deferred. A direct payment is a payment made by a student through a system supported payment provider (e.g. Stripe or Cashnet). A deferred pa...
34.808824
102
0.724123
18ac9f650c19d9212217a31d71bd73abb9aa5d2e
2,143
exs
Elixir
config/config.exs
thelastinuit/akkad
08df3f51daeada737c53d07663c166a5e6cc297e
[ "MIT" ]
1
2022-03-05T00:05:26.000Z
2022-03-05T00:05:26.000Z
config/config.exs
thelastinuit/akkad
08df3f51daeada737c53d07663c166a5e6cc297e
[ "MIT" ]
null
null
null
config/config.exs
thelastinuit/akkad
08df3f51daeada737c53d07663c166a5e6cc297e
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :akkad, ecto_repos: [Akkad.Repo] # Configur...
28.959459
117
0.709753
18aca526c642f0f16de474df927289b0fc06f483
560
exs
Elixir
test/models/auth_token_test.exs
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
3
2015-08-24T11:44:19.000Z
2016-10-01T21:37:05.000Z
test/models/auth_token_test.exs
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
null
null
null
test/models/auth_token_test.exs
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
null
null
null
defmodule Storm.AuthTokenTest do use Storm.ModelCase use Storm.ConnCase alias Storm.AuthToken alias Storm.User test "generate json web token" do user = factory %User{}, :insert assert %AuthToken{} = AuthToken.generate_token user end test "authenticate! plug validate auth token" do user = f...
23.333333
76
0.692857
18accc247b7a491993d629bfc64681970c3fdbd5
968
ex
Elixir
lib/smppex/pdu/network_error_code.ex
desoulter/smppex
1c8dbd9673291431b2d329a2cb20134c91857af2
[ "MIT" ]
49
2019-11-27T00:20:59.000Z
2022-02-18T17:07:14.000Z
lib/smppex/pdu/network_error_code.ex
desoulter/smppex
1c8dbd9673291431b2d329a2cb20134c91857af2
[ "MIT" ]
62
2016-05-19T17:11:02.000Z
2019-11-21T16:47:15.000Z
lib/smppex/pdu/network_error_code.ex
desoulter/smppex
1c8dbd9673291431b2d329a2cb20134c91857af2
[ "MIT" ]
25
2016-05-20T14:44:43.000Z
2019-11-15T14:50:24.000Z
defmodule SMPPEX.Pdu.NetworkErrorCode do @moduledoc """ Module for operating with `deliver_sm` network_error_code parameter. """ @type type_code :: pos_integer() @type error_code :: pos_integer() @type network_error_code :: <<_::24>> @spec encode(type_code, error_code) :: network_error_code @doc """ ...
24.820513
83
0.684917
18acfbac1e76f3b1d354ac73adaaf1e20214fd05
1,937
exs
Elixir
config/dev.exs
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
null
null
null
config/dev.exs
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
1
2019-02-06T04:42:40.000Z
2019-02-06T04:42:40.000Z
config/dev.exs
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
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 :techtree, TechtreeWeb.Endpoint, http: [port: ...
32.830508
170
0.704182
18ad092880db2b03a4dce03825d6b531afb9866c
540
exs
Elixir
test/posts_test.exs
dailydrip/firestorm_data
5c5e75271c43dc08d93a2492692b6601ef3682aa
[ "MIT" ]
null
null
null
test/posts_test.exs
dailydrip/firestorm_data
5c5e75271c43dc08d93a2492692b6601ef3682aa
[ "MIT" ]
null
null
null
test/posts_test.exs
dailydrip/firestorm_data
5c5e75271c43dc08d93a2492692b6601ef3682aa
[ "MIT" ]
null
null
null
defmodule FirestormData.PostsTest do use FirestormData.DataCase, async: false import FirestormData.Posts alias FirestormData.Posts.Post setup do user = insert(:user) thread = insert(:thread, user: user) {:ok, user: user, thread: thread} end test "creating a post in a thread", %{thread: thread...
27
82
0.675926
18ad0c7eae9448f5b0735959d22aaf2dc058cfba
1,953
ex
Elixir
apps/snitch_core/priv/repo/seed/shipping.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
1
2018-12-01T18:13:55.000Z
2018-12-01T18:13:55.000Z
apps/snitch_core/priv/repo/seed/shipping.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
apps/snitch_core/priv/repo/seed/shipping.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
defmodule Snitch.Seed.Shipping do @moduledoc false import Ecto.Query import Snitch.Tools.Helper.{Shipment, Zone} alias Snitch.Data.Model.{Country, ShippingMethod, State} alias Snitch.Data.Schema.State, as: StateSchema alias Snitch.Data.Schema.ShippingMethod, as: ShippingMethodSchema alias Snitch.Data.Sc...
26.753425
80
0.620072
18ad0daf2c7c6e045f4a11bfb8f57385195ad55a
904
ex
Elixir
lib/sepomex_api/endpoint.ex
erickueen/sepomex-api
f975a5b462c44181fed8ac8852e9503a9ff2bdb7
[ "Apache-2.0" ]
null
null
null
lib/sepomex_api/endpoint.ex
erickueen/sepomex-api
f975a5b462c44181fed8ac8852e9503a9ff2bdb7
[ "Apache-2.0" ]
null
null
null
lib/sepomex_api/endpoint.ex
erickueen/sepomex-api
f975a5b462c44181fed8ac8852e9503a9ff2bdb7
[ "Apache-2.0" ]
null
null
null
defmodule SepomexAPI.Endpoint do @moduledoc """ Module to receive a reponse requests """ use Plug.Router plug(Plug.Logger) plug(:match) plug(Plug.Parsers, parsers: [:json], json_decoder: Jason) plug(:dispatch) get "/" do json_body = Jason.encode!(%{"message" => "Hello World!"}) conn ...
17.72549
61
0.662611
18ad26dfee2491cc1e47d088a3a25b6a1eba66f2
3,376
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/resource_policy.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/resource_policy.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/resource_policy.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 ...
43.844156
511
0.69609
18ad2bed57fabe5297eed0a464d748f2b1b7d1dc
3,589
ex
Elixir
lib/coherence/controllers/registration_controller.ex
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
null
null
null
lib/coherence/controllers/registration_controller.ex
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
null
null
null
lib/coherence/controllers/registration_controller.ex
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
null
null
null
defmodule Coherence.RegistrationController do @moduledoc """ Handle account registration actions. Actions: * new - render the register form * create - create a new user account * edit - edit the user account * update - update the user account * delete - delete the user account """ use CoherenceWeb...
28.259843
88
0.678741
18ad389ecbfc572d487a534dd9e4a6987804e89b
1,827
ex
Elixir
clients/managed_identities/lib/google_api/managed_identities/v1/model/list_locations_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/managed_identities/lib/google_api/managed_identities/v1/model/list_locations_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/managed_identities/lib/google_api/managed_identities/v1/model/list_locations_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.54
173
0.746032
18ad540414ad4e6c1387bb18327bf8eb33509a15
517
ex
Elixir
lib/teiserver/protocols/tachyon_v1/telemetry_in.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/teiserver/protocols/tachyon_v1/telemetry_in.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/protocols/tachyon_v1/telemetry_in.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Protocols.Tachyon.V1.TelemetryIn do alias Teiserver.Telemetry @spec do_handle(String.t(), Map.t(), Map.t()) :: Map.t() def do_handle("update_property", %{"hash" => hash, "property" => property, "value" => value}, state) do Telemetry.log_client_property(state.userid, property, value, hash)...
34.466667
105
0.682785
18ad8fc28fce2ead1a85280ff0b6bbdb745014e2
13,031
ex
Elixir
lib/cldr/calendar/backend/calendar.ex
kianmeng/cldr_calendars
af1ffe1b40100792e8e643ce09cc7db7224060b6
[ "Apache-2.0" ]
1
2019-05-19T02:16:41.000Z
2019-05-19T02:16:41.000Z
lib/cldr/calendar/backend/calendar.ex
kianmeng/cldr_calendars
af1ffe1b40100792e8e643ce09cc7db7224060b6
[ "Apache-2.0" ]
1
2019-04-13T23:08:25.000Z
2019-04-13T23:08:25.000Z
lib/cldr/calendar/backend/calendar.ex
kianmeng/cldr_calendars
af1ffe1b40100792e8e643ce09cc7db7224060b6
[ "Apache-2.0" ]
1
2019-04-02T14:12:32.000Z
2019-04-02T14:12:32.000Z
defmodule Cldr.Calendar.Backend do @moduledoc false def define_calendar_module(config) do backend = config.backend quote location: :keep, bind_quoted: [config: Macro.escape(config), backend: backend] do defmodule Calendar do @moduledoc false if Cldr.Config.include_module_docs?(config...
35.506812
110
0.621057
18ada30b7a2a6a13732bfe2813cc21b777265f86
284
exs
Elixir
server/priv/repo/migrations/20201201123459_create_users.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
2
2021-03-04T15:21:14.000Z
2021-03-21T13:43:07.000Z
server/priv/repo/migrations/20201201123459_create_users.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
server/priv/repo/migrations/20201201123459_create_users.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
defmodule Prepply.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add :username, :string, null: false add :password_hash, :string, null: false add :role, :string, default: "user" timestamps() end end end
20.285714
48
0.661972
18adaeb60c31ea928f366ae5dcf63fa3ef254402
1,797
exs
Elixir
test/plan_test.exs
ahd-elang/braintree-elixir
c18d37eaff2df8a6d62cc05677b8a03c1d23ad90
[ "MIT" ]
108
2016-02-03T12:45:03.000Z
2022-02-19T16:56:36.000Z
test/plan_test.exs
ahd-elang/braintree-elixir
c18d37eaff2df8a6d62cc05677b8a03c1d23ad90
[ "MIT" ]
77
2016-02-12T15:52:53.000Z
2022-02-21T14:38:08.000Z
test/plan_test.exs
ahd-elang/braintree-elixir
c18d37eaff2df8a6d62cc05677b8a03c1d23ad90
[ "MIT" ]
64
2016-04-04T07:07:24.000Z
2022-03-24T05:42:05.000Z
defmodule Braintree.PlanTest do use ExUnit.Case, async: true alias Braintree.Plan test "new/1 constructs a list of plans with nested maps available" do [first_plan, second_plan] = Plan.new([ %{ "add_ons" => [], "balance" => nil, "billing_day_of_month" => nil, ...
28.52381
71
0.487479
18ade17f409472eca960f7a6a937b89f6939833c
455
ex
Elixir
lib/uro_web/controllers/api/v1/user_content/map_controller.ex
V-Sekai/uro
0b23da65d5c7e459efcd6b2c3d9bdf91c533b737
[ "MIT" ]
1
2022-01-11T04:05:39.000Z
2022-01-11T04:05:39.000Z
lib/uro_web/controllers/api/v1/user_content/map_controller.ex
V-Sekai/uro
0b23da65d5c7e459efcd6b2c3d9bdf91c533b737
[ "MIT" ]
35
2021-02-10T08:18:57.000Z
2021-05-06T17:19:50.000Z
lib/uro_web/controllers/api/v1/user_content/map_controller.ex
V-Sekai/uro
0b23da65d5c7e459efcd6b2c3d9bdf91c533b737
[ "MIT" ]
null
null
null
defmodule UroWeb.API.V1.UserContent.MapController do use UroWeb, :controller use UroWeb.Helpers.API alias Uro.UserContent def show(conn, %{"id" => id}) do id |> UserContent.get_map! |> case do %Uro.UserContent.Map{} = map -> conn |> put_status(200) |> json(%{data: %{m...
21.666667
92
0.602198
18ae00b713b69c50879db161cc503e8a86bc39bc
126
exs
Elixir
backend_initial/test/test_helper.exs
bego-talks/e2e-workshop
75a1d2a691814539ddb8adfe9012483efc53cfe4
[ "MIT" ]
7
2021-05-08T13:37:05.000Z
2022-02-16T17:54:00.000Z
backend_initial/test/test_helper.exs
bego-talks/e2e-workshop
75a1d2a691814539ddb8adfe9012483efc53cfe4
[ "MIT" ]
null
null
null
backend_initial/test/test_helper.exs
bego-talks/e2e-workshop
75a1d2a691814539ddb8adfe9012483efc53cfe4
[ "MIT" ]
null
null
null
{:ok, _} = Application.ensure_all_started(:ex_machina) ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(TodoList.Repo, :manual)
25.2
54
0.769841
18ae03738b4546b980d58f6aa2eb11a6f9900504
5,155
ex
Elixir
lib/mix/lib/mix/tasks/run.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/run.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/run.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Run do use Mix.Task @shortdoc "Starts and runs the current application" @moduledoc """ Starts and runs the current application. `mix run` can be used to start the current application dependencies ant the application itself. For long running systems, this is typically done with the `...
32.834395
98
0.625412
18ae1d22b8887e6cf145ff940350c1882908e88b
8,486
ex
Elixir
lib/task_bunny/worker.ex
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
null
null
null
lib/task_bunny/worker.ex
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
null
null
null
lib/task_bunny/worker.ex
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
null
null
null
defmodule TaskBunny.Worker do @moduledoc """ A GenServer that listens a queue and consumes messages. You don't have to call or start worker explicity. TaskBunny loads config and starts workers automatically for you. """ use GenServer require Logger alias TaskBunny.{ Connection, Consumer, ...
28.192691
120
0.636578
18ae32f55cd3469303fb75c7dd1972a6dd246ddb
481
ex
Elixir
lib/freight.ex
Nickforall/Freight
bc8879981d7969e37bc47e0a0c94dc3309d6f0bb
[ "MIT" ]
13
2018-09-11T06:30:03.000Z
2021-06-18T22:23:20.000Z
lib/freight.ex
Nickforall/Freight
bc8879981d7969e37bc47e0a0c94dc3309d6f0bb
[ "MIT" ]
39
2018-09-11T18:37:22.000Z
2021-03-31T18:08:39.000Z
lib/freight.ex
Nickforall/Freight
bc8879981d7969e37bc47e0a0c94dc3309d6f0bb
[ "MIT" ]
null
null
null
defmodule Freight do @doc """ Gets an atom that is the name of the error object as used in payloads from the Application environment """ def error_object do Application.get_env(:freight, :error_object, nil) end @doc """ Gets a boolean defining whether Freight should lower camelize field names prepend...
30.0625
122
0.75052
18ae42e814bb4fc8c57c7e69603a459e3c99c983
582
exs
Elixir
mix.exs
atomkirk/ex_ample_data
ff24ff9ec61e4b55e032d5a1b56eb1eabe8e8c70
[ "MIT" ]
3
2020-06-15T23:01:33.000Z
2020-06-17T23:16:53.000Z
mix.exs
atomkirk/ex_ample_data
ff24ff9ec61e4b55e032d5a1b56eb1eabe8e8c70
[ "MIT" ]
null
null
null
mix.exs
atomkirk/ex_ample_data
ff24ff9ec61e4b55e032d5a1b56eb1eabe8e8c70
[ "MIT" ]
null
null
null
defmodule ExAmpleData.MixProject do use Mix.Project def project do [ app: :ex_ample_data, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ ...
20.068966
87
0.584192
18ae82c405ef884e4e7c5d435c41bbbeb30ac8ac
512
ex
Elixir
lib/cadet/auth/providers/cognito_claim_extractor.ex
seanlowjk/cadet
52b55cc0f777cb0d55a78fe1693f762085ab36c2
[ "Apache-2.0" ]
null
null
null
lib/cadet/auth/providers/cognito_claim_extractor.ex
seanlowjk/cadet
52b55cc0f777cb0d55a78fe1693f762085ab36c2
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
lib/cadet/auth/providers/cognito_claim_extractor.ex
seanlowjk/cadet
52b55cc0f777cb0d55a78fe1693f762085ab36c2
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule Cadet.Auth.Providers.CognitoClaimExtractor do @moduledoc """ Extracts fields from Cognito JWTs. """ @behaviour Cadet.Auth.Providers.OpenID.ClaimExtractor def get_username(claims) do claims["username"] end def get_name(claims) do claims["username"] end def get_role(claims) do ...
19.692308
55
0.632813
18ae8c8386d335245214ee5ccbfcc93be5fdc2c0
128
ex
Elixir
apps/emporium_api/modules/mod_hello/views/hello_view.ex
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/emporium_api/modules/mod_hello/views/hello_view.ex
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/emporium_api/modules/mod_hello/views/hello_view.ex
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
defmodule Emporium.HelloView do use Phoenix.View, root: "modules/mod_hello/templates" use EmporiumApi.Web, :module_view end
25.6
55
0.796875
18aeab2de7ac4682027af3687c1c616d40648daf
2,560
exs
Elixir
test/elixir/test/compact_test.exs
Antonio-Maranhao/couchdb
4d8b69acba544a9885bdf8fe68dd13f58cc215cc
[ "Apache-2.0" ]
1
2020-09-11T19:23:27.000Z
2020-09-11T19:23:27.000Z
test/elixir/test/compact_test.exs
Antonio-Maranhao/couchdb
4d8b69acba544a9885bdf8fe68dd13f58cc215cc
[ "Apache-2.0" ]
null
null
null
test/elixir/test/compact_test.exs
Antonio-Maranhao/couchdb
4d8b69acba544a9885bdf8fe68dd13f58cc215cc
[ "Apache-2.0" ]
null
null
null
defmodule CompactTest do use CouchTestCase @moduletag :compact @moduletag kind: :single_node @moduledoc """ Test CouchDB compaction This is a port of compact.js """ @att_doc_id "att_doc" @att_name "foo.txt" @att_plaintext "This is plain text" # Need to investigate why compaction is not compact...
28.444444
90
0.658984
18aed6e487934d20d7c6745755855062ae4bb1ea
134
exs
Elixir
config/test.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
103
2016-09-26T15:36:58.000Z
2022-02-09T18:49:17.000Z
config/test.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
65
2016-08-30T09:53:08.000Z
2022-01-31T16:53:41.000Z
config/test.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
47
2016-10-06T22:50:53.000Z
2022-02-24T21:57:01.000Z
use Mix.Config config :recaptcha, http_client: Recaptcha.Http.MockClient, secret: "test_secret", public_key: "test_public_key"
19.142857
41
0.768657
18af4ebdfbaa49bb921ce4d1f31179a4ae661ef0
3,027
ex
Elixir
day24/lib/day24.ex
bjorng/advent-of-code-2016
fb3e40ae2fd52d761f6c0bf55e7634277917ba25
[ "Apache-2.0" ]
1
2021-05-12T11:30:15.000Z
2021-05-12T11:30:15.000Z
day24/lib/day24.ex
bjorng/advent-of-code-2016
fb3e40ae2fd52d761f6c0bf55e7634277917ba25
[ "Apache-2.0" ]
null
null
null
day24/lib/day24.ex
bjorng/advent-of-code-2016
fb3e40ae2fd52d761f6c0bf55e7634277917ba25
[ "Apache-2.0" ]
null
null
null
defmodule Day24 do def part1(input) do {start_pos, goals, grid} = parse(input) find_single_solution({start_pos, goals}, grid) end def part2(input) do {start_pos, goals, grid} = parse(input) find_all_solutions({start_pos, goals}, grid) |> Enum.map(fn {moves0, position} -> goals = MapSet....
23.648438
63
0.544433
18af53c8d8162c69bbba038008e488838a00502f
966
exs
Elixir
lib/wechat/core/apis/group.exs
sjava/ex_wechat
521e119be8cc960453002c099d57f7474bfd7735
[ "MIT" ]
23
2016-12-25T13:38:38.000Z
2020-11-02T15:06:10.000Z
lib/wechat/core/apis/group.exs
sjava/ex_wechat
521e119be8cc960453002c099d57f7474bfd7735
[ "MIT" ]
15
2016-11-05T17:00:18.000Z
2019-08-28T10:00:41.000Z
lib/wechat/core/apis/group.exs
sjava/ex_wechat
521e119be8cc960453002c099d57f7474bfd7735
[ "MIT" ]
8
2017-07-04T03:44:25.000Z
2020-11-11T08:32:39.000Z
use Mix.Config config :create_group, doc: """ Create user group """, endpoint: "https://api.weixin.qq.com/cgi-bin", path: "/groups/create", http: :post, params: [access_token: nil] config :get_groups, doc: """ Get groups """, endpoint: "https://api.weixin.qq.com/cgi-bin", path: "/groups/get", ...
20.553191
48
0.645963
18af56100874408b6bed6fc6f8bfffe710914777
1,969
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/tenant_resource.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/tenant_resource.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/tenant_resource.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.8
198
0.733875
18af62e98e500e72436ea38950a9ed2629a3761d
1,037
ex
Elixir
lib/chargebee/params.ex
alfredclub/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:42:59.000Z
2019-09-13T14:31:36.000Z
lib/chargebee/params.ex
madebymany/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:42:48.000Z
2017-04-13T18:48:32.000Z
lib/chargebee/params.ex
madebymany/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:44:13.000Z
2017-05-11T19:53:21.000Z
defmodule Chargebee.Params do import Chargebee.Utils def encode_params(data) do safe_map(data) |> Enum.into([], fn {key,val} -> encode_key_value_pair(key,val) end) |> Enum.filter(&(&1)) |> Enum.join("&") end defp encode_key_value_pair(_key, nil), do: nil defp encode_key_value_pair(key, valu...
25.925
98
0.642237
18afd0388efaefb517e44f2274c2576b9b644769
3,225
ex
Elixir
test/support/ex_check/umbrella_project_case.ex
gerbal/ex_check
1247075a64d17f69c3e6e9699bd95664cc128466
[ "MIT" ]
225
2019-07-21T14:44:17.000Z
2022-03-31T11:08:07.000Z
test/support/ex_check/umbrella_project_case.ex
gerbal/ex_check
1247075a64d17f69c3e6e9699bd95664cc128466
[ "MIT" ]
23
2019-07-30T03:05:42.000Z
2022-03-06T18:11:50.000Z
test/support/ex_check/umbrella_project_case.ex
gerbal/ex_check
1247075a64d17f69c3e6e9699bd95664cc128466
[ "MIT" ]
9
2019-11-23T23:04:39.000Z
2022-03-29T00:54:34.000Z
defmodule ExCheck.UmbrellaProjectCase do @moduledoc false use ExUnit.CaseTemplate @default_config """ [ fix: false ] """ using do quote do import ExCheck.UmbrellaProjectCase @moduletag timeout: 5 * 60 * 1_000 setup do tmp_dir = create_tmp_directory() project_...
25.195313
92
0.613953
18afd5ecaba4af9ae406b895122ab982a769fd5c
12,070
ex
Elixir
lib/nsq/consumer.ex
amokan/elixir_nsq
26e9cdf8f6c99b6688e540181a501f53aa5e9e4b
[ "MIT" ]
null
null
null
lib/nsq/consumer.ex
amokan/elixir_nsq
26e9cdf8f6c99b6688e540181a501f53aa5e9e4b
[ "MIT" ]
null
null
null
lib/nsq/consumer.ex
amokan/elixir_nsq
26e9cdf8f6c99b6688e540181a501f53aa5e9e4b
[ "MIT" ]
null
null
null
defmodule NSQ.Consumer do @moduledoc """ A consumer is a process that creates connections to NSQD to receive messages for a specific topic and channel. It has three primary functions: 1. Provide a simple interface for a user to setup and configure message handlers. 2. Balance RDY across all available co...
32.015915
97
0.650621
18b01ca3d3e7ffaec7536a8b0594a62fbefe3a06
606
exs
Elixir
Elixir/tasks/mix.exs
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
8
2016-08-14T12:35:16.000Z
2021-01-26T04:05:31.000Z
Elixir/tasks/mix.exs
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
null
null
null
Elixir/tasks/mix.exs
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
5
2016-08-18T22:12:19.000Z
2020-02-17T18:52:41.000Z
defmodule Tasks.Mixfile do use Mix.Project def project do [ app: :kujuatasks, version: "0.0.1", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps, dialyzer: [ plt_apps: ["erts","kernel", "stdlib", "crypto", "public_key", "mnes...
18.363636
92
0.547855
18b0248a46d1f714c2595c7baf95f1306af46da4
165
exs
Elixir
priv/repo/migrations/20200409161242_add_gravatar_to_users.exs
amacgregor/sibt
9819a9de4735612ee59de00f71ca1a6dfa275860
[ "MIT" ]
null
null
null
priv/repo/migrations/20200409161242_add_gravatar_to_users.exs
amacgregor/sibt
9819a9de4735612ee59de00f71ca1a6dfa275860
[ "MIT" ]
null
null
null
priv/repo/migrations/20200409161242_add_gravatar_to_users.exs
amacgregor/sibt
9819a9de4735612ee59de00f71ca1a6dfa275860
[ "MIT" ]
null
null
null
defmodule Sibt.Repo.Migrations.AddGravatarToUsers do use Ecto.Migration def up do alter table(:users) do add :gravatar_url, :string end end end
16.5
52
0.709091
18b03489b43f6c6243bc44d8c0303bed8d2dee52
6,335
exs
Elixir
apps/api_accounts/test/api_accounts/dynamo_test.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/api_accounts/test/api_accounts/dynamo_test.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/api_accounts/test/api_accounts/dynamo_test.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
1
2019-09-09T20:40:13.000Z
2019-09-09T20:40:13.000Z
defmodule ApiAccounts.DynamoTest do use ApiAccounts.Test.DatabaseCase, async: false alias ApiAccounts.{Dynamo, Key, User} def put_user(attrs) do {:ok, %User{} = user} = Dynamo.put_item(struct(User, attrs)) user end test "create_table" do assert {:ok, _} = Dynamo.create_table(ApiAccounts.Test.Mod...
29.602804
98
0.597632
18b045bce339501bf6cabb3329b65c0e56643780
1,803
ex
Elixir
lib/mix/tasks/gen_msg.ex
nathanjohnson320/elmer
41ce46422dec91a2ab342c098e010eaf1cc7c98f
[ "MIT" ]
9
2016-05-31T04:49:27.000Z
2017-06-17T11:50:36.000Z
lib/mix/tasks/gen_msg.ex
nathanjohnson320/elmer
41ce46422dec91a2ab342c098e010eaf1cc7c98f
[ "MIT" ]
null
null
null
lib/mix/tasks/gen_msg.ex
nathanjohnson320/elmer
41ce46422dec91a2ab342c098e010eaf1cc7c98f
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Elmer.Gen.Msg do @shortdoc "Generates a Msg file given a list of Msgs." @moduledoc """ This is a mix task for creating a Msg template. """ use Mix.Task @doc """ Creates a new elm Msg in the directory corresponding to your <module name>. Run with `mix elmer.gen.msg <module name> <...
34.673077
143
0.694953
18b04c81ed363f504d22bd36baa87832595f2c7a
487
ex
Elixir
lib/koans/04_atoms.ex
eduardolujan/elixir_koans
ab969a22e847dec73c665d866102dc2ebdc3f813
[ "MIT" ]
null
null
null
lib/koans/04_atoms.ex
eduardolujan/elixir_koans
ab969a22e847dec73c665d866102dc2ebdc3f813
[ "MIT" ]
null
null
null
lib/koans/04_atoms.ex
eduardolujan/elixir_koans
ab969a22e847dec73c665d866102dc2ebdc3f813
[ "MIT" ]
null
null
null
defmodule Atoms do use Koans @intro "Atoms" koan "Atoms are constants where their name is their own value" do adam = :human assert adam == :"human" end koan "It is surprising to find out that booleans are atoms" do assert is_atom(true) == true assert is_boolean(false) == true assert tru...
21.173913
67
0.657084
18b05d4b9b05d6bfbfef9bfc0cd50309929886d0
1,807
exs
Elixir
test/browser_test.exs
drozdzynski/stex
2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f
[ "Apache-2.0" ]
17
2019-05-04T16:04:14.000Z
2019-05-25T13:20:32.000Z
test/browser_test.exs
nerdslabs/storex
2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f
[ "Apache-2.0" ]
null
null
null
test/browser_test.exs
nerdslabs/storex
2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f
[ "Apache-2.0" ]
null
null
null
defmodule StorexTest.Browser do use ExUnit.Case use Hound.Helpers setup_all do dispatch = :cowboy_router.compile([ {:_, [ {"/static/[...]", :cowboy_static, {:dir, "priv/static"}}, {"/storex", Storex.Socket.Handler, []}, {:_, StorexTest.Browser.Handler, ...
19.641304
68
0.604317
18b0acd2d1de2904cf092d4212cf54986300f0c5
1,309
ex
Elixir
lib/ex_algo/number/chinese_remainder.ex
code-shoily/ex_algo
7837c222fd2844a151b6b92038f94ea088bec0a2
[ "MIT" ]
21
2021-11-21T08:07:38.000Z
2022-03-13T06:19:35.000Z
lib/ex_algo/number/chinese_remainder.ex
code-shoily/ex_algo
7837c222fd2844a151b6b92038f94ea088bec0a2
[ "MIT" ]
3
2021-11-26T22:54:09.000Z
2022-03-06T21:16:12.000Z
lib/ex_algo/number/chinese_remainder.ex
code-shoily/ex_algo
7837c222fd2844a151b6b92038f94ea088bec0a2
[ "MIT" ]
null
null
null
defmodule ExAlgo.Number.ChineseRemainder do @moduledoc """ This module implements Chinese Remainder Theorem """ @doc """ Chinese Remainder Theorem. ## Example iex> ChineseRemainder.compute([{11, 10}, {12, 4}, {13, 12}]) 1000 iex> ChineseRemainder.compute([{11, 10}, {22, 4}, {19, 9}]) nil...
21.112903
64
0.547746
18b0b0116d5adc1050db6c371f4c5d7b7771aa58
1,443
exs
Elixir
farmbot_core/test/asset_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/test/asset_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/test/asset_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCore.AssetTest do use ExUnit.Case, async: true alias FarmbotCore.Asset.{ RegimenInstance, PinBinding } alias FarmbotCore.Asset import Farmbot.TestSupport.AssetFixtures describe "regimen instances" do test "creates a regimen instance" do seq = sequence() reg = ...
27.75
78
0.697852
18b0b7687140813cad8c3a473119aaf9c4b3074e
142
ex
Elixir
lib/chargebee/structs/estimate/next_invoice_estimate.ex
alfredclub/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:42:59.000Z
2019-09-13T14:31:36.000Z
lib/chargebee/structs/estimate/next_invoice_estimate.ex
madebymany/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:42:48.000Z
2017-04-13T18:48:32.000Z
lib/chargebee/structs/estimate/next_invoice_estimate.ex
madebymany/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:44:13.000Z
2017-05-11T19:53:21.000Z
defmodule Chargebee.NextInvoiceEstimate do @derive [Poison.Encoder] defstruct Map.to_list(Map.from_struct(Chargebee.InvoiceEstimate)) end
28.4
67
0.830986
18b0c501730e7295268b9796578a2a2d9aa7c0f4
555
ex
Elixir
lib/animals.ex
lucas-stellet/my-template-elixir-gitpod
e8ff7686b49cbe20235dce14a02ea4e2bfb7f03c
[ "MIT" ]
null
null
null
lib/animals.ex
lucas-stellet/my-template-elixir-gitpod
e8ff7686b49cbe20235dce14a02ea4e2bfb7f03c
[ "MIT" ]
null
null
null
lib/animals.ex
lucas-stellet/my-template-elixir-gitpod
e8ff7686b49cbe20235dce14a02ea4e2bfb7f03c
[ "MIT" ]
3
2021-12-22T20:30:59.000Z
2022-01-21T16:55:35.000Z
defmodule Animals do @moduledoc """ Documentation for `Animals`. """ @doc """ create_zoo returns a list of zoo animals """ def create_zoo do ["lion", "tiger", "gorilla", "elephant", "monke", "giraffe"] end @doc """ randomise takes a list of zoo animals and returns a new randomised list with ...
19.137931
78
0.643243
18b0c645fb8016541b56c02013f9e59db48bd652
739
exs
Elixir
mix.exs
sandisk/amplitude_ex
ad83b3537851420e2efbd220b8245feacf1a3cc4
[ "BSD-3-Clause" ]
2
2018-08-16T19:57:39.000Z
2020-08-10T22:09:26.000Z
mix.exs
sandisk/amplitude_ex
ad83b3537851420e2efbd220b8245feacf1a3cc4
[ "BSD-3-Clause" ]
2
2019-01-13T22:40:35.000Z
2021-07-03T09:47:20.000Z
mix.exs
sandisk/amplitude_ex
ad83b3537851420e2efbd220b8245feacf1a3cc4
[ "BSD-3-Clause" ]
6
2018-12-13T18:01:49.000Z
2021-08-16T14:01:29.000Z
defmodule Amplitude.Mixfile do use Mix.Project def project do [app: :amplitude, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" fo...
20.527778
77
0.583221
18b0f924e8bb7efdf72e9ba685da4830428212c0
19,847
ex
Elixir
lib/grpc/stub.ex
leanersoft/grpc
56fcd20f93d2af530a5ec4016ffb7ab39af1cc62
[ "Apache-2.0" ]
null
null
null
lib/grpc/stub.ex
leanersoft/grpc
56fcd20f93d2af530a5ec4016ffb7ab39af1cc62
[ "Apache-2.0" ]
null
null
null
lib/grpc/stub.ex
leanersoft/grpc
56fcd20f93d2af530a5ec4016ffb7ab39af1cc62
[ "Apache-2.0" ]
null
null
null
defmodule GRPC.Stub do @moduledoc """ A module acting as the interface for gRPC client. You can do everything in the client side via `GRPC.Stub`, including connecting, sending/receiving steaming or non-steaming requests, canceling calls and so on. A service is needed to define a stub: defmodule Greet...
29.89006
130
0.620648
18b143d64c4daa78356168b5cab6db9ebca00cde
287
exs
Elixir
config/test.exs
Cl0v1s/Docker-bdx.town
a069e297e4a036ccc9894ea0592ee8dc278b1c07
[ "MIT" ]
null
null
null
config/test.exs
Cl0v1s/Docker-bdx.town
a069e297e4a036ccc9894ea0592ee8dc278b1c07
[ "MIT" ]
2
2021-07-26T20:44:58.000Z
2021-12-01T11:03:09.000Z
config/test.exs
Cl0v1s/Docker-bdx.town
a069e297e4a036ccc9894ea0592ee8dc278b1c07
[ "MIT" ]
null
null
null
# Pleroma test configuration # NOTE: This file should not be committed to a repo or otherwise made public # without removing sensitive information. import Config config :pleroma, Pleroma.Repo, username: "pleroma", password: "pleroma", database: "pleroma", hostname: "postgres"
23.916667
76
0.752613
18b15db356e8f48b2a7945bbacca916aefa4afb6
1,005
exs
Elixir
elixir/elixir-quiz/identicons/identicon.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
2
2015-12-09T02:16:51.000Z
2021-07-26T22:53:43.000Z
elixir/elixir-quiz/identicons/identicon.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
null
null
null
elixir/elixir-quiz/identicons/identicon.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
1
2016-05-08T18:40:31.000Z
2016-05-08T18:40:31.000Z
defmodule Identicon do def make(username) do username |> encode |> draw end defp encode(username) do :crypto.hash(:md5, username) |> color |> alpha end defp color(md5), do: _color(md5 |> :binary.bin_to_list) defp _color([ r, g, b | tail ]), do: { { r, g, b }, tail ++ tail } defp...
23.372093
73
0.574129
18b180595177527cf0f3c29d9d287a9627cf9e1e
445
exs
Elixir
test/kafka_consumer/message_test.exs
szTheory/kafka-consumer
04fb48e92e14c5dec3c7502cf78bc0e9a774c70c
[ "MIT" ]
31
2016-08-12T12:37:52.000Z
2020-03-07T14:54:12.000Z
test/kafka_consumer/message_test.exs
szTheory/kafka-consumer
04fb48e92e14c5dec3c7502cf78bc0e9a774c70c
[ "MIT" ]
7
2016-09-10T08:19:18.000Z
2017-06-20T10:45:47.000Z
test/kafka_consumer/message_test.exs
szTheory/kafka-consumer
04fb48e92e14c5dec3c7502cf78bc0e9a774c70c
[ "MIT" ]
6
2016-08-11T21:37:16.000Z
2020-03-03T21:24:29.000Z
defmodule KafkaConsumer.MessageTest do use ExUnit.Case alias KafkaConsumer.Message test "#make" do kafka_message = {:kafka_message, 6, 0, 0, "", "what", 1001589737} assert %KafkaConsumer.Message{attributes: 0, crc: 1001589737, key: "", magic_byte: 0, offset: 6, partition: 4...
29.666667
85
0.593258
18b1a4a5fc823f3da06e9645fab0a7eb858f0690
1,921
ex
Elixir
lib/new_relic/util/error.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
227
2018-09-05T15:33:23.000Z
2022-02-25T18:12:06.000Z
lib/new_relic/util/error.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
211
2018-09-05T21:42:41.000Z
2022-03-25T17:51:56.000Z
lib/new_relic/util/error.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
84
2018-09-05T04:26:26.000Z
2022-03-09T14:28:14.000Z
defmodule NewRelic.Util.Error do # Helper functions for normalizing and formatting errors @moduledoc false def normalize(kind, exception, stacktrace, initial_call \\ nil) def normalize(kind, exception, stacktrace, initial_call) do normalized_error = Exception.normalize(kind, exception, stacktrace) e...
36.245283
94
0.7038
18b1be79b1007bee49c0f1dd93b41948b9ce1d61
2,021
exs
Elixir
config/prod.exs
rheubach/live-share-prop
b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88
[ "MIT" ]
68
2020-02-13T15:17:39.000Z
2022-03-29T23:21:19.000Z
config/prod.exs
rheubach/live-share-prop
b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88
[ "MIT" ]
30
2020-04-16T17:21:22.000Z
2021-09-20T21:47:12.000Z
config/prod.exs
rheubach/live-share-prop
b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88
[ "MIT" ]
7
2020-06-07T16:19:14.000Z
2022-02-09T23:31:25.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.089286
66
0.715982
18b1ef628cd3eef2e58b1209fa7f87324532028b
21,661
ex
Elixir
lib/scenic/primitive.ex
fhunleth/scenic
02fc61916ebe0cb01bf436832409226cad2d1f8b
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive.ex
fhunleth/scenic
02fc61916ebe0cb01bf436832409226cad2d1f8b
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive.ex
fhunleth/scenic
02fc61916ebe0cb01bf436832409226cad2d1f8b
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 2017-05-06. # Copyright © 2017 Kry10 Industries. All rights reserved. # defmodule Scenic.Primitive do @moduledoc """ Please see [`Primitives Overview`](overview_primitives.html) for a high-level description. ## What is a primitive A primitive is the simplest thing Scenic kno...
30.988555
241
0.618808
18b1ff7882dd7fed6b9cbcfb8176f088aaa02866
1,285
ex
Elixir
lib/svgbobex.ex
ScrimpyCat/SvgBobEx
3fc0a1a1f544b201d9b344100e16a665e7b7e76d
[ "BSD-2-Clause" ]
null
null
null
lib/svgbobex.ex
ScrimpyCat/SvgBobEx
3fc0a1a1f544b201d9b344100e16a665e7b7e76d
[ "BSD-2-Clause" ]
null
null
null
lib/svgbobex.ex
ScrimpyCat/SvgBobEx
3fc0a1a1f544b201d9b344100e16a665e7b7e76d
[ "BSD-2-Clause" ]
null
null
null
defmodule SvgBobEx do @moduledoc """ Provides a straightforward interface to the [svgbob](https://github.com/ivanceras/svgbobrus) tool. graph = \"\"\" +-----+ +-----+ | one +--->| two | +-----+ +-----+ \"\"\" SvgBobEx.to_svg!(graph) """ @doc """ ...
29.204545
104
0.530739
18b20a8faff58c05976d0941c28f75187987b214
2,703
ex
Elixir
benchmark/lib/benchmark/stats_server.ex
cuddlecake/extreme
98f18ecc2fa38034808ddca37f70508bfc77e809
[ "MIT" ]
121
2015-11-11T21:04:51.000Z
2021-11-16T16:20:35.000Z
benchmark/lib/benchmark/stats_server.ex
cuddlecake/extreme
98f18ecc2fa38034808ddca37f70508bfc77e809
[ "MIT" ]
65
2016-02-08T18:05:24.000Z
2021-11-16T09:53:48.000Z
benchmark/lib/benchmark/stats_server.ex
cuddlecake/extreme
98f18ecc2fa38034808ddca37f70508bfc77e809
[ "MIT" ]
34
2015-11-19T20:08:16.000Z
2022-01-11T10:46:38.000Z
defmodule Extreme.Benchmark.StatsServer do use GenServer require Logger @workers 10 @conns 1 @dump_timeout 20_000 @increment 50 def start_link(opts \\ []) do GenServer.start_link(__MODULE__, nil, opts) end def add_workers(num, es_name) do GenServer.cast(:stats, {:add_workers, num, es_name})...
22.338843
135
0.590455
18b21c58ca5bda6add4c3e032b499d654a9aeca9
551
ex
Elixir
lib/otp_supervisors_2/lib/otp_supervisors_2/stash.ex
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
null
null
null
lib/otp_supervisors_2/lib/otp_supervisors_2/stash.ex
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
1
2020-01-28T00:19:53.000Z
2020-01-28T00:19:53.000Z
lib/otp_supervisors_2/lib/otp_supervisors_2/stash.ex
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
null
null
null
defmodule OTPSupervisors2.Stash do use GenServer ##### # 外部 API def start_link(current_list) do {:ok, _pid} = GenServer.start_link(__MODULE__, current_list) end def save_value(pid, value) do GenServer.cast pid, {:save_value, value} end def get_value(pid) do GenServer.call pid, :get_value...
18.366667
64
0.68784
18b243467f472ebe7f1cbd1d4178bb1f17163483
2,280
ex
Elixir
clients/fitness/lib/google_api/fitness/v1/model/aggregate_bucket.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/aggregate_bucket.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/aggregate_bucket.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...
38
130
0.739474
18b24cb0bfeede74a0caaa88e28de84d1468efd9
399
ex
Elixir
2021/day7/lib/task2.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day7/lib/task2.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day7/lib/task2.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
defmodule Task2Runner do def main do case File.read("data.txt") do {:ok, contents} -> contents |> process {:error, reason} -> "failed to read file 'data.txt': #{reason}" end |> IO.puts() end def process(contents) do contents |> String.trim_trailing() |> String.split(",", trim:...
22.166667
69
0.596491
18b260b56f8587dfaf60849529445d6f7dc5e7c3
839
ex
Elixir
lib/protocol/v4/frames/requests/batch.ex
overdb/over_db
0bc52de49ee684b4d63607e960d522663e17ed6a
[ "Apache-2.0" ]
7
2019-04-13T01:11:18.000Z
2020-08-11T08:11:03.000Z
lib/protocol/v4/frames/requests/batch.ex
overdb/over_db
0bc52de49ee684b4d63607e960d522663e17ed6a
[ "Apache-2.0" ]
null
null
null
lib/protocol/v4/frames/requests/batch.ex
overdb/over_db
0bc52de49ee684b4d63607e960d522663e17ed6a
[ "Apache-2.0" ]
null
null
null
defmodule OverDB.Protocol.V4.Frames.Requests.Batch do alias OverDB.Protocol.V4.Frames.{Requests.Encoder, Frame} @type t :: :batch def opcode() do 0x0D end # NOTE: this fucntion only recv already encoded query_in_batch queries def push(queries, type, stream_id, opts \\ %{}) do flags = Map.get(opt...
31.074074
75
0.682956
18b26af83346f8079b36e9037bbc45dd81bc52a0
1,885
ex
Elixir
lib/absinthe/phase.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/phase.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/phase.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Phase do @moduledoc """ Behaviour for Absinthe Phases. A phase takes an `Absinthe.Blueprint` document and returns another blueprint document. All validation, resolution, and result building happens via phases. See `Absinthe.Pipeline` for information on how to run phases. See the code under...
28.560606
88
0.613793
18b28aa4c9376ea6df34a91b39946dc6c73547a4
526
ex
Elixir
lib/stixex/vocabulary/encryption_algo.ex
FloatingGhost/stixex
c3b012d0e8596fde6bd512f856f05b0187bb5273
[ "MIT" ]
1
2019-05-07T22:44:45.000Z
2019-05-07T22:44:45.000Z
lib/stixex/vocabulary/encryption_algo.ex
FloatingGhost/stixex
c3b012d0e8596fde6bd512f856f05b0187bb5273
[ "MIT" ]
null
null
null
lib/stixex/vocabulary/encryption_algo.ex
FloatingGhost/stixex
c3b012d0e8596fde6bd512f856f05b0187bb5273
[ "MIT" ]
null
null
null
defmodule StixEx.Vocabulary.EncryptionAlgo do @moduledoc """ An open vocabulary of encryption algorithms. """ @behaviour StixEx.Vocabulary @impl StixEx.Vocabulary def values do ~w[ AES128-ECB AES128-CBC AES128-CFB AES128-OFB AES128-CTR AES128-XTS AES128-GCM ...
15.470588
46
0.589354
18b29d1e3d430d9dd35521852b5f093ff979e5ce
2,855
exs
Elixir
test/parallel_stream/reject_test.exs
davemenninger/parallel_stream
939e4c2e507aaef642079569ea8ab67c2315c138
[ "MIT" ]
null
null
null
test/parallel_stream/reject_test.exs
davemenninger/parallel_stream
939e4c2e507aaef642079569ea8ab67c2315c138
[ "MIT" ]
null
null
null
test/parallel_stream/reject_test.exs
davemenninger/parallel_stream
939e4c2e507aaef642079569ea8ab67c2315c138
[ "MIT" ]
null
null
null
defmodule ParallelStream.RejectTest do use ExUnit.Case, async: true @moduletag timeout: 1000 test ".reject filters a stream of variable length" do result = 1..5 |> ParallelStream.reject(fn i -> i |> rem(2) == 0 end) |> Enum.into([]) assert result == [1, 3, 5] end test ".reject kil...
23.211382
96
0.545709
18b2b0ce668365a3bfa0e88e7263a9f6a69c1c13
1,672
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/model/import_consumer_overrides_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/import_consumer_overrides_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/import_consumer_overrides_response.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...
35.574468
159
0.761364
18b2b255ca66bd8e574926eaf320a3303f9cbddf
254
exs
Elixir
year_2015/test/day_08_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2015/test/day_08_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2015/test/day_08_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
defmodule Day08Test do use ExUnit.Case, async: true test "it gets the answer for part one" do assert Day08.part_one(InputTestFile) == 12 end test "it gets the answer for part two" do assert Day08.part_two(InputTestFile) == 19 end end
21.166667
46
0.712598
18b30ba2446ba69c72b010fe50ecf5cd8995030f
522
ex
Elixir
lib/hive/application.ex
taran96/HiveNode
3bac148e138fd5dda0b23985020524d807c59710
[ "MIT" ]
null
null
null
lib/hive/application.ex
taran96/HiveNode
3bac148e138fd5dda0b23985020524d807c59710
[ "MIT" ]
null
null
null
lib/hive/application.ex
taran96/HiveNode
3bac148e138fd5dda0b23985020524d807c59710
[ "MIT" ]
null
null
null
defmodule Hive.Application do @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ {Hive.MQ.NodeAgent, [name: Hive.MQ.NodeAgent]}, {Task.Supervisor, [name: :job_supervisor]}, {Hive.JobServerSupervisor, [name: Hive.JobServe...
27.473684
67
0.691571
18b30bbb23d1d75b433717edc4ad572ce70f00ae
7,963
ex
Elixir
lib/nys_etl/commcare/api.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
2
2021-06-22T21:01:49.000Z
2021-11-04T18:36:48.000Z
lib/nys_etl/commcare/api.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
lib/nys_etl/commcare/api.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
defmodule NYSETL.Commcare.Api do @moduledoc """ Wraps calls to CommCare. """ @http_client Application.compile_env!(:nys_etl, :http_client) @limit 100 require Logger alias NYSETL.Commcare.CountiesCache def get_county_list(cache_control \\ :refer_to_config, cache_name \\ __MODULE__) do if use_cach...
34.925439
149
0.628532
18b30f9b4ba410b3845fe8f16b4f484dc91a5e99
5,569
ex
Elixir
lib/wechat/plug/work_event_handler.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
7
2021-01-22T04:07:29.000Z
2021-12-14T14:01:30.000Z
lib/wechat/plug/work_event_handler.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
1
2021-03-17T15:44:26.000Z
2021-03-17T15:44:26.000Z
lib/wechat/plug/work_event_handler.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
2
2021-03-17T14:35:56.000Z
2021-08-10T07:44:10.000Z
if Code.ensure_loaded?(Plug) do defmodule WeChat.Plug.WorkEventHandler do @moduledoc """ 企业微信推送消息处理器 ## Usage 请将入口路径设置为如下格式 `/*xxx/:app/:agent` 并将代码加到 `router` 里面: scope "/wx/event/:app/:agent" do forward "/", #{inspect(__MODULE__)}, event_handler: &YourModule.handle_event/4 ...
31.286517
120
0.567966
18b31cd2df03488592748cd632941eca7dc2a888
28,377
ex
Elixir
lib/elixir/lib/protocol.ex
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/protocol.ex
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/elixir/lib/protocol.ex
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
null
null
null
defmodule Protocol do @moduledoc ~S""" Reference and functions for working with protocols. A protocol specifies an API that should be defined by its implementations. A protocol is defined with `Kernel.defprotocol/2` and its implementations with `Kernel.defimpl/2`. ## Examples In Elixir, we have two ver...
30.447425
97
0.650809
18b31f7e920c1c32975e2da20ad73005e56cca51
84,853
ex
Elixir
lib/elixir/lib/enum.ex
rcoppolo/elixir
c4092e071f8b42f5a9ad213dd8b3632918097213
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
rcoppolo/elixir
c4092e071f8b42f5a9ad213dd8b3632918097213
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
rcoppolo/elixir
c4092e071f8b42f5a9ad213dd8b3632918097213
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression: Enum.map([1, 2, 3], &(&1 * 2)) invokes `Enume...
27.469408
133
0.60956
18b356886cabb90a6c6852b648c8a82996275d8c
56
ex
Elixir
lib/rundot/ecto_enums.ex
awseward/rundot
2182215f8aa22aab6c1ea21ed0705524c1ebdc44
[ "MIT" ]
null
null
null
lib/rundot/ecto_enums.ex
awseward/rundot
2182215f8aa22aab6c1ea21ed0705524c1ebdc44
[ "MIT" ]
null
null
null
lib/rundot/ecto_enums.ex
awseward/rundot
2182215f8aa22aab6c1ea21ed0705524c1ebdc44
[ "MIT" ]
null
null
null
import EctoEnum defenum DistanceUnitEnum, mi: 0, km: 1
14
38
0.767857
18b379f383863d73b1224de3e733324bc5d168f4
840
exs
Elixir
apps/ewallet/priv/repo/seeders/key.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
2
2019-07-13T05:49:03.000Z
2021-08-19T23:58:23.000Z
apps/ewallet/priv/repo/seeders/key.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/ewallet/priv/repo/seeders/key.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
3
2018-05-08T17:15:42.000Z
2021-11-10T04:08:33.000Z
# This is the seeding script for access & secret keys. alias EWallet.{CLI, Seeder} alias EWalletDB.{Account, Key} seeds = [ %{account_name: "master_account"}, %{account_name: "brand1"}, %{account_name: "brand2"}, %{account_name: "branch1"}, %{account_name: "branch2"}, %{account_name: "branch3"}, %{accoun...
31.111111
84
0.667857