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
081a82866383a0283257d3ba555b2850d1502f87
1,186
ex
Elixir
apps/debugger/lib/debugger/protocol.basic.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
912
2017-06-08T03:58:03.000Z
2021-09-06T03:42:07.000Z
apps/debugger/lib/debugger/protocol.basic.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
196
2017-06-09T23:32:16.000Z
2021-10-15T15:38:43.000Z
apps/debugger/lib/debugger/protocol.basic.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
78
2017-07-06T18:35:34.000Z
2020-04-12T08:10:45.000Z
defmodule ElixirLS.Debugger.Protocol.Basic do @moduledoc """ Macros for VS Code debug protocol messages These macros can be used for pattern matching or for creating messages corresponding to the request, response, and event types as specified in VS Code debug protocol. """ defmacro request(seq, command)...
23.72
94
0.573356
081a83433829ad3df86a685ed03c71027c52872b
1,466
ex
Elixir
clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.869565
188
0.755798
081a9727bf90129b194dd4e8aaf295816db316ff
735
exs
Elixir
lib/maps.exs
amiroff/learning_elixir
362eb71ac6af69877c96a3ad03213632a8ed85fc
[ "MIT" ]
null
null
null
lib/maps.exs
amiroff/learning_elixir
362eb71ac6af69877c96a3ad03213632a8ed85fc
[ "MIT" ]
null
null
null
lib/maps.exs
amiroff/learning_elixir
362eb71ac6af69877c96a3ad03213632a8ed85fc
[ "MIT" ]
null
null
null
# Maps are collection of key-value pairs like keyword lists %{ key => value, key2 => value2 } # Keys and values can be anything cities = %{ 34 => "İstanbul", 16 => "Bursa" } # If the key is an atom we can use shortcut colors = %{ :white => "fff", :black => "000" } # can be written as: colors = %{ white: "fff", black...
28.269231
83
0.64898
081ac383adedfcb7c8800c3c08e3aee9c26b9eb5
687
ex
Elixir
lib/edgedb/protocol/codecs/builtin/duration.ex
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
null
null
null
lib/edgedb/protocol/codecs/builtin/duration.ex
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
null
null
null
lib/edgedb/protocol/codecs/builtin/duration.ex
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
null
null
null
defmodule EdgeDB.Protocol.Codecs.Builtin.Duration do @moduledoc false use EdgeDB.Protocol.Codec alias EdgeDB.Protocol.Datatypes @days 0 @months 0 defbuiltinscalarcodec( type_name: "std::duration", type_id: Datatypes.UUID.from_string("00000000-0000-0000-0000-00000000010E"), type: Datatypes.In...
22.16129
80
0.71179
081ad895bf5068141ccee5a0dea0675a86138ad4
342
ex
Elixir
lib/advent_of_code/utils.ex
odarriba/advent_of_code_2021
658059cc83438c588d72fd6b30685f555cf8f7a2
[ "MIT" ]
5
2021-11-30T15:26:47.000Z
2021-12-25T19:31:44.000Z
lib/advent_of_code/utils.ex
odarriba/advent_of_code_2021
658059cc83438c588d72fd6b30685f555cf8f7a2
[ "MIT" ]
null
null
null
lib/advent_of_code/utils.ex
odarriba/advent_of_code_2021
658059cc83438c588d72fd6b30685f555cf8f7a2
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Utils do @moduledoc """ Module with utilities to be used by various exercises. """ @doc """ Function that receives a list of lists and transposes it: changes columns to be rows and vice versa. """ def transpose_matrix(matrix) do matrix |> List.zip() |> Enum.map(&Tuple...
21.375
78
0.678363
081adeb4f79f85794a0dd257b288db5537233a86
783
ex
Elixir
lib/chat/utils.ex
arjit95/elixir-chat
e4db9d37713edb8398017c8629b8064541c5a110
[ "MIT" ]
null
null
null
lib/chat/utils.ex
arjit95/elixir-chat
e4db9d37713edb8398017c8629b8064541c5a110
[ "MIT" ]
null
null
null
lib/chat/utils.ex
arjit95/elixir-chat
e4db9d37713edb8398017c8629b8064541c5a110
[ "MIT" ]
null
null
null
defmodule Chat.Utils do @doc """ Used for processing database reads in batches. Useful for pagination of data ```elixir # Reads messages in batches of 100 Chat.Utils.batch_ops(fn {skip, limit} -> # data fetched from db data end, 100) ``` """ @spec batch_ops(term(), number()) :: term() def...
23.727273
95
0.595147
081b22954267b827ca24be9c2201f84233ac5d6a
202
ex
Elixir
lib/inmana/restaurants/index.ex
andrermartins/inmana
19f36e3b7ab509ea72af2eff22981adf2ffcacab
[ "MIT" ]
null
null
null
lib/inmana/restaurants/index.ex
andrermartins/inmana
19f36e3b7ab509ea72af2eff22981adf2ffcacab
[ "MIT" ]
null
null
null
lib/inmana/restaurants/index.ex
andrermartins/inmana
19f36e3b7ab509ea72af2eff22981adf2ffcacab
[ "MIT" ]
null
null
null
defmodule Inmana.Restaurants.Index do alias Inmana.{Repo, Restaurant} def call() do Restaurant |> Repo.all() |> handle_index() end defp handle_index(result), do: {:ok, result} end
16.833333
46
0.663366
081b36f8a2661b1817f73d59d8c4eb3324d9a2d0
2,003
ex
Elixir
lib/challenge_gov/winners.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
lib/challenge_gov/winners.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
lib/challenge_gov/winners.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule ChallengeGov.Winners do @moduledoc """ Context for winners """ alias Ecto.Multi alias Stein.Storage alias ChallengeGov.Repo alias ChallengeGov.PhaseWinners.Winner def get(id) do Winner |> Repo.get(id) |> case do nil -> {:error, :no_winner} winner -> {...
23.564706
85
0.612581
081b37d5785d807debc6fb6594d759c462c4cb08
950
exs
Elixir
test/controllers/page_controller_test.exs
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2020-05-31T21:54:40.000Z
2020-05-31T21:54:40.000Z
test/controllers/page_controller_test.exs
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
64
2019-07-29T22:06:16.000Z
2022-03-28T23:46:58.000Z
test/controllers/page_controller_test.exs
babe-project/BABE
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2021-02-06T10:23:25.000Z
2021-02-06T10:23:25.000Z
defmodule PageControllerTest do @moduledoc false use Magpie.ConnCase @username Application.get_env(:magpie, :authentication)[:username] @password Application.get_env(:magpie, :authentication)[:password] defp using_basic_auth(conn, username \\ @username, password \\ @password) do header_content = "Basic ...
27.941176
92
0.669474
081b6c48ce0f9005b9cae3d710945ce74ca46cf0
442
ex
Elixir
lib/turbo_html/config.ex
drnikon/turbo_html
12e69abb6dc66d09c6a4332f037c75f126ad222b
[ "MIT" ]
null
null
null
lib/turbo_html/config.ex
drnikon/turbo_html
12e69abb6dc66d09c6a4332f037c75f126ad222b
[ "MIT" ]
null
null
null
lib/turbo_html/config.ex
drnikon/turbo_html
12e69abb6dc66d09c6a4332f037c75f126ad222b
[ "MIT" ]
null
null
null
defmodule Turbo.HTML.Config do @moduledoc false def view_style(application \\ :turbo_html) do config(:view_style, :uikit, application) end defp config(application) do Application.get_env(application, Turbo.HTML, []) end defp config(key, default, application) do application |> config() ...
21.047619
52
0.701357
081b989a26a07f0d1ad1f29bf93c566971a87e65
1,208
ex
Elixir
web/channels/user_socket.ex
mukilarasan101/todos-backend
b7b3e00aa17bb117ea031dd0cba1d14d3d298159
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
mukilarasan101/todos-backend
b7b3e00aa17bb117ea031dd0cba1d14d3d298159
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
mukilarasan101/todos-backend
b7b3e00aa17bb117ea031dd0cba1d14d3d298159
[ "MIT" ]
null
null
null
defmodule Todo.UserSocket do use Phoenix.Socket ## Channels # channel "rooms:*", Todo.RoomChannel channel "pushchanges:*", Todo.PushChangeChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the cli...
30.974359
83
0.702815
081bab3a97a985ba58eaceb7c8a799dafeae68b9
2,060
exs
Elixir
implements/rail-fence-cipher/rail_fence_cipher.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
implements/rail-fence-cipher/rail_fence_cipher.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
1
2018-06-19T18:59:41.000Z
2018-06-19T18:59:41.000Z
implements/rail-fence-cipher/rail_fence_cipher.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
defmodule RailFenceCipher do @doc """ Encode a given plaintext to the corresponding rail fence ciphertext """ @spec encode(String.t(), pos_integer) :: String.t() def encode(str, 1), do: str def encode(str, rails) do #len = String.length(str) pattern = Enum.concat(Enum.to_list( 0..(rails-1))...
32.1875
69
0.613592
081bbff4aacbc4124b2d20cb9a2c8ac4c822ef7e
14,724
exs
Elixir
test/phoenix/tracker/state_test.exs
Goose97/phoenix_pubsub
35e7c54a6f32babea1638f6c5b74575a66a2fe6f
[ "MIT" ]
524
2016-01-22T23:51:56.000Z
2022-03-26T00:33:43.000Z
test/phoenix/tracker/state_test.exs
Goose97/phoenix_pubsub
35e7c54a6f32babea1638f6c5b74575a66a2fe6f
[ "MIT" ]
136
2016-01-22T01:51:57.000Z
2022-03-23T11:13:56.000Z
test/phoenix/tracker/state_test.exs
Goose97/phoenix_pubsub
35e7c54a6f32babea1638f6c5b74575a66a2fe6f
[ "MIT" ]
132
2016-01-21T21:20:12.000Z
2022-03-22T09:33:12.000Z
defmodule Phoenix.Tracker.StateTest do use ExUnit.Case, async: true alias Phoenix.Tracker.{State} def sorted_clouds(clouds) do clouds |> Enum.flat_map(fn {_name, cloud} -> Enum.to_list(cloud) end) |> Enum.sort() end defp new(node, config) do State.new({node, 1}, :"#{node} #{config.test}") ...
35.651332
101
0.55868
081bd5a1397d00c08e0793f9a4ce63256135c56e
555
exs
Elixir
apps/bytepack/priv/repo/migrations/20200427155211_create_audit_logs.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack/priv/repo/migrations/20200427155211_create_audit_logs.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack/priv/repo/migrations/20200427155211_create_audit_logs.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule Bytepack.Repo.Migrations.CreateAuditLogs do use Ecto.Migration def change do create table(:audit_logs) do add :action, :string, null: false add :ip_address, :inet add :user_agent, :string add :user_email, :string add :params, :map, null: false add :user_id, referen...
27.75
62
0.672072
081bfc9206331503572b076085793ab88ccf02a2
2,915
ex
Elixir
clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/model/preferred_deal.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/model/preferred_deal.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/model/preferred_deal.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "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...
42.246377
279
0.720069
081c329e8dd04627cc3403a764d60f352bc587c7
168
exs
Elixir
config/config.exs
rogaz/thesis-phoenix
8ad24cdc7e24bf312139a527db5a3bf07e05820f
[ "MIT" ]
681
2016-06-21T20:49:21.000Z
2022-02-19T04:08:38.000Z
config/config.exs
rogaz/thesis-phoenix
8ad24cdc7e24bf312139a527db5a3bf07e05820f
[ "MIT" ]
125
2016-06-21T21:14:49.000Z
2020-12-12T20:15:48.000Z
config/config.exs
rogaz/thesis-phoenix
8ad24cdc7e24bf312139a527db5a3bf07e05820f
[ "MIT" ]
76
2016-09-06T03:40:55.000Z
2022-01-20T21:29:22.000Z
use Mix.Config config :thesis, store: Thesis.EctoStore config :thesis, Thesis.EctoStore, repo: MyApp.Repo config :thesis, env: Mix.env import_config "#{Mix.env}.exs"
21
50
0.755952
081c4763c37f6b895d7d643c3bf6d4aaa8bfdca0
1,065
ex
Elixir
backend/lib/backend_web/channels/user_socket.ex
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
backend/lib/backend_web/channels/user_socket.ex
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
3
2020-11-08T11:19:47.000Z
2021-05-07T17:20:05.000Z
backend/lib/backend_web/channels/user_socket.ex
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
defmodule BackendWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", BackendWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channe...
31.323529
83
0.696714
081c4a82e4c97bfc4e81910d35fe0c336c7441ad
1,117
exs
Elixir
challenge_1/elixir/joegotflow83/reverse/config/config.exs
rchicoli/2017-challenges
44f0b672e5dea34de1dde131b6df837d462f8e29
[ "Apache-2.0" ]
271
2017-01-01T22:58:36.000Z
2021-11-28T23:05:29.000Z
challenge_1/elixir/joegotflow83/reverse/config/config.exs
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
283
2017-01-01T23:26:05.000Z
2018-03-23T00:48:55.000Z
challenge_1/elixir/joegotflow83/reverse/config/config.exs
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
311
2017-01-01T22:59:23.000Z
2021-09-23T00:29:12.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.032258
73
0.751119
081c6e56722488e347d53754d88b168dbd9b3e57
17,613
ex
Elixir
clients/content/lib/google_api/content/v2/api/shippingsettings.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/shippingsettings.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/shippingsettings.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
42.440964
219
0.681485
081c7ee3edf7bb3fad5db8dc75a7eaf91c7941a2
21,284
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/event_tags.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/event_tags.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/event_tags.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...
48.153846
480
0.622627
081c8aaf27973832360116f7774f544a82ffaf18
2,250
ex
Elixir
example/lib/nested_web.ex
BrianPhilips/ecto_nested_changeset
4d16f2955c1e7c71e25685030f66aefeba5ce0fc
[ "MIT" ]
null
null
null
example/lib/nested_web.ex
BrianPhilips/ecto_nested_changeset
4d16f2955c1e7c71e25685030f66aefeba5ce0fc
[ "MIT" ]
null
null
null
example/lib/nested_web.ex
BrianPhilips/ecto_nested_changeset
4d16f2955c1e7c71e25685030f66aefeba5ce0fc
[ "MIT" ]
null
null
null
defmodule NestedWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use NestedWeb, :controller use NestedWeb, :view The definitions below will be executed for every view, controller, etc...
22.277228
78
0.68
081c900c676950c023e1da8a3de52d3e555d67a2
2,509
exs
Elixir
test/behaviour/handle_discover_test.exs
ityonemo/ExDhcp
9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b
[ "MIT" ]
null
null
null
test/behaviour/handle_discover_test.exs
ityonemo/ExDhcp
9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b
[ "MIT" ]
16
2019-12-16T04:56:50.000Z
2020-03-11T20:18:56.000Z
test/behaviour/handle_discover_test.exs
ityonemo/ex_dhcp
9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b
[ "MIT" ]
1
2019-12-13T19:04:50.000Z
2019-12-13T19:04:50.000Z
defmodule DhcpTest.Behaviour.HandleDiscoverTest do @moduledoc false use ExUnit.Case, async: true alias ExDhcp.Packet @moduletag [handle_discover: true, behaviour: true] # packet request example taken from wikipedia: # https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Discovery @dhcp_d...
28.511364
79
0.698685
081c94d6ec619293f6b18aed5329a2041fdab223
263
exs
Elixir
priv/repo/migrations/20181102234527_add_redirect_uris_to_games.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20181102234527_add_redirect_uris_to_games.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20181102234527_add_redirect_uris_to_games.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Grapevine.Repo.Migrations.AddRedirectUrisToGames do use Ecto.Migration def change do create table(:redirect_uris) do add(:game_id, references(:games), null: false) add(:uri, :text, null: false) timestamps() end end end
20.230769
61
0.688213
081cb3a0cd8528f09fbb3418c61e74dfb336edaf
2,513
exs
Elixir
priv/repo/migrations/20210920141807_add_paywall_infra.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
priv/repo/migrations/20210920141807_add_paywall_infra.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
priv/repo/migrations/20210920141807_add_paywall_infra.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Repo.Migrations.AddPaywallInfra do use Ecto.Migration import Ecto.Query, warn: false def change do execute "CREATE EXTENSION IF NOT EXISTS pgcrypto" create table(:api_keys) do add :status, :string, default: "enabled", null: false add :hint, :string add :hash, :string ...
30.277108
193
0.674095
081cbbb99d975cbb6a28526fea8c51102c87d287
2,657
ex
Elixir
lib/honu_web/storage.ex
elixir-honu/honu
e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c
[ "MIT" ]
1
2021-08-08T10:33:42.000Z
2021-08-08T10:33:42.000Z
lib/honu_web/storage.ex
elixir-honu/honu
e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c
[ "MIT" ]
null
null
null
lib/honu_web/storage.ex
elixir-honu/honu
e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c
[ "MIT" ]
null
null
null
defmodule HonuWeb.Storage do alias Honu.Attachments.Blob @type option :: {atom(), any()} @callback url(Blob.t(), [option]) :: {:ok, String.t()} | {:error, String.t()} # @callback url_for_direct_upload() :: {:ok, String.t()} | {:error, String.t()} # @callback headers_for_direct_upload() :: {:ok, map()} | {:e...
24.376147
86
0.614227
081ce4284f86b07675e4fd5bcb1927a9ef495fae
1,489
ex
Elixir
lib/bike_brigade/slack_api/payload_builder.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
28
2021-10-11T01:53:53.000Z
2022-03-24T17:45:55.000Z
lib/bike_brigade/slack_api/payload_builder.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
20
2021-10-21T08:12:31.000Z
2022-03-31T13:35:53.000Z
lib/bike_brigade/slack_api/payload_builder.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
null
null
null
defmodule BikeBrigade.SlackApi.PayloadBuilder do alias BikeBrigade.Messaging.SmsMessage alias BikeBrigadeWeb.Router.Helpers, as: Routes alias BikeBrigadeWeb.Endpoint def build(channel_id, %SmsMessage{rider: rider} = message) do text = "<#{Routes.rider_show_url(Endpoint, :show, rider.id)}|*#{rider.nam...
21.897059
109
0.47683
081cec047e0726c81c06a37eeed279788e6b9320
3,736
ex
Elixir
lib/conn.ex
starbuildr/gen_router
bcde92a4c51049ff6ba8664625fb7c6d2120d16e
[ "MIT" ]
2
2019-04-09T13:18:47.000Z
2021-11-03T21:09:16.000Z
lib/conn.ex
starbuildr/gen_router
bcde92a4c51049ff6ba8664625fb7c6d2120d16e
[ "MIT" ]
null
null
null
lib/conn.ex
starbuildr/gen_router
bcde92a4c51049ff6ba8664625fb7c6d2120d16e
[ "MIT" ]
null
null
null
defmodule GenRouter.Conn do @moduledoc """ Structure which represents connection with Telegram bot. Inspired by %Plug.Conn{}, adapted for bots. Attributes: * __skip__: system buffer to keep track of skipped scopes; * path: route to controller which should handle this object; * params: payload whic...
33.657658
95
0.647484
081d273a466e341d85476a8a6162b98828f276f5
3,524
ex
Elixir
lib/ex_twilio/jwt/access_token.ex
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
lib/ex_twilio/jwt/access_token.ex
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
lib/ex_twilio/jwt/access_token.ex
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
defmodule ExTwilio.JWT.AccessToken do @moduledoc """ A Twilio JWT access token, as described in the Twilio docs: https://www.twilio.com/docs/iam/access-tokens """ alias ExTwilio.JWT.Grant alias ExTwilio.Ext @enforce_keys [:account_sid, :api_key, :api_secret, :identity, :grants, :expires_in] defstruc...
30.643478
311
0.633371
081d6a948780259bfad1c97e4f9ffd07d8f58d76
4,143
ex
Elixir
clients/content/lib/google_api/content/v21/model/date_time.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v21/model/date_time.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v21/model/date_time.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...
58.352113
1,050
0.696597
081dd8592f802b8188607ff936dd5a4fb10bf002
1,514
ex
Elixir
test/support/data_case.ex
yammine/YAMM
c118eab5029b86c2caf24890dfffa8437684f5d1
[ "MIT" ]
null
null
null
test/support/data_case.ex
yammine/YAMM
c118eab5029b86c2caf24890dfffa8437684f5d1
[ "MIT" ]
null
null
null
test/support/data_case.ex
yammine/YAMM
c118eab5029b86c2caf24890dfffa8437684f5d1
[ "MIT" ]
null
null
null
defmodule YAMM.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done to the ...
27.035714
77
0.684941
081e1bf703d659ff4a271cfbd5f967a405371db3
69
exs
Elixir
backend/test/test_helper.exs
tykowale/faketwitter
8cb2f15bbc285d079daec153311b7f6fda167dd2
[ "MIT" ]
1
2016-03-20T21:38:39.000Z
2016-03-20T21:38:39.000Z
backend/test/test_helper.exs
tykowale/faketwitter
8cb2f15bbc285d079daec153311b7f6fda167dd2
[ "MIT" ]
null
null
null
backend/test/test_helper.exs
tykowale/faketwitter
8cb2f15bbc285d079daec153311b7f6fda167dd2
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(Backend.Repo, :manual)
13.8
53
0.782609
081e1f6bd8d223a48148f39bd0f7dbcaead7fdf2
221
ex
Elixir
test/support/biblio/publisher.ex
jan-sti/gim
1b8be6c2163577f375825170cc9b01674e59b646
[ "ECL-2.0", "Apache-2.0" ]
4
2020-01-21T09:15:24.000Z
2021-02-04T21:21:56.000Z
test/support/biblio/publisher.ex
jan-sti/gim
1b8be6c2163577f375825170cc9b01674e59b646
[ "ECL-2.0", "Apache-2.0" ]
2
2020-04-06T05:20:09.000Z
2020-06-09T09:56:20.000Z
test/support/biblio/publisher.ex
jan-sti/gim
1b8be6c2163577f375825170cc9b01674e59b646
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-22T08:44:35.000Z
2020-04-22T08:44:35.000Z
defmodule GimTest.Biblio.Publisher do @moduledoc false use Gim.Schema alias GimTest.Biblio.Book schema do property(:name, index: :unique) has_edges(:publisher_of, Book, reflect: :published_by) end end
18.416667
58
0.733032
081e33786508d04671d086ec68f4dae5f203650c
1,248
ex
Elixir
apps/extractor/test/support/test_steps.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/extractor/test/support/test_steps.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/extractor/test/support/test_steps.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule Test.Steps do defmodule CreateResponse do defstruct response: nil defimpl Extract.Step, for: CreateResponse do def execute(step, context) do {:ok, Extract.Context.set_response(context, step.response)} end end end defmodule SetVariable do defstruct [:name, :value] ...
22.285714
75
0.621795
081e840452bf987dd8a41151685348058e7f03df
1,051
ex
Elixir
servers/elixir/lib/iot_server.ex
fablabjoinville/workshop-iot
8aad0525765b11eaacbf4f93368f1858f2f7b4da
[ "MIT" ]
2
2018-03-20T11:30:43.000Z
2019-03-22T13:05:00.000Z
servers/elixir/lib/iot_server.ex
fablabjoinville/iot
8aad0525765b11eaacbf4f93368f1858f2f7b4da
[ "MIT" ]
null
null
null
servers/elixir/lib/iot_server.ex
fablabjoinville/iot
8aad0525765b11eaacbf4f93368f1858f2f7b4da
[ "MIT" ]
null
null
null
defmodule IotServer do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the Ecto repositor...
32.84375
87
0.716461
081e9a40c4cb09354c287148b49261990b4e8d87
4,197
ex
Elixir
hexdocs__pm__phoenix__up_and_running.html/hello/lib/hello/cms.ex
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
hexdocs__pm__phoenix__up_and_running.html/hello/lib/hello/cms.ex
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
hexdocs__pm__phoenix__up_and_running.html/hello/lib/hello/cms.ex
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
defmodule Hello.CMS do @moduledoc """ The CMS context. """ import Ecto.Query, warn: false alias Hello.Repo alias Hello.Accounts alias Hello.CMS.{Page, Author} @doc """ Returns the list of pages. ## Examples iex> list_pages() [%Page{}, ...] """ def list_pages do Repo.all(from...
18.090517
64
0.584703
081ea9102e8f47e634d813e0c8f57deb07e903a8
552
ex
Elixir
assignment_3/lib/vrify_web/views/changeset_view.ex
woutdp/assignment-vrify
c022117c87a2fff63f87a594848ecd58738567a0
[ "MIT" ]
null
null
null
assignment_3/lib/vrify_web/views/changeset_view.ex
woutdp/assignment-vrify
c022117c87a2fff63f87a594848ecd58738567a0
[ "MIT" ]
null
null
null
assignment_3/lib/vrify_web/views/changeset_view.ex
woutdp/assignment-vrify
c022117c87a2fff63f87a594848ecd58738567a0
[ "MIT" ]
null
null
null
defmodule VRIFYWeb.ChangesetView do use VRIFYWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `VRIFYWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changeset, &transla...
27.6
65
0.735507
081ec27b138633b3172376d96b0d052c61e08d54
6,397
ex
Elixir
lib/type/http.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:11.000Z
2020-08-27T18:43:11.000Z
lib/type/http.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
null
null
null
lib/type/http.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:21.000Z
2020-08-27T18:43:21.000Z
# Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved. use Croma defmodule Antikythera.Http do defmodule Method do use Croma.SubtypeOfAtom, values: [:get, :post, :put, :patch, :delete, :options, :connect, :trace, :head] @all [:get, :post, :put, :patch, :delete, :options, :connect, :trace, :head] ...
33.668421
108
0.536189
081f07c9ba11021c2c8c23d0bb024306965fa4b6
633
ex
Elixir
lib/ratchet_wrench/session.ex
hirocaster/ratchet_wrench
67b056cf25b9f3001dd87e167db68fd5d911089e
[ "MIT" ]
8
2020-05-29T03:22:02.000Z
2022-03-18T12:16:49.000Z
lib/ratchet_wrench/session.ex
hirocaster/ratchet_wrench
67b056cf25b9f3001dd87e167db68fd5d911089e
[ "MIT" ]
4
2020-07-06T08:11:18.000Z
2020-08-14T11:10:10.000Z
lib/ratchet_wrench/session.ex
hirocaster/ratchet_wrench
67b056cf25b9f3001dd87e167db68fd5d911089e
[ "MIT" ]
4
2020-05-26T02:47:00.000Z
2021-05-03T15:26:12.000Z
defmodule RatchetWrench.Session do def create(connection) do case GoogleApi.Spanner.V1.Api.Projects.spanner_projects_instances_databases_sessions_create( connection, RatchetWrench.database() ) do {:ok, session} -> {:ok, session} {:error, reason} -> {:error, reason.body} ...
28.772727
96
0.64297
081f21082410813db5378e8b13196f6e30982fe7
104
exs
Elixir
daniel/prog_elix/ch10/longest_line.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/prog_elix/ch10/longest_line.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/prog_elix/ch10/longest_line.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
IO.puts( File.read!("/usr/share/dict/words") |> String.split() |> Enum.max_by(&String.length/1) )
17.333333
37
0.625
081f2bb08c4626859ebdedb20fd1f6d1ac8d1c50
1,185
ex
Elixir
lib/err/generic_error.ex
leandrocp/err
ca044a9451b8ece82d177d36376c647fb78d464c
[ "MIT" ]
8
2020-10-01T06:57:56.000Z
2021-11-09T04:30:20.000Z
lib/err/generic_error.ex
leandrocp/err
ca044a9451b8ece82d177d36376c647fb78d464c
[ "MIT" ]
1
2020-09-27T14:37:55.000Z
2020-09-27T14:37:55.000Z
lib/err/generic_error.ex
leandrocp/err
ca044a9451b8ece82d177d36376c647fb78d464c
[ "MIT" ]
null
null
null
defmodule Err.GenericError do @moduledoc """ A generic error composed by: * mod: origin of the error, used for tracking and also to format the error message (optional). * reason: an atom or string to represent the error (required). * changeset: store the changeset that caused the error (optional). ...
27.55814
100
0.655696
081f30c403d4f6a466c9002ff628935e4c363162
942
ex
Elixir
lib/planga/chat/converse/persistence/behaviour.ex
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
37
2018-07-13T14:08:16.000Z
2021-04-09T15:00:22.000Z
lib/planga/chat/converse/persistence/behaviour.ex
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
9
2018-07-16T15:24:39.000Z
2021-09-01T14:21:20.000Z
lib/planga/chat/converse/persistence/behaviour.ex
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
3
2018-10-05T20:19:25.000Z
2019-12-05T00:30:01.000Z
defmodule Planga.Chat.Converse.Persistence.Behaviour do @callback fetch_messages_by_conversation_id( conversation_id :: integer, sent_before_datetime :: DateTime.t() ) :: [%Planga.Chat.Message{}] | no_return() @callback find_or_create_conversation_by_remote_id!( ...
36.230769
87
0.585987
081f43c18a8325440e7694b8fc3c5d2e64cc918f
18,180
ex
Elixir
test/support/factory.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
2
2018-03-26T08:56:21.000Z
2018-07-02T22:34:51.000Z
test/support/factory.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2018-03-21T03:40:50.000Z
2018-07-10T06:33:10.000Z
test/support/factory.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
null
null
null
defmodule GroupherServer.Support.Factory do @moduledoc """ This module defines the mock data/func to be used by tests that require insert some mock data to db. for example you can db_insert(:user) to insert user into db """ import Helper.Utils, only: [done: 1] import GroupherServer.CMS.Helper.Matcher ...
30.452261
208
0.633663
081f533da6539af16b5c4d3c331ee21603800219
2,913
exs
Elixir
lib/elixir/test/elixir/access_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
1
2017-07-25T21:46:25.000Z
2017-07-25T21:46:25.000Z
lib/elixir/test/elixir/access_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/access_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
1
2017-07-25T21:46:48.000Z
2017-07-25T21:46:48.000Z
Code.require_file "test_helper.exs", __DIR__ defmodule AccessTest do use ExUnit.Case, async: true doctest Access # Test nil at compilation time does not fail # and that @config[:foo] has proper precedence. @config nil nil = @config[:foo] @config [foo: :bar] :bar = @config[:foo] @mod :lists [1, ...
32.366667
142
0.590457
081f54be76a372387eee891c9554961a47e8599e
4,087
exs
Elixir
learning/programming_elixir/chapter_22.exs
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
2
2020-01-20T20:15:20.000Z
2020-02-27T11:08:42.000Z
learning/programming_elixir/chapter_22.exs
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
learning/programming_elixir/chapter_22.exs
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
# Linking Modules: Behavio(u)rs and Use ## Tracing Method Calls defmodule Tracer do defmacro def(definition, do: _content) do IO.inspect definition quote do: {} end end defmodule Test do import Kernel, except: [def: 2] import Tracer, only: [def: 2] def puts_sum_three(a,b,c), do: IO.inspect(a+b+c...
22.832402
84
0.60044
081f74a19eeb2f1dc93bc0708c39e3d5cefc31bd
2,469
exs
Elixir
test/xdr/transactions/operations/set_trust_line_flags_result_code_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
test/xdr/transactions/operations/set_trust_line_flags_result_code_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
test/xdr/transactions/operations/set_trust_line_flags_result_code_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
defmodule StellarBase.XDR.Operations.SetTrustLineFlagsResultCodeTest do use ExUnit.Case alias StellarBase.XDR.Operations.SetTrustLineFlagsResultCode @codes [ :SET_TRUST_LINE_FLAGS_SUCCESS, :SET_TRUST_LINE_FLAGS_MALFORMED, :SET_TRUST_LINE_FLAGS_NO_TRUST_LINE, :SET_TRUST_LINE_FLAGS_CANT_REVOKE, ...
32.064935
95
0.650466
081f85db4c6b2f31e200a7017ce34fedd8c1addf
1,267
ex
Elixir
server/test/support/conn_case.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
3
2021-05-30T07:56:32.000Z
2021-08-06T12:03:15.000Z
server/test/support/conn_case.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
5
2020-05-06T13:05:52.000Z
2020-12-04T20:59:41.000Z
server/test/support/conn_case.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
null
null
null
defmodule PencilSpaceServerWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Fina...
30.166667
79
0.737964
081f9e22ad7d4a7f6ed273f5ea9732c328c616e5
456
ex
Elixir
examples/ct_ecto/lib/ct/application.ex
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
16
2019-09-08T14:31:36.000Z
2022-02-14T19:50:23.000Z
examples/ct_ecto/lib/ct/application.ex
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
6
2019-09-14T06:03:41.000Z
2021-05-16T00:53:40.000Z
examples/ct_ecto/lib/ct/application.ex
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
7
2019-09-13T16:39:45.000Z
2021-05-11T06:15:04.000Z
defmodule CT.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 = [ CT.Repo, CT.MyCTE ] # See https://hexdocs.pm/elixir/Supervisor.html # for other strate...
22.8
56
0.695175
081fa3d98531bde142953cd3d5a6c8eeb748c1dc
340
ex
Elixir
lib/supabase_surface/components/icons/icon_gitlab.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
5
2021-06-08T08:02:43.000Z
2022-02-09T23:13:46.000Z
lib/supabase_surface/components/icons/icon_gitlab.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_gitlab.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
1
2021-07-14T05:20:31.000Z
2021-07-14T05:20:31.000Z
defmodule SupabaseSurface.Components.Icons.IconGitlab do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.gitlab(width: icon_size, height: icon_size)} </IconContainer...
22.666667
64
0.717647
081fb5e2c42b68673e2d90203ba1cdc1f6133001
1,424
exs
Elixir
config/dev.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
config/dev.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
config/dev.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
import Config config :logger, backends: [:console, Sentry.LoggerBackend] config :omg, ethereum_events_check_interval_ms: 500, coordinator_eth_height_check_interval_ms: 1_000 config :omg_child_chain, block_queue_eth_height_check_interval_ms: 1_000 config :omg_child_chain_rpc, environment: :dev config :phoeni...
24.135593
83
0.77177
081fbac5222f073bae7dacb319098cc1d53787ab
2,805
ex
Elixir
lib/asciinema_web/router.ex
jrschumacher/asciinema-server
5f04b0c10de13da0925e28f8fd65210698501bb2
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/router.ex
jrschumacher/asciinema-server
5f04b0c10de13da0925e28f8fd65210698501bb2
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/router.ex
jrschumacher/asciinema-server
5f04b0c10de13da0925e28f8fd65210698501bb2
[ "Apache-2.0" ]
null
null
null
defmodule AsciinemaWeb.Router do use AsciinemaWeb, :router use Plug.ErrorHandler defp handle_errors(_conn, %{reason: %Ecto.NoResultsError{}}), do: nil defp handle_errors(_conn, %{reason: %Phoenix.NotAcceptableError{}}), do: nil use Sentry.Plug pipeline :browser do plug :accepts, ["html"] plug :fetc...
27.23301
89
0.673797
081fd7ea38cdb8308f51d6ba760ab2753df782e8
3,234
ex
Elixir
lib/autoalias/conflicts.ex
ARtoriouSs/autoalias
7589f0321d936777b01378b8db602317e3514ac4
[ "MIT" ]
5
2020-03-05T17:30:08.000Z
2020-10-24T18:18:24.000Z
lib/autoalias/conflicts.ex
ARtoriouSs/autoalias
7589f0321d936777b01378b8db602317e3514ac4
[ "MIT" ]
null
null
null
lib/autoalias/conflicts.ex
ARtoriouSs/autoalias
7589f0321d936777b01378b8db602317e3514ac4
[ "MIT" ]
null
null
null
defmodule Autoalias.Conflicts do @moduledoc """ Provides mechanism for resolving module conflicts """ @doc """ Accepts list of modules and returns list of modules with resolved conflicts. Conflicts solving performs recursively till there will be no conflicts at all. If we have several modules with the s...
30.509434
112
0.66945
081fdf105272cf21764992556c30b5552767eecb
5,516
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/publisher_profile_api_proto.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/publisher_profile_api_proto.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/publisher_profile_api_proto.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 ...
47.551724
200
0.674583
081fef5a5a0aeef0c3a707da33aa035c9b5d2cf3
570
ex
Elixir
apps/buzzcms/lib/buzzcms/schema/entry_type_taxonomy.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
apps/buzzcms/lib/buzzcms/schema/entry_type_taxonomy.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
41
2020-02-12T07:53:14.000Z
2020-03-30T02:18:14.000Z
apps/buzzcms/lib/buzzcms/schema/entry_type_taxonomy.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
defmodule Buzzcms.Schema.EntryTypeTaxonomy do use Ecto.Schema import Ecto.Changeset @primary_key false schema "entry_type_taxonomy" do belongs_to :entry_type, Buzzcms.Schema.EntryType belongs_to :taxonomy, Buzzcms.Schema.Taxonomy field :position, :integer end def changeset(entity, params \\ %...
27.142857
68
0.738596
08200060864e447730ab6b1653512b0974c148f8
5,748
ex
Elixir
lib/bamboo/adapters/mailgun_adapter.ex
speeddragon/bamboo
b7bc9df132c7710ac3344be677b22a156e4eecd3
[ "MIT" ]
null
null
null
lib/bamboo/adapters/mailgun_adapter.ex
speeddragon/bamboo
b7bc9df132c7710ac3344be677b22a156e4eecd3
[ "MIT" ]
null
null
null
lib/bamboo/adapters/mailgun_adapter.ex
speeddragon/bamboo
b7bc9df132c7710ac3344be677b22a156e4eecd3
[ "MIT" ]
null
null
null
defmodule Bamboo.MailgunAdapter do @moduledoc """ Sends email using Mailgun's API. Use this adapter to send emails through Mailgun's API. Requires that an API key and a domain are set in the config. ## Example config # In config/config.exs, or config.prod.exs, etc. config :my_app, MyApp.Mailer,...
30.252632
108
0.65501
08201fb0a5c6f6d67e60cd692c3163a6e66e4d0c
97
exs
Elixir
test/oauth2_example_test.exs
castingclouds/rc4gho
fdbd6665aa233370c857d63b1d6a22459e1833ce
[ "MIT" ]
null
null
null
test/oauth2_example_test.exs
castingclouds/rc4gho
fdbd6665aa233370c857d63b1d6a22459e1833ce
[ "MIT" ]
null
null
null
test/oauth2_example_test.exs
castingclouds/rc4gho
fdbd6665aa233370c857d63b1d6a22459e1833ce
[ "MIT" ]
null
null
null
defmodule RocketTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
12.125
23
0.649485
08207137c353f633b8597c803cfe3fa43cef7e05
11,160
ex
Elixir
lib/plug/builder.ex
shadowfacts/plug
c27823e537df26557a1facc3febad5ebe5f1e415
[ "Apache-2.0" ]
null
null
null
lib/plug/builder.ex
shadowfacts/plug
c27823e537df26557a1facc3febad5ebe5f1e415
[ "Apache-2.0" ]
null
null
null
lib/plug/builder.ex
shadowfacts/plug
c27823e537df26557a1facc3febad5ebe5f1e415
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Builder do @moduledoc """ Conveniences for building plugs. This module can be `use`-d into a module in order to build a plug pipeline: defmodule MyApp do use Plug.Builder plug Plug.Logger plug :hello, upper: true # A function from another module can be pl...
27.555556
87
0.648656
08207a13b2b072a4a098d6e7558da8f27b165651
5,821
ex
Elixir
clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/publisher_profile.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/publisher_profile.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/publisher_profile.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
59.397959
534
0.708298
0820999438137802bda87e2bf4fd9eb8320c8156
2,831
ex
Elixir
lib/absinthe_metrics.ex
xosdy/absinthe-metrics
7267e251d1a4a63a8c47fd945143a6063f402b45
[ "MIT" ]
null
null
null
lib/absinthe_metrics.ex
xosdy/absinthe-metrics
7267e251d1a4a63a8c47fd945143a6063f402b45
[ "MIT" ]
null
null
null
lib/absinthe_metrics.ex
xosdy/absinthe-metrics
7267e251d1a4a63a8c47fd945143a6063f402b45
[ "MIT" ]
null
null
null
defmodule AbsintheMetrics do alias Absinthe.Resolution @behaviour Absinthe.Middleware @callback instrument( object :: atom, field :: atom, result :: any, time :: non_neg_integer, resolution :: Resolution.t() ) :: any ...
25.736364
89
0.52349
08209dec67a917c7db6cd3174944a240a31cd29d
1,359
exs
Elixir
mix.exs
zookzook/hocon
f99655cbbccb5fb2a5d2acff85a697a1c89fc1fe
[ "Apache-2.0" ]
14
2019-11-29T16:29:15.000Z
2021-08-17T20:32:28.000Z
mix.exs
zookzook/hocon
f99655cbbccb5fb2a5d2acff85a697a1c89fc1fe
[ "Apache-2.0" ]
5
2019-12-02T21:06:27.000Z
2019-12-19T08:26:01.000Z
mix.exs
zookzook/hocon
f99655cbbccb5fb2a5d2acff85a697a1c89fc1fe
[ "Apache-2.0" ]
2
2020-03-23T16:56:46.000Z
2022-01-17T20:23:25.000Z
defmodule Hocon.MixProject do use Mix.Project @version "0.1.8" def project do [ app: :hocon, version: @version, name: "hocon", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [docs: :d...
23.033898
134
0.586461
0820a9068803b680b912b20126682590c2883e15
23,884
ex
Elixir
lib/ash/changeset/changeset.ex
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
null
null
null
lib/ash/changeset/changeset.ex
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
null
null
null
lib/ash/changeset/changeset.ex
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
null
null
null
defmodule Ash.Changeset do @moduledoc """ Changesets are used to create and update data in Ash. Create a changeset with `create/2` or `update/2`, and alter the attributes and relationships using the functions provided in this module. Nothing in this module actually incurs changes in a data layer. To commit ...
32.232119
103
0.63733
0820c95f754e2679e08f5f79a4ace35aa5c2c1ba
1,223
ex
Elixir
web/controllers/api/user_controller.ex
robot-overlord/todo-example
2877bf3dc94e857a576fdc922c040c6af2f68ec0
[ "MIT" ]
1
2017-07-20T17:41:13.000Z
2017-07-20T17:41:13.000Z
web/controllers/api/user_controller.ex
robot-overlord/todo-example
2877bf3dc94e857a576fdc922c040c6af2f68ec0
[ "MIT" ]
null
null
null
web/controllers/api/user_controller.ex
robot-overlord/todo-example
2877bf3dc94e857a576fdc922c040c6af2f68ec0
[ "MIT" ]
null
null
null
defmodule Todo.API.UserController do alias Todo.User use Todo.Web, :controller @spec index(Plug.Conn.t(), map()) :: Plug.Conn.t() def index(conn, _params), do: render(conn, "index.json", users: Repo.all(User)) @spec show(Plug.Conn.t(), map()) :: Plug.Conn.t() def show(conn, %{"id" => id}) do user = ...
23.519231
81
0.55601
0820e9ffbe48578f29cf39fde6dc1ce52c8aa780
6,419
ex
Elixir
lib/rservex/connection.ex
Siel/Rservex
a74a526edb7a38ee15c2be63c726f0196eb7b9f4
[ "Apache-2.0" ]
1
2020-11-27T16:26:58.000Z
2020-11-27T16:26:58.000Z
lib/rservex/connection.ex
Siel/Rservex
a74a526edb7a38ee15c2be63c726f0196eb7b9f4
[ "Apache-2.0" ]
1
2020-04-30T05:31:10.000Z
2020-04-30T05:31:10.000Z
lib/rservex/connection.ex
Siel/Rservex
a74a526edb7a38ee15c2be63c726f0196eb7b9f4
[ "Apache-2.0" ]
null
null
null
defmodule Rservex.Connection do @cmd_eval 3 @dt_string 4 # define CMD_RESP 0x10000 /* all responses have this flag set */ # define RESP_OK (CMD_RESP|0x0001) /* command succeeded; returned parameters depend on the command issued */ # define RESP_ERR (CMD_RESP|0x0002) /* command failed, check stats code attach...
31.777228
211
0.649945
08210c198db6b3d05e28ed42a55b528190f25302
324
exs
Elixir
mix.exs
pascalwengerter/ProjectEuler100
5e553839b6dc3c85521bd979fd6eaa1d02b83fff
[ "MIT" ]
1
2021-02-27T10:57:27.000Z
2021-02-27T10:57:27.000Z
mix.exs
pascalwengerter/ProjectEuler100
5e553839b6dc3c85521bd979fd6eaa1d02b83fff
[ "MIT" ]
null
null
null
mix.exs
pascalwengerter/ProjectEuler100
5e553839b6dc3c85521bd979fd6eaa1d02b83fff
[ "MIT" ]
null
null
null
defmodule ProjectEuler.Mix do use Mix.Project def project do [ app: :example, version: "0.1.0", elixir: "~> 1.1", start_permanent: Mix.env() == :prod, deps: deps() ] end def application do [ extra_applications: [:logger] ] end defp deps do [] end ...
13.5
42
0.537037
0821716e804edf797c98bf11ebacbf486be0c8dc
125
exs
Elixir
test/test_helper.exs
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
59
2020-01-20T20:32:31.000Z
2022-02-11T07:25:45.000Z
test/test_helper.exs
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
33
2020-01-20T19:38:09.000Z
2021-11-19T10:08:25.000Z
test/test_helper.exs
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
12
2020-01-20T21:11:14.000Z
2021-05-10T19:56:47.000Z
ExUnit.start() Mox.defmock(Diff.StorageMock, for: Diff.Storage) Mox.defmock(Diff.Package.StoreMock, for: Diff.Package.Store)
31.25
60
0.792
0821d3014a41f0092a504122016e9fe4b3ebc3f8
4,127
exs
Elixir
lib/elixir/test/elixir/kernel/fn_test.exs
ma2gedev/elixir
3f4410ff687fdb63016b063e3af74caecb5b20c0
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/fn_test.exs
ma2gedev/elixir
3f4410ff687fdb63016b063e3af74caecb5b20c0
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/fn_test.exs
ma2gedev/elixir
3f4410ff687fdb63016b063e3af74caecb5b20c0
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule Kernel.FnTest do use ExUnit.Case, async: true import CompileAssertion test "arithmetic constants on match" do assert (fn 1 + 2 -> :ok end).(3) == :ok assert (fn 1 - 2 -> :ok end).(-1) == :ok assert (fn -1 -> :ok end).(-1) == :ok assert (...
28.659722
98
0.559002
0821e29cf77a4bb5b9d057c2df66db5c819b3f4a
93
exs
Elixir
test/test_helper.exs
Testmetrics/testmetrics_elixir_client
729c6beadba92630a31d8c6d9177ebbf41d16430
[ "MIT" ]
1
2019-09-04T22:47:57.000Z
2019-09-04T22:47:57.000Z
test/test_helper.exs
Testmetrics/testmetrics_elixir_client
729c6beadba92630a31d8c6d9177ebbf41d16430
[ "MIT" ]
null
null
null
test/test_helper.exs
Testmetrics/testmetrics_elixir_client
729c6beadba92630a31d8c6d9177ebbf41d16430
[ "MIT" ]
null
null
null
ExUnit.configure(formatters: [ExUnit.CLIFormatter, TestmetricsElixirClient]) ExUnit.start()
23.25
76
0.827957
0821fc2083aca1bd25fa72279bbe0f718a2c2898
450
exs
Elixir
test/bitlog_web/views/error_view_test.exs
Soonad/Bitlog
17f41b591169dca7412b9790e8f20abf11b46313
[ "MIT" ]
2
2019-12-03T10:38:38.000Z
2019-12-04T23:52:11.000Z
test/bitlog_web/views/error_view_test.exs
moonad/Bitlog
17f41b591169dca7412b9790e8f20abf11b46313
[ "MIT" ]
null
null
null
test/bitlog_web/views/error_view_test.exs
moonad/Bitlog
17f41b591169dca7412b9790e8f20abf11b46313
[ "MIT" ]
null
null
null
defmodule BitlogWeb.ErrorViewTest do use BitlogWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(BitlogWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end test "renders 500.json" ...
28.125
91
0.68
082215c9c213f9e18fe262097c559e0e9632260e
1,005
ex
Elixir
lib/allais_paradox/participant.ex
kazuwo/course_evaluation_questionnaire
72f01051900b68a0239b3a87e38981bae83aefcb
[ "MIT" ]
null
null
null
lib/allais_paradox/participant.ex
kazuwo/course_evaluation_questionnaire
72f01051900b68a0239b3a87e38981bae83aefcb
[ "MIT" ]
null
null
null
lib/allais_paradox/participant.ex
kazuwo/course_evaluation_questionnaire
72f01051900b68a0239b3a87e38981bae83aefcb
[ "MIT" ]
null
null
null
defmodule CourseEvaluationQuestionnaire.Participant do alias CourseEvaluationQuestionnaire.Actions # Actions def fetch_contents(data, id) do Actions.update_participant_contents(data, id) end def next_question(data, id, selected) do data = data |> put_in([:participants, id, :sequence], selected["next...
27.916667
82
0.677612
08221f8feee02a33cbe490f3fd294d9bbe380f43
1,702
ex
Elixir
lib/csv_formatter.ex
TenTakano/BtcProfits
29eb0fb494995cab51a929725cf76264f69bd5a2
[ "MIT" ]
null
null
null
lib/csv_formatter.ex
TenTakano/BtcProfits
29eb0fb494995cab51a929725cf76264f69bd5a2
[ "MIT" ]
null
null
null
lib/csv_formatter.ex
TenTakano/BtcProfits
29eb0fb494995cab51a929725cf76264f69bd5a2
[ "MIT" ]
null
null
null
defmodule BtcProfits.CsvFormatter do @time_zone_diff_seconds 60 * 60 * 9 def import_profit_sheet(path) do case import_lines(path, "\r\n") do {:ok, [_ | content]} -> result = Enum.map(content, &format_profit_sheet/1) |> Enum.reject(&(String.contains?(&1.type, "Withdraw") || &1....
23.315068
94
0.556404
08222ce695c095a6f7cc7389874b3923226eec07
10,925
ex
Elixir
lib/mix/tasks/hex.package.ex
sorentwo/hex
92e71162bdf1d7b17a4c641b900c81868ccab56c
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/hex.package.ex
sorentwo/hex
92e71162bdf1d7b17a4c641b900c81868ccab56c
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/hex.package.ex
sorentwo/hex
92e71162bdf1d7b17a4c641b900c81868ccab56c
[ "Apache-2.0" ]
1
2021-07-26T18:20:06.000Z
2021-07-26T18:20:06.000Z
defmodule Mix.Tasks.Hex.Package do use Mix.Task alias Hex.Registry.Server, as: Registry @shortdoc "Fetches or diffs packages" @default_diff_command "git diff --no-index __PATH1__ __PATH2__" @doc false def default_diff_command(), do: @default_diff_command @moduledoc """ Fetches or diffs packages. ...
30.179558
96
0.663341
08224a45e19aff856bdd30a46c3dbf5e9c66b2bd
652
ex
Elixir
lib/std_json_io/application.ex
chvanikoff/std_json_io
973dbfc21dfa28fe88533dcf918e017c5f76aaaf
[ "MIT" ]
1
2017-08-24T19:54:27.000Z
2017-08-24T19:54:27.000Z
lib/std_json_io/application.ex
chvanikoff/std_json_io
973dbfc21dfa28fe88533dcf918e017c5f76aaaf
[ "MIT" ]
2
2016-10-25T01:46:47.000Z
2018-04-23T20:31:48.000Z
lib/std_json_io/application.ex
chvanikoff/std_json_io
973dbfc21dfa28fe88533dcf918e017c5f76aaaf
[ "MIT" ]
10
2016-07-20T12:34:53.000Z
2018-08-22T21:37:09.000Z
defmodule StdJsonIo.Application do use Application def start(_type, _args) do import Supervisor.Spec, warn: false config = Application.get_all_env(:std_json_io) pool_options = [ name: {:local, StdJsonIo.Pool}, worker_module: StdJsonIo.Worker, size: Keyword.get(config, :pool_size, 15),...
31.047619
98
0.68865
08225353ad378d61b82bbcafabb91826adbd8b5e
709
exs
Elixir
sample/mix.exs
GameEssa/ElixirProject
8f5fef5256719ef2ebcfb77c7bb7eb70687ece4f
[ "MIT" ]
null
null
null
sample/mix.exs
GameEssa/ElixirProject
8f5fef5256719ef2ebcfb77c7bb7eb70687ece4f
[ "MIT" ]
null
null
null
sample/mix.exs
GameEssa/ElixirProject
8f5fef5256719ef2ebcfb77c7bb7eb70687ece4f
[ "MIT" ]
null
null
null
defmodule Sample.MixProject do use Mix.Project def project do [ app: :sample, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps(), escript: escript() ] end # Run "mix help compile.app" to learn about applications. def application...
20.257143
87
0.576869
08225c8c3ecb8d161f1d1cadb5b5b8c1f4f0fd9a
1,937
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/dsse_hint.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/dsse_hint.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/dsse_hint.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...
41.212766
449
0.762003
08228e5b61b2c6d6a372258027a67eebf4038c11
2,068
ex
Elixir
lib/nerves_runtime/log/kmsg_parser.ex
pancho-villa/nerves_runtime
2e88d55edb680de596c1405678556133adb4f9a9
[ "Apache-2.0" ]
49
2017-03-02T03:38:32.000Z
2022-02-24T12:11:40.000Z
lib/nerves_runtime/log/kmsg_parser.ex
pancho-villa/nerves_runtime
2e88d55edb680de596c1405678556133adb4f9a9
[ "Apache-2.0" ]
83
2017-03-09T09:09:14.000Z
2022-02-09T11:13:27.000Z
lib/nerves_runtime/log/kmsg_parser.ex
pancho-villa/nerves_runtime
2e88d55edb680de596c1405678556133adb4f9a9
[ "Apache-2.0" ]
21
2017-02-28T16:55:32.000Z
2021-07-29T15:54:13.000Z
defmodule Nerves.Runtime.Log.KmsgParser do @moduledoc """ Functions for parsing kmsg strings """ alias Nerves.Runtime.Log.SyslogParser @doc """ Parse out the kmsg facility, severity, and message (including the timestamp and host) from a kmsg-formatted string. See https://elixir.bootlin.com/linux/late...
30.865672
105
0.623791
0822ba6e73dbeb30554c8568aaaed553c947ac17
880
exs
Elixir
test/ex_polygon/rest/crypto/snapshot_gainers_losers_test.exs
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
test/ex_polygon/rest/crypto/snapshot_gainers_losers_test.exs
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
test/ex_polygon/rest/crypto/snapshot_gainers_losers_test.exs
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
defmodule ExPolygon.Rest.Crypto.SnapshotGainersLosersTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney doctest ExPolygon.Rest.HTTPClient setup_all do HTTPoison.start() :ok end @api_key System.get_env("POLYGON_API_KEY") test ".query returns an ok tuple and a li...
30.344828
98
0.722727
0822da400e7445865bd19f5f13eed484d54e0a86
583
exs
Elixir
lib/euler_004.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
8
2015-11-04T05:03:05.000Z
2022-01-25T19:34:46.000Z
lib/euler_004.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
null
null
null
lib/euler_004.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
null
null
null
defmodule EulerFour do @doc """ A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. """ def solve do Enum.map(tuples, fn({a,b}) -> a * b end) ...
26.5
83
0.667238
0822e18a92317f106af0b9ff2e333eeaad95f56a
686
ex
Elixir
apps/ello_stream/lib/ello_stream/key.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_stream/lib/ello_stream/key.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_stream/lib/ello_stream/key.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Stream.Key do alias Ello.Core.Discovery.Category alias Ello.Core.Contest.ArtistInvite @category_key "categories:v1" @artist_invite_key "artist_invite:v1" def find(:global_recent), do: "all_post_firehose" def find(:global_shop), do: "global_shop_stream:v1" def find(%ArtistInvite{id: id}), ...
40.352941
87
0.702624
08230707012435c172de65a59b03b06f94327f67
24
ex
Elixir
lib/authit.ex
StephaneRob/authit
e5b3f637676ba7b16aa0c8d28c29f73d368bc3c4
[ "BSD-2-Clause" ]
1
2021-09-28T15:29:15.000Z
2021-09-28T15:29:15.000Z
lib/authit.ex
StephaneRob/authit
e5b3f637676ba7b16aa0c8d28c29f73d368bc3c4
[ "BSD-2-Clause" ]
null
null
null
lib/authit.ex
StephaneRob/authit
e5b3f637676ba7b16aa0c8d28c29f73d368bc3c4
[ "BSD-2-Clause" ]
null
null
null
defmodule Authit do end
8
19
0.833333
08231350fb51b50799dd6c3a245125c0aab3367a
3,048
exs
Elixir
test/oli_web/live/products_test.exs
wyeworks/oli-torus
146ee79a7e315e57bdf3c7b6fd4f7dbe73610647
[ "MIT" ]
null
null
null
test/oli_web/live/products_test.exs
wyeworks/oli-torus
146ee79a7e315e57bdf3c7b6fd4f7dbe73610647
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
test/oli_web/live/products_test.exs
wyeworks/oli-torus
146ee79a7e315e57bdf3c7b6fd4f7dbe73610647
[ "MIT" ]
null
null
null
defmodule OliWeb.ProductsLiveTest do use ExUnit.Case use OliWeb.ConnCase import Phoenix.LiveViewTest import Oli.Factory alias Oli.Delivery.Sections defp live_view_details_route(product_slug) do Routes.live_path(OliWeb.Endpoint, OliWeb.Products.DetailsView, product_slug) end defp create_product(_...
31.42268
111
0.680774
08232844b1241a788d298e1ce9f08f66f982b3ee
3,606
ex
Elixir
lib/toml_elixir/mapper.ex
nikolauska/toml_elixir
f978a4866a726efb0c628edf9fbe7fd235c47855
[ "MIT" ]
4
2017-05-21T11:47:36.000Z
2017-12-27T10:55:41.000Z
lib/toml_elixir/mapper.ex
nikolauska/toml_elixir
f978a4866a726efb0c628edf9fbe7fd235c47855
[ "MIT" ]
2
2017-07-18T16:19:38.000Z
2018-02-19T19:15:36.000Z
lib/toml_elixir/mapper.ex
nikolauska/toml_elixir
f978a4866a726efb0c628edf9fbe7fd235c47855
[ "MIT" ]
null
null
null
defmodule TomlElixir.Mapper do @moduledoc """ Module for transforming toml list to map format """ alias TomlElixir.Error @doc """ Transform TOML list to map format """ @spec parse(list) :: map def parse([]), do: %{} def parse(toml) when is_list(toml), do: to_map(toml, {[], %{}}) @spec to_map(lis...
35.009709
91
0.599556
08233297913d491a01bd60907b13537aaa133327
2,532
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/metro.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/metro.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/metro.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...
38.953846
174
0.67891
08234e95297de00a3dc34ee4d645cef302db4841
365
ex
Elixir
lib/yatzy/scoring/sixes.ex
idabmat/yatzy
fb1cc1f13670a19f3541a3b1df15e9897ffcfae3
[ "MIT" ]
3
2020-04-23T14:38:39.000Z
2020-05-03T17:20:32.000Z
lib/yatzy/scoring/sixes.ex
idabmat/yatzy
fb1cc1f13670a19f3541a3b1df15e9897ffcfae3
[ "MIT" ]
null
null
null
lib/yatzy/scoring/sixes.ex
idabmat/yatzy
fb1cc1f13670a19f3541a3b1df15e9897ffcfae3
[ "MIT" ]
null
null
null
defmodule Yatzy.Scoring.Sixes do @moduledoc """ Sixes: The sum of all dice showing the number 6. """ alias Yatzy.Roll defstruct roll: %Roll{}, name: "Sixes", description: "The sum of all dice showind the number 6." defimpl Yatzy.Scoring.Score do def execute(%{roll: roll}), do:...
22.8125
69
0.643836
082351ec191c0ff43592efd09508a32075bd2bce
8,218
ex
Elixir
lib/aws/generated/finspacedata.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/finspacedata.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/finspacedata.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Finspacedata do @moduledoc """ The FinSpace APIs let you take actions inside the FinSpace. """ alias AWS.Client alias AWS.Request def metadata do %AWS.ServiceMetadata{ abbr...
20.191646
102
0.574349
0823553927b1302f32e4c273a1daf3b74b527315
1,724
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/bounding_poly.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/bounding_poly.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/bounding_poly.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.48
136
0.729698
08235d909750f8377593cc2572308897f940e24c
1,087
exs
Elixir
mix.exs
mazurka/example-class-roll
50e55eca6e0e3dce5214d1bb9b03a0421c0ed879
[ "MIT" ]
null
null
null
mix.exs
mazurka/example-class-roll
50e55eca6e0e3dce5214d1bb9b03a0421c0ed879
[ "MIT" ]
null
null
null
mix.exs
mazurka/example-class-roll
50e55eca6e0e3dce5214d1bb9b03a0421c0ed879
[ "MIT" ]
null
null
null
defmodule ClassRoll.Mixfile do use Mix.Project def project do [app: :class_roll, version: "0.1.0", elixir: "~> 1.0", compilers: Mix.compilers, deps: deps, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod] end #### # Applications #### def application ...
20.903846
54
0.50046
0823a41b48d111369739cca56ab63c715c8a0ee1
2,242
exs
Elixir
mylist.exs
lebm/MyElixirTests
4221012296c913179cdda278290263bfc1141454
[ "Apache-2.0" ]
null
null
null
mylist.exs
lebm/MyElixirTests
4221012296c913179cdda278290263bfc1141454
[ "Apache-2.0" ]
null
null
null
mylist.exs
lebm/MyElixirTests
4221012296c913179cdda278290263bfc1141454
[ "Apache-2.0" ]
null
null
null
# Lists e recurson examples defmodule MyList do def len([]), do: 0 def len([_head|tail]), do: 1 + len(tail) def square([]), do: [] def square([head|tail]), do: [ head*head | square(tail) ] # I don´t if this definition is correct/useful, bu its is cool! And it works! def map([], _func), do: [] de...
32.970588
86
0.557538
0823c079fe37983b10dd73980ac537cf50ff0bf9
1,167
ex
Elixir
lib/safira/contest/redeem.ex
cesium/safira
07a02f54f9454db1cfb5a510da68f40c47dcd916
[ "MIT" ]
40
2018-07-04T19:13:45.000Z
2021-12-16T23:53:43.000Z
lib/safira/contest/redeem.ex
cesium/safira
07a02f54f9454db1cfb5a510da68f40c47dcd916
[ "MIT" ]
94
2018-07-25T13:13:39.000Z
2022-02-15T04:09:42.000Z
lib/safira/contest/redeem.ex
cesium/safira
07a02f54f9454db1cfb5a510da68f40c47dcd916
[ "MIT" ]
5
2018-11-26T17:19:03.000Z
2021-02-23T08:09:37.000Z
defmodule Safira.Contest.Redeem do use Ecto.Schema import Ecto.Changeset alias Safira.Contest.Badge alias Safira.Accounts.Attendee alias Safira.Accounts.Manager schema "redeems" do belongs_to(:attendee, Attendee, foreign_key: :attendee_id, type: :binary_id) belongs_to(:manager, Manager) belongs...
26.522727
84
0.681234
0823c121ce5fe5b53bff2c61e6071a2082eacdda
4,285
ex
Elixir
lib/models/relationship.ex
heikkari/dashium
d3f58033efac81e7f747091f2810caf2ce8f45ab
[ "MIT" ]
2
2021-09-05T23:23:00.000Z
2021-09-11T16:26:11.000Z
lib/models/relationship.ex
heikkari/dashium
d3f58033efac81e7f747091f2810caf2ce8f45ab
[ "MIT" ]
null
null
null
lib/models/relationship.ex
heikkari/dashium
d3f58033efac81e7f747091f2810caf2ce8f45ab
[ "MIT" ]
null
null
null
defmodule Models.Relationship do defstruct [ :user_ids, # 0 = sender, 1 = receiver. :status, # 0 = friend request, 1 = friends, 2 = blocked. ] @spec delete(integer, integer) :: boolean def delete(sender, receiver) when is_integer(sender) and is_integer(receiver) do query = %{ user_ids: %{ "$i...
30.607143
102
0.633139
0823c25fa3401cfbaca8baf089241a5466bb2ea5
2,989
ex
Elixir
lib/blockchain_api/schema/transaction.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
17
2019-11-03T03:02:41.000Z
2022-01-13T17:03:32.000Z
lib/blockchain_api/schema/transaction.ex
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
5
2019-11-07T23:26:53.000Z
2020-11-24T21:45:35.000Z
lib/blockchain_api/schema/transaction.ex
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
11
2019-12-04T07:03:16.000Z
2022-01-13T17:03:50.000Z
defmodule BlockchainAPI.Schema.Transaction do use Ecto.Schema import Ecto.Changeset alias BlockchainAPI.{Schema.Block, Schema.Transaction, Util} @fields [:id, :hash, :type, :block_height] @derive {Phoenix.Param, key: :hash} @derive {Jason.Encoder, only: @fields} schema "transactions" do field :type,...
29.594059
86
0.71462
0823dcb51cd0d3081467660931e9b014de5450d0
756
ex
Elixir
apps/graphql/lib/graphql/resolvers/settlement.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/graphql/lib/graphql/resolvers/settlement.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/graphql/lib/graphql/resolvers/settlement.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule GraphQL.Resolvers.Settlement do @moduledoc false import GraphQL.Resolvers.Helpers.Load, only: [response_to_ecto_struct: 2] alias Absinthe.Relay.Connection alias Core.Uaddresses alias Core.Uaddresses.Settlement def list_settlements(%{filter: filter, order_by: order_by} = args, _) do with {:o...
37.8
100
0.734127
08243df7cab0f2edc194bdc7885e630b98900079
460
ex
Elixir
lib/ex_aws/s3/direct_upload/date_util.ex
anylabs/ex_aws_s3_direct_upload
745418e02be321f0e2db181f76fee7a8bcf14ed6
[ "Apache-2.0" ]
1
2019-05-01T18:39:34.000Z
2019-05-01T18:39:34.000Z
lib/ex_aws/s3/direct_upload/date_util.ex
anylabs/ex_aws_s3_direct_upload
745418e02be321f0e2db181f76fee7a8bcf14ed6
[ "Apache-2.0" ]
4
2019-12-06T17:28:43.000Z
2020-04-10T14:56:16.000Z
lib/ex_aws/s3/direct_upload/date_util.ex
anylabs/ex_aws_s3_direct_upload
745418e02be321f0e2db181f76fee7a8bcf14ed6
[ "Apache-2.0" ]
3
2018-11-06T23:07:22.000Z
2019-10-16T15:11:10.000Z
defmodule ExAws.S3.DirectUpload.DateUtil do @moduledoc """ """ def today_datetime do %{DateTime.utc_now | hour: 0, minute: 0, second: 0, microsecond: {0,0}} |> DateTime.to_iso8601(:basic) end def today_date do Date.utc_today |> Date.to_iso8601(:basic) end def expiration_datetime do ...
18.4
75
0.63913
0824410e8499e61f8603577e8d9421d258a238a1
2,184
ex
Elixir
clients/dns/lib/google_api/dns/v1/model/dns_key_spec.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/model/dns_key_spec.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/model/dns_key_spec.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...
39
390
0.708333
0824606a2802ec7961c0f6cc163174bbde1e043c
1,237
exs
Elixir
examples/petstore/mix.exs
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
143
2020-12-01T06:53:36.000Z
2022-03-24T02:33:01.000Z
examples/petstore/mix.exs
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
2
2020-11-30T05:30:42.000Z
2020-12-17T06:33:17.000Z
examples/petstore/mix.exs
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
12
2020-12-07T01:22:17.000Z
2020-12-27T12:49:39.000Z
defmodule Petstore.MixProject do use Mix.Project def project do [ app: :petstore, version: "0.1.0", elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), compilers: Mix.compilers(), start_permanent: Mix.env() == :prod, deps: deps() ] end # Configuration ...
23.788462
87
0.584479
082469846ffe777c8254db2ec7c419c557a1497c
10,934
ex
Elixir
apps/emulation/lib/combase.ex
226wyj/Raft
b882839579bc70b5501e7f1d6fe41d3119162df4
[ "MIT" ]
null
null
null
apps/emulation/lib/combase.ex
226wyj/Raft
b882839579bc70b5501e7f1d6fe41d3119162df4
[ "MIT" ]
null
null
null
apps/emulation/lib/combase.ex
226wyj/Raft
b882839579bc70b5501e7f1d6fe41d3119162df4
[ "MIT" ]
null
null
null
defmodule EmulatorError do defexception message: "Error in emulation" end defmodule ComBase do @moduledoc """ ComBase emulates a distribtued application connected over a potentially asynchronous network. """ defstruct( registration: nil, rev_registration: nil, fuzz_chain: nil, times: nil, ...
25.310185
83
0.588988
0824dbbe10f9673c41cb53be152d0d2bc00c7bfb
10,836
ex
Elixir
clients/content/lib/google_api/content/v2/api/datafeedstatuses.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/datafeedstatuses.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v2/api/datafeedstatuses.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...
47.113043
310
0.63732
08251d84488923a0265d479df2780ae95371db7f
5,504
exs
Elixir
.credo.exs
r-icarus/torch
c5c94001b91fc459d727b18fa137b6936a65918d
[ "MIT" ]
null
null
null
.credo.exs
r-icarus/torch
c5c94001b91fc459d727b18fa137b6936a65918d
[ "MIT" ]
null
null
null
.credo.exs
r-icarus/torch
c5c94001b91fc459d727b18fa137b6936a65918d
[ "MIT" ]
null
null
null
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
40.470588
81
0.650436
0825240443a9e64bbfd82bdbba353b586c1ace37
3,434
ex
Elixir
lib/csv/decoding/parser.ex
parkerduckworth/csv
7a3545fe1d16bd76d30751b66b611f636127c4e0
[ "MIT" ]
null
null
null
lib/csv/decoding/parser.ex
parkerduckworth/csv
7a3545fe1d16bd76d30751b66b611f636127c4e0
[ "MIT" ]
null
null
null
lib/csv/decoding/parser.ex
parkerduckworth/csv
7a3545fe1d16bd76d30751b66b611f636127c4e0
[ "MIT" ]
null
null
null
defmodule CSV.Decoding.Parser do alias CSV.EscapeSequenceError alias CSV.StrayQuoteError @moduledoc ~S""" The CSV Parser module - parses tokens coming from the lexer and parses them into a row of fields. """ @doc """ Parses tokens by receiving them from a sender / lexer and sending them to the given...
26.015152
80
0.604543
08253cf9e503034110e9d565a9e575a85e9c453f
3,298
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_list_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...
46.450704
194
0.702547
08255d610024e9333339a71a240123eaf2154e39
5,784
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/paragraph_style_suggestion_state.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/docs/lib/google_api/docs/v1/model/paragraph_style_suggestion_state.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/docs/lib/google_api/docs/v1/model/paragraph_style_suggestion_state.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
55.615385
202
0.713347
0825897a22ff76bca1025fe10d95c5cb89849690
816
ex
Elixir
lib/addict/interactors/login.ex
mainframe2/addict
aa70768f20939bf1f4d36a680240cb32f36e2a79
[ "MIT" ]
null
null
null
lib/addict/interactors/login.ex
mainframe2/addict
aa70768f20939bf1f4d36a680240cb32f36e2a79
[ "MIT" ]
null
null
null
lib/addict/interactors/login.ex
mainframe2/addict
aa70768f20939bf1f4d36a680240cb32f36e2a79
[ "MIT" ]
null
null
null
defmodule Addict.Interactors.Login do @moduledoc """ Verifies if the `password` is correct for the provided `email` Returns `{:ok, user}` or `{:error, [errors]}` """ alias Addict.Interactors.{GetUserByEmail, VerifyPassword} def call(%{"email" => email, "password" => password}, configs \\ Addict.Configs) ...
34
85
0.650735