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
281ac22a2d06fa7e2110d17a42cb0b486230e758
70
exs
Elixir
test/test_helper.exs
itorisaias/peek_code
4f748e45fddc9e817fd4a5ad4d5811451efaa11c
[ "BSD-Source-Code", "Adobe-Glyph" ]
null
null
null
test/test_helper.exs
itorisaias/peek_code
4f748e45fddc9e817fd4a5ad4d5811451efaa11c
[ "BSD-Source-Code", "Adobe-Glyph" ]
null
null
null
test/test_helper.exs
itorisaias/peek_code
4f748e45fddc9e817fd4a5ad4d5811451efaa11c
[ "BSD-Source-Code", "Adobe-Glyph" ]
1
2021-03-05T00:21:07.000Z
2021-03-05T00:21:07.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(PeekCode.Repo, :manual)
23.333333
54
0.785714
281ad11cdc0e6aae686a4710831a9a31dae06d7e
2,971
ex
Elixir
lib/hunter/application.ex
jeffkreeftmeijer/hunter
a5ccf0849c8aeaee3dd90b431067924ff603a651
[ "Apache-2.0" ]
null
null
null
lib/hunter/application.ex
jeffkreeftmeijer/hunter
a5ccf0849c8aeaee3dd90b431067924ff603a651
[ "Apache-2.0" ]
null
null
null
lib/hunter/application.ex
jeffkreeftmeijer/hunter
a5ccf0849c8aeaee3dd90b431067924ff603a651
[ "Apache-2.0" ]
null
null
null
defmodule Hunter.Application do @moduledoc """ Application entity This module defines a `Hunter.Application` struct and the main functions for working with Applications. ## Fields * `id` - identifier * `client_id` - client id * `client_secret` - client secret """ @hunter_api Hunter.Config...
28.028302
165
0.642881
281ad4453e6903c0f5e69ed04eeb2bed7a3103df
21,905
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/target_vpn_gateways.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/target_vpn_gateways.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/target_vpn_gateways.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...
52.279236
511
0.654919
281b5a493a25b0d2b6bffe4024fce579ddd6bd97
1,301
ex
Elixir
priv/templates/brando.install/lib/application_name/application.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
priv/templates/brando.install/lib/application_name/application.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
priv/templates/brando.install/lib/application_name/application.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule <%= application_module %>.Application do @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Ecto repository <%= application_module %>.Repo, # Start the Telemetry supervisor <%= application_modu...
33.358974
83
0.67794
281b7a6fd8e3dd62c17fd6881cdecb61847cc6a5
8,523
ex
Elixir
lib/commanded/event_store/event_store.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
null
null
null
lib/commanded/event_store/event_store.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
null
null
null
lib/commanded/event_store/event_store.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
null
null
null
defmodule Commanded.EventStore do @moduledoc """ Defines the behaviour to be implemented by an event store adapter to be used by Commanded. """ alias Commanded.EventStore.{EventData, RecordedEvent, SnapshotData} @type stream_uuid :: String.t() @type start_from :: :origin | :current | integer @type expec...
32.530534
98
0.687786
281b8697bc8159105de8f22698fb09efaa673378
894
exs
Elixir
test/test-umbrella/apps/one/mix.exs
Batou99/mix_docker
746048b6942a2a52686ac0658aa66d25f106d82b
[ "MIT" ]
2
2018-05-09T20:32:57.000Z
2018-09-20T05:04:23.000Z
test/test-umbrella/apps/one/mix.exs
Batou99/mix_docker
746048b6942a2a52686ac0658aa66d25f106d82b
[ "MIT" ]
null
null
null
test/test-umbrella/apps/one/mix.exs
Batou99/mix_docker
746048b6942a2a52686ac0658aa66d25f106d82b
[ "MIT" ]
2
2018-12-16T00:06:42.000Z
2019-03-01T10:31:38.000Z
defmodule One.Mixfile do use Mix.Project def project do [app: :one, version: "0.1.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_perman...
21.804878
77
0.587248
281b90c3a30a7900758196d4f1b143376a42f5fb
1,980
ex
Elixir
kousa/lib/kousa.ex
CodeRustyPro/dogehouse
aec2f6a49588502f09afe17926f8a9cbcc323d81
[ "MIT" ]
1
2021-04-05T05:28:19.000Z
2021-04-05T05:28:19.000Z
kousa/lib/kousa.ex
CodeRustyPro/dogehouse
aec2f6a49588502f09afe17926f8a9cbcc323d81
[ "MIT" ]
null
null
null
kousa/lib/kousa.ex
CodeRustyPro/dogehouse
aec2f6a49588502f09afe17926f8a9cbcc323d81
[ "MIT" ]
null
null
null
defmodule Kousa do use Application # def start(_type, _args) do import Supervisor.Spec, warn: false Kousa.Metric.PrometheusExporter.setup() Kousa.Metric.PipelineInstrumenter.setup() Kousa.Metric.UserSessions.setup() children = [ # top-level supervisor for UserSession group Onion....
23.294118
68
0.59798
281bca5178b8075e3c28ccc5d3108b664feff2d3
372
exs
Elixir
example/config/test.exs
tokafish/phoenix-jsroutes
2deb3d03210e4a91a0550079fa6c300595c86b0c
[ "MIT" ]
27
2016-06-05T02:07:58.000Z
2021-06-11T20:12:38.000Z
example/config/test.exs
tokafish/phoenix-jsroutes
2deb3d03210e4a91a0550079fa6c300595c86b0c
[ "MIT" ]
9
2016-06-21T18:09:58.000Z
2021-03-10T14:21:51.000Z
example/config/test.exs
tiagoengel/phoenix-jsroutes
9dacc6472c9db0f97d7a39e1cc7e1b7dbd74ac50
[ "MIT" ]
6
2016-06-05T21:01:13.000Z
2020-04-22T13:50:37.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :js_routes_example, JsRoutesExampleWeb.Endpoint, http: [port: 4001], server: true, code_reloader: true, reloadable_compilers: [:gettext, :phoenix, :elixir, :jsroutes] # Print only warnings ...
28.615385
64
0.747312
281bcc1ac190b03ec7b539e1fb42dd6a4ebed4c8
9,045
ex
Elixir
lib/sippet/proxy.ex
balena/elixir-sippet-proxy
868f4b1b07f6f214fff084b182076306e580ac9c
[ "BSD-3-Clause" ]
5
2017-06-18T14:19:47.000Z
2021-08-18T17:08:51.000Z
lib/sippet/proxy.ex
balena/elixir-sippet-proxy
868f4b1b07f6f214fff084b182076306e580ac9c
[ "BSD-3-Clause" ]
1
2017-11-02T21:44:24.000Z
2017-11-03T12:19:54.000Z
lib/sippet/proxy.ex
balena/elixir-sippet-proxy
868f4b1b07f6f214fff084b182076306e580ac9c
[ "BSD-3-Clause" ]
1
2017-11-28T23:10:39.000Z
2017-11-28T23:10:39.000Z
defmodule Sippet.Proxy do @moduledoc """ Defines very basic operations commonly used in SIP Proxies. """ alias Sippet.Message, as: Message alias Sippet.Message.RequestLine, as: RequestLine alias Sippet.Message.StatusLine, as: StatusLine alias Sippet.URI, as: URI alias Sippet.Transactions, as: Transacti...
32.188612
86
0.658928
281bdd5ad5b2012b851fc991a285f1a15ec98b68
1,115
ex
Elixir
apps/site/lib/site_web/controllers/schedule/route_breadcrumbs.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/lib/site_web/controllers/schedule/route_breadcrumbs.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/lib/site_web/controllers/schedule/route_breadcrumbs.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.ScheduleController.RouteBreadcrumbs do @moduledoc "Fetches the route from `conn.assigns` and assigns breadcrumbs." @behaviour Plug import Plug.Conn, only: [assign: 3] import SiteWeb.Router.Helpers, only: [mode_path: 2] alias Util.Breadcrumb @impl true def init([]), do: [] @impl true ...
27.195122
82
0.695964
281c0a9c71f36955f41f895c754abbc30e83a5a6
58
exs
Elixir
test/unit/spell/role/session_test.exs
andykingking/spell
fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2
[ "Apache-2.0" ]
76
2015-05-14T20:44:55.000Z
2022-03-25T02:24:27.000Z
test/unit/spell/role/session_test.exs
andykingking/spell
fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2
[ "Apache-2.0" ]
46
2015-05-09T19:46:49.000Z
2019-08-02T04:01:46.000Z
test/unit/spell/role/session_test.exs
andykingking/spell
fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2
[ "Apache-2.0" ]
27
2015-06-23T11:32:34.000Z
2020-09-21T15:36:42.000Z
defmodule Spell.Role.SessionTest do use ExUnit.Case end
14.5
35
0.810345
281c2ef61560974125c7c69867bae3a24529c7bd
2,174
exs
Elixir
test/entitiex/exposure/formatted_handler_test.exs
undr/entitiex
c6666909290b4077b47659ce11891659226e3b88
[ "MIT" ]
null
null
null
test/entitiex/exposure/formatted_handler_test.exs
undr/entitiex
c6666909290b4077b47659ce11891659226e3b88
[ "MIT" ]
null
null
null
test/entitiex/exposure/formatted_handler_test.exs
undr/entitiex
c6666909290b4077b47659ce11891659226e3b88
[ "MIT" ]
null
null
null
defmodule Entitiex.Exposure.FormattedHandlerTest do use ExUnit.Case alias Entitiex.Exposure.FormattedHandler defmodule Test do use Entitiex.Entity def reverse(value) do to_string(value) |> String.reverse end end describe "value" do test "when format is not defined" do exposure ...
37.482759
119
0.671113
281c403d29b3bd3ca3540343cabaa3de16cd6031
13,611
ex
Elixir
lib/exq/manager/server.ex
samidarko/exq
9c5c15b13f8ae2ead1f6ed15af551aa41d92cd90
[ "Apache-2.0" ]
null
null
null
lib/exq/manager/server.ex
samidarko/exq
9c5c15b13f8ae2ead1f6ed15af551aa41d92cd90
[ "Apache-2.0" ]
null
null
null
lib/exq/manager/server.ex
samidarko/exq
9c5c15b13f8ae2ead1f6ed15af551aa41d92cd90
[ "Apache-2.0" ]
null
null
null
defmodule Exq.Manager.Server do @moduledoc """ The Manager module is the main orchestrator for the system It is also the entry point Pid process used by the client to interact with the Exq system. It's responsibilities include: * Handle interaction with client and delegate to responsible sub-system ...
33.44226
101
0.652707
281c480309e186b786d6b543a08c73bcc208ea54
2,384
exs
Elixir
test/yatapp/socket_test.exs
antonioparisi/yatapp-elixir
5d426dda3ec8b9222a7197951da32d6f90d75d83
[ "MIT" ]
2
2019-08-23T09:42:30.000Z
2019-10-29T14:38:36.000Z
test/yatapp/socket_test.exs
antonioparisi/yatapp-elixir
5d426dda3ec8b9222a7197951da32d6f90d75d83
[ "MIT" ]
6
2019-03-27T13:30:05.000Z
2022-01-14T21:12:29.000Z
test/yatapp/socket_test.exs
antonioparisi/yatapp-elixir
5d426dda3ec8b9222a7197951da32d6f90d75d83
[ "MIT" ]
2
2019-11-14T13:51:42.000Z
2022-01-14T09:18:03.000Z
defmodule Yatapp.SocketTest do use ExUnit.Case @store Yatapp.Store.ETS setup do Application.put_env(:yatapp, :locales, ["en", "de"]) Yatapp.Fixtures.load_translations() :ok end test "handle_message/5 'new_translation'" do assert Yatapp.Socket.handle_message( "topic", ...
28.380952
97
0.482383
281c5691c3ed07bedba848b31c1c2764551e7839
311
ex
Elixir
web/actions/register_user_action.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
5
2016-07-05T20:31:46.000Z
2021-03-20T20:11:48.000Z
web/actions/register_user_action.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
null
null
null
web/actions/register_user_action.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
1
2016-07-18T23:00:46.000Z
2016-07-18T23:00:46.000Z
defmodule Webmonitor.RegisterUserAction do use Webmonitor.Web, :action def perform(params) do # create the user user = User.changeset(%User{}, params) case Repo.insert(user) do {:ok, user} -> {:ok, user} {:error, changeset} -> {:error, changeset} end end end
19.4375
42
0.604502
281c69b9061df4ca5b0531cda40722443ca246db
3,442
ex
Elixir
clients/logging/lib/google_api/logging/v2/model/log_exclusion.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/logging/lib/google_api/logging/v2/model/log_exclusion.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/logging/lib/google_api/logging/v2/model/log_exclusion.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
55.516129
527
0.728065
281ca60273e1bb05e146190a346a1d94e017ac49
1,983
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/operation_list_warning_data.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/operation_list_warning_data.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/operation_list_warning_data.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...
39.66
527
0.739284
281cd921f37747c3820eeed687e6381e0072d6d7
3,001
ex
Elixir
lib/central/general/otp/load_test_server.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central/general/otp/load_test_server.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
lib/central/general/otp/load_test_server.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
2
2021-02-23T22:34:00.000Z
2021-04-08T13:31:36.000Z
defmodule Central.General.LoadTest.Server do use GenServer alias Central.General.LoadTest.Stats # import Central.Helpers.NumberHelper, only: [int_parse: 1] import Central.Helpers.FileHelper, only: [mem_normalize: 1] @tester_timeout 3_000 def start_link(opts \\ []) do GenServer.start_link(__MODULE__, ...
23.81746
90
0.623792
281cfbc67d93b4d4126296726be9873f4f68d62f
119
ex
Elixir
lib/phoenix14_base/repo.ex
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
1
2019-03-28T05:47:39.000Z
2019-03-28T05:47:39.000Z
lib/phoenix14_base/repo.ex
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
null
null
null
lib/phoenix14_base/repo.ex
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
1
2020-05-23T09:20:53.000Z
2020-05-23T09:20:53.000Z
defmodule Phoenix14Base.Repo do use Ecto.Repo, otp_app: :phoenix14_base, adapter: Ecto.Adapters.Postgres end
19.833333
35
0.756303
281d128a345e948407a74661cd6344abe8aeecb9
2,219
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/http.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/service_user/lib/google_api/service_user/v1/model/http.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/http.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 ...
37.610169
166
0.733664
281d2da4251381b5ff9f6abb0542760c2a3604d1
1,301
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/repair_application_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/repair_application_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/repair_application_request.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...
30.97619
85
0.76864
281d3a987bd37a2940e054d47f19a288de84a643
2,726
exs
Elixir
test/openid_connect/worker_test.exs
haakonst/openid_connect
e8dfd0033bb3420c1af43653406ccd870900032e
[ "MIT" ]
48
2017-08-27T11:16:42.000Z
2022-02-25T22:51:36.000Z
test/openid_connect/worker_test.exs
haakonst/openid_connect
e8dfd0033bb3420c1af43653406ccd870900032e
[ "MIT" ]
26
2017-10-17T14:56:17.000Z
2022-02-17T10:15:31.000Z
test/openid_connect/worker_test.exs
haakonst/openid_connect
e8dfd0033bb3420c1af43653406ccd870900032e
[ "MIT" ]
33
2018-05-16T12:32:53.000Z
2021-12-08T22:41:18.000Z
defmodule OpenIDConnect.WorkerTest do use ExUnit.Case import Mox setup :set_mox_global setup :verify_on_exit! @google_document Fixtures.load(:google, :discovery_document) @google_certs Fixtures.load(:google, :certs) alias OpenIDConnect.{HTTPClientMock} test "starting with :ignore does nothing" do ...
26.72549
106
0.67755
281d4020eed9c331ab20c42e4b9e29ac2b0424bc
2,312
ex
Elixir
clients/games/lib/google_api/games/v1/model/player_leaderboard_score_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/player_leaderboard_score_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/player_leaderboard_score_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...
41.285714
212
0.732699
281d4cfe85197da3b81ba2370228776bbab9040f
1,074
ex
Elixir
lib/turbo_ecto/builder/join.ex
zgohr/turbo_ecto
2467be3f0923193349c08d18061efbc952523b21
[ "MIT" ]
null
null
null
lib/turbo_ecto/builder/join.ex
zgohr/turbo_ecto
2467be3f0923193349c08d18061efbc952523b21
[ "MIT" ]
null
null
null
lib/turbo_ecto/builder/join.ex
zgohr/turbo_ecto
2467be3f0923193349c08d18061efbc952523b21
[ "MIT" ]
null
null
null
defmodule Turbo.Ecto.Builder.Join do @moduledoc false alias Ecto.Query.Builder.Join @doc """ Builds a quoted join expression. ## Example iex> query = Turbo.Ecto.Variant iex> relations = [:product, :prototypes] iex> Turbo.Ecto.Builder.Join.build(query, relations) #Ecto.Query<from v ...
22.375
114
0.598696
281d65861ccea3a3ad23aeffd03aad0bba2eb7da
3,101
ex
Elixir
clients/container/lib/google_api/container/v1/model/get_open_id_config_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container/lib/google_api/container/v1/model/get_open_id_config_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container/lib/google_api/container/v1/model/get_open_id_config_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...
45.602941
209
0.712028
281d68ab882466656cd4ce119726dc39c84c50f9
1,096
ex
Elixir
apps/legion/lib/identity/telephony/phone_number/prioritization_trait.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion/lib/identity/telephony/phone_number/prioritization_trait.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion/lib/identity/telephony/phone_number/prioritization_trait.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.Identity.Telephony.PhoneNumber.PrioritizationTrait do @moduledoc """ Prioritizes a phone number upon grant. Defines a normalized event sink for prioritization actions. # Schema fields - `:phone_number`: The phone number being affected from the prioritization trait. - `:authority`: The au...
33.212121
83
0.759124
281d77868e4d2976a17cd34a3a05be4b7f74db9f
1,825
exs
Elixir
mix.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
mix.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
mix.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule Hindsight.MixProject do use Mix.Project def project do [ apps_path: "apps", start_permanent: Mix.env() == :prod, deps: deps(), releases: releases(), aliases: aliases(), preferred_cli_env: ["test.unit": :test, "test.int": :test], dialyzer: [ plt_add_ap...
26.838235
85
0.586301
281da976279b1c7feaf42c358f68f5b7522bf3d0
1,874
ex
Elixir
lib/steps/build/copy_release.ex
simonmcconnell/expkg
5f465b5b7170280a5ba5daaa76c2cc5e529310b3
[ "MIT" ]
1
2022-03-25T16:13:49.000Z
2022-03-25T16:13:49.000Z
lib/steps/build/copy_release.ex
simonmcconnell/expkg
5f465b5b7170280a5ba5daaa76c2cc5e529310b3
[ "MIT" ]
null
null
null
lib/steps/build/copy_release.ex
simonmcconnell/expkg
5f465b5b7170280a5ba5daaa76c2cc5e529310b3
[ "MIT" ]
null
null
null
defmodule Relexe.Steps.Build.CopyRelease do alias Burrito.Builder.Context alias Burrito.Builder.Step @behaviour Step @success_banner """ \n\n ----> relexe delivered! """ @impl Step def execute(%Context{} = context) do release_name = Atom.to_string(context.mix_release.name) executable_name =...
32.877193
88
0.682497
281dc083c28176deb5a0c8b146b0609e6274b01b
599
ex
Elixir
lib/ecto/utils.ex
MSch/ecto
648f785b2202193921fe00d68bc334399f5edb93
[ "Apache-2.0" ]
1
2015-08-27T13:17:10.000Z
2015-08-27T13:17:10.000Z
lib/ecto/utils.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
lib/ecto/utils.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Utils do @moduledoc """ Convenience functions used throughout Ecto and imported into users modules. """ @doc """ Receives an `app` and returns the absolute `path` from the application directory. It fails if the application name is invalid. """ @spec app_dir(atom, String.t) :: String....
29.95
75
0.687813
281dea921c8f33743a9c389be6215737b5d3c2e4
2,895
ex
Elixir
apps/repo_cache/lib/log.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/repo_cache/lib/log.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/repo_cache/lib/log.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule RepoCache.Log do @moduledoc """ Responsible for logging hit/miss rates for the different caches. Maintains an ETS table of hit/miss rates, which looks like: {{repo_module, function_name}, hit_count, miss_count} Every 60 seconds, we reset the counts and log the rates, along with the sizes of the...
19.42953
101
0.566494
281e2e08642433e132a5b8048973f32636744fe9
1,099
exs
Elixir
apps/opentelemetry_api/mix.exs
calvin-kargo/opentelemetry-erlang
889a0e5f0147a56a1780b4ea35ea8094851c93d6
[ "Apache-2.0" ]
null
null
null
apps/opentelemetry_api/mix.exs
calvin-kargo/opentelemetry-erlang
889a0e5f0147a56a1780b4ea35ea8094851c93d6
[ "Apache-2.0" ]
null
null
null
apps/opentelemetry_api/mix.exs
calvin-kargo/opentelemetry-erlang
889a0e5f0147a56a1780b4ea35ea8094851c93d6
[ "Apache-2.0" ]
null
null
null
defmodule OpenTelemetry.MixProject do use Mix.Project def project do {app, desc} = load_app() [ app: app, version: to_string(Keyword.fetch!(desc, :vsn)), description: to_string(Keyword.fetch!(desc, :description)), elixir: "~> 1.8", start_permanent: Mix.env() == :prod, d...
24.977273
88
0.577798
281e382a46f63485d5a7510df000739f819a49fd
1,507
ex
Elixir
clients/books/lib/google_api/books/v1/model/dictlayerdata_dict_words_examples_source.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/dictlayerdata_dict_words_examples_source.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/books/lib/google_api/books/v1/model/dictlayerdata_dict_words_examples_source.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...
30.14
93
0.725946
281e460a2bdc778640cac64b69e9c32985efa4bf
709
ex
Elixir
examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox/lib/new_relic_sandbox/accounts/old_user_periodic_deletion.ex
surgeventures/new_relic_integration
5417f15f7dd17022ee927e0cdd4fca32529ed278
[ "MIT" ]
null
null
null
examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox/lib/new_relic_sandbox/accounts/old_user_periodic_deletion.ex
surgeventures/new_relic_integration
5417f15f7dd17022ee927e0cdd4fca32529ed278
[ "MIT" ]
2
2019-09-09T08:26:44.000Z
2019-11-05T04:31:37.000Z
examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox/lib/new_relic_sandbox/accounts/old_user_periodic_deletion.ex
surgeventures/new_relic_integration
5417f15f7dd17022ee927e0cdd4fca32529ed278
[ "MIT" ]
1
2019-09-06T09:27:27.000Z
2019-09-06T09:27:27.000Z
defmodule NewRelicSandbox.Accounts.OldUserPeriodicDeletion do use GenServer use NewRelicAddons.Decorators @interval_sec 30 @remove_before_sec 60 * 10 def start_link(_args) do GenServer.start_link(__MODULE__, nil, name: __MODULE__) end @impl GenServer def init(_) do Process.send_after(self(), ...
21.484848
77
0.729196
281e5935c7ff03820b60b4a0a88fd2f4db634ab2
2,273
ex
Elixir
lib/jenny_lite/cli.ex
rob-brown/Jenny-Lite
d3bc461168e1f77c7bfbdf9779f3be0357992dd2
[ "MIT" ]
1
2016-11-10T20:11:37.000Z
2016-11-10T20:11:37.000Z
lib/jenny_lite/cli.ex
rob-brown/Jenny-Lite
d3bc461168e1f77c7bfbdf9779f3be0357992dd2
[ "MIT" ]
null
null
null
lib/jenny_lite/cli.ex
rob-brown/Jenny-Lite
d3bc461168e1f77c7bfbdf9779f3be0357992dd2
[ "MIT" ]
null
null
null
defmodule JennyLite.CLI do alias JennyLite.CLI.Flag alias JennyLite.Expander def main(argv) do argv |> parse_args |> process end def parse_args(argv) do {options, argv, errors} = OptionParser.parse argv, strict: Flag.switches, aliases: Flag.aliases map_options = options_to_map options case {...
26.126437
99
0.604487
281e605f5d5222ab26d3f845c3ff25172ac54baa
593
ex
Elixir
lib/crawly/middlewares/user_agent.ex
jallum/crawly
dfe37b125f6b39637608576715b076d0877b1d8b
[ "Apache-2.0" ]
null
null
null
lib/crawly/middlewares/user_agent.ex
jallum/crawly
dfe37b125f6b39637608576715b076d0877b1d8b
[ "Apache-2.0" ]
null
null
null
lib/crawly/middlewares/user_agent.ex
jallum/crawly
dfe37b125f6b39637608576715b076d0877b1d8b
[ "Apache-2.0" ]
null
null
null
defmodule Crawly.Middlewares.UserAgent do @moduledoc """ Set/Rotate user agents for crawling. The user agents are read from :crawly, :user_agents sessions. The default value for the user agent is: Crawly Bot 1.0 """ require Logger def run(request, state) do new_headers = List.keydelete(request.heade...
29.65
80
0.70489
281f08a5dea7d668d26e27e57263b3eb8395239d
6,120
ex
Elixir
lib/aws/generated/sage_maker_a2i_runtime.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
341
2018-04-04T19:06:19.000Z
2022-03-25T21:34:23.000Z
lib/aws/generated/sage_maker_a2i_runtime.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
82
2018-04-04T17:32:33.000Z
2022-03-24T15:12:04.000Z
lib/aws/generated/sage_maker_a2i_runtime.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
76
2018-04-10T20:19:44.000Z
2022-03-15T13:49:19.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.SageMakerA2IRuntime do @moduledoc """ Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning application. When an AI application can't evaluate data w...
27.321429
121
0.657026
281f1c824547f0ff1025ecdbcbc22bb5c9f8f8bb
304
ex
Elixir
exercises/concept/language-list/.meta/exemplar.ex
kwchang0831/elixir
1b21ae1ca610de97db79e76db890503ba75ce466
[ "MIT" ]
null
null
null
exercises/concept/language-list/.meta/exemplar.ex
kwchang0831/elixir
1b21ae1ca610de97db79e76db890503ba75ce466
[ "MIT" ]
null
null
null
exercises/concept/language-list/.meta/exemplar.ex
kwchang0831/elixir
1b21ae1ca610de97db79e76db890503ba75ce466
[ "MIT" ]
null
null
null
defmodule LanguageList do def new() do [] end def add(list, language) do [language | list] end def remove(list) do tl(list) end def first(list) do hd(list) end def count(list) do length(list) end def functional_list?(list) do "Elixir" in list end end
11.692308
31
0.608553
281f25e890a2d211671a26d18c65dc99ef943378
239
ex
Elixir
lib/mix/tasks/day5.ex
takakoshimizu/advent-of-code-2020
dd0c49396196aa7686f36d596263baff0e64b800
[ "MIT" ]
null
null
null
lib/mix/tasks/day5.ex
takakoshimizu/advent-of-code-2020
dd0c49396196aa7686f36d596263baff0e64b800
[ "MIT" ]
null
null
null
lib/mix/tasks/day5.ex
takakoshimizu/advent-of-code-2020
dd0c49396196aa7686f36d596263baff0e64b800
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Day5 do use Mix.Task @shortdoc "Runs the day 5 problem." def run(_) do Advent2020.Day5.main(input()) end defp input, do: String.split(File.read!("./lib/advent2020/day5/input.txt"), "\n", trim: true) end
21.727273
95
0.67364
281f636963bc03796b1acab56306372e2cb9004a
2,387
ex
Elixir
clients/redis/lib/google_api/redis/v1/model/location.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/redis/lib/google_api/redis/v1/model/location.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/redis/lib/google_api/redis/v1/model/location.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.457627
305
0.697947
281f63bf6e86aa5da51fdb5df90d382f2f239368
625
ex
Elixir
elixir/hangman/cli/lib/cli/prompter.ex
pylebecq/learning
5ef7309c340a281badb48d3e9bd2bd261e168b75
[ "MIT" ]
null
null
null
elixir/hangman/cli/lib/cli/prompter.ex
pylebecq/learning
5ef7309c340a281badb48d3e9bd2bd261e168b75
[ "MIT" ]
null
null
null
elixir/hangman/cli/lib/cli/prompter.ex
pylebecq/learning
5ef7309c340a281badb48d3e9bd2bd261e168b75
[ "MIT" ]
null
null
null
defmodule Cli.Prompter do alias Cli.State def ask_next_move(game = %State{}) do IO.gets("Your guess: ") |> check_input(game) end defp check_input({:error, reason}, _) do IO.puts("Game ended: #{reason}") exit(:normal) end defp check_input({:eof}, _) do IO.puts("Looks like you gave up.....
19.53125
57
0.592
281f74813b4dcaa8e5f9e3f9fc69fe9d95d0ff82
1,814
ex
Elixir
phoenix_maru/test/support/model_case.ex
elixir-maru/maru_examples
f0dcbf3c17c9df8b89b378953b71b54a53047806
[ "MIT" ]
27
2016-12-28T15:00:19.000Z
2021-11-09T12:55:23.000Z
phoenix_maru/test/support/model_case.ex
elixir-maru/maru_examples
f0dcbf3c17c9df8b89b378953b71b54a53047806
[ "MIT" ]
5
2017-02-13T13:11:55.000Z
2019-07-22T19:38:09.000Z
phoenix_maru/test/support/model_case.ex
elixir-maru/maru_examples
f0dcbf3c17c9df8b89b378953b71b54a53047806
[ "MIT" ]
8
2017-02-08T10:18:50.000Z
2020-06-01T11:42:04.000Z
defmodule PhoenixMaru.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be async. ...
27.484848
84
0.689085
281f83a85d81ecaef28623072e2be54a763ed679
2,499
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_entity_filter.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_entity_filter.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_entity_filter.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...
52.0625
713
0.739896
281f9280514da891224d034ca05b5f8216b19fee
134
ex
Elixir
lib/team_budget/team_budget_graphql/resolvers/invite_resolver.ex
adrianomota/team-budget
b105f47f602a0f7a2c184404235b8d004268c346
[ "MIT" ]
null
null
null
lib/team_budget/team_budget_graphql/resolvers/invite_resolver.ex
adrianomota/team-budget
b105f47f602a0f7a2c184404235b8d004268c346
[ "MIT" ]
null
null
null
lib/team_budget/team_budget_graphql/resolvers/invite_resolver.ex
adrianomota/team-budget
b105f47f602a0f7a2c184404235b8d004268c346
[ "MIT" ]
null
null
null
defmodule TeamBudgetGraphql.Resolvers.InviteResolver do def send_invite(_parent, _params, _resolutions) do {:ok, %{}} end end
22.333333
55
0.753731
281f93448e6f32c74192e45c942e4d49ad6140d2
3,575
ex
Elixir
clients/plus_domains/lib/google_api/plus_domains/v1/model/comment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/plus_domains/lib/google_api/plus_domains/v1/model/comment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/plus_domains/lib/google_api/plus_domains/v1/model/comment.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 ...
45.833333
152
0.685594
281fea39dac03385092408e4fbd0016c6a407d41
204
ex
Elixir
lib/contento_web/plugs/settings.ex
jackmarchant/contento-fork
7da622f27fc2003583bdd9a5e2f76b8a16bf852a
[ "MIT" ]
null
null
null
lib/contento_web/plugs/settings.ex
jackmarchant/contento-fork
7da622f27fc2003583bdd9a5e2f76b8a16bf852a
[ "MIT" ]
null
null
null
lib/contento_web/plugs/settings.ex
jackmarchant/contento-fork
7da622f27fc2003583bdd9a5e2f76b8a16bf852a
[ "MIT" ]
1
2020-11-21T20:12:01.000Z
2020-11-21T20:12:01.000Z
defmodule ContentoWeb.Plug.Settings do import Plug.Conn alias Contento.Settings def init(opts), do: opts def call(conn, _opts) do assign(conn, :settings, Settings.get_settings()) end end
17
52
0.72549
281fed7bbe307a7480796b0fb1a09774167dc4f0
6,161
ex
Elixir
lib/excoveralls/stats.ex
brauliobz/excoveralls
8108405bda1c6ef27253edc294415f02d78760f4
[ "MIT" ]
null
null
null
lib/excoveralls/stats.ex
brauliobz/excoveralls
8108405bda1c6ef27253edc294415f02d78760f4
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/excoveralls/lib/excoveralls/stats.ex
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
1
2021-12-02T16:25:24.000Z
2021-12-02T16:25:24.000Z
defmodule ExCoveralls.Stats do @moduledoc """ Provide calculation logics of coverage stats. """ alias ExCoveralls.Cover alias ExCoveralls.Settings defmodule Source do @moduledoc """ Stores count information for a file and all source lines. """ defstruct filename: "", coverage: 0, sloc: 0, ...
27.382222
101
0.662068
28203c59d1f915a6959f67511e56f6a3f9c21262
1,690
ex
Elixir
lib/unifex/loader.ex
wishdev/unifex
f16a65b73e2a482e784b1bf6816b73c0f7bdb2a7
[ "Apache-2.0" ]
null
null
null
lib/unifex/loader.ex
wishdev/unifex
f16a65b73e2a482e784b1bf6816b73c0f7bdb2a7
[ "Apache-2.0" ]
null
null
null
lib/unifex/loader.ex
wishdev/unifex
f16a65b73e2a482e784b1bf6816b73c0f7bdb2a7
[ "Apache-2.0" ]
null
null
null
defmodule Unifex.Loader do @moduledoc """ This module allows to generate definitions for native functions described in Unifex specs. To acheive that simply use this module: use Unifex.Loader """ alias Unifex.{Helper, InterfaceIO, PostprocessingAstGenerator, SpecsParser} defmacro __using__(_args) ...
26.40625
92
0.610059
28205521442c1597ab22a9d48acfead7c4af0051
82
exs
Elixir
test/honeydew_web/views/page_view_test.exs
elixir-cqrs/honeydew
888f86c829187eaca28ef1af69a40a337e46630a
[ "MIT" ]
13
2022-02-13T18:43:20.000Z
2022-03-19T11:53:48.000Z
test/honeydew_web/views/page_view_test.exs
elixir-cqrs/honeydew
888f86c829187eaca28ef1af69a40a337e46630a
[ "MIT" ]
1
2022-02-23T13:57:19.000Z
2022-02-23T13:57:19.000Z
test/honeydew_web/views/page_view_test.exs
elixir-cqrs/honeydew
888f86c829187eaca28ef1af69a40a337e46630a
[ "MIT" ]
3
2022-02-13T19:25:19.000Z
2022-02-22T17:56:52.000Z
defmodule HoneydewWeb.PageViewTest do use HoneydewWeb.ConnCase, async: true end
20.5
39
0.829268
282066a9055fa3168dd3b106961a3add9058fc82
1,930
ex
Elixir
lib/bouncer/plugs/authorize.ex
kiopro/bouncer
ad25d00c84174d97fa71e814ffe2eac8700ccebe
[ "MIT" ]
null
null
null
lib/bouncer/plugs/authorize.ex
kiopro/bouncer
ad25d00c84174d97fa71e814ffe2eac8700ccebe
[ "MIT" ]
null
null
null
lib/bouncer/plugs/authorize.ex
kiopro/bouncer
ad25d00c84174d97fa71e814ffe2eac8700ccebe
[ "MIT" ]
null
null
null
defmodule Bouncer.Plugs.Authorize do @moduledoc """ The Authorize plug can be used to scan a connection for an authorization token and use it to retrieve a user session so it can be added to the connection. """ alias Plug.Conn alias Bouncer.Session def init(options), do: options @doc """ Extracts...
28.80597
79
0.710363
28207206c2edcfb056933ddf77c4631683decc35
2,129
ex
Elixir
clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_calculate_issue_model_stats_response.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_calculate_issue_model_stats_response.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_calculate_issue_model_stats_response.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.084746
281
0.77736
282076e1907a5f6b6438eb253d8ae30758447f97
345
exs
Elixir
priv/repo/seeds.exs
rafaellcustodio/blog
c4aa5e4c59391d548e827e5df095f59ef37a8df1
[ "MIT" ]
1
2019-02-06T12:29:35.000Z
2019-02-06T12:29:35.000Z
priv/repo/seeds.exs
rafaellcustodio/blog
c4aa5e4c59391d548e827e5df095f59ef37a8df1
[ "MIT" ]
7
2020-07-26T09:34:34.000Z
2021-05-11T21:49:15.000Z
priv/repo/seeds.exs
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
1
2021-02-06T19:41:35.000Z
2021-02-06T19:41:35.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Blog.Repo.insert!(%Blog.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail ...
28.75
61
0.701449
282099cfd5968c52f2392a90d4d138dff2867879
1,373
ex
Elixir
lib/mix/tasks/dialyzer/explain.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
1,455
2015-01-03T02:53:19.000Z
2022-03-12T00:31:25.000Z
lib/mix/tasks/dialyzer/explain.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
330
2015-05-14T13:53:13.000Z
2022-03-29T17:12:23.000Z
lib/mix/tasks/dialyzer/explain.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
146
2015-02-03T18:19:43.000Z
2022-03-07T10:05:20.000Z
defmodule Mix.Tasks.Dialyzer.Explain do @shortdoc "Display information about Dialyzer warnings." @moduledoc """ This task provides background information about Dialyzer warnings. If invoked without any arguments it will list all warning atoms. When invoked with the name of a particular warning, it will displ...
22.145161
69
0.628551
2820bedc192eb11ad4eb35b103acd18a7dd200ba
374
ex
Elixir
lib/rest_twitch/search.ex
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
3
2015-06-24T14:58:17.000Z
2019-04-25T23:38:03.000Z
lib/rest_twitch/search.ex
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
1
2018-01-09T04:18:10.000Z
2018-01-09T04:18:10.000Z
lib/rest_twitch/search.ex
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
2
2015-08-16T20:30:10.000Z
2016-04-14T11:24:03.000Z
defmodule RestTwitch.Search do import ExPrintf alias RestTwitch.Request use RestTwitch.RestBase @doc """ GET /users/:user Get user object ## Example streams() """ def streams(opts \\ %{}, cache \\ nil) do "/search/streams?%s" |> sprintf([URI.encode_query(opts)]) |> Request.get_cache...
20.777778
43
0.639037
2820cc66ba2e8eccb247d253b8afdf68d21463c0
847
ex
Elixir
lib/votr/identity/role.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
1
2018-04-27T09:43:27.000Z
2018-04-27T09:43:27.000Z
lib/votr/identity/role.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
lib/votr/identity/role.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
defmodule Votr.Identity.Role do use Ecto.Schema import Ecto.Changeset alias Votr.Identity.Role alias Votr.Identity.Principal embedded_schema do field(:subject_id, :integer) field(:version, :integer) field(:name, :string) end def changeset(%Role{} = role, attrs) do role |> cast(attrs,...
20.166667
46
0.603306
2820e0ee8cec9183ac0be0de7f2ec566cc6572ea
1,857
exs
Elixir
clients/you_tube_analytics/mix.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube_analytics/mix.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube_analytics/mix.exs
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...
27.716418
109
0.66182
2820f37b609a4e835e8940c76002c369c20505ce
1,358
ex
Elixir
lib/imagineer/image/png/chunk/encoders/background.ex
ndemonner/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
103
2015-01-28T19:09:42.000Z
2018-10-22T15:05:46.000Z
lib/imagineer/image/png/chunk/encoders/background.ex
tyre/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
12
2015-07-11T05:12:41.000Z
2018-07-21T04:42:47.000Z
lib/imagineer/image/png/chunk/encoders/background.ex
ndemonner/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
18
2015-06-16T15:48:34.000Z
2018-06-22T02:34:40.000Z
defmodule Imagineer.Image.PNG.Chunk.Encoders.Background do alias Imagineer.Image.PNG @color_type_grayscale 0 @color_type_color 2 @color_type_palette_and_color 3 @color_type_grayscale_with_alpha 4 @color_type_color_and_alpha 6 # If there is no background, just don't write anything! def encode(%PNG{back...
29.521739
94
0.699558
2820f3a183e6a303e1ab8c7e86e35d115908d9e1
1,855
exs
Elixir
test/telemetry_wrappers_test.exs
michael-michalski/telemetry_wrappers
360376ff8a0e73d2e582e712963b51d2e21b3ffc
[ "MIT" ]
null
null
null
test/telemetry_wrappers_test.exs
michael-michalski/telemetry_wrappers
360376ff8a0e73d2e582e712963b51d2e21b3ffc
[ "MIT" ]
null
null
null
test/telemetry_wrappers_test.exs
michael-michalski/telemetry_wrappers
360376ff8a0e73d2e582e712963b51d2e21b3ffc
[ "MIT" ]
null
null
null
defmodule TelemetryWrappersTest do use ExUnit.Case doctest TelemetryWrappers defmodule TestModule do use TelemetryWrappers deftimed my_fun(a), [:some, :metric], %{env: a}, do: a def wrapper(a), do: my_priv_fun(a) def wrapper_with_meta(a), do: my_priv_fun_with_meta(a) deftimedp my_priv_fun...
27.279412
96
0.674394
282102bb6dc8295fe7aaa1c04d5bab27eefa0fb4
742
ex
Elixir
lib/dogma/rule/trailing_whitespace.ex
lpil/dogma
e0f55c27ec3053be0313ac93f3d036437ee590a1
[ "MIT" ]
558
2015-06-21T18:20:59.000Z
2021-12-30T16:25:47.000Z
lib/dogma/rule/trailing_whitespace.ex
lpil/dogma
e0f55c27ec3053be0313ac93f3d036437ee590a1
[ "MIT" ]
252
2015-06-19T13:00:47.000Z
2021-04-21T08:04:16.000Z
lib/dogma/rule/trailing_whitespace.ex
lpil/dogma
e0f55c27ec3053be0313ac93f3d036437ee590a1
[ "MIT" ]
79
2015-06-21T14:18:30.000Z
2021-12-30T16:26:09.000Z
use Dogma.RuleBuilder defrule Dogma.Rule.TrailingWhitespace do @moduledoc """ A rule that disallows trailing whitespace at the end of a line. """ @regex ~r/\s+\z/ def test(_rule, script) do Enum.reduce( script.processed_lines, [], &check_line(&1, &2) ) end defp check_line({i, line}, errors) do ...
21.823529
66
0.637466
282110e522361135541456aeabbe4178aee3b97e
535
ex
Elixir
web/models/campaign.ex
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
web/models/campaign.ex
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
web/models/campaign.ex
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
defmodule BdPro.Campaign do use BdPro.Web, :model schema "campaigns" do field :name, :string has_many :vehicles, BdPro.Vehicle, on_delete: :fetch_and_delete timestamps end @required_fields ~w(name) @optional_fields ~w() @doc """ Creates a changeset based on the `model` and `params`. If ...
21.4
67
0.697196
282139952f3da621764dc34adcba830c0e717700
1,528
ex
Elixir
lib/nerves_init_gadget/ssh_console.ex
nerves-project/nerves_init_gadget
c9664e8d85353ed55fa2e503b52e25591d9f3f4a
[ "Apache-2.0" ]
46
2017-11-01T20:39:23.000Z
2020-03-12T07:51:07.000Z
lib/nerves_init_gadget/ssh_console.ex
nerves-project/nerves_init_gadget
c9664e8d85353ed55fa2e503b52e25591d9f3f4a
[ "Apache-2.0" ]
35
2017-10-28T01:22:35.000Z
2019-08-08T14:42:58.000Z
lib/nerves_init_gadget/ssh_console.ex
nerves-project/nerves_init_gadget
c9664e8d85353ed55fa2e503b52e25591d9f3f4a
[ "Apache-2.0" ]
10
2017-11-30T19:22:21.000Z
2019-09-08T17:13:41.000Z
defmodule Nerves.InitGadget.SSHConsole do @moduledoc """ SSH IEx console. """ use GenServer @doc false def start_link(%{ssh_console_port: nil}), do: :ignore def start_link(opts) do GenServer.start_link(__MODULE__, [opts], name: __MODULE__) end def init([opts]) do ssh = start_ssh(opts) {...
27.781818
81
0.643979
282158f539b987933e289c21628ca9e90d2ec160
1,501
exs
Elixir
test/todos_player_service/http_router_test.exs
grrizzly/todos-player-service
1000421eb77af6422bfd4a8a6996cea284aea253
[ "MIT" ]
null
null
null
test/todos_player_service/http_router_test.exs
grrizzly/todos-player-service
1000421eb77af6422bfd4a8a6996cea284aea253
[ "MIT" ]
null
null
null
test/todos_player_service/http_router_test.exs
grrizzly/todos-player-service
1000421eb77af6422bfd4a8a6996cea284aea253
[ "MIT" ]
null
null
null
defmodule TodosPlayerService.HttpRouterTest do use ExUnit.Case, async: true use Plug.Test alias TodosPlayerService.{HttpRouter, Database, Models} @opts HttpRouter.init([]) test "GET /players/:id" do player = Models.Player.new(%{level: 10, xp: 200, completed_todos: ["123"]}) %{ id: player_id } = Dat...
27.796296
94
0.643571
28218a6f87c087132cbcbde362eb2e4884a38314
71
exs
Elixir
test/test_helper.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
1
2018-12-13T16:52:22.000Z
2018-12-13T16:52:22.000Z
test/test_helper.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
28
2019-07-04T08:42:33.000Z
2022-03-28T08:24:07.000Z
test/test_helper.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Mockatron.Repo, :manual)
23.666667
55
0.788732
282196332d990611c6b35271a9b1750b83b6f7ba
4,160
ex
Elixir
lib/core/farmware_runtime/pipe_worker.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
lib/core/farmware_runtime/pipe_worker.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
lib/core/farmware_runtime/pipe_worker.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
defmodule FarmbotOS.FarmwareRuntime.PipeWorker do @moduledoc """ Proxy for Pipe IO operations. """ use GenServer require Logger alias __MODULE__, as: State defstruct [ :port, :pipe_name, :pipe, :buffer, :caller, :size, :timeout_timer, :direction ] @read_time 5 def ...
27.012987
161
0.613462
2821c0bc97fdf6e7022dd5ce16bbaa248aa5b1ed
1,115
exs
Elixir
mix.exs
ddrmanxbxfr/bamboo_smtp
fee53d71a75bde23217eba073284824cc23239e1
[ "MIT" ]
null
null
null
mix.exs
ddrmanxbxfr/bamboo_smtp
fee53d71a75bde23217eba073284824cc23239e1
[ "MIT" ]
null
null
null
mix.exs
ddrmanxbxfr/bamboo_smtp
fee53d71a75bde23217eba073284824cc23239e1
[ "MIT" ]
null
null
null
defmodule BambooSmtp.Mixfile do use Mix.Project @project_url "https://github.com/fewlinesco/bamboo_smtp" def project do [app: :bamboo_smtp, version: "1.2.1", elixir: "~> 1.2", source_url: @project_url, homepage_url: @project_url, name: "Bamboo SMTP Adapter", description: "A Bam...
24.23913
58
0.557848
2821e587d5048747a87ae2441d44998430ab6409
662
exs
Elixir
test/expr/uid_test.exs
ospaarmann/exdgraph
4a80822c4f4c8521f5df71e9bdf7238b302f9786
[ "Apache-2.0" ]
108
2018-02-23T15:20:09.000Z
2021-05-26T11:48:17.000Z
test/expr/uid_test.exs
ospaarmann/exdgraph
4a80822c4f4c8521f5df71e9bdf7238b302f9786
[ "Apache-2.0" ]
28
2018-02-25T09:30:38.000Z
2021-12-22T03:57:39.000Z
test/expr/uid_test.exs
ospaarmann/exdgraph
4a80822c4f4c8521f5df71e9bdf7238b302f9786
[ "Apache-2.0" ]
14
2018-03-01T17:19:56.000Z
2021-03-02T16:57:58.000Z
defmodule ExDgraph.Expr.UidTest do use ExUnit.Case, async: true alias ExDgraph.Expr.Uid use ExDgraph.Expr.Uid test "uid given a string renders a plain-old uid literal" do assert "0x9" |> uid() |> Uid.render() == "<0x9>" end test "uid given an atom renders a uid expression" do assert :some_atom |>...
28.782609
71
0.63142
28221a8a54dc349cdc91142202422d7cb33a77c6
4,565
exs
Elixir
lib/mix/test/mix/rebar_test.exs
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/rebar_test.exs
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/rebar_test.exs
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule Mix.RebarTest do use MixTest.Case defmodule RebarAsDep do def project do [ app: :rebar_as_dep, version: "0.1.0", deps: [ {:rebar_dep, path: MixTest.Case.tmp_path("rebar_dep"), app: false} ] ] end end ...
33.07971
98
0.623439
282221bf41526312997afca42362f6e1d4ff3b0f
1,844
ex
Elixir
clients/home_graph/lib/google_api/home_graph/v1/model/request_sync_devices_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/home_graph/lib/google_api/home_graph/v1/model/request_sync_devices_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/home_graph/lib/google_api/home_graph/v1/model/request_sync_devices_request.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...
36.88
272
0.739696
28222b0bb0befc009f71e965feaf56301a7bf12e
1,610
ex
Elixir
lib/videoke_web/endpoint.ex
ElixirLabOrg/videoke
85873be94f17167c505c6d1066e30e30b8acd148
[ "MIT" ]
null
null
null
lib/videoke_web/endpoint.ex
ElixirLabOrg/videoke
85873be94f17167c505c6d1066e30e30b8acd148
[ "MIT" ]
null
null
null
lib/videoke_web/endpoint.ex
ElixirLabOrg/videoke
85873be94f17167c505c6d1066e30e30b8acd148
[ "MIT" ]
null
null
null
defmodule VideokeWeb.Endpoint do use Phoenix.Endpoint, otp_app: :videoke # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_videoke_k...
29.272727
97
0.718634
28224864fc34ac000464ed8ffaf51b22047298a2
828
ex
Elixir
lib/countriex/country.ex
meymeynard/countriex
91edd65fe38117d80bf73adfc823658ee7edc5ba
[ "MIT" ]
24
2016-11-01T12:42:09.000Z
2022-02-26T20:43:12.000Z
lib/countriex/country.ex
meymeynard/countriex
91edd65fe38117d80bf73adfc823658ee7edc5ba
[ "MIT" ]
2
2018-06-19T09:48:02.000Z
2019-06-11T12:18:41.000Z
lib/countriex/country.ex
meymeynard/countriex
91edd65fe38117d80bf73adfc823658ee7edc5ba
[ "MIT" ]
8
2017-06-29T12:18:09.000Z
2021-05-26T05:06:24.000Z
defmodule Countriex.Country do defstruct [:address_format, :alpha2, :alpha3, :continent, :country_code, :currency_code, :gec, :geo, :international_prefix, :ioc, :name, :nation...
25.875
48
0.444444
2822854409e5a3c19233af2b4f6e807cf47d6cf9
3,002
ex
Elixir
lib/bgp/protocol/capability.ex
rzalamena/bgp_bench
069e0583ec62b44f20d838849eb444434cf426fc
[ "MIT" ]
2
2018-02-24T15:02:11.000Z
2021-06-19T17:25:11.000Z
lib/bgp/protocol/capability.ex
rzalamena/bgp_bench
069e0583ec62b44f20d838849eb444434cf426fc
[ "MIT" ]
null
null
null
lib/bgp/protocol/capability.ex
rzalamena/bgp_bench
069e0583ec62b44f20d838849eb444434cf426fc
[ "MIT" ]
null
null
null
defmodule Bgp.Protocol.Capability do @moduledoc """ Capability encoding/decoding for BGP open messages. """ defmodule Capability do @moduledoc """ Capability struct for encoding/decoding. """ @enforce_keys [:type, :value] defstruct [:type, :value] @type capability_type :: 0..255 @ty...
22.237037
77
0.58028
282291be56c5f2f7aec0d4541b112e1a1e8e7495
863
exs
Elixir
apps/core/priv/repo/migrations/20210426020557_add_uuid_min.exs
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
59
2021-09-16T19:29:39.000Z
2022-03-31T20:44:24.000Z
apps/core/priv/repo/migrations/20210426020557_add_uuid_min.exs
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
111
2021-08-15T09:56:37.000Z
2022-03-31T23:59:32.000Z
apps/core/priv/repo/migrations/20210426020557_add_uuid_min.exs
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
4
2021-12-13T09:43:01.000Z
2022-03-29T18:08:44.000Z
defmodule Core.Repo.Migrations.AddUuidMin do use Ecto.Migration def change do execute """ CREATE FUNCTION min_uuid(uuid, uuid) RETURNS uuid AS $$ BEGIN -- if they're both null, return null IF $2 IS NULL AND $1 IS NULL THEN RETURN NULL ; END IF; -- if jus...
20.069767
51
0.512167
2822952b4a69c0b5a00de99eda23454e04e588c6
1,570
ex
Elixir
lib/yuri_template/path_expander.ex
sirikid/yuri_template
66846ed0f5a8407749408a4ebf526f9c27cb9366
[ "Apache-2.0" ]
3
2020-05-03T15:30:21.000Z
2021-05-09T01:35:41.000Z
lib/yuri_template/path_expander.ex
sirikid/yuri_template
66846ed0f5a8407749408a4ebf526f9c27cb9366
[ "Apache-2.0" ]
1
2021-04-15T20:08:14.000Z
2021-04-18T20:48:17.000Z
lib/yuri_template/path_expander.ex
sirikid/yuri_template
66846ed0f5a8407749408a4ebf526f9c27cb9366
[ "Apache-2.0" ]
null
null
null
defmodule YuriTemplate.PathExpander do @moduledoc false @behaviour YuriTemplate.Expander @impl true def expand(acc, _substitutes, []), do: acc def expand(acc, substitutes, [{:explode, var} | vars]) do case Access.fetch(substitutes, var) do :error -> acc {:ok, [{_k, _v} | _] = kvs} ...
22.428571
66
0.480255
2822f0549f1ee7399d955934f38004d31b7459e9
300
exs
Elixir
config/test.exs
samrispaud/phoenix-redux-todo-app
4810d602adb6325c65ad61cbdb67e766ead1a9c3
[ "MIT" ]
null
null
null
config/test.exs
samrispaud/phoenix-redux-todo-app
4810d602adb6325c65ad61cbdb67e766ead1a9c3
[ "MIT" ]
null
null
null
config/test.exs
samrispaud/phoenix-redux-todo-app
4810d602adb6325c65ad61cbdb67e766ead1a9c3
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :phoenix_react_redux_example, PhoenixReactReduxExample.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn
27.272727
71
0.766667
2822fcfaba5389f3806119f3036df10713876861
1,086
ex
Elixir
clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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...
37.448276
77
0.767956
282316f4fac3224f536c05ecb4182ae3014b9db0
21
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_pipe_operation_parsing_test_case/List.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_pipe_operation_parsing_test_case/List.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_pipe_operation_parsing_test_case/List.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
[one: ()] | [two: ()]
21
21
0.285714
28231790aa30303dc559bd60b5c7adf36464f82f
2,818
ex
Elixir
lib/day6/orbit_counter2.ex
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
lib/day6/orbit_counter2.ex
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
lib/day6/orbit_counter2.ex
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
defmodule Day6.OrbitCounter2 do def run do pairs = "inputs/day6.txt" |> File.stream!() |> Stream.map(&String.trim/1) |> Enum.map(&parse_line_into_pair/1) direct = list_direct_orbits(pairs) indirect = list_indirect_orbits(Map.keys(direct), direct, %{}) find_distance(direct, in...
33.951807
145
0.579844
28231872ed7e464c9c73aaa8dba8c4463097d064
1,721
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v3/model/apks_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/model/apks_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/model/apks_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...
34.42
186
0.735038
282326bed40f9d4150ad09979c7d5415755dc2cd
835
exs
Elixir
mix.exs
asonix/secure-client-elixir
a0f55c5352b36c7af09750f4efa73f760d61338b
[ "MIT" ]
2
2016-08-17T11:54:58.000Z
2017-08-15T19:31:06.000Z
mix.exs
asonix/secure-client-elixir
a0f55c5352b36c7af09750f4efa73f760d61338b
[ "MIT" ]
null
null
null
mix.exs
asonix/secure-client-elixir
a0f55c5352b36c7af09750f4efa73f760d61338b
[ "MIT" ]
null
null
null
defmodule SecureClient.Mixfile do use Mix.Project def project do [app: :secure_client, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps()] end def applicati...
21.410256
76
0.579641
282337d1e7b0ceedb1c09c855a7d78255ee2ff79
1,759
ex
Elixir
lib/smwcbot/search.ex
ryanwinchester-forks/smwcbot
f98c6f87680bd836ab54229b10a70d70eebfc2c1
[ "MIT" ]
null
null
null
lib/smwcbot/search.ex
ryanwinchester-forks/smwcbot
f98c6f87680bd836ab54229b10a70d70eebfc2c1
[ "MIT" ]
null
null
null
lib/smwcbot/search.ex
ryanwinchester-forks/smwcbot
f98c6f87680bd836ab54229b10a70d70eebfc2c1
[ "MIT" ]
null
null
null
defmodule SMWCBot.Search do @moduledoc """ Search SMWC for shit. """ require Logger @doc """ Search for hack. """ @spec for({String.t(), String.t()}) :: {:ok, text :: String.t(), href :: String.t()} | {:ok, nil} | {:error, String.t()} def for({hack, waiting}) do base_uri = base_uri(wai...
25.492754
91
0.593519
2823992e8586a388584d0c6760f7b1bc136bcf01
601
ex
Elixir
server/apps/boardr/test/support/asserter/error.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2021-04-08T17:26:27.000Z
2021-04-08T17:26:27.000Z
server/apps/boardr/test/support/asserter/error.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2022-02-13T05:50:46.000Z
2022-02-13T05:50:46.000Z
server/apps/boardr/test/support/asserter/error.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
null
null
null
defmodule Asserter.Error do defexception [:message, :properties] @impl true def exception(options) when is_list(options) do {message, properties} = Keyword.pop(options, :message) {subject, properties} = Keyword.pop(properties, :subject) %__MODULE__{ message: String.trim(""" #{m...
24.04
73
0.562396
2823c54e1a844dabe09bf5beb81fc906d506db41
5,153
exs
Elixir
lib/elixir/test/elixir/kernel/dialyzer_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
2
2020-06-02T18:00:28.000Z
2021-12-10T03:21:42.000Z
lib/elixir/test/elixir/kernel/dialyzer_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/dialyzer_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.DialyzerTest do use ExUnit.Case, async: true @moduletag :dialyzer import PathHelpers setup_all do dir = tmp_path("dialyzer") File.rm_rf!(dir) File.mkdir_p!(dir) plt = dir |> Path.join("base_plt") |> String.to...
28.627778
91
0.696487
2823e18bb8bb510a0e798377a980e13ab538426e
45,278
ex
Elixir
lib/phoenix_live_view.ex
ucwaldo/phoenix_live_view
aa192420dc3b3b4158bbc7582ce39cb149221170
[ "MIT" ]
2
2021-05-15T05:20:19.000Z
2021-05-20T17:55:04.000Z
lib/phoenix_live_view.ex
ucwaldo/phoenix_live_view
aa192420dc3b3b4158bbc7582ce39cb149221170
[ "MIT" ]
1
2021-05-12T12:14:27.000Z
2021-05-12T12:14:27.000Z
lib/phoenix_live_view.ex
ucwaldo/phoenix_live_view
aa192420dc3b3b4158bbc7582ce39cb149221170
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView do @moduledoc ~S''' LiveView provides rich, real-time user experiences with server-rendered HTML. The LiveView programming model is declarative: instead of saying "once event X happens, change Y on the page", events in LiveView are regular messages which may cause changes to it...
36.811382
148
0.682716
2823eafaa7527f80512ad968aed4522e911397ba
1,895
exs
Elixir
test/hierbautberlin/geo_data/geo_item_test.exs
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
13
2021-03-06T12:16:34.000Z
2022-03-31T09:46:35.000Z
test/hierbautberlin/geo_data/geo_item_test.exs
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
148
2021-03-05T12:44:55.000Z
2022-03-11T12:09:06.000Z
test/hierbautberlin/geo_data/geo_item_test.exs
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
2
2021-06-02T14:31:21.000Z
2022-02-14T08:36:51.000Z
defmodule Hierbautberlin.GeoData.GeoItemTest do use Hierbautberlin.DataCase alias Hierbautberlin.GeoData.GeoItem describe "newest_date/1" do test "it returns date_update if it's the newest" do item = insert(:geo_item, %{ date_start: Timex.parse!("2020-10-01", "{YYYY}-{0M}-{0D}"), ...
33.245614
79
0.570976
2823ede17cafe8e14a823969266f809689419d7a
9,223
exs
Elixir
test/phoenix_component_test.exs
mveytsman/phoenix_live_view
1879caa0bbe92329d2ccdf656283a8f6c4c9ed02
[ "MIT" ]
null
null
null
test/phoenix_component_test.exs
mveytsman/phoenix_live_view
1879caa0bbe92329d2ccdf656283a8f6c4c9ed02
[ "MIT" ]
null
null
null
test/phoenix_component_test.exs
mveytsman/phoenix_live_view
1879caa0bbe92329d2ccdf656283a8f6c4c9ed02
[ "MIT" ]
null
null
null
defmodule Phoenix.ComponentTest do use ExUnit.Case, async: true use Phoenix.Component defp h2s(template) do template |> Phoenix.HTML.Safe.to_iodata() |> IO.iodata_to_binary() end describe "rendering" do defp hello(assigns) do ~H""" Hello <%= @name %> """ end test ...
36.027344
179
0.493115
2823fe9e3bf5d88c5c12efee74a80f80cd8dbece
2,365
ex
Elixir
web/controllers/admin/user_controller.ex
X0nic/officetournament
4d1c7464bf4a6da2a97247ec698e35f9628c6b01
[ "MIT" ]
1
2015-09-18T04:41:01.000Z
2015-09-18T04:41:01.000Z
web/controllers/admin/user_controller.ex
X0nic/officetournament
4d1c7464bf4a6da2a97247ec698e35f9628c6b01
[ "MIT" ]
null
null
null
web/controllers/admin/user_controller.ex
X0nic/officetournament
4d1c7464bf4a6da2a97247ec698e35f9628c6b01
[ "MIT" ]
null
null
null
defmodule Officetournament.Admin.UserController do use Officetournament.Web, :controller alias Officetournament.User plug :scrub_params, "user" when action in [:create, :update] plug Officetournament.Plugs.Authenticate plug :set_layout def index(conn, _params) do users = Repo.all(User) render(con...
27.5
87
0.635518
28240da85b6876841552602e3137536f7c382eb3
9,386
ex
Elixir
installer/lib/phx_new/generator.ex
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
installer/lib/phx_new/generator.ex
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
installer/lib/phx_new/generator.ex
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
defmodule Phx.New.Generator do @moduledoc false import Mix.Generator alias Phx.New.{Project} @phoenix Path.expand("../..", __DIR__) @phoenix_version Version.parse!("1.3.0") @callback prepare_project(Project.t) :: Project.t @callback generate(Project.t) :: Project.t defmacro __using__(_env) do qu...
35.153558
111
0.667483
28243df751a6af7858e36110859648af6fbf9fd9
1,355
ex
Elixir
clients/people/lib/google_api/people/v1/model/contact_group_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/people/lib/google_api/people/v1/model/contact_group_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/people/lib/google_api/people/v1/model/contact_group_response.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...
32.261905
93
0.746125
282462bf1b5585968892f20e74bf03e669efca25
1,365
exs
Elixir
mix.exs
getong/gen_amqp
5db3a4722a0f7cab55e2d739661026e9851f6e8d
[ "MIT" ]
5
2017-02-15T21:12:49.000Z
2020-01-20T20:52:06.000Z
mix.exs
getong/gen_amqp
5db3a4722a0f7cab55e2d739661026e9851f6e8d
[ "MIT" ]
2
2018-04-05T00:59:28.000Z
2018-08-07T09:13:27.000Z
mix.exs
getong/gen_amqp
5db3a4722a0f7cab55e2d739661026e9851f6e8d
[ "MIT" ]
3
2018-05-08T22:51:30.000Z
2020-02-25T16:20:53.000Z
defmodule GenAMQP.Mixfile do use Mix.Project def project do [ app: :gen_amqp, version: "6.0.0", elixir: ">= 1.8.0", description: description(), package: package(), elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.e...
23.534483
80
0.552381
28247cb73508f222f7540c462285970b10674e0d
1,294
ex
Elixir
api/lib/api/feedback/github.ex
pinda-fun/pinda-fun
83a8763c37d471342d6b12647cc588997ce21cfc
[ "MIT" ]
15
2019-10-21T08:47:40.000Z
2021-01-20T16:35:33.000Z
api/lib/api/feedback/github.ex
pinda-fun/pinda-fun
83a8763c37d471342d6b12647cc588997ce21cfc
[ "MIT" ]
850
2019-10-13T11:11:47.000Z
2022-03-30T12:56:23.000Z
api/lib/api/feedback/github.ex
pinda-fun/pinda-fun
83a8763c37d471342d6b12647cc588997ce21cfc
[ "MIT" ]
null
null
null
defmodule Api.Feedback.GitHub do @moduledoc """ An implementation of `Api.Feedback` that uses GitHub-issue-as-a-service backend """ @config Application.get_env(:api, :github) @repo Keyword.get(@config, :repo) @username Keyword.get(@config, :username) @token Keyword.get(@config, :token) @behaviour Api....
28.755556
97
0.625966
282496e6278572eaa2a450168169895043023340
3,899
ex
Elixir
lib/exyt/auth.ex
justahero/exyt
ff4f753c796be5a22165d8c54a5558591157522d
[ "MIT" ]
2
2019-05-19T02:59:28.000Z
2020-01-12T20:52:42.000Z
lib/exyt/auth.ex
justahero/exyt
ff4f753c796be5a22165d8c54a5558591157522d
[ "MIT" ]
null
null
null
lib/exyt/auth.ex
justahero/exyt
ff4f753c796be5a22165d8c54a5558591157522d
[ "MIT" ]
null
null
null
defmodule Exyt.Auth do defmodule HTTPError do defexception message: "HTTP Error" end @moduledoc """ A struct to fetch access / refresh token(s) from the Google's OAuth2 endpoints. """ @default_headers [ "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded" ] ...
29.992308
135
0.677353
2824c514397fae0ca0214ed67c92f0eb277bfcac
692
ex
Elixir
debian/preinst.ex
catalyst/gotiller
409007c3abc99e0ac5c227f17cdeac1fc3b74da1
[ "MIT" ]
null
null
null
debian/preinst.ex
catalyst/gotiller
409007c3abc99e0ac5c227f17cdeac1fc3b74da1
[ "MIT" ]
null
null
null
debian/preinst.ex
catalyst/gotiller
409007c3abc99e0ac5c227f17cdeac1fc3b74da1
[ "MIT" ]
null
null
null
#!/bin/sh # preinst script for gotiller # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <new-preinst> `install' # * <new-preinst> `install' <old-version> # * <new-preinst> `upgrade' <old-version> # * <old-preinst> `abort-upgrade' <new-version> # for details...
19.222222
63
0.628613
2824dd2a94384ccfbfaf05f2590a6e7da8e739d6
1,602
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/mutation_record.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/mutation_record.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/mutation_record.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...
32.04
107
0.722222
2824e3d9bf6300deef331e281d08e3d13a535cfb
348
exs
Elixir
priv/repo/migrations/20210626081857_create_meetup_document.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/repo/migrations/20210626081857_create_meetup_document.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/repo/migrations/20210626081857_create_meetup_document.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Repo.Migrations.CreateMeetupDocument do use Ecto.Migration def change do create table(:meetup_documents) do add(:meetup_id, references(:cms_meetups, on_delete: :delete_all), null: false) add(:body, :text) add(:body_html, :text) add(:markdown, :text) add(:t...
24.857143
84
0.678161
28252062b31ac34427e6a4d395959202e2eabe10
419
ex
Elixir
lib/corker/slack/users.ex
justmendes/corker
b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d
[ "0BSD" ]
5
2019-05-24T17:00:42.000Z
2019-05-27T13:50:56.000Z
lib/corker/slack/users.ex
justmendes/corker
b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d
[ "0BSD" ]
17
2019-05-27T08:59:36.000Z
2020-02-17T06:45:27.000Z
lib/corker/slack/users.ex
justmendes/corker
b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d
[ "0BSD" ]
1
2019-08-27T14:27:06.000Z
2019-08-27T14:27:06.000Z
defmodule Corker.Slack.Users do alias Corker.Accounts @slackbot_id "USLACKBOT" def extract(users) do for {id, user} <- users, not user[:is_bot], not user[:is_app_user], not user[:deleted], user[:id] != @slackbot_id do unless Accounts.exists_user?(user[:name]) do ...
20.95
68
0.608592
2825632da198ce74abd2e88eab5e7084f22c805e
319
ex
Elixir
lib/hologram/compiler/module_def_aggregators/case_expression.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
lib/hologram/compiler/module_def_aggregators/case_expression.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
lib/hologram/compiler/module_def_aggregators/case_expression.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
alias Hologram.Compiler.IR.CaseExpression alias Hologram.Compiler.ModuleDefAggregator defimpl ModuleDefAggregator, for: CaseExpression do def aggregate(%{condition: condition, clauses: clauses}) do ModuleDefAggregator.aggregate(condition) Enum.map(clauses, &ModuleDefAggregator.aggregate(&1.body)) end end
31.9
62
0.808777
2825677aa50d1cac57ac19d2ab85954b5a99e80e
4,205
exs
Elixir
apps/aecore/test/aecore_validation_test.exs
aeternity/epoch-elixir
d35613f5541a9bbebe61f90b8503a9b3416fe8b4
[ "0BSD" ]
131
2018-03-10T01:35:56.000Z
2021-12-27T13:44:41.000Z
apps/aecore/test/aecore_validation_test.exs
aeternity/elixir-node
d35613f5541a9bbebe61f90b8503a9b3416fe8b4
[ "0BSD" ]
445
2018-03-12T09:46:17.000Z
2018-12-12T09:52:07.000Z
apps/aecore/test/aecore_validation_test.exs
aeternity/epoch-elixir
d35613f5541a9bbebe61f90b8503a9b3416fe8b4
[ "0BSD" ]
23
2018-03-12T12:01:28.000Z
2022-03-06T09:22:17.000Z
defmodule AecoreValidationTest do @moduledoc """ Unit tests for the BlockValidation module """ use ExUnit.Case doctest Aecore.Chain.BlockValidation alias Aecore.Chain.BlockValidation alias Aecore.Chain.{Block, Header, Genesis} alias Aecore.Chain.Worker, as: Chain alias Aecore.Miner.Worker, as: Miner...
26.118012
94
0.658264
2825719fdad41d98ed95a0367723bebb0ff2986f
1,848
exs
Elixir
apps/feedex_core/mix.exs
andyl/ragged
2baab0849e2dfc068652ecb2fe88a7c6fe5437d0
[ "MIT" ]
null
null
null
apps/feedex_core/mix.exs
andyl/ragged
2baab0849e2dfc068652ecb2fe88a7c6fe5437d0
[ "MIT" ]
null
null
null
apps/feedex_core/mix.exs
andyl/ragged
2baab0849e2dfc068652ecb2fe88a7c6fe5437d0
[ "MIT" ]
null
null
null
defmodule FeedexCore.MixProject do use Mix.Project def project do [ app: :feedex_core, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.5", elixirc_paths: elix...
26.028169
79
0.5579
2825b313e36676aa85aeee53183500be82aa04b5
85
ex
Elixir
web/views/layout_view.ex
amohamedali/bbc_schedulor_phoenix
0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa
[ "MIT" ]
null
null
null
web/views/layout_view.ex
amohamedali/bbc_schedulor_phoenix
0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa
[ "MIT" ]
null
null
null
web/views/layout_view.ex
amohamedali/bbc_schedulor_phoenix
0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa
[ "MIT" ]
null
null
null
defmodule BbcSchedulorPhoenix.LayoutView do use BbcSchedulorPhoenix.Web, :view end
21.25
43
0.847059
2825d79564ca536a35dded627526544dd3c5c1f8
5,956
ex
Elixir
lib/new_relic/plug/repo.ex
ijunaid8989/newrelic-elixir
2c97e1479a67c50fd6e144a23432987a5c28459f
[ "MIT" ]
null
null
null
lib/new_relic/plug/repo.ex
ijunaid8989/newrelic-elixir
2c97e1479a67c50fd6e144a23432987a5c28459f
[ "MIT" ]
1
2018-09-10T09:50:24.000Z
2018-09-10T09:50:24.000Z
lib/new_relic/plug/repo.ex
ijunaid8989/newrelic-elixir
2c97e1479a67c50fd6e144a23432987a5c28459f
[ "MIT" ]
1
2018-09-10T09:30:54.000Z
2018-09-10T09:30:54.000Z
defmodule NewRelic.Plug.Repo do @moduledoc """ Defines a module that provides instrumented methods for a standard `Ecto.Repo`. ``` defmodule MyApp.Repo do use Ecto.Repo, otp_application: :my_app defmodule NewRelic do use NewRelic.Plug.Repo, repo: MyApp.Repo end end ``` Anywhere that t...
34.627907
116
0.590329
2825ea5b889c958eeeb8aac9c4c82d228f366a98
1,192
exs
Elixir
apps/platform_runner/mix.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/platform_runner/mix.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/platform_runner/mix.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
defmodule PlatformRunner.MixProject do use Mix.Project def project do [ app: :platform_runner, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9", start_perma...
26.488889
70
0.562919