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
1c4ce6f7cb0e1796216c745c12409846f960609f
1,363
ex
Elixir
lib/exbee/frames/explicit_rx_frame.ex
msm/exbee
b99b7996c5da9092472371b8bc0bd5e7c2daa3f6
[ "Apache-2.0" ]
6
2017-06-18T14:29:59.000Z
2019-07-28T15:47:02.000Z
lib/exbee/frames/explicit_rx_frame.ex
msm/exbee
b99b7996c5da9092472371b8bc0bd5e7c2daa3f6
[ "Apache-2.0" ]
3
2018-01-28T22:00:06.000Z
2019-10-14T11:14:47.000Z
lib/exbee/frames/explicit_rx_frame.ex
msm/exbee
b99b7996c5da9092472371b8bc0bd5e7c2daa3f6
[ "Apache-2.0" ]
4
2016-09-22T02:50:34.000Z
2019-10-14T07:43:38.000Z
defmodule Exbee.ExplicitRxFrame do @moduledoc """ Similar to the `Exbee.RxFrame` but includes additional attributes from the sender. A device configured with the explicit API Rx Indicator (`AO = 1`) will return this frame when it receives an RF packet. """ @type t :: %__MODULE__{ mac_addr: integ...
24.781818
98
0.561996
1c4cf8243534e1fe710de5d67746761f4f7dc17d
1,899
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_batch_read_blobs_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_batch_read_blobs_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_batch_read_blobs_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...
33.315789
158
0.760927
1c4d0746e1a778ace22e965d5def9d544977c9b3
8,717
ex
Elixir
clients/double_click_search/lib/google_api/double_click_search/v2/api/reports.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/double_click_search/lib/google_api/double_click_search/v2/api/reports.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/double_click_search/lib/google_api/double_click_search/v2/api/reports.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.443439
170
0.680854
1c4d0d51a7b1c948183887028123dfefbe57c9ae
398
ex
Elixir
query.ex
hardalex/elixir-phoenix-sql-query
db8f80bafd2621f1b368be79c49c70b9e7143676
[ "MIT" ]
null
null
null
query.ex
hardalex/elixir-phoenix-sql-query
db8f80bafd2621f1b368be79c49c70b9e7143676
[ "MIT" ]
null
null
null
query.ex
hardalex/elixir-phoenix-sql-query
db8f80bafd2621f1b368be79c49c70b9e7143676
[ "MIT" ]
null
null
null
defmodule Common.SQL do alias Ecto.Adapters.SQL def query(repo, sql, params) do %{columns: columns, rows: rows} = SQL.query!(repo, sql |>String.split("\n") |>Enum.map(fn(row) -> String.strip(row) end) |>Enum.join("\n"), params ) Enum.map(rows, fn(row) -> columns |>Enum.map(fn(col) -> Strin...
19.9
53
0.595477
1c4d1bc3f293338498fb317f9d6f28b977221c46
4,668
ex
Elixir
lib/mongo/results.ex
Fudoshiki/elixir-mongodb-driver
28273e2e0bb9ef0cf9a4bb48aed17336446257f6
[ "Apache-2.0" ]
140
2019-04-10T09:23:53.000Z
2022-03-27T12:37:02.000Z
lib/mongo/results.ex
Fudoshiki/elixir-mongodb-driver
28273e2e0bb9ef0cf9a4bb48aed17336446257f6
[ "Apache-2.0" ]
99
2019-04-11T07:46:45.000Z
2022-03-31T07:23:28.000Z
lib/mongo/results.ex
Fudoshiki/elixir-mongodb-driver
28273e2e0bb9ef0cf9a4bb48aed17336446257f6
[ "Apache-2.0" ]
45
2019-07-15T07:06:21.000Z
2021-11-24T09:23:21.000Z
defmodule Mongo.InsertOneResult do @moduledoc """ The successful result struct of `Mongo.insert_one/4`. Its fields are: * `:inserted_id` - The id of the inserted document """ @type t :: %__MODULE__{ inserted_id: nil | BSON.ObjectId.t } defstruct [acknowledged: true, inserted_id: nil] end defmodu...
29.732484
149
0.688089
1c4d2e518240b469c5a54d51dd4ede42ffbca33f
2,486
ex
Elixir
lib/lz_string/base64.ex
koudelka/elixir-lz-string
59130abee4ddd67b634888a069744a517d620c3e
[ "MIT" ]
13
2016-02-10T06:00:47.000Z
2019-10-23T06:49:41.000Z
lib/lz_string/base64.ex
koudelka/elixir-lz-string
59130abee4ddd67b634888a069744a517d620c3e
[ "MIT" ]
null
null
null
lib/lz_string/base64.ex
koudelka/elixir-lz-string
59130abee4ddd67b634888a069744a517d620c3e
[ "MIT" ]
3
2017-06-24T02:13:29.000Z
2019-09-19T19:36:24.000Z
defmodule LZString.Base64 do "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" |> String.to_char_list |> Enum.with_index |> Enum.each(fn {c, i} -> def base64_to_bitstring(unquote(c)), do: << unquote(i) :: size(6) >> end) defmacro __using__(_env) do quote do @doc ~S""" ...
28.574713
92
0.584875
1c4d399345073d68f1731bdeedf3f85fc3ff7999
7,294
ex
Elixir
lib/task_bunny/partition/partition.ex
jnylen/task_bunny
72f014960b71b3e4b2685f9296c28819cd85929f
[ "MIT" ]
null
null
null
lib/task_bunny/partition/partition.ex
jnylen/task_bunny
72f014960b71b3e4b2685f9296c28819cd85929f
[ "MIT" ]
55
2020-05-12T05:18:41.000Z
2022-03-24T04:04:17.000Z
lib/task_bunny/partition/partition.ex
jnylen/task_bunny
72f014960b71b3e4b2685f9296c28819cd85929f
[ "MIT" ]
null
null
null
defmodule TaskBunny.Partition do @moduledoc """ Coordinates the global Roger partition state Each Roger partition has a single place where global state is kept. Global state (and global coordination) is needed for the following things: - Job cancellation; when cancelling a job, we store the job ID globa...
28.716535
91
0.67439
1c4d3b5819d436e0505364fef665a9e821ba8b37
191
exs
Elixir
farmbot_core/priv/asset/migrations/20190926161914_add_point_discarded_at.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_core/priv/asset/migrations/20190926161914_add_point_discarded_at.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/priv/asset/migrations/20190926161914_add_point_discarded_at.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCore.Asset.Repo.Migrations.AddPointDiscardedAt do use Ecto.Migration def change do alter table(:points) do add(:discarded_at, :utc_datetime) end end end
19.1
66
0.73822
1c4d4dacf71f93e457569afb23e180dbedde2ca3
1,013
ex
Elixir
lib/monitor/orwell/web.ex
spawnphile/garuda
f394e38fbbbcf89380cac4b331f21e3be0fd8518
[ "MIT" ]
4
2021-02-01T12:20:24.000Z
2021-07-29T08:37:50.000Z
lib/monitor/orwell/web.ex
spawnphile/garuda
f394e38fbbbcf89380cac4b331f21e3be0fd8518
[ "MIT" ]
2
2021-06-10T11:22:48.000Z
2021-07-30T06:09:10.000Z
lib/monitor/orwell/web.ex
spawnphile/garuda
f394e38fbbbcf89380cac4b331f21e3be0fd8518
[ "MIT" ]
null
null
null
defmodule Garuda.Orwell.Web do @moduledoc false @doc false def view do quote do @moduledoc false use Phoenix.View, namespace: Garuda.Orwell, root: "lib/monitor/orwell/templates" unquote(view_helpers()) end end @doc false def live_view do quote do @modu...
18.759259
59
0.654492
1c4d50bd6c53cb92ca1041bd74276be263574519
4,833
ex
Elixir
lib/chore_runner.ex
pepsico-ecommerce/chore_runner
c84863b7ea5feac20ab4320a5c04ffa534040c3c
[ "Apache-2.0" ]
16
2021-10-31T22:14:29.000Z
2022-03-31T14:52:36.000Z
lib/chore_runner.ex
pepsico-ecommerce/chore_runner
c84863b7ea5feac20ab4320a5c04ffa534040c3c
[ "Apache-2.0" ]
1
2022-01-13T04:53:22.000Z
2022-02-08T04:28:19.000Z
lib/chore_runner.ex
pepsico-ecommerce/chore_runner
c84863b7ea5feac20ab4320a5c04ffa534040c3c
[ "Apache-2.0" ]
2
2021-12-25T18:01:36.000Z
2022-03-12T20:55:06.000Z
defmodule ChoreRunner do @moduledoc """ A framework and library for productively writing and running code "Chores". A "Chore" can really be anything, but most commonly it is just some infrequently, manually run code which achieve a business or development goal. For example: updating a config value in a databa...
34.276596
175
0.67784
1c4d55064931fef031130f96a95032bd026774ad
5,188
ex
Elixir
lib/kamex/parser.ex
Ovyerus/kamex
c6ac49c19e5b75a8d41db38cf7ae63665de02587
[ "MIT" ]
14
2022-01-01T14:40:55.000Z
2022-01-07T12:59:05.000Z
lib/kamex/parser.ex
Ovyerus/kamex
c6ac49c19e5b75a8d41db38cf7ae63665de02587
[ "MIT" ]
null
null
null
lib/kamex/parser.ex
Ovyerus/kamex
c6ac49c19e5b75a8d41db38cf7ae63665de02587
[ "MIT" ]
null
null
null
defmodule Kamex.Parser do @moduledoc false alias Kamex.Exceptions defp cursed_list_helper(tail, do_parse \\ true) do # Last item exists to determine if we halted naturally reduce_while ended as # a result. Not sure if that's needed or could get caught by this first # clause here, will need to do some...
34.131579
126
0.571318
1c4d71ddad1a0a771421d0ec5fa52fe930b7f38f
735
ex
Elixir
lib/pusher/http_client.ex
Libertrip/pusher
90a78a68d56fa1f3fa6a3a799247536834bd4dcd
[ "MIT" ]
19
2015-02-12T02:22:16.000Z
2022-01-08T18:28:54.000Z
lib/pusher/http_client.ex
Libertrip/pusher
90a78a68d56fa1f3fa6a3a799247536834bd4dcd
[ "MIT" ]
14
2015-06-07T08:59:51.000Z
2021-10-08T07:25:27.000Z
lib/pusher/http_client.ex
Libertrip/pusher
90a78a68d56fa1f3fa6a3a799247536834bd4dcd
[ "MIT" ]
17
2015-06-06T05:24:09.000Z
2021-10-05T19:10:42.000Z
defmodule Pusher.HttpClient do use HTTPoison.Base alias Pusher.RequestSigner alias Pusher.Client def process_response_body(body) do case Jason.decode(body) do {:ok, response} -> response {:error, _reason} -> body end end @doc """ More info at: http://pusher.com/docs/rest_api#authenti...
27.222222
91
0.655782
1c4d72de1b7328065e19106f22b00dc5dd82ab24
8,658
ex
Elixir
lib/data_structures/stack.ex
Arvid-L/Esolix
b600b10c82433d737af046775582f5232a7e27f5
[ "MIT" ]
null
null
null
lib/data_structures/stack.ex
Arvid-L/Esolix
b600b10c82433d737af046775582f5232a7e27f5
[ "MIT" ]
null
null
null
lib/data_structures/stack.ex
Arvid-L/Esolix
b600b10c82433d737af046775582f5232a7e27f5
[ "MIT" ]
null
null
null
defmodule Esolix.DataStructures.Stack do @moduledoc """ Documentation for the simulated stack used by different esolangs. """ alias Esolix.DataStructures.Stack defstruct elements: [] @typedoc """ LIFO Stack containing a list of elements. """ @type t :: %Stack{elements: list()} def init, do: %Sta...
30.921429
193
0.581081
1c4da2225e2a9df5b7cd410844dafe8808ee76fc
76
exs
Elixir
Coding/Elixir-Phoenix/Format/.formatter.exs
janis-rullis/dev
371555d6b4cef0e57167aca0b4e38b026e93bf06
[ "MIT" ]
5
2018-07-06T14:23:25.000Z
2019-10-05T15:54:35.000Z
Coding/Elixir-Phoenix/Format/.formatter.exs
Janis-Rullis-IT/dev
14c4f85ab8ac2aa4874a4c2b7ace07f058e51e33
[ "MIT" ]
5
2020-04-14T09:06:13.000Z
2021-09-01T08:35:20.000Z
Coding/Elixir-Phoenix/Format/.formatter.exs
Janis-Rullis-IT/dev
14c4f85ab8ac2aa4874a4c2b7ace07f058e51e33
[ "MIT" ]
null
null
null
[ inputs: [ "mix.exs", "{config, lib, test, priv}/**/*.{ex,exs}" ] ]
15.2
57
0.447368
1c4dc86a07fb179e4b51c589bed2f22ca6a94f6f
622
exs
Elixir
dependency_injection/mix.exs
MateusAquino/elixir-workspace
269f9c23441f1dc45227ca98f8f3c6c28593b60e
[ "MIT" ]
null
null
null
dependency_injection/mix.exs
MateusAquino/elixir-workspace
269f9c23441f1dc45227ca98f8f3c6c28593b60e
[ "MIT" ]
null
null
null
dependency_injection/mix.exs
MateusAquino/elixir-workspace
269f9c23441f1dc45227ca98f8f3c6c28593b60e
[ "MIT" ]
null
null
null
defmodule DependencyInjection.MixProject do use Mix.Project def project do [ app: :dependency_injection, version: "0.1.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def applicatio...
20.733333
87
0.580386
1c4dd0af5a2f18c836d3e198e62060c3ef5ca9d2
2,745
exs
Elixir
apps/omg_eth/test/fixtures.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/fixtures.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/fixtures.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.842697
120
0.734426
1c4dd26511dab9de46bd558369f3cef3ee26b96b
594
ex
Elixir
lib/twilixir.ex
CasperSleep/twilixir
6463b9c09d0025ded5cbe7ed41a570e686ba249a
[ "MIT" ]
3
2018-05-18T02:33:46.000Z
2021-01-05T06:37:41.000Z
lib/twilixir.ex
CasperSleep/twilixir
6463b9c09d0025ded5cbe7ed41a570e686ba249a
[ "MIT" ]
null
null
null
lib/twilixir.ex
CasperSleep/twilixir
6463b9c09d0025ded5cbe7ed41a570e686ba249a
[ "MIT" ]
1
2018-09-25T11:45:51.000Z
2018-09-25T11:45:51.000Z
defmodule Twilixir do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Define workers and child supervisors to be supervised # worker(Twi...
29.7
67
0.713805
1c4ddd74fa9d0d01bc70dd1396bd949eabe3a261
91
ex
Elixir
apps/janus/lib/janus/dispatcher_behaviour.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/dispatcher_behaviour.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/dispatcher_behaviour.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
defmodule Janus.DispatcherBehaviour do @callback send_message(message::map())::any() end
22.75
47
0.78022
1c4e3b4b15862c67dc679603f6163e25d923da8f
1,845
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_retention_settings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_retention_settings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_retention_settings.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...
36.9
230
0.742005
1c4e3bf31a7d5cd4ab6955309d86c89830047785
1,274
ex
Elixir
lib/maru/resource.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
819
2016-11-25T07:12:04.000Z
2022-03-16T06:59:36.000Z
lib/maru/resource.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
71
2016-11-24T20:19:09.000Z
2021-06-09T10:12:23.000Z
lib/maru/resource.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
56
2015-01-10T23:34:12.000Z
2016-11-17T00:13:56.000Z
alias Maru.Resource defmodule Resource do defstruct path: [], parameters: [], plugs: [], helpers: [], version: nil defmacro __using__(_) do quote do import Resource.DSLs Module.register_attribute(__MODULE__, :mounted, accumulate: true) Module.r...
27.106383
77
0.653061
1c4e5a9a2df7b137f73048adeeedc1fa76af41da
1,373
ex
Elixir
lib/ua_inspector/short_code_map/client_browsers.ex
elixytics/ua_inspector
11fd98f69b7853b70529ee73355ef57851248572
[ "Apache-2.0" ]
57
2015-04-07T03:10:45.000Z
2019-03-11T01:01:40.000Z
lib/ua_inspector/short_code_map/client_browsers.ex
elixytics/ua_inspector
11fd98f69b7853b70529ee73355ef57851248572
[ "Apache-2.0" ]
16
2015-03-09T19:56:17.000Z
2019-03-16T14:24:02.000Z
lib/ua_inspector/short_code_map/client_browsers.ex
elixytics/ua_inspector
11fd98f69b7853b70529ee73355ef57851248572
[ "Apache-2.0" ]
15
2015-02-02T23:14:00.000Z
2019-03-16T13:15:05.000Z
defmodule UAInspector.ShortCodeMap.ClientBrowsers do @moduledoc false use UAInspector.Storage.Server require Logger alias UAInspector.Config alias UAInspector.Util.ShortCodeMap, as: ShortCodeMapUtil alias UAInspector.Util.YAML @behaviour UAInspector.ShortCodeMap @doc false def start_link(init_arg...
23.271186
78
0.699927
1c4e5d1e7791c9866f42c66da10766247bd9ad98
417
exs
Elixir
test/blanche_web/views/error_view_test.exs
nicholasgriffen/blanche
3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2
[ "Apache-2.0" ]
1
2021-09-07T22:04:06.000Z
2021-09-07T22:04:06.000Z
test/blanche_web/views/error_view_test.exs
nicholasgriffen/blanche
3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2
[ "Apache-2.0" ]
null
null
null
test/blanche_web/views/error_view_test.exs
nicholasgriffen/blanche
3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2
[ "Apache-2.0" ]
1
2021-09-11T02:04:47.000Z
2021-09-11T02:04:47.000Z
defmodule BlancheWeb.ErrorViewTest do use BlancheWeb.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(BlancheWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do as...
27.8
92
0.733813
1c4e7f617edbecc6caa0ebca067c7c260b2a75ec
2,084
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_user_profiles_list_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_user_profiles_list_response.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/v33/model/account_user_profiles_list_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...
38.592593
167
0.744722
1c4eb1b9c3d451788dce8ad7e5c8fcc73cbf22f0
138
exs
Elixir
apps/faqcheck/test/faqcheck/sources/microsoft/api_test.exs
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
apps/faqcheck/test/faqcheck/sources/microsoft/api_test.exs
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
20
2021-09-08T04:07:31.000Z
2022-03-10T21:52:24.000Z
apps/faqcheck/test/faqcheck/sources/microsoft/api_test.exs
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
defmodule Faqcheck.Sources.Microsoft.APITest do use ExUnit.Case, async: true doctest Faqcheck.Sources.Microsoft.API, import: true end
27.6
54
0.804348
1c4ec7f667acaa92e9b75c35a861d92b170b0d35
1,266
exs
Elixir
test/credo/check/refactor/function_arity_test.exs
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
test/credo/check/refactor/function_arity_test.exs
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
test/credo/check/refactor/function_arity_test.exs
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
defmodule Credo.Check.Refactor.FunctionArityTest do use Credo.TestHelper @described_check Credo.Check.Refactor.FunctionArity # # cases NOT raising issues # test "it should NOT report expected code" do """ defmodule Credo.Sample.Module do def some_function(p1, p2, p3, p4, p5) when is_nil(p5) do some...
21.827586
66
0.706161
1c4ed73ed724e63b9e5bd625309692ee86603dee
2,398
ex
Elixir
apps/fake_can/lib/app_fake_can.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
17
2020-06-20T11:29:43.000Z
2022-03-21T05:53:06.000Z
apps/fake_can/lib/app_fake_can.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
2
2020-07-09T10:22:50.000Z
2020-09-01T14:46:40.000Z
apps/fake_can/lib/app_fake_can.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
3
2020-07-17T20:04:36.000Z
2022-01-24T14:19:46.000Z
# Copyright 2019 Volvo Cars # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
32.405405
88
0.715596
1c4f0d1482609cb873d8aff52fcc67d85731df80
1,620
ex
Elixir
clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_name.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_name.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_name.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.4
103
0.723457
1c4f2656f600c461e2174c28193524dcf1366f5a
20,500
exs
Elixir
spec/membrane_element_mpegaudioparse/parser_spec.exs
membraneframework/membrane-element-mpegaudioparse
3b7b1980b4df0788b889f36b3031190f8910b707
[ "Apache-2.0" ]
1
2018-07-27T14:16:06.000Z
2018-07-27T14:16:06.000Z
spec/membrane_element_mpegaudioparse/parser_spec.exs
membraneframework/membrane-element-mpegaudioparse
3b7b1980b4df0788b889f36b3031190f8910b707
[ "Apache-2.0" ]
3
2018-10-15T08:03:29.000Z
2019-05-22T13:37:52.000Z
spec/membrane_element_mpegaudioparse/parser_spec.exs
membraneframework/membrane-element-mpegaudioparse
3b7b1980b4df0788b889f36b3031190f8910b707
[ "Apache-2.0" ]
1
2020-10-14T00:58:32.000Z
2020-10-14T00:58:32.000Z
defmodule Membrane.Element.MPEGAudioParse.ParserSpec do use ESpec, async: true require Membrane alias Membrane.Element.CallbackContext, as: Ctx @caps_no_padding %Membrane.Caps.Audio.MPEG{ bitrate: 96, channel_mode: :single_channel, channels: 1, copyright: false, crc_enabled: true, empha...
46.910755
154
0.532537
1c4f92879c9d8d49078b92eabad23caf3cf11ad6
1,427
ex
Elixir
apps/neoscan_web/lib/neoscan_web/views/asset_view.ex
cc1776/neo-scan
49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287
[ "MIT" ]
null
null
null
apps/neoscan_web/lib/neoscan_web/views/asset_view.ex
cc1776/neo-scan
49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287
[ "MIT" ]
null
null
null
apps/neoscan_web/lib/neoscan_web/views/asset_view.ex
cc1776/neo-scan
49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287
[ "MIT" ]
null
null
null
defmodule NeoscanWeb.AssetView do use NeoscanWeb, :view import Number.Delimit alias NeoscanMonitor.Api alias NeoscanWeb.ViewHelper alias Neoscan.Helpers def compare_time_and_get_minutes(balance) do unix_time = Map.to_list(balance) |> Enum.reduce([], fn {_asset, %{"time" => time}}, acc -> ...
20.985294
63
0.627891
1c4fcc37ee4549cc35f379894d119bf4d12d2403
2,195
ex
Elixir
lib/materia_chat_web/controllers/chat_room_controller.ex
karabiner-inc/materia_chat
6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2
[ "Apache-2.0" ]
null
null
null
lib/materia_chat_web/controllers/chat_room_controller.ex
karabiner-inc/materia_chat
6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2
[ "Apache-2.0" ]
4
2019-04-01T01:35:25.000Z
2019-06-06T05:36:31.000Z
lib/materia_chat_web/controllers/chat_room_controller.ex
karabiner-inc/materia_chat
6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2
[ "Apache-2.0" ]
null
null
null
defmodule MateriaChatWeb.ChatRoomController do use MateriaChatWeb, :controller alias MateriaChat.Rooms alias MateriaChat.Rooms.ChatRoom alias MateriaWeb.ControllerBase action_fallback(MateriaWeb.FallbackController) def index(conn, _params) do chat_rooms = Rooms.list_chat_rooms() render(conn, "in...
32.761194
119
0.718907
1c4fde3fab61c7f6b37750c28c590191561b0e21
1,709
ex
Elixir
generated_code_examples/elixir/regression/random_forest.ex
lucasavila00/m2cgen
4f41ce60cf7f5a6f198d0adc43201f9e5a5aedeb
[ "MIT" ]
null
null
null
generated_code_examples/elixir/regression/random_forest.ex
lucasavila00/m2cgen
4f41ce60cf7f5a6f198d0adc43201f9e5a5aedeb
[ "MIT" ]
null
null
null
generated_code_examples/elixir/regression/random_forest.ex
lucasavila00/m2cgen
4f41ce60cf7f5a6f198d0adc43201f9e5a5aedeb
[ "MIT" ]
null
null
null
defmodule Model do @compile {:inline, read: 2} defp read(bin, pos) do <<_::size(pos)-unit(64)-binary, value::float, _::binary>> = bin value end defp list_to_binary(list) do for i <- list, into: <<>>, do: <<i::float>> end def score(input) do input = list_to_binary(...
32.245283
71
0.396723
1c500ae12f0d42f5b90a7420230a50c4cdbf375c
916
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2020 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...
33.925926
74
0.767467
1c50144a3746d1ea0841ad45a43b4c1a34c56372
1,747
exs
Elixir
apps/concierge_site/config/dev.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
null
null
null
apps/concierge_site/config/dev.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
21
2021-03-12T17:05:30.000Z
2022-02-16T21:48:35.000Z
apps/concierge_site/config/dev.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
1
2021-12-09T15:09:53.000Z
2021-12-09T15:09:53.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 webpack to recompile .js and .css sources. config :concierge_site, ConciergeSite.Endpoint, http: [...
34.94
170
0.712078
1c503ecdf125fa7bba15516528638c234869f106
863
exs
Elixir
test/models/webpage_test.exs
elitau/page_change_notifier
55c02ef0a464040d98cf416c131e39e7a09df975
[ "MIT" ]
null
null
null
test/models/webpage_test.exs
elitau/page_change_notifier
55c02ef0a464040d98cf416c131e39e7a09df975
[ "MIT" ]
null
null
null
test/models/webpage_test.exs
elitau/page_change_notifier
55c02ef0a464040d98cf416c131e39e7a09df975
[ "MIT" ]
null
null
null
defmodule PageChangeNotifier.WebpageTest do use ExUnit.Case, async: false use HTTPoison.Base # import Mock # test_with_mock "return empty string on failure", HTTPoison, # [:passthrough], [get!: fn(_url) -> :meck.exception(HTTPoison.Error) end] do # assert PageChangeNotifier.Webpage.get_body("http://exa...
41.095238
95
0.702202
1c5040bc81ae06f73659351e1a94cdc06a26d820
256
ex
Elixir
lab4/lib/lab/repo.ex
TeeSeal/web-tech-labs
46596ae2eae68e05d4433506a210b003ee18a749
[ "MIT" ]
null
null
null
lab4/lib/lab/repo.ex
TeeSeal/web-tech-labs
46596ae2eae68e05d4433506a210b003ee18a749
[ "MIT" ]
2
2018-02-12T07:41:50.000Z
2018-05-04T18:45:28.000Z
lab4/lib/lab/repo.ex
TeeSeal/web-tech-labs
46596ae2eae68e05d4433506a210b003ee18a749
[ "MIT" ]
null
null
null
defmodule Lab.Repo do use Ecto.Repo, otp_app: :lab @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
21.333333
66
0.6875
1c50442b63a9530c0a0463043746f29be669e26e
1,150
exs
Elixir
mix.exs
tanguilp/apiac_auth_bearer_cache_cachex
8ff5a6d083cf3897bd51c0327892fd128783a7b6
[ "Apache-2.0" ]
null
null
null
mix.exs
tanguilp/apiac_auth_bearer_cache_cachex
8ff5a6d083cf3897bd51c0327892fd128783a7b6
[ "Apache-2.0" ]
null
null
null
mix.exs
tanguilp/apiac_auth_bearer_cache_cachex
8ff5a6d083cf3897bd51c0327892fd128783a7b6
[ "Apache-2.0" ]
null
null
null
defmodule APIacAuthBearerCacheCachex.MixProject do use Mix.Project def project do [ app: :apiac_auth_bearer_cache_cachex, description: "Cachex cache for the APIac APIacAuthBearer authenticator", version: "1.0.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: d...
25
88
0.597391
1c505c2d98d8d4648d9601cc928192e51220f658
4,181
exs
Elixir
test/container_test.exs
lgandersen/jocker
99a2c6506416b46cfde0debc617f4e8814b1b3fb
[ "BSD-2-Clause" ]
3
2020-07-14T13:44:30.000Z
2022-03-14T21:06:00.000Z
test/container_test.exs
lgandersen/jocker
99a2c6506416b46cfde0debc617f4e8814b1b3fb
[ "BSD-2-Clause" ]
null
null
null
test/container_test.exs
lgandersen/jocker
99a2c6506416b46cfde0debc617f4e8814b1b3fb
[ "BSD-2-Clause" ]
null
null
null
defmodule ContainerTest do use ExUnit.Case alias Jocker.Engine.{Container, Image} @moduletag :capture_log test "create container and fetch metadata" do %Image{id: id} = Jocker.Engine.MetaData.get_image("base") {:ok, %Container{image_id: img_id}} = Container.create([]) assert id == img_id end ...
27.149351
86
0.628558
1c508cffb2646ff3267ed206ac6e880f06f4be5b
388
ex
Elixir
lib/preview/package/default_store.ex
leandrocp/preview
9dd3a9bae4385dc4935e76f63328f70b9d78fe4d
[ "Apache-2.0" ]
26
2021-01-25T20:30:46.000Z
2021-12-16T08:42:35.000Z
lib/preview/package/default_store.ex
leandrocp/preview
9dd3a9bae4385dc4935e76f63328f70b9d78fe4d
[ "Apache-2.0" ]
17
2021-01-25T18:45:43.000Z
2021-07-23T15:15:41.000Z
lib/preview/package/default_store.ex
leandrocp/preview
9dd3a9bae4385dc4935e76f63328f70b9d78fe4d
[ "Apache-2.0" ]
4
2021-01-25T21:32:28.000Z
2021-07-07T12:36:19.000Z
defmodule Preview.Package.DefaultStore do @store_module Preview.Package.Store @behaviour @store_module @impl true def get_versions(key) do case :ets.lookup(@store_module, key) do [{_key, versions}] -> {:ok, versions} _ -> {:error, :not_found} end end @impl true def get_names() do ...
21.555556
60
0.623711
1c509acb29e6102d6b64f270e73e0eda49e4a0de
2,864
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/node_groups_list_nodes.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/node_groups_list_nodes.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/node_groups_list_nodes.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 ...
46.193548
393
0.719972
1c50c5d8d16908fdd6c4df35eb01ab264cd017c0
9,709
ex
Elixir
lib/vekil/utility/utility.ex
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
lib/vekil/utility/utility.ex
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
lib/vekil/utility/utility.ex
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
defmodule Plymio.Vekil.Utility do @moduledoc false alias Plymio.Vekil, as: VEKILPROT alias Plymio.Vekil.Term, as: VEKILTERM alias Plymio.Vekil.Form, as: VEKILFORM use Plymio.Fontais.Attribute use Plymio.Vekil.Attribute @type form :: Plymio.Fontais.form() @type forms :: Plymio.Fontais.forms() @type e...
25.685185
101
0.590895
1c5126b6f9940c115f0a87bcd8d0235c73df88cf
759
ex
Elixir
lib/fmcsa/application.ex
mithereal/ex_fcmsa
484ae950699a525ba797822d31a6bab0c30d2343
[ "MIT" ]
1
2020-01-26T23:30:04.000Z
2020-01-26T23:30:04.000Z
lib/fmcsa/application.ex
mithereal/elixir-fcmsa
484ae950699a525ba797822d31a6bab0c30d2343
[ "MIT" ]
null
null
null
lib/fmcsa/application.ex
mithereal/elixir-fcmsa
484ae950699a525ba797822d31a6bab0c30d2343
[ "MIT" ]
null
null
null
defmodule Fmcsa.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec # List all child processes to be supervised children = [ # Starts a worker by callin...
28.111111
80
0.703557
1c51346326b48a49cbfe1748e62345f5b18f3f08
57
ex
Elixir
web/views/layout_view.ex
mijkenator/elapi
55a85edf6fcadd89e390a682404c79bab93282b0
[ "Artistic-2.0" ]
null
null
null
web/views/layout_view.ex
mijkenator/elapi
55a85edf6fcadd89e390a682404c79bab93282b0
[ "Artistic-2.0" ]
null
null
null
web/views/layout_view.ex
mijkenator/elapi
55a85edf6fcadd89e390a682404c79bab93282b0
[ "Artistic-2.0" ]
null
null
null
defmodule Elapi.LayoutView do use Elapi.Web, :view end
14.25
29
0.77193
1c5150d970c8b084eae37f4f7cc6f588f82b5096
2,382
exs
Elixir
test/priv_check/integration_phoenix_umbrella_test.exs
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
8
2020-03-15T19:22:02.000Z
2021-09-28T11:00:18.000Z
test/priv_check/integration_phoenix_umbrella_test.exs
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
7
2020-03-11T06:21:57.000Z
2020-11-15T19:48:54.000Z
test/priv_check/integration_phoenix_umbrella_test.exs
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
null
null
null
defmodule PrivCheck.IntegrationPhoenixUmbrellaTest do use ExUnit.Case, async: false setup_all do mix!("brella_demo_umbrella", ~w/deps.get/) :ok end setup do mix!("brella_demo_umbrella", ~w/clean/) :ok end test "reports expected warnings for" do {output, _code} = mix("brella_demo_umb...
27.068182
109
0.589001
1c516fb120bdab6c3a453001f9febaf53a94a491
1,412
exs
Elixir
mix.exs
spawnfest/lotus
323d1924e04786c3fcc83c14da95dcf384136899
[ "MIT" ]
3
2021-09-20T10:34:15.000Z
2021-09-20T16:23:07.000Z
mix.exs
spawnfest/lotus
323d1924e04786c3fcc83c14da95dcf384136899
[ "MIT" ]
null
null
null
mix.exs
spawnfest/lotus
323d1924e04786c3fcc83c14da95dcf384136899
[ "MIT" ]
1
2021-11-23T13:10:27.000Z
2021-11-23T13:10:27.000Z
defmodule Lotus.MixProject do use Mix.Project @version "0.0.1" def project do [ app: :lotus, description: "A set of simple Surface components based on UIKit3.", version: @version, elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :p...
23.932203
73
0.554533
1c518aa1550f1ef3ab9ca26271369069c31956c6
1,167
ex
Elixir
lib/pm_bot_web/channels/user_socket.ex
jmilamwalters/pm_bot
480b1435aa1e4f1c3e3234039f8e3567aba82a31
[ "MIT" ]
null
null
null
lib/pm_bot_web/channels/user_socket.ex
jmilamwalters/pm_bot
480b1435aa1e4f1c3e3234039f8e3567aba82a31
[ "MIT" ]
3
2018-01-15T02:30:21.000Z
2018-02-02T21:02:41.000Z
lib/pm_bot_web/channels/user_socket.ex
jmilamwalters/pm_bot
480b1435aa1e4f1c3e3234039f8e3567aba82a31
[ "MIT" ]
null
null
null
defmodule PmBotWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", PmBotWeb.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.710526
83
0.701799
1c51bdaa2bcc840ee134543af196a482fef08a8b
1,534
ex
Elixir
priv/perf/apps/load_test/lib/performance.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
priv/perf/apps/load_test/lib/performance.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
priv/perf/apps/load_test/lib/performance.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network 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...
27.890909
120
0.707953
1c51d373d305a109cabadb820d100c3f73aa18af
6,446
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.369048
170
0.665839
1c51d6b499e02b43f6dfc9bc68a2e17e0efedd83
58
exs
Elixir
apps/snitch_api/test/snitch_api/accounts/accounts_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_api/test/snitch_api/accounts/accounts_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_api/test/snitch_api/accounts/accounts_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule SnitchApi.AccountsTest do use ExUnit.Case end
14.5
35
0.827586
1c5217180a910556d0e20247e2a4c3f5b0f69150
943
ex
Elixir
lib/chat_api/browser_sessions/browser_session.ex
xprazak2/papercups
925e7c20ab868648e078a129e832856026c50424
[ "MIT" ]
1
2021-01-18T09:57:23.000Z
2021-01-18T09:57:23.000Z
lib/chat_api/browser_sessions/browser_session.ex
xprazak2/papercups
925e7c20ab868648e078a129e832856026c50424
[ "MIT" ]
null
null
null
lib/chat_api/browser_sessions/browser_session.ex
xprazak2/papercups
925e7c20ab868648e078a129e832856026c50424
[ "MIT" ]
null
null
null
defmodule ChatApi.BrowserSessions.BrowserSession do use Ecto.Schema import Ecto.Changeset alias ChatApi.Accounts.Account alias ChatApi.BrowserReplayEvents.BrowserReplayEvent alias ChatApi.Customers.Customer @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "browser...
27.735294
85
0.743372
1c522250e4b5aadf46f6e4ad377ffbea058523be
474
ex
Elixir
elixir/lib/junks_web/helpers.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
1
2019-04-29T17:46:44.000Z
2019-04-29T17:46:44.000Z
elixir/lib/junks_web/helpers.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
elixir/lib/junks_web/helpers.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
defmodule JunksWeb.Controller.Helpers do import Plug.Conn import Phoenix.Controller, only: [render: 4] def process_error(conn, {:error, %Ecto.Changeset{} = cs}) do conn |> put_status(:unprocessable_entity) |> render(JunksWeb.ErrorView, "changeset_error.json", changeset: cs) end def process_error(...
29.625
72
0.704641
1c52352f477d11f080fc623bd404e4eb0d08144d
1,720
ex
Elixir
Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/api/list_service_providers.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.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/api/list_service_providers.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/api/list_service_providers.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.Preview.BotService.Api.ListServiceProviders do @moduledoc """ API calls for all endpoints tagged `ListServiceProvid...
43
210
0.75814
1c5235e2068ce1e641f6e1b83e32822beede685c
86
exs
Elixir
test/web/views/page_view_test.exs
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
test/web/views/page_view_test.exs
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
test/web/views/page_view_test.exs
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
defmodule SlackinEx.Web.PageViewTest do use SlackinEx.Web.ConnCase, async: true end
21.5
41
0.813953
1c524a966aa0f203cea4fa5bb6cd5a80f46472f4
322
ex
Elixir
lib/mango/catalog/product.ex
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
4
2019-07-17T04:46:37.000Z
2020-09-20T14:15:23.000Z
lib/mango/catalog/product.ex
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
null
null
null
lib/mango/catalog/product.ex
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
1
2019-07-17T04:46:39.000Z
2019-07-17T04:46:39.000Z
defmodule Mango.Catalog.Product do use Ecto.Schema schema "products" do field(:image, :string) field(:is_seasonal, :boolean, default: false) field(:name, :string) field(:price, :decimal) field(:sku, :string) field(:category, :string) field(:pack_size, :string) timestamps() end en...
20.125
49
0.65528
1c524ed24e8f1802e2b99f950fc565441870f386
3,048
exs
Elixir
test/headers/public_key_pins_test.exs
anotherhale/secure_headers
04c354351562a2211d4fafa4ef10947cfbfacb14
[ "Apache-2.0" ]
44
2016-01-14T06:30:37.000Z
2021-10-21T03:22:55.000Z
test/headers/public_key_pins_test.exs
anotherhale/plug_secure_headers
04c354351562a2211d4fafa4ef10947cfbfacb14
[ "Apache-2.0" ]
3
2017-08-08T17:18:33.000Z
2018-02-18T06:47:24.000Z
test/headers/public_key_pins_test.exs
anotherhale/plug_secure_headers
04c354351562a2211d4fafa4ef10947cfbfacb14
[ "Apache-2.0" ]
12
2017-01-09T15:18:40.000Z
2020-12-22T08:53:08.000Z
defmodule SecureHeaders.PublicKeyPinsTest do use ExUnit.Case, async: true alias SecureHeaders.PublicKeyPins # # test valid configuration # test "should allow string value of public key pins config" do assert {:ok, _} = PublicKeyPins.validate([config: [http_public_key_pins: "pin-sha256='b5bb9d8...
60.96
323
0.783465
1c52d7b64610d7e408b62326ce705cf31599c67a
3,103
ex
Elixir
lib/absinthe/phoenix/channel.ex
jerel/absinthe_phoenix
a0c9f0297197443cef4a6ba2114b5dff5133469c
[ "MIT" ]
null
null
null
lib/absinthe/phoenix/channel.ex
jerel/absinthe_phoenix
a0c9f0297197443cef4a6ba2114b5dff5133469c
[ "MIT" ]
null
null
null
lib/absinthe/phoenix/channel.ex
jerel/absinthe_phoenix
a0c9f0297197443cef4a6ba2114b5dff5133469c
[ "MIT" ]
null
null
null
defmodule Absinthe.Phoenix.Channel do use Phoenix.Channel require Logger @moduledoc false @doc false def __using__(_) do raise """ ---------------------------------------------- You should `use Absinthe.Phoenix.Socket` ---------------------------------------------- """ end @doc fals...
27.705357
102
0.59233
1c52f58239c9417b00c67cb402ac5edaaaa20b9d
55
ex
Elixir
takso-hw5 2/web/views/page_view.ex
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
takso-hw5 2/web/views/page_view.ex
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
takso-hw5 2/web/views/page_view.ex
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
defmodule Takso.PageView do use Takso.Web, :view end
13.75
27
0.763636
1c52f660d450f19c09742f867a8e285e62bf266f
1,849
exs
Elixir
clients/app_engine/mix.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/app_engine/mix.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/app_engine/mix.exs
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...
27.597015
101
0.656571
1c534b4056fe2bf5943896a073a720ae994306fc
1,114
exs
Elixir
mix.exs
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
3
2015-06-10T12:09:51.000Z
2015-11-24T06:16:28.000Z
mix.exs
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
null
null
null
mix.exs
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
null
null
null
defmodule Summit360Www.Mixfile do use Mix.Project def project do [app: :summit360_www, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps:...
26.52381
63
0.59605
1c53824c185844b0821ff2b0805f2b13f8c1fc7a
1,045
exs
Elixir
config/prod.exs
pragmaticivan/hexpm
7845d1baaf14e8811df00db550b59e51ac9675c6
[ "Apache-2.0" ]
null
null
null
config/prod.exs
pragmaticivan/hexpm
7845d1baaf14e8811df00db550b59e51ac9675c6
[ "Apache-2.0" ]
null
null
null
config/prod.exs
pragmaticivan/hexpm
7845d1baaf14e8811df00db550b59e51ac9675c6
[ "Apache-2.0" ]
null
null
null
use Mix.Config pool_size = String.to_integer(System.get_env("HEX_POOL_SIZE") || "20") config :hexpm, cookie_sign_salt: System.get_env("HEX_COOKIE_SIGNING_SALT"), cookie_encr_salt: System.get_env("HEX_COOKIE_ENCRYPTION_SALT") config :hexpm, Hexpm.Web.Endpoint, http: [compress: true], url: [scheme: "https", po...
28.243243
71
0.745455
1c5394268ccff0c4c45dbdf3d6f239b0deb911d3
192
ex
Elixir
apps/core/lib/core.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
1
2021-03-05T21:24:40.000Z
2021-03-05T21:24:40.000Z
apps/core/lib/core.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
4
2021-03-03T18:10:08.000Z
2021-03-03T19:09:11.000Z
apps/core/lib/core.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
1
2021-03-03T18:08:33.000Z
2021-03-03T18:08:33.000Z
defmodule Core do @moduledoc """ Documentation for `Core`. """ @doc """ Hello world. ## Examples iex> Core.hello() :world """ def hello do :world end end
10.105263
27
0.536458
1c539a1368084d4c39928a372920157adccafaed
1,717
ex
Elixir
apps/omg_eth/lib/omg_eth/release_tasks/set_ethereum_stalled_sync_threshold.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg_eth/lib/omg_eth/release_tasks/set_ethereum_stalled_sync_threshold.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg_eth/lib/omg_eth/release_tasks/set_ethereum_stalled_sync_threshold.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-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 ...
31.218182
110
0.752475
1c53b260e0b8c10f05202bde933a3da210103a1d
4,985
ex
Elixir
lib/nerves_hub_device/http_fwup_stream.ex
smartrent/nerves_hub
07100a0715d3f08ecc6fffeba3a88bd098b13c90
[ "Apache-2.0" ]
null
null
null
lib/nerves_hub_device/http_fwup_stream.ex
smartrent/nerves_hub
07100a0715d3f08ecc6fffeba3a88bd098b13c90
[ "Apache-2.0" ]
4
2019-05-30T15:13:04.000Z
2020-01-09T16:02:10.000Z
lib/nerves_hub_device/http_fwup_stream.ex
smartrent/nerves_hub_device
07100a0715d3f08ecc6fffeba3a88bd098b13c90
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubDevice.HTTPFwupStream do @moduledoc """ Download and install a firmware update. """ use GenServer require Logger @redirect_status_codes [301, 302, 303, 307, 308] @httpc_profile __MODULE__ @doc """ Start the downloader process A `callback` process should be passed Messages ...
24.925
82
0.626881
1c53b36662bc9b180e5fe0dd8e2ed439dbb61dcb
549
ex
Elixir
lib/collectable/vivid/polygon.ex
jamesotron/vivid
01a0089384d8daced8f22a97c49e657fc245fb3c
[ "MIT" ]
26
2017-01-03T01:18:38.000Z
2019-02-21T09:26:20.000Z
lib/collectable/vivid/polygon.ex
jamesotron/vivid
01a0089384d8daced8f22a97c49e657fc245fb3c
[ "MIT" ]
null
null
null
lib/collectable/vivid/polygon.ex
jamesotron/vivid
01a0089384d8daced8f22a97c49e657fc245fb3c
[ "MIT" ]
2
2017-03-18T22:45:49.000Z
2017-05-08T07:24:58.000Z
defimpl Collectable, for: Vivid.Polygon do alias Vivid.{Polygon, Point} @doc """ Collect an enumerable into a Polygon. ## Examples iex> [Vivid.Point.init(1,1)] |> Enum.into(Vivid.Polygon.init) %Vivid.Polygon{vertices: [%Vivid.Point{x: 1, y: 1}]} """ @spec into(Polygon.t()) :: {list, function}...
24.954545
67
0.582878
1c53ba9c869b16f86f264df7289e3a0ccb6b5bc0
182
exs
Elixir
priv/repo/migrations/20210224210003_add_operator_notes_on_news_tips.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
71
2019-07-02T18:06:15.000Z
2022-03-09T15:30:08.000Z
priv/repo/migrations/20210224210003_add_operator_notes_on_news_tips.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
157
2019-07-02T01:21:16.000Z
2022-03-30T16:08:12.000Z
priv/repo/migrations/20210224210003_add_operator_notes_on_news_tips.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
45
2019-07-04T05:51:11.000Z
2022-02-27T11:56:02.000Z
defmodule Erlef.Repo.Migrations.AddOperatorNotesOnNewsTips do use Ecto.Migration def change do alter table(:news_tips) do add :operator_notes, :map end end end
18.2
61
0.730769
1c53f8f2eb2826a2e94c2e5b70edee82d43c8539
278
exs
Elixir
test/exchange_api_web/views/layout_view_test.exs
realyarilabs/exchange_api
c7dd9af9356277a022b164675cc1622359af8a76
[ "Apache-2.0" ]
3
2020-08-10T10:09:26.000Z
2020-08-28T08:41:36.000Z
test/exchange_api_web/views/layout_view_test.exs
realyarilabs/exchange_api
c7dd9af9356277a022b164675cc1622359af8a76
[ "Apache-2.0" ]
30
2020-08-17T10:38:24.000Z
2022-02-28T07:06:42.000Z
test/exchange_api_web/views/layout_view_test.exs
realyarilabs/exchange_api
c7dd9af9356277a022b164675cc1622359af8a76
[ "Apache-2.0" ]
1
2020-09-17T13:08:47.000Z
2020-09-17T13:08:47.000Z
defmodule ExchangeApiWeb.LayoutViewTest do use ExchangeApiWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
30.888889
65
0.773381
1c5401546e27ecda64e51dc7e548d1a997dd6a82
101
exs
Elixir
config/test.exs
kommitters/stellar_sdk
4c3bb1c894b4bb34d9409c981ff008dce31bdb95
[ "MIT" ]
4
2022-01-14T16:00:07.000Z
2022-03-22T19:16:55.000Z
config/test.exs
kommitters/stellar_sdk
4c3bb1c894b4bb34d9409c981ff008dce31bdb95
[ "MIT" ]
75
2021-08-18T16:04:12.000Z
2022-03-31T18:14:23.000Z
config/test.exs
kommitters/stellar_sdk
4c3bb1c894b4bb34d9409c981ff008dce31bdb95
[ "MIT" ]
2
2022-01-23T03:16:43.000Z
2022-02-07T20:13:37.000Z
use Mix.Config config :stellar_sdk, http_client: StellarSDK.Horizon.HackneyMock, network: :test
16.833333
46
0.782178
1c542e1cd96bf42c570b6dedf01a49355851535c
542
ex
Elixir
lib/resx/utility.ex
ScrimpyCat/Resx
b7ed996a6202ecaa6e411ebd989198e16d97719d
[ "BSD-2-Clause" ]
null
null
null
lib/resx/utility.ex
ScrimpyCat/Resx
b7ed996a6202ecaa6e411ebd989198e16d97719d
[ "BSD-2-Clause" ]
null
null
null
lib/resx/utility.ex
ScrimpyCat/Resx
b7ed996a6202ecaa6e411ebd989198e16d97719d
[ "BSD-2-Clause" ]
null
null
null
defmodule Utility do @moduledoc false @doc false @spec map_schemes(%{ optional(String.t) => module }, [module | { String.t, module }]) :: %{ optional(String.t) => module } def map_schemes(map \\ %{}, producers) def map_schemes(map, []), do: map def map_schemes(map, [{ scheme, producer }|produce...
49.272727
150
0.656827
1c5442ff8129ecd280a29f85650c030cb88dd9a9
493
ex
Elixir
lib/jit_jerky_web/views/error_view.ex
Wobblesday/JIT-Jerky
b60c52ee76cf9ae4836ee99f3deccda72fccc656
[ "Apache-2.0" ]
null
null
null
lib/jit_jerky_web/views/error_view.ex
Wobblesday/JIT-Jerky
b60c52ee76cf9ae4836ee99f3deccda72fccc656
[ "Apache-2.0" ]
null
null
null
lib/jit_jerky_web/views/error_view.ex
Wobblesday/JIT-Jerky
b60c52ee76cf9ae4836ee99f3deccda72fccc656
[ "Apache-2.0" ]
null
null
null
defmodule JITJerkyWeb.ErrorView do use JITJerkyWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template na...
29
61
0.736308
1c5449d419099ec9323d7d91f418fd3e591b0d1d
88
exs
Elixir
test/doctest_test.exs
hnen/GoogleSheets
80d288deb69a0ffa778657e0eb077fc2057804a3
[ "MIT" ]
42
2015-03-17T10:54:14.000Z
2021-06-07T07:37:23.000Z
test/doctest_test.exs
hnen/GoogleSheets
80d288deb69a0ffa778657e0eb077fc2057804a3
[ "MIT" ]
9
2015-07-21T10:43:48.000Z
2019-12-08T22:50:37.000Z
test/doctest_test.exs
hnen/GoogleSheets
80d288deb69a0ffa778657e0eb077fc2057804a3
[ "MIT" ]
10
2015-03-17T10:45:19.000Z
2021-06-07T07:22:40.000Z
defmodule GoogleSheets.Test do use ExUnit.Case, async: true doctest GoogleSheets end
22
30
0.806818
1c546718477196c9d680cba5dbf118858402b39b
1,725
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/sizes_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/sizes_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/sizes_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.5
153
0.729275
1c5469eb22e71325304ade280bb617eaf5b7e608
59,059
ex
Elixir
lib/elixir/lib/enum.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "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 underne...
25.533506
129
0.598165
1c546c665f4100c9e7b90f431a61c85d8bbd2225
60
ex
Elixir
apps/theta_web/lib/theta_web/views/profile_view.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
apps/theta_web/lib/theta_web/views/profile_view.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
11
2020-07-21T09:34:54.000Z
2021-08-29T07:38:02.000Z
apps/theta_web/lib/theta_web/views/profile_view.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
defmodule ThetaWeb.ProfileView do use ThetaWeb, :view end
15
33
0.8
1c54aff9a1747d550f789c4def6cdf78f31aa17d
1,770
exs
Elixir
clients/datastream/mix.exs
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/datastream/mix.exs
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/datastream/mix.exs
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
26.41791
101
0.648588
1c54c3ae6ccbbbc5ec1d6c687266ea3c7fd095dd
698
ex
Elixir
lib/ex_money_web/views/mobile/transaction_view.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
184
2015-11-23T20:51:50.000Z
2022-03-30T01:01:39.000Z
lib/ex_money_web/views/mobile/transaction_view.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
15
2015-11-26T16:00:20.000Z
2018-05-25T20:13:39.000Z
lib/ex_money_web/views/mobile/transaction_view.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
21
2015-11-26T21:34:40.000Z
2022-03-26T02:56:42.000Z
defmodule ExMoney.Web.Mobile.TransactionView do use ExMoney.Web, :view alias ExMoney.Transaction def balance(transactions) do Enum.reduce(transactions, Decimal.new(0), fn(transaction, acc) -> Decimal.add(acc, transaction.amount) end) end def description(%Transaction{extra: nil} = transaction) ...
23.266667
83
0.704871
1c54d8f2d11f550586138175e1e0a5237390d8fd
4,952
ex
Elixir
apps/mishka_content/lib/general/subscription.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
apps/mishka_content/lib/general/subscription.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
apps/mishka_content/lib/general/subscription.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
defmodule MishkaContent.General.Subscription do alias MishkaDatabase.Schema.MishkaContent.Subscription import Ecto.Query use MishkaDeveloperTools.DB.CRUD, module: Subscription, error_atom: :subscription, repo: MishkaDatabase.Repo @type data_uuid() :: Ecto.UUID.t @type record_in...
33.687075
135
0.675889
1c55041e8c2b1f8fd27953364db094065be6b402
1,256
exs
Elixir
test/yacto/db_test.exs
pumbaacave/yacto
6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23
[ "Apache-2.0" ]
null
null
null
test/yacto/db_test.exs
pumbaacave/yacto
6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23
[ "Apache-2.0" ]
1
2019-03-06T20:05:53.000Z
2019-03-06T20:05:54.000Z
test/yacto/db_test.exs
pumbaacave/yacto
6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23
[ "Apache-2.0" ]
1
2019-03-06T20:03:49.000Z
2019-03-06T20:03:49.000Z
defmodule Yacto.DBTest do use PowerAssert setup do Memoize.invalidate() databases = %{ default: %{module: Yacto.DB.Single, repo: Yacto.Repo.Default}, player: %{module: Yacto.DB.Shard, repos: [Yacto.Repo.Player1, Yacto.Repo.Player2]} } Application.put_env(:yacto, :databases, databases)...
26.723404
88
0.652866
1c550927a39e7f3d4df778877a1c36e14acf8a48
3,940
exs
Elixir
apps/site/test/site/content_rewriters/liquid_objects_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/test/site/content_rewriters/liquid_objects_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/test/site/content_rewriters/liquid_objects_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule Site.ContentRewriters.LiquidObjectsTest do use ExUnit.Case, async: true import Site.ContentRewriters.LiquidObjects import Phoenix.HTML, only: [safe_to_string: 1] import SiteWeb.PartialView.SvgIconWithCircle, only: [svg_icon_with_circle: 1] import SiteWeb.ViewHelpers, only: [fa: 1, svg: 1] alias ...
41.914894
95
0.669289
1c55371378ac7ec124740a6330ce827e4e6ebb25
1,840
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/video_formats_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/video_formats_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/video_formats_list_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...
36.8
194
0.747826
1c559e57207b95730ac9170b585aa965082f3681
1,315
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/get_ancestry_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/get_ancestry_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/get_ancestry_request.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...
29.886364
90
0.768061
1c55a71fbde47fb649660f58e55784ea099605ec
4,990
ex
Elixir
lib/glimesh/graphql/resolvers/channel_resolver.ex
danstiner/glimesh.tv
49443b26109e50e798a6c12247594b297a7a812f
[ "MIT" ]
null
null
null
lib/glimesh/graphql/resolvers/channel_resolver.ex
danstiner/glimesh.tv
49443b26109e50e798a6c12247594b297a7a812f
[ "MIT" ]
null
null
null
lib/glimesh/graphql/resolvers/channel_resolver.ex
danstiner/glimesh.tv
49443b26109e50e798a6c12247594b297a7a812f
[ "MIT" ]
null
null
null
defmodule Glimesh.Resolvers.ChannelResolver do @moduledoc false alias Glimesh.Accounts alias Glimesh.Accounts.User alias Glimesh.ChannelCategories alias Glimesh.ChannelLookups alias Glimesh.Payments alias Glimesh.Payments.Subscription alias Glimesh.Streams @error_not_found "Could not find resource" ...
27.569061
100
0.670741
1c55ac17d7e867f53f12960626b1772e318f2762
1,580
ex
Elixir
clients/game_services/lib/google_api/game_services/v1/model/fleet_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/game_services/lib/google_api/game_services/v1/model/fleet_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/game_services/lib/google_api/game_services/v1/model/fleet_config.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...
31.6
140
0.715823
1c55ca4dffa8708489175ca4d2db4dd258a9f362
1,852
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/create_instance_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/spanner/lib/google_api/spanner/v1/model/create_instance_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/spanner/lib/google_api/spanner/v1/model/create_instance_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.04
203
0.730562
1c5601b19b686112810c35823e2d13d9b989f0fb
3,294
exs
Elixir
test/oban/config_test.exs
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
test/oban/config_test.exs
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
test/oban/config_test.exs
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
defmodule Oban.ConfigTest do use Oban.Case, async: true alias Oban.Config alias Oban.Plugins.Pruner describe "new/1" do test "legacy :circuit_backoff option is ignored" do assert_valid(circuit_backoff: 10) end test ":engine is validated as an engine module" do refute_valid(engine: nil...
27.22314
81
0.655131
1c5603af44a8411937263c670486e1d684404145
178
exs
Elixir
priv/repo/migrations/20200525195026_add_refresh_token_to_accounts.exs
alejandronanez/phoenix-absinthe-auth-template
e4e72f52247cb4c880ddc058beaa7b5eecb68980
[ "MIT" ]
8
2020-06-25T03:15:06.000Z
2021-12-10T10:52:26.000Z
priv/repo/migrations/20200525195026_add_refresh_token_to_accounts.exs
alejandronanez/phoenix-absinthe-auth-template
e4e72f52247cb4c880ddc058beaa7b5eecb68980
[ "MIT" ]
null
null
null
priv/repo/migrations/20200525195026_add_refresh_token_to_accounts.exs
alejandronanez/phoenix-absinthe-auth-template
e4e72f52247cb4c880ddc058beaa7b5eecb68980
[ "MIT" ]
null
null
null
defmodule Ticketo.Repo.Migrations.AddRefreshTokenToAccounts do use Ecto.Migration def change do alter table(:users) do add :refresh_token, :text end end end
17.8
62
0.730337
1c56307ab65e2df2b05ccea80aab6438c0bb1eb5
461
ex
Elixir
lib/mix/tasks/phx_up.gen.t.ex
adolfont/phoenix_up
97b9ba4c0a0696d9197a0466adfd71433353cc1f
[ "MIT" ]
27
2020-02-22T21:15:33.000Z
2021-12-25T07:31:14.000Z
lib/mix/tasks/phx_up.gen.t.ex
adolfont/phoenix_up
97b9ba4c0a0696d9197a0466adfd71433353cc1f
[ "MIT" ]
1
2020-03-07T12:14:12.000Z
2020-03-07T12:14:12.000Z
lib/mix/tasks/phx_up.gen.t.ex
adolfont/phoenix_up
97b9ba4c0a0696d9197a0466adfd71433353cc1f
[ "MIT" ]
2
2020-03-03T13:09:08.000Z
2020-07-24T05:07:45.000Z
defmodule Mix.Tasks.PhxUp.Gen.T do @shortdoc false @moduledoc false use Mix.Task @doc false def run(io_puts \\ true, args) do if io_puts == true do IO.puts(""" _ __ __ _____ ___| |_ _ _ | | | _ | | . | |_'_| | | | __| | _|_|_|_,_|_____|...
20.954545
50
0.470716
1c5663c5d13a13f00105faa1f27d2893bb0dc14e
380
exs
Elixir
apps/omg_child_chain/config/config.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2020-05-01T12:30:09.000Z
2020-05-01T12:30:09.000Z
apps/omg_child_chain/config/config.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg_child_chain/config/config.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2021-12-04T00:37:46.000Z
2021-12-04T00:37:46.000Z
use Mix.Config # see [here](README.md) for documentation config :omg_child_chain, submission_finality_margin: 20, block_queue_eth_height_check_interval_ms: 6_000, fee_file_check_interval_ms: 10_000, child_block_minimal_enqueue_gap: 1, fee_specs_file_name: "fee_specs.json", ignore_fees: false, metrics_co...
25.333333
50
0.8
1c5696c1e33f0802436acd88001a0a55b735122b
1,206
ex
Elixir
lib/b2_client/backend.ex
vloaix/b2_client
69da7735f9459fc3503e358b9d9e2e68c07f1adf
[ "MIT" ]
null
null
null
lib/b2_client/backend.ex
vloaix/b2_client
69da7735f9459fc3503e358b9d9e2e68c07f1adf
[ "MIT" ]
null
null
null
lib/b2_client/backend.ex
vloaix/b2_client
69da7735f9459fc3503e358b9d9e2e68c07f1adf
[ "MIT" ]
null
null
null
defmodule B2Client.Backend do alias B2Client.{Authorization, Bucket, File, UploadAuthorization} @type account_id :: String.t @type application_key :: String.t @type file_contents :: iodata @type file_name :: String.t @callback authenticate(account_id, application_key) :: {:ok, Authorization.t} | {:error,...
48.24
118
0.696517
1c5698dfc2e5c9fdcd0898b6ec319bccd741dd3e
388
ex
Elixir
lib/tokenizers/daily.ex
rcdilorenzo/repeatex
eb7e1ec5d0431bef936a01e656b4454ed555ae00
[ "MIT" ]
51
2015-01-22T14:16:59.000Z
2021-07-27T15:51:47.000Z
lib/tokenizers/daily.ex
ruby2elixir/repeatex
eb7e1ec5d0431bef936a01e656b4454ed555ae00
[ "MIT" ]
15
2015-02-07T19:33:04.000Z
2019-03-22T19:51:04.000Z
lib/tokenizers/daily.ex
ruby2elixir/repeatex
eb7e1ec5d0431bef936a01e656b4454ed555ae00
[ "MIT" ]
6
2016-01-08T05:41:10.000Z
2019-04-02T12:27:34.000Z
defmodule Repeatex.Tokenizer.Daily do @behaviour Repeatex.Tokenizer use Repeatex.Helper match_type :daily, ~r/(days?|daily)/i match_freq 1, ~r/(^daily$)|(every|each)(\s|^)day/i match_freq 2, ~r/every\s?other\s?day/i match_freq "digit", ~r/(every|each).(?<digit>\d+)[\w\s]{0,3}day/i def days(_), do: [] ...
24.25
67
0.652062
1c56a503bba6437618bda80b4da8a3d9c43c1c58
3,472
exs
Elixir
test/integration/uniqueness_test.exs
smaximov/oban
096e9f6b5a397f7863243466dbe002d1aba0d57e
[ "Apache-2.0" ]
null
null
null
test/integration/uniqueness_test.exs
smaximov/oban
096e9f6b5a397f7863243466dbe002d1aba0d57e
[ "Apache-2.0" ]
null
null
null
test/integration/uniqueness_test.exs
smaximov/oban
096e9f6b5a397f7863243466dbe002d1aba0d57e
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Integration.UniquenessTest do use Oban.Case import Ecto.Query alias Ecto.Multi @moduletag :integration @oban_opts repo: Repo, queues: [alpha: 5] defmodule UniqueWorker do use Oban.Worker, queue: :upsilon, unique: [period: 30] @impl Worker def perform(_args, _job), do: :ok ...
31.279279
94
0.599078
1c56b43a8889109f60e87a0f8144ecf73699f141
675
ex
Elixir
lib/ex_tectonicdb/dtf.ex
0b01/ex_tectonicdb
49d0ea4920aa60e97f1a63e72d660b7dd5231654
[ "MIT" ]
2
2020-05-18T07:16:14.000Z
2020-10-07T19:25:46.000Z
lib/ex_tectonicdb/dtf.ex
0b01/ex_tectonicdb
49d0ea4920aa60e97f1a63e72d660b7dd5231654
[ "MIT" ]
null
null
null
lib/ex_tectonicdb/dtf.ex
0b01/ex_tectonicdb
49d0ea4920aa60e97f1a63e72d660b7dd5231654
[ "MIT" ]
null
null
null
defmodule ExTectonicdb.Dtf do @moduledoc """ Dense Tick Format """ alias __MODULE__ @type t :: %Dtf{ timestamp: any, seq: any, is_trade: boolean, is_bid: boolean, price: any, size: any } @enforce_keys ~w[timestamp seq is_trade is_bid pric...
20.454545
61
0.567407
1c56e0be902f10da4fda1cd5b6b9b94189aa9132
5,535
ex
Elixir
lib/oban/telemetry.ex
jordelver/oban
52169cfcad92c09038fd7d9ffc3a99a4c704b614
[ "Apache-2.0" ]
null
null
null
lib/oban/telemetry.ex
jordelver/oban
52169cfcad92c09038fd7d9ffc3a99a4c704b614
[ "Apache-2.0" ]
null
null
null
lib/oban/telemetry.ex
jordelver/oban
52169cfcad92c09038fd7d9ffc3a99a4c704b614
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Telemetry do @moduledoc """ Telemetry integration for event metrics, logging and error reporting. ### Job Events Oban emits an event after a job executes: `[:oban, :success]` if the job succeeded or `[:oban, :failure]` if there was an error or the process crashed. All job events share the ...
34.378882
110
0.6271
1c56e76114a7cac56b3fc994402e6ca36954f305
2,115
exs
Elixir
mix.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
4
2021-05-04T13:14:32.000Z
2021-09-04T12:16:44.000Z
mix.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
null
null
null
mix.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
null
null
null
defmodule LiveViewCollection.MixProject do use Mix.Project def project do [ app: :phoenix_live_view_collection, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :pro...
27.828947
84
0.568322
1c56ef0e7848be0ad0460e5d16806d8170506ca2
259
ex
Elixir
lib/jack_rabbit/processor/logger.ex
norbu09/jack_rabbit
e46ca0ed9bec1e879a3e0edce616b79e436e4b50
[ "BSD-2-Clause" ]
null
null
null
lib/jack_rabbit/processor/logger.ex
norbu09/jack_rabbit
e46ca0ed9bec1e879a3e0edce616b79e436e4b50
[ "BSD-2-Clause" ]
null
null
null
lib/jack_rabbit/processor/logger.ex
norbu09/jack_rabbit
e46ca0ed9bec1e879a3e0edce616b79e436e4b50
[ "BSD-2-Clause" ]
null
null
null
defmodule JackRabbit.Processor.Logger do @behaviour JackRabbit.Worker require Logger def process(_pid, job) do Logger.debug("[CLIENT]{process} Got some data: #{inspect job}.") res = %{"Logger" => "ok"} {:client_response, res} end end
19.923077
68
0.667954
1c57003a0b1896846fb8fe3a57a0b70f3d86bbbf
825
ex
Elixir
lib/vex/validator/source.ex
r26D/vex
328a39f7688000e2746386eabe2f40e6c8e7796b
[ "MIT" ]
560
2015-01-12T00:07:27.000Z
2022-02-07T03:21:44.000Z
lib/vex/validator/source.ex
r26D/vex
328a39f7688000e2746386eabe2f40e6c8e7796b
[ "MIT" ]
55
2015-02-16T18:59:57.000Z
2021-12-23T12:34:25.000Z
lib/vex/validator/source.ex
r26D/vex
328a39f7688000e2746386eabe2f40e6c8e7796b
[ "MIT" ]
63
2015-02-12T03:49:50.000Z
2021-12-12T00:11:01.000Z
defprotocol Vex.Validator.Source do def lookup(source, name) end defimpl Vex.Validator.Source, for: Atom do import Macro, only: [camelize: 1] def lookup(source, name) do validator_by_function(source, name) || validator_by_structure(source, name) end defp validator_by_function(source, name) do Code....
21.710526
79
0.72
1c5701ca9fe750a5cc2fbc470a29719030b0e4d9
516
exs
Elixir
config/runtime.exs
juhalehtonen/livebook
73caecc7f195a0ef561e7a1e909aea573eef105c
[ "Apache-2.0" ]
1
2021-05-21T22:14:23.000Z
2021-05-21T22:14:23.000Z
config/runtime.exs
cristina007-bot/livebook
101f582196a161a06b62b38fe55c7f8c0a04b54d
[ "Apache-2.0" ]
null
null
null
config/runtime.exs
cristina007-bot/livebook
101f582196a161a06b62b38fe55c7f8c0a04b54d
[ "Apache-2.0" ]
null
null
null
import Config require Logger config :livebook, LivebookWeb.Endpoint, secret_key_base: Livebook.Config.secret!("LIVEBOOK_SECRET_KEY_BASE") || Base.encode64(:crypto.strong_rand_bytes(48)) if password = Livebook.Config.password!("LIVEBOOK_PASSWORD") do config :livebook, authentication_mode: :password, pass...
28.666667
70
0.76938
1c5702a9d4f7e92647cf30ada9ee6ca02c875d17
751
exs
Elixir
test/test_helper.exs
MaethorNaur/ex_gdax
efe9246c2d837b2230ecc39238a9e661ed7d63e8
[ "MIT" ]
6
2018-12-04T22:05:05.000Z
2022-01-08T11:54:40.000Z
test/test_helper.exs
MaethorNaur/ex_gdax
efe9246c2d837b2230ecc39238a9e661ed7d63e8
[ "MIT" ]
14
2019-12-21T11:32:30.000Z
2022-03-28T16:07:01.000Z
test/test_helper.exs
MaethorNaur/ex_gdax
efe9246c2d837b2230ecc39238a9e661ed7d63e8
[ "MIT" ]
5
2019-04-10T00:41:17.000Z
2021-12-23T14:49:02.000Z
ExUnit.start() defmodule TestHelper do use ExUnit.Case, async: false import Mock def with_mock_request(:get, response, fun) do with_mock_request({:get, fn _url, _headers -> response end}, fun) end def with_mock_request(:post, response, fun) do with_mock_request({:post, fn _url, _body, _headers -> ...
24.225806
77
0.691079
1c570ffb6a309e37c84094a408ba8eb7b19207bf
499
ex
Elixir
2016/day15/lib/day15/solution.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day15/lib/day15/solution.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day15/lib/day15/solution.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
defmodule Day15.Solution do @moduledoc """ Represents a step in finding the start time. """ alias Day15.Disc alias Day15.Solution defstruct [:push, :interval] def new, do: %Solution{push: 0, interval: 1} def step(disc, solution) do if disc |> Disc.correct_position?(solution.push) do %{solut...
23.761905
70
0.671343
1c57428677854c721661d3d48cbe721f66b6e6da
1,131
exs
Elixir
mix.exs
samsamai/ecto_immigrant
aae8798eb9bdb908d80eabb123e823d07721c578
[ "Apache-2.0" ]
4
2019-11-06T04:43:49.000Z
2021-04-02T09:06:34.000Z
mix.exs
samsamai/ecto_immigrant
aae8798eb9bdb908d80eabb123e823d07721c578
[ "Apache-2.0" ]
4
2020-09-14T05:14:50.000Z
2021-04-18T05:42:35.000Z
mix.exs
samsamai/ecto_immigrant
aae8798eb9bdb908d80eabb123e823d07721c578
[ "Apache-2.0" ]
7
2020-05-28T06:21:43.000Z
2021-05-28T07:25:47.000Z
defmodule EctoImmigrant.MixProject do use Mix.Project @version "0.3.0" def project do [ app: :ecto_immigrant, description: "Data migrations for your ecto-backed elixir application", version: @version, elixir: "~> 1.8", start_permanent: Mix.env() == :prod, description: des...
22.176471
77
0.578249
1c575057fb8c14fd0e50fe64a068dc9e8d995f81
351
ex
Elixir
lib/discuss_web/controllers/plugs/require_auth.ex
frunox/discuss
d19367eceb8c68ebef4e565981ceef256b5cb04e
[ "MIT" ]
null
null
null
lib/discuss_web/controllers/plugs/require_auth.ex
frunox/discuss
d19367eceb8c68ebef4e565981ceef256b5cb04e
[ "MIT" ]
null
null
null
lib/discuss_web/controllers/plugs/require_auth.ex
frunox/discuss
d19367eceb8c68ebef4e565981ceef256b5cb04e
[ "MIT" ]
null
null
null
defmodule Discuss.Plugs.RequireAuth do use DiscussWeb, :controller import Plug.Conn def init(_opts) do end def call(conn, _opts) do if conn.assigns[:user] do conn else conn |> put_flash(:error, "You must log in to do this") |> redirect(to: Routes.topic_path(conn, :index)) ...
18.473684
56
0.623932
1c579ac82e4223280f66b5b379498e53f3f3b356
1,947
exs
Elixir
test/vintage_net/technology/gadget_test.exs
jjcarstens/vintage_net
221b27f4ea5ff2d43d27357eb3b0a008fe364ecc
[ "Apache-2.0" ]
null
null
null
test/vintage_net/technology/gadget_test.exs
jjcarstens/vintage_net
221b27f4ea5ff2d43d27357eb3b0a008fe364ecc
[ "Apache-2.0" ]
null
null
null
test/vintage_net/technology/gadget_test.exs
jjcarstens/vintage_net
221b27f4ea5ff2d43d27357eb3b0a008fe364ecc
[ "Apache-2.0" ]
null
null
null
defmodule VintageNet.Technology.GadgetTest do use ExUnit.Case alias VintageNet.Interface.RawConfig alias VintageNet.Technology.Gadget import VintageNetTest.Utils test "normalization simplifies configuration" do input = %{type: VintageNet.Technology.Gadget, random_field: 42} assert Gadget.normalize(...
33
90
0.601438