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
ff5404872ac1446722827e913f83679d6f3b1bda
2,647
ex
Elixir
lib/instagram_clone_web/live/user_live/settings.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
1
2021-08-18T13:01:26.000Z
2021-08-18T13:01:26.000Z
lib/instagram_clone_web/live/user_live/settings.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
null
null
null
lib/instagram_clone_web/live/user_live/settings.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
null
null
null
defmodule InstagramCloneWeb.UserLive.Settings do use InstagramCloneWeb, :live_view alias InstagramClone.Accounts alias InstagramClone.Accounts.User alias InstagramClone.Uploaders.Avatar @extension_whitelist ~w(.jpg .jpeg .png) @impl true def mount(_params, session, socket) do socket = assign_defaul...
31.141176
90
0.668682
ff541d1d2e0990f385e97f9e2ea969cc1f1a73c0
972
ex
Elixir
lib/phoenix14_base/application.ex
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
1
2019-03-28T05:47:39.000Z
2019-03-28T05:47:39.000Z
lib/phoenix14_base/application.ex
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
null
null
null
lib/phoenix14_base/application.ex
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
1
2020-05-23T09:20:53.000Z
2020-05-23T09:20:53.000Z
defmodule Phoenix14Base.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Ecto repository Phoenix14Bas...
30.375
72
0.726337
ff544765f6189ca6c133b166046f87c96cf7642d
538
exs
Elixir
mix.exs
andreihod/fipex
6612fb9b0df5acc7876c66f88ff525d9a03b1d5d
[ "MIT" ]
null
null
null
mix.exs
andreihod/fipex
6612fb9b0df5acc7876c66f88ff525d9a03b1d5d
[ "MIT" ]
null
null
null
mix.exs
andreihod/fipex
6612fb9b0df5acc7876c66f88ff525d9a03b1d5d
[ "MIT" ]
null
null
null
defmodule Fipex.MixProject do use Mix.Project def project do [ app: :fipex, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applica...
17.933333
59
0.539033
ff54526c4e550103257b62e75e7eb5aa810e30c8
1,594
ex
Elixir
day06/puzzle.ex
mikehelmick/AdventOfCode2019
9981b85b25eb9f04351ce5657ff07fd067ce1231
[ "Apache-2.0" ]
null
null
null
day06/puzzle.ex
mikehelmick/AdventOfCode2019
9981b85b25eb9f04351ce5657ff07fd067ce1231
[ "Apache-2.0" ]
null
null
null
day06/puzzle.ex
mikehelmick/AdventOfCode2019
9981b85b25eb9f04351ce5657ff07fd067ce1231
[ "Apache-2.0" ]
null
null
null
defmodule Puzzle do def update_entry(nil, val), do: {nil, [val]} def update_entry(l, val), do: {l, l ++ [val]} # builds incoming and outgoing edges representing the orbital graph def build_edges([], o_map, i_map, allobjs), do: {o_map, i_map, MapSet.to_list(allobjs)} def build_edges([line | rest], o_map, i_m...
34.652174
93
0.658093
ff545c60f9c16157e5acba9f857f716ced8dab7e
434
exs
Elixir
elixir/randomFunctions/fact.exs
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
1
2017-10-16T03:00:50.000Z
2017-10-16T03:00:50.000Z
elixir/randomFunctions/fact.exs
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
null
null
null
elixir/randomFunctions/fact.exs
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
null
null
null
defmodule Factorial do # Simple recursive function def fac(0), do: 1 def fac(n) when n > 0, do: n * fac(n - 1) # Tail recursive function def fac_tail(0), do: 1 def fac_tail(n), do: fac_tail(n, 1) def fac_tail(1, acc), do: acc def fac_tail(n, acc) when n > 1, do: fac_tail(n - 1, acc * n) # Using E...
27.125
63
0.624424
ff5460d3b90875899b0ba646034389e24c2b5684
1,998
ex
Elixir
lib/vex/validators/inclusion.ex
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
560
2015-01-12T00:07:27.000Z
2022-02-07T03:21:44.000Z
lib/vex/validators/inclusion.ex
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
55
2015-02-16T18:59:57.000Z
2021-12-23T12:34:25.000Z
lib/vex/validators/inclusion.ex
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
63
2015-02-12T03:49:50.000Z
2021-12-12T00:11:01.000Z
defmodule Vex.Validators.Inclusion do @moduledoc """ Ensure a value is a member of a list of values. ## Options * `:in`: The list. * `:message`: Optional. A custom error message. May be in EEx format and use the fields described in "Custom Error Messages," below. The list can be provided in plac...
31.21875
121
0.621622
ff546b9d3bc159c0c85b759a1dc5efe9ded53c3a
8,283
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent.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...
48.723529
219
0.7053
ff54b668f614e4a29bcdfd3c1431719f28f278bb
527
ex
Elixir
lib/ex_oapi/parser/context/xml.ex
mnussbaumer/ex_oapi
f5eb610283a7f92a69e6266effc0dc4e2c497b61
[ "MIT" ]
null
null
null
lib/ex_oapi/parser/context/xml.ex
mnussbaumer/ex_oapi
f5eb610283a7f92a69e6266effc0dc4e2c497b61
[ "MIT" ]
null
null
null
lib/ex_oapi/parser/context/xml.ex
mnussbaumer/ex_oapi
f5eb610283a7f92a69e6266effc0dc4e2c497b61
[ "MIT" ]
null
null
null
defmodule ExOAPI.Parser.V3.Context.XML do use TypedEctoSchema import Ecto.Changeset @list_of_fields [ :name, :namespace, :prefix, :attribute, :wrapped ] @primary_key false typed_embedded_schema do field(:name, :string) field(:namespace, :string) field(:prefix, :string) ...
18.821429
50
0.664137
ff54c3ab4efbca90a94eae7e188c542ac51c2afc
15,722
ex
Elixir
clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.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...
43.430939
196
0.616397
ff54d1ea5a2deefbb216e124fe414c016fac1d03
4,329
ex
Elixir
lib/slack/group.ex
jclem/slack_ex
e2376cea87c35d14cc31dc545ff8e99106dee28c
[ "MIT" ]
21
2016-06-28T04:03:55.000Z
2020-01-19T01:51:11.000Z
lib/slack/group.ex
jclem/slack_ex
e2376cea87c35d14cc31dc545ff8e99106dee28c
[ "MIT" ]
5
2016-06-28T04:34:14.000Z
2019-12-09T20:09:12.000Z
lib/slack/group.ex
jclem/slack_ex
e2376cea87c35d14cc31dc545ff8e99106dee28c
[ "MIT" ]
6
2016-06-28T04:27:08.000Z
2020-04-22T11:07:03.000Z
defmodule Slack.Group do @moduledoc """ Functions for working with private channels (groups) """ @base "groups" use Slack.Request @doc """ Archive a private channel. https://api.slack.com/methods/groups.archive ## Examples Slack.Group.archive(client, channel: "G1234567890") """ @spec...
21.430693
80
0.678448
ff54e56d56e518cbd4ba5431c3e6928d20b837f8
2,774
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/system_parameters.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/service_user/lib/google_api/service_user/v1/model/system_parameters.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/system_parameters.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.675
130
0.692862
ff550dce7bfb237abbe189333b608a1089e91a50
5,313
ex
Elixir
core/sup_tree_gear/gear_log_writer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
core/sup_tree_gear/gear_log_writer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
core/sup_tree_gear/gear_log_writer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.GearLog.Writer do @moduledoc """ A `GenServer` that writes log messages from each gear's `Logger` process into a gzipped file. This `GenServer` is spawned per gear; each of which resides in the gear's supervision...
36.641379
126
0.697911
ff55178721242741ccf153fe1dafc8797b86d42c
1,042
exs
Elixir
test/ex_changerate/supported_symbols.exs
81dr/ex_changerate
b5df0d1aeac755d2826d000b08e23077ca7a0c62
[ "0BSD" ]
2
2020-06-07T09:29:23.000Z
2020-11-16T01:59:40.000Z
test/ex_changerate/supported_symbols.exs
81dr/ex_changerate
b5df0d1aeac755d2826d000b08e23077ca7a0c62
[ "0BSD" ]
null
null
null
test/ex_changerate/supported_symbols.exs
81dr/ex_changerate
b5df0d1aeac755d2826d000b08e23077ca7a0c62
[ "0BSD" ]
null
null
null
defmodule ExChangerate.SupportedSymbolsTest do @moduledoc false use ExUnit.Case, async: true test "valid request: defaults" do {:ok, state} = ExChangerate.SupportedSymbols.get() {:ok, symbols} = Map.fetch(state, "symbols") nok_code = Map.get(symbols, "NOK") |> Map.get("code") aud_description = M...
31.575758
71
0.683301
ff552d6fdf5f49eaabd6897e78f2d6c674898968
1,975
exs
Elixir
mix.exs
zabirauf/ex_microsoftbot
ebfe0ed7f8ba1e9717117918e653d7e818942f90
[ "MIT" ]
35
2016-05-11T02:34:27.000Z
2021-04-29T07:34:11.000Z
mix.exs
zabirauf/ex_microsoftbot
ebfe0ed7f8ba1e9717117918e653d7e818942f90
[ "MIT" ]
27
2016-07-10T18:32:25.000Z
2021-09-29T07:00:22.000Z
mix.exs
zabirauf/ex_microsoftbot
ebfe0ed7f8ba1e9717117918e653d7e818942f90
[ "MIT" ]
23
2016-05-10T18:53:13.000Z
2021-06-25T22:04:21.000Z
defmodule ExMicrosoftBot.Mixfile do use Mix.Project def project do [ app: :ex_microsoftbot, version: "3.0.0", elixir: "~> 1.8", description: description(), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, package: package(), deps: deps(), ...
25.986842
83
0.563544
ff5554a386982f5c2217823112af3ce227e6a1dc
6,081
exs
Elixir
lib/mix/test/mix/cli_test.exs
Papillon6814/elixir
65ee884105a52951a6a46077dec19a83f182f7bf
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/cli_test.exs
Papillon6814/elixir
65ee884105a52951a6a46077dec19a83f182f7bf
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/cli_test.exs
Papillon6814/elixir
65ee884105a52951a6a46077dec19a83f182f7bf
[ "Apache-2.0" ]
1
2020-11-25T02:22:55.000Z
2020-11-25T02:22:55.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule Mix.CLITest do use MixTest.Case @moduletag :tmp_dir test "default task" do in_fixture("no_mixfile", fn -> File.write!("mix.exs", """ defmodule P do use Mix.Project def project, do: [app: :p, version: "0.1.0"] end ...
26.788546
95
0.564052
ff55719a7ac0563e75c1d75842ae4f35e252c925
6,343
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/containeranalysis_google_devtools_cloudbuild_v1_build_options.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/containeranalysis_google_devtools_cloudbuild_v1_build_options.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/containeranalysis_google_devtools_cloudbuild_v1_build_options.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...
59.280374
573
0.727889
ff557bb306675762b3536b2d03168873e2b25e9a
1,760
exs
Elixir
test/ex_plasma/typed_data/transaction_test.exs
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
6
2019-11-15T13:34:24.000Z
2020-03-02T11:38:01.000Z
test/ex_plasma/typed_data/transaction_test.exs
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
34
2019-11-20T03:33:22.000Z
2020-05-27T18:40:10.000Z
test/ex_plasma/typed_data/transaction_test.exs
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
6
2020-06-02T19:00:36.000Z
2021-08-19T11:06:33.000Z
defmodule ExPlasma.TypedData.TransactionTest do @moduledoc false use ExUnit.Case, async: true alias ExPlasma.Transaction describe "encode/1" do test "builds a eip712 transaction object" do encoded = ExPlasma.TypedData.encode(%Transaction{tx_type: 1}) assert encoded == [ <<25, 1...
44
319
0.55625
ff5589a9973054bdef270e114991f7e11931d750
625
ex
Elixir
lib/base58.ex
JohnPochta/CryptoBase58Elixir
501d59f3f018639868dc492288690695f85d1d1b
[ "MIT" ]
null
null
null
lib/base58.ex
JohnPochta/CryptoBase58Elixir
501d59f3f018639868dc492288690695f85d1d1b
[ "MIT" ]
null
null
null
lib/base58.ex
JohnPochta/CryptoBase58Elixir
501d59f3f018639868dc492288690695f85d1d1b
[ "MIT" ]
null
null
null
defmodule Base58 do @alphabet ~c(123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz) @doc """ Encodes the given integer. """ def encode(x), do: _encode(x, []) @doc """ Decodes the given string. """ def decode(enc), do: _decode(enc |> to_charlist, 0) defp _encode(0, []), do: [@alphabet |> ...
25
74
0.6224
ff558ce81ee0a9ec3e0d0941e88bb35d530ad1de
100
exs
Elixir
apps/evm/test/evm/operation/sha3_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/evm/test/evm/operation/sha3_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/evm/test/evm/operation/sha3_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule EVM.Operation.Sha3Test do use ExUnit.Case, async: true doctest EVM.Operation.Sha3 end
20
35
0.79
ff55918012fcb28c230f12ccf42e05b6a9d7bbad
704
ex
Elixir
web/gettext.ex
AgtLucas/jean-grey
2aa3de025de67124c0d2bc6621f7795b547011e5
[ "MIT" ]
null
null
null
web/gettext.ex
AgtLucas/jean-grey
2aa3de025de67124c0d2bc6621f7795b547011e5
[ "MIT" ]
null
null
null
web/gettext.ex
AgtLucas/jean-grey
2aa3de025de67124c0d2bc6621f7795b547011e5
[ "MIT" ]
null
null
null
defmodule JeanGrey.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import JeanGrey.Gettext # Simple translation gettext "Here is the st...
28.16
71
0.678977
ff559230c58d9fec9053d91bb10f097a3cf42a69
650
exs
Elixir
mix.exs
mark-b-kauffman/bblearn_rest_client
63fb0da9b8027e385df927f43ec5e9ea4a517570
[ "BSD-3-Clause" ]
null
null
null
mix.exs
mark-b-kauffman/bblearn_rest_client
63fb0da9b8027e385df927f43ec5e9ea4a517570
[ "BSD-3-Clause" ]
null
null
null
mix.exs
mark-b-kauffman/bblearn_rest_client
63fb0da9b8027e385df927f43ec5e9ea4a517570
[ "BSD-3-Clause" ]
null
null
null
defmodule BblearnRestClient.MixProject do use Mix.Project def project do [ app: :bblearn_rest_client, version: "0.1.0", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do...
20.967742
88
0.569231
ff55a9353883233e7cbf7e9d5aabddf5c0278e85
1,852
exs
Elixir
server/apps/boardr/mix.exs
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2021-04-08T17:26:27.000Z
2021-04-08T17:26:27.000Z
server/apps/boardr/mix.exs
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2022-02-13T05:50:46.000Z
2022-02-13T05:50:46.000Z
server/apps/boardr/mix.exs
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
null
null
null
defmodule Boardr.MixProject do use Mix.Project def project do [ app: :boardr, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", elixirc_paths: elixirc_paths(Mix.env()), lockfile: "../../mix.lock", elixi...
26.084507
79
0.544816
ff55ae2d21767a8a9d5db3e133a9c6f2ef4232a8
2,417
ex
Elixir
apps/bot/lib/bot/schedulers/github_issues.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
48
2017-08-21T02:08:16.000Z
2022-01-05T14:02:56.000Z
apps/bot/lib/bot/schedulers/github_issues.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
68
2017-08-21T02:17:32.000Z
2017-11-09T15:56:27.000Z
apps/bot/lib/bot/schedulers/github_issues.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
26
2017-08-21T04:28:22.000Z
2018-12-09T14:20:29.000Z
defmodule Bot.Scheduler.GitHubIssues do @moduledoc """ GitHub Issues scheduler checks for new and closed issues on tracked repos """ use GenServer alias Bot.GitHub alias Data.{Opportunities, Projects, TaskSupervisor} # milliseconds @five_minutes 300_000 @projects_per_check 5 # seconds @two_hour...
25.442105
97
0.674803
ff55c908b26f762927c91697ea807e0ad8cc7ffd
330
ex
Elixir
server/lib/realtime_web/channels/auth/channels_authorization.ex
gustavoarmoa/realtime
e8075779ed19bfb8c22541dc1e5e8ea032d5b823
[ "Apache-2.0" ]
4,609
2019-10-25T12:28:35.000Z
2022-03-31T23:05:06.000Z
server/lib/realtime_web/channels/auth/channels_authorization.ex
gustavoarmoa/realtime
e8075779ed19bfb8c22541dc1e5e8ea032d5b823
[ "Apache-2.0" ]
223
2019-09-27T03:21:45.000Z
2022-03-29T23:04:03.000Z
server/lib/realtime_web/channels/auth/channels_authorization.ex
gustavoarmoa/realtime
e8075779ed19bfb8c22541dc1e5e8ea032d5b823
[ "Apache-2.0" ]
187
2019-10-27T07:44:15.000Z
2022-03-29T19:34:52.000Z
defmodule RealtimeWeb.ChannelsAuthorization do alias RealtimeWeb.JwtVerification def authorize(token) when is_binary(token) do token |> clean_token() |> JwtVerification.verify() end def authorize(_token), do: :error defp clean_token(token) do Regex.replace(~r/\s|\n/, URI.decode(token), "") ...
20.625
51
0.706061
ff55ce12af5f977cade809a990d37169c5802ac1
305
ex
Elixir
lib/trento/domain/sap_system/events/sap_system_health_changed.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-22T16:59:34.000Z
2022-03-22T16:59:34.000Z
lib/trento/domain/sap_system/events/sap_system_health_changed.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
24
2022-03-22T16:45:25.000Z
2022-03-31T13:00:02.000Z
lib/trento/domain/sap_system/events/sap_system_health_changed.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-30T14:16:16.000Z
2022-03-30T14:16:16.000Z
defmodule Trento.Domain.Events.SapSystemHealthChanged do @moduledoc """ This event is emitted when the SAP System health has changed. """ use Trento.Event defevent do field :sap_system_id, Ecto.UUID field :health, Ecto.Enum, values: [:passing, :warning, :critical, :unknown] end end
23.461538
79
0.721311
ff562e31d62acaf70d3d952e3a688178665d2aab
327
ex
Elixir
lib/resty/associations/belongs_to.ex
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
3
2018-11-17T11:11:47.000Z
2019-09-13T16:13:43.000Z
lib/resty/associations/belongs_to.ex
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
38
2018-11-11T01:28:41.000Z
2019-04-01T21:28:02.000Z
lib/resty/associations/belongs_to.ex
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
1
2019-01-10T12:41:48.000Z
2019-01-10T12:41:48.000Z
defmodule Resty.Associations.BelongsTo do defstruct [:related, :attribute, :foreign_key, {:eager_load, true}] @moduledoc false @doc false def fetch(association, resource) do case Map.get(resource, association.foreign_key) do nil -> nil id -> Resty.Repo.find(association.related, id) end e...
23.357143
69
0.703364
ff56411e40e2ad4ee79f55b530586657b19272c5
1,178
exs
Elixir
mix.exs
sabiwara/enumancer
b0ff768ada92b4bfc68c774257177c114c68a651
[ "MIT" ]
27
2021-07-31T07:36:26.000Z
2022-02-04T18:47:44.000Z
mix.exs
sabiwara/enumancer
b0ff768ada92b4bfc68c774257177c114c68a651
[ "MIT" ]
null
null
null
mix.exs
sabiwara/enumancer
b0ff768ada92b4bfc68c774257177c114c68a651
[ "MIT" ]
1
2021-08-13T03:40:52.000Z
2021-08-13T03:40:52.000Z
defmodule Enumancer.MixProject do use Mix.Project @version "0.0.1" @github_url "https://github.com/sabiwara/enumancer" def project do [ app: :enumancer, version: @version, elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps(), preferred_cli_env: [ ...
19.966102
90
0.547538
ff56550d72ee44f3a70b8ca189435054b916d579
1,070
ex
Elixir
lib/koans/11_sigils.ex
trungle1612/elixir-koans
1ef8dda3ec46ff762aa342314373cca444172026
[ "MIT" ]
null
null
null
lib/koans/11_sigils.ex
trungle1612/elixir-koans
1ef8dda3ec46ff762aa342314373cca444172026
[ "MIT" ]
null
null
null
lib/koans/11_sigils.ex
trungle1612/elixir-koans
1ef8dda3ec46ff762aa342314373cca444172026
[ "MIT" ]
null
null
null
defmodule Sigils do use Koans @intro "Sigils" koan "The ~s sigil is a different way of expressing string literals" do assert ~s{This is a string} == "This is a string" end koan "Sigils are useful to avoid escaping quotes in strings" do assert "\"Welcome to the jungle\", they said." == ~s("Welcome t...
27.435897
93
0.61028
ff5657e38007d28ef5aba9b0253488a96ed6a3f1
2,215
ex
Elixir
lib/mix/lib/mix/tasks/loadpaths.ex
wstrinz/elixir
1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95
[ "Apache-2.0" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
lib/mix/lib/mix/tasks/loadpaths.ex
wstrinz/elixir
1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95
[ "Apache-2.0" ]
1
2018-09-10T23:36:45.000Z
2018-09-10T23:36:45.000Z
lib/mix/lib/mix/tasks/loadpaths.ex
wstrinz/elixir
1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
defmodule Mix.Tasks.Loadpaths do use Mix.Task @moduledoc """ Loads the application and its dependencies paths. ## Configuration * `:elixir` - matches the current Elixir version against the given requirement ## Command line options * `--no-archives-check` - does not check archive * `--no...
26.686747
80
0.63702
ff5681365e1b11219a44dfb7caec000a72076f5a
1,276
ex
Elixir
lib/countriex.ex
gvl/countriex
4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe
[ "MIT" ]
null
null
null
lib/countriex.ex
gvl/countriex
4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe
[ "MIT" ]
null
null
null
lib/countriex.ex
gvl/countriex
4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe
[ "MIT" ]
null
null
null
defmodule Countriex do @moduledoc """ Provides all sorts useful information for every country in the ISO 3166 standard, and helper methods to filter/retrieve that information by. """ @doc """ Returns all country data """ def all, do: Countriex.Data.countries() @doc """ Returns the first matching cou...
26.583333
142
0.634796
ff56878f9186558952f776260635ac8b74c987bd
143
ex
Elixir
lib/beet_diet_web/controllers/page_controller.ex
Vaysman/beer-diet
14bf38e08afc25bd3f0139d8fff75f0df1821793
[ "MIT" ]
null
null
null
lib/beet_diet_web/controllers/page_controller.ex
Vaysman/beer-diet
14bf38e08afc25bd3f0139d8fff75f0df1821793
[ "MIT" ]
null
null
null
lib/beet_diet_web/controllers/page_controller.ex
Vaysman/beer-diet
14bf38e08afc25bd3f0139d8fff75f0df1821793
[ "MIT" ]
null
null
null
defmodule BeetDietWeb.PageController do use BeetDietWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.875
39
0.741259
ff56a522c2114738661fd523b6453aa3a8a67fa9
2,391
ex
Elixir
lib/oli_web/live/common/hierarchy/move_modal.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
1
2022-03-17T20:35:47.000Z
2022-03-17T20:35:47.000Z
lib/oli_web/live/common/hierarchy/move_modal.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
lib/oli_web/live/common/hierarchy/move_modal.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule OliWeb.Common.Hierarchy.MoveModal do use Phoenix.LiveComponent use Phoenix.HTML import OliWeb.Curriculum.Utils alias OliWeb.Common.Hierarchy.HierarchyPicker alias Oli.Delivery.Hierarchy.HierarchyNode def render( %{ id: id, node: %HierarchyNode{uuid: uuid, revision: r...
37.359375
141
0.547888
ff56db3c46825b8feee2510120f81d5bc04d9a08
224
ex
Elixir
lib/changelog.ex
wojtekmach/changelog
a3af0e7ef232d232e9fafd1e24976d5c2da63c98
[ "Apache-2.0" ]
1
2018-01-28T21:17:29.000Z
2018-01-28T21:17:29.000Z
lib/changelog.ex
wojtekmach/changelog
a3af0e7ef232d232e9fafd1e24976d5c2da63c98
[ "Apache-2.0" ]
2
2018-01-27T21:15:51.000Z
2019-09-15T19:09:00.000Z
lib/changelog.ex
wojtekmach/changelog
a3af0e7ef232d232e9fafd1e24976d5c2da63c98
[ "Apache-2.0" ]
null
null
null
defmodule Changelog do defmodule Release do defstruct [:version, :date, notes: []] end def fetch(name) do Changelog.Fetcher.fetch(name) end def parse!(text) do Changelog.Parser.parse!(text) end end
16
42
0.678571
ff57130ea3948ad6b0b5b3ae6b64c28f8769d2f4
2,114
exs
Elixir
config/dev.exs
noahjames404/elixir-pheonix-framework
c1587709d67ef7c9bad247d4fe4ec80e23e4041b
[ "MIT" ]
null
null
null
config/dev.exs
noahjames404/elixir-pheonix-framework
c1587709d67ef7c9bad247d4fe4ec80e23e4041b
[ "MIT" ]
null
null
null
config/dev.exs
noahjames404/elixir-pheonix-framework
c1587709d67ef7c9bad247d4fe4ec80e23e4041b
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :hello, Hello.Repo, username: "postgres", password: "root", database: "hello_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading. # # The ...
27.454545
68
0.687323
ff57543d1a0586ceb2164b838dfbbfca25965d89
2,724
ex
Elixir
lib/ex_amqp_helpers.ex
briankereszturi/examqphelpers
1269a47778724067fe29239c9858a8d2a637fdc1
[ "MIT" ]
null
null
null
lib/ex_amqp_helpers.ex
briankereszturi/examqphelpers
1269a47778724067fe29239c9858a8d2a637fdc1
[ "MIT" ]
null
null
null
lib/ex_amqp_helpers.ex
briankereszturi/examqphelpers
1269a47778724067fe29239c9858a8d2a637fdc1
[ "MIT" ]
null
null
null
defmodule ExAmqpHelpers do use GenServer use AMQP require Logger defp conn_string() do rconf = Application.get_env(:api, :rabbitmq) case rconf[:user] do nil -> "amqp://#{rconf[:host]}" _ -> "amqp://#{rconf[:user]}:#{rconf[:password]}@#{rconf[:host]}" end end def start_link, do: ...
27.515152
84
0.606094
ff57741591b6dd170ddf94ab51a42b04f582dca2
3,007
exs
Elixir
elixir/elixir-elm-playground/test/playground_web/controllers/board_controller_test.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
1
2018-12-11T14:09:14.000Z
2018-12-11T14:09:14.000Z
elixir/elixir-elm-playground/test/playground_web/controllers/board_controller_test.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
elixir/elixir-elm-playground/test/playground_web/controllers/board_controller_test.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
defmodule PlaygroundWeb.BoardControllerTest do use PlaygroundWeb.ConnCase alias Playground.Repo alias Playground.Todo alias Playground.Coherence.User, as: User @create_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil} def create_user() do user_attrs...
30.373737
108
0.652145
ff57cff2fe406ba810c521e5d888f1521e3f297c
1,354
ex
Elixir
lib/crit_web/views/reservations/reservation_view.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
lib/crit_web/views/reservations/reservation_view.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
null
null
null
lib/crit_web/views/reservations/reservation_view.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule CritWeb.Reservations.ReservationView do use CritWeb, :view import Pile.TimeHelper alias CritWeb.Reservations.ReservationController alias CritBiz.ViewModels.Reservation.CalendarEntry alias Pile.Extras.IntegerX def date_or_dates_header(first_date, last_date) do header = if Date.compare...
28.208333
88
0.650665
ff57ffa8c3aa3d8d3b8a76c646309137286737d2
1,492
exs
Elixir
mix.exs
antonmi/grpc
b13a8d3467351796769488d9e7a116cbb1935737
[ "Apache-2.0" ]
null
null
null
mix.exs
antonmi/grpc
b13a8d3467351796769488d9e7a116cbb1935737
[ "Apache-2.0" ]
null
null
null
mix.exs
antonmi/grpc
b13a8d3467351796769488d9e7a116cbb1935737
[ "Apache-2.0" ]
null
null
null
defmodule GRPC.Mixfile do use Mix.Project @version "0.4.0" def project do [ app: :grpc, version: @version, elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), package...
24.459016
72
0.55496
ff5813b01d47b10cc59cc6c8c06b5bd4041f2bca
2,362
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/course_alias.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/classroom/lib/google_api/classroom/v1/model/course_alias.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/classroom/lib/google_api/classroom/v1/model/course_alias.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...
50.255319
800
0.757832
ff584877691723b33faf8afac8e153e5f667bc94
4,304
ex
Elixir
lib/dnsimple/services.ex
remiprev/dnsimple-elixir
7a8eb0cec64797f3e72601b5395d8629836ef904
[ "MIT" ]
null
null
null
lib/dnsimple/services.ex
remiprev/dnsimple-elixir
7a8eb0cec64797f3e72601b5395d8629836ef904
[ "MIT" ]
14
2021-02-19T07:09:55.000Z
2022-02-24T12:33:37.000Z
lib/dnsimple/services.ex
littleairmada/dnsimple-elixir
a1b71a9c84d1a440f86199b8f48754e1c88ca19f
[ "MIT" ]
null
null
null
defmodule Dnsimple.Services do @moduledoc """ Provides functions to interact with the [one-click service endpoints](https://developer.dnsimple.com/v2/services/). See: - https://developer.dnsimple.com/v2/services - https://developer.dnsimple.com/v2/services/domains/ """ alias Dnsimple.Client alias Dn...
33.889764
137
0.676812
ff58888ad6d7e7cadbd4dd13726ca31265bddf1a
1,838
ex
Elixir
test/support/model_case.ex
muziyoshiz/admiral_stats_api
f9a6eaa2d34604ec207168f6192b98788e16bf58
[ "MIT" ]
null
null
null
test/support/model_case.ex
muziyoshiz/admiral_stats_api
f9a6eaa2d34604ec207168f6192b98788e16bf58
[ "MIT" ]
null
null
null
test/support/model_case.ex
muziyoshiz/admiral_stats_api
f9a6eaa2d34604ec207168f6192b98788e16bf58
[ "MIT" ]
null
null
null
defmodule AdmiralStatsApi.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be asy...
27.848485
86
0.693145
ff58b1014f094e7e0394e73a9b361a402ba515d6
4,629
ex
Elixir
apps/language_server/lib/language_server/dialyzer/manifest.ex
rupurt/elixir-ls
67face6dd668e7d5d363e28f6b4305a1a64473c7
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/dialyzer/manifest.ex
rupurt/elixir-ls
67face6dd668e7d5d363e28f6b4305a1a64473c7
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/dialyzer/manifest.ex
rupurt/elixir-ls
67face6dd668e7d5d363e28f6b4305a1a64473c7
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Dialyzer.Manifest do alias ElixirLS.LanguageServer.{Dialyzer, JsonRpc} import Record import Dialyzer.Utils require Logger @manifest_vsn :v2 defrecord(:plt, [:info, :types, :contracts, :callbacks, :exported_types]) def build_new_manifest() do parent = self() Ta...
26.757225
90
0.642255
ff58b84b519d46794168f3af99eaf443f330c823
2,417
ex
Elixir
clients/logging/lib/google_api/logging/v2/model/log_view.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/logging/lib/google_api/logging/v2/model/log_view.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/logging/lib/google_api/logging/v2/model/log_view.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...
40.966102
383
0.701696
ff590c80faedc95ba1532599d267aa5689c3e081
222
exs
Elixir
observer/payroll.exs
joshnuss/design-patterns-in-elixir
7f07cae0701ad460b6b275e382fad03324656989
[ "MIT" ]
516
2015-09-25T18:43:37.000Z
2022-03-22T16:33:08.000Z
observer/payroll.exs
joshnuss/design-patterns-in-elixir
7f07cae0701ad460b6b275e382fad03324656989
[ "MIT" ]
2
2017-10-01T22:33:34.000Z
2019-02-21T18:21:54.000Z
observer/payroll.exs
joshnuss/design-patterns-in-elixir
7f07cae0701ad460b6b275e382fad03324656989
[ "MIT" ]
52
2015-11-15T05:58:45.000Z
2022-01-21T20:01:17.000Z
defmodule Payroll do use GenEvent def handle_event({:changed, employee}, state) do IO.puts("Cut a new check for #{employee.name}!") IO.puts("His salary is now #{employee.salary}!") {:ok, state} end end
20.181818
52
0.657658
ff5941205ebee4c6d5272b112220aaef594bbeb3
1,231
exs
Elixir
config/prod.secret.exs
calleluks/ex-remit
893dbc42c9ace6db6ee044f82371075198089fdc
[ "MIT" ]
null
null
null
config/prod.secret.exs
calleluks/ex-remit
893dbc42c9ace6db6ee044f82371075198089fdc
[ "MIT" ]
null
null
null
config/prod.secret.exs
calleluks/ex-remit
893dbc42c9ace6db6ee044f82371075198089fdc
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config database_url = System.get_env("DATABASE_URL") || raise """ envi...
29.309524
67
0.717303
ff594c3ce486fd07d5c1a8bd6d48913d26dea0ec
581
exs
Elixir
test/bs/movement_test.exs
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
3
2018-07-14T22:55:23.000Z
2019-02-25T06:11:55.000Z
test/bs/movement_test.exs
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
7
2020-02-12T03:22:59.000Z
2022-02-10T20:23:52.000Z
test/bs/movement_test.exs
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
12
2018-03-27T05:27:20.000Z
2019-04-02T08:19:04.000Z
defmodule Bs.MovementTest do alias Bs.Movement use Bs.Case, async: false use Bs.Point import Map import List @moduletag :capture_log test ".next updates snake locations" do actual = build(:world, snakes: [build(:snake, url: "down.mock")]) |> Movement.next() assert [p(0, 1)] = actu...
20.75
65
0.614458
ff5961e445825b5465400a8cb13436c079ea1eec
9,527
ex
Elixir
lib/clustered_case.ex
hewsut/ex_unit_clustered_case
7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88
[ "Apache-2.0" ]
48
2018-07-20T20:19:23.000Z
2021-11-10T09:22:52.000Z
lib/clustered_case.ex
hewsut/ex_unit_clustered_case
7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88
[ "Apache-2.0" ]
9
2018-07-20T19:02:07.000Z
2019-07-29T05:23:38.000Z
lib/clustered_case.ex
hewsut/ex_unit_clustered_case
7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88
[ "Apache-2.0" ]
7
2018-07-30T02:13:59.000Z
2019-12-11T15:28:47.000Z
defmodule ExUnit.ClusteredCase do @moduledoc """ Helpers for defining clustered test cases. Use this in place of `ExUnit.Case` when defining test modules where you will be defining clustered tests. `#{__MODULE__}` extends `ExUnit.Case` to provide additional helpers for those tests. Since `#{__MODULE__}` i...
31.133987
101
0.630419
ff598cd0ba0740ceede51fde2e880ba1ea6c69b6
2,785
exs
Elixir
installer/templates/phx_single/config/runtime.exs
nelsonmestevao/phoenix
6a705dec3f46b5c6ac8f55c9df4e406f59619ebe
[ "MIT" ]
null
null
null
installer/templates/phx_single/config/runtime.exs
nelsonmestevao/phoenix
6a705dec3f46b5c6ac8f55c9df4e406f59619ebe
[ "MIT" ]
null
null
null
installer/templates/phx_single/config/runtime.exs
nelsonmestevao/phoenix
6a705dec3f46b5c6ac8f55c9df4e406f59619ebe
[ "MIT" ]
null
null
null
import Config # config/runtime.exs is executed for all environments, including # during releases. It is executed after compilation and before the # system starts, so it is typically used to load production configuration # and secrets from environment variables or elsewhere. Do not define # any compile-time configurati...
40.362319
87
0.694075
ff59b167c704f571114b16fbb9ed53de8ef01c94
438
exs
Elixir
priv/repo/seeds.exs
DianaOlympos/remote_test
e222d4e937789871baab3a7b4fd8428b714c1af4
[ "MIT" ]
1
2020-09-18T03:32:45.000Z
2020-09-18T03:32:45.000Z
priv/repo/seeds.exs
DianaOlympos/remote_test
e222d4e937789871baab3a7b4fd8428b714c1af4
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
DianaOlympos/remote_test
e222d4e937789871baab3a7b4fd8428b714c1af4
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # RemotePoints.Repo.insert!(%RemotePoints.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as...
31.285714
75
0.712329
ff59b2eda3dd3b804bcd5c6e7e6245ae84485bb9
3,607
ex
Elixir
lib/sanbase_web/graphql/schema/types/social_data_types.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/schema/types/social_data_types.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/schema/types/social_data_types.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.SocialDataTypes do use Absinthe.Schema.Notation alias SanbaseWeb.Graphql.Resolvers.SocialDataResolver import SanbaseWeb.Graphql.Cache, only: [cache_resolve: 1] enum :trending_words_sources do value(:telegram) value(:twitter) value(:bitcointalk) value(:reddit) v...
23.730263
60
0.705295
ff59bf6f311e62db16d063f78378d09e40e6be1b
3,063
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/partition_read_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/partition_read_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/partition_read_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
48.619048
417
0.739471
ff59d145a1fadb160494db1c069d6ef3295eedce
1,026
ex
Elixir
lib/roshambo_web/plugs/game_plug.ex
xaviRodri/roshambo
7cfd465cc40a7dc405c2854e9135f516df3809bd
[ "MIT" ]
null
null
null
lib/roshambo_web/plugs/game_plug.ex
xaviRodri/roshambo
7cfd465cc40a7dc405c2854e9135f516df3809bd
[ "MIT" ]
null
null
null
lib/roshambo_web/plugs/game_plug.ex
xaviRodri/roshambo
7cfd465cc40a7dc405c2854e9135f516df3809bd
[ "MIT" ]
null
null
null
defmodule RoshamboWeb.Plugs.GamePlug do use Plug.Builder def call(conn, opts) do conn |> super(opts) |> fetch_cookies(signed: ["roshambo-game"]) |> maybe_assign_game_id end # Both the game_id stored in the cookies and the one in the params must be the same defp maybe_assign_game_id( ...
31.090909
90
0.616959
ff59f612c6ca75b8a2df25aabd9b0cf3d7f4ca3a
565
ex
Elixir
examples/swagger_demo/web/views/changeset_view.ex
Whatnot-Inc/bureaucrat
d0634c6017dc68f8a23078cbc8c181a4b2d3e6db
[ "Unlicense" ]
326
2015-08-19T10:05:07.000Z
2022-03-28T08:49:33.000Z
examples/swagger_demo/web/views/changeset_view.ex
Whatnot-Inc/bureaucrat
d0634c6017dc68f8a23078cbc8c181a4b2d3e6db
[ "Unlicense" ]
64
2015-08-19T06:44:19.000Z
2022-03-29T06:23:34.000Z
examples/swagger_demo/web/views/changeset_view.ex
Whatnot-Inc/bureaucrat
d0634c6017dc68f8a23078cbc8c181a4b2d3e6db
[ "Unlicense" ]
66
2016-01-08T20:40:40.000Z
2022-03-03T02:15:15.000Z
defmodule SwaggerDemo.ChangesetView do use SwaggerDemo.Web, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `SwaggerDemo.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(change...
28.25
65
0.739823
ff5a601b633fc8e28c76846e46d12742ab670553
235
exs
Elixir
community/betterdev/priv/repo/migrations/20170611062313_create_community_link.exs
earthrid/betterdev.link
b8efe279e82810075ba36673483f7f4d6862bc19
[ "MIT" ]
79
2017-07-03T13:04:08.000Z
2022-02-11T13:59:37.000Z
community/betterdev/priv/repo/migrations/20170611062313_create_community_link.exs
earthrid/betterdev.link
b8efe279e82810075ba36673483f7f4d6862bc19
[ "MIT" ]
16
2017-07-09T03:16:27.000Z
2022-01-14T14:29:57.000Z
community/betterdev/priv/repo/migrations/20170611062313_create_community_link.exs
earthrid/betterdev.link
b8efe279e82810075ba36673483f7f4d6862bc19
[ "MIT" ]
10
2017-07-09T02:58:59.000Z
2021-09-14T08:01:02.000Z
defmodule Betterdev.Repo.Migrations.CreateBetterdev.Community.Link do use Ecto.Migration def change do create table(:community_links) do add :title, :string add :uri, :string timestamps() end end end
16.785714
69
0.689362
ff5a61ee4f8931cd195f7a3860ef2cdb705fe981
861
ex
Elixir
lib/teiserver/telemetry/schemas/client_property.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver/telemetry/schemas/client_property.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/telemetry/schemas/client_property.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Telemetry.ClientProperty do use CentralWeb, :schema @primary_key false schema "teiserver_telemetry_client_properties" do belongs_to :user, Central.Account.User, primary_key: true belongs_to :property_type, Teiserver.Telemetry.PropertyType, primary_key: true field :last_updated, :...
33.115385
86
0.70964
ff5a83943cab3f14970688af78fcd042ff3fd675
241
ex
Elixir
server/web/controllers/page_controller.ex
CircleAcademy/circle-website
b519e1e7c1d90566b7dfdaeda20ddd71abf6c832
[ "MIT" ]
null
null
null
server/web/controllers/page_controller.ex
CircleAcademy/circle-website
b519e1e7c1d90566b7dfdaeda20ddd71abf6c832
[ "MIT" ]
null
null
null
server/web/controllers/page_controller.ex
CircleAcademy/circle-website
b519e1e7c1d90566b7dfdaeda20ddd71abf6c832
[ "MIT" ]
null
null
null
defmodule Website.PageController do use Website.Web, :controller def index(conn, _params) do conn |> put_resp_header("content-type", "text/html; charset=utf-8") |> Plug.Conn.send_file(200, "priv/dist/index.html") end end
21.909091
66
0.697095
ff5aa32a808269c189dd114d249c33fa3622398b
34,951
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/elixir/test/elixir/kernel/errors_test.exs
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true defmacro hello do quote location: :keep do def hello, do: :world end end test "no optional arguments in fn" do assert_eval_raise CompileError, "nofile:1: anonym...
34.366765
144
0.540843
ff5aacd6e5091d614f199765a0491d6b7985054b
4,233
ex
Elixir
lib/membrane/caps/matcher.ex
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
lib/membrane/caps/matcher.ex
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
lib/membrane/caps/matcher.ex
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Caps.Matcher do @moduledoc """ Module that allows to specify valid caps and verify that they match specification. Caps specifications (specs) should be in one of the formats: * simply module name of the desired caps (e.g. `Membrane.Caps.Audio.Raw` or `Raw` with proper alias) * tuple w...
34.696721
111
0.677534
ff5aae5948a6ca8e303a8c357a192c4e56fb563e
2,819
ex
Elixir
clients/service_networking/lib/google_api/service_networking/v1/model/update_dns_record_set_request.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/update_dns_record_set_request.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/update_dns_record_set_request.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
44.746032
183
0.740688
ff5ac2870cfb0119b60094d3a4c6b5655b08b058
890
ex
Elixir
sample_server/test/support/conn_case.ex
mjaric/finix
fb0dedfdfdd46927d3df239c7c45d7fe92c441c4
[ "Apache-2.0" ]
31
2019-03-26T15:26:21.000Z
2022-02-16T14:33:13.000Z
sample_server/test/support/conn_case.ex
mjaric/finix
fb0dedfdfdd46927d3df239c7c45d7fe92c441c4
[ "Apache-2.0" ]
3
2019-04-05T19:45:09.000Z
2019-10-25T01:48:57.000Z
sample_server/test/support/conn_case.ex
mjaric/finix
fb0dedfdfdd46927d3df239c7c45d7fe92c441c4
[ "Apache-2.0" ]
5
2019-03-27T14:16:28.000Z
2022-02-18T12:01:46.000Z
defmodule SampleServerWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, i...
25.428571
58
0.733708
ff5ad9ed2efbdac86420a3d259797fbfd28c8b46
1,938
ex
Elixir
lib/glimesh_web/controllers/oauth2_controllers/authorization_controller.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
1
2020-08-02T00:12:28.000Z
2020-08-02T00:12:28.000Z
lib/glimesh_web/controllers/oauth2_controllers/authorization_controller.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
lib/glimesh_web/controllers/oauth2_controllers/authorization_controller.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.Oauth2Provider.AuthorizationController do @moduledoc false use GlimeshWeb, :controller alias Glimesh.OauthHandler def new(conn, params) do code = Map.get(params, "code") if code != nil do redirect(conn, to: Routes.authorization_path(conn, :show, code)) else conn.a...
26.547945
74
0.624871
ff5af84f62e9f0d9d758ac6c5c21f32401bb44d8
798
ex
Elixir
lib/exrm/plugins/link_sys_config.ex
qhwa/edeliver
f90999b54a90f2eb6d68e21bf5759872b42eee41
[ "Unlicense", "MIT" ]
1
2021-06-25T10:36:14.000Z
2021-06-25T10:36:14.000Z
lib/exrm/plugins/link_sys_config.ex
qhwa/edeliver
f90999b54a90f2eb6d68e21bf5759872b42eee41
[ "Unlicense", "MIT" ]
null
null
null
lib/exrm/plugins/link_sys_config.ex
qhwa/edeliver
f90999b54a90f2eb6d68e21bf5759872b42eee41
[ "Unlicense", "MIT" ]
null
null
null
defmodule ReleaseManager.Plugin.LinkSysConfig do @moduledoc """ Exrm plugin to link the `sys.config` file on deploy hosts. """ use ReleaseManager.Plugin alias ReleaseManager.Utils def before_release(_), do: nil def after_release(%Config{version: version, name: name}) do case System.get_env "LINK...
28.5
98
0.691729
ff5b0e481de992df20961d3281252db4c4ba2ca0
673
ex
Elixir
lib/postpone/mock.ex
marcinwysocki/postpone
e57e3fb78ac40273eb6f1a90267deabca2f5f3ba
[ "MIT" ]
null
null
null
lib/postpone/mock.ex
marcinwysocki/postpone
e57e3fb78ac40273eb6f1a90267deabca2f5f3ba
[ "MIT" ]
null
null
null
lib/postpone/mock.ex
marcinwysocki/postpone
e57e3fb78ac40273eb6f1a90267deabca2f5f3ba
[ "MIT" ]
null
null
null
defmodule Postpone.Mock do use Agent alias Postpone.Mock.Server @doc false defmacro __using__(_) do quote do import Mock import Postpone.Mock end end defmacro with_timers_mock(do: block) do quote do with_mock Postpone, send_after: fn msg, to, time -> Server.set(time,...
19.794118
86
0.658247
ff5b43faa4ca1ce8957abbec3b00a93de1028b59
446
exs
Elixir
config/config.exs
root-mt/KeycloakEx
5c409b442472c2525b04002f3e6e75e9d207d2ca
[ "MIT" ]
null
null
null
config/config.exs
root-mt/KeycloakEx
5c409b442472c2525b04002f3e6e75e9d207d2ca
[ "MIT" ]
null
null
null
config/config.exs
root-mt/KeycloakEx
5c409b442472c2525b04002f3e6e75e9d207d2ca
[ "MIT" ]
null
null
null
import Config config :keycloak, :host_uri, "http://localhost:8081" config :keycloak, Keycloak.Clients.Admin, realm: "master", username: "admin", password: "test123!", client_id: "admin-cli", client_secret: "83bf8d8e-e608-477b-b812-48b9ac4aa43a" config :keycloak, Keycloak.Clients.User, realm: "keycloak-ex...
23.473684
55
0.70852
ff5bb5dc8a714694b9785c171ee311cc7dc65fe4
1,083
exs
Elixir
apps/artemis_web/test/artemis_web/controllers/user_anonymization_controller_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis_web/test/artemis_web/controllers/user_anonymization_controller_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_web/test/artemis_web/controllers/user_anonymization_controller_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule ArtemisWeb.UserAnonymizationControllerTest do use ArtemisWeb.ConnCase import Artemis.Factories setup %{conn: conn} do {:ok, conn: sign_in(conn)} end describe "create" do test "anonymizes user and redirects to show when data is valid", %{conn: conn} do record = insert(:user) c...
30.942857
85
0.677747
ff5c06c015dcc1764ba8693ce2dde5d4c75ddac8
343
exs
Elixir
programming_elixir_1.3_snippets/spawn/link2.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/spawn/link2.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/spawn/link2.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
defmodule Link2 do import :timer, only: [sleep: 1] def sad_function do sleep 500 exit(:boom) end def run do spawn_link(__MODULE__, :sad_function, []) receive do msg -> IO.puts "Message Received: #{inspect msg}" after 1000 -> IO.puts "Nothing happened afaik" end ...
19.055556
56
0.606414
ff5c129dad036fafe1c52bd887a47ad427aa548f
1,127
ex
Elixir
lib/ds_wrapper/key.ex
iii-ishida/ds_wrapper
d7a2fbb1c07b33a762743b1c2051b163586fc5d7
[ "MIT" ]
null
null
null
lib/ds_wrapper/key.ex
iii-ishida/ds_wrapper
d7a2fbb1c07b33a762743b1c2051b163586fc5d7
[ "MIT" ]
null
null
null
lib/ds_wrapper/key.ex
iii-ishida/ds_wrapper
d7a2fbb1c07b33a762743b1c2051b163586fc5d7
[ "MIT" ]
null
null
null
defmodule DsWrapper.Key do @moduledoc """ `GoogleApi.Datastore.V1.Model.Key` wrapper """ alias GoogleApi.Datastore.V1.Model.{Key, PathElement} @doc """ Create a new `GoogleApi.Datastore.V1.Model.Key`. ## Examples iex> DsWrapper.Key.new("SomeKind") %GoogleApi.Datastore.V1.Model.Key{path: [%...
34.151515
127
0.663709
ff5c1ceb512e60cc7c9260789bc939207202fd48
1,080
ex
Elixir
divvy_tracker/lib/divvy_tracker_web/channels/user_socket.ex
tpennock/divvy-tracker-app
6896a19fd7380a827573231ff56ead8db04c66bf
[ "MIT" ]
null
null
null
divvy_tracker/lib/divvy_tracker_web/channels/user_socket.ex
tpennock/divvy-tracker-app
6896a19fd7380a827573231ff56ead8db04c66bf
[ "MIT" ]
3
2018-12-11T00:07:41.000Z
2018-12-11T00:09:36.000Z
divvy_tracker/lib/divvy_tracker_web/channels/user_socket.ex
tpennock/divvy-tracker-app
6896a19fd7380a827573231ff56ead8db04c66bf
[ "MIT" ]
null
null
null
defmodule DivvyTrackerWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", DivvyTrackerWeb.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 ...
31.764706
87
0.700926
ff5c2f53e3bb957fe41d9b3fc4fb8c2e5e1a9a35
207
ex
Elixir
test/support/c_example.ex
jeanparpaillon/ex_cast
fd67d0dcf9ac3794c5fbf1070a7be33925361c2b
[ "Apache-2.0" ]
null
null
null
test/support/c_example.ex
jeanparpaillon/ex_cast
fd67d0dcf9ac3794c5fbf1070a7be33925361c2b
[ "Apache-2.0" ]
null
null
null
test/support/c_example.ex
jeanparpaillon/ex_cast
fd67d0dcf9ac3794c5fbf1070a7be33925361c2b
[ "Apache-2.0" ]
null
null
null
defmodule CExample do use Cast, ast: "test/support/c_example/hello.xml" const :version, cast: &integer/1 const :app, cast: &string/1 enum Numbers, contains: "one" enum Buddies, name: "buddy" end
20.7
51
0.700483
ff5c4d24cd1f87c4ecb3cde362c04d2e71674b10
2,047
exs
Elixir
rel/config/console.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
rel/config/console.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
rel/config/console.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
import Config import System, only: [get_env: 1, get_env: 2] config :ra, data_dir: '/data/ra' config :piazza_core, repos: [Console.Repo] config :botanist, ecto_repo: Console.Repo replicas = get_env("REPLICAS", "1") |> String.to_integer() nodes = Enum.map(0..(replicas - 1), & :"console@console-#{&1}.console-hea...
24.963415
122
0.679043
ff5c73ca5cc66e92ab1e8c68c2a4f1d386a4b15d
1,383
exs
Elixir
config/config.exs
bundacia/cassette-plug
ee99912204f5085bf4d77e47eaae3978bf59542c
[ "MIT" ]
1
2019-12-15T00:26:38.000Z
2019-12-15T00:26:38.000Z
config/config.exs
bundacia/cassette-plug
ee99912204f5085bf4d77e47eaae3978bf59542c
[ "MIT" ]
null
null
null
config/config.exs
bundacia/cassette-plug
ee99912204f5085bf4d77e47eaae3978bf59542c
[ "MIT" ]
1
2019-12-15T00:26:39.000Z
2019-12-15T00:26:39.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.394737
92
0.768619
ff5c7d341a1288f2e9b92bf0fa03637ac2363dc2
9,362
ex
Elixir
lib/generated/delete_records.ex
kevint-simplifi/kayrock
9c88e99ec913728107ec99f9af94dc1d25e0e0d8
[ "MIT" ]
24
2019-06-26T22:08:13.000Z
2022-01-27T00:10:41.000Z
lib/generated/delete_records.ex
kevint-simplifi/kayrock
9c88e99ec913728107ec99f9af94dc1d25e0e0d8
[ "MIT" ]
10
2020-04-10T07:48:53.000Z
2021-03-26T10:50:25.000Z
lib/generated/delete_records.ex
kevint-simplifi/kayrock
9c88e99ec913728107ec99f9af94dc1d25e0e0d8
[ "MIT" ]
11
2019-10-30T12:53:09.000Z
2022-03-09T23:16:42.000Z
defmodule(Kayrock.DeleteRecords) do @api :delete_records @moduledoc "Kayrock-generated module for the Kafka `#{@api}` API\n" _ = " THIS CODE IS GENERATED BY KAYROCK" ( @vmin 0 @vmax 0 ) defmodule(V0.Request) do @vsn 0 @api :delete_records @schema topics: {:array, ...
30.2
130
0.540162
ff5c929e8ffb6ce37aabf46aa5c0b327043f6145
1,220
ex
Elixir
web/views/error_helpers.ex
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
defmodule Bloom.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error), cl...
29.756098
71
0.665574
ff5c9e66828e8320696e7a8d1653d9e358ba3436
400
ex
Elixir
lib/blue_jet_web/controllers/identity/email_verification_token_controller.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
lib/blue_jet_web/controllers/identity/email_verification_token_controller.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
lib/blue_jet_web/controllers/identity/email_verification_token_controller.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJetWeb.EmailVerificationTokenController do use BlueJetWeb, :controller alias BlueJet.Identity action_fallback BlueJetWeb.FallbackController plug :scrub_params, "data" when action in [:create, :update] def create(conn, %{"data" => %{"type" => "EmailVerificationToken"}}), do: default(conn,...
30.769231
96
0.76
ff5caed9581a1e2fa0d63ee8bc1fae2500b2a5a1
223
ex
Elixir
orderapi/lib/orderapi_web/controllers/order_controller.ex
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
1
2018-03-06T10:32:22.000Z
2018-03-06T10:32:22.000Z
orderapi/lib/orderapi_web/controllers/order_controller.ex
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
null
null
null
orderapi/lib/orderapi_web/controllers/order_controller.ex
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
null
null
null
defmodule OrderapiWeb.OrderController do use OrderapiWeb, :controller alias OrderapiWeb.Order def index(conn, _params) do orders = Orderapi.Repo.all(Order) render conn, "index.json", orders: orders end end
22.3
45
0.744395
ff5cc1bf732e391005860e6eec9ceb1cba313c11
555
exs
Elixir
priv/repo/migrations/20210621225953_create_studios.exs
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
priv/repo/migrations/20210621225953_create_studios.exs
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
priv/repo/migrations/20210621225953_create_studios.exs
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule Banchan.Repo.Migrations.CreateStudios do use Ecto.Migration def change do create table(:studios) do add :name, :string, null: false add :summary, :text add :handle, :citext, null: false add :description, :text add :header_img, :string add :card_img, :string a...
25.227273
55
0.652252
ff5ccb04afbd38c44e297c6db072613f45944a97
1,138
ex
Elixir
lib/roger_ui/partitions.ex
fabianherrera/roger_ui_revamp
7541148d6c24a5d3209e4eedccfb6a43f2b38fdf
[ "MIT" ]
1
2020-01-20T19:42:20.000Z
2020-01-20T19:42:20.000Z
lib/roger_ui/partitions.ex
fabianherrera/roger_ui_revamp
7541148d6c24a5d3209e4eedccfb6a43f2b38fdf
[ "MIT" ]
2
2018-02-19T20:07:29.000Z
2018-03-06T17:18:18.000Z
lib/roger_ui/partitions.ex
fabianherrera/roger_ui_revamp
7541148d6c24a5d3209e4eedccfb6a43f2b38fdf
[ "MIT" ]
2
2018-03-02T00:00:08.000Z
2018-03-02T13:35:49.000Z
defmodule RogerUI.Partitions do @moduledoc """ Generate Partition list from Roger.Info.partitions() """ @doc """ Takes a Keyword list that contains the nodes, status and partitions with queues, like this: [ "server@127.0.0.1": %{ running: %{ "roger_test_partition_1" => %{ defau...
27.756098
93
0.636204
ff5ce691727ff3d88c5510f1fa9626cfc32cfd03
381
exs
Elixir
bench/insert_and_inorder_bench.exs
jdfrens/bst_benchmarking
f49efe899cd6649f6efdc4a0c9f488d0aa0f7dbd
[ "MIT" ]
1
2017-04-02T10:29:33.000Z
2017-04-02T10:29:33.000Z
bench/insert_and_inorder_bench.exs
jdfrens/bst_benchmarking
f49efe899cd6649f6efdc4a0c9f488d0aa0f7dbd
[ "MIT" ]
null
null
null
bench/insert_and_inorder_bench.exs
jdfrens/bst_benchmarking
f49efe899cd6649f6efdc4a0c9f488d0aa0f7dbd
[ "MIT" ]
null
null
null
defmodule InsertAndInorder do use Benchfella @list Enum.to_list(1..1_000) |> Enum.shuffle bench "tuple" do @list |> Enum.reduce(TupleBST.new, fn x, acc -> TupleBST.put(acc, x, x) end) |> TupleBST.inorder end bench "map" do @list |> Enum.reduce(MapBST.new, fn x, acc -> Ma...
17.318182
46
0.595801
ff5ce786a70b094134558ed1e200add9cf9c5d34
785
ex
Elixir
lib/ash_json_api/controllers/post_to_relationship.ex
peillis/ash_json_api
f63ccacebc049eba8d37b8b58181fb46a4a0ea8c
[ "MIT" ]
null
null
null
lib/ash_json_api/controllers/post_to_relationship.ex
peillis/ash_json_api
f63ccacebc049eba8d37b8b58181fb46a4a0ea8c
[ "MIT" ]
null
null
null
lib/ash_json_api/controllers/post_to_relationship.ex
peillis/ash_json_api
f63ccacebc049eba8d37b8b58181fb46a4a0ea8c
[ "MIT" ]
null
null
null
defmodule AshJsonApi.Controllers.PostToRelationship do @moduledoc false alias AshJsonApi.Controllers.{Helpers, Response} alias AshJsonApi.Request def init(options) do # initialize options options end def call(conn, options) do action = options[:action] api = options[:api] route = optio...
29.074074
89
0.73121
ff5cf3d48c9dcccecd5162628a69a4c550b7a2a3
965
exs
Elixir
mix.exs
moranda/ex-pipe-helpers
e3025e001118ef17f6abb8a063826d7a597e2479
[ "Apache-2.0", "MIT" ]
null
null
null
mix.exs
moranda/ex-pipe-helpers
e3025e001118ef17f6abb8a063826d7a597e2479
[ "Apache-2.0", "MIT" ]
null
null
null
mix.exs
moranda/ex-pipe-helpers
e3025e001118ef17f6abb8a063826d7a597e2479
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule PipeHelpers.MixProject do use Mix.Project @source_url "https://github.com/kuon/ex-pipe-helpers" @version "1.0.2" def project do [ name: "PipeHelpers", app: :pipe_helpers, version: @version, elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), ...
17.232143
56
0.545078
ff5cff912b6ba90da8636795b3a6f3b0e6537d86
2,035
ex
Elixir
lib/exredis/config.ex
zorbash/exredis
00d0de97bc12b3f9712198b7a08efb5c0eb9436a
[ "MIT" ]
null
null
null
lib/exredis/config.ex
zorbash/exredis
00d0de97bc12b3f9712198b7a08efb5c0eb9436a
[ "MIT" ]
null
null
null
lib/exredis/config.ex
zorbash/exredis
00d0de97bc12b3f9712198b7a08efb5c0eb9436a
[ "MIT" ]
null
null
null
defmodule Exredis.Config do defmodule Config do defstruct host: nil, port: nil, password: nil, db: nil, reconnect: nil, max_queue: nil, behaviour: nil end @default_config %{ host: "127.0.0.1", port: 6379, password: "", db: 0, reconnect: :no_reconnect, max_queue: :infinity, behavio...
23.390805
106
0.580344
ff5d0fd1eb6f44e2b68e1607dce7140be1bcd1ba
916
ex
Elixir
lib/liquid_voting/application.ex
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
lib/liquid_voting/application.ex
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
10
2020-09-28T06:37:48.000Z
2021-12-22T15:04:38.000Z
lib/liquid_voting/application.ex
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
defmodule LiquidVoting.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec # List all child processes to be supervised children = [ LiquidVoting.Repo, ...
28.625
67
0.732533
ff5d1e5679482a60cefef19b2c5335bc849221e1
9,155
exs
Elixir
test/bitpal/invoices/invoice_acceptance_test.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
5
2021-05-04T21:28:00.000Z
2021-12-01T11:19:48.000Z
test/bitpal/invoices/invoice_acceptance_test.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
71
2021-04-21T05:48:49.000Z
2022-03-23T06:30:37.000Z
test/bitpal/invoices/invoice_acceptance_test.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
1
2021-04-25T10:35:41.000Z
2021-04-25T10:35:41.000Z
defmodule BitPal.InvoiceAcceptanceTest do use BitPal.IntegrationCase, async: true test "accept after no double spend in timeout", %{currency_id: currency_id} do {:ok, inv, stub, _invoice_handler} = HandlerSubscriberCollector.create_invoice( required_confirmations: 0, double_spend_timeout:...
33.907407
82
0.619006
ff5d221739c715451505ec05aebab254738855aa
512
exs
Elixir
test/lcov_ex/formatter_test.exs
paulswartz/lcov_ex
110a0a86ede581067661dd366662d2c40ae91a2a
[ "MIT" ]
1
2020-07-21T17:58:44.000Z
2020-07-21T17:58:44.000Z
test/lcov_ex/formatter_test.exs
GuidoRumi/lcov_ex
3b22cf739a56eb16064d2ba3fe9a4309ae6b87ce
[ "MIT" ]
null
null
null
test/lcov_ex/formatter_test.exs
GuidoRumi/lcov_ex
3b22cf739a56eb16064d2ba3fe9a4309ae6b87ce
[ "MIT" ]
null
null
null
defmodule LcovEx.FormatterTest do use ExUnit.Case describe "ExampleProject" do test "run mix test --cover with LcovEx" do assert LcovEx.Formatter.format_lcov(FakeModule, "path/to/file.ex", [{"foo/0",1},{"bar/2",0}], 2, 1, [{"3",1},{"5",0}], 2, 1) == """ TN:Elixir.FakeModule SF:pat...
21.333333
133
0.515625
ff5d249a17fa8c35b5d06dd59120cf98581da5c7
2,628
ex
Elixir
lib/scribe/migration.ex
rramsden/scribe
4ef506714140da032a76d62b39109cf7a79c9d91
[ "MIT" ]
1
2016-01-24T11:43:59.000Z
2016-01-24T11:43:59.000Z
lib/scribe/migration.ex
rramsden/scribe
4ef506714140da032a76d62b39109cf7a79c9d91
[ "MIT" ]
null
null
null
lib/scribe/migration.ex
rramsden/scribe
4ef506714140da032a76d62b39109cf7a79c9d91
[ "MIT" ]
null
null
null
defmodule Scribe.Migration do import Scribe.Utils @doc """ Run migrations """ def up(project_dir, config) do conn = config.adapter.start_link(config) create_version_table(config.adapter, conn) schema_vsn = read_schema_version(config.adapter, conn) migrations = Enum.filter read_migrations(proj...
32.04878
108
0.660198
ff5d2af7beb80c39e1b5efd160c635502b727043
1,706
exs
Elixir
test/airbrakex/exception_parser_test.exs
rum-and-code/airbrakex
36db3a0f887c7d74492daabf1f33eab98fe9b46f
[ "MIT" ]
null
null
null
test/airbrakex/exception_parser_test.exs
rum-and-code/airbrakex
36db3a0f887c7d74492daabf1f33eab98fe9b46f
[ "MIT" ]
1
2021-05-17T15:36:58.000Z
2021-05-17T15:36:58.000Z
test/airbrakex/exception_parser_test.exs
rum-and-code/airbrakex
36db3a0f887c7d74492daabf1f33eab98fe9b46f
[ "MIT" ]
null
null
null
defmodule Airbrakex.ExceptionParserTest do use ExUnit.Case test "parses exception" do {exception, stacktrace} = try do IO.inspect("test", [], "") rescue e -> {e, __STACKTRACE__} end parsed_exception = Airbrakex.ExceptionParser.parse(exception, stacktrace) backtrace =...
30.464286
94
0.652989
ff5d8785862432560ec5647d3daf194efa8701d0
3,107
ex
Elixir
lib/planga/chat/conversation_user.ex
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
37
2018-07-13T14:08:16.000Z
2021-04-09T15:00:22.000Z
lib/planga/chat/conversation_user.ex
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
9
2018-07-16T15:24:39.000Z
2021-09-01T14:21:20.000Z
lib/planga/chat/conversation_user.ex
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
3
2018-10-05T20:19:25.000Z
2019-12-05T00:30:01.000Z
defmodule Planga.Chat.ConversationUser do @moduledoc """ This schema is the relation between a user and a given conversation. """ use Ecto.Schema # import Ecto.Changeset schema "conversations_users" do # field(:conversation_id, :integer) belongs_to(:conversation, Planga.Chat.Conversation) # f...
28.768519
96
0.679434
ff5d96325a5cec65429df4c066e51b06044364fd
1,226
ex
Elixir
web/views/error_helpers.ex
bschmeck/ex_gnarl
25d6961795f10a2d49efd1a29167a771ef9772f1
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
bschmeck/ex_gnarl
25d6961795f10a2d49efd1a29167a771ef9772f1
[ "MIT" ]
1
2017-04-21T17:02:56.000Z
2017-04-21T17:02:56.000Z
web/views/error_helpers.ex
bschmeck/ex_gnarl
25d6961795f10a2d49efd1a29167a771ef9772f1
[ "MIT" ]
null
null
null
defmodule ExGnarl.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error), ...
29.902439
73
0.66721
ff5d9ca7c8a6d3b0d26a0ead42d14e2661d206b1
682
ex
Elixir
lib/plausible/site/shared_link.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
2
2020-05-16T13:48:44.000Z
2020-05-22T09:52:36.000Z
lib/plausible/site/shared_link.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
2
2020-07-09T21:44:35.000Z
2020-07-14T07:06:10.000Z
lib/plausible/site/shared_link.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
null
null
null
defmodule Plausible.Site.SharedLink do use Ecto.Schema import Ecto.Changeset schema "shared_links" do belongs_to :site, Plausible.Site field :slug, :string field :password_hash, :string field :password, :string, virtual: true timestamps() end def changeset(link, attrs \\ %{}) do lin...
20.666667
53
0.640762
ff5df22d4c2e644fec44c422ae378940e4a57b21
161
exs
Elixir
priv/repo/migrations/20180214005744_create_task.exs
inodaf/elixir
e6390cadae4f6bc53a4bf93733372971a20438c5
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20180214005744_create_task.exs
inodaf/elixir
e6390cadae4f6bc53a4bf93733372971a20438c5
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20180214005744_create_task.exs
inodaf/elixir
e6390cadae4f6bc53a4bf93733372971a20438c5
[ "Unlicense" ]
null
null
null
defmodule Taskr.Repo.Migrations.CreateTask do use Ecto.Migration def change do create table(:task) do add :description, :string end end end
16.1
45
0.701863
ff5e50e8a1e70fce2e3a8f39daf3890c39659595
344
exs
Elixir
priv/repo/seeds.exs
deadmp/wiki
29d98ed0517e26d2e3f1c75f70852bc7512d87fc
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
deadmp/wiki
29d98ed0517e26d2e3f1c75f70852bc7512d87fc
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
deadmp/wiki
29d98ed0517e26d2e3f1c75f70852bc7512d87fc
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Wiki.Repo.insert!(%Wiki.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail i...
28.666667
61
0.700581
ff5e569130041463f316669d8d83a0a744fa2e6b
151
ex
Elixir
lib/web/views/document_view.ex
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
5
2019-08-29T20:22:25.000Z
2020-04-01T17:40:48.000Z
lib/web/views/document_view.ex
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
34
2019-03-06T17:53:29.000Z
2021-09-01T01:25:23.000Z
lib/web/views/document_view.ex
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
2
2020-01-10T22:12:36.000Z
2021-01-22T04:37:45.000Z
defmodule Web.DocumentView do use Web, :view def render("show.json", %{document: document}) do Map.take(document, [:id, :filename]) end end
18.875
51
0.675497
ff5e7cdb8a5994d4d81aef8951633abc09047a7f
1,046
ex
Elixir
lib/web/webhook_parser_plug.ex
saifelse/bors-ng
031ecd3474b7c7dc72462a708e120c28cf13b3ad
[ "Apache-2.0" ]
null
null
null
lib/web/webhook_parser_plug.ex
saifelse/bors-ng
031ecd3474b7c7dc72462a708e120c28cf13b3ad
[ "Apache-2.0" ]
71
2021-07-06T15:27:45.000Z
2021-07-07T14:20:40.000Z
lib/web/webhook_parser_plug.ex
saifelse/bors-ng
031ecd3474b7c7dc72462a708e120c28cf13b3ad
[ "Apache-2.0" ]
null
null
null
defmodule BorsNG.WebhookParserPlug do @moduledoc """ Parse the GitHub webhook payload (as JSON) and verify the HMAC-SHA1 signature. """ import Plug.Conn def init(options) do options end def call(conn, options) do if conn.path_info == ["webhook", "github"] do key = Keyword.get(options, :se...
20.115385
80
0.57457
ff5eb0e8b13f1bf461540c4e3e9b296eda67b860
3,176
ex
Elixir
lib/commanded/registration/horde_registry.ex
uberbrodt/commanded_horde_registry
2ecb1dfe90b6eba49bd9b2f012d425cf3e9ff1c7
[ "MIT" ]
5
2019-05-10T16:34:44.000Z
2019-12-07T15:51:47.000Z
lib/commanded/registration/horde_registry.ex
uberbrodt/commanded_horde_registry
2ecb1dfe90b6eba49bd9b2f012d425cf3e9ff1c7
[ "MIT" ]
4
2019-07-04T09:22:19.000Z
2020-01-31T04:59:51.000Z
lib/commanded/registration/horde_registry.ex
uberbrodt/commanded_horde_registry
2ecb1dfe90b6eba49bd9b2f012d425cf3e9ff1c7
[ "MIT" ]
4
2019-09-04T10:00:07.000Z
2020-08-13T17:26:26.000Z
defmodule Commanded.Registration.HordeRegistry do import Commanded.Registration.HordeRegistry.Util alias Commanded.Registration.HordeRegistry.NodeListener require Logger @moduledoc """ Process registration and distribution via [Horde](https://github.com/derekkraan/horde) In order to use this, you will nee...
29.137615
96
0.698992
ff5f09c6850d6822bea4e9bf0a3ecc3568ba3752
925
ex
Elixir
lib/tensorflow/core/protobuf/tensorflow_server.pb.ex
pylon/extensor
57eba1660952d94416152531e159abd6b1faaee9
[ "Apache-2.0" ]
58
2018-06-12T00:01:51.000Z
2022-01-30T17:29:42.000Z
lib/tensorflow/core/protobuf/tensorflow_server.pb.ex
pylon/extensor
57eba1660952d94416152531e159abd6b1faaee9
[ "Apache-2.0" ]
9
2018-06-13T19:33:39.000Z
2020-02-17T17:24:15.000Z
lib/tensorflow/core/protobuf/tensorflow_server.pb.ex
pylon/extensor
57eba1660952d94416152531e159abd6b1faaee9
[ "Apache-2.0" ]
3
2018-06-13T19:45:36.000Z
2021-05-16T17:40:08.000Z
defmodule Tensorflow.ServerDef do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ cluster: Tensorflow.ClusterDef.t() | nil, job_name: String.t(), task_index: integer, default_session_config: Tensorflow.ConfigProto.t() | nil, protocol: Strin...
28.90625
75
0.660541
ff5f0e1f93d3b5cd6b62bb4e2025aa4acff04fa4
2,598
exs
Elixir
elixir/all-your-base/test/all_your_base_test.exs
herminiotorres/exercism
82173fcf1f09c27da0134f746a799840aa5eac05
[ "MIT" ]
null
null
null
elixir/all-your-base/test/all_your_base_test.exs
herminiotorres/exercism
82173fcf1f09c27da0134f746a799840aa5eac05
[ "MIT" ]
null
null
null
elixir/all-your-base/test/all_your_base_test.exs
herminiotorres/exercism
82173fcf1f09c27da0134f746a799840aa5eac05
[ "MIT" ]
1
2021-03-15T11:02:40.000Z
2021-03-15T11:02:40.000Z
defmodule AllYourBaseTest do use ExUnit.Case test "convert single bit one to decimal" do assert AllYourBase.convert([1], 2, 10) == [1] end # @tag :pending test "convert binary to single decimal" do assert AllYourBase.convert([1, 0, 1], 2, 10) == [5] end # @tag :pending test "convert single de...
24.055556
67
0.618168
ff5f3298f4de560c37c618829671b49d3ae064eb
2,009
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/activities.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/v33/model/activities.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/v33/model/activities.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.90566
219
0.720757
ff5f36d8772fdc4d05e566c26778c5a7410168d7
2,799
ex
Elixir
apps/omg_conformance/test/support/conformance/merkle_proofs.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_conformance/test/support/conformance/merkle_proofs.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_conformance/test/support/conformance/merkle_proofs.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 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 ...
37.32
113
0.72383
ff5f4066357b7cc5e76b6927d9f37aa046f22aa2
794
ex
Elixir
domotic_firmware/lib/domotic_firmware/temperature/probe/ds18b20.ex
gcauchon/domotic-pi
af61102fb946670b3e5ec93def6a5c053d894e79
[ "MIT" ]
1
2020-06-11T17:53:20.000Z
2020-06-11T17:53:20.000Z
domotic_firmware/lib/domotic_firmware/temperature/probe/ds18b20.ex
gcauchon/domotic-pi
af61102fb946670b3e5ec93def6a5c053d894e79
[ "MIT" ]
9
2020-12-15T21:19:59.000Z
2021-11-23T13:23:11.000Z
domotic_firmware/lib/domotic_firmware/temperature/probe/ds18b20.ex
gcauchon/domotic-pi
af61102fb946670b3e5ec93def6a5c053d894e79
[ "MIT" ]
1
2021-03-10T15:31:01.000Z
2021-03-10T15:31:01.000Z
defmodule DomoticFirmware.Temperature.Probe.DS18B20 do @behaviour Domotic.Temperature.Probe.Behaviour @base_dir "/sys/bus/w1/devices" def read do with sensor_id <- get_sensor_id(), data <- read_sensor_data(sensor_id), {temp, _} when is_integer(temp) <- parse_temperature(data) do {:ok...
25.612903
88
0.638539
ff5f8b3043033e181e04fbb5fb32e6be7d44974d
2,381
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/status.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/status.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/status.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 ...
38.403226
134
0.715246