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
d51555257a932cf150e4bfd90df62188751657cd
1,092
exs
Elixir
config/config.exs
faridghafoori/phoenix-api-project
4593f514150d7b61623f00be6f637f4eec378ffe
[ "MIT" ]
null
null
null
config/config.exs
faridghafoori/phoenix-api-project
4593f514150d7b61623f00be6f637f4eec378ffe
[ "MIT" ]
null
null
null
config/config.exs
faridghafoori/phoenix-api-project
4593f514150d7b61623f00be6f637f4eec378ffe
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :phoenix_api_project, ecto_repos: [Phoe...
34.125
90
0.78022
d515577c29f24fb308040ece331f399665accff2
2,101
ex
Elixir
clients/translate/lib/google_api/translate/v3/model/translate_text_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/translate/lib/google_api/translate/v3/model/translate_text_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/translate/lib/google_api/translate/v3/model/translate_text_response.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...
37.517857
178
0.736792
d5155c8f7269d161dadd3909906c6270d493d048
768
ex
Elixir
lib/kaffe.ex
jgaviria/kaffe
f7d54086bb7062c62cb012a1f73359843a0a625b
[ "MIT" ]
130
2017-03-31T14:44:34.000Z
2022-02-14T21:16:40.000Z
lib/kaffe.ex
jgaviria/kaffe
f7d54086bb7062c62cb012a1f73359843a0a625b
[ "MIT" ]
87
2017-04-04T19:47:05.000Z
2022-03-21T05:27:09.000Z
lib/kaffe.ex
jgaviria/kaffe
f7d54086bb7062c62cb012a1f73359843a0a625b
[ "MIT" ]
56
2017-06-24T13:24:27.000Z
2022-03-14T12:10:01.000Z
defmodule Kaffe do @moduledoc """ An opinionated, highly specific, Elixir wrapper around brod: the Erlang Kafka client. :coffee: **NOTE**: Although we're using this in production at Spreedly it is still under active development. The API may change and there may be serious bugs we've yet to encounter. """ us...
27.428571
174
0.716146
d51575a6ac82926b9654f5d5f58f907ba437b07e
451
exs
Elixir
sieve/example.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/sieve/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/sieve/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule Sieve do @doc """ Generates a list of primes up to a given limit. """ @spec primes_to(non_neg_integer) :: [non_neg_integer] def primes_to(limit) do Enum.to_list(2..limit) |> do_primes([]) |> Enum.reverse end defp do_primes([], primes), do: primes defp do_primes([ candidate | rest ], prim...
25.055556
62
0.658537
d51582a51c321efeef039d35520df4ca57a14844
7,804
ex
Elixir
lib/elixir/lib/kernel/parallel_compiler.ex
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/parallel_compiler.ex
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/parallel_compiler.ex
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.ParallelCompiler do @moduledoc """ A module responsible for compiling files in parallel. """ @doc """ Compiles the given files. Those files are compiled in parallel and can automatically detect dependencies between them. Once a dependency is found, the current file stops being compile...
39.02
134
0.659149
d515a296e790dfa17d11f495fe99fd733b397b70
2,979
ex
Elixir
lib/google_api/storage/v1/api/channels.ex
DinaWork/google-api-storage
4ad1e5716e4f2a4e85b91dc1aaf93ac13096c9a2
[ "Apache-2.0" ]
null
null
null
lib/google_api/storage/v1/api/channels.ex
DinaWork/google-api-storage
4ad1e5716e4f2a4e85b91dc1aaf93ac13096c9a2
[ "Apache-2.0" ]
null
null
null
lib/google_api/storage/v1/api/channels.ex
DinaWork/google-api-storage
4ad1e5716e4f2a4e85b91dc1aaf93ac13096c9a2
[ "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.197368
187
0.659953
d515b0d8abf2ba62d16b7369a086ce48cdf3880d
1,820
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/authorized_domain.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/authorized_domain.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/authorized_domain.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 ...
36.4
181
0.732967
d516004ec248ad04cca110aead4cd2b96a4e1212
990
ex
Elixir
lib/koans/05_tuples.ex
MIIIG/elixir-koans
e273edcd4e91856532367dce163abcae1243234f
[ "MIT" ]
null
null
null
lib/koans/05_tuples.ex
MIIIG/elixir-koans
e273edcd4e91856532367dce163abcae1243234f
[ "MIT" ]
null
null
null
lib/koans/05_tuples.ex
MIIIG/elixir-koans
e273edcd4e91856532367dce163abcae1243234f
[ "MIT" ]
null
null
null
defmodule Tuples do use Koans @intro "Tuples" koan "Tuples can contain different things" do assert {:a, 1, "hi"} == {:a, 1, "hi"} end koan "Tuples have a size" do assert tuple_size({:a, :b, :c}) == 3 end koan "You can pull out individual elements" do assert elem({:a, "hi"}, 1) == "hi" ...
26.052632
88
0.591919
d516086c775931584ede0630aa0c519d365dabf2
3,284
ex
Elixir
lib/nfl_player_searchex/player.ex
krmannix/nfl-player-searchex
2644f5927adda27d5a394a397baedab3d0db785a
[ "MIT" ]
5
2017-07-05T13:36:25.000Z
2021-08-06T05:21:01.000Z
lib/nfl_player_searchex/player.ex
krmannix/nfl_player_searchex
2644f5927adda27d5a394a397baedab3d0db785a
[ "MIT" ]
null
null
null
lib/nfl_player_searchex/player.ex
krmannix/nfl_player_searchex
2644f5927adda27d5a394a397baedab3d0db785a
[ "MIT" ]
null
null
null
defmodule NFLPlayerSearchex.Player do @moduledoc false def build_player_from_row({_, _, player_cells}) do build_player_from_cells(player_cells) end # clean this up. look at filter_map defp build_player_from_cells(cells) do Enum.map_every(4..11, 2, &build_player_stat_from_cell(cells, &1)) |> Enum...
39.566265
136
0.721985
d5165fdda702332a3d848b37397c3688683e91af
70
exs
Elixir
apps/red_robin_web/test/test_helper.exs
3zcurdia/red_robin
a4aa6870d6bde05c95d375913311ecb392f7c44c
[ "MIT" ]
null
null
null
apps/red_robin_web/test/test_helper.exs
3zcurdia/red_robin
a4aa6870d6bde05c95d375913311ecb392f7c44c
[ "MIT" ]
null
null
null
apps/red_robin_web/test/test_helper.exs
3zcurdia/red_robin
a4aa6870d6bde05c95d375913311ecb392f7c44c
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(RedRobin.Repo, :manual)
23.333333
54
0.785714
d516640cb8d9cc5ed25ea4a602ad01d498cf974e
21,098
exs
Elixir
test/lib/bamboo/adapters/send_grid_adapter_test.exs
Raulkumar/bamboo
0fcff1bf61e595eb821bc691ed9370b6a092afbf
[ "MIT" ]
1
2021-12-01T13:37:19.000Z
2021-12-01T13:37:19.000Z
test/lib/bamboo/adapters/send_grid_adapter_test.exs
Raulkumar/bamboo
0fcff1bf61e595eb821bc691ed9370b6a092afbf
[ "MIT" ]
1
2021-02-23T18:44:13.000Z
2021-02-23T18:44:13.000Z
test/lib/bamboo/adapters/send_grid_adapter_test.exs
Raulkumar/bamboo
0fcff1bf61e595eb821bc691ed9370b6a092afbf
[ "MIT" ]
1
2017-02-01T19:23:06.000Z
2017-02-01T19:23:06.000Z
defmodule Bamboo.SendGridAdapterTest do use ExUnit.Case alias Bamboo.Email alias Bamboo.SendGridAdapter alias Bamboo.Test.User @good_api_key "123_abc" @config %{adapter: SendGridAdapter, api_key: @good_api_key} @config_with_bad_key %{adapter: SendGridAdapter, api_key: nil} @config_with_env_var_key %{ad...
31.536622
97
0.608731
d5168fd2ee70864ee83d4b14d6f2a0c517662982
18,134
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/advertiser_landing_pages.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/advertiser_landing_pages.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/advertiser_landing_pages.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...
44.337408
518
0.617955
d516b580fdc84502df73818af7c8a37a0cc88e96
3,767
ex
Elixir
clients/vision/lib/google_api/vision/v1/api/locations.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/api/locations.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/api/locations.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...
43.298851
196
0.653305
d5170b609497cc2d619dd0d3e836dc67a909cbd4
544
ex
Elixir
lib/elixir_boilerplate/application.ex
zenbaku/calibur
dd7412fc93491ae1e86adaae0e683e5192ab5e11
[ "BSD-3-Clause" ]
null
null
null
lib/elixir_boilerplate/application.ex
zenbaku/calibur
dd7412fc93491ae1e86adaae0e683e5192ab5e11
[ "BSD-3-Clause" ]
13
2020-07-19T02:33:09.000Z
2021-06-16T04:39:04.000Z
lib/elixir_boilerplate/application.ex
togmund/elixir-boilerplate
087254495773cd58d53a02c7c186b5678d60c757
[ "BSD-3-Clause" ]
null
null
null
defmodule ElixirBoilerplate.Application do @moduledoc """ Main entry point of the app """ use Application def start(_type, _args) do children = [ ElixirBoilerplate.Repo, ElixirBoilerplateWeb.Endpoint ] {:ok, _} = Logger.add_backend(Sentry.LoggerBackend) opts = [strategy: :one_f...
21.76
71
0.713235
d5172b05e823c2b17480b6ae705abd44689285c3
8,847
exs
Elixir
apps/language_server/test/providers/completion_test.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
1
2020-06-01T11:25:33.000Z
2020-06-01T11:25:33.000Z
apps/language_server/test/providers/completion_test.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/providers/completion_test.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Providers.CompletionTest do use ExUnit.Case require Logger alias ElixirLS.LanguageServer.Providers.Completion alias ElixirLS.Utils.TestUtils @supports [snippets_supported: true, deprecated_supported: false, tags_supported: []] test "returns all Logger completions on nor...
27.305556
97
0.561998
d51738a2fa458ae3796ca56a5fdf161df6094dca
1,767
ex
Elixir
apps/core/lib/core/email/email.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/lib/core/email/email.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/lib/core/email/email.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.Email do @moduledoc false import Ecto.Changeset import EView.Changeset.Validators.Email alias Core.Bamboo.Emails.Sender alias Core.Email.Schema alias Core.Man.Client, as: ManClient alias Ecto.Changeset def send(%{"id" => man_id, "to" => to} = attrs) do with receivers <- String.spli...
26.772727
108
0.622524
d517391d45a4e1dcc08f6405d568777143b02059
1,518
exs
Elixir
test/blogit/supervisor_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
39
2017-07-03T17:39:18.000Z
2021-05-01T14:17:42.000Z
test/blogit/supervisor_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
6
2017-11-07T22:00:19.000Z
2020-03-13T18:01:53.000Z
test/blogit/supervisor_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
6
2017-07-06T04:46:49.000Z
2020-03-06T02:39:33.000Z
defmodule Blogit.SupervisorTest do use ExUnit.Case, async: true alias Blogit.Components.Supervisor, as: Components setup_all do {:ok, pid} = Blogit.Supervisor.start_link(Blogit.RepositoryProviders.Memory) %{pid: pid} end test "Blogit.Supervisor.start_link starts a process", %{pid: pid} do asser...
25.728814
82
0.652833
d5174bec3c84b00341e76642d03e3fc0e2ca0957
3,541
ex
Elixir
lib/ex_aws/dynamo_streams.ex
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
lib/ex_aws/dynamo_streams.ex
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
lib/ex_aws/dynamo_streams.ex
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
defmodule ExAws.DynamoStreams do @moduledoc """ Operations on DynamoDB Streams http://docs.aws.amazon.com/dynamodbstreams/latest/APIReference/API_Operations.html NOTE: When Mix.env in [:test, :dev] dynamo clients will run by default against Dynamodb local. Enabling/Disabling streams on a table is perform...
28.103175
105
0.665066
d5176c5cb2b35aaf1e042366502c2065c4619a2e
6,006
ex
Elixir
lib/sanbase_web/graphql/dataloader/clickhouse_dataloader.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/dataloader/clickhouse_dataloader.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/dataloader/clickhouse_dataloader.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.ClickhouseDataloader do alias Sanbase.Clickhouse alias Sanbase.Model.Project alias Sanbase.Metric def data(), do: Dataloader.KV.new(&query/2) def query(:aggregated_metric, args) do args_list = args |> Enum.to_list() args_list |> Enum.group_by(fn %{selector: selector...
28.464455
94
0.622211
d5176e3e30e4a1369e06406268498a612edfed11
443
exs
Elixir
priv/repo/migrations/20190207223514_create_ipv4.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
12
2019-07-02T14:30:06.000Z
2022-03-12T08:22:18.000Z
priv/repo/migrations/20190207223514_create_ipv4.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
9
2020-03-16T20:10:50.000Z
2021-06-17T17:45:44.000Z
priv/repo/migrations/20190207223514_create_ipv4.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
null
null
null
defmodule Webapp.Repo.Migrations.CreateIpv4 do use Ecto.Migration def change do create table(:ipv4) do add(:ip, :inet) add(:reserved, :boolean) add(:ip_pool_id, references(:ip_pools, on_delete: :delete_all)) add(:machine_id, references(:machines, on_delete: :nilify_all)) timestam...
24.611111
69
0.670429
d5179901253d825f152221b3e32d266e5ffae716
744
exs
Elixir
elixir_in_action/ch05_concurrency_primitives/database.exs
shivam-tripathi/learningElixir
195af962dcd239230afd7732b88e577f26fc1eff
[ "MIT" ]
null
null
null
elixir_in_action/ch05_concurrency_primitives/database.exs
shivam-tripathi/learningElixir
195af962dcd239230afd7732b88e577f26fc1eff
[ "MIT" ]
null
null
null
elixir_in_action/ch05_concurrency_primitives/database.exs
shivam-tripathi/learningElixir
195af962dcd239230afd7732b88e577f26fc1eff
[ "MIT" ]
null
null
null
defmodule DatabaseServer do def start do connection = :rand.uniform(1000) spawn(fn -> loop(%{connection: connection}) end) end defp loop(state) do IO.inspect(state) receive do {:run_query, caller, query} -> state = Map.merge(%{query => true}, state) send(caller, {:query_res...
19.076923
55
0.600806
d517c7ef3ae5cfc5608b2820538c25f2ea14cf57
1,229
exs
Elixir
config/config.exs
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
config/config.exs
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
config/config.exs
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config # Configures the endpoint config :parques, ParquesWeb...
32.342105
117
0.723352
d517ef2329a627eb6915caa1ba2e423112afbab5
415
ex
Elixir
lib/remote_retro_web/controllers/page_controller.ex
codyduval/remote_retro_crd
b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247
[ "MIT" ]
null
null
null
lib/remote_retro_web/controllers/page_controller.ex
codyduval/remote_retro_crd
b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247
[ "MIT" ]
null
null
null
lib/remote_retro_web/controllers/page_controller.ex
codyduval/remote_retro_crd
b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247
[ "MIT" ]
null
null
null
defmodule RemoteRetroWeb.PageController do use RemoteRetroWeb, :controller def index(conn, _params) do current_user = get_session(conn, :current_user) case current_user do nil -> render(conn, "index.html", %{is_landing_page: true, omit_header: true}) _user -> redirect(conn, to...
20.75
79
0.657831
d517f4599df571cb9bef0b837a0e6170814ce454
31,950
exs
Elixir
lib/elixir/test/elixir/calendar/datetime_test.exs
fmterrorf/elixir
eafb7b87756179adac5dc2bc11edcb04c1f187cc
[ "Apache-2.0" ]
1
2022-03-28T12:04:08.000Z
2022-03-28T12:04:08.000Z
lib/elixir/test/elixir/calendar/datetime_test.exs
fmterrorf/elixir
eafb7b87756179adac5dc2bc11edcb04c1f187cc
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/calendar/datetime_test.exs
fmterrorf/elixir
eafb7b87756179adac5dc2bc11edcb04c1f187cc
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) Code.require_file("holocene.exs", __DIR__) Code.require_file("fakes.exs", __DIR__) defmodule DateTimeTest do use ExUnit.Case doctest DateTime test "sigil_U" do assert ~U[2000-01-01T12:34:56Z] == %DateTime{ calendar: Calendar.ISO, ...
30.603448
143
0.535117
d517f916c0ad557189ca8c3f3e68e922e86b29b0
156
ex
Elixir
examples/shopping/lib/shopping.ex
sobolevn/perhap
33cf2d1cfaaf8c19db927b70b6cbf9537fb9d295
[ "BSD-3-Clause" ]
118
2017-04-21T00:53:44.000Z
2022-01-26T21:13:55.000Z
examples/shopping/lib/shopping.ex
sobolevn/perhap
33cf2d1cfaaf8c19db927b70b6cbf9537fb9d295
[ "BSD-3-Clause" ]
1
2017-09-17T15:08:26.000Z
2017-09-17T15:14:38.000Z
examples/shopping/lib/shopping.ex
sobolevn/perhap
33cf2d1cfaaf8c19db927b70b6cbf9537fb9d295
[ "BSD-3-Clause" ]
8
2017-09-17T14:58:27.000Z
2019-01-17T12:04:09.000Z
defmodule Shopping do use Perhap, app: :shopping context :store, cart: [model: Shopping.Cart, events: [:item_added, :item_removed]] end
19.5
48
0.660256
d517fcfc0c57b654bd5605738b9a4b0dc69c219b
9,344
ex
Elixir
lib/absinthe/execution/variable.ex
scrogson/absinthe
aa7e9c83dc10603c72f80e09a60d12495bc1c6b7
[ "Unlicense" ]
1
2019-05-07T15:05:52.000Z
2019-05-07T15:05:52.000Z
lib/absinthe/execution/variable.ex
scrogson/absinthe
aa7e9c83dc10603c72f80e09a60d12495bc1c6b7
[ "Unlicense" ]
null
null
null
lib/absinthe/execution/variable.ex
scrogson/absinthe
aa7e9c83dc10603c72f80e09a60d12495bc1c6b7
[ "Unlicense" ]
null
null
null
defmodule Absinthe.Execution.Variable do @moduledoc false # Represents an meta variable defstruct value: nil, type_stack: nil alias Absinthe.Type alias Absinthe.Language alias Absinthe.Execution.Input alias Absinthe.Execution.Input.Meta # Non null checks here are about whether it's specified as non n...
42.09009
146
0.695634
d5180fe9025fe1ef6662618eb7258e7f4bffea0e
2,578
exs
Elixir
test/authority/ecto/hmac_test.exs
infinitered/authority_ecto
3d076b04c4ad4f5d5b89df990f91b45d1a45da19
[ "MIT" ]
11
2018-01-17T09:31:26.000Z
2019-03-11T03:20:50.000Z
test/authority/ecto/hmac_test.exs
infinitered/authority_ecto
3d076b04c4ad4f5d5b89df990f91b45d1a45da19
[ "MIT" ]
24
2018-01-17T00:13:38.000Z
2018-11-12T09:38:09.000Z
test/authority/ecto/hmac_test.exs
infinitered/authority_ecto
3d076b04c4ad4f5d5b89df990f91b45d1a45da19
[ "MIT" ]
3
2018-01-17T03:23:17.000Z
2019-03-11T03:20:47.000Z
defmodule Authority.Ecto.HMACTest do use ExUnit.Case, async: true alias Authority.Ecto.HMAC doctest Authority.Ecto.HMAC, import: true defmodule Type do use Authority.Ecto.HMAC, secret: "authority" end describe ".__using__/1" do test "raises error if no :secret specified" do assert_raise Ar...
27.136842
95
0.6346
d5182b78a305aa4e61c13a08c2c2c613737f5dde
776
exs
Elixir
prototypes/old_server/apps/server/mix.exs
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
5
2021-03-28T21:20:41.000Z
2021-07-02T22:46:29.000Z
prototypes/old_server/apps/server/mix.exs
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
null
null
null
prototypes/old_server/apps/server/mix.exs
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
null
null
null
defmodule Server.MixProject do use Mix.Project def project do [ app: :server, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.11", start_permanent: Mix.env() ...
22.823529
88
0.565722
d518335f9025211c2cd23d421d6c5404c150a5a7
1,209
ex
Elixir
lib/koans/02_strings.ex
colinwarmstrong/elixir-koans
a70f2a37865011546364a774ba9875a2ab87e272
[ "MIT" ]
1
2017-10-12T15:57:40.000Z
2017-10-12T15:57:40.000Z
lib/koans/02_strings.ex
colinwarmstrong/elixir-koans
a70f2a37865011546364a774ba9875a2ab87e272
[ "MIT" ]
null
null
null
lib/koans/02_strings.ex
colinwarmstrong/elixir-koans
a70f2a37865011546364a774ba9875a2ab87e272
[ "MIT" ]
null
null
null
defmodule Strings do use Koans @intro "Strings" koan "Strings are there to represent text" do assert "hello" == "hello" end koan "Values may be inserted into strings by interpolation" do assert "1 + 1 = #{1 + 1}" == "1 + 1 = 2" end koan "They can be put together" do assert "hello world" ==...
26.282609
87
0.659222
d51837e226c178b4b6b2356a4938f91ee7e3ee41
529
exs
Elixir
examples/ecto_job_demo/config/config.exs
thedelchop/ecto_job
0157d857e4436a35ebcc0a9f5cd4b28b33292f62
[ "MIT" ]
268
2017-08-15T12:55:41.000Z
2022-03-20T22:42:18.000Z
examples/ecto_job_demo/config/config.exs
thedelchop/ecto_job
0157d857e4436a35ebcc0a9f5cd4b28b33292f62
[ "MIT" ]
52
2018-01-15T20:47:54.000Z
2021-12-24T06:13:55.000Z
examples/ecto_job_demo/config/config.exs
thedelchop/ecto_job
0157d857e4436a35ebcc0a9f5cd4b28b33292f62
[ "MIT" ]
38
2018-01-08T12:26:19.000Z
2021-06-01T12:41:09.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :logger, :level, :debug config :ecto_job_demo, ecto_repos: [EctoJobDemo.Repo] config :ecto_job_demo, EctoJobDemo.Repo, adapter: Ecto.Adapters.Postgres, username: "postgr...
23
61
0.724008
d5183bc7388feb8e89b67119bb8d73c53fcb3410
3,434
ex
Elixir
lib/mmdb2.ex
almirsarajcic/adapter_mmdb2
f50dfce125ad18e967ec4650b4e50391640cedee
[ "Apache-2.0" ]
null
null
null
lib/mmdb2.ex
almirsarajcic/adapter_mmdb2
f50dfce125ad18e967ec4650b4e50391640cedee
[ "Apache-2.0" ]
null
null
null
lib/mmdb2.ex
almirsarajcic/adapter_mmdb2
f50dfce125ad18e967ec4650b4e50391640cedee
[ "Apache-2.0" ]
null
null
null
defmodule Geolix.Adapter.MMDB2 do @moduledoc """ Adapter for Geolix to work with MMDB2 databases. ## Adapter Configuration To start using the adapter with a compatible database you need to add the required configuration entry to your `:geolix` configuration: config :geolix, databases: [ ...
28.616667
112
0.647932
d518575168374acbed1ca64b3c6dc595e74f6282
1,030
ex
Elixir
lib/model/statesql.ex
diodechain/diode_server
1692788bd92cc17654965878abd059d13b5e236c
[ "Apache-2.0" ]
8
2021-03-12T15:35:09.000Z
2022-03-06T06:37:49.000Z
lib/model/statesql.ex
diodechain/diode_server_ex
5cf47e5253a0caafd335d0af4dba711d4dcad42d
[ "Apache-2.0" ]
15
2019-09-06T07:58:01.000Z
2021-03-06T17:04:46.000Z
lib/model/statesql.ex
diodechain/diode_server
1692788bd92cc17654965878abd059d13b5e236c
[ "Apache-2.0" ]
5
2021-10-01T12:52:28.000Z
2022-02-02T19:29:56.000Z
# Diode Server # Copyright 2021 Diode # Licensed under the Diode License, Version 1.1 defmodule Model.StateSql do alias Model.Sql defp query!(sql, params \\ []) do Sql.query!(__MODULE__, sql, params) end def init() do EtsLru.new(__MODULE__, 1000) query!(""" CREATE TABLE IF NOT EXISTS stat...
22.391304
97
0.629126
d518828ffc1768154c809806b3557f132a6fcc18
7,792
ex
Elixir
lib/exqueue/queue.ex
trustcor/exqueue
b122d99080373eb802e0e5d9fa11c05975eabc7b
[ "MIT" ]
null
null
null
lib/exqueue/queue.ex
trustcor/exqueue
b122d99080373eb802e0e5d9fa11c05975eabc7b
[ "MIT" ]
null
null
null
lib/exqueue/queue.ex
trustcor/exqueue
b122d99080373eb802e0e5d9fa11c05975eabc7b
[ "MIT" ]
null
null
null
defmodule ExQueue.Queue do @moduledoc """ Top level abstraction for API """ import Logger, only: [log: 2] use GenServer def init([qa]) do {:ok, qa} end def start_link(qa) do GenServer.start_link(__MODULE__, [qa], name: __MODULE__) end defp nodename(qa), do: Agent.get(qa, fn m -> Map.get...
38.384236
143
0.506289
d51885b8587555ca7f85ca638c7d3ad30782a13a
257
ex
Elixir
lib/advent2019.ex
neslinesli93/advent-of-code-2019-phoenix-react
d7523d0bda5581990c21e8113e5c78c4f0ff921a
[ "MIT" ]
5
2019-12-02T08:50:54.000Z
2021-03-31T22:54:20.000Z
lib/advent2019.ex
neslinesli93/advent-of-code-2019-phoenix-react
d7523d0bda5581990c21e8113e5c78c4f0ff921a
[ "MIT" ]
1
2019-12-18T07:19:26.000Z
2019-12-18T07:19:26.000Z
lib/advent2019.ex
neslinesli93/advent-of-code-2019-phoenix-react
d7523d0bda5581990c21e8113e5c78c4f0ff921a
[ "MIT" ]
2
2019-12-16T07:52:16.000Z
2019-12-17T17:49:05.000Z
defmodule Advent2019 do @moduledoc """ Advent2019 keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
25.7
66
0.758755
d5188b1538e1c82fb2427d1b3a4a0979c3698220
2,207
ex
Elixir
apps/tai/lib/tai/markets/quote.ex
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/lib/tai/markets/quote.ex
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/lib/tai/markets/quote.ex
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.Markets.Quote do @moduledoc """ Represents the inside bid & ask price point within the order book """ alias __MODULE__ alias Tai.Markets.PricePoint @type price_point :: PricePoint.t() @type venue_id :: Tai.Venue.id() @type product_symbol :: Tai.Venues.Product.symbol() @type t :: %Quote...
31.084507
96
0.647032
d5188cbb95e8d257a5d1e8e65559dfef39fd0203
1,384
ex
Elixir
app/test/support/data_case.ex
wsams/tixir
27661173dfe388c57037b4014c527afc8a4a3952
[ "Apache-2.0" ]
null
null
null
app/test/support/data_case.ex
wsams/tixir
27661173dfe388c57037b4014c527afc8a4a3952
[ "Apache-2.0" ]
1
2019-09-29T06:50:49.000Z
2019-09-29T06:50:49.000Z
app/test/support/data_case.ex
wsams/tixir
27661173dfe388c57037b4014c527afc8a4a3952
[ "Apache-2.0" ]
null
null
null
defmodule App.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, it cannot be async. For this reason, every test run...
25.62963
77
0.674855
d5189ca417971509873f4e9b257635de1beaffb1
106,559
ex
Elixir
lib/elixir/lib/enum.ex
IvanRublev/elixir
1ce201aa1ebbfc1666c4e4bde64f706a89629d59
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
IvanRublev/elixir
1ce201aa1ebbfc1666c4e4bde64f706a89629d59
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
IvanRublev/elixir
1ce201aa1ebbfc1666c4e4bde64f706a89629d59
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression: Enum.map([1, 2, 3], &(&1 * 2)) invokes `Enume...
28.468875
105
0.616851
d518c749469713f8a112195e1f67058fa948f368
1,703
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_request.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_request.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_request.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.234043
288
0.747504
d518e99b1db44b52f19537f2796fb8d15b5350ae
30,768
ex
Elixir
lib/trunk.ex
jnylen/trunk
f644f2c6556dfd6152d726e6f29b955ac1aa0ce5
[ "MIT" ]
null
null
null
lib/trunk.ex
jnylen/trunk
f644f2c6556dfd6152d726e6f29b955ac1aa0ce5
[ "MIT" ]
null
null
null
lib/trunk.ex
jnylen/trunk
f644f2c6556dfd6152d726e6f29b955ac1aa0ce5
[ "MIT" ]
null
null
null
defmodule Trunk do @moduledoc """ A `Trunk` is a module used to handle the transformation and storage of files with multiple versions. ## Usage: To generate a `Trunk` call `use Trunk` and supply options to configure the specific behaviour you need. ``` defmodule MyTrunk do use Trunk, versions: [:origin...
44.206897
344
0.661889
d518f8b98e2b3bb5d6e11637ac3a3502b86c49f3
13,404
ex
Elixir
lib/stellar/base/operation.ex
turbo-play/elixir-stellar-sdk
ed0711d69493ed2723a1197120667a7fa2c97f9f
[ "MIT" ]
1
2019-12-19T14:12:20.000Z
2019-12-19T14:12:20.000Z
lib/stellar/base/operation.ex
turbo-play/elixir-stellar-sdk
ed0711d69493ed2723a1197120667a7fa2c97f9f
[ "MIT" ]
null
null
null
lib/stellar/base/operation.ex
turbo-play/elixir-stellar-sdk
ed0711d69493ed2723a1197120667a7fa2c97f9f
[ "MIT" ]
4
2019-10-09T20:58:35.000Z
2021-12-06T23:00:46.000Z
defmodule Stellar.Base.Operation do # https://github.com/stellar/js-stellar-base/tree/master/src/operations alias Stellar.Base.{KeyPair, Asset, StrKey} alias Stellar.XDR.Types.Transaction.{ CreateAccountOp, PaymentOp, AllowTrustOp, ChangeTrustOp, BumpSequenceOp, PathPaymentOp, Operati...
30.053812
91
0.60288
d518ff1fde566d9b559840f3cae5ed0906ce46f2
8,759
ex
Elixir
lib/cforum_web/views/message_view.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
lib/cforum_web/views/message_view.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
lib/cforum_web/views/message_view.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
defmodule CforumWeb.MessageView do use CforumWeb, :view use Cforum.Constants alias Cforum.Threads.Thread alias Cforum.Messages.Message alias Cforum.Subscriptions alias Cforum.Messages.MessageHelpers alias CforumWeb.VotingAreaView alias Cforum.Abilities alias Cforum.ConfigManager alias Cforum.Help...
34.896414
120
0.665715
d51915f2f5772b5a611abb57ca5da18f963cb12a
1,117
exs
Elixir
config/config.exs
dee-money/soap
a2b81da7ba0a4fc013cf91dd60d108129a9629a0
[ "MIT" ]
null
null
null
config/config.exs
dee-money/soap
a2b81da7ba0a4fc013cf91dd60d108129a9629a0
[ "MIT" ]
null
null
null
config/config.exs
dee-money/soap
a2b81da7ba0a4fc013cf91dd60d108129a9629a0
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.032258
73
0.750224
d519221663306fa88d4e89523eaa73a27022c5a7
15,199
ex
Elixir
lib/aws/generated/emrcontainers.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/emrcontainers.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/emrcontainers.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "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.EMRcontainers do @moduledoc """ Amazon EMR on EKS provides a deployment option for Amazon EMR that allows you to run open-source big data frameworks on Amazon Elastic Kubernetes Service (Ama...
25.761017
166
0.633857
d519371f9c78d11a54135141e170cf6c9364810b
631
exs
Elixir
test/nerves_hub_link/configurator_test.exs
ahsf/nerves_hub_link
82540ff808a4e522f8a30b31eecc11e871326eba
[ "Apache-2.0" ]
null
null
null
test/nerves_hub_link/configurator_test.exs
ahsf/nerves_hub_link
82540ff808a4e522f8a30b31eecc11e871326eba
[ "Apache-2.0" ]
null
null
null
test/nerves_hub_link/configurator_test.exs
ahsf/nerves_hub_link
82540ff808a4e522f8a30b31eecc11e871326eba
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubLink.ConfiguratorTest do use ExUnit.Case, async: true test "inserts socket_opts from ssl" do ssl = [ cert: "ima cert!", key: "ima key!", cacerts: ["Everyone", "gets", "a", "CA"], server_name_indication: "waddup", verify: :verify_peer ] Application.put_e...
26.291667
62
0.673534
d519439782390ffd3fbb23778b0c315f7810c579
59
ex
Elixir
phoenix/web/views/page_view.ex
pfac/generated
3611d887bb4eba1ef63b1f16ed1dba54ce94f341
[ "MIT" ]
null
null
null
phoenix/web/views/page_view.ex
pfac/generated
3611d887bb4eba1ef63b1f16ed1dba54ce94f341
[ "MIT" ]
null
null
null
phoenix/web/views/page_view.ex
pfac/generated
3611d887bb4eba1ef63b1f16ed1dba54ce94f341
[ "MIT" ]
null
null
null
defmodule Phoenix.PageView do use Phoenix.Web, :view end
14.75
29
0.779661
d5196e14eed504649a913d3390974a23dc918dff
982
exs
Elixir
sample/config/config.exs
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
37
2021-01-31T17:43:03.000Z
2021-11-17T12:29:00.000Z
sample/config/config.exs
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
4
2021-05-29T04:54:28.000Z
2021-06-26T20:40:48.000Z
sample/config/config.exs
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config # Configures the endpoint config :sample, Sample...
33.862069
86
0.769857
d519c907e104080ff99777d32d3718734cc831de
983
exs
Elixir
test/screens_web/user_agent.exs
mbta/screens
4b586970f8844b19543bb2ffd4b032a89f6fa40a
[ "MIT" ]
3
2021-07-27T14:11:00.000Z
2022-01-03T14:16:43.000Z
test/screens_web/user_agent.exs
mbta/screens
4b586970f8844b19543bb2ffd4b032a89f6fa40a
[ "MIT" ]
444
2021-03-10T20:57:17.000Z
2022-03-31T16:00:35.000Z
test/screens_web/user_agent.exs
mbta/screens
4b586970f8844b19543bb2ffd4b032a89f6fa40a
[ "MIT" ]
null
null
null
defmodule ScreensWeb.UserAgentTest do use ScreensWeb.ConnCase describe "is_screen_conn?/2" do test "returns true if is_real_screen query param is set to true" do conn = :get |> build_conn("/v2/api/screen/1", %{"is_real_screen" => "true"}) |> put_req_header("user-agent", "fake") ...
29.787879
104
0.634791
d519d5463a2092871a85175c7f19fa2aebcc83db
2,553
ex
Elixir
lib/float.ex
curoles/elixir-numy
70af10cd65c26f8a4df0734c8612c6426b4ce86d
[ "MIT" ]
null
null
null
lib/float.ex
curoles/elixir-numy
70af10cd65c26f8a4df0734c8612c6426b4ce86d
[ "MIT" ]
null
null
null
lib/float.ex
curoles/elixir-numy
70af10cd65c26f8a4df0734c8612c6426b4ce86d
[ "MIT" ]
null
null
null
defmodule Numy.Float do @moduledoc """ Floating point number utilities. """ @spec from_number(number) :: float def from_number(n) do n / 1 # idiomatic way to convert a number to float end @spec sign(number) :: -1 | 0 | 1 def sign(0), do: 0 def sign(0.0), do: 0 def sign(x) when x < 0, do: -1 ...
26.319588
96
0.617705
d51a403156a54af1351df85662a1eb9c6f49f273
13,101
ex
Elixir
lib/elasticsearch.ex
andrewvy/elasticsearch-elixir
b2bed7d39bd5d5ad67ebe19bed9af428c3d1fdd3
[ "MIT" ]
null
null
null
lib/elasticsearch.ex
andrewvy/elasticsearch-elixir
b2bed7d39bd5d5ad67ebe19bed9af428c3d1fdd3
[ "MIT" ]
null
null
null
lib/elasticsearch.ex
andrewvy/elasticsearch-elixir
b2bed7d39bd5d5ad67ebe19bed9af428c3d1fdd3
[ "MIT" ]
null
null
null
defmodule Elasticsearch do @moduledoc """ Entry-point for interacting with your Elasticsearch cluster(s). You should configure at least one `Elasticsearch.Cluster` in order to use the functions in this module, or else you'll need to pass all the configuration for the cluster into each function call. """ ...
31.72155
109
0.577361
d51a440c2585b112435ce563b40d77111360c65f
1,774
exs
Elixir
config/prod.exs
NinjasCL/birds
c5c102c800f5d2c61e155b52714ecff3a6b67fed
[ "BSD-2-Clause" ]
null
null
null
config/prod.exs
NinjasCL/birds
c5c102c800f5d2c61e155b52714ecff3a6b67fed
[ "BSD-2-Clause" ]
null
null
null
config/prod.exs
NinjasCL/birds
c5c102c800f5d2c61e155b52714ecff3a6b67fed
[ "BSD-2-Clause" ]
null
null
null
import Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # w...
35.48
90
0.70575
d51a4c21d4d46cd92c0602f4b84d1bfa90a7091d
12,947
ex
Elixir
lib/ex_admin/index.ex
spunkedy/ex_admin
a576bead2a030f3dfe7abec0ff610809eb0db06f
[ "MIT" ]
23
2018-04-10T07:45:48.000Z
2019-12-31T01:11:07.000Z
lib/ex_admin/index.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
115
2018-04-15T14:11:18.000Z
2021-08-01T11:20:34.000Z
lib/ex_admin/index.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
15
2018-10-04T19:09:00.000Z
2020-06-25T16:02:30.000Z
defmodule ExAdmin.Index do @moduledoc """ Override the default index page for an ExAdmin resource By default, ExAdmin renders the index table without any additional configuration. It renders each column in the model, except the id, inserted_at, and updated_at columns. ## Default Table Type ExAdmin disp...
27.372093
101
0.597899
d51ad6e697ceede488f92069a9479ddc85f2a020
1,729
ex
Elixir
apps/andi/lib/andi_web/auth/ensure_access_level_for_route.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/lib/andi_web/auth/ensure_access_level_for_route.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/lib/andi_web/auth/ensure_access_level_for_route.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule AndiWeb.Auth.EnsureAccessLevelForRoute do @moduledoc """ Ensures that target controllers and live views have opted-in for the current access level """ import Plug.Conn require Logger def init(opts) do if Keyword.has_key?(opts, :router) do opts else raise("Missing required opt...
25.80597
122
0.649508
d51ae903f204b6e7af55222918d2043bfa648669
4,843
ex
Elixir
lib/sue/db/defn.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
1
2020-06-21T01:50:12.000Z
2020-06-21T01:50:12.000Z
lib/sue/db/defn.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
lib/sue/db/defn.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
defmodule Sue.DB.Defn do alias :mnesia, as: Mnesia alias Sue.DB alias Sue.Models.{Account, Chat} def db_tables() do [ { :defns, [ type: :bag, attributes: [:var, :val, :account, :chat, :date], index: [:account, :chat] ] } ] end @spec...
27.99422
88
0.521784
d51b0e5e69c31b23a69b878ba594ff0b3c814b0f
1,799
ex
Elixir
clients/workflows/lib/google_api/workflows/v1beta/model/list_locations_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/workflows/lib/google_api/workflows/v1beta/model/list_locations_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/workflows/lib/google_api/workflows/v1beta/model/list_locations_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.98
169
0.742079
d51b15b0da91036de88d5fff545bb1d1ae7fc051
6,546
ex
Elixir
lib/battleship/pirate.ex
utkr98jais/phoenix-battleship
53b43d44a69c5acb4b452b793cce64980a0302df
[ "MIT" ]
569
2016-04-21T09:25:49.000Z
2022-03-13T22:56:18.000Z
lib/battleship/pirate.ex
utkr98jais/phoenix-battleship
53b43d44a69c5acb4b452b793cce64980a0302df
[ "MIT" ]
10
2016-04-22T05:33:43.000Z
2018-04-19T21:51:27.000Z
lib/battleship/pirate.ex
utkr98jais/phoenix-battleship
53b43d44a69c5acb4b452b793cce64980a0302df
[ "MIT" ]
80
2016-04-21T18:53:25.000Z
2020-12-01T13:32:17.000Z
defmodule Battleship.Pirate do @moduledoc """ Pirate stuff """ @pirate_words [ "ahoy", "matey", # Source: https://github.com/mikewesthad/pirate-speak/blob/master/lib/pirate-speak.js "helm", "grog", "vast", "coin", "coins", "admiral", "rum", "barrel", "lad", ...
20.649842
91
0.569203
d51b86ddc1174d9a9df7d746237e11e2cf81ce2c
12,533
exs
Elixir
test/queuetopia/scheduler_test.exs
tailcalldev/pg_queuetopia
ea18c6a7633a78cc82473b9b60da205454009af4
[ "MIT" ]
null
null
null
test/queuetopia/scheduler_test.exs
tailcalldev/pg_queuetopia
ea18c6a7633a78cc82473b9b60da205454009af4
[ "MIT" ]
null
null
null
test/queuetopia/scheduler_test.exs
tailcalldev/pg_queuetopia
ea18c6a7633a78cc82473b9b60da205454009af4
[ "MIT" ]
null
null
null
defmodule PgQueuetopia.SchedulerTest do use PgQueuetopia.DataCase alias PgQueuetopia.Queue alias PgQueuetopia.Queue.{Job, Lock} alias PgQueuetopia.TestRepo alias PgQueuetopia.TestPgQueuetopia setup do Application.put_env(:pg_queuetopia, TestPgQueuetopia, poll_interval: 50) :ok end test "poll ...
31.254364
95
0.650602
d51babaad519ebc15401048dd5c3ee09fecab59a
3,828
ex
Elixir
lib/with_retry/back_off.ex
IanLuites/with_retry
12944e747e2646515cd594b8e37f593cde7965c0
[ "MIT" ]
9
2019-11-01T15:04:22.000Z
2020-07-03T14:47:50.000Z
lib/with_retry/back_off.ex
IanLuites/with_retry
12944e747e2646515cd594b8e37f593cde7965c0
[ "MIT" ]
null
null
null
lib/with_retry/back_off.ex
IanLuites/with_retry
12944e747e2646515cd594b8e37f593cde7965c0
[ "MIT" ]
null
null
null
defmodule WithRetry.BackOff do @moduledoc ~S""" Helper module with different back off strategies and functionality. """ @doc ~S""" A constant stream of timeouts. ## Example ``` iex> constant(2_000) |> Enum.to_list() [2_000, 2_000, ...] ``` """ @spec constant(pos_integer) :: Enumerable.t() d...
26.583333
97
0.626176
d51bd652fd082a59c69748533b79037977ba4786
3,373
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/operation.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/operation.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/operation.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...
56.216667
661
0.730803
d51c248e886506202a62ad6ad2f8e38c00fa000c
1,524
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20181217041223_add_exports.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/priv/repo/migrations/20181217041223_add_exports.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/priv/repo/migrations/20181217041223_add_exports.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.425532
74
0.679134
d51c2716a8825b8df752e894c29fc5ed8553f1e5
257
exs
Elixir
other/using-phoenix/fall/config/test.exs
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
1
2016-12-25T09:53:53.000Z
2016-12-25T09:53:53.000Z
other/using-phoenix/fall/config/test.exs
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
other/using-phoenix/fall/config/test.exs
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :fall, Fall.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn
23.363636
56
0.727626
d51c6a234345ab698b5d00cffe64812615a31c0e
558
exs
Elixir
test/views/error_view_test.exs
JoshAddington/phoenix_testing
90316c47264f1dcbbd9194d8c0cdee3873787300
[ "Apache-2.0" ]
null
null
null
test/views/error_view_test.exs
JoshAddington/phoenix_testing
90316c47264f1dcbbd9194d8c0cdee3873787300
[ "Apache-2.0" ]
null
null
null
test/views/error_view_test.exs
JoshAddington/phoenix_testing
90316c47264f1dcbbd9194d8c0cdee3873787300
[ "Apache-2.0" ]
null
null
null
defmodule Rocks.ErrorViewTest do use Rocks.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(Rocks.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do as...
25.363636
66
0.670251
d51c6babe27e1d517e3d10baf47d4aee822f618e
2,494
ex
Elixir
lib/chopsticks/ai_play.ex
whenther/chopsticks
ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1
[ "MIT" ]
2
2016-11-08T18:17:41.000Z
2017-02-23T06:51:56.000Z
lib/chopsticks/ai_play.ex
will-wow/chopsticks
ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1
[ "MIT" ]
null
null
null
lib/chopsticks/ai_play.ex
will-wow/chopsticks
ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1
[ "MIT" ]
null
null
null
defmodule Chopsticks.AiPlay do @moduledoc """ Play against the AI. """ alias Chopsticks.Random alias Chopsticks.Learn alias Chopsticks.Engine alias Chopsticks.Play @doc """ Kick off a game with the AI. """ def play do learnings = Learn.learn winner = Engine.play( 20, get_mov...
23.528302
83
0.63753
d51cc8f9fb627308856ac133364ac74cd10a020c
2,410
exs
Elixir
test/euclid/exists_test.exs
geometerio/euclid
9a9e059ec77d87858ae7878df8d4d75dc01c57f8
[ "MIT-0" ]
4
2021-06-14T13:54:05.000Z
2021-10-22T02:55:16.000Z
test/euclid/exists_test.exs
geometerio/euclid
9a9e059ec77d87858ae7878df8d4d75dc01c57f8
[ "MIT-0" ]
3
2021-06-15T21:45:51.000Z
2022-01-14T20:08:32.000Z
test/euclid/exists_test.exs
geometerio/euclid
9a9e059ec77d87858ae7878df8d4d75dc01c57f8
[ "MIT-0" ]
null
null
null
defmodule Euclid.ExistsTest do use ExUnit.Case, async: true alias Euclid.Exists test "nil is blank", do: assert(nil |> Exists.blank?()) test "strings" do assert Exists.blank?("") == true assert Exists.present?("") == false assert Exists.blank?(" ") == true assert Exists.present?(" ") == ...
30.897436
100
0.606224
d51ccbae036f9c232ca6c990708a5b2b0b2bc67a
697
ex
Elixir
lib/models/searchresult.ex
shiori-ex/shiori
a38402d5cbea79c13d873c6c82ab729a4e2a6e97
[ "MIT" ]
1
2022-03-12T19:11:47.000Z
2022-03-12T19:11:47.000Z
lib/models/searchresult.ex
shiori-ex/shiori
a38402d5cbea79c13d873c6c82ab729a4e2a6e97
[ "MIT" ]
null
null
null
lib/models/searchresult.ex
shiori-ex/shiori
a38402d5cbea79c13d873c6c82ab729a4e2a6e97
[ "MIT" ]
null
null
null
defmodule Shiori.Models.SearchResult do @moduledoc """ Response model of a database search result. """ alias Shiori.Models.Link, as: Link @type t() :: %__MODULE__{ hits: [Link.t()], processing_time_ms: integer(), query: String.t() } @derive Jason.Encoder defstruct ...
20.5
52
0.58967
d51ce015c298f55ed5a9da7057e4ec23d98e9e65
1,491
ex
Elixir
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/metadata_entry.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/metadata_entry.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/metadata_entry.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.0625
114
0.746479
d51ce621f22de69299f393b117ba08cc91b6f8bc
1,990
ex
Elixir
lib/banking_graph/release_tasks.ex
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
lib/banking_graph/release_tasks.ex
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
lib/banking_graph/release_tasks.ex
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
defmodule BankingGraph.ReleaseTasks do @start_apps [ :crypto, :ssl, :myxql, :ecto, :ecto_sql # If using Ecto 3.0 or higher ] @repos Application.get_env(:banking_graph, :ecto_repos, []) def migrate(_argv) do start_services() run_migrations() ...
23.139535
65
0.58392
d51ceed77dc0b4539ffba77d51c747c0ef2eddb6
301
exs
Elixir
backend/priv/repo/migrations/20190607041148_create_transactions.exs
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
backend/priv/repo/migrations/20190607041148_create_transactions.exs
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
backend/priv/repo/migrations/20190607041148_create_transactions.exs
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
defmodule Backend.Repo.Migrations.CreateTransactions do use Ecto.Migration def change do create table(:transactions) do add :datetime_occurred, :utc_datetime add :amount, :integer add :description, :string add :category, :string timestamps() end end end
18.8125
55
0.684385
d51cf29b5782fe0d04f3a54d28d86245f883fedb
14,145
ex
Elixir
apps/language_server/lib/language_server/providers/workspace_symbols.ex
dgutov/elixir-ls
7eaa1ff642cf020cf7699fa5bd0a1da929f9b6dc
[ "Apache-2.0" ]
1
2020-06-01T11:25:33.000Z
2020-06-01T11:25:33.000Z
apps/language_server/lib/language_server/providers/workspace_symbols.ex
dgutov/elixir-ls
7eaa1ff642cf020cf7699fa5bd0a1da929f9b6dc
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/providers/workspace_symbols.ex
dgutov/elixir-ls
7eaa1ff642cf020cf7699fa5bd0a1da929f9b6dc
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Providers.WorkspaceSymbols do @moduledoc """ Workspace Symbols provider. Generates and returns `SymbolInformation[]`. https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#workspace_symbol """ use GenServer alias ElixirLS.LanguageServer.E...
26.688679
106
0.60304
d51cfaf240d5deba0dfd09f588c3be8e93d21c8c
144
exs
Elixir
config/test.exs
filipecabaco/interceptor
e108946d3909d9ceffb2ab9406c5534fa6dcad28
[ "MIT" ]
40
2018-09-30T13:39:20.000Z
2022-01-07T12:47:45.000Z
config/test.exs
filipecabaco/interceptor
e108946d3909d9ceffb2ab9406c5534fa6dcad28
[ "MIT" ]
6
2019-02-17T22:21:17.000Z
2021-04-26T21:47:59.000Z
config/test.exs
filipecabaco/interceptor
e108946d3909d9ceffb2ab9406c5534fa6dcad28
[ "MIT" ]
5
2020-05-16T00:31:45.000Z
2021-07-16T13:39:05.000Z
use Mix.Config config :interceptor, config_searcher: Interceptor.Configuration.SearcherMock, configuration: InterceptConfig, debug: true
20.571429
58
0.8125
d51d118c579d51cf8efd9619e1737f7bd993c28b
421
exs
Elixir
chromoid_web/test/chromoid_web/views/error_view_test.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
7
2020-11-18T11:29:20.000Z
2022-01-16T03:16:14.000Z
chromoid_web/test/chromoid_web/views/error_view_test.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
null
null
null
chromoid_web/test/chromoid_web/views/error_view_test.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
1
2021-01-06T15:40:46.000Z
2021-01-06T15:40:46.000Z
defmodule ChromoidWeb.ErrorViewTest do use ChromoidWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(ChromoidWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do ...
28.066667
93
0.736342
d51d20741c920c36a73477634e1ed1b1ed1498d7
1,122
ex
Elixir
installer/templates/phx_single/lib/app_name/application.ex
mjftw/phoenix
31c75ebe4437e7f7d172a70155f322b85aa4032c
[ "MIT" ]
null
null
null
installer/templates/phx_single/lib/app_name/application.ex
mjftw/phoenix
31c75ebe4437e7f7d172a70155f322b85aa4032c
[ "MIT" ]
2
2022-02-19T07:43:27.000Z
2022-02-27T16:25:02.000Z
installer/templates/phx_single/lib/app_name/application.ex
mjftw/phoenix
31c75ebe4437e7f7d172a70155f322b85aa4032c
[ "MIT" ]
1
2020-11-30T18:56:22.000Z
2020-11-30T18:56:22.000Z
defmodule <%= @app_module %>.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 = [<%= if @ecto do %> # Start the Ecto repository <%= @app_module %>.Repo,<% end %> ...
32.057143
76
0.65508
d51d2f8288b41487726cdd577646a36cd471a021
7,655
ex
Elixir
lib/glfw/port.ex
grahamhay/scenic_driver_glfw
df9eb3ec713b2d5ebf94ed97d70c0963398b6a6b
[ "Apache-2.0" ]
27
2018-09-09T00:25:58.000Z
2022-03-13T17:01:29.000Z
lib/glfw/port.ex
grahamhay/scenic_driver_glfw
df9eb3ec713b2d5ebf94ed97d70c0963398b6a6b
[ "Apache-2.0" ]
26
2018-09-09T09:06:15.000Z
2022-02-13T08:31:12.000Z
lib/glfw/port.ex
grahamhay/scenic_driver_glfw
df9eb3ec713b2d5ebf94ed97d70c0963398b6a6b
[ "Apache-2.0" ]
22
2018-09-08T15:28:47.000Z
2022-01-14T11:33:17.000Z
# # Created by Boyd Multerer on 02/15/18. # Copyright © 2018 Kry10 Industries. All rights reserved. # # a collection of functions for handling port specific messages # defmodule Scenic.Driver.Glfw.Port do # alias Scenic.Driver.Glfw @msg_stats_id 0x01 @cmd_close 0x20 @cmd_query_stats 0x21 @cmd_reshape 0x2...
27.339286
95
0.550882
d51d7c0d0b6e1ef99b445c35fb34a05a515d717f
1,504
ex
Elixir
clients/alert_center/lib/google_api/alert_center/v1beta1/model/csv_row.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/alert_center/lib/google_api/alert_center/v1beta1/model/csv_row.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/alert_center/lib/google_api/alert_center/v1beta1/model/csv_row.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...
31.333333
130
0.730718
d51d9d002a8f9f8b436ca916b12994082ad0d3c8
18,972
ex
Elixir
lib/redix/pubsub/connection.ex
binaryseed/redix
d3084c501b3db7b9359f0f3effb01189e1b26a35
[ "MIT" ]
null
null
null
lib/redix/pubsub/connection.ex
binaryseed/redix
d3084c501b3db7b9359f0f3effb01189e1b26a35
[ "MIT" ]
null
null
null
lib/redix/pubsub/connection.ex
binaryseed/redix
d3084c501b3db7b9359f0f3effb01189e1b26a35
[ "MIT" ]
null
null
null
defmodule Redix.PubSub.Connection do @moduledoc false @behaviour :gen_statem alias Redix.{ConnectionError, Connector, Protocol} defstruct [ :opts, :transport, :socket, :continuation, :backoff_current, :last_disconnect_reason, :connected_address, subscriptions: %{}, monitor...
30.84878
98
0.641314
d51da600c01853198105c4a02c225db0c95a8af9
2,927
exs
Elixir
apps/artemis_web/test/artemis_web/browser/feature_page_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/browser/feature_page_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
3
2019-03-05T23:55:09.000Z
2019-05-29T13:46:34.000Z
apps/artemis_web/test/artemis_web/browser/feature_page_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule ArtemisWeb.FeaturePageTest do use ArtemisWeb.ConnCase use ExUnit.Case use Hound.Helpers import Artemis.Factories import ArtemisWeb.BrowserHelpers import ArtemisWeb.Router.Helpers @moduletag :browser @url feature_url(ArtemisWeb.Endpoint, :index) hound_session() describe "authentication"...
19.777027
74
0.616672
d51dc459818600f7fb4ba0cc23f697ee155a125b
584
ex
Elixir
lib/cauzzipay_web/controllers/welcome_controlle.ex
Gustavo-Cauzzi/Cauzzipay
912b3fa13dbb920a5af242134c77d44e63c39c6f
[ "MIT" ]
1
2021-05-19T01:25:54.000Z
2021-05-19T01:25:54.000Z
lib/cauzzipay_web/controllers/welcome_controlle.ex
Gustavo-Cauzzi/Cauzzipay
912b3fa13dbb920a5af242134c77d44e63c39c6f
[ "MIT" ]
null
null
null
lib/cauzzipay_web/controllers/welcome_controlle.ex
Gustavo-Cauzzi/Cauzzipay
912b3fa13dbb920a5af242134c77d44e63c39c6f
[ "MIT" ]
null
null
null
defmodule CauzzipayWeb.WelcomeController do use CauzzipayWeb, :controller alias Cauzzipay.Numbers def index(conn, %{"filename" => filename}) do filename |> Numbers.sum_all_numbers_from_file() |> handle_response(conn) end defp handle_response({:ok, %{result: result}}, conn) do conn |> pu...
22.461538
83
0.652397
d51dc8292f70d8ce56d9cccb7503186efdbf6f72
366
ex
Elixir
lib/pummpcomm/history/new_time.ex
infinity-aps/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
15
2017-08-31T00:58:47.000Z
2020-01-12T03:53:13.000Z
lib/pummpcomm/history/new_time.ex
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
1
2017-09-15T02:09:31.000Z
2017-09-15T02:09:31.000Z
lib/pummpcomm/history/new_time.ex
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
3
2017-09-10T17:24:59.000Z
2019-09-10T19:41:49.000Z
defmodule Pummpcomm.History.NewTime do @moduledoc false @behaviour Pummpcomm.History.Decoder # Functions ## Pummpcomm.History.Decoder callbacks @impl Pummpcomm.History.Decoder @spec decode(binary, Pummpcomm.PumpModel.pump_options()) :: %{timestamp: NaiveDateTime.t()} defdelegate decode(body, pump_opti...
26.142857
93
0.775956
d51dcb95a9c72af6832940a7262dfb64ad18cb61
2,212
ex
Elixir
lib/plug/adapters/translator.ex
husafwan/plug
c9e91717ae3a624d94fc6e917db938731526e72a
[ "Apache-2.0" ]
null
null
null
lib/plug/adapters/translator.ex
husafwan/plug
c9e91717ae3a624d94fc6e917db938731526e72a
[ "Apache-2.0" ]
null
null
null
lib/plug/adapters/translator.ex
husafwan/plug
c9e91717ae3a624d94fc6e917db938731526e72a
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Adapters.Translator do @moduledoc """ A translator module shared by adapters that ship with Plug. We host all translations in a single module which is added to Logger when the :plug application starts. """ ## Entry point @doc """ The `translate/4` function expected by custom Logger tra...
30.30137
94
0.639693
d51deeb3310a1c0aefc66e02f69e325d36009595
1,189
exs
Elixir
config/config.exs
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
config/config.exs
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
config/config.exs
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. import 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 parent pro...
37.15625
73
0.751892
d51e3d9c217d4f2da2bd213dfc71641a710b666e
595
ex
Elixir
lib/mix/lib/mix/tasks/local.uninstall.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/mix/lib/mix/tasks/local.uninstall.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/local.uninstall.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Local.Uninstall do use Mix.Task @shortdoc "Uninstall local tasks or archives" @moduledoc """ Uninstall local tasks: mix local.uninstall archive """ def run(argv) do { _, argv, _ } = OptionParser.parse(argv) Enum.each argv, &do_uninstall(&1) end defp do_uninstall(n...
20.517241
89
0.653782
d51e3f2b6da9dede7b4594c45c1fa20ba05ff20e
15,562
exs
Elixir
test/geometry/multi_line_string_zm_test.exs
hrzndhrn/geometry
bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60
[ "MIT" ]
null
null
null
test/geometry/multi_line_string_zm_test.exs
hrzndhrn/geometry
bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60
[ "MIT" ]
2
2020-10-25T10:06:07.000Z
2020-10-26T18:15:20.000Z
test/geometry/multi_line_string_zm_test.exs
hrzndhrn/geometry
bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60
[ "MIT" ]
null
null
null
defmodule Geometry.MultiLineStringZMTest do use ExUnit.Case, async: true alias Geometry.{Hex, LineStringZM, MultiLineStringZM, PointZM} doctest Geometry.MultiLineStringZM, import: true @moduletag :multi_line_string describe "to_geo_json/1" do test "returns geo-json-term" do geo_json = Mu...
28.39781
95
0.562267
d51e51e0a29de4932448901e00bbf36835711871
17,820
ex
Elixir
lib/tds/protocol.ex
ArKeD17/tds
cc81d97d6676bbb7f571661e0bf78e4a80390d60
[ "Apache-2.0" ]
null
null
null
lib/tds/protocol.ex
ArKeD17/tds
cc81d97d6676bbb7f571661e0bf78e4a80390d60
[ "Apache-2.0" ]
null
null
null
lib/tds/protocol.ex
ArKeD17/tds
cc81d97d6676bbb7f571661e0bf78e4a80390d60
[ "Apache-2.0" ]
null
null
null
defmodule Tds.Protocol do import Tds.BinaryUtils import Tds.Messages import Tds.Utils alias Tds.Parameter alias Tds.Query require Logger @behaviour DBConnection @timeout 5000 @max_packet 4 * 1024 @sock_opts [packet: :raw, mode: :binary, active: false, recbuf: 4096] defstruct [ sock: nil,...
28.788368
118
0.569304
d51e575129eca6e285119034e18ad86db62bc4b5
132
exs
Elixir
test/terra_test.exs
asgan/terra
bc5b65dfeb64465cc991c7b079259fec9e466f4a
[ "MIT" ]
null
null
null
test/terra_test.exs
asgan/terra
bc5b65dfeb64465cc991c7b079259fec9e466f4a
[ "MIT" ]
null
null
null
test/terra_test.exs
asgan/terra
bc5b65dfeb64465cc991c7b079259fec9e466f4a
[ "MIT" ]
null
null
null
defmodule TerraTest do use ExUnit.Case doctest Terra test "greets the world" do assert Terra.hello() == :world end end
14.666667
34
0.69697
d51e583e069d5c9ab4ae42f94dc3e03c3b51699f
653
ex
Elixir
lib/samly/state.ex
Michelin-Service-Solutions/samly
4e7f9ca8858596198e03f9a688c196d3f4bd1820
[ "MIT" ]
null
null
null
lib/samly/state.ex
Michelin-Service-Solutions/samly
4e7f9ca8858596198e03f9a688c196d3f4bd1820
[ "MIT" ]
null
null
null
lib/samly/state.ex
Michelin-Service-Solutions/samly
4e7f9ca8858596198e03f9a688c196d3f4bd1820
[ "MIT" ]
1
2020-07-28T18:33:30.000Z
2020-07-28T18:33:30.000Z
defmodule Samly.State do @moduledoc """ This behaviour defines the interface for accessing, updating and deleting the saml assertion for the given nameid """ alias Plug.Conn alias Samly.Assertion @type session_key :: binary() @type name_id :: binary() @type assertion_key :: {session_key(), name_id()} ...
24.185185
115
0.663093
d51e7d6c32ea107a0f336b6ad6a3f577bd4ae6df
5,595
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/insertion_order.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/insertion_order.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/insertion_order.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...
52.783019
168
0.714745
d51eb36f7522f0f285bcad0a7778107ee2e1044d
5,413
ex
Elixir
lib/torrex.ex
sschneider1207/torrex
ff23f30e0bf63fff3e55dba28bf033814602025a
[ "MIT" ]
null
null
null
lib/torrex.ex
sschneider1207/torrex
ff23f30e0bf63fff3e55dba28bf033814602025a
[ "MIT" ]
null
null
null
lib/torrex.ex
sschneider1207/torrex
ff23f30e0bf63fff3e55dba28bf033814602025a
[ "MIT" ]
null
null
null
defmodule Torrex do @moduledoc """ Generate .torrent files for single files and directories. """ alias Torrex.FileUtils @default_piece_length 524_288 # 512 KiB @typedoc """ Encodable types. """ @type encodable :: file | directory @typedoc """ Path to a file. """ @type file :: String.t ...
23.741228
85
0.614447
d51edbe947eae75d2b7d9637a9f032c65c2cfee8
18,762
exs
Elixir
lib/elixir/test/elixir/module/types/pattern_test.exs
hurrycaner/elixir
c54daf97764c222a3ade6c84ac89bacb68abb0fb
[ "Apache-2.0" ]
1
2021-05-05T02:11:24.000Z
2021-05-05T02:11:24.000Z
lib/elixir/test/elixir/module/types/pattern_test.exs
hurrycaner/elixir
c54daf97764c222a3ade6c84ac89bacb68abb0fb
[ "Apache-2.0" ]
6
2021-03-19T12:33:21.000Z
2021-04-02T17:52:45.000Z
lib/elixir/test/elixir/module/types/pattern_test.exs
hurrycaner/elixir
c54daf97764c222a3ade6c84ac89bacb68abb0fb
[ "Apache-2.0" ]
null
null
null
Code.require_file("type_helper.exs", __DIR__) defmodule Module.Types.PatternTest do use ExUnit.Case, async: true alias Module.Types alias Module.Types.{Unify, Pattern} defmacrop quoted_pattern(patterns) do quote do {patterns, true} = unquote(Macro.escape(expand_head(patterns, true))) Pattern...
37.152475
100
0.475589
d51edf253cc0046dd51ef6036a3576513fa36084
1,101
ex
Elixir
lib/hl7/2.3/segments/rxo.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3/segments/rxo.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3/segments/rxo.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_3.Segments.RXO do @moduledoc false require Logger alias HL7.V2_3.{DataTypes} use HL7.Segment, fields: [ segment: nil, requested_give_code: DataTypes.Ce, requested_give_amount_minimum: nil, requested_give_amount_maximum: nil, requested_give_units: DataTypes.Ce...
32.382353
63
0.739328
d51ee75f92c95abb2148404c6dedde81d0fa926c
397
exs
Elixir
rel/overlays/etc/custom.exs
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
893
2017-09-14T14:18:29.000Z
2022-03-31T21:45:08.000Z
rel/overlays/etc/custom.exs
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
103
2017-09-29T22:15:33.000Z
2022-03-27T21:47:43.000Z
rel/overlays/etc/custom.exs
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
152
2017-09-07T12:43:15.000Z
2022-03-10T18:47:47.000Z
import Config ## Use Mailgun for mail delivery: # config :asciinema, Asciinema.Mailer, # adapter: Bamboo.SMTPAdapter, # server: "smtp.mailgun.org", # port: 587, # username: "postmaster@mg.yourdomain.com", # password: "mailgun-password", # tls: :if_available, # can be `:always` or `:never` # allowed_tls_...
26.466667
61
0.654912
d51f0208a2402eafa51f62304136dc8925da4470
1,176
exs
Elixir
elixir/accumulate/accumulate_test.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/accumulate/accumulate_test.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/accumulate/accumulate_test.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("accumulate.exs") end ExUnit.start ExUnit.configure exclude: :pending, trace: true defmodule AccumulateTest do use ExUnit.Case test "accumulate empty list" do assert Accumulate.accumulate([], fn(n) -> n * n end) == [] end # @tag :pending ...
27.348837
79
0.618197
d51f13b7bb3e39c6cdf3f6a19e1f69cc0c1b058d
3,575
exs
Elixir
apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/filled_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/filled_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/filled_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Messages.UpdateOrders.FilledTest do use ExUnit.Case, async: false import Tai.TestSupport.Assertions.Event alias Tai.VenueAdapters.Bitmex.ClientId alias Tai.VenueAdapters.Bitmex.Stream.ProcessAuth alias Tai.Trading.OrderStore alias Tai.Events setup do ...
30.042017
89
0.688392
d51f149db9ff1d1619d2a2cc6addeff77ef41e2f
252
ex
Elixir
v02/ch14/foo.edit2.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch14/foo.edit2.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch14/foo.edit2.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
defmodule Foo do def hello(users) when is_list(users) do for user <- users do Foo.hello(user) end end def hello(%{name: _} = user) do IO.puts "Hello, #{user.name}!" end def hello(_) do IO.puts "Who are you?" end end
15.75
41
0.595238
d51f1503b647b56b22a88069b289feff3addc777
1,918
ex
Elixir
apps/bob_versions/lib/bob_versions/build_setup/erlang.ex
LostKobrakai/hex-bobs-list
2b42111d70b8c3b19624496d3a3e6708d7139c29
[ "Apache-2.0" ]
8
2020-01-27T12:01:20.000Z
2020-12-14T20:30:44.000Z
apps/bob_versions/lib/bob_versions/build_setup/erlang.ex
LostKobrakai/hex-bobs-list
2b42111d70b8c3b19624496d3a3e6708d7139c29
[ "Apache-2.0" ]
7
2020-01-08T10:33:59.000Z
2021-05-27T12:47:41.000Z
apps/bob_versions/lib/bob_versions/build_setup/erlang.ex
LostKobrakai/hex-bobs-list
2b42111d70b8c3b19624496d3a3e6708d7139c29
[ "Apache-2.0" ]
null
null
null
defmodule BobVersions.BuildSetup.Erlang do @moduledoc false def version_from_string(string) do %{erlang: string} end def github_ref_url(ref) do "https://github.com/erlang/otp/commit/#{ref}" end def group_by_version_and_sort(list) do list |> Enum.group_by(&minor_version(&1.version.erlang)) ...
27.4
98
0.570907
d51f36859a5938628f16e421ebef52c5ca968491
4,900
ex
Elixir
lib/day18/unlocker.ex
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
lib/day18/unlocker.ex
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
lib/day18/unlocker.ex
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
defmodule Day18.Unlocker do @doc """ # iex> Day18.Unlocker.part1("day18-sample1.txt") # {86, ["a", "b", "c", "d", "e", "f"]} # iex> Day18.Unlocker.part1("day18-sample2.txt") # {132, ["b", "a", "c", "d", "f", "e", "g"]} # iex> Day18.Unlocker.part1("day18-sample3.txt") # {136} ...
30.434783
135
0.532857
d51f3d286aeeac57236dfa46e7342781ddb25684
2,788
ex
Elixir
lib/waffle.ex
xMunch/waffle
2c60c64bb7ccfe878d50ca809dbd6dfe15046558
[ "Apache-2.0" ]
null
null
null
lib/waffle.ex
xMunch/waffle
2c60c64bb7ccfe878d50ca809dbd6dfe15046558
[ "Apache-2.0" ]
null
null
null
lib/waffle.ex
xMunch/waffle
2c60c64bb7ccfe878d50ca809dbd6dfe15046558
[ "Apache-2.0" ]
null
null
null
defmodule Waffle do @moduledoc ~S""" Waffle is a flexible file upload library for Elixir with straightforward integrations for Amazon S3 and ImageMagick. ## Installation Add the latest stable release to your `mix.exs` file, along with the required dependencies for `ExAws` if appropriate: defp deps do...
29.041667
118
0.675753
d51f74bc7f88d7c28fbe785d8fb2e270cc2d16a5
2,501
ex
Elixir
lib/sobelow/config/secrets.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
lib/sobelow/config/secrets.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
lib/sobelow/config/secrets.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
defmodule Sobelow.Config.Secrets do @moduledoc """ # Hard-coded Secrets In the event of a source-code disclosure via file read vulnerability, accidental commit, etc, hard-coded secrets may be exposed to an attacker. This may result in database access, cookie forgery, and other issues. Sobelow detects mi...
28.101124
81
0.610956
d51fa89348f9b201dd844e7850092266697b1644
1,132
exs
Elixir
apps/cat_feeder_data/config/config.exs
wsmoak/cat_feeder
e9157563ff3294fd9fd4c9d13f956cbe1dd718c2
[ "MIT" ]
20
2016-01-16T17:08:00.000Z
2021-01-15T15:46:23.000Z
apps/cat_feeder_data/config/config.exs
wsmoak/cat_feeder
e9157563ff3294fd9fd4c9d13f956cbe1dd718c2
[ "MIT" ]
null
null
null
apps/cat_feeder_data/config/config.exs
wsmoak/cat_feeder
e9157563ff3294fd9fd4c9d13f956cbe1dd718c2
[ "MIT" ]
5
2016-01-09T16:52:44.000Z
2017-02-09T16:03:25.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.516129
73
0.7553
d51fb4c469b56b0133f61cfd1d3a2e94367b97d5
1,550
exs
Elixir
config/config.exs
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
config/config.exs
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
25
2021-05-21T02:23:37.000Z
2021-07-09T09:22:32.000Z
config/config.exs
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :elixir_google_scraper, ecto_repos: [El...
32.978723
97
0.787742
d51fbfcb95c9ecfc2d34f75ab559920790496f39
2,266
ex
Elixir
clients/content/lib/google_api/content/v21/model/returnaddress_custom_batch_response_entry.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/returnaddress_custom_batch_response_entry.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/returnaddress_custom_batch_response_entry.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...
40.464286
211
0.73301
d52009837c01a1b9ace76cb3548aa66c472d208b
1,725
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/drive_folder.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/classroom/lib/google_api/classroom/v1/model/drive_folder.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/drive_folder.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.263158
111
0.698551