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
ab3d6d7b9f600bfbb1570663dcda27f433ab7c29
199
ex
Elixir
lib/phone/hu.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/hu.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/hu.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
defmodule Phone.HU do @moduledoc false use Helper.Country def regex, do: ~r/^(36)()(.{8,9})/ def country, do: "Hungary" def a2, do: "HU" def a3, do: "HUN" matcher :regex, ["36"] end
15.307692
36
0.592965
ab3d71f4818be32c388347585ede778f8961e2ce
684
ex
Elixir
lib/event_bus_postgres/queue.ex
mustafaturan/event_bus_postgres
c4bef8aae34d72266912cf3498b4b71d4f8380e3
[ "MIT" ]
48
2018-02-23T15:55:25.000Z
2021-12-19T10:54:46.000Z
lib/event_bus_postgres/queue.ex
mustafaturan/event_bus_postgres
c4bef8aae34d72266912cf3498b4b71d4f8380e3
[ "MIT" ]
70
2018-04-05T13:53:28.000Z
2021-06-04T06:00:51.000Z
lib/event_bus_postgres/queue.ex
mustafaturan/event_bus_postgres
c4bef8aae34d72266912cf3498b4b71d4f8380e3
[ "MIT" ]
9
2018-02-11T02:14:26.000Z
2021-10-12T16:03:10.000Z
defmodule EventBus.Postgres.Queue do @moduledoc """ Postgres queue (producer) """ use GenStage def init(state) do {:producer, state, buffer_size: :infinity} end def start_link(state \\ []) do GenStage.start_link(__MODULE__, state, name: __MODULE__) end @doc """ Push event shadows to queu...
20.117647
60
0.652047
ab3db716e5e8cbf3dd9a4332c2f8d55e059dc84d
6,406
ex
Elixir
lib/type_check/options.ex
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
null
null
null
lib/type_check/options.ex
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
null
null
null
lib/type_check/options.ex
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
null
null
null
defmodule TypeCheck.Options do import TypeCheck.Internals.Bootstrap.Macros @moduledoc """ Defines the options that TypeCheck supports on calls to `use TypeCheck`. Supported options: - `:overrides`: A list of overrides for remote types. (default: `[]`) - `:default_overrides`: A boolean. If false, will not ...
36.605714
275
0.70231
ab3dd5cb44bb6d438e4d148a40d7534b305333a6
838
exs
Elixir
test/subscriptions/all_streams_subscription_test.exs
MichalDolata/eventstore
2a6725fcb4c398d81a74455b6077901189b75386
[ "MIT" ]
null
null
null
test/subscriptions/all_streams_subscription_test.exs
MichalDolata/eventstore
2a6725fcb4c398d81a74455b6077901189b75386
[ "MIT" ]
1
2018-08-23T16:47:17.000Z
2018-08-23T19:56:42.000Z
test/subscriptions/all_streams_subscription_test.exs
MichalDolata/eventstore
2a6725fcb4c398d81a74455b6077901189b75386
[ "MIT" ]
null
null
null
defmodule EventStore.Subscriptions.AllStreamsSubscriptionTest do use EventStore.Subscriptions.StreamSubscriptionTestCase, stream_uuid: "$all" alias EventStore.{EventFactory, ProcessHelper, RecordedEvent} alias EventStore.Storage.{Appender, CreateStream} alias EventStore.Subscriptions.SubscriptionFsm defp cr...
33.52
81
0.789976
ab3de1e5f09350058a43f4126d19895e199f632c
10,650
ex
Elixir
lib/ex_admin/utils.ex
fanduel/ex_admin
05806a718859a0e155d3447c3ffde8a536fd676a
[ "MIT" ]
1
2017-03-23T00:50:59.000Z
2017-03-23T00:50:59.000Z
lib/ex_admin/utils.ex
fanduel/ex_admin
05806a718859a0e155d3447c3ffde8a536fd676a
[ "MIT" ]
null
null
null
lib/ex_admin/utils.ex
fanduel/ex_admin
05806a718859a0e155d3447c3ffde8a536fd676a
[ "MIT" ]
null
null
null
defmodule ExAdmin.Utils do @moduledoc """ A collection of utility functions. """ require Logger import ExAdmin.Gettext @module Application.get_env(:ex_admin, :module) if @module do @endpoint Module.concat([@module, "Endpoint"]) @router Module.concat([@module, "Router", "Helpers"]) @doc false...
27.168367
131
0.659249
ab3e083f92bd05f3a78a22eb109d641ff877dff7
2,141
ex
Elixir
lib/plausible/billing/paddle_api.ex
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
null
null
null
lib/plausible/billing/paddle_api.ex
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
2
2020-07-09T21:44:35.000Z
2020-07-14T07:06:10.000Z
lib/plausible/billing/paddle_api.ex
ffMathy/analytics
4e8c06076a7a94c4ad3b2410437f2b0ab31e1f8e
[ "MIT" ]
null
null
null
defmodule Plausible.Billing.PaddleApi do @update_preview_endpoint "https://vendors.paddle.com/api/2.0/subscription/preview_update" @update_endpoint "https://vendors.paddle.com/api/2.0/subscription/users/update" @get_endpoint "https://vendors.paddle.com/api/2.0/subscription/users" @headers [ {"Content-type",...
27.101266
96
0.664176
ab3e22afbb3bd49594dbbee1559914898f270ff0
504
exs
Elixir
apps/alert_processor/priv/repo/migrations/20180827184355_remove_vacations_and_blackouts_from_users.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
null
null
null
apps/alert_processor/priv/repo/migrations/20180827184355_remove_vacations_and_blackouts_from_users.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
21
2021-03-12T17:05:30.000Z
2022-02-16T21:48:35.000Z
apps/alert_processor/priv/repo/migrations/20180827184355_remove_vacations_and_blackouts_from_users.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
1
2021-12-09T15:09:53.000Z
2021-12-09T15:09:53.000Z
defmodule AlertProcessor.Repo.Migrations.RemoveVacationsAndBlackoutsFromUsers do use Ecto.Migration def up do alter table(:users) do remove(:vacation_start) remove(:vacation_end) remove(:do_not_disturb_start) remove(:do_not_disturb_end) end end def down do alter table(:user...
22.909091
80
0.698413
ab3e2f4c7140ae5206f53cc2a25060238fa645f8
540
exs
Elixir
.formatter.exs
kianmeng/posexional
dfe1242d5f676416582f174f72bb8a73e9e06a99
[ "MIT" ]
null
null
null
.formatter.exs
kianmeng/posexional
dfe1242d5f676416582f174f72bb8a73e9e06a99
[ "MIT" ]
null
null
null
.formatter.exs
kianmeng/posexional
dfe1242d5f676416582f174f72bb8a73e9e06a99
[ "MIT" ]
null
null
null
[ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], locals_without_parens: [ # Posexional empty: :*, fixed_value: :*, guesser: 1, import_fields_from: 1, name: 1, progressive_number: :*, row: :*, separator: 1, value: :*, # Formatter tests assert_for...
20
78
0.55
ab3e4da9593061f0edb96cebc781ca78ce1e92fb
44,722
exs
Elixir
rpn_forth_thing.exs
pmarreck/elixir-snippets
5f5ee26087bc2ded4e71c4c3eeff1231310ff358
[ "BSD-3-Clause" ]
34
2015-02-27T14:41:12.000Z
2021-09-26T06:06:18.000Z
rpn_forth_thing.exs
pmarreck/elixir-snippets
5f5ee26087bc2ded4e71c4c3eeff1231310ff358
[ "BSD-3-Clause" ]
null
null
null
rpn_forth_thing.exs
pmarreck/elixir-snippets
5f5ee26087bc2ded4e71c4c3eeff1231310ff358
[ "BSD-3-Clause" ]
3
2016-02-05T16:09:41.000Z
2017-10-21T15:47:04.000Z
#!/usr/bin/env elixir # rpn_forth_thing.exs # A commandline RPN calculator in Elixir... just for practice. # Aaaand I seem to be adding bits of Forth (and Forth-inspired) here and there. For fun, of course. # Aaaand it's now good enough to define and use named functions. And do conditional branching. # I'm pretty sur...
35.834936
172
0.636689
ab3e54e1e400b756030871a7060462fb44e7d58f
4,061
ex
Elixir
lib/teiserver/agents/battlehost_agent_server.ex
Teifion/teiserver
131e002160e1e948cb55e56d62370ba66a972cba
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver/agents/battlehost_agent_server.ex
Teifion/teiserver
131e002160e1e948cb55e56d62370ba66a972cba
[ "MIT" ]
null
null
null
lib/teiserver/agents/battlehost_agent_server.ex
Teifion/teiserver
131e002160e1e948cb55e56d62370ba66a972cba
[ "MIT" ]
2
2021-02-23T22:34:00.000Z
2021-04-08T13:31:36.000Z
defmodule Teiserver.Agents.BattlehostAgentServer do use GenServer alias Teiserver.Agents.AgentLib alias Teiserver.Battle.Lobby require Logger @tick_period 5000 @inaction_chance 0.5 @leave_chance 0.5 @password_chance 0.5 @map_hash "1565299817" @game_hash "-1321904802" @game_name "Beyond All Reaso...
28.006897
106
0.621276
ab3e6e8d939fdae9cafd1b435bd869de07218321
12,515
ex
Elixir
lib/mail.ex
Awlexus/elixir-mail
da280510a83078f3bfed605078e481aaa13afe73
[ "MIT" ]
null
null
null
lib/mail.ex
Awlexus/elixir-mail
da280510a83078f3bfed605078e481aaa13afe73
[ "MIT" ]
null
null
null
lib/mail.ex
Awlexus/elixir-mail
da280510a83078f3bfed605078e481aaa13afe73
[ "MIT" ]
null
null
null
defmodule Mail do @moduledoc """ Mail primitive for composing messages. Build a mail message with the `Mail` struct mail = Mail.build_multipart() |> put_subject("How is it going?") |> Mail.put_text("Just checking in") |> Mail.put_to("joe@example.com") |> Mail.put_fr...
30.977723
97
0.656492
ab3e9fe129a929d3bf594de7ba8eba1aeaf76a8c
1,870
ex
Elixir
lib/oban/queue/supervisor.ex
myskoach/oban
a91d53bad86c215d83f5d46e41573b9794259383
[ "Apache-2.0" ]
null
null
null
lib/oban/queue/supervisor.ex
myskoach/oban
a91d53bad86c215d83f5d46e41573b9794259383
[ "Apache-2.0" ]
null
null
null
lib/oban/queue/supervisor.ex
myskoach/oban
a91d53bad86c215d83f5d46e41573b9794259383
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Queue.Supervisor do @moduledoc false use Supervisor alias Oban.Config alias Oban.Queue.{Producer, Watchman} @type option :: {:name, module()} | {:conf, Config.t()} | {:queue, binary()} | {:limit, pos_integer()} @type queue_name :: atom() | binary() ...
26.714286
87
0.646524
ab3ea600eba097d35255b9a4854bc27795ccf623
497
exs
Elixir
priv/repo/migrations/20210409082603_add_api_key_scopes.exs
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
984
2019-09-02T11:36:41.000Z
2020-06-08T06:25:48.000Z
priv/repo/migrations/20210409082603_add_api_key_scopes.exs
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
24
2019-09-10T09:53:17.000Z
2020-06-08T07:35:26.000Z
priv/repo/migrations/20210409082603_add_api_key_scopes.exs
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
51
2019-09-03T10:48:10.000Z
2020-06-07T00:23:34.000Z
defmodule Plausible.Repo.Migrations.AddApiKeyScopes do use Ecto.Migration def up do alter table(:api_keys) do add :scopes, {:array, :text} end execute "UPDATE api_keys SET scopes='{stats:read:*}'" alter table(:api_keys) do modify :scopes, {:array, :text}, null: false end # ht...
19.88
57
0.643863
ab3eebdb53b5e7018ae748532e9bc056d7538a9c
2,178
ex
Elixir
lib/day13.ex
azuline/aoc2019
78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a
[ "Apache-2.0" ]
null
null
null
lib/day13.ex
azuline/aoc2019
78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a
[ "Apache-2.0" ]
null
null
null
lib/day13.ex
azuline/aoc2019
78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a
[ "Apache-2.0" ]
null
null
null
defmodule Day13 do @moduledoc """ Advent of Code 2019 Day 13: Care Package """ alias Day13.{Part1, Part2} def get_program() do Path.join(__DIR__, "inputs/day13.txt") |> File.read!() |> String.trim() |> String.split(",") |> Enum.map(&String.to_integer/1) end def execute() do pr...
22.22449
64
0.559229
ab3f3853a0f544f0fb9556a47f40c1b84d53cabd
793
exs
Elixir
chapter_10/lists_and_recursion_8/tax.exs
dliberalesso/programming_elixir
267761f8cb885c2ff51a237b92123412729df2e2
[ "MIT" ]
null
null
null
chapter_10/lists_and_recursion_8/tax.exs
dliberalesso/programming_elixir
267761f8cb885c2ff51a237b92123412729df2e2
[ "MIT" ]
null
null
null
chapter_10/lists_and_recursion_8/tax.exs
dliberalesso/programming_elixir
267761f8cb885c2ff51a237b92123412729df2e2
[ "MIT" ]
null
null
null
defmodule Tax do @spec apply(orders :: list(keyword), tax_rate :: keyword) :: list(keyword) def apply(orders, tax_rates) do for order = [id: _, ship_to: state, net_amount: net] <- orders, total = (1 + Keyword.get(tax_rates, state, 0)) * net, do: Keyword.put(order, :total_amount, total) end end ...
29.37037
76
0.619168
ab3f38e07a06c93aa10d41a0fe8df4b991ae0adc
2,358
ex
Elixir
clients/people/lib/google_api/people/v1/model/sip_address.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/people/lib/google_api/people/v1/model/sip_address.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/people/lib/google_api/people/v1/model/sip_address.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.727273
132
0.695505
ab3f77cbc4f94d8bfe940fee409e39b0bdab2deb
5,462
ex
Elixir
lib/lobby/lobby.ex
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
lib/lobby/lobby.ex
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
lib/lobby/lobby.ex
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
defmodule Wordza.Lobby do @moduledoc """ A Lobby hasMany Games (each is a GenServer running a single GameInstance) This is our Wordza Lobby, the "state" where all running games live We only need 1 Lobby, which contains the list of all running Games When we create a GameInstance, we will run that inside a G...
32.511905
124
0.653241
ab3f78190e15ae2e02f754f73b496f7bd5ece8a5
633
ex
Elixir
lib/events_tools/status/status.ex
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
lib/events_tools/status/status.ex
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
6
2017-10-05T20:16:34.000Z
2017-10-05T20:36:11.000Z
lib/events_tools/status/status.ex
apps-team/events-tools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
defmodule EventsTools.Status.Status do use Ecto.Schema import Ecto.Changeset alias EventsTools.Status.Status schema "status" do field :summary, :string field :title, :string many_to_many :profiles, EventsTools.Accounts.Profile, join_through: "profiles_status", on_delete: :delete_all, on_replace: :...
26.375
134
0.720379
ab3f7e2a093b784b627678a3b8c59733b87498d3
946
ex
Elixir
test/support/channel_case.ex
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
test/support/channel_case.ex
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
test/support/channel_case.ex
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
defmodule SimpleApiWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts...
24.894737
71
0.717759
ab3f97c6771db44b1989f0d936509a6e909acc68
48,059
ex
Elixir
lib/elixir/lib/file.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/file.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/file.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
defmodule File do @moduledoc ~S""" This module contains functions to manipulate files. Some of those functions are low-level, allowing the user to interact with files or IO devices, like `open/2`, `copy/3` and others. This module also provides higher level functions that work with filenames and have their ...
32.039333
121
0.63859
ab3fb21535d4b5c64c35cf8973fbd8a0244fec8a
990
ex
Elixir
lib/ecto_nanoid.ex
oyeb/ecto_identifier
420328bf0701b150d0362d539eeda34fd6b55df2
[ "Apache-2.0" ]
15
2018-09-23T17:13:07.000Z
2021-11-09T14:54:05.000Z
lib/ecto_nanoid.ex
oyeb/ecto_identifier
420328bf0701b150d0362d539eeda34fd6b55df2
[ "Apache-2.0" ]
3
2021-05-17T16:01:18.000Z
2021-06-13T20:29:18.000Z
lib/ecto_nanoid.ex
oyeb/ecto_identifier
420328bf0701b150d0362d539eeda34fd6b55df2
[ "Apache-2.0" ]
5
2019-06-21T11:41:36.000Z
2020-12-27T02:38:32.000Z
defmodule Ecto.Nanoid do @moduledoc """ Custom type that can auto-generate nanoids. ## Usage ``` defmodule Post do use Ecto.Schema alias Ecto.Nanoid schema "posts" do field(:number, Ecto.Nanoid, autogenerate: true) field(:data, :string) end end ``` In your migrations for t...
20.625
79
0.642424
ab3fde594c47f013803e7cda326770756d1bcb0c
515
ex
Elixir
lib/api_phoenix_jwt_crud_web/views/user_view.ex
melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud
3c90eafe889b0414ed0f027d7d42bf401682f739
[ "MIT" ]
null
null
null
lib/api_phoenix_jwt_crud_web/views/user_view.ex
melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud
3c90eafe889b0414ed0f027d7d42bf401682f739
[ "MIT" ]
null
null
null
lib/api_phoenix_jwt_crud_web/views/user_view.ex
melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud
3c90eafe889b0414ed0f027d7d42bf401682f739
[ "MIT" ]
null
null
null
defmodule ApiPhoenixJwtCrudWeb.UserView do use ApiPhoenixJwtCrudWeb, :view alias ApiPhoenixJwtCrudWeb.UserView def render("index.json", %{users: users}) do %{data: render_many(users, UserView, "user.json")} end def render("show.json", %{user: user, jwt: jwt}) do %{ username: user.username, ema...
23.409091
58
0.646602
ab402953962599bf5c4a7528b1c525b37145553d
336
ex
Elixir
lib/supabase_surface/components/icons/icon_play.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
5
2021-06-08T08:02:43.000Z
2022-02-09T23:13:46.000Z
lib/supabase_surface/components/icons/icon_play.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_play.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
1
2021-07-14T05:20:31.000Z
2021-07-14T05:20:31.000Z
defmodule SupabaseSurface.Components.Icons.IconPlay do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.play(width: icon_size, height: icon_size)} </IconContainer> ...
22.4
62
0.714286
ab4042b6f96e68b039a3b9ad3474a0e9041de143
2,663
ex
Elixir
lib/pow/extension/phoenix/router.ex
crooke/pow
34ef1282260f2765b0b3df14485771b5e9c2094b
[ "MIT" ]
1
2021-06-25T10:36:01.000Z
2021-06-25T10:36:01.000Z
lib/pow/extension/phoenix/router.ex
crooke/pow
34ef1282260f2765b0b3df14485771b5e9c2094b
[ "MIT" ]
null
null
null
lib/pow/extension/phoenix/router.ex
crooke/pow
34ef1282260f2765b0b3df14485771b5e9c2094b
[ "MIT" ]
null
null
null
defmodule Pow.Extension.Phoenix.Router do @moduledoc """ Handles extensions for the phonix router. ## Usage Configure `lib/my_project_web/router.ex` the following way: defmodule MyAppWeb.Router do use Phoenix.Router use Pow.Phoenix.Router use Pow.Extension.Phoenix.Router, ...
23.776786
78
0.638378
ab409fcbd890b3ee4fed747cb91ad2c0ea2c7c5a
3,776
ex
Elixir
lib/extensions/reset_password/plug.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
lib/extensions/reset_password/plug.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
lib/extensions/reset_password/plug.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
defmodule PowResetPassword.Plug do @moduledoc """ Plug helper methods. """ alias Plug.Conn alias Pow.{Config, Plug, Store.Backend.EtsCache, UUID} alias PowResetPassword.Ecto.Context, as: ResetPasswordContext alias PowResetPassword.{Ecto.Schema, Store.ResetTokenCache} @doc """ Creates a changeset from...
27.362319
99
0.666843
ab40ba7b27ecaae74b57719c7cef5b6063b7cf2b
4,773
ex
Elixir
lib/elixir_awesome/projects/fetch.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/projects/fetch.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/projects/fetch.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
defmodule ElixirAwesome.Projects.Fetch do @moduledoc """ fetch and parse markdown file with list of awesome elixir projects by category, with github repo url and shot description """ import Logger, only: [info: 1, warn: 1] defp fetch_list(header) do import ElixirAwesome.Projects.Helpers import A...
25.253968
66
0.567987
ab40c62d12f3edee536fe6b8badee64cc865eac1
792
ex
Elixir
apps/diet/test/support/factory.ex
isavita/diet-umbrella
0eee4d0dc4d9567888e4b69ccc7993e95d95ed29
[ "MIT" ]
1
2020-06-01T21:25:54.000Z
2020-06-01T21:25:54.000Z
apps/diet/test/support/factory.ex
isavita/diet-umbrella
0eee4d0dc4d9567888e4b69ccc7993e95d95ed29
[ "MIT" ]
221
2019-07-20T17:20:49.000Z
2021-08-02T06:21:10.000Z
apps/diet/test/support/factory.ex
isavita/diet-umbrella
0eee4d0dc4d9567888e4b69ccc7993e95d95ed29
[ "MIT" ]
null
null
null
defmodule Diet.Support.Factory do alias Diet.{Accounts, Multimedia} @user_attrs %{ name: "Jane Doe", password: "nosecret" } @video_attrs %{ title: "A title", description: "A descripton", url: "https://www.youtube.com/watch?v=randomvideo" } def create_user(attrs \\ %{}) do {:ok, us...
21.405405
74
0.640152
ab40d3952ff8b0b7c8449512840dbf1feb997b9e
359
ex
Elixir
lib/squabble/state.ex
nikhilbelchada/squabble
255cf21301913f102c44f1d13209eeaa8421f6a7
[ "MIT" ]
65
2018-08-28T23:04:35.000Z
2022-01-23T23:20:22.000Z
lib/squabble/state.ex
nikhilbelchada/squabble
255cf21301913f102c44f1d13209eeaa8421f6a7
[ "MIT" ]
null
null
null
lib/squabble/state.ex
nikhilbelchada/squabble
255cf21301913f102c44f1d13209eeaa8421f6a7
[ "MIT" ]
9
2018-10-24T13:51:07.000Z
2021-09-16T12:40:54.000Z
defmodule Squabble.State do @moduledoc """ Struct for the state of the local process """ defstruct [ :state, :size, :subscriptions, :term, :highest_seen_term, :leader_pid, :leader_node, :voted_for, :votes ] @doc """ States of a node """ def states() do ["follo...
14.36
43
0.584958
ab40da4451cc541c571d4434df385b915b1961aa
1,177
ex
Elixir
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/router.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
1
2022-02-16T09:00:34.000Z
2022-02-16T09:00:34.000Z
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/router.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/router.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
defmodule LvPerformanceWeb.Router do use LvPerformanceWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {LvPerformanceWeb.LayoutView, :root} plug :protect_from_forgery plug :put_secure_browser_headers end pipelin...
26.75
70
0.71113
ab410cd6e8399e94bfc608c3d25ef856756c0fa9
740
ex
Elixir
lib/email_ecto_type/format_validator.ex
Elonsoft/email_ecto_type
b6be591a150d92db19be66f4e178b781e8994506
[ "MIT" ]
2
2020-01-15T22:13:05.000Z
2020-06-18T07:54:15.000Z
lib/email_ecto_type/format_validator.ex
Elonsoft/email_ecto_type
b6be591a150d92db19be66f4e178b781e8994506
[ "MIT" ]
null
null
null
lib/email_ecto_type/format_validator.ex
Elonsoft/email_ecto_type
b6be591a150d92db19be66f4e178b781e8994506
[ "MIT" ]
null
null
null
defmodule EmailEctoType.FormatValidator do @moduledoc """ Validates an email address against a simple regexp. Used as default validator for `EmailEctoType`. See `EmailEctoType.Validator` for details. """ alias EmailEctoType.Validator @behaviour Validator @doc false @impl true def validate(addres...
23.870968
141
0.639189
ab417978b50d685f3c1e9a2bc58ce9843ef2d85a
544
ex
Elixir
elixir/graphql/lib/graphql/graphql.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/graphql/lib/graphql/graphql.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/graphql/lib/graphql/graphql.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
defmodule Graphql do @moduledoc """ Documentation for Graphql. """ @doc """ Hello world. ## Examples iex> Graphql.hello() :world """ use Application require Logger import Supervisor.Spec def start(_type, _args) do children = [ Plug.Adapters.Cowboy.child_spec(:http, Graph...
17.548387
77
0.643382
ab4184143327a284d0e887a53eaf37effee71d7f
19,384
exs
Elixir
test/ggity_plot_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
test/ggity_plot_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
test/ggity_plot_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
defmodule GGityPlotTest do use ExUnit.Case alias GGity.{Element, Geom, Labels, Plot, Scale} setup do data = [ %{a: 1, b: 2, c: 3, date: ~D[2001-01-01], datetime: ~N[2001-01-01 00:00:00]}, %{a: 2, b: 4, c: 6, date: ~D[2001-01-03], datetime: ~N[2001-01-03 00:00:00]} ] zero_domain_data = [...
29.105105
95
0.594459
ab418c6ef5358a15db2b48f5f304ec1d66645f14
3,680
ex
Elixir
lib/mix/tasks/hex.retire.ex
wesleimp/hex
c3e9e0439e6b5c2d595668c66fd923bc429e2d34
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/hex.retire.ex
wesleimp/hex
c3e9e0439e6b5c2d595668c66fd923bc429e2d34
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/hex.retire.ex
wesleimp/hex
c3e9e0439e6b5c2d595668c66fd923bc429e2d34
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Hex.Retire do use Mix.Task @shortdoc "Retires a package version" @moduledoc """ Retires a package version. mix hex.retire PACKAGE VERSION REASON mix hex.retire PACKAGE VERSION --unretire Mark a package as retired when you no longer recommend it's usage. A retired package...
30.666667
96
0.662772
ab41901180fbd00ae7381622a70652046d0c7b28
1,760
ex
Elixir
apps/re_web/lib/exporters/zap/plug.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
1
2021-01-19T05:01:15.000Z
2021-01-19T05:01:15.000Z
apps/re_web/lib/exporters/zap/plug.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
apps/re_web/lib/exporters/zap/plug.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
defmodule ReWeb.Exporters.Zap.Plug do @moduledoc """ Plug to handle pipedrive webhooks """ import Plug.Conn alias Re.{ Exporters.Zap, Listings.Exporter, Listings.Highlights } def init(args), do: args def call( %Plug.Conn{path_info: [state_slug, city_slug], query_params: query_para...
27.076923
90
0.703977
ab41b8beb8b71d61af4c06e7e833d22880de263e
67
ex
Elixir
web/views/layout_view.ex
joakimk/starsystem
972e439d685e025396dec530bae110f2ce1a870d
[ "MIT", "Unlicense" ]
8
2016-03-16T05:13:09.000Z
2019-01-07T06:13:12.000Z
web/views/layout_view.ex
joakimk/starsystem
972e439d685e025396dec530bae110f2ce1a870d
[ "MIT", "Unlicense" ]
null
null
null
web/views/layout_view.ex
joakimk/starsystem
972e439d685e025396dec530bae110f2ce1a870d
[ "MIT", "Unlicense" ]
null
null
null
defmodule Starsystem.LayoutView do use Starsystem.Web, :view end
16.75
34
0.80597
ab41c0b08481c564eb69de4b37593cbdd40858b7
620
ex
Elixir
lib/ccxtex/utils.ex
ontofractal/ccxtex
daca2a9c5d322ff2c9dc736506d00ba606b14dd9
[ "MIT" ]
10
2018-11-08T07:08:58.000Z
2021-03-24T20:52:52.000Z
lib/ccxtex/utils.ex
ontofractal/ccxtex
daca2a9c5d322ff2c9dc736506d00ba606b14dd9
[ "MIT" ]
1
2019-04-01T07:27:38.000Z
2019-04-01T12:56:01.000Z
lib/ccxtex/utils.ex
ontofractal/ccxtex
daca2a9c5d322ff2c9dc736506d00ba606b14dd9
[ "MIT" ]
5
2018-10-17T21:34:59.000Z
2019-11-25T08:05:38.000Z
defmodule Ccxtex.Utils do def parse_ohlcvs(raw_ohlcvs) do for [unix_time_ms, open, high, low, close, volume] <- raw_ohlcvs do %{ timestamp: unix_time_ms, open: parse_float(open), high: parse_float(high), low: parse_float(low), close: parse_float(close), base_v...
25.833333
71
0.653226
ab41c6a099a7d042b386133da8c5fafc892ff924
390
exs
Elixir
test/vutuv_web/views/error_view_test.exs
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
309
2016-05-03T17:16:23.000Z
2022-03-01T09:30:22.000Z
test/vutuv_web/views/error_view_test.exs
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
662
2016-04-27T07:45:18.000Z
2022-01-05T07:29:19.000Z
test/vutuv_web/views/error_view_test.exs
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
40
2016-04-27T07:46:22.000Z
2021-12-31T05:54:34.000Z
defmodule VutuvWeb.ErrorViewTest do use VutuvWeb.ConnCase, async: true import Phoenix.View test "renders 404.html" do assert render_to_string(VutuvWeb.ErrorView, "404.html", []) =~ "we cannot find the page you were looking for" end test "renders 500.html" do assert render_to_string(Vut...
26
90
0.7
ab41f74b1f937272cabe5959bd05c4530cd1b763
491
exs
Elixir
test/models/pipelines_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
2
2019-03-05T16:29:10.000Z
2020-01-17T14:11:48.000Z
test/models/pipelines_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
3
2019-03-18T20:26:48.000Z
2020-06-25T14:31:13.000Z
test/models/pipelines_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
1
2018-06-16T15:32:25.000Z
2018-06-16T15:32:25.000Z
defmodule CncfDashboardApi.PipelinesTest do use CncfDashboardApi.ModelCase alias CncfDashboardApi.Pipelines @valid_attrs %{ref: "some content", status: "some content"} @invalid_attrs %{} test "changeset with valid attributes" do changeset = Pipelines.changeset(%Pipelines{}, @valid_attrs) assert cha...
25.842105
65
0.749491
ab421c7eec75be867ccf5d9839ec43923da1f07c
1,201
exs
Elixir
config/config.exs
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
config/config.exs
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
config/config.exs
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config # , W.Psql] config :w, ecto_repos: [W.Repo] con...
28.595238
79
0.736886
ab421f5c1a63d36178f466a2e0966bf9fd5a285c
1,108
exs
Elixir
test/elixir_search_extractor/file_upload/csv_uploader_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
null
null
null
test/elixir_search_extractor/file_upload/csv_uploader_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
32
2021-05-24T06:52:33.000Z
2021-07-19T05:04:40.000Z
test/elixir_search_extractor/file_upload/csv_uploader_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
null
null
null
defmodule ElixirSearchExtractor.FileUpload.CsvUploaderTest do use ElixirSearchExtractor.DataCase, async: true import ElixirSearchExtractor.{AccountsFixtures, KeywordFileFixtures} alias ElixirSearchExtractor.FileUpload.CsvUploader describe "upload_file/2" do test "valid data uploads a file" do user =...
29.157895
75
0.713899
ab4221f3c93c9baec5a5205904995e9ca2235c18
545
ex
Elixir
lib/codebeat_test_web/views/error_view.ex
dydx/codebeat-test
0d81a42f253afbcdd953c566c7987363b22d585d
[ "MIT" ]
null
null
null
lib/codebeat_test_web/views/error_view.ex
dydx/codebeat-test
0d81a42f253afbcdd953c566c7987363b22d585d
[ "MIT" ]
null
null
null
lib/codebeat_test_web/views/error_view.ex
dydx/codebeat-test
0d81a42f253afbcdd953c566c7987363b22d585d
[ "MIT" ]
null
null
null
defmodule CodebeatTestWeb.ErrorView do use CodebeatTestWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.json", _assigns) do # %{errors: %{detail: "Internal Server Error"}} # end # By default, Phoenix returns the status me...
32.058824
83
0.724771
ab4227b74b2934d6048ace5ab74e6a1fa31316b1
1,825
exs
Elixir
refuge/mix.exs
herminiotorres/pragmaticstudio
273647694519fd4149716abf190eb8d97102f488
[ "MIT" ]
null
null
null
refuge/mix.exs
herminiotorres/pragmaticstudio
273647694519fd4149716abf190eb8d97102f488
[ "MIT" ]
null
null
null
refuge/mix.exs
herminiotorres/pragmaticstudio
273647694519fd4149716abf190eb8d97102f488
[ "MIT" ]
null
null
null
defmodule Refuge.MixProject do use Mix.Project def project do [ app: :refuge, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), ...
27.651515
84
0.579178
ab422c31031b5c02a7529bec7c87583687d9ee8d
1,779
ex
Elixir
clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/subscribe_clients_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/subscribe_clients_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/subscribe_clients_request.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.306122
321
0.759415
ab42948656d9b1039417f91aee2a4075b6856bb4
46,258
ex
Elixir
deps/phoenix/lib/phoenix/endpoint.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/phoenix/lib/phoenix/endpoint.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/phoenix/lib/phoenix/endpoint.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Phoenix.Endpoint do @moduledoc ~S""" Defines a Phoenix endpoint. The endpoint is the boundary where all requests to your web application start. It is also the interface your application provides to the underlying web servers. Overall, an endpoint has three responsibilities: * to p...
47.010163
10,139
0.72541
ab429c714ccfea654d341a3caf6b3466fbe1d832
2,330
exs
Elixir
test/rocketpay_web/controllers/accounts_controller_test.exs
Gabriel4420/Rocketpay
b43b97196e17080f8af1a7a21b1d39132d501f16
[ "RSA-MD" ]
null
null
null
test/rocketpay_web/controllers/accounts_controller_test.exs
Gabriel4420/Rocketpay
b43b97196e17080f8af1a7a21b1d39132d501f16
[ "RSA-MD" ]
null
null
null
test/rocketpay_web/controllers/accounts_controller_test.exs
Gabriel4420/Rocketpay
b43b97196e17080f8af1a7a21b1d39132d501f16
[ "RSA-MD" ]
null
null
null
defmodule RocketpayWeb.AccountsControllerTest do use RocketpayWeb.ConnCase, async: true alias Rocketpay.{Account, User} describe "deposit/2" do setup %{conn: conn} do params = %{ name: "Gabriel", password: "G@briel442018", nickname: "jhow", email: "gabriel@hotmail.com",...
27.093023
112
0.588412
ab42c700b6594137bb667c37972063c06ddd7673
1,716
ex
Elixir
apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/application.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/application.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/application.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # 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 appl...
29.586207
94
0.734848
ab42d7a54e632ade274c2394593df99f0f4b3517
1,350
exs
Elixir
elixir/test/rpn_calc_test.exs
erikreedstrom/rpn-calc
2ce2be4aa328c26eb1f88f2a0b77ff64a80202b1
[ "MIT" ]
null
null
null
elixir/test/rpn_calc_test.exs
erikreedstrom/rpn-calc
2ce2be4aa328c26eb1f88f2a0b77ff64a80202b1
[ "MIT" ]
1
2020-07-28T04:28:47.000Z
2020-07-28T04:28:47.000Z
elixir/test/rpn_calc_test.exs
erikreedstrom/rpn-calc
2ce2be4aa328c26eb1f88f2a0b77ff64a80202b1
[ "MIT" ]
null
null
null
defmodule RPNCalcTest do use ExUnit.Case import ExUnit.CaptureIO alias RPNCalc.Calculator setup do Agent.update(Calculator, fn _ -> [] end) end describe "main/0" do test "prints a quit instruction" do assert capture_io("q", fn -> RPNCalc.main([]) end) == "Type \e[33m`q`\e[0m...
29.347826
102
0.575556
ab42ddc89e07c94db7d83ab7daee247ef96dab98
18,232
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/region_instance_groups.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/region_instance_groups.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/region_instance_groups.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "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...
51.502825
414
0.659939
ab42f277bbd0af775b880d5f90e91ebc25edf8cc
2,889
exs
Elixir
test/decoder/decoding_test.exs
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
7
2021-01-30T07:12:03.000Z
2021-12-12T05:28:29.000Z
test/decoder/decoding_test.exs
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
9
2020-11-20T12:54:15.000Z
2022-03-24T10:26:10.000Z
test/decoder/decoding_test.exs
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
1
2021-06-21T23:33:50.000Z
2021-06-21T23:33:50.000Z
defmodule DecoderTest do use ExUnit.Case import Membrane.Testing.Assertions alias Membrane.H264 alias Membrane.Testing alias Membrane.Testing.Pipeline @framerate 30 defp prepare_paths(filename) do in_path = "../fixtures/input-#{filename}.h264" |> Path.expand(__DIR__) reference_path = "../fixture...
29.783505
84
0.689166
ab4301d9493a441df3ecb6ef46948a750c93bff1
706
ex
Elixir
priv/templates/phx.gen.live/modal_component.ex
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
7
2021-01-31T04:51:08.000Z
2022-01-09T06:59:28.000Z
priv/templates/phx.gen.live/modal_component.ex
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
5
2020-07-20T01:49:01.000Z
2021-09-08T00:17:04.000Z
priv/templates/phx.gen.live/modal_component.ex
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
2
2021-02-06T08:40:23.000Z
2021-03-20T16:35:47.000Z
defmodule <%= inspect context.web_module %>.ModalComponent do use <%= inspect context.web_module %>, :live_component @impl true def render(assigns) do ~L""" <div id="<%%= @id %>" class="phx-modal" phx-capture-click="close" phx-window-keydown="close" phx-key="escape" phx-target="#<...
26.148148
83
0.590652
ab4302303ff679c8140673ca49dc15740360dafc
8,943
ex
Elixir
lib/Structs/Guild/guild.ex
Dreae/alchemy
6b142c4d2418ae5f388a307bf973e0491566d992
[ "MIT" ]
null
null
null
lib/Structs/Guild/guild.ex
Dreae/alchemy
6b142c4d2418ae5f388a307bf973e0491566d992
[ "MIT" ]
null
null
null
lib/Structs/Guild/guild.ex
Dreae/alchemy
6b142c4d2418ae5f388a307bf973e0491566d992
[ "MIT" ]
null
null
null
defmodule Alchemy.Guild do alias Alchemy.{Channel, User, Voice, VoiceState} alias Alchemy.Guild.{Emoji, GuildMember, Integration, Presence, Role} import Alchemy.Structs @moduledoc """ Guilds represent a collection of users in a "server". This module contains information about the types, and subtypes relate...
27.1
93
0.617466
ab430f8bc7681760199fa1b934e318184ff4368e
666
ex
Elixir
lib/murky_web/live/components/delete_file.ex
lulabad/murky
8cf7b24c7d36c3b035da05cc289dac957e95e3d7
[ "MIT" ]
6
2020-08-17T18:49:15.000Z
2021-11-21T08:22:06.000Z
lib/murky_web/live/components/delete_file.ex
lulabad/murky
8cf7b24c7d36c3b035da05cc289dac957e95e3d7
[ "MIT" ]
5
2020-09-22T16:46:38.000Z
2021-12-19T18:04:19.000Z
lib/murky_web/live/components/delete_file.ex
lulabad/murky
8cf7b24c7d36c3b035da05cc289dac957e95e3d7
[ "MIT" ]
2
2021-11-22T20:12:11.000Z
2021-12-19T18:12:01.000Z
defmodule MurkyWeb.Component.DeleteFile do use Phoenix.LiveComponent def render(assigns) do ~L""" <div class="flex flex-col"> <div class="mb-1 text-lg">Do you really want to delete the file <span class="font-black text-primary-500">'<%= @filename %>'</span>?</div> <div class="mb-6 text-primary-...
37
144
0.642643
ab431d5ba1a6c707497d54d1296a461f0a954879
212
ex
Elixir
test/support/test_client.ex
mfeckie/nug
164772bcf8a9a808cdb742a967f61807c132cbdf
[ "MIT" ]
1
2020-05-13T23:25:31.000Z
2020-05-13T23:25:31.000Z
test/support/test_client.ex
mfeckie/nug
164772bcf8a9a808cdb742a967f61807c132cbdf
[ "MIT" ]
null
null
null
test/support/test_client.ex
mfeckie/nug
164772bcf8a9a808cdb742a967f61807c132cbdf
[ "MIT" ]
null
null
null
defmodule TestClient do def new(url) do middleware = [ {Tesla.Middleware.BaseUrl, url}, Tesla.Middleware.JSON ] Tesla.client(middleware, {Tesla.Adapter.Gun, timeout: 30_000}) end end
19.272727
66
0.665094
ab43324efaf97811c8414c4e2b12de19e81fa648
818
ex
Elixir
programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-1-cowboy/lib/hello_world.ex
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-1-cowboy/lib/hello_world.ex
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-1-cowboy/lib/hello_world.ex
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
defmodule HelloWorld do require Logger use Application def start(_type, _args) do port = Application.get_env(:hello_world, :port) path_list = [ {"/hello/[:name]", HelloWorld.HelloHandler, []}, {"/[...]", HelloWorld.GoodbyeHandler, []} ] routes = [{:_, path_list}] dispatch = :cow...
24.787879
74
0.614914
ab435750002ae6f4917eb86b9636dbf666195365
655
exs
Elixir
priv/repo/migrations/20200217125040_create_search_indexes.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
120
2020-03-30T13:58:40.000Z
2022-03-30T10:17:50.000Z
priv/repo/migrations/20200217125040_create_search_indexes.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
34
2020-04-01T23:11:59.000Z
2022-03-13T08:14:37.000Z
priv/repo/migrations/20200217125040_create_search_indexes.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
16
2020-04-24T17:14:23.000Z
2022-03-27T22:32:48.000Z
defmodule Adoptoposs.Repo.Migrations.CreateSearchIndexes do use Ecto.Migration def up do execute "CREATE EXTENSION pg_trgm" execute "CREATE INDEX projects_language_trgm_index ON projects USING gin (language gin_trgm_ops)" execute "CREATE INDEX projects_name_trgm_index ON projects USING gin (name gin_t...
29.772727
101
0.749618
ab4357e173c903a13d00d39b1d7ed1ec42681442
448
ex
Elixir
apps/core/lib/core_web/routes.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/core_web/routes.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/core_web/routes.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
defmodule Legendary.Core.Routes do @moduledoc """ Router module that brings in core framework routes, such as the feature flag admin interface. Can be included like: use Legendary.Core.Routes """ defmacro __using__(_opts \\ []) do quote do scope path: "/admin/feature-flags" do pipe_th...
24.888889
78
0.678571
ab43623ab71f9304ed3716cc829140d7283f3cfc
114
exs
Elixir
apps/entity/test/entity_test.exs
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
27
2016-12-28T15:00:19.000Z
2021-11-09T12:55:23.000Z
apps/entity/test/entity_test.exs
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
5
2017-02-13T13:11:55.000Z
2019-07-22T19:38:09.000Z
apps/entity/test/entity_test.exs
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
8
2017-02-08T10:18:50.000Z
2020-06-01T11:42:04.000Z
defmodule EntityTest do use ExUnit.Case doctest Entity test "the truth" do assert 1 + 1 == 2 end end
12.666667
23
0.666667
ab436e973c48189d3d8afdb68f0965f9e076bcef
1,100
ex
Elixir
lib/ex_owm/historical_weather/coordinator.ex
Kociamber/ex_owm
87085438ac68ffad07d05e2838ee4c833f6f6603
[ "MIT" ]
5
2017-12-27T15:03:16.000Z
2021-05-10T13:45:38.000Z
lib/ex_owm/historical_weather/coordinator.ex
johannesE/ex_owm
4a85afd660f41a7fc4ca6e6e81ae1538124c1dd7
[ "MIT" ]
4
2018-12-18T10:34:46.000Z
2021-05-18T12:35:25.000Z
lib/ex_owm/historical_weather/coordinator.ex
johannesE/ex_owm
4a85afd660f41a7fc4ca6e6e81ae1538124c1dd7
[ "MIT" ]
1
2020-08-01T11:31:20.000Z
2020-08-01T11:31:20.000Z
defmodule ExOwm.HistoricalWeather.Coordinator do @moduledoc """ This module is a GenServer implementation created for handling concurrent worker task coordination. """ use GenServer alias ExOwm.HistoricalWeather.Worker ## Client API def start_link(options \\ []) do GenServer.start_link(__MODULE__, ...
26.829268
95
0.710909
ab4377bf3c488af982bfc0a6276cad5ad21d7808
474
exs
Elixir
config/prod.secret.exs
anildigital/ueberauth_example
b46a084d96da9c1155dd42bc8ac958d3f1513860
[ "MIT" ]
null
null
null
config/prod.secret.exs
anildigital/ueberauth_example
b46a084d96da9c1155dd42bc8ac958d3f1513860
[ "MIT" ]
null
null
null
config/prod.secret.exs
anildigital/ueberauth_example
b46a084d96da9c1155dd42bc8ac958d3f1513860
[ "MIT" ]
null
null
null
use Mix.Config # In this file, we keep production configuration that # you likely want to automate and keep it away from # your version control system. config :ueberauth_example, UeberauthExample.Endpoint, secret_key_base: System.get_env("SECRET_KEY_BASE") # Configure your database config :ueberauth_example, Uebera...
29.625
53
0.78692
ab43acd345c1e3e7dd2c29f05125623c65e030c4
635
exs
Elixir
mix.exs
micxjo/elixir-multihash
1ccbaef69a42defe02b385b0251f6e9f4403a5cd
[ "BSD-3-Clause" ]
null
null
null
mix.exs
micxjo/elixir-multihash
1ccbaef69a42defe02b385b0251f6e9f4403a5cd
[ "BSD-3-Clause" ]
null
null
null
mix.exs
micxjo/elixir-multihash
1ccbaef69a42defe02b385b0251f6e9f4403a5cd
[ "BSD-3-Clause" ]
null
null
null
defmodule Multihash.Mixfile do use Mix.Project def project do [app: :multihash, version: "0.0.1", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, source_url: "https://github.com/micxjo/elixir-multihash", deps: deps] end def application d...
23.518519
62
0.555906
ab448ffa4d586fc6aefd758c3e2cbe1c566656d7
859
ex
Elixir
lib/graphql/resolvers/operation.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/graphql/resolvers/operation.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/graphql/resolvers/operation.ex
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Accent.GraphQL.Resolvers.Operation do alias Movement.Builders.Rollback, as: RollbackBuilder alias Movement.Persisters.Rollback, as: RollbackPersister alias Accent.{ Operation, Plugs.GraphQLContext, Repo } @spec rollback(Operation.t(), any(), GraphQLContext.t()) :: {:ok, %{operation: bo...
33.038462
120
0.672875
ab449afa231d47dbc78894ae82a38610b200b4ac
406
ex
Elixir
lib/hexpm_web/controllers/api/short_url_controller.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
lib/hexpm_web/controllers/api/short_url_controller.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
lib/hexpm_web/controllers/api/short_url_controller.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule HexpmWeb.API.ShortURLController do use HexpmWeb, :controller alias Hexpm.ShortURLs def create(conn, params) do case ShortURLs.add(params) do {:ok, short_url} -> conn |> put_status(201) |> render(:show, url: Routes.short_url_url(conn, :show, short_url.short_code)) ...
23.882353
86
0.652709
ab44da14a58082000fa343d1dfd3924e7380658f
1,492
exs
Elixir
elixir/phoenix/rel/config.exs
rizalgowandy/web-frameworks
4e47cdb672d06ea63e351e5567345ec2654d8d7f
[ "MIT" ]
3
2020-08-31T20:38:34.000Z
2021-04-09T16:38:16.000Z
elixir/phoenix/rel/config.exs
armando170A/web-fraworks
7efa26caa29edb93cc475e5b5b5942a815090f75
[ "MIT" ]
443
2019-10-17T20:33:38.000Z
2021-08-03T03:20:46.000Z
elixir/phoenix/rel/config.exs
armando170A/web-fraworks
7efa26caa29edb93cc475e5b5b5942a815090f75
[ "MIT" ]
2
2020-11-30T11:52:43.000Z
2021-03-22T07:05:29.000Z
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # T...
31.083333
81
0.739276
ab45091d3fda9cbd3fd5526567d33b69cf836d6d
2,055
ex
Elixir
lib/nostrum/struct/guild/audit_log_entry.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
637
2017-03-07T11:25:35.000Z
2022-03-31T13:37:51.000Z
lib/nostrum/struct/guild/audit_log_entry.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
372
2017-03-07T20:42:03.000Z
2022-03-30T22:46:46.000Z
lib/nostrum/struct/guild/audit_log_entry.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
149
2017-03-07T12:11:58.000Z
2022-03-19T22:11:51.000Z
defmodule Nostrum.Struct.Guild.AuditLogEntry do @moduledoc """ Represents a single entry in the guild's audit log. """ alias Nostrum.Snowflake alias Nostrum.Struct.User alias Nostrum.Util defstruct [ :action_type, :changes, :id, :options, :reason, :target_id, :user_id ] ...
26.012658
152
0.610219
ab4520965cd9ad16542d66143b0fc135d4b0f6cb
30,849
exs
Elixir
lib/elixir/test/elixir/exception_test.exs
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
19,291
2015-01-01T02:42:49.000Z
2022-03-31T21:01:40.000Z
lib/elixir/test/elixir/exception_test.exs
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
8,082
2015-01-01T04:16:23.000Z
2022-03-31T22:08:02.000Z
lib/elixir/test/elixir/exception_test.exs
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
3,472
2015-01-03T04:11:56.000Z
2022-03-29T02:07:30.000Z
Code.require_file("test_helper.exs", __DIR__) defmodule ExceptionTest do use ExUnit.Case, async: true defp capture_err(fun) do ExUnit.CaptureIO.capture_io(:stderr, fun) end doctest Exception test "message/1" do defmodule BadException do def message(exception) do if exception.raise do...
37.033613
140
0.59023
ab452636aeed51afe096d71fa33df118c8f0209b
18,927
ex
Elixir
lib/faker/vehicle/en.ex
kurt-friedrich/faker
a23a82ff69f3dd895ae6487d6f9aa1f35278efdb
[ "MIT" ]
540
2015-01-05T16:31:49.000Z
2019-09-25T00:40:27.000Z
lib/faker/vehicle/en.ex
kurt-friedrich/faker
a23a82ff69f3dd895ae6487d6f9aa1f35278efdb
[ "MIT" ]
172
2015-01-06T03:55:17.000Z
2019-10-03T12:58:02.000Z
lib/faker/vehicle/en.ex
kurt-friedrich/faker
a23a82ff69f3dd895ae6487d6f9aa1f35278efdb
[ "MIT" ]
163
2015-01-05T21:24:54.000Z
2019-10-03T07:59:42.000Z
defmodule Faker.Vehicle.En do import Faker, only: [sampler: 2] alias Faker.Util @moduledoc """ Functions for generating Vehicle related data in English """ @makes [ "BMW", "Audi", "Toyota", "Chevy", "Ford", "Dodge", "Lincoln", "Buick", "Honda", "Nissan", "Merced...
34.601463
437
0.651292
ab456eaf06765a6e78d786e170b88633b944101f
1,135
exs
Elixir
config/config.exs
mattr-/alice_personable
64345adf00f5185db33b683c4dd2b73063dc436d
[ "MIT" ]
null
null
null
config/config.exs
mattr-/alice_personable
64345adf00f5185db33b683c4dd2b73063dc436d
[ "MIT" ]
null
null
null
config/config.exs
mattr-/alice_personable
64345adf00f5185db33b683c4dd2b73063dc436d
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.612903
73
0.755066
ab45a71863c63b3fc0b6f61561f450e1f8ffc279
361
exs
Elixir
lesson_09/demo/4_phx/a_webpack_demo_umbrella/apps/a_webpack_demo/priv/repo/seeds.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
1
2021-09-22T09:56:35.000Z
2021-09-22T09:56:35.000Z
lesson_09/demo/4_phx/a_webpack_demo_umbrella/apps/a_webpack_demo/priv/repo/seeds.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
7
2020-03-14T19:30:29.000Z
2022-02-27T01:20:40.000Z
lesson_09/demo/4_phx/a_webpack_demo_umbrella/apps/a_webpack_demo/priv/repo/seeds.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
11
2020-02-13T14:52:45.000Z
2020-08-03T12:18:56.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: # # AWebpackDemo.Repo.insert!(%AWebpackDemo.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as...
30.083333
61
0.714681
ab45a8b30a96c011c850745bc19ec62d55eae9fd
124,613
ex
Elixir
lib/elixir/lib/enum.ex
frerich/elixir
c799fcdcf7f9ed8b49f6de9146ede41642a491d3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
frerich/elixir
c799fcdcf7f9ed8b49f6de9146ede41642a491d3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
frerich/elixir
c799fcdcf7f9ed8b49f6de9146ede41642a491d3
[ "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 `Enumerable.r...
28.561311
105
0.616324
ab45d596b1db3a62d4cbdbcb897d909ebc9de160
6,464
exs
Elixir
priv/repo/seeds.exs
bglusman/elixir-companies
d6a728cf9136888367e261feb876c5d2a266ed57
[ "MIT" ]
333
2019-05-18T14:01:17.000Z
2022-03-22T05:07:40.000Z
priv/repo/seeds.exs
bglusman/elixir-companies
d6a728cf9136888367e261feb876c5d2a266ed57
[ "MIT" ]
89
2019-05-18T10:01:54.000Z
2021-05-12T15:19:26.000Z
priv/repo/seeds.exs
envato/elixir-companies
7488075d1a372c9ca8fa6603f93e384b73977526
[ "MIT" ]
33
2019-06-07T00:33:53.000Z
2022-03-21T05:38:28.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: # # Companies.Repo.insert!(%Companies.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they ...
24.300752
160
0.685798
ab45e885224eedbe317ef57570bcd7fac4d0a9ce
21,318
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/vpn_tunnels.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/vpn_tunnels.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/api/vpn_tunnels.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
56.248021
511
0.66221
ab462da985a7f82ed7a57d6c624a653e342b5cde
1,687
ex
Elixir
apps/tai/lib/tai/venue.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/venue.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/lib/tai/venue.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Venue do alias __MODULE__ @type id :: atom @type adapter :: Tai.Venues.Adapter.t() @type channel :: atom @type account :: Tai.Venues.Account.t() @type credential_id :: atom @type credential :: map @type credentials :: %{optional(credential_id) => account} @type t :: %Venue{ id...
22.797297
61
0.595732
ab4633e592900d0a1756bd545c1df0658996528a
103
ex
Elixir
lib/banking/mailer/mailer.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
lib/banking/mailer/mailer.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
lib/banking/mailer/mailer.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
defmodule Banking.Mailer do @moduledoc """ Mailer """ use Bamboo.Mailer, otp_app: :banking end
14.714286
38
0.68932
ab4649a6e9f6d73fd82ae4a3f6695292ce4e08d2
972
exs
Elixir
mix.exs
2nd/throttlex
e5d311d00a301a6c87f17986b893dcbde39acf89
[ "MIT" ]
4
2017-10-09T06:48:39.000Z
2021-12-01T11:21:33.000Z
mix.exs
2nd/throttlex
e5d311d00a301a6c87f17986b893dcbde39acf89
[ "MIT" ]
1
2019-07-02T16:21:12.000Z
2019-07-02T16:21:12.000Z
mix.exs
2nd/throttlex
e5d311d00a301a6c87f17986b893dcbde39acf89
[ "MIT" ]
2
2019-01-31T08:37:09.000Z
2021-12-01T11:23:06.000Z
defmodule Throttlex.Mixfile do use Mix.Project def project do [app: :throttlex, version: "0.0.9", elixir: "~> 1.4", name: "Throttlex", deps: deps(), package: package(), description: description(), source_url: "https://github.com/2nd/throttlex", homepage_url: "https://git...
21.130435
65
0.562757
ab465a5f9fdab0ef1938d425651fda6bb5a4281a
13,354
ex
Elixir
lib/guardian/permissions.ex
cgorshing/guardian
b62f961e948dc518e6f767af08c2c5a9f1667702
[ "MIT" ]
null
null
null
lib/guardian/permissions.ex
cgorshing/guardian
b62f961e948dc518e6f767af08c2c5a9f1667702
[ "MIT" ]
null
null
null
lib/guardian/permissions.ex
cgorshing/guardian
b62f961e948dc518e6f767af08c2c5a9f1667702
[ "MIT" ]
null
null
null
defmodule Guardian.Permissions do @moduledoc """ An optional plugin to Guardian to provide permissions for your tokens These can be used for any token types since they only work on the `claims`. Permissions are set on a per implementation module basis. Each implementation module can have their own sets. P...
35.801609
115
0.655908
ab46801ff3a2d824c48ddb7568de0993f2d42416
1,558
ex
Elixir
lib/tds/query.ex
kianmeng/tds
36f228275c2bfde2baa45fe70d29d1eb1d44379b
[ "Apache-2.0" ]
null
null
null
lib/tds/query.ex
kianmeng/tds
36f228275c2bfde2baa45fe70d29d1eb1d44379b
[ "Apache-2.0" ]
null
null
null
lib/tds/query.ex
kianmeng/tds
36f228275c2bfde2baa45fe70d29d1eb1d44379b
[ "Apache-2.0" ]
1
2021-09-07T15:25:40.000Z
2021-09-07T15:25:40.000Z
defmodule Tds.Query do @moduledoc false @type t :: %__MODULE__{ statement: String.t, handle: term } defstruct [:statement, :handle] end defimpl DBConnection.Query, for: Tds.Query do alias Tds.Parameter alias Tds.Types alias Tds.Query alias Tds.Result def encode(_statement, [], _opts) do ...
20.5
68
0.637356
ab468a77b5b0112a99e4fa8c2e99c415e8c492ca
1,962
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/matched_developer_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/matched_developer_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sheets/lib/google_api/sheets/v4/model/matched_developer_metadata.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...
39.24
158
0.752294
ab46977739d5e59a5299fbe3ffb19bf5656e58b4
243
ex
Elixir
lib/membrane_loggers/console_native.ex
membraneframework/membrane-loggers
5dd04b64764680719096da633cbc5659d98ea90d
[ "Apache-2.0" ]
1
2020-01-12T21:32:50.000Z
2020-01-12T21:32:50.000Z
lib/membrane_loggers/console_native.ex
membraneframework/membrane-loggers
5dd04b64764680719096da633cbc5659d98ea90d
[ "Apache-2.0" ]
null
null
null
lib/membrane_loggers/console_native.ex
membraneframework/membrane-loggers
5dd04b64764680719096da633cbc5659d98ea90d
[ "Apache-2.0" ]
2
2018-06-07T09:04:26.000Z
2020-01-24T15:10:05.000Z
defmodule Membrane.Loggers.Console.Native do @moduledoc false use Bundlex.Loader, nif: :console defnif log_text(text) defnif log_number(text) defnif log_prefix(level, time, tags) defnif log_sufix() defnif log_binary(binary) end
22.090909
44
0.765432
ab46a4aaeb4a6370fbf0e0d88428170fa13d27e9
7,409
ex
Elixir
lib/credo/code/interpolation_helper.ex
rands0n/credo
c787a726ac7a521e21da5a098bd966af8862beb6
[ "MIT" ]
1
2021-12-27T01:30:05.000Z
2021-12-27T01:30:05.000Z
lib/credo/code/interpolation_helper.ex
rands0n/credo
c787a726ac7a521e21da5a098bd966af8862beb6
[ "MIT" ]
null
null
null
lib/credo/code/interpolation_helper.ex
rands0n/credo
c787a726ac7a521e21da5a098bd966af8862beb6
[ "MIT" ]
null
null
null
defmodule Credo.Code.InterpolationHelper do @moduledoc false alias Credo.Code.Token @doc false def replace_interpolations(source, char \\ " ", filename \\ "nofilename") when is_binary(source) do positions = interpolation_positions(source, filename) lines = String.split(source, "\n") positio...
26.747292
93
0.631664
ab46c783f4bf048098a10f986b1dfca64b870152
4,505
ex
Elixir
lib/parser.ex
starbuildr/norwegian_id_number
5cc4769d9e1f455574f8e463910b2a4f681aecdd
[ "MIT" ]
1
2019-02-07T14:35:55.000Z
2019-02-07T14:35:55.000Z
lib/parser.ex
starbuildr/norwegian_id_number
5cc4769d9e1f455574f8e463910b2a4f681aecdd
[ "MIT" ]
null
null
null
lib/parser.ex
starbuildr/norwegian_id_number
5cc4769d9e1f455574f8e463910b2a4f681aecdd
[ "MIT" ]
null
null
null
defmodule NorwegianIdNumber.Parser do @moduledoc """ Parser for Norwegian ID number to extract useful information. """ @spec execute(String.t) :: {:ok, %NorwegianIdNumber{}} | {:error, atom()} def execute( <<day::bytes-size(2)>> <> <<month::bytes-size(2)>> <> <<year::bytes-size(2)>> <> <<age_group::b...
34.128788
130
0.601332
ab472a5ce0a25db7742c726934f3799397648bcd
1,895
ex
Elixir
lib/bakeware/script.ex
kianmeng/bakeware
3c008a1c149ccf22cb3924126f2b8f0be522191f
[ "Apache-2.0" ]
null
null
null
lib/bakeware/script.ex
kianmeng/bakeware
3c008a1c149ccf22cb3924126f2b8f0be522191f
[ "Apache-2.0" ]
null
null
null
lib/bakeware/script.ex
kianmeng/bakeware
3c008a1c149ccf22cb3924126f2b8f0be522191f
[ "Apache-2.0" ]
null
null
null
defmodule Bakeware.Script do @moduledoc """ Helper to generate a script that takes command line arguments #{ File.read!("README.md") |> String.split(~r/<!-- SCRIPT !-->/) |> Enum.drop(1) |> hd() } """ @type args :: [String.t()] @callback main(args) :: :ok | :error | non_ne...
27.463768
96
0.576253
ab477d924c341b3836c1ba7b359cad5c0a26c7eb
860
exs
Elixir
test/test_helper.exs
workwithmax/live_phone
1a5482a9032735dd201f2468643145f1ee0a3588
[ "MIT" ]
null
null
null
test/test_helper.exs
workwithmax/live_phone
1a5482a9032735dd201f2468643145f1ee0a3588
[ "MIT" ]
14
2021-08-02T16:16:22.000Z
2022-03-25T16:14:20.000Z
test/test_helper.exs
workwithmax/live_phone
1a5482a9032735dd201f2468643145f1ee0a3588
[ "MIT" ]
null
null
null
# copy assets to priv/assets (not using webpack) # but we need assets for browser tests assets_dir = Path.join(File.cwd!(), "assets") priv_dir = Path.join(File.cwd!(), "priv/assets/js") phoenix_dir = Path.join(File.cwd!(), "deps/phoenix/priv/static") liveview_dir = Path.join(File.cwd!(), "deps/phoenix_live_view/priv/st...
43
94
0.70814
ab478b1450e5d012a90e58e065392616ca9b3ce6
519
ex
Elixir
elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/dynamo/filter.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
1
2021-06-16T14:06:34.000Z
2021-06-16T14:06:34.000Z
elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/dynamo/filter.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
null
null
null
elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/dynamo/filter.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
null
null
null
defmodule JSON.Dynamo.Filter do defmodule FilterResultObject do def run(nil), do: nil def run(result_object), do: JSON.encode!(result_object) end defmodule ProcessFilteredResponse do def run(nil, conn), do: conn def run(filtered_response, conn) do conn .resp_content_type("applicat...
21.625
59
0.703276
ab47ed1a09a03ec5786913f0dea76f8f810287fd
1,178
ex
Elixir
lib/paw_mon_web/router.ex
nullpilot/pawmon
00623bf1cd2ca126af385bf0c81e5fe3afca11a3
[ "MIT" ]
null
null
null
lib/paw_mon_web/router.ex
nullpilot/pawmon
00623bf1cd2ca126af385bf0c81e5fe3afca11a3
[ "MIT" ]
null
null
null
lib/paw_mon_web/router.ex
nullpilot/pawmon
00623bf1cd2ca126af385bf0c81e5fe3afca11a3
[ "MIT" ]
null
null
null
defmodule PawMonWeb.Router do use PawMonWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {PawMonWeb.LayoutView, :root} plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :a...
26.177778
70
0.698642
ab47f27744e910a082bc777b36814de15fd5ab02
1,285
ex
Elixir
line_ex_messaging_api/lib/line_ex/messaging_api/oauth2.ex
wingyplus/line_ex
73ae52c5c07998dac55f5f11aa9ce79d751b67d6
[ "MIT" ]
3
2021-07-27T21:29:43.000Z
2021-08-06T11:52:24.000Z
line_ex_messaging_api/lib/line_ex/messaging_api/oauth2.ex
wingyplus/line_ex
73ae52c5c07998dac55f5f11aa9ce79d751b67d6
[ "MIT" ]
7
2021-07-26T03:18:39.000Z
2021-10-11T11:16:49.000Z
line_ex_messaging_api/lib/line_ex/messaging_api/oauth2.ex
wingyplus/line_ex
73ae52c5c07998dac55f5f11aa9ce79d751b67d6
[ "MIT" ]
1
2021-07-29T16:13:47.000Z
2021-07-29T16:13:47.000Z
defmodule LineEx.MessagingApi.OAuth2 do @moduledoc """ OAuth2 client for LINE Messaging API. """ @doc """ Issue short-lived channel access token. Please note that the token that issued by this function cannot revoke by `revoke_channel_access_totken/3`. """ def issue_channel_access_token(channel_id, ...
25.7
83
0.673152
ab480c0358324d3aa0300bf0d9a243d158a53b6f
752
exs
Elixir
priv/repo/seeds.exs
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
6
2017-06-13T19:35:05.000Z
2020-05-05T06:50:34.000Z
priv/repo/seeds.exs
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
1
2021-09-27T11:58:11.000Z
2021-09-27T11:58:11.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs Enum.each(1..1_000, fn(i) -> random = NlbPipeline.Util.random_string(4) NlbPipeline.Repo.insert!(%NlbPipeline.Event{ type: NlbPipeline.Faker.random_type, product_id: NlbPipeline.Faker.random_product, account_no: FakerEl...
34.181818
56
0.769947
ab4819a79633fbf8594f5c9e5b305d61c29c2f66
632
exs
Elixir
test/decoding/separators_test.exs
blake-education/csv
7a9ace3b0f844f0832f96e2b04286ef1a6f4689c
[ "MIT" ]
464
2015-03-24T22:03:51.000Z
2022-03-31T06:24:40.000Z
test/decoding/separators_test.exs
blake-education/csv
7a9ace3b0f844f0832f96e2b04286ef1a6f4689c
[ "MIT" ]
104
2015-03-25T09:52:34.000Z
2022-03-11T11:22:47.000Z
test/decoding/separators_test.exs
blake-education/csv
7a9ace3b0f844f0832f96e2b04286ef1a6f4689c
[ "MIT" ]
93
2015-03-25T08:58:00.000Z
2021-12-08T19:44:45.000Z
defmodule DecodingTests.SeparatorsTest do use ExUnit.Case import TestSupport.StreamHelpers alias CSV.Decoding.Decoder test "parses strings separated by custom separators into a list of fields" do stream = ["a;be", "c;d"] |> to_stream result = Decoder.decode(stream, separator: ?;) |> Enum.to_list() ...
30.095238
83
0.666139
ab483fe9c198b156eb470ea00c800a9706d4a361
27,768
ex
Elixir
lib/ash/resource/dsl.ex
ChristianTovar/ash
66435322786c5d0b90a34051da969b68dcc8a045
[ "MIT" ]
null
null
null
lib/ash/resource/dsl.ex
ChristianTovar/ash
66435322786c5d0b90a34051da969b68dcc8a045
[ "MIT" ]
null
null
null
lib/ash/resource/dsl.ex
ChristianTovar/ash
66435322786c5d0b90a34051da969b68dcc8a045
[ "MIT" ]
null
null
null
defmodule Ash.Resource.Dsl do @attribute %Ash.Dsl.Entity{ name: :attribute, describe: """ Declares an attribute on the resource Type can be either a built in type (see `Ash.Type`) for more, or a module implementing the `Ash.Type` behaviour. *Strings are trimmed by default*. If you want to re...
28.105263
126
0.625396
ab4860a09b2bfe786402d775d7b177427722dc3c
669
exs
Elixir
config/test.exs
Goose-Vic/free_fall
84d95e33cbd0d6e06dd9170576726929e97b25ac
[ "MIT" ]
1
2021-11-17T21:16:30.000Z
2021-11-17T21:16:30.000Z
config/test.exs
Goose-Vic/free_fall
84d95e33cbd0d6e06dd9170576726929e97b25ac
[ "MIT" ]
null
null
null
config/test.exs
Goose-Vic/free_fall
84d95e33cbd0d6e06dd9170576726929e97b25ac
[ "MIT" ]
9
2021-07-29T23:36:54.000Z
2021-09-30T22:47:39.000Z
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :free_fall, FreeFall.Repo, username: "postgres", password: "postgres", database: "free_fall_test#{Syst...
29.086957
68
0.751868
ab48794c3f4973f1d9a9f24f22f922065e700639
85
exs
Elixir
test/test_helper.exs
RobertDober/ex_aequo
d02fea2115d21e8ca426c6ef082ae2663839fe93
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
RobertDober/ex_aequo
d02fea2115d21e8ca426c6ef082ae2663839fe93
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
RobertDober/ex_aequo
d02fea2115d21e8ca426c6ef082ae2663839fe93
[ "Apache-2.0" ]
null
null
null
ExUnit.start(timeout: 10_000 * 60) ExAequo.SysInterface.Mock.Expectations.start_link
28.333333
49
0.835294
ab4886c05a2d2d2d30d5a58331ec96e075f5765e
2,904
ex
Elixir
elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/parse/datetime/helpers.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
1
2017-10-16T03:00:50.000Z
2017-10-16T03:00:50.000Z
elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/parse/datetime/helpers.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
null
null
null
elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/parse/datetime/helpers.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
1
2019-11-23T12:09:14.000Z
2019-11-23T12:09:14.000Z
defmodule Timex.Parse.DateTime.Helpers do @moduledoc false import Combine.Parsers.Base import Combine.Parsers.Text, except: [integer: 0, integer: 1] alias Combine.Parsers.Text use Timex.Constants def months, do: @month_names def to_month(month) when is_integer(month), do: [month: month] def to_month_...
37.230769
93
0.581267
ab488b1542d2580c3f006c7c6286f3b51234281c
830
ex
Elixir
clients/elixir/generated/lib/swaggy_jenkins/model/favorite_impl.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/favorite_impl.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/favorite_impl.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule SwaggyJenkins.Model.FavoriteImpl do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"_class", :"_links", :"item" ] ...
25.151515
91
0.692771
ab48e4079ad7a781044217a4163a12430db7be72
10,868
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/service.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/service.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/service.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "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...
82.961832
730
0.733714
ab48fb47426dffaafc2ef3a4319ca200f8e10a45
3,704
ex
Elixir
lib/mix/tasks/vessel.compile.ex
zackehh/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
14
2016-12-06T03:55:52.000Z
2017-05-23T12:07:07.000Z
lib/mix/tasks/vessel.compile.ex
whitfin/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
3
2016-11-28T20:58:05.000Z
2017-05-31T23:51:52.000Z
lib/mix/tasks/vessel.compile.ex
zackehh/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
1
2020-03-03T21:07:44.000Z
2020-03-03T21:07:44.000Z
defmodule Mix.Tasks.Vessel.Compile do # mix task use Mix.Task # different Vessel build phases @phases [ :mapper, :combiner, :reducer ] # information for the mix command line @shortdoc "Compiles any designated Vessel binaries" @recursive true @moduledoc """ Compiles a set of Vessel binaries. The...
36.673267
82
0.682505
ab4916e30b374adf3116ca1973707ae974afdcce
2,115
exs
Elixir
test/bitcoin/base58_check_test.exs
anthdm/bitcoin-elixir
5ca9f8bf4e9b2b38527670e80568a85e0aa612c0
[ "Apache-2.0" ]
81
2017-04-20T17:42:59.000Z
2022-02-08T03:49:22.000Z
test/bitcoin/base58_check_test.exs
anthdm/bitcoin-elixir
5ca9f8bf4e9b2b38527670e80568a85e0aa612c0
[ "Apache-2.0" ]
2
2019-04-22T04:24:39.000Z
2019-04-26T07:03:59.000Z
test/bitcoin/base58_check_test.exs
anthdm/bitcoin-elixir
5ca9f8bf4e9b2b38527670e80568a85e0aa612c0
[ "Apache-2.0" ]
22
2017-08-16T14:19:44.000Z
2021-12-22T04:36:57.000Z
defmodule Bitcoin.Base58CheckTest do use ExUnit.Case alias Bitcoin.Base58Check @base_cases [ {"", ""}, {"000000f832fa3247cc", "11138bZfiH4P"}, {"deadbeef", "6h8cQN"}, {"00", "1"}, {"000111d38e5fc9071ffcd20b4a763cc9ae4f252bb4e48fd66a835e252ada93ff480d6dd43dc62a641155a5", "123456789ABCDEFGH...
24.593023
94
0.634043
ab492edb17e6fbffee9ac9e984c0663e194febdf
450
ex
Elixir
lib/live_sup_web/views/api/team_view.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup_web/views/api/team_view.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
lib/live_sup_web/views/api/team_view.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSupWeb.Api.TeamView do use LiveSupWeb, :view alias LiveSupWeb.Api.TeamView def render("index.json", %{teams: teams}) do %{data: render_many(teams, TeamView, "team.json")} end def render("show.json", %{team: team}) do %{data: render_one(team, TeamView, "team.json")} end def render(...
21.428571
54
0.633333
ab492fd37d0cab15140bfa778a557488a6697f55
1,440
ex
Elixir
test/support/test_marked_functions.ex
pyzlnar/ex_propriate
ad9b88f77815cd097f731e6f27cd44b3760c9591
[ "MIT" ]
null
null
null
test/support/test_marked_functions.ex
pyzlnar/ex_propriate
ad9b88f77815cd097f731e6f27cd44b3760c9591
[ "MIT" ]
1
2022-02-21T03:30:22.000Z
2022-02-21T03:30:22.000Z
test/support/test_marked_functions.ex
pyzlnar/ex_propriate
ad9b88f77815cd097f731e6f27cd44b3760c9591
[ "MIT" ]
null
null
null
defmodule ExPropriate.Test.MarkedFunctions do @moduledoc """ This module tests expropriating marked functions only. Only marked functions in here should be public. """ use ExPropriate, override_config_with: true def public_function, do: :am_public @expropriate true defp with_zero_arity, d...
19.726027
59
0.674306
ab49315acb40f123b16dd07283b09f45ff9a028b
430
exs
Elixir
2016/day17/test/day17_test.exs
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day17/test/day17_test.exs
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day17/test/day17_test.exs
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
defmodule Day17Test do use ExUnit.Case test "solves part one" do assert Day17.part_one("ihgpwlah") == "DDRRRD" assert Day17.part_one("kglvqrro") == "DDUDRLRRUDRD" assert Day17.part_one("ulqzkmiv") == "DRURDRUDDLLDLUURRDULRLDUUDDDRR" end test "solves part two" do assert Day17.part_two("ihgpwlah...
26.875
73
0.695349
ab49398240cdb9571a731ecaf3d8f0d3e6a7cb3d
1,174
ex
Elixir
api_sample/web/channels/user_socket.ex
saiidalhalawi/phoenix-ansible
d03843256c20b74fd69bb48f058825785dd7fea2
[ "Apache-2.0" ]
null
null
null
api_sample/web/channels/user_socket.ex
saiidalhalawi/phoenix-ansible
d03843256c20b74fd69bb48f058825785dd7fea2
[ "Apache-2.0" ]
null
null
null
api_sample/web/channels/user_socket.ex
saiidalhalawi/phoenix-ansible
d03843256c20b74fd69bb48f058825785dd7fea2
[ "Apache-2.0" ]
null
null
null
defmodule ApiSample.UserSocket do use Phoenix.Socket ## Channels # channel "rooms:*", ApiSample.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 au...
30.894737
83
0.702726
ab496834ddeb99cd4b9222ab3ae07ddfc56ec08f
269
ex
Elixir
lib/fragment/file_link.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
10
2018-01-12T18:52:53.000Z
2022-02-17T06:00:21.000Z
lib/fragment/file_link.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
12
2018-02-14T23:08:08.000Z
2021-11-22T15:55:41.000Z
lib/fragment/file_link.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
8
2018-05-08T14:02:21.000Z
2021-12-15T08:19:55.000Z
defmodule Prismic.Fragment.FileLink do defstruct [:url, :name, :kind, :size, :target] @type t :: %__MODULE__{ url: String.t(), name: String.t(), kind: String.t(), size: String.t(), target: String.t() } end
22.416667
48
0.513011