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
285dbcde1337dfc3f41c5375d5d9d1023774c572
1,901
ex
Elixir
lib/ex_venture/config.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
1
2021-12-28T20:57:32.000Z
2021-12-28T20:57:32.000Z
lib/ex_venture/config.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
null
null
null
lib/ex_venture/config.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
null
null
null
defmodule ExVenture.Config do @moduledoc """ Load configuration for the application Split out into application specific config, ecto database config, and phoenix endpoint config. """ alias Vapor.Provider.Dotenv alias Vapor.Provider.Env @doc """ Load and parse application configuration """ def a...
19.597938
73
0.6202
285dd58fb3d85c6008d7d787f42cf86cfdc62194
399
exs
Elixir
priv/repo/migrations/20180610024432_modify_posts_join_tags2.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/repo/migrations/20180610024432_modify_posts_join_tags2.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20180610024432_modify_posts_join_tags2.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Repo.Migrations.ModifyPostsJoinTags2 do use Ecto.Migration def change do drop(table(:posts_tags)) create table(:posts_tags) do add(:tag_id, references(:tags, on_delete: :delete_all), null: false) add(:post_id, references(:cms_posts, on_delete: :delete_all), null: false)...
26.6
80
0.714286
285de476f61f85730d674ee1deb055c07aac08b1
32,703
exs
Elixir
test/ring_test.exs
LaudateCorpus1/ex_hash_ring
79ed3e67b28a65378e099ab5580079d34ae79d8f
[ "MIT" ]
191
2017-09-20T04:54:10.000Z
2020-03-20T21:21:02.000Z
test/ring_test.exs
LaudateCorpus1/ex_hash_ring
79ed3e67b28a65378e099ab5580079d34ae79d8f
[ "MIT" ]
5
2017-12-01T00:56:08.000Z
2020-01-04T19:49:06.000Z
test/ring_test.exs
LaudateCorpus1/ex_hash_ring
79ed3e67b28a65378e099ab5580079d34ae79d8f
[ "MIT" ]
14
2017-09-28T21:21:16.000Z
2020-03-19T00:32:14.000Z
defmodule ExHashRing.Ring.FindNode.Test do use ExUnit.Case alias ExHashRing.Ring alias ExHashRing.Support.Harness setup_all do rings = for replicas <- Harness.replicas(), into: %{} do name = :"ExHashRing.Ring.FindNode.Test.Replicas.#{replicas}" {:ok, _pid} = Ring.start_lin...
34.606349
107
0.641531
285df70b2dc9d6986778f7ca5b49396a3641385c
156
exs
Elixir
priv/repo/migrations/20200605142737_remove_fingerprint_sessions_table.exs
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
984
2019-09-02T11:36:41.000Z
2020-06-08T06:25:48.000Z
priv/repo/migrations/20200605142737_remove_fingerprint_sessions_table.exs
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
24
2019-09-10T09:53:17.000Z
2020-06-08T07:35:26.000Z
priv/repo/migrations/20200605142737_remove_fingerprint_sessions_table.exs
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
51
2019-09-03T10:48:10.000Z
2020-06-07T00:23:34.000Z
defmodule Plausible.Repo.Migrations.RemoveFingerprintSessionsTable do use Ecto.Migration def change do drop table(:fingerprint_sessions) end end
19.5
69
0.807692
285e1442babb362357d436cb3b85bd12431916a0
1,169
ex
Elixir
web/channels/user_socket.ex
hvnsweeting/hphoenix
5e0a93f12af64e8be2ccff7f15feab7f9e20be48
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
hvnsweeting/hphoenix
5e0a93f12af64e8be2ccff7f15feab7f9e20be48
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
hvnsweeting/hphoenix
5e0a93f12af64e8be2ccff7f15feab7f9e20be48
[ "MIT" ]
null
null
null
defmodule Hphoenix.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", Hphoenix.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and authe...
30.763158
83
0.70231
285e260999a1c6302ebc86da066f8b65178a33a9
476
ex
Elixir
apps/wifi/lib/network/wifi_setup.ex
paulanthonywilson/morsey
b72d1eee54db1bcc8d0f2097c345da602995ce43
[ "MIT" ]
1
2018-12-30T04:37:15.000Z
2018-12-30T04:37:15.000Z
apps/wifi/lib/network/wifi_setup.ex
paulanthonywilson/morsey
b72d1eee54db1bcc8d0f2097c345da602995ce43
[ "MIT" ]
null
null
null
apps/wifi/lib/network/wifi_setup.ex
paulanthonywilson/morsey
b72d1eee54db1bcc8d0f2097c345da602995ce43
[ "MIT" ]
null
null
null
defmodule Network.WifiSetup do @moduledoc """ Contract around Nerves Network for WiFi """ @doc """ Set up WiFi on "wlan0" with the optiosn provided. Or at least pretend to do so. """ @callback setup_wifi( wifi_opts :: [key_mgmt: :"WPA-PSK" | none, ssid: String.t(), psk: String.t()] ...
23.8
91
0.628151
285e41b1c6b3cd0d2c20c94f38a51d1ac5336d73
1,311
ex
Elixir
astreu/deps/prometheus_ex/lib/prometheus/erlang.ex
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/prometheus_ex/lib/prometheus/erlang.ex
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/prometheus_ex/lib/prometheus/erlang.ex
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
defmodule Prometheus.Erlang do @moduledoc false require Prometheus.Metric alias Prometheus.Metric defmacro __using__(erlang_module) do quote do @erlang_module unquote(erlang_module) require Prometheus.Error import unquote(__MODULE__) end end defmacro delegate(fun, opts \\ []) ...
25.705882
88
0.662853
285e592e248b9492d5d099f0af196481273eaf05
196
exs
Elixir
test/artsy_web/controllers/page_controller_test.exs
EhsanZ/artsy
de1cd2eb7f53ff33569223cb7d2561e39ea7a372
[ "MIT" ]
1
2019-10-26T07:17:24.000Z
2019-10-26T07:17:24.000Z
test/artsy_web/controllers/page_controller_test.exs
EhsanZ/artsy
de1cd2eb7f53ff33569223cb7d2561e39ea7a372
[ "MIT" ]
2
2021-03-09T21:15:44.000Z
2021-05-10T17:59:48.000Z
test/artsy_web/controllers/page_controller_test.exs
EhsanZ/artsy
de1cd2eb7f53ff33569223cb7d2561e39ea7a372
[ "MIT" ]
null
null
null
defmodule ArtsyWeb.PageControllerTest do use ArtsyWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.777778
60
0.673469
285e70a90a403b5e61e8028874a6e407cfc86748
848
exs
Elixir
test/acceptance/w3c-test-suites/basic_test.exs
pukkamustard/sparql-ex
4f8907ddbd15215c9b6c40edac19362c92e34d91
[ "MIT" ]
23
2018-09-25T21:09:35.000Z
2020-05-14T16:28:22.000Z
test/acceptance/w3c-test-suites/basic_test.exs
pukkamustard/sparql-ex
4f8907ddbd15215c9b6c40edac19362c92e34d91
[ "MIT" ]
2
2018-06-01T20:47:48.000Z
2019-03-05T23:20:34.000Z
test/acceptance/w3c-test-suites/basic_test.exs
pukkamustard/sparql-ex
4f8907ddbd15215c9b6c40edac19362c92e34d91
[ "MIT" ]
2
2019-12-13T19:20:54.000Z
2019-12-20T08:23:21.000Z
defmodule SPARQL.W3C.TestSuite.BasicTest do @moduledoc """ The W3C SPARQL 1.0 Basic test cases. <https://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/> """ use SPARQL.W3C.TestSuite.Case, async: false @test_suite {"1.0", "basic"} @manifest_graph TestSuite.manifest_graph(@test_suite) TestSuite.te...
31.407407
80
0.685142
285e98b64252f568b063e1a80ee491753661b644
1,026
exs
Elixir
mix.exs
vtm9/phoenix_client
f023fc6535f29aff0b0120cc685428961da85786
[ "Apache-2.0" ]
null
null
null
mix.exs
vtm9/phoenix_client
f023fc6535f29aff0b0120cc685428961da85786
[ "Apache-2.0" ]
null
null
null
mix.exs
vtm9/phoenix_client
f023fc6535f29aff0b0120cc685428961da85786
[ "Apache-2.0" ]
null
null
null
defmodule PhoenixClient.Mixfile do use Mix.Project def project do [ app: :phoenix_client, version: "0.7.0", elixir: "~> 1.6", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(), package: package(), docs: [extras: [...
21.375
81
0.551657
285ea50400d5d8cefc530ae8f18cb0005e0ae589
6,084
ex
Elixir
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/finding.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/finding.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/finding.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...
56.333333
208
0.713675
285ec2b446e94cf4b24cd36de222bb81a7b35058
1,400
ex
Elixir
lib/elixir_ravelry_web/channels/graph_channel.ex
StabbyMcDuck/elixir_ravelry
c503fc019842bb82ad58673a1b6867e3214fc7e1
[ "Apache-2.0" ]
21
2017-08-27T13:59:18.000Z
2020-10-07T03:35:22.000Z
lib/elixir_ravelry_web/channels/graph_channel.ex
StabbyMcDuck/elixir_ravelry
c503fc019842bb82ad58673a1b6867e3214fc7e1
[ "Apache-2.0" ]
2
2017-09-02T15:49:47.000Z
2017-09-02T17:43:29.000Z
lib/elixir_ravelry_web/channels/graph_channel.ex
StabbyMcDuck/elixir_ravelry
c503fc019842bb82ad58673a1b6867e3214fc7e1
[ "Apache-2.0" ]
7
2017-09-02T15:11:49.000Z
2019-08-20T19:00:48.000Z
defmodule ElixirRavelryWeb.GraphChannel do use Phoenix.Channel intercept ["graph_update"] def join("graph:" <> _node_id, _params, socket) do graph_socket = socket |> assign(:node_id_set, MapSet.new()) |> assign(:relationship_id_set, MapSet.new()) {:ok, graph_socket} end def handle_out(event...
38.888889
196
0.731429
285ef6610b9fb5ffee9da5746822d59f2b2d267f
74
ex
Elixir
test.ex
dcarneiro/etudes-for-elixir
807d21942747817d84fc2890806582b59921bd59
[ "MIT" ]
null
null
null
test.ex
dcarneiro/etudes-for-elixir
807d21942747817d84fc2890806582b59921bd59
[ "MIT" ]
null
null
null
test.ex
dcarneiro/etudes-for-elixir
807d21942747817d84fc2890806582b59921bd59
[ "MIT" ]
null
null
null
defmodule Test do def sum( a \\ 3, b, c \\ 7) do a + b + c end end
14.8
32
0.5
285efd93e8236c0ac28021618471afff72111351
2,812
ex
Elixir
lib/wulfila/database.ex
avoceteditors/wulfila
0cc3b3264a6b1b94bf168d5953ea34d5a0a5194a
[ "BSD-3-Clause" ]
null
null
null
lib/wulfila/database.ex
avoceteditors/wulfila
0cc3b3264a6b1b94bf168d5953ea34d5a0a5194a
[ "BSD-3-Clause" ]
null
null
null
lib/wulfila/database.ex
avoceteditors/wulfila
0cc3b3264a6b1b94bf168d5953ea34d5a0a5194a
[ "BSD-3-Clause" ]
null
null
null
defmodule Wulfila.Database do use GenServer defp default do %{ "phonemes" => [], "syllabary" => [], "terms" => [] } end ######################### SERVER ############################### @impl true def init(map) do {:ok, map} end @impl true def handle_call({:set, "terms",...
23.04918
91
0.529872
285f09ffc747568c0a917839c173c9663ce6700b
1,100
ex
Elixir
lib/automata/core/control/automaton/agent_supervisor.ex
venomnert/automata
26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9
[ "Apache-2.0" ]
150
2020-02-04T15:10:52.000Z
2022-02-19T15:33:17.000Z
lib/automata/core/control/automaton/agent_supervisor.ex
venomnert/automata
26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9
[ "Apache-2.0" ]
31
2020-02-09T01:37:23.000Z
2020-05-21T01:50:14.000Z
lib/automata/core/control/automaton/agent_supervisor.ex
venomnert/automata
26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9
[ "Apache-2.0" ]
8
2020-02-06T04:42:20.000Z
2022-01-21T00:21:20.000Z
defmodule Automaton.AgentSupervisor do @moduledoc """ Directly supervises the lifecycle of the user-defined agents (behavior trees). The `Automaton.AgentServer` starts them under this process. It is the parent and root of the user-defined composite, making it the boundary point between the high level Automato...
28.205128
80
0.678182
285f4c178bf58bd63e74b3b33cb59356300b8307
4,031
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/api/permissions.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/api/permissions.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/api/permissions.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...
42.431579
196
0.650211
285f563f92215464a58c7a4882cdf3f9b844be8d
975
ex
Elixir
lib/tradehub/tx/type.ex
anhmv/tradehub-api-elixir
6ec87c2b07188d4140506011e2b28db4d372ac6d
[ "MIT" ]
5
2021-05-04T16:54:25.000Z
2021-12-15T06:53:24.000Z
lib/tradehub/tx/type.ex
anhmv/tradehub-api-elixir
6ec87c2b07188d4140506011e2b28db4d372ac6d
[ "MIT" ]
5
2021-05-19T04:49:00.000Z
2021-06-01T13:36:50.000Z
lib/tradehub/tx/type.ex
anhmv/tradehub-elixir
6ec87c2b07188d4140506011e2b28db4d372ac6d
[ "MIT" ]
null
null
null
defmodule Tradehub.Tx.Type do @moduledoc """ The abstract module for type defination. """ @doc """ This function trying to validate the given payload and returns the payload itself, if no errors found. Or else, an `Tradehub.Tx.MsgInvalid` error will be raised. """ @callback validate!(term()) :: term()...
23.214286
104
0.612308
285f61992096715df5a57d5f10e61df38aa9bf0f
6,380
exs
Elixir
test/redix/pubsub_test.exs
cnsa/redix_pubsub
c1f1a26b6a5b7005560cdca4155af010d4917285
[ "0BSD" ]
null
null
null
test/redix/pubsub_test.exs
cnsa/redix_pubsub
c1f1a26b6a5b7005560cdca4155af010d4917285
[ "0BSD" ]
null
null
null
test/redix/pubsub_test.exs
cnsa/redix_pubsub
c1f1a26b6a5b7005560cdca4155af010d4917285
[ "0BSD" ]
null
null
null
defmodule Redix.PubSubTest do use ExUnit.Case import Redix.TestHelpers alias Redix.PubSub setup do {:ok, ps} = PubSub.start_link on_exit(fn -> PubSub.stop(ps) end) {:ok, %{conn: ps}} end test "subscribe/unsubscribe flow", %{conn: ps} do {:ok, c} = Redix.start_link() # First, we subsc...
39.141104
106
0.654075
285f6606d98e861fcccc1b13db3bcca28d1c3ab8
2,369
ex
Elixir
lib/opencensus/plug/metrics.ex
sneako/opencensus_plug
49a6fdcf92d03afc4fb388cdc5364ab8a28296ba
[ "Apache-2.0" ]
null
null
null
lib/opencensus/plug/metrics.ex
sneako/opencensus_plug
49a6fdcf92d03afc4fb388cdc5364ab8a28296ba
[ "Apache-2.0" ]
null
null
null
lib/opencensus/plug/metrics.ex
sneako/opencensus_plug
49a6fdcf92d03afc4fb388cdc5364ab8a28296ba
[ "Apache-2.0" ]
null
null
null
defmodule Opencensus.Plug.Metrics do @moduledoc """ Template method for creating `Plug` to measure response times. ## Usage 1. Create your own `Plug` module: ```elixir defmodule MyApp.TracingPlug do use Opencensus.Plug.Trace end ``` 2. Add it to your pipeline, ex. for Phoenix: `...
24.677083
81
0.585057
285f78b22e8fe3793a2b8b0b00ea455d56faf5ea
372
exs
Elixir
priv/repo/migrations/20211019170209_infologs.exs
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
priv/repo/migrations/20211019170209_infologs.exs
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
priv/repo/migrations/20211019170209_infologs.exs
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Central.Repo.Migrations.Infologs do use Ecto.Migration def change do create table(:teiserver_telemetry_infologs) do add :user_hash, :string add :user_id, references(:account_users, on_delete: :nothing) add :timestamp, :utc_datetime add :log_type, :string add :metadata, ...
23.25
67
0.688172
285fadbee09839fd565b8b05e9914c86bfe5caa2
3,462
ex
Elixir
clients/network_management/lib/google_api/network_management/v1/model/firewall_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/network_management/lib/google_api/network_management/v1/model/firewall_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/network_management/lib/google_api/network_management/v1/model/firewall_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
46.783784
197
0.69093
285fb49ac478510c04894f1082658ebc055d33f2
189
ex
Elixir
test/support/comment.ex
athonet-open/ex_sieve
19d4e977f60d032f2267f1324bb5643b4deb3bf3
[ "MIT" ]
null
null
null
test/support/comment.ex
athonet-open/ex_sieve
19d4e977f60d032f2267f1324bb5643b4deb3bf3
[ "MIT" ]
null
null
null
test/support/comment.ex
athonet-open/ex_sieve
19d4e977f60d032f2267f1324bb5643b4deb3bf3
[ "MIT" ]
null
null
null
defmodule ExSieve.Comment do use Ecto.Schema schema "comments" do belongs_to(:post, ExSieve.Post) belongs_to(:user, ExSieve.User) field(:body) timestamps() end end
14.538462
35
0.68254
285fedb1e4faf1e6bd12266e4c70d89855c3b315
1,022
ex
Elixir
lib/print_react/supervisors/shadow_printer.ex
greenealexander/print_react
f6d29884cc11b0bbf143df866e08bfaf4607de0c
[ "MIT-0" ]
null
null
null
lib/print_react/supervisors/shadow_printer.ex
greenealexander/print_react
f6d29884cc11b0bbf143df866e08bfaf4607de0c
[ "MIT-0" ]
null
null
null
lib/print_react/supervisors/shadow_printer.ex
greenealexander/print_react
f6d29884cc11b0bbf143df866e08bfaf4607de0c
[ "MIT-0" ]
null
null
null
defmodule PrintReact.ShadowPrinter do use GenServer alias Phoenix.PubSub alias PrintReact.JobRowManager alias PUP.Models.DocumentMeta def start_link(parent, printer_name, start_code) do args = {parent, printer_name, start_code} GenServer.start_link(__MODULE__, args, name: String.to_atom(printer_name...
24.926829
86
0.664384
2860091bba13fcac442d87a5135d99ef19c90c0a
1,522
ex
Elixir
apps/admin_api/lib/admin_api/invites/inviter.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
2
2019-07-13T05:49:03.000Z
2021-08-19T23:58:23.000Z
apps/admin_api/lib/admin_api/invites/inviter.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/invites/inviter.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
3
2018-05-08T17:15:42.000Z
2021-11-10T04:08:33.000Z
defmodule AdminAPI.Inviter do @moduledoc """ This module handles user invite and confirmation of their emails. """ alias AdminAPI.{InviteEmail, Mailer} alias EWallet.EmailValidator alias EWalletDB.{Repo, Invite, Membership, User} alias EWalletDB.Helpers.Crypto @doc """ Creates the user if not exists,...
23.060606
74
0.643233
286009dae2fa6a7aea213aac5f97462f73059798
11,840
ex
Elixir
lib/seeds/demo/projects_seeds.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/seeds/demo/projects_seeds.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
lib/seeds/demo/projects_seeds.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSup.Seeds.ProjectsSeeds do alias LiveSup.Repo alias LiveSup.Schemas.{Project, Dashboard} alias LiveSup.Core.{Datasources, Widgets, Teams} def seed, do: insert_data() defp insert_data do # TODO: This is terrible rss_datasource = Datasources.get_by_slug!("rss-datasource") jira_datasou...
36.097561
96
0.551436
286019d221981987ad4e403e672db2941182865f
1,766
ex
Elixir
lib/dornach/refresh.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
lib/dornach/refresh.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
4
2020-01-28T10:12:25.000Z
2021-05-10T23:05:12.000Z
lib/dornach/refresh.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
defmodule Dornach.Refresh do @moduledoc """ This GenServer is used to sync the events from Google Calendar to Dornach periodically. This GenServer is very simple on purpose, and does not know anything about Google Calendar or how Dornach stores its events. Its only job is to run the given callback periodic...
28.031746
78
0.662514
28601a5098e811c6d76e86c979ee37ae7aa48384
5,470
ex
Elixir
lib/coherence/controllers/password_controller.ex
dipth/coherence
64ad450c5d8d020172875c4bf52f2bbdaa6e59de
[ "MIT" ]
null
null
null
lib/coherence/controllers/password_controller.ex
dipth/coherence
64ad450c5d8d020172875c4bf52f2bbdaa6e59de
[ "MIT" ]
null
null
null
lib/coherence/controllers/password_controller.ex
dipth/coherence
64ad450c5d8d020172875c4bf52f2bbdaa6e59de
[ "MIT" ]
null
null
null
defmodule Coherence.PasswordController do @moduledoc """ Handle password recovery actions. Controller that handles the recover password feature. Actions: * new - render the recover password form * create - verify user's email address, generate a token, and send the email * edit - render the reset passw...
32.176471
90
0.648812
286034198f51b182b71d1f64fbd2248d0ebd1ff7
1,139
exs
Elixir
config/config.exs
xeejp/give-and-take-game
38eb163a58e9abef0382a03fb14ce34be461f91f
[ "MIT" ]
null
null
null
config/config.exs
xeejp/give-and-take-game
38eb163a58e9abef0382a03fb14ce34be461f91f
[ "MIT" ]
null
null
null
config/config.exs
xeejp/give-and-take-game
38eb163a58e9abef0382a03fb14ce34be461f91f
[ "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.741935
73
0.755926
28604aad512b7a9cb5b45f18fdc845dbc637c916
1,275
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20180206082725_create_transaction_request.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/priv/repo/migrations/20180206082725_create_transaction_request.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/priv/repo/migrations/20180206082725_create_transaction_request.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
36.428571
82
0.723922
28606982022e7ecf6d651002e45a88b187c31228
1,837
ex
Elixir
lib/oban/breaker.ex
smaximov/oban
096e9f6b5a397f7863243466dbe002d1aba0d57e
[ "Apache-2.0" ]
null
null
null
lib/oban/breaker.ex
smaximov/oban
096e9f6b5a397f7863243466dbe002d1aba0d57e
[ "Apache-2.0" ]
null
null
null
lib/oban/breaker.ex
smaximov/oban
096e9f6b5a397f7863243466dbe002d1aba0d57e
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Breaker do @moduledoc false require Logger alias Oban.Config @type state_struct :: %{ :circuit => :enabled | :disabled, :conf => Config.t(), :name => GenServer.name(), optional(atom()) => any() } @max_retries 10 @min_delay 100 @jitter_mult...
25.513889
91
0.65215
28607a75a74138b0a8a289f40b4338e2d9d2daa6
1,478
exs
Elixir
rocketpay/test/rocketpay_web/controllers/accounts_controller_test.exs
includeVitor/includeVitor-Elixir_NLW4-
93ed9d3d0a05e43c8b8391f8936f3f040dc39a62
[ "MIT" ]
null
null
null
rocketpay/test/rocketpay_web/controllers/accounts_controller_test.exs
includeVitor/includeVitor-Elixir_NLW4-
93ed9d3d0a05e43c8b8391f8936f3f040dc39a62
[ "MIT" ]
null
null
null
rocketpay/test/rocketpay_web/controllers/accounts_controller_test.exs
includeVitor/includeVitor-Elixir_NLW4-
93ed9d3d0a05e43c8b8391f8936f3f040dc39a62
[ "MIT" ]
null
null
null
defmodule RocketpayWeb.AccountsControllerTest do use RocketpayWeb.ConnCase, async: true alias Rocketpay.{Account, User} describe "deposit/2" do setup %{conn: conn} do params = %{ name: "Rafael", password: "123456", nickname: "camarda", email: "rafael@banana.com", ...
27.886792
107
0.579161
28608575f9c87ea34df977b040fa28f3d9e0d412
634
ex
Elixir
lib/console_web/plugs/audit_context.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
lib/console_web/plugs/audit_context.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
lib/console_web/plugs/audit_context.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
defmodule ConsoleWeb.Plugs.AuditContext do import Plug.Conn alias Console.Schema.AuditContext alias Console.Services.Audits def init(opts), do: opts def call(conn, _) do Audits.set_context(%AuditContext{ ip: to_string(:inet.ntoa(conn.remote_ip)), city: fetch_header(conn, "geoip-city"), ...
24.384615
56
0.670347
2860951d3b624ab750fea8c6174d4a1e3870ffeb
9,101
ex
Elixir
lib/x509/public_key.ex
fhunleth/x509
24c5fcc42207cc74e1e00a322f4809caf058eb6b
[ "BSD-3-Clause" ]
null
null
null
lib/x509/public_key.ex
fhunleth/x509
24c5fcc42207cc74e1e00a322f4809caf058eb6b
[ "BSD-3-Clause" ]
null
null
null
lib/x509/public_key.ex
fhunleth/x509
24c5fcc42207cc74e1e00a322f4809caf058eb6b
[ "BSD-3-Clause" ]
null
null
null
defmodule X509.PublicKey do import X509.ASN1 @moduledoc """ Functions for deriving, reading and writing RSA and EC public keys. """ @typedoc "RSA or EC public key" @type t :: :public_key.rsa_public_key() | :public_key.ec_public_key() @typedoc "SubjectPublicKeyInfo container" @type spki :: X...
29.9375
97
0.672893
2860982f8243ebbc152b265dee4c6660de1b55e7
363
ex
Elixir
lib/community/repo.ex
idkjs/graphql-elixir-starter
7728e8ce67c32a2eb57c6be92ebe852da0145930
[ "MIT" ]
null
null
null
lib/community/repo.ex
idkjs/graphql-elixir-starter
7728e8ce67c32a2eb57c6be92ebe852da0145930
[ "MIT" ]
null
null
null
lib/community/repo.ex
idkjs/graphql-elixir-starter
7728e8ce67c32a2eb57c6be92ebe852da0145930
[ "MIT" ]
null
null
null
defmodule Community.Repo do use Ecto.Repo, otp_app: :community, adapter: Ecto.Adapters.Postgres # use Ecto.Repo, otp_app: :community # @doc """ # Dynamically loads the repository url from the # DATABASE_URL environment variable. # """ # def init(_, opts) do # {:ok, Keyword.put(opts, :url, Sy...
22.6875
68
0.666667
28609ff245d9891a43a9b977a84de0e22d0b5d7e
248
exs
Elixir
www/priv/repo/migrations/20170417211703_remove_num_of_repos.exs
Nagasaki45/krihelinator
243bfe476b8128dc2f0fcd913bebd8cf20b7deb6
[ "MIT" ]
47
2016-07-17T08:49:36.000Z
2020-11-06T14:12:15.000Z
www/priv/repo/migrations/20170417211703_remove_num_of_repos.exs
Nagasaki45/krihelinator
243bfe476b8128dc2f0fcd913bebd8cf20b7deb6
[ "MIT" ]
181
2016-07-11T13:20:40.000Z
2019-10-22T14:43:40.000Z
www/priv/repo/migrations/20170417211703_remove_num_of_repos.exs
Nagasaki45/krihelinator
243bfe476b8128dc2f0fcd913bebd8cf20b7deb6
[ "MIT" ]
2
2017-02-25T16:19:09.000Z
2017-12-24T20:22:32.000Z
defmodule Krihelinator.Repo.Migrations.RemoveNumOfRepos do use Ecto.Migration def change do alter table(:languages) do remove :num_of_repos end alter table(:languages_history) do remove :num_of_repos end end end
17.714286
58
0.717742
2860b7dc2d659c5f4e2966ad8994e85eeac5082e
333
ex
Elixir
lib/plug_hmac_auth/error_handler.ex
flipay/plug_hmac_auth
b26fb80c6598457394602dff71539868e9128f38
[ "MIT" ]
2
2020-04-08T02:46:06.000Z
2020-05-16T08:11:45.000Z
lib/plug_hmac_auth/error_handler.ex
flipay/plug_hmac_auth
b26fb80c6598457394602dff71539868e9128f38
[ "MIT" ]
4
2020-05-16T07:58:09.000Z
2020-05-17T15:46:52.000Z
lib/plug_hmac_auth/error_handler.ex
flipay/plug_hmac_auth
b26fb80c6598457394602dff71539868e9128f38
[ "MIT" ]
2
2020-05-16T07:20:46.000Z
2020-05-16T09:11:57.000Z
if Code.ensure_loaded?(Plug) do defmodule PlugHmacAuth.ErrorHandler do @moduledoc """ PlugHmacAuth emit error types: :invalid_key :invalid_signature """ @doc "Define the method of how to deal with unauthentication" @callback auth_error(conn :: Plug.Conn.t(), type :: atom()) :: Plug.Conn.t...
25.615385
80
0.678679
2860bfa62bac9c0245b8628a4e61608dba905682
120
ex
Elixir
elixir/61.ex
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/61.ex
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/61.ex
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Doctest do def run do IO.puts "Mix > Tasks > Doctest > run " end end Mix.Tasks.Doctest.run
15
42
0.683333
2861150c1fd6458465ddf28a92fd02666a205ba8
4,808
exs
Elixir
test/protobuf/protoc/generator/extension_test.exs
zolakeith/protobuf
2d412b260c48be8f90e05408f8569cef2f6d3ace
[ "MIT" ]
419
2017-04-02T13:10:51.000Z
2020-11-15T15:53:17.000Z
test/protobuf/protoc/generator/extension_test.exs
zolakeith/protobuf
2d412b260c48be8f90e05408f8569cef2f6d3ace
[ "MIT" ]
101
2020-11-22T20:20:11.000Z
2022-03-06T16:09:26.000Z
test/protobuf/protoc/generator/extension_test.exs
zolakeith/protobuf
2d412b260c48be8f90e05408f8569cef2f6d3ace
[ "MIT" ]
83
2017-07-24T21:50:04.000Z
2020-11-15T08:52:34.000Z
defmodule Protobuf.Protoc.Generator.ExtensionTest do use ExUnit.Case, async: true alias Protobuf.Protoc.Context alias Protobuf.Protoc.Generator.Extension, as: Generator describe "generate/3" do test "generates blank" do ctx = %Context{namespace: [""]} desc = Google.Protobuf.FileDescriptorProt...
30.820513
104
0.514767
2861383789814f3daae68288ca4b9a43775fd1f0
1,419
ex
Elixir
apps/seeker/lib/seeker/flow/workflow.ex
sarat1669/seeker
743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa
[ "Apache-2.0" ]
1
2019-07-10T10:00:56.000Z
2019-07-10T10:00:56.000Z
apps/seeker/lib/seeker/flow/workflow.ex
spawnfest/factor18
743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa
[ "Apache-2.0" ]
null
null
null
apps/seeker/lib/seeker/flow/workflow.ex
spawnfest/factor18
743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa
[ "Apache-2.0" ]
null
null
null
defmodule Seeker.Flow.Workflow do @moduledoc """ Workflow model. Each workflow has a `name`, `nodes`, `edges` and `params` `name` is a string `nodes` is a list of nodes - A node has an `id`, `type`, `component` - `id ` should be unique for each node - A node can be of three types: "in", "nor...
22.887097
100
0.578576
28614b7b854d7ea9579b9837f6998cc60e1e4546
1,084
ex
Elixir
web/views/error_helpers.ex
ZURASTA/bonbon
231888326535a11aa7e7c4ed93e0a0ba01411d95
[ "BSD-2-Clause" ]
1
2017-06-15T11:20:27.000Z
2017-06-15T11:20:27.000Z
web/views/error_helpers.ex
ScrimpyCat/bonbon
231888326535a11aa7e7c4ed93e0a0ba01411d95
[ "BSD-2-Clause" ]
null
null
null
web/views/error_helpers.ex
ScrimpyCat/bonbon
231888326535a11aa7e7c4ed93e0a0ba01411d95
[ "BSD-2-Clause" ]
2
2017-07-25T10:16:19.000Z
2017-08-02T06:54:22.000Z
defmodule Bonbon.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({ msg, opts }) do # Because error messages were defined within Ecto, we must # call t...
36.133333
78
0.607934
286171264a0cd5e2c3a783bf01f3bd9b698d21f8
1,603
exs
Elixir
mix.exs
NatTuck/oauth2
85cb9e04b7a46624b50fdbb19cb49befac9bbd10
[ "MIT" ]
null
null
null
mix.exs
NatTuck/oauth2
85cb9e04b7a46624b50fdbb19cb49befac9bbd10
[ "MIT" ]
null
null
null
mix.exs
NatTuck/oauth2
85cb9e04b7a46624b50fdbb19cb49befac9bbd10
[ "MIT" ]
null
null
null
defmodule OAuth2.Mixfile do use Mix.Project @version "2.0.0" def project do [ app: :oauth2, name: "OAuth2", version: @version, elixir: "~> 1.2", deps: deps(), package: package(), description: description(), docs: docs(), elixirc_paths: elixirc_paths(Mix....
21.958904
65
0.533375
28617bba57dfe69544f21fa57da6d662b17e3322
1,223
ex
Elixir
web/views/error_helpers.ex
Wilo/mediax
0f3ceda0662bae5bd13f08cada5e8ad34715dd0a
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
Wilo/mediax
0f3ceda0662bae5bd13f08cada5e8ad34715dd0a
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
Wilo/mediax
0f3ceda0662bae5bd13f08cada5e8ad34715dd0a
[ "MIT" ]
null
null
null
defmodule Mediax.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), c...
29.829268
72
0.666394
28618986a99b04ab883c78340cb8e6785db14201
506
ex
Elixir
lib/postoffice/historical_data/sent_messages.ex
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
15
2020-01-24T10:33:57.000Z
2020-10-24T07:57:14.000Z
lib/postoffice/historical_data/sent_messages.ex
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
24
2020-01-24T09:52:56.000Z
2021-02-19T09:15:12.000Z
lib/postoffice/historical_data/sent_messages.ex
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
5
2020-01-25T18:03:44.000Z
2021-02-23T10:07:03.000Z
defmodule Postoffice.HistoricalData.SentMessages do use Ecto.Schema import Ecto.Changeset schema "sent_messages" do field :message_id, :integer field :consumer_id, :integer field :payload, {:array, :map} field :attributes, :map timestamps() end @doc false def changeset(sent_messages, ...
24.095238
76
0.705534
2861a9ed6f83174aad509e0e87a11ec43e8add81
1,298
ex
Elixir
lib/openstex.ex
stephenmoloney/openstex
e62f548d67e9c71317be670ed80c49e97d9b2dd2
[ "MIT" ]
6
2016-07-08T05:29:23.000Z
2019-09-17T14:17:06.000Z
lib/openstex.ex
stephenmoloney/openstex
e62f548d67e9c71317be670ed80c49e97d9b2dd2
[ "MIT" ]
16
2016-05-21T08:21:45.000Z
2018-03-04T22:11:49.000Z
lib/openstex.ex
stephenmoloney/openstex
e62f548d67e9c71317be670ed80c49e97d9b2dd2
[ "MIT" ]
2
2017-08-28T22:24:51.000Z
2019-06-16T14:47:38.000Z
defmodule Openstex do @moduledoc """ Examples setting up clients for use with openstex. See the github `README` for getting started. ## OVH Cloudstorage Client defmodule Openstex.Cloudstorage do @moduledoc :false use Openstex.Client, otp_app: :openstex, client: __MODULE__ defmod...
27.041667
92
0.64792
2861c5f8a88fd371e68dd3ccb101d2a92e78d6b6
1,740
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/add_data_source_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/model/add_data_source_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/model/add_data_source_request.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.021277
263
0.752874
28621cfa90c5837c46d683cec64eef881bde1dd4
636
exs
Elixir
elixir/problem0005.exs
jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value
269cdb921c30dbced780e031043fcdb758eb0ada
[ "MIT" ]
null
null
null
elixir/problem0005.exs
jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value
269cdb921c30dbced780e031043fcdb758eb0ada
[ "MIT" ]
null
null
null
elixir/problem0005.exs
jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value
269cdb921c30dbced780e031043fcdb758eb0ada
[ "MIT" ]
null
null
null
defmodule Prime do def prime_sieve(n), do: Enum.to_list(2..n) |> _primes([]) defp _primes([head | tail], primes) do _primes(Enum.filter(tail, &(rem(&1, head) == 0)), primes ++ [head]) end defp _primes([], primes), do: primes def trial_division(n), do: _trial_division(n, prime_sieve(n), []) defp _tri...
28.909091
71
0.628931
28623f5eb478aa538c1f9467987a4ef974e4e557
17,571
ex
Elixir
test/fixtures/example_code/nested_escaped_heredocs.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
test/fixtures/example_code/nested_escaped_heredocs.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
test/fixtures/example_code/nested_escaped_heredocs.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.Code.HeredocsTest do use Credo.Test.Case alias Credo.Code.Heredocs test "it should return the source without string literals 2" do source = """ @moduledoc \"\"\" this is an example # TODO: and this is no actual comment \"\"\" x = ~s{also: # TODO: no comment here} ?" # TO...
25.95421
110
0.536509
286242089ec952ef7bb76db5ac7995772cb9ac84
957
exs
Elixir
config/config.exs
rkalz/dragonhacks-backend
377ed0383f403c720af30bc8ef4f3fdaf89b3e38
[ "MIT" ]
1
2019-04-03T01:48:59.000Z
2019-04-03T01:48:59.000Z
config/config.exs
rkalz/dragonhacks-backend
377ed0383f403c720af30bc8ef4f3fdaf89b3e38
[ "MIT" ]
null
null
null
config/config.exs
rkalz/dragonhacks-backend
377ed0383f403c720af30bc8ef4f3fdaf89b3e38
[ "MIT" ]
1
2019-03-31T21:21:47.000Z
2019-03-31T21:21:47.000Z
# 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. use Mix.Config # General application configuration config :dragonhacks, ecto_repos: [Dragonhacks.R...
34.178571
86
0.76907
28625386fb7166765c330a6f2ecda1479283825e
299
exs
Elixir
exercises/02-higher-order-functions/01-first-class-functions/07-closures/student.exs
engelenv/distributed-applications
e78693a4ffa22b653e2e840427bcc1704040af4e
[ "BSD-3-Clause" ]
null
null
null
exercises/02-higher-order-functions/01-first-class-functions/07-closures/student.exs
engelenv/distributed-applications
e78693a4ffa22b653e2e840427bcc1704040af4e
[ "BSD-3-Clause" ]
null
null
null
exercises/02-higher-order-functions/01-first-class-functions/07-closures/student.exs
engelenv/distributed-applications
e78693a4ffa22b653e2e840427bcc1704040af4e
[ "BSD-3-Clause" ]
null
null
null
defmodule Shop do defp create_discounter(percentage), do: fn x -> x*(1-percentage/100) end def discount(:standard), do: create_discounter(0) def discount(:bronze), do: create_discounter(5) def discount(:silver), do: create_discounter(10) def discount(:gold), do: create_discounter(20) end
37.375
74
0.742475
28626bcb2054b39ea575d34154332a9a1a3f0d9c
59
ex
Elixir
Chapter08/vocial-demo-chapter-8/lib/vocial_web/views/user_view.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
10
2018-05-13T14:53:05.000Z
2021-11-08T13:10:44.000Z
Chapter04/vocial-demo-0.4.0/lib/vocial_web/views/user_view.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
null
null
null
Chapter04/vocial-demo-0.4.0/lib/vocial_web/views/user_view.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
2
2019-04-23T10:54:33.000Z
2019-04-27T15:47:07.000Z
defmodule VocialWeb.UserView do use VocialWeb, :view end
14.75
31
0.79661
286275fa2698d7703be9e8762348ba33f7a27e16
61,219
ex
Elixir
clients/secret_manager/lib/google_api/secret_manager/v1/api/projects.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/secret_manager/lib/google_api/secret_manager/v1/api/projects.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/secret_manager/lib/google_api/secret_manager/v1/api/projects.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...
45.515985
538
0.612669
28627669364822f7033357ecf30945adb640e6ff
1,879
exs
Elixir
mix.exs
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
null
null
null
mix.exs
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
null
null
null
mix.exs
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
null
null
null
defmodule BitPal.MixProject do use Mix.Project def project do [ app: :bitpal, version: "0.1.0", elixir: "~> 1.11", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), dialyzer: [ ignore_warnings:...
27.231884
79
0.548164
286278e145da81a77ed6898c816ab4f9d1481f47
1,489
ex
Elixir
lib/sobelow/vuln.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
lib/sobelow/vuln.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
lib/sobelow/vuln.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
defmodule Sobelow.Vuln do @moduledoc """ # Known Vulnerable Dependencies An application with known vulnerabilities is more easily subjected to automated or targeted attacks. Known Vulnerable checks can be ignored with the following command: $ mix sobelow -i Vuln """ @submodules [ Sobelow.Vuln...
24.409836
70
0.61585
2862b2483962a578c3772662db8172a204aefe6c
4,167
ex
Elixir
platform/target/bootstrap/configurator/captive_portal/captive_portal.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
platform/target/bootstrap/configurator/captive_portal/captive_portal.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
platform/target/bootstrap/configurator/captive_portal/captive_portal.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
defmodule Farmbot.Target.Bootstrap.Configurator.CaptivePortal do use GenServer use Farmbot.Logger @interface Application.get_env(:farmbot, :captive_portal_interface, "wlan0") @address Application.get_env(:farmbot, :captive_portal_address, "192.168.25.1") @dnsmasq_conf_file "dnsmasq.conf" @dnsmasq_pid_file...
26.711538
97
0.638349
2862cabcfe159afc1c79b50b3b4486327b3f7d5e
2,601
ex
Elixir
lib/companies/accounts.ex
raymondboswel/elixir-companies
863f6c4fe979b91abe3e15c6e3db3b41a014915f
[ "MIT" ]
null
null
null
lib/companies/accounts.ex
raymondboswel/elixir-companies
863f6c4fe979b91abe3e15c6e3db3b41a014915f
[ "MIT" ]
null
null
null
lib/companies/accounts.ex
raymondboswel/elixir-companies
863f6c4fe979b91abe3e15c6e3db3b41a014915f
[ "MIT" ]
null
null
null
defmodule Companies.Accounts do @moduledoc """ The Accounts context. """ import Ecto.Query, warn: false alias Companies.{Repo, Schema.User} def list_users(params \\ %{}) do page = Map.get(params, "page", "1") (u in User) |> from() |> order_by(:nickname) |> predicates(params) |> R...
18.316901
97
0.587466
28633cea0fd103718e59c233b067451d3b6a81ec
1,472
ex
Elixir
test/support/data_case.ex
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
test/support/data_case.ex
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
test/support/data_case.ex
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
defmodule DocumentGenerator.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, ...
26.763636
79
0.692935
286361f0ac56b9802a1d9d1f13b5df1d8d3f3b37
1,019
ex
Elixir
lib/wishlist/application.ex
egutter/wishlist
af7b71c96ef9efded708c5ecfe3bab5a00c0761e
[ "MIT" ]
null
null
null
lib/wishlist/application.ex
egutter/wishlist
af7b71c96ef9efded708c5ecfe3bab5a00c0761e
[ "MIT" ]
null
null
null
lib/wishlist/application.ex
egutter/wishlist
af7b71c96ef9efded708c5ecfe3bab5a00c0761e
[ "MIT" ]
null
null
null
defmodule Wishlist.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository Wishlist.Repo, # Start the Telemetry supervisor Wishl...
29.114286
66
0.704612
286368ff9a71029c2321c4fe250fa92db5f06f72
1,773
exs
Elixir
config/dev.exs
MatthieuSegret/yummy-phoenix-graphql
f0b258293697b0b120ef8e8a3b3905043c998617
[ "MIT" ]
122
2017-11-24T11:28:17.000Z
2022-02-25T17:05:20.000Z
config/dev.exs
MatthieuSegret/yummy-phoenix-graphql
f0b258293697b0b120ef8e8a3b3905043c998617
[ "MIT" ]
6
2018-01-11T22:07:44.000Z
2021-11-21T15:41:42.000Z
config/dev.exs
MatthieuSegret/yummy-phoenix-graphql
f0b258293697b0b120ef8e8a3b3905043c998617
[ "MIT" ]
25
2018-04-01T02:43:21.000Z
2022-02-15T03:22:54.000Z
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :yummy, YummyWeb.Endpoint, http: [port: 4000],...
33.45283
170
0.738297
28636eaf6a015c1bcccb7e8c95ccc695a17022bc
240
ex
Elixir
lib/parser/du_state_change_complete_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/parser/du_state_change_complete_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/parser/du_state_change_complete_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Parser.Messages.DUStateChangeCompleteResponse do use CWMP.Protocol.ParserHelpers alias CWMP.Protocol.Messages.DUStateChangeCompleteResponse def initial_acc do %DUStateChangeCompleteResponse{} end end
20
72
0.829167
2863ca90ddac723b5a76790c1ede52962e6b50c8
31,968
exs
Elixir
lib/elixir/test/elixir/macro_test.exs
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/macro_test.exs
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/macro_test.exs
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule Macro.ExternalTest do defmacro external do line = 18 file = __ENV__.file ^line = __CALLER__.line ^file = __CALLER__.file ^line = Macro.Env.location(__CALLER__)[:line] ^file = Macro.Env.location(__CALLER__)[:file] end defmacro oror(l...
30.886957
98
0.506475
28643cea781b699b45df028e1660f34639038db4
5,977
exs
Elixir
test/engine/model_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
test/engine/model_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
test/engine/model_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
defmodule BPXETest.Engine.Model do use ExUnit.Case, async: true alias BPXE.Engine.Model alias BPXE.Engine.Process alias BPXE.Engine.Process.Log alias BPXE.Engine.Event doctest Model test "starting model" do {:ok, _pid} = Model.start_link() end test "model's auto-generated ID should not be nil" d...
29.44335
101
0.635101
28646a51cabe4f75461e8bb88ea2138c83fb0b7f
309
exs
Elixir
priv/sandbox/migrations/00000000000001_add_yourbot_event_log.exs
ConnorRigby/yourbot
eea40e63b0f93963ed14b7efab9ecbe898ab11dd
[ "Apache-2.0" ]
3
2021-11-08T15:19:19.000Z
2021-11-11T03:18:35.000Z
priv/sandbox/migrations/00000000000001_add_yourbot_event_log.exs
ConnorRigby/yourbot
eea40e63b0f93963ed14b7efab9ecbe898ab11dd
[ "Apache-2.0" ]
null
null
null
priv/sandbox/migrations/00000000000001_add_yourbot_event_log.exs
ConnorRigby/yourbot
eea40e63b0f93963ed14b7efab9ecbe898ab11dd
[ "Apache-2.0" ]
null
null
null
defmodule YourBot.Bots.DB.Repo.Migrations.AddYourbotEventLog do use Ecto.Migration def change do create table(:yourbot_event_log) do add :project_id, references(:yourbot_project), null: false, default: 0 add :name, :string add :content, :string timestamps() end end end
23.769231
76
0.699029
2864cc868fc2cfe95feae639504b4b8bc763d8f0
3,026
ex
Elixir
web/models/object.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
1
2017-02-18T21:20:17.000Z
2017-02-18T21:20:17.000Z
web/models/object.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
null
null
null
web/models/object.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
null
null
null
defmodule Panglao.Object do use Panglao.Web, :model alias Panglao.{User, Hash} @derive {Poison.Encoder, only: ~w(name slug stat src inserted_at updated_at)a} schema "objects" do belongs_to :user, User field :name, :string field :slug, :string field :url, :string field :remote, :string ...
21.927536
80
0.641441
2864ed78748a2e877ab47f0b7d2d21a887873f29
15,864
ex
Elixir
plugins/one_chat/lib/one_chat_web/channels/room_channel.ex
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
plugins/one_chat/lib/one_chat_web/channels/room_channel.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
plugins/one_chat/lib/one_chat_web/channels/room_channel.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule OneChatWeb.RoomChannel do @moduledoc """ Handle incoming and outgoing Subscription messages """ use OneChatWeb, :channel use OneLogger use Rebel.Channel, name: "room", controllers: [ OneChatWeb.ChannelController, ], intercepts: [ "user:action", "room:state_change", "room:update:...
30.984375
108
0.681858
28650fdfa69e7288481d1e04987719654428d6a9
2,246
ex
Elixir
lib/elixero/core_api/models/purchase_orders/purchase_order.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
84
2016-11-09T01:15:17.000Z
2022-01-06T02:55:35.000Z
lib/elixero/core_api/models/purchase_orders/purchase_order.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
14
2017-03-10T04:16:07.000Z
2021-11-10T16:39:19.000Z
lib/elixero/core_api/models/purchase_orders/purchase_order.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
18
2017-03-11T21:12:15.000Z
2022-02-22T20:07:10.000Z
defmodule EliXero.CoreApi.Models.PurchaseOrders.PurchaseOrder do use Ecto.Schema import Ecto.Changeset @derive {Poison.Encoder, except: [:__meta__, :id]} @fields [ :PurchaseOrderID, :PurchaseOrderNumber, :Date, :DeliveryDate, :ExpectedArrivalDate, ...
31.633803
75
0.598397
28651404eb47327261c3497568c95af06e5c4dca
2,723
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_table_table_cell.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_table_table_cell.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_table_table_cell.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.828947
212
0.730444
28652f2eb7457a2aabfa04a33f5a332449c8c4aa
4,579
exs
Elixir
tasks/readme.exs
micapam/fountain_parser
ce377bf7a9735d4ccb01c139a4b141c307cdae75
[ "Apache-2.0" ]
null
null
null
tasks/readme.exs
micapam/fountain_parser
ce377bf7a9735d4ccb01c139a4b141c307cdae75
[ "Apache-2.0" ]
null
null
null
tasks/readme.exs
micapam/fountain_parser
ce377bf7a9735d4ccb01c139a4b141c307cdae75
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Readme do use Mix.Task @shortdoc "Build README.md from README.template by including module docs" @moduledoc """ README.md is generated from README.template by expanding the following special lines, all triggered by the regex `~r{\A%\w+}` where: * `%toc` creates the Table Of Contents s...
32.475177
126
0.587683
286557dc77f96dd339d6d1712f0d1742d1055b63
1,304
ex
Elixir
lib/ecto_extract_migrations/commands/create_sequence.ex
jonseaberg/ecto_extract_migrations
6372825495b702386c291a5dda2f63ad1c8317ca
[ "Apache-2.0" ]
7
2020-09-02T14:50:12.000Z
2021-11-12T20:07:36.000Z
lib/ecto_extract_migrations/commands/create_sequence.ex
jonseaberg/ecto_extract_migrations
6372825495b702386c291a5dda2f63ad1c8317ca
[ "Apache-2.0" ]
2
2020-10-31T12:17:25.000Z
2020-11-05T13:13:13.000Z
lib/ecto_extract_migrations/commands/create_sequence.ex
jonseaberg/ecto_extract_migrations
6372825495b702386c291a5dda2f63ad1c8317ca
[ "Apache-2.0" ]
3
2020-10-31T11:46:31.000Z
2022-02-11T15:23:10.000Z
defmodule EctoExtractMigrations.Commands.CreateSequence do @moduledoc "Handle CREATE SEQUENCE." @app :ecto_extract_migrations def type, do: :create_sequence defdelegate parse(sql), to: EctoExtractMigrations.Parsers.CreateSequence defdelegate parse(sql, state), to: EctoExtractMigrations.Parsers.CreateSequenc...
33.435897
89
0.700153
28656d5a1369d7919e9d9a146a8e3932e2a1b04f
968
exs
Elixir
apps/ewallet/priv/repo/seeders/user.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
2
2019-07-13T05:49:03.000Z
2021-08-19T23:58:23.000Z
apps/ewallet/priv/repo/seeders/user.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/ewallet/priv/repo/seeders/user.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
3
2018-05-08T17:15:42.000Z
2021-11-10T04:08:33.000Z
# This is the seeding script for User (wallet users). alias EWallet.{CLI, Seeder} alias EWalletDB.User user_seed = %{ amount: 20, provider_id_prefix: "provider_user_id", username_prefix: "user" } for n <- 1..user_seed.amount do running_string = n |> to_string() |> String.pad_leading(2, "0") insert_data = %{...
28.470588
88
0.676653
28658fbf536c8f7b006158fa661b87145c39c6cd
525
exs
Elixir
test/arkecosystem/crypto/transactions/serializers/vote_test.exs
whitehat/elixir-crypto
6347868ee15c7b79676df58bef54376a8dc6fd02
[ "MIT" ]
null
null
null
test/arkecosystem/crypto/transactions/serializers/vote_test.exs
whitehat/elixir-crypto
6347868ee15c7b79676df58bef54376a8dc6fd02
[ "MIT" ]
null
null
null
test/arkecosystem/crypto/transactions/serializers/vote_test.exs
whitehat/elixir-crypto
6347868ee15c7b79676df58bef54376a8dc6fd02
[ "MIT" ]
null
null
null
defmodule ArkEcosystem.Crypto.Transactions.Serializers.VoteTest do use ExUnit.Case, async: false alias ArkEcosystem.Crypto.Transactions.Serializer alias ArkEcosystem.Test.TestHelper setup_all do ArkEcosystem.Crypto.Configuration.Network.set(ArkEcosystem.Crypto.Networks.Devnet) :ok end test "shoul...
27.631579
86
0.769524
28659e333a348df1e2c73c3365771352a239b910
1,953
exs
Elixir
priv/repo/seeds.exs
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
alias NudgeApi.{Repo, Users, Matches} alias NudgeApi.Users.{User, UserFile, UserProfile} alias NudgeApi.Matches.{Match, UserMatch} with :dev <- Mix.env() do for i <- 0..5, i > 0 do {:ok, user = %User{id: user_id}} = Users.Actions.InitializeUser.handle( phone_number: Faker.Phone.EnGb...
33.101695
95
0.558628
2865a1777b79599af55db216461d5667fd5dd7d6
2,816
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/extended_key_usage_options.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/private_ca/lib/google_api/private_ca/v1beta1/model/extended_key_usage_options.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/extended_key_usage_options.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.419355
194
0.711648
2865db35d6fab4551788251d160d07127a548567
2,251
ex
Elixir
lib/rfx/ops/module/rename_module.ex
pcorey/rfx
db5be95d93b7aba0cf9799db273d8583c21bfc26
[ "MIT" ]
null
null
null
lib/rfx/ops/module/rename_module.ex
pcorey/rfx
db5be95d93b7aba0cf9799db273d8583c21bfc26
[ "MIT" ]
null
null
null
lib/rfx/ops/module/rename_module.ex
pcorey/rfx
db5be95d93b7aba0cf9799db273d8583c21bfc26
[ "MIT" ]
null
null
null
defmodule Rfx.Ops.Module.RenameModule do @behaviour Rfx.Ops @moduledoc """ Rename a module. Walks the source code and expands instances of multi-alias syntax. ## Examples Basic transformation... iex> source = """ ...> defmodule MyApp.Test1 do ...> end ...> """ ...> ...
21.438095
75
0.555753
2865ec89a5602ce1146adead8ab265f8dd72fbab
583
exs
Elixir
test/goodbot_web/views/error_view_test.exs
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
test/goodbot_web/views/error_view_test.exs
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
test/goodbot_web/views/error_view_test.exs
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
defmodule GoodbotWeb.ErrorViewTest do use GoodbotWeb.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(GoodbotWeb.ErrorView, "404.html", []) == "Page not found" end test "render 500....
26.5
68
0.684391
2865f968611063102eac2a7460fc0886b1fe41b0
716
ex
Elixir
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_public_ip_address_configuration_dns_settings.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_public_ip_address_configuration_dns_settings.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_public_ip_address_configuration_dns_settings.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Compute.Model.VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings do @moduledoc """ Describes a virtual m...
27.538462
134
0.769553
28660f3c9b0b0a48612d046f02ab52393b6f90ef
31,758
exs
Elixir
lib/elixir/test/elixir/stream_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/stream_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/stream_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule StreamTest do use ExUnit.Case, async: true doctest Stream defmodule PDict do defstruct [] defimpl Collectable do def into(struct) do {struct, fn _, {:cont, x} -> Process.put(:stream_cont, [x | Process.get(:stream_...
34.519565
108
0.546917
28663ff4bf8868f032f332b2708bba7b7902bd73
1,045
exs
Elixir
test/easing/range_test.exs
DockYard/easing
e82b0932bd5f5feb290482cb1bc2e9a0f723b940
[ "MIT" ]
13
2022-02-13T03:36:15.000Z
2022-03-15T11:28:35.000Z
test/easing/range_test.exs
DockYard/easing
e82b0932bd5f5feb290482cb1bc2e9a0f723b940
[ "MIT" ]
null
null
null
test/easing/range_test.exs
DockYard/easing
e82b0932bd5f5feb290482cb1bc2e9a0f723b940
[ "MIT" ]
null
null
null
defmodule Easing.RangeTest do use ExUnit.Case doctest Easing.Range test "animation range produces full range of values" do range = %Easing.Range{first: 0, last: 1, step: 0.1} list = Enum.to_list(range) assert length(list) == 11 assert Enum.at(list, 0) == 0.0 assert Enum.at(list, length(list...
21.770833
57
0.606699
286657b1597926068abda5859c5b72a763baf038
570
exs
Elixir
bench/script/bench.exs
perezd/protobuf-elixir
b0a1d4eaffaf50012fa71a8e931a47cf252d0370
[ "MIT" ]
null
null
null
bench/script/bench.exs
perezd/protobuf-elixir
b0a1d4eaffaf50012fa71a8e931a47cf252d0370
[ "MIT" ]
null
null
null
bench/script/bench.exs
perezd/protobuf-elixir
b0a1d4eaffaf50012fa71a8e931a47cf252d0370
[ "MIT" ]
null
null
null
# TODO: group of proto2 is not supported sets = Path.wildcard("**/dataset.google_message1*.pb") |> Enum.map(&ProtoBench.load(&1)) |> Enum.reduce(%{}, fn %{payload: [payload]} = s, acc -> mod = ProtoBench.mod_name(s.message_name) msg = mod.decode(payload) # IO.inspect(msg) acc |> Map.put(s.name...
24.782609
66
0.619298
28667afb1a5f6e44e29368c23f43127f2c45f416
2,113
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_result.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_result.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_result.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 ...
35.216667
128
0.731188
28667fb9865fe95e7a44608dec4b4240f7156def
2,791
ex
Elixir
lib/json5/decode/backend/combine/number.ex
thomas9911/json5
be16e6bcc1f64dd07143d48a21c37860cc8baa85
[ "MIT" ]
null
null
null
lib/json5/decode/backend/combine/number.ex
thomas9911/json5
be16e6bcc1f64dd07143d48a21c37860cc8baa85
[ "MIT" ]
null
null
null
lib/json5/decode/backend/combine/number.ex
thomas9911/json5
be16e6bcc1f64dd07143d48a21c37860cc8baa85
[ "MIT" ]
null
null
null
defmodule Json5.Decode.Backend.Combine.Number do @moduledoc """ Documentation for `Json5`. """ import Combine.Parsers.Base import Combine.Parsers.Text def number do either(ecma_hex_integer_literal(), ecma_decimal_literal()) end defp ecma_hex_integer_literal do pipe( [ ignore(eith...
25.144144
80
0.638839
28669cf66adb489a48873be7e45bd85de1c271e8
8,233
ex
Elixir
lib/kaffy/resource_schema.ex
WeDoProduct/kaffy
47608d0b71e440a3b867c76c916712416260772a
[ "MIT" ]
null
null
null
lib/kaffy/resource_schema.ex
WeDoProduct/kaffy
47608d0b71e440a3b867c76c916712416260772a
[ "MIT" ]
null
null
null
lib/kaffy/resource_schema.ex
WeDoProduct/kaffy
47608d0b71e440a3b867c76c916712416260772a
[ "MIT" ]
1
2021-01-05T23:06:37.000Z
2021-01-05T23:06:37.000Z
defmodule Kaffy.ResourceSchema do @moduledoc false def primary_key(schema) do schema.__schema__(:primary_key) end def excluded_fields(schema) do {pk, _, _} = schema.__schema__(:autogenerate_id) autogenerated = schema.__schema__(:autogenerate) case length(autogenerated) do 1 -> [...
26.053797
119
0.642536
2866b7d4e2a652ca96d43c73b0a6075cf3032eff
50
ex
Elixir
lib/novel_reader/model/novel.ex
jinyeow/novel_reader
090c1076110f441d82d99f27f82958b79bf73d63
[ "MIT" ]
null
null
null
lib/novel_reader/model/novel.ex
jinyeow/novel_reader
090c1076110f441d82d99f27f82958b79bf73d63
[ "MIT" ]
null
null
null
lib/novel_reader/model/novel.ex
jinyeow/novel_reader
090c1076110f441d82d99f27f82958b79bf73d63
[ "MIT" ]
null
null
null
defmodule NovelReader.Model.Novel do # TODO end
12.5
36
0.78
2867053170d8525a2d6ad7fab88e02fc4210cfcc
1,706
ex
Elixir
lib/drivers/struct.ex
pringlized/Elber
81394ad29b7a67ac9b8d3e249cde252ec5c44697
[ "MIT" ]
1
2019-06-20T07:06:16.000Z
2019-06-20T07:06:16.000Z
lib/drivers/struct.ex
pringlized/Elber
81394ad29b7a67ac9b8d3e249cde252ec5c44697
[ "MIT" ]
null
null
null
lib/drivers/struct.ex
pringlized/Elber
81394ad29b7a67ac9b8d3e249cde252ec5c44697
[ "MIT" ]
null
null
null
defmodule Elber.Drivers.Struct do @enforce_keys[:uuid] defstruct [ # driver id used by the system :uuid, # driver pid pid: nil, # on the clock? available: False, # currently search for fare searching: False, # length of shift in ...
31.018182
55
0.540445
28671e380e1253e3cf1a127b72aac501e08df205
441
ex
Elixir
web/plugs/validate_path_plug.ex
itaym2/gittp
ca00e8b37e403cb8b66f89df86a3a777ae1736bd
[ "MIT" ]
2
2017-07-02T17:46:51.000Z
2017-07-13T12:11:04.000Z
web/plugs/validate_path_plug.ex
Soluto/gittp
ca00e8b37e403cb8b66f89df86a3a777ae1736bd
[ "MIT" ]
13
2017-05-23T07:53:54.000Z
2017-10-30T13:40:43.000Z
web/plugs/validate_path_plug.ex
itaym2/gittp
ca00e8b37e403cb8b66f89df86a3a777ae1736bd
[ "MIT" ]
1
2017-07-11T15:10:16.000Z
2017-07-11T15:10:16.000Z
defmodule Gittp.Web.Plugs.ValidatePathPlug do require Logger def validate_path(conn, _) do conn = Plug.Conn.fetch_query_params conn path = Map.get(conn.params, "path") case is_valid?(path) do false -> conn |> Plug.Conn.send_resp(400, "invalid path") |> Plug.Conn.h...
25.941176
87
0.580499
28673fff53a4c9123b166d45efff7e4d975e8e92
1,445
ex
Elixir
lib/kitting_system/compiler/gateway.ex
rosetta-home/kitting_system
deb92ae1726e4140aefebb0d6841d109182d7282
[ "Apache-2.0" ]
3
2018-01-26T18:21:27.000Z
2018-05-27T02:35:45.000Z
lib/kitting_system/compiler/gateway.ex
rosetta-home/kitting_system
deb92ae1726e4140aefebb0d6841d109182d7282
[ "Apache-2.0" ]
null
null
null
lib/kitting_system/compiler/gateway.ex
rosetta-home/kitting_system
deb92ae1726e4140aefebb0d6841d109182d7282
[ "Apache-2.0" ]
1
2019-09-14T03:16:40.000Z
2019-09-14T03:16:40.000Z
defmodule KittingSystem.Compiler.Gateway do require Logger def compile(id) do files = Path.join(:code.priv_dir(:kitting_system), "systems/RFM69-USB-Gateway/firmware/.") n_dir = Path.join(:code.priv_dir(:kitting_system), "build/gateway/firmware1/") System.cmd("mkdir", ["-p", n_dir]) System.cmd("cp", ...
36.125
105
0.64083
2867bc6efc152ee53608334937a34392af087af9
189
exs
Elixir
test/test_helper.exs
pay-it-off/dwolla-elixir
ea71c44ed1b02be5cf416225b872490a4f7e4bf9
[ "MIT" ]
null
null
null
test/test_helper.exs
pay-it-off/dwolla-elixir
ea71c44ed1b02be5cf416225b872490a4f7e4bf9
[ "MIT" ]
null
null
null
test/test_helper.exs
pay-it-off/dwolla-elixir
ea71c44ed1b02be5cf416225b872490a4f7e4bf9
[ "MIT" ]
1
2022-02-13T17:14:59.000Z
2022-02-13T17:14:59.000Z
Application.ensure_all_started(:bypass) # Ignore environment while testing Enum.each( ~w[DWOLLA_ROOT_URI DWOLLA_CLIENT_ID DWOLLA_CLIENT_SECRET], &System.delete_env/1 ) ExUnit.start()
18.9
60
0.804233
2867c4a6857c207bff0a1e531a17c8b088d1e793
1,022
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router_bgp.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router_bgp.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router_bgp.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...
27.621622
77
0.741683
2867d59918e61f8706e05d1159e25bf7f70a20da
150
ex
Elixir
lib/hexen/repo.ex
togmund/hexen
5166ba445af592516beae48ccfcb76efc3fde166
[ "Unlicense" ]
2
2019-12-28T21:31:43.000Z
2019-12-30T01:03:28.000Z
lib/hexen/repo.ex
togmund/hexen
5166ba445af592516beae48ccfcb76efc3fde166
[ "Unlicense" ]
4
2019-12-23T23:51:30.000Z
2021-05-10T22:24:18.000Z
lib/hexen/repo.ex
togmund/hexen
5166ba445af592516beae48ccfcb76efc3fde166
[ "Unlicense" ]
1
2020-01-17T20:19:14.000Z
2020-01-17T20:19:14.000Z
defmodule Hexen.Repo do @moduledoc """ Module Documentation """ use Ecto.Repo, otp_app: :hexen, adapter: Ecto.Adapters.Postgres end
16.666667
35
0.673333
2867e7e87f5077e374e13b3714f7d6b4c2edd4fc
397
ex
Elixir
lib/arkenston_web/schema/types/object/user.ex
dolfinus/omicron-backend
dd3544a421ce8b05447fe72640f73f180549270f
[ "MIT" ]
1
2019-04-29T18:07:08.000Z
2019-04-29T18:07:08.000Z
lib/arkenston_web/schema/types/object/user.ex
dolfinus/omicron-backend
dd3544a421ce8b05447fe72640f73f180549270f
[ "MIT" ]
126
2020-12-03T15:39:31.000Z
2022-03-30T22:02:23.000Z
lib/arkenston_web/schema/types/object/user.ex
dolfinus/arkenston-backend
258880936dce673eb15db0c4b52e68d3d40c58ff
[ "MIT" ]
null
null
null
defmodule ArkenstonWeb.Schema.Types.Object.User do use Absinthe.Schema.Notation use ArkenstonWeb.Schema.Helpers.Revision audited :user do field :role, non_null(:user_role) field :deleted, non_null(:boolean) connect_with_audited :author connect_with_field_audited :author, :name, non_null(:string)...
28.357143
65
0.765743
2867e9b750bb0b2910bd41b7a38fc153358a080c
2,112
ex
Elixir
apps/otp_2/lib/statistics.ex
WhiteRookPL/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
14
2017-08-09T14:21:47.000Z
2022-03-11T04:10:49.000Z
apps/otp_2/lib/statistics.ex
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
null
null
null
apps/otp_2/lib/statistics.ex
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
15
2017-09-05T15:43:53.000Z
2020-04-13T16:20:18.000Z
defmodule Chatterboxes.Statistics do use GenServer @frequency_in_ms 10_000 def start_link() do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def calculate_statistics(element) do GenServer.call(__MODULE__, {:new_element, element}) end def get_result() do GenServer.call(__MODUL...
28.540541
101
0.665246
2867ef9330a1a361a40dff50082e3e95c5d80759
691
exs
Elixir
test/pipeline/stop_word_filter_test.exs
merchant-ly/ex_elasticlunr
b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd
[ "MIT" ]
129
2021-11-15T23:22:06.000Z
2022-03-20T03:03:27.000Z
test/pipeline/stop_word_filter_test.exs
merchant-ly/ex_elasticlunr
b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd
[ "MIT" ]
9
2021-11-06T16:22:30.000Z
2022-03-28T11:58:08.000Z
test/pipeline/stop_word_filter_test.exs
merchant-ly/ex_elasticlunr
b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd
[ "MIT" ]
5
2022-01-05T16:44:21.000Z
2022-03-24T11:55:49.000Z
defmodule Elasticlunr.Pipeline.StopWordFilterTest do @moduledoc false use ExUnit.Case alias Elasticlunr.{Pipeline, Token} alias Elasticlunr.Pipeline.StopWordFilter describe "running stop_word_filter against tokens" do test "is a default runner for default pipeline" do assert Pipeline.default_runne...
25.592593
63
0.610709
286804a79beacf38c5cc8f75db1ab2b7dd2dc3f4
1,226
exs
Elixir
test/detergentex_test.exs
decentname/detergentex
c716324c569aee267358d21c82560beab1e30d46
[ "MIT" ]
null
null
null
test/detergentex_test.exs
decentname/detergentex
c716324c569aee267358d21c82560beab1e30d46
[ "MIT" ]
null
null
null
test/detergentex_test.exs
decentname/detergentex
c716324c569aee267358d21c82560beab1e30d46
[ "MIT" ]
null
null
null
defmodule DetergentexTest do use ExUnit.Case @wsdl_url "http://www.webservicex.net/convertVolume.asmx?WSDL" @action "ChangeVolumeUnit" @parameters ["100","dry","centiliter"] test "should make a call to a web service" do {:ok, _, response} = Detergentex.call(@wsdl_url, @action, @parameters) assert En...
33.135135
78
0.681892
28680d1d466cb9c86d2d7b847eed4fa790cee2ed
19,127
ex
Elixir
lib/iteraptor.ex
sitch/elixir-iteraptor
5fc66a98ada716aa8f72a43d98035b22259d1fed
[ "MIT" ]
null
null
null
lib/iteraptor.ex
sitch/elixir-iteraptor
5fc66a98ada716aa8f72a43d98035b22259d1fed
[ "MIT" ]
null
null
null
lib/iteraptor.ex
sitch/elixir-iteraptor
5fc66a98ada716aa8f72a43d98035b22259d1fed
[ "MIT" ]
null
null
null
defmodule Iteraptor do @moduledoc """ `Iteraptor` makes complicated nested structures (currently `Map`s, `List`s and `Keyword`s) iteration easier. ## Usage #### Iterating, Mapping, Reducing * [`Iteraptor.each/3`](https://hexdocs.pm/iteraptor/Iteraptor.html#each/3) to iterate a deeply nested map/lis...
33.913121
97
0.523449
28681d6e71c20e982b9ba71c07f081cc2bb5e695
375
ex
Elixir
lib/kazan/server/token_auth.ex
ahovgaard/kazan
a93ea241ae9d94f327f741875ff43f509f72b2c6
[ "MIT" ]
139
2017-01-02T08:11:23.000Z
2022-02-10T19:23:29.000Z
lib/kazan/server/token_auth.ex
ahovgaard/kazan
a93ea241ae9d94f327f741875ff43f509f72b2c6
[ "MIT" ]
64
2017-01-05T13:27:04.000Z
2022-02-21T15:42:23.000Z
lib/kazan/server/token_auth.ex
ahovgaard/kazan
a93ea241ae9d94f327f741875ff43f509f72b2c6
[ "MIT" ]
30
2017-01-02T08:11:27.000Z
2021-06-24T14:24:58.000Z
defmodule Kazan.Server.TokenAuth do defstruct [:token] @type t :: %__MODULE__{ token: binary } defimpl Inspect, for: __MODULE__ do # We define a custom inspect implementation to avoid printing key details to # logs or anything. import Inspect.Algebra def inspect(_auth, _opts) ...
20.833333
80
0.648
28683cede1b0a4e95d67b764e253e0104b5dc370
12,614
ex
Elixir
lib/gringotts/gateways/trexle.ex
szTheory/gringotts
706774d31a94ce173679f3b91b0feaad0739d006
[ "MIT" ]
454
2017-12-19T07:03:51.000Z
2022-03-29T00:52:31.000Z
lib/gringotts/gateways/trexle.ex
szTheory/gringotts
706774d31a94ce173679f3b91b0feaad0739d006
[ "MIT" ]
140
2017-12-19T07:23:36.000Z
2021-02-13T18:08:58.000Z
lib/gringotts/gateways/trexle.ex
szTheory/gringotts
706774d31a94ce173679f3b91b0feaad0739d006
[ "MIT" ]
57
2017-12-21T18:21:32.000Z
2021-08-15T13:50:38.000Z
defmodule Gringotts.Gateways.Trexle do @moduledoc """ [Trexle][home] Payment Gateway implementation. > For further details, please refer [Trexle API documentation][docs]. Following are the features that have been implemented for the Trexle Gateway: | Action | Method | | -----...
34.277174
97
0.627636
28685531ba0a9d469a4dedae61837506ca6de532
1,941
exs
Elixir
test/afterglow/blog/blog_test.exs
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
test/afterglow/blog/blog_test.exs
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
test/afterglow/blog/blog_test.exs
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
defmodule AfterGlow.BlogTest do use AfterGlow.DataCase alias AfterGlow.Blog describe "posts" do alias AfterGlow.Blog.Post @valid_attrs %{columns: [], name: "some name"} @update_attrs %{columns: [], name: "some updated name"} @invalid_attrs %{columns: nil, name: nil} def post_fixture(attrs ...
28.544118
81
0.635755
286882a2cda95b25a74e44802dcc90d960df6937
343
ex
Elixir
dave-course/hangman_proj/hangman/lib/hangman/application.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
dave-course/hangman_proj/hangman/lib/hangman/application.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
dave-course/hangman_proj/hangman/lib/hangman/application.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
defmodule Hangman.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec children = [ worker(Hangman.Server, []), ] options = [ name: Hangman.Supervisor, strategy: :simple_one_for_one ] Supervisor.start_link(children,...
16.333333
44
0.638484
2868a0426ed862235263b61e4a57c6b03647e41a
712
ex
Elixir
test/support/channel_case.ex
mxgrn/pairs.one
25d4ee801323eb0bba1166ee59aaab9982d67a27
[ "MIT" ]
143
2016-09-23T15:05:36.000Z
2022-03-03T03:38:42.000Z
test/support/channel_case.ex
mxgrn/pairs.one
25d4ee801323eb0bba1166ee59aaab9982d67a27
[ "MIT" ]
16
2016-09-29T06:33:42.000Z
2021-06-17T18:16:07.000Z
test/support/channel_case.ex
mxgrn/pairs.one
25d4ee801323eb0bba1166ee59aaab9982d67a27
[ "MIT" ]
20
2016-09-27T16:25:46.000Z
2021-06-21T02:03:48.000Z
defmodule PairsOneWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot ...
25.428571
56
0.731742
2868bc7bb1b3d5b218b1ff74850e490845d8be0d
385
ex
Elixir
apps/naive/lib/naive/application.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
null
null
null
apps/naive/lib/naive/application.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
null
null
null
apps/naive/lib/naive/application.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
null
null
null
defmodule Naive.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 = [ {Naive.Repo, []}, {Naive.Supervisor, []} ] opts = [strategy: :one_for_one, name: Naive....
21.388889
60
0.677922
2868be596c833577e14c726cda8f5ca17ebd1d2c
775
exs
Elixir
test/logger_telegram_backend/sender_telegram_test.exs
adriankumpf/logger-telegram-backend
b29b2a182c10a00e9d20636371d58c5121b8939a
[ "MIT" ]
18
2018-01-14T19:27:13.000Z
2022-01-06T21:38:47.000Z
test/logger_telegram_backend/sender_telegram_test.exs
adriankumpf/telegram-logger-backend
fc869e93b8e277a9721c87cdfb8265cdcc84ddd9
[ "MIT" ]
49
2018-11-28T17:51:16.000Z
2022-03-21T11:39:26.000Z
test/logger_telegram_backend/sender_telegram_test.exs
adriankumpf/telegram-logger-backend
fc869e93b8e277a9721c87cdfb8265cdcc84ddd9
[ "MIT" ]
4
2018-11-25T17:00:33.000Z
2019-10-06T23:06:23.000Z
defmodule SenderTelegramTest do use ExUnit.Case use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney alias LoggerTelegramBackend.Sender.Telegram setup do ExVCR.Config.cassette_library_dir("test/fixture/vcr_cassettes") ExVCR.Config.filter_sensitive_data("bot[^/]+/", "bot<TOKEN>/") ExVCR.Config.filter_sen...
32.291667
93
0.687742