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
d5ee6ba24c8f4cec21513bd40eabcccdc6dfe264
413
exs
Elixir
mail-service/config/runtime.exs
open-chat-org/open-chat
5bc16e0513c789cc2ae32bf96d026271729f4a34
[ "MIT" ]
null
null
null
mail-service/config/runtime.exs
open-chat-org/open-chat
5bc16e0513c789cc2ae32bf96d026271729f4a34
[ "MIT" ]
null
null
null
mail-service/config/runtime.exs
open-chat-org/open-chat
5bc16e0513c789cc2ae32bf96d026271729f4a34
[ "MIT" ]
null
null
null
import Config access_key_id = System.get_env("AWSACCESSKEYID") || raise "Missing AWS access key id" secret_access_id = System.get_env("AWSSECRETACCESSID") || raise "Missing AWS secret access id" config :ex_aws, access_key_id: [{:system, access_key_id}, {:awscli, "default", 30}, :instance_role], secret_access_key: [...
41.3
94
0.738499
d5ee90cb8cfdcb47c00f9fe52ca1a42c384748f0
1,098
exs
Elixir
mix.exs
TrsNium/Indulgences
9492e49508551eb30c030016f5422475184e90f7
[ "MIT" ]
5
2019-09-09T08:51:25.000Z
2020-01-01T06:28:21.000Z
mix.exs
TrsNium/Indulgences
9492e49508551eb30c030016f5422475184e90f7
[ "MIT" ]
10
2020-05-19T20:28:34.000Z
2022-03-23T21:39:11.000Z
mix.exs
TrsNium/Indulgences
9492e49508551eb30c030016f5422475184e90f7
[ "MIT" ]
null
null
null
defmodule Indulgences.MixProject do use Mix.Project def project do [ app: :indulgences, version: "0.1.1", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), description: description(), name: "Indulgences", source_url: "...
22.408163
68
0.569217
d5eeb5ab7f2b727dccd46e952f4e1a031b27737e
1,260
ex
Elixir
lib/code_corps/model/stripe_external_account.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
lib/code_corps/model/stripe_external_account.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
lib/code_corps/model/stripe_external_account.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.StripeExternalAccount do use CodeCorps.Model @type t :: %__MODULE__{} schema "stripe_external_accounts" do field :id_from_stripe, :string, null: false field :account_id_from_stripe, :string, null: false field :account_holder_name, :string field :account_holder_type, :string ...
29.302326
101
0.726984
d5eeeaecde76b51127269da58daba0a54dc90363
105
exs
Elixir
Elixir/BKKCrypt.exs
vault1337/BKKCrypt
fac73ac7298a056022913911b831cf95b423b78d
[ "MIT" ]
null
null
null
Elixir/BKKCrypt.exs
vault1337/BKKCrypt
fac73ac7298a056022913911b831cf95b423b78d
[ "MIT" ]
null
null
null
Elixir/BKKCrypt.exs
vault1337/BKKCrypt
fac73ac7298a056022913911b831cf95b423b78d
[ "MIT" ]
null
null
null
defmodule BKKCrypt do def encrypt(password) do password end end IO.puts BKKCrypt.encrypt('alma')
15
32
0.742857
d5ef43900941be56b379c9f48e268e09dee98599
251
ex
Elixir
lib/sanbase.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
lib/sanbase.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
lib/sanbase.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule Sanbase do @moduledoc """ Sanbase keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
25.1
66
0.752988
d5ef4773d8fb7cb93465ce0860122677553cfd0a
249
ex
Elixir
elixir/lib/elixer.ex
VitorFirmino/NLW-7
16d3319c6bcf2308ef6ea5fdf8257be78887a190
[ "MIT" ]
null
null
null
elixir/lib/elixer.ex
VitorFirmino/NLW-7
16d3319c6bcf2308ef6ea5fdf8257be78887a190
[ "MIT" ]
null
null
null
elixir/lib/elixer.ex
VitorFirmino/NLW-7
16d3319c6bcf2308ef6ea5fdf8257be78887a190
[ "MIT" ]
null
null
null
defmodule Elixer do @moduledoc """ Elixer keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.9
66
0.751004
d5ef47edbe02503af73aa7d74851997b584762a5
249
ex
Elixir
lib/kamleague_web/controllers/statistics_controller.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
null
null
null
lib/kamleague_web/controllers/statistics_controller.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
2
2021-11-04T21:05:24.000Z
2021-11-04T21:51:48.000Z
lib/kamleague_web/controllers/statistics_controller.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
1
2021-11-04T18:40:26.000Z
2021-11-04T18:40:26.000Z
defmodule KamleagueWeb.StatisticsController do use KamleagueWeb, :controller def games(conn, params) do page = Kamleague.Leagues.list_games(params) render(conn, "games.html", games: page.entries, page: page ) end end
19.153846
47
0.694779
d5ef4f2a5d2e33442a5a6befacd9af5ce9cdfc5d
203
ex
Elixir
lophi-disk-introspection-server/debian/lophi-disk-introspection-server.cron.d.ex
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
28
2016-02-26T00:54:16.000Z
2022-02-24T12:21:15.000Z
lophi-disk-introspection-server/debian/lophi-disk-introspection-server.cron.d.ex
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
2
2016-03-15T21:49:09.000Z
2016-07-12T22:11:39.000Z
lophi-disk-introspection-server/debian/lophi-disk-introspection-server.cron.d.ex
patriotemeritus/LO-PHI
8f92c4efb94061cb08b7e9b0ff96346565c12653
[ "BSD-3-Clause" ]
9
2016-06-08T14:42:28.000Z
2021-11-11T03:51:34.000Z
# # Regular cron jobs for the lophi-disk-introspection-server package # 0 4 * * * root [ -x /usr/bin/lophi-disk-introspection-server_maintenance ] && /usr/bin/lophi-disk-introspection-server_maintenance
40.6
130
0.763547
d5ef5fdf069b0a3fbdce386d666e1b898850ac13
3,242
ex
Elixir
lib/prism/prism.ex
tpoulsen/focus
0933da11c60357e706c2a4e9695078e08bb48319
[ "BSD-2-Clause" ]
247
2017-02-21T15:16:00.000Z
2021-06-27T15:08:44.000Z
lib/prism/prism.ex
smpoulsen/focus
0933da11c60357e706c2a4e9695078e08bb48319
[ "BSD-2-Clause" ]
10
2017-02-19T03:52:19.000Z
2019-12-06T22:11:38.000Z
lib/prism/prism.ex
smpoulsen/focus
0933da11c60357e706c2a4e9695078e08bb48319
[ "BSD-2-Clause" ]
10
2017-02-20T22:52:04.000Z
2021-06-14T17:49:23.000Z
defmodule Prism do alias Focus.Types @moduledoc """ Prisms are like lenses, but used when the view focused on may not exist. This includes sum types; although not backed by an explicit Maybe type, the [{:ok, any} | {:error}] convention is explicitly supported as a value that a prism can focus on. """ ...
24.19403
92
0.527761
d5ef601f48c56aac9d4dfccfa34863f929932487
486
exs
Elixir
backend/test/checkers_test.exs
mattiaslundberg/uptime
cef2657e5b5a4a851c088947ee9050c3b31dabdf
[ "MIT" ]
null
null
null
backend/test/checkers_test.exs
mattiaslundberg/uptime
cef2657e5b5a4a851c088947ee9050c3b31dabdf
[ "MIT" ]
null
null
null
backend/test/checkers_test.exs
mattiaslundberg/uptime
cef2657e5b5a4a851c088947ee9050c3b31dabdf
[ "MIT" ]
null
null
null
defmodule CheckersTest do use ExUnit.Case, async: false alias Uptime.{Checkers, Check} describe "add_check/1" do test "add check and get pid" do check = %Check{url: "https://google.com"} |> Checkers.add_check() assert Process.alive?(check.pid) end end describe "remove_c...
19.44
41
0.621399
d5ef68e5c31a8394f5eda695ef3ec92e0e978fce
1,065
ex
Elixir
bidding_poc/lib/bidding_poc_web/plugs/verify_auth_token.ex
KeenMate/phoenix-websocket-auction
412148ad5621b511c0690b9395f4b6c9ce3a3352
[ "MIT" ]
null
null
null
bidding_poc/lib/bidding_poc_web/plugs/verify_auth_token.ex
KeenMate/phoenix-websocket-auction
412148ad5621b511c0690b9395f4b6c9ce3a3352
[ "MIT" ]
null
null
null
bidding_poc/lib/bidding_poc_web/plugs/verify_auth_token.ex
KeenMate/phoenix-websocket-auction
412148ad5621b511c0690b9395f4b6c9ce3a3352
[ "MIT" ]
null
null
null
defmodule BiddingPocWeb.Plugs.VerifyAuthToken do import Plug.Conn @auth_token_max_age 86400 alias Phoenix.Token def init(opts) do opts end def call(conn, opts) do max_age = Keyword.get(opts, :max_age, @auth_token_max_age) token = get_token(conn) if token do verify(conn, token, max...
19.722222
64
0.600939
d5ef8054d8e9e23c1604d46eb815bbed6e1d93d9
79
exs
Elixir
phoenix/test/test_helper.exs
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/test/test_helper.exs
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/test/test_helper.exs
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(MehrSchulferien.Repo, :manual)
15.8
61
0.78481
d5efcf7a1bb6ac8f9d05ebcc0f1ccfea52007dec
919
exs
Elixir
test/lib/plaid/transactions_test.exs
mrhooray/plaid-elixir
3fe1a3794c49cfa50af2b372990394f14c5b8054
[ "MIT" ]
null
null
null
test/lib/plaid/transactions_test.exs
mrhooray/plaid-elixir
3fe1a3794c49cfa50af2b372990394f14c5b8054
[ "MIT" ]
null
null
null
test/lib/plaid/transactions_test.exs
mrhooray/plaid-elixir
3fe1a3794c49cfa50af2b372990394f14c5b8054
[ "MIT" ]
null
null
null
defmodule Plaid.TransactionsTest do use ExUnit.Case import Plaid.Factory setup do bypass = Bypass.open() Application.put_env(:plaid, :root_uri, "http://localhost:#{bypass.port}/") {:ok, bypass: bypass} end describe "transactions" do test "transactions/1 requests POST and returns Plaid.Trans...
27.029412
92
0.602829
d5efdd9aa720f39d24ed77cc4047ab05212f11f3
11,509
ex
Elixir
lib/beats/display.ex
mtrudel/beats
6edf532bc02f2625190cbcb7f99a09fc6f58c5fd
[ "MIT" ]
37
2018-05-19T17:45:46.000Z
2022-01-18T11:03:36.000Z
lib/beats/display.ex
mtrudel/beats
6edf532bc02f2625190cbcb7f99a09fc6f58c5fd
[ "MIT" ]
1
2020-10-08T09:53:15.000Z
2020-10-08T09:53:15.000Z
lib/beats/display.ex
mtrudel/beats
6edf532bc02f2625190cbcb7f99a09fc6f58c5fd
[ "MIT" ]
2
2018-11-20T18:16:08.000Z
2021-02-09T15:14:28.000Z
defmodule Beats.Display do use GenServer # Client API def start_link(arg) do GenServer.start_link(__MODULE__, arg, name: __MODULE__) end def puts(string) do GenServer.call(__MODULE__, {:puts, string}) end def set_bpm_goal(bpm) do GenServer.call(__MODULE__, {:set_bpm_goal, bpm}) end de...
26.156818
87
0.599444
d5eff9f18efdc8fda6ac4a7b95b9ad865720b6da
141
ex
Elixir
lib/blogger_web/controllers/page_controller.ex
andrewbloom37/blog-app
a5e49a88340d172cfee80adc806728b23900ec11
[ "MIT" ]
null
null
null
lib/blogger_web/controllers/page_controller.ex
andrewbloom37/blog-app
a5e49a88340d172cfee80adc806728b23900ec11
[ "MIT" ]
3
2020-07-17T06:58:11.000Z
2021-05-09T03:51:05.000Z
lib/blogger_web/controllers/page_controller.ex
andrewbloom37/blog-app
a5e49a88340d172cfee80adc806728b23900ec11
[ "MIT" ]
null
null
null
defmodule BloggerWeb.PageController do use BloggerWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.625
38
0.737589
d5f035cdbdb3cc6319a396fcbc8143f3f95dbada
336
ex
Elixir
lib/supabase_surface/components/icons/icon_file.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_file.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_file.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.IconFile do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.file(width: icon_size, height: icon_size)} </IconContainer> ...
22.4
62
0.714286
d5f04cc1eabd455518c218fbdd8335a423fdadf2
1,962
exs
Elixir
mix.exs
kipcole9/cldr_lists
abe2b3744a0eaafdf4b0664c536edca8a61b521b
[ "Apache-2.0" ]
null
null
null
mix.exs
kipcole9/cldr_lists
abe2b3744a0eaafdf4b0664c536edca8a61b521b
[ "Apache-2.0" ]
1
2018-11-15T16:20:06.000Z
2018-11-24T00:02:57.000Z
mix.exs
kipcole9/cldr_lists
abe2b3744a0eaafdf4b0664c536edca8a61b521b
[ "Apache-2.0" ]
2
2017-10-05T11:35:37.000Z
2018-11-15T16:56:01.000Z
defmodule Cldr.Lists.Mixfile do use Mix.Project @version "2.10.0" def project do [ app: :ex_cldr_lists, version: @version, docs: docs(), elixir: "~> 1.10", name: "Cldr Lists", source_url: "https://github.com/elixir-cldr/cldr_lists", description: description(), ...
23.638554
95
0.568807
d5f077fdb5a4b79d792d9a92c3f0e7299b8892e8
400
ex
Elixir
lib/jeopardy/fsm/pre_jeopardy/introducing_roles.ex
ryoung786/jeopardy
5558fc49013c5a22e556a0040cbc116aa8f63912
[ "MIT" ]
null
null
null
lib/jeopardy/fsm/pre_jeopardy/introducing_roles.ex
ryoung786/jeopardy
5558fc49013c5a22e556a0040cbc116aa8f63912
[ "MIT" ]
32
2020-06-08T14:50:46.000Z
2021-01-01T05:40:44.000Z
lib/jeopardy/fsm/pre_jeopardy/introducing_roles.ex
ryoung786/jeopardy
5558fc49013c5a22e556a0040cbc116aa8f63912
[ "MIT" ]
null
null
null
defmodule Jeopardy.FSM.PreJeopardy.IntroducingRoles do use Jeopardy.FSM alias Jeopardy.Repo alias Jeopardy.Games.Game import Ecto.Query def handle(:next, _, %State{game: game}) do from(g in Game, where: g.id == ^game.id) |> Repo.update_all_ts(set: [status: "jeopardy", round_status: "revealing_board"]...
26.666667
85
0.7075
d5f08bca093b323acf608858b4ccb2bfec50e36b
91
ex
Elixir
lib/balalaika_bear/widgets.ex
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
5
2018-04-30T09:48:17.000Z
2020-05-01T10:20:15.000Z
lib/balalaika_bear/widgets.ex
BalalaikaIndustries/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
7
2018-04-28T06:39:10.000Z
2018-04-28T07:31:59.000Z
lib/balalaika_bear/widgets.ex
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
2
2018-04-27T19:42:04.000Z
2020-05-01T10:20:02.000Z
defmodule BalalaikaBear.Widgets do use BalalaikaBear.Macro.API, namespace: "widgets" end
22.75
51
0.813187
d5f09e4473e4869765cb846e9e3df5a3812708e3
4,055
ex
Elixir
lib/ironman/checks/git_hooks_config.ex
TheEndIsNear/ironman
769e6777e93759810b168e7b6819ef7cb9ab5f80
[ "MIT" ]
null
null
null
lib/ironman/checks/git_hooks_config.ex
TheEndIsNear/ironman
769e6777e93759810b168e7b6819ef7cb9ab5f80
[ "MIT" ]
null
null
null
lib/ironman/checks/git_hooks_config.ex
TheEndIsNear/ironman
769e6777e93759810b168e7b6819ef7cb9ab5f80
[ "MIT" ]
null
null
null
defmodule Ironman.Checks.GitHooksConfig do @moduledoc false alias Ironman.{Config, Utils} alias Ironman.Utils.Deps alias Ironman.Utils.File, as: IFile @spec run(Config.t()) :: {:error, any()} | {:no | :yes | :up_to_date | :skip, Config.t()} def run(%Config{} = config) do case Deps.get_configured_versio...
25.186335
117
0.587176
d5f0ade99ed316fb533feeac399a21f9c7cc60b7
138
exs
Elixir
config/test.exs
maxbeizer/hedwig_trivia
9087aeb12d9910633e6b7975c7ef7aa3130a1bd6
[ "MIT" ]
null
null
null
config/test.exs
maxbeizer/hedwig_trivia
9087aeb12d9910633e6b7975c7ef7aa3130a1bd6
[ "MIT" ]
2
2019-12-04T20:59:47.000Z
2019-12-04T21:00:14.000Z
config/test.exs
maxbeizer/hedwig_trivia
9087aeb12d9910633e6b7975c7ef7aa3130a1bd6
[ "MIT" ]
2
2019-12-04T16:21:06.000Z
2019-12-25T03:10:33.000Z
use Mix.Config config :logger, level: :error config :hedwig_trivia, http: HedwigTrivia.Fetchers.HTTPMock, fetcher: HedwigTriviaMock
17.25
39
0.782609
d5f0b938f723fe3b6e47d4ea6c5a1f9f593a6810
5,176
exs
Elixir
test/strategy/google_test.exs
chriserik/ueberauth_google
3325ec0f53611d22e4f3ee9a8b94b61dc9f27f16
[ "MIT" ]
null
null
null
test/strategy/google_test.exs
chriserik/ueberauth_google
3325ec0f53611d22e4f3ee9a8b94b61dc9f27f16
[ "MIT" ]
null
null
null
test/strategy/google_test.exs
chriserik/ueberauth_google
3325ec0f53611d22e4f3ee9a8b94b61dc9f27f16
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.GoogleTest do use ExUnit.Case, async: true use Plug.Test import Mock import Plug.Conn setup_with_mocks([ {OAuth2.Client, [:passthrough], [ get_token: &oauth2_get_token/2, get: &oauth2_get/4 ]} ]) do :ok end def set_options(routes, conn, opt...
42.42623
117
0.66364
d5f0fc6186a4b1fc845ff9c3e3f88fb35563b0a8
690
ex
Elixir
patches/CMakeLists.txt.ex
vislearn/tkr-graphmatching
2a593bfc86a6d4e491795c857092cba256220532
[ "Unlicense" ]
null
null
null
patches/CMakeLists.txt.ex
vislearn/tkr-graphmatching
2a593bfc86a6d4e491795c857092cba256220532
[ "Unlicense" ]
null
null
null
patches/CMakeLists.txt.ex
vislearn/tkr-graphmatching
2a593bfc86a6d4e491795c857092cba256220532
[ "Unlicense" ]
null
null
null
0a cmake_minimum_required(VERSION 3.13) cmake_policy(VERSION 3.13) project(tkr-graphmatching) include(GNUInstallDirs) set(SRC_FILES GraphMatching.cpp SubgradientDecomposition.cpp MinCost/MinCost.cpp QPBO/QPBO.cpp QPBO/QPBO_extra.cpp QPBO/QPBO_maxflow.cpp QPBO/QPBO_postprocessing.cpp) add_library(tkrgm_shared ...
24.642857
80
0.84058
d5f10d022bf2d2675907be70945ab7100e3054e1
2,184
exs
Elixir
test/rem/commands/wordle/resume_command_test.exs
pyzlnar/rem-bot
100b71949026eb191c1ebf80d64270406f237958
[ "MIT" ]
4
2022-02-20T13:33:48.000Z
2022-03-31T00:48:52.000Z
test/rem/commands/wordle/resume_command_test.exs
pyzlnar/rem-bot
100b71949026eb191c1ebf80d64270406f237958
[ "MIT" ]
1
2022-02-22T05:42:05.000Z
2022-02-22T05:42:05.000Z
test/rem/commands/wordle/resume_command_test.exs
pyzlnar/rem-bot
100b71949026eb191c1ebf80d64270406f237958
[ "MIT" ]
null
null
null
defmodule Rem.Commands.Wordle.ResumeCommandTest do use Rem.DataCase, async: true use Injector, inject: [Rem.Discord.Api] alias Rem.Sessions.Server alias Rem.Commands.Wordle.ResumeCommand setup do user_id = 123_456_790 message = %{author: %{id: user_id}} insert(:wordle_solution, number: 100_000)...
30.760563
112
0.64011
d5f12cc8a850c9933628e9e52199c3b5d216a2fa
1,446
exs
Elixir
mix.exs
Carburetor/rill
6ba477373cff28f56fbead9a316166d994da67d3
[ "MIT" ]
null
null
null
mix.exs
Carburetor/rill
6ba477373cff28f56fbead9a316166d994da67d3
[ "MIT" ]
null
null
null
mix.exs
Carburetor/rill
6ba477373cff28f56fbead9a316166d994da67d3
[ "MIT" ]
null
null
null
defmodule Rill.MixProject do use Mix.Project @version "VERSION" |> File.read!() |> String.trim() def project do [ app: :rill, version: @version, elixir: "~> 1.7", deps: deps(), aliases: aliases(), elixirc_paths: elixirc_paths(Mix.env()), test_paths: ["test/automated...
22.59375
65
0.549793
d5f142c7f925315c75678f514f946a89cec30ab6
4,811
ex
Elixir
lib/ex_sdp/parser.ex
ccbill303/ex_sdp
ec99cecff1b297566248b8cd36b898668b4c89e9
[ "Apache-2.0" ]
4
2021-01-15T06:42:03.000Z
2021-11-26T14:10:52.000Z
lib/ex_sdp/parser.ex
ccbill303/ex_sdp
ec99cecff1b297566248b8cd36b898668b4c89e9
[ "Apache-2.0" ]
4
2021-02-19T11:10:20.000Z
2022-03-15T09:42:13.000Z
lib/ex_sdp/parser.ex
ccbill303/ex_sdp
ec99cecff1b297566248b8cd36b898668b4c89e9
[ "Apache-2.0" ]
2
2021-03-17T21:50:02.000Z
2021-04-05T19:45:38.000Z
defmodule ExSDP.Parser do @moduledoc """ This module is responsible for parsing SDP multimedia session. """ use Bunch.Access require Logger alias ExSDP alias ExSDP.{ Attribute, Bandwidth, ConnectionData, Encryption, Media, Origin, RepeatTimes, Timezone, Timing } ...
26.727778
95
0.613178
d5f16697afa2cb63a783fb66ee92bd04147251a0
409
ex
Elixir
lib/validation/rules/credit_card/amex.ex
adolfont/validation
6288f5a5745f645c90b6f6241e14f0088c218f5b
[ "MIT" ]
null
null
null
lib/validation/rules/credit_card/amex.ex
adolfont/validation
6288f5a5745f645c90b6f6241e14f0088c218f5b
[ "MIT" ]
null
null
null
lib/validation/rules/credit_card/amex.ex
adolfont/validation
6288f5a5745f645c90b6f6241e14f0088c218f5b
[ "MIT" ]
null
null
null
defmodule Validation.Rules.CreditCard.Amex do @moduledoc false alias Validation.Rules.CreditCard @spec validate?(String.t()) :: boolean def validate?(input) when is_binary(input) do # only numbers input = Regex.replace(~r/\D/, input, "") CreditCard.validate?(input) and amex_validation(input) end...
24.058824
58
0.696822
d5f1ac5a370cacedb0c14c747cd727007acf5d05
2,880
ex
Elixir
lib/example_files/fileglobs.ex
njonsson/example_files
0e09ed40378336e0f1223ce002470430535c385f
[ "MIT" ]
3
2016-01-16T20:44:49.000Z
2017-11-10T06:33:14.000Z
lib/example_files/fileglobs.ex
njonsson/example_files
0e09ed40378336e0f1223ce002470430535c385f
[ "MIT" ]
1
2017-01-10T04:20:08.000Z
2017-01-10T04:20:08.000Z
lib/example_files/fileglobs.ex
njonsson/example_files
0e09ed40378336e0f1223ce002470430535c385f
[ "MIT" ]
null
null
null
defmodule ExampleFiles.Fileglobs do @moduledoc """ Converts filespecs into example-file fileglobs. """ @spec parse([binary]) :: [binary] @doc """ Converts the specified filespec or `List` of zero or more filespecs into a `List` of one or more fileglob expressions. The resultant fileglob expressions are...
36.923077
127
0.622222
d5f2105eb9b90a3977212df74c1efa87926cafd3
6,929
ex
Elixir
lib/news_ingester/a_a_crawler.ex
nodgroup/news_ingester
c476392ec63f7111c1a73d0eca0cae33af18bebb
[ "MIT" ]
null
null
null
lib/news_ingester/a_a_crawler.ex
nodgroup/news_ingester
c476392ec63f7111c1a73d0eca0cae33af18bebb
[ "MIT" ]
null
null
null
lib/news_ingester/a_a_crawler.ex
nodgroup/news_ingester
c476392ec63f7111c1a73d0eca0cae33af18bebb
[ "MIT" ]
null
null
null
defmodule NewsIngester.AACrawler do use GenServer require Logger @moduledoc false ## Client API @doc """ Crawler logic """ def crawl(dir_path) do # initializes gcs connection {:ok, token} = Goth.Token.for_scope("https://www.googleapis.com/auth/cloud-platform") gcs_conn = GoogleApi.Storage....
26.446565
96
0.570645
d5f23f65afcb2c524289c585d2c95388fa8240d8
14,659
exs
Elixir
integration_test/cases/type.exs
mfrasca/ecto
e5d9d4a05956cfcf65735916bc2478b791acf541
[ "Apache-2.0" ]
null
null
null
integration_test/cases/type.exs
mfrasca/ecto
e5d9d4a05956cfcf65735916bc2478b791acf541
[ "Apache-2.0" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
integration_test/cases/type.exs
mfrasca/ecto
e5d9d4a05956cfcf65735916bc2478b791acf541
[ "Apache-2.0" ]
null
null
null
Code.require_file "../support/types.exs", __DIR__ defmodule Ecto.Integration.TypeTest do use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true) alias Ecto.Integration.{Custom, Item, ItemColor, Order, Post, User, Tag, Usec} alias Ecto.Integration.TestRepo import Ecto.Query...
39.618919
139
0.630534
d5f247017862d35b52ce4934b8097c9f9b8c7bff
19,803
ex
Elixir
lib/elixir/lib/path.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/path.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/elixir/lib/path.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
null
null
null
defmodule Path do @moduledoc """ This module provides conveniences for manipulating or retrieving file system paths. The functions in this module may receive a chardata as argument (i.e. a string or a list of characters / string) and will always return a string (encoded in UTF-8). The majority of the fu...
27.54242
99
0.623087
d5f27e6beed6d4838ed5e40664fbe2e2466242ed
1,449
exs
Elixir
config/releases.exs
TDogVoid/health_demo
4e9fbf79c32145cf563cdbdb3ea4a0f594a87053
[ "MIT" ]
null
null
null
config/releases.exs
TDogVoid/health_demo
4e9fbf79c32145cf563cdbdb3ea4a0f594a87053
[ "MIT" ]
2
2021-03-10T04:15:17.000Z
2021-05-10T23:54:35.000Z
config/releases.exs
TDogVoid/health_demo
4e9fbf79c32145cf563cdbdb3ea4a0f594a87053
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. import Config database_url = System.get_env("DATABASE_URL") || raise """ envir...
28.98
76
0.717046
d5f28db5ae0401e9f5d8c16887088367b94a3618
872
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.296296
74
0.755734
d5f29d29df4e68f6501c03b3e4835c92aeb71de9
1,943
ex
Elixir
lib/contentful/include_resolver.ex
ramonsnir/contentful.ex
c8c31a3dd362c34a97de39a4b642595670316234
[ "MIT" ]
null
null
null
lib/contentful/include_resolver.ex
ramonsnir/contentful.ex
c8c31a3dd362c34a97de39a4b642595670316234
[ "MIT" ]
null
null
null
lib/contentful/include_resolver.ex
ramonsnir/contentful.ex
c8c31a3dd362c34a97de39a4b642595670316234
[ "MIT" ]
null
null
null
defmodule Contentful.IncludeResolver do @moduledoc """ This module contains functions to resolve the includes. Later, this module will also have the responsability to make new contentful API request to satisfy the missing link to satisfy the current missing links if they are not part of the includes. """ ...
26.616438
69
0.624807
d5f2aeec67251a20fa1ece7bce26db5ec88b7675
555
ex
Elixir
lib/class_roll/service/member.ex
mazurka/example-class-roll
50e55eca6e0e3dce5214d1bb9b03a0421c0ed879
[ "MIT" ]
null
null
null
lib/class_roll/service/member.ex
mazurka/example-class-roll
50e55eca6e0e3dce5214d1bb9b03a0421c0ed879
[ "MIT" ]
null
null
null
lib/class_roll/service/member.ex
mazurka/example-class-roll
50e55eca6e0e3dce5214d1bb9b03a0421c0ed879
[ "MIT" ]
null
null
null
defmodule ClassRoll.Service.Member do def list do {:ok, 1..16 |> expand} end def list_by_class(class) do {:ok, 1..15 |> expand} end def list_by_class(class, date) do {:ok, 1..15 |> expand} end def get(member_id) do {:ok, %{id: member_id, name: "brandon"}} end def list_outside_of_cl...
16.818182
46
0.585586
d5f2b28c71abd038f81435e7467ad9574bd62e14
9,421
ex
Elixir
lib/iex/lib/iex/info.ex
thomascchen/elixir
d19a92bbf4cb3743ce726a87e584a1741b59f5b0
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/info.ex
thomascchen/elixir
d19a92bbf4cb3743ce726a87e584a1741b59f5b0
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/info.ex
thomascchen/elixir
d19a92bbf4cb3743ce726a87e584a1741b59f5b0
[ "Apache-2.0" ]
null
null
null
defprotocol IEx.Info do @fallback_to_any true @spec info(term) :: [{atom, String.t}] def info(term) end defimpl IEx.Info, for: Tuple do def info(_tuple) do ["Data type": "Tuple", "Reference modules": "Tuple"] end end defimpl IEx.Info, for: Atom do def info(atom) do specific_info = cond...
27.95549
113
0.624987
d5f2dbf1d324e9b0de304c9adea4640e1c48fd62
3,303
ex
Elixir
lib/cforum_web/controllers/moderation_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum_web/controllers/moderation_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum_web/controllers/moderation_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule CforumWeb.ModerationController do use CforumWeb, :controller use Cforum.Constants alias Cforum.Threads.Thread alias Cforum.Messages.Message alias Cforum.ModerationQueue alias Cforum.ModerationQueue.ModerationQueueEntry alias Cforum.Abilities alias Cforum.Helpers def index(conn, params) ...
31.759615
109
0.68786
d5f2de45535a572a5be2c0d7a81f1dab01380fb6
45,904
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
Amuhar/Elixir
7e72cdf2407ea6706c9767f7add76dd04000a6c3
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
Amuhar/Elixir
7e72cdf2407ea6706c9767f7add76dd04000a6c3
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
Amuhar/Elixir
7e72cdf2407ea6706c9767f7add76dd04000a6c3
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true import ExUnit.CaptureIO defmacro hello do quote location: :keep do def hello, do: :world end end test "no optional arguments in fn" do assert_eval_raise CompileError, ...
35.612102
155
0.532394
d5f2ea919cd0d27ec2aceeba95ea4755c46e9cf6
72
exs
Elixir
test/test_helper.exs
kadmohardy/calculator
671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e
[ "MIT" ]
null
null
null
test/test_helper.exs
kadmohardy/calculator
671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e
[ "MIT" ]
null
null
null
test/test_helper.exs
kadmohardy/calculator
671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Calculator.Repo, :manual)
24
56
0.791667
d5f2f58c9d61f38945aa7cdf0d64dccc1d3a4eab
406
ex
Elixir
lib/naira/filter.ex
collaboration-planners/naira
c24045c496f780854181b6ed839385d89c6e7fa2
[ "Apache-2.0" ]
3
2015-01-11T20:15:28.000Z
2016-12-09T04:22:52.000Z
lib/naira/filter.ex
collaboration-planners/naira
c24045c496f780854181b6ed839385d89c6e7fa2
[ "Apache-2.0" ]
null
null
null
lib/naira/filter.ex
collaboration-planners/naira
c24045c496f780854181b6ed839385d89c6e7fa2
[ "Apache-2.0" ]
null
null
null
defmodule Naira.Filter do use Behaviour use DB @doc "The filter's name" defcallback type() :: String.t @doc "Whether an event report passes the filter" defcallback passes?(filter_options :: %FilterOptions{}, event_report :: %EventReport{}, user :: %User{}) :: boolean def mod_from_type(type) do case type ...
20.3
117
0.684729
d5f34900615c4b77db7831cdee0d79aeb3d00dee
110
ex
Elixir
lib/types/delete_object_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/types/delete_object_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/types/delete_object_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Messages.DeleteObjectResponse do @derive [Poison.Encoder] defstruct status: 0 end
22
56
0.809091
d5f357b941d7fcbc49dbf9e62d7fc38a65cec6ee
1,420
ex
Elixir
lib/mix/tasks/server.ex
brightroll/dynamo
9fa032c514fa7de6985115fdc1804a780643517c
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/server.ex
brightroll/dynamo
9fa032c514fa7de6985115fdc1804a780643517c
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/server.ex
brightroll/dynamo
9fa032c514fa7de6985115fdc1804a780643517c
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Server do use Mix.Task @shortdoc "Run all Dynamos in a web server" @recursive true @moduledoc """ Runs all registered Dynamos in their servers. ## Command line options * `-h`, `--host` - bind to the given ip * `-p`, `--port` - the port to listen to """ def run(args) do ...
25.357143
94
0.635915
d5f364b7763f7481ddb9763747004030f9b74d13
1,769
exs
Elixir
sample_server/config/dev.exs
mjaric/finix
fb0dedfdfdd46927d3df239c7c45d7fe92c441c4
[ "Apache-2.0" ]
31
2019-03-26T15:26:21.000Z
2022-02-16T14:33:13.000Z
sample_server/config/dev.exs
mjaric/finix
fb0dedfdfdd46927d3df239c7c45d7fe92c441c4
[ "Apache-2.0" ]
3
2019-04-05T19:45:09.000Z
2019-10-25T01:48:57.000Z
sample_server/config/dev.exs
mjaric/finix
fb0dedfdfdd46927d3df239c7c45d7fe92c441c4
[ "Apache-2.0" ]
5
2019-03-27T14:16:28.000Z
2022-02-18T12:01:46.000Z
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :sample_server, SampleServerWeb.Endpoint, http...
35.38
170
0.707179
d5f3767b2d867774355546010a087d51d8aeb972
10,133
exs
Elixir
lib/mix/test/mix/tasks/compile.elixir_test.exs
Zanadar/elixir
ef967b3e07f189b9cae37d5b12bd7258619b3e15
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile.elixir_test.exs
Zanadar/elixir
ef967b3e07f189b9cae37d5b12bd7258619b3e15
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile.elixir_test.exs
Zanadar/elixir
ef967b3e07f189b9cae37d5b12bd7258619b3e15
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.Compile.ElixirTest do use MixTest.Case setup do Mix.Project.push MixTest.Case.Sample :ok end @elixir_otp_version {System.version, :erlang.system_info(:otp_release)} test "compiles a project without per environment build" do ...
33.776667
135
0.621534
d5f37acffeb320e238bd7b6cfa599b608f2b4724
669
exs
Elixir
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/test/$PROJECT_NAME$_api/accounts/query_test.exs
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
54
2018-01-24T00:22:57.000Z
2019-01-15T20:03:52.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/test/$PROJECT_NAME$_api/accounts/query_test.exs
infinitered/mithril
0bbad29f86c63d9a827dcaaf6fed78a176ab90d7
[ "MIT" ]
3
2018-02-05T18:00:39.000Z
2018-05-04T00:05:20.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/test/$PROJECT_NAME$_api/accounts/query_test.exs
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
3
2019-07-12T11:16:42.000Z
2020-06-08T15:03:36.000Z
defmodule <%= @project_name_camel_case %>API.Accounts.QueryTest do use <%= @project_name_camel_case %>API.DataCase import <%= @project_name_camel_case %>.AccountsFactory, only: [ create_user: 1, create_token: 1 ] describe "current_user" do setup [:create_user, :create_token] test "r...
30.409091
100
0.669656
d5f3bcd8ec2f0d5087f8375dd78c9da51cac4916
632
ex
Elixir
lib/jalka2021/football/playoff_result.ex
kriips/jalka2021
f4d968e20cae116fd4056bff2f937cd036421977
[ "MIT" ]
null
null
null
lib/jalka2021/football/playoff_result.ex
kriips/jalka2021
f4d968e20cae116fd4056bff2f937cd036421977
[ "MIT" ]
null
null
null
lib/jalka2021/football/playoff_result.ex
kriips/jalka2021
f4d968e20cae116fd4056bff2f937cd036421977
[ "MIT" ]
null
null
null
defmodule Jalka2021.Football.PlayoffResult do use Ecto.Schema import Ecto.Changeset alias Jalka2021.Football.Team alias Jalka2021.Repo schema "playoff_results" do belongs_to(:team, Team) field(:phase, :integer) timestamps() end @doc false def changeset(playoff_result, attrs) do playo...
19.151515
48
0.691456
d5f416528e35288486438d90fa53f41b5b3bacca
1,556
exs
Elixir
mix.exs
Nebo15/change_logger
efe5ec64d76b6290d30d944e2a4cfe65a50cefe3
[ "MIT" ]
null
null
null
mix.exs
Nebo15/change_logger
efe5ec64d76b6290d30d944e2a4cfe65a50cefe3
[ "MIT" ]
2
2017-04-20T11:58:25.000Z
2017-04-20T11:58:50.000Z
mix.exs
Nebo15/change_logger
efe5ec64d76b6290d30d944e2a4cfe65a50cefe3
[ "MIT" ]
null
null
null
defmodule EctoTrail.Mixfile do use Mix.Project @version "0.4.4" def project do [ app: :ecto_trail, description: description(), package: package(), version: @version, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [] ++ Mix.compilers(), b...
27.298246
107
0.56491
d5f4336c8c86582f429f48760ca4eb609e5c986b
3,226
ex
Elixir
apps/gingerbread_shop_service/lib/gingerbread_shop.service/store/model.ex
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
apps/gingerbread_shop_service/lib/gingerbread_shop.service/store/model.ex
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
apps/gingerbread_shop_service/lib/gingerbread_shop.service/store/model.ex
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
defmodule GingerbreadShop.Service.Store.Model do use Ecto.Schema import Ecto import Ecto.Changeset import Protecto @moduledoc """ A model representing a store. ##Fields ###:id Is the unique reference to the store entry. Is an `integer`. ###:entity Is the entity...
30.149533
111
0.596094
d5f45706748e5c2716d7903efe48829c1d10c05e
269
ex
Elixir
lib/benchee_dsl/application.ex
kianmeng/benchee_dsl
79e120ded84645192af372a5a45f9256ddb83313
[ "MIT" ]
3
2020-07-18T11:02:23.000Z
2021-06-24T12:32:56.000Z
lib/benchee_dsl/application.ex
kianmeng/benchee_dsl
79e120ded84645192af372a5a45f9256ddb83313
[ "MIT" ]
6
2020-05-02T15:32:26.000Z
2020-10-22T11:33:08.000Z
lib/benchee_dsl/application.ex
kianmeng/benchee_dsl
79e120ded84645192af372a5a45f9256ddb83313
[ "MIT" ]
1
2020-10-22T11:06:05.000Z
2020-10-22T11:06:05.000Z
defmodule BencheeDsl.Application do @moduledoc false use Application def start(_type, _args) do children = [ BencheeDsl.Server ] opts = [strategy: :one_for_one, name: BencheeDsl.Supervisor] Supervisor.start_link(children, opts) end end
17.933333
64
0.702602
d5f45d23fc3ee9a110789b15f4a66e743cccb592
1,176
ex
Elixir
test/apps/phoenix-app/web/channels/user_socket.ex
karolsluszniak/cloudless-box
ed7189e50f7c4b4c36b682e09b117fb1ba907b0f
[ "MIT" ]
15
2015-10-15T20:58:00.000Z
2021-08-28T19:50:42.000Z
test/apps/phoenix-app/web/channels/user_socket.ex
karolsluszniak/cloudless-box
ed7189e50f7c4b4c36b682e09b117fb1ba907b0f
[ "MIT" ]
1
2016-08-21T15:50:34.000Z
2016-08-21T18:24:07.000Z
test/apps/phoenix-app/web/channels/user_socket.ex
karolsluszniak/cloudless-box
ed7189e50f7c4b4c36b682e09b117fb1ba907b0f
[ "MIT" ]
null
null
null
defmodule PhoenixApp.UserSocket do use Phoenix.Socket ## Channels # channel "rooms:*", PhoenixApp.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 ...
30.947368
83
0.704082
d5f494317f9641561a912f944533f2ecadcf1e17
297
exs
Elixir
priv/repo/migrations/20161203172755_create_cgm_page.exs
tmecklem/ex_diagcare
cb3236253a19254f3a278f2ffbfa78446bfb1675
[ "MIT" ]
null
null
null
priv/repo/migrations/20161203172755_create_cgm_page.exs
tmecklem/ex_diagcare
cb3236253a19254f3a278f2ffbfa78446bfb1675
[ "MIT" ]
null
null
null
priv/repo/migrations/20161203172755_create_cgm_page.exs
tmecklem/ex_diagcare
cb3236253a19254f3a278f2ffbfa78446bfb1675
[ "MIT" ]
null
null
null
defmodule ExDiagcare.Repo.Migrations.CreateCgmPage do use Ecto.Migration def change do create table(:cgm_pages) do add :page_hash, :string, null: false add :page_data, :binary, null: false timestamps end create unique_index(:cgm_pages, [:page_hash]) end end
19.8
53
0.693603
d5f4dfbdd1efd94e34a0146bbe7528f2ffcb35bf
359
ex
Elixir
web/controllers/password_controller.ex
soarpatriot/cloud
07b19fc9c02da59b3eb3a75c42e61965ad2128cb
[ "MIT" ]
null
null
null
web/controllers/password_controller.ex
soarpatriot/cloud
07b19fc9c02da59b3eb3a75c42e61965ad2128cb
[ "MIT" ]
null
null
null
web/controllers/password_controller.ex
soarpatriot/cloud
07b19fc9c02da59b3eb3a75c42e61965ad2128cb
[ "MIT" ]
null
null
null
defmodule Cloud.PasswordController do use Cloud.Web, :controller alias Cloud.User def new(conn, _) do conn |> render(:new) end def reset_password(conn, %{"user" => %{"email" => email}}) do conn |> put_flash(:info, "Password reset link has been sent to your email address.") |> redirect(t...
21.117647
83
0.649025
d5f4e3c090a5d9ec962f9a1525ff10119c895022
8,647
ex
Elixir
lib/nostrum/struct/message.ex
frm/nostrum
a4ec80ab73d7d421347fd7a26fc107a4ec66d667
[ "MIT" ]
null
null
null
lib/nostrum/struct/message.ex
frm/nostrum
a4ec80ab73d7d421347fd7a26fc107a4ec66d667
[ "MIT" ]
null
null
null
lib/nostrum/struct/message.ex
frm/nostrum
a4ec80ab73d7d421347fd7a26fc107a4ec66d667
[ "MIT" ]
null
null
null
defmodule Nostrum.Struct.Message do @moduledoc """ A `Nostrum.Struct.Message` represents a message. More information can be found on the [Discord API Message Object Documentation](https://discord.com/developers/docs/resources/channel#message-object). """ alias Nostrum.Struct.{Channel, Embed, Guild, Intera...
31.673993
316
0.645542
d5f4f8b5775840758115d55017e7cddaf08d23d1
277
ex
Elixir
lib/codi/exception/plymio_codi_error.ex
ianrumford/plymio_codi
1163b139df0ed344e63597e563637c091ffe1f5e
[ "MIT" ]
null
null
null
lib/codi/exception/plymio_codi_error.ex
ianrumford/plymio_codi
1163b139df0ed344e63597e563637c091ffe1f5e
[ "MIT" ]
null
null
null
lib/codi/exception/plymio_codi_error.ex
ianrumford/plymio_codi
1163b139df0ed344e63597e563637c091ffe1f5e
[ "MIT" ]
null
null
null
defmodule Plymio.Codi.Error do @moduledoc false require Plymio.Vekil.Utility, as: VEKILUTIL use Plymio.Vekil.Attribute @codi_opts [ {@plymio_vekil_key_vekil, Plymio.Vekil.Codi.__vekil__()} ] :defexception_package |> VEKILUTIL.reify_proxies(@codi_opts) end
19.785714
60
0.750903
d5f502eac27739eecdf350023668f83c240deea6
358
ex
Elixir
lib/supabase_surface/components/icons/icon_arrow_down_right.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_arrow_down_right.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_arrow_down_right.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.IconArrowDownRight do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.arrow_down_right(width: icon_size, height: icon_size)} ...
23.866667
74
0.731844
d5f5070703499110acfe34337a00a2f9d80ed794
1,798
exs
Elixir
config/prod.exs
mammenj/dashboard
85166ff9cb5fb8c9ba326bf89730066d36a90054
[ "Apache-2.0" ]
null
null
null
config/prod.exs
mammenj/dashboard
85166ff9cb5fb8c9ba326bf89730066d36a90054
[ "Apache-2.0" ]
null
null
null
config/prod.exs
mammenj/dashboard
85166ff9cb5fb8c9ba326bf89730066d36a90054
[ "Apache-2.0" ]
null
null
null
import Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # w...
35.96
98
0.709677
d5f50bb05f129dd7185c514d208cfede6334a6ab
130
exs
Elixir
apps/ex_wire/test/ex_wire/packet/protocol/disconnect_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/ex_wire/test/ex_wire/packet/protocol/disconnect_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/ex_wire/test/ex_wire/packet/protocol/disconnect_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule ExWire.Packet.Protocol.DisconnectTest do use ExUnit.Case, async: true doctest ExWire.Packet.Protocol.Disconnect end
26
50
0.823077
d5f51177a7dda16e33fea5d6fc17ea2202ca082d
635
ex
Elixir
lib/animina/rail_control/loco.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
1
2021-04-17T20:36:24.000Z
2021-04-17T20:36:24.000Z
lib/animina/rail_control/loco.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
3
2021-04-15T19:45:43.000Z
2021-04-16T06:08:24.000Z
lib/animina/rail_control/loco.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
null
null
null
defmodule Animina.RailControl.Loco do use Ecto.Schema import Ecto.Changeset schema "locos" do field :loco_id, :integer field :name, :string field :direction, :integer field :speed, :integer field :track, :integer timestamps() end @doc false def changeset(loco, attrs) do loco ...
24.423077
65
0.674016
d5f523bef5f9cf687ed6fd6f62515f6cdcc4d917
215
ex
Elixir
lib/zaryn/utils/playbook.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
1
2021-07-06T19:47:14.000Z
2021-07-06T19:47:14.000Z
lib/zaryn/utils/playbook.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
lib/zaryn/utils/playbook.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
defmodule Zaryn.Playbook do @moduledoc """ Playbook is executed on a testnet to verify correctness of the testnet. """ @doc """ Run playbook. """ @callback play!([String.t()], Keyword.t()) :: :ok end
19.545455
73
0.64186
d5f52c6f540bc329be1a382b1e6ad07021e688e5
3,777
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/display_data.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/display_data.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/display_data.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...
47.2125
366
0.685729
d5f54171fed63a59ac5530c71f33d898384a23b5
753
exs
Elixir
test/suite/draft6/maximum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
1
2019-06-21T10:55:33.000Z
2019-06-21T10:55:33.000Z
test/suite/draft6/maximum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
test/suite/draft6/maximum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
defmodule Draft6.MaximumTest do use ExUnit.Case, async: true import JsonXema, only: [valid?: 2] describe "maximum validation" do setup do %{schema: ~s( { "maximum": 3.0 } ) |> Jason.decode!() |> JsonXema.new()} end test "below the maximum is valid", %{schema:...
20.916667
61
0.569721
d5f54f6ff4e4202289b8457a676650fa4104d4e0
1,121
exs
Elixir
elixir/cached_fibonacci/cache/config/config.exs
pylebecq/learning
5ef7309c340a281badb48d3e9bd2bd261e168b75
[ "MIT" ]
null
null
null
elixir/cached_fibonacci/cache/config/config.exs
pylebecq/learning
5ef7309c340a281badb48d3e9bd2bd261e168b75
[ "MIT" ]
null
null
null
elixir/cached_fibonacci/cache/config/config.exs
pylebecq/learning
5ef7309c340a281badb48d3e9bd2bd261e168b75
[ "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.16129
73
0.749331
d5f573d952dc9950b17593c25c077c44cbb79e48
1,224
ex
Elixir
apps/alert_processor/lib/model/subscription/sync_with_trip.ex
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
null
null
null
apps/alert_processor/lib/model/subscription/sync_with_trip.ex
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
21
2021-03-12T17:05:30.000Z
2022-02-16T21:48:35.000Z
apps/alert_processor/lib/model/subscription/sync_with_trip.ex
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
1
2021-12-09T15:09:53.000Z
2021-12-09T15:09:53.000Z
defmodule AlertProcessor.Model.Subscription.SyncWithTrip do @moduledoc """ Syncs a subscription with a given trip's attributes. """ alias AlertProcessor.Repo alias AlertProcessor.Model.{User, Trip, Subscription} @doc """ Syncs the following subscription fields based on a given trip's attributes: * `r...
27.2
77
0.691176
d5f5d6cac69c71b69b9fdd84646bcd7f664a9707
2,303
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/install_failure_event.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/install_failure_event.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/install_failure_event.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.033898
195
0.709509
d5f5e5f661d2e05ca2653170db2c2da52ed48b6b
1,964
ex
Elixir
lib/boundary/mix/tasks/ex_doc_groups.ex
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
490
2019-09-07T10:33:15.000Z
2022-03-30T09:50:03.000Z
lib/boundary/mix/tasks/ex_doc_groups.ex
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
35
2019-09-07T10:49:25.000Z
2022-03-18T10:02:34.000Z
lib/boundary/mix/tasks/ex_doc_groups.ex
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
16
2019-09-08T15:09:16.000Z
2022-02-12T21:40:14.000Z
defmodule Mix.Tasks.Boundary.ExDocGroups do @shortdoc "Creates a boundary.exs holding ex_doc module group defintions." @moduledoc """ Creates a `boundary.exs` holding ex_doc module group defintions. ## Integration with ExDoc The `boundary.exs` file can be integrated with ex_doc in your mix.exs: def...
23.662651
76
0.586558
d5f610e6aab9ad9ed57a2498d36ac7348318a94c
1,880
ex
Elixir
lib/bufu.ex
paulfri/bufu
735e80c188408deec146344a90ed7830416d1fbe
[ "MIT" ]
null
null
null
lib/bufu.ex
paulfri/bufu
735e80c188408deec146344a90ed7830416d1fbe
[ "MIT" ]
null
null
null
lib/bufu.ex
paulfri/bufu
735e80c188408deec146344a90ed7830416d1fbe
[ "MIT" ]
null
null
null
defmodule Bufu do @moduledoc """ Giant Bomb API client library. See the [Giant Bomb API documentation](http://www.giantbomb.com/api/) for more details on the Giant Bomb API, including terms of use, obtaining an API key, and rate limit restrictions. """ use GenServer alias Mix.Project @version Projec...
25.405405
80
0.680851
d5f63ec039b5e866dd4c819adfc194db2697dce4
352
ex
Elixir
lib/robolia_web/controllers/home_controller.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
1
2020-01-19T04:27:46.000Z
2020-01-19T04:27:46.000Z
lib/robolia_web/controllers/home_controller.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
null
null
null
lib/robolia_web/controllers/home_controller.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
1
2018-05-13T14:06:46.000Z
2018-05-13T14:06:46.000Z
defmodule RoboliaWeb.HomeController do use RoboliaWeb, :controller def index(conn, _params) do case current_user(conn) do nil -> conn |> render("index.html", current_user: nil) _ -> conn |> redirect(to: matches_path(conn, :index)) end end defp current_user(conn), do: get_s...
22
63
0.659091
d5f64d066b4d41a57b3ef6fe84f9eb15abad186f
1,950
ex
Elixir
clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_blobstore2_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_blobstore2_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_blobstore2_info.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...
33.050847
87
0.701026
d5f687b234ee2be1175e216db19e4d356338b88b
1,925
ex
Elixir
lib/rsa_private_key.ex
mbaleczny/rsa-ex
74104295861857f440358410cc78da78f186cee0
[ "MIT" ]
null
null
null
lib/rsa_private_key.ex
mbaleczny/rsa-ex
74104295861857f440358410cc78da78f186cee0
[ "MIT" ]
null
null
null
lib/rsa_private_key.ex
mbaleczny/rsa-ex
74104295861857f440358410cc78da78f186cee0
[ "MIT" ]
null
null
null
defmodule RsaEx.RSAPrivateKey do defstruct version: nil, public_exponent: nil, public_modulus: nil, private_exponent: nil, prime_one: nil, prime_two: nil, exponent_one: nil, exponent_two: nil, ctr_coefficient: nil, ...
29.615385
76
0.609351
d5f699993bc7b0113a968c12ca80bf8993f6e822
229
exs
Elixir
maps/use_dict.exs
nickveys/elixir-play
1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86
[ "Unlicense" ]
null
null
null
maps/use_dict.exs
nickveys/elixir-play
1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86
[ "Unlicense" ]
null
null
null
maps/use_dict.exs
nickveys/elixir-play
1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86
[ "Unlicense" ]
null
null
null
defmodule Sum do def values(dict) do Dict.values(dict) |> Enum.sum end end # Sum a Hashdict [ one: 1, two: 2, three: 3 ] |> Sum.values |> IO.puts # Sum a Map %{ four: 4, five: 5, six: 6 } |> Sum.values |> IO.puts
12.052632
29
0.580786
d5f69f5cef462b41af7b940c75657a76bab90319
599
ex
Elixir
server/cardinal/lib/cardinal/user/update.ex
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
server/cardinal/lib/cardinal/user/update.ex
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
server/cardinal/lib/cardinal/user/update.ex
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
defmodule Cardinal.User.Update do alias Ecto.UUID alias Cardinal.Repo alias Cardinal.Schemas.User def execute(%{"id" => uuid} = params) do case UUID.cast(uuid) do :error -> {:error, "Invalid ID format!"} {:ok, _uuid} -> update(params) end end defp update(%{"id" => uuid} = params) do ...
21.392857
49
0.619366
d5f716b8519b95778e1e3adae4ab6fd5784f43cb
1,395
ex
Elixir
bowman/test/support/data_case.ex
mudphone/bowman
e916d0921f259f2c9dcba9313a64402b0bc43f9e
[ "MIT" ]
null
null
null
bowman/test/support/data_case.ex
mudphone/bowman
e916d0921f259f2c9dcba9313a64402b0bc43f9e
[ "MIT" ]
3
2020-07-17T01:30:50.000Z
2021-05-08T20:23:35.000Z
bowman/test/support/data_case.ex
mudphone/bowman
e916d0921f259f2c9dcba9313a64402b0bc43f9e
[ "MIT" ]
null
null
null
defmodule Bowman.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test ...
25.833333
77
0.677419
d5f73f10fd0c24b1e134fab4ad2f77ce84d54460
436
ex
Elixir
web/views/user_view.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
1
2018-03-07T17:21:58.000Z
2018-03-07T17:21:58.000Z
web/views/user_view.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
web/views/user_view.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
defmodule PhoenixAdmin.UserView do use PhoenixAdmin.Web, :view attributes [:email, :name, :last_login, :verified_at, :verification_sent_at] def render("login.json", %{jwt: jwt, exp: exp, user: user}) do %{"token": jwt, "expiry": exp, "user": %{ id: user.id, displayName: user.name...
21.8
78
0.605505
d5f7539685432bb1aa195903297ef499585c64e4
177
exs
Elixir
phx-board-app/priv/repo/migrations/20211229141431_create_memos.exs
dannyh79/k8s-challenge-2021
b48f8dc2d7a55b1f8fa91a13c54867197ef8e270
[ "MIT" ]
null
null
null
phx-board-app/priv/repo/migrations/20211229141431_create_memos.exs
dannyh79/k8s-challenge-2021
b48f8dc2d7a55b1f8fa91a13c54867197ef8e270
[ "MIT" ]
null
null
null
phx-board-app/priv/repo/migrations/20211229141431_create_memos.exs
dannyh79/k8s-challenge-2021
b48f8dc2d7a55b1f8fa91a13c54867197ef8e270
[ "MIT" ]
null
null
null
defmodule Board.Repo.Migrations.CreateMemos do use Ecto.Migration def change do create table(:memos) do add :title, :string timestamps() end end end
14.75
46
0.672316
d5f76b4fa8d4d858c2988acda9b60150fe78752a
4,490
exs
Elixir
test/oli/delivery/attempts/hiearchy_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
1
2022-03-17T20:35:47.000Z
2022-03-17T20:35:47.000Z
test/oli/delivery/attempts/hiearchy_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
test/oli/delivery/attempts/hiearchy_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule Oli.Delivery.Attempts.PageLifecycle.HierarchyTest do use Oli.DataCase alias Oli.Delivery.Attempts.Core, as: Attempts alias Oli.Delivery.Attempts.PageLifecycle.{Hierarchy, VisitContext, AttemptState} describe "creating the attempt tree records" do setup do content1 = %{ "stem" => "1...
30.544218
94
0.565702
d5f77a359ebb1e259ad4fd57cdd671148b6cdb12
249
ex
Elixir
ws_peer/lib/ws_peer.ex
pastleo/bazaar
422aefb7a4b6de720812689c57fc1d64a4204678
[ "MIT" ]
8
2019-05-09T05:30:17.000Z
2020-12-27T12:17:55.000Z
ws_peer/lib/ws_peer.ex
pastleo/bazaar
422aefb7a4b6de720812689c57fc1d64a4204678
[ "MIT" ]
11
2019-05-05T15:48:26.000Z
2019-06-09T01:44:22.000Z
ws_peer/lib/ws_peer.ex
pastleo/bazaar
422aefb7a4b6de720812689c57fc1d64a4204678
[ "MIT" ]
null
null
null
defmodule WsPeer do @moduledoc """ WsPeer keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.9
66
0.751004
d5f7c84a4d846a1b49da126cbfef13c4426024c8
3,822
ex
Elixir
lib/bolt/cogs/gatekeeper/onaccept.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
null
null
null
lib/bolt/cogs/gatekeeper/onaccept.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
null
null
null
lib/bolt/cogs/gatekeeper/onaccept.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
null
null
null
defmodule Bolt.Cogs.GateKeeper.OnAccept do @moduledoc false @behaviour Nosedrum.Command alias Bolt.Cogs.GateKeeper.Actions alias Bolt.Converters alias Bolt.Gatekeeper alias Bolt.Schema.AcceptAction alias Bolt.{ErrorFormatters, ModLog, Repo} alias Nosedrum.Predicates alias Nostrum.Api alias Nostrum....
29.175573
101
0.595238
d5f7d85d8b85bee97f23f6d12841d3c7308b182f
2,682
ex
Elixir
lib/cgrates_web_jsonapi/cdrs.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
2
2018-10-03T07:41:32.000Z
2021-03-21T11:27:27.000Z
lib/cgrates_web_jsonapi/cdrs.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
1
2018-10-31T04:55:59.000Z
2018-10-31T04:55:59.000Z
lib/cgrates_web_jsonapi/cdrs.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
5
2018-09-27T11:30:44.000Z
2021-01-16T08:28:58.000Z
defmodule CgratesWebJsonapi.Cdrs do @moduledoc """ CDRs context. """ alias CgratesWebJsonapi.Repo alias CgratesWebJsonapi.Cdrs.Cdr alias CgratesWebJsonapi.Cdrs.CdrsStats use CgratesWebJsonapi.Cdrs.CdrFilter import Ecto.Query @type cgr_group :: :daily | :weekly | :monthly @type cdr_stat :: %{ ...
30.134831
107
0.62789
d5f7ed22300a432ba0609f1b44df9cfa4753868e
1,585
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_attributes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_attributes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_attributes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.723404
132
0.755205
d5f803b2a2e68b3a1a5b4436fca738a0d077fc4c
1,521
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/empty.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/empty.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/empty.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...
33.065217
202
0.752794
d5f822af1e29d75abc8728480c714995282538e0
170
exs
Elixir
test/helpers/bulk_response_test.exs
szTheory/elasticsearch_elixir_bulk_processor
04fe11a7faff41f42b8119271a8c2ba148b95484
[ "Apache-2.0" ]
13
2020-01-01T10:49:47.000Z
2022-01-14T22:03:02.000Z
test/helpers/bulk_response_test.exs
szTheory/elasticsearch_elixir_bulk_processor
04fe11a7faff41f42b8119271a8c2ba148b95484
[ "Apache-2.0" ]
12
2019-10-03T09:01:33.000Z
2020-11-23T08:54:33.000Z
test/helpers/bulk_response_test.exs
szTheory/elasticsearch_elixir_bulk_processor
04fe11a7faff41f42b8119271a8c2ba148b95484
[ "Apache-2.0" ]
3
2019-10-08T11:16:17.000Z
2020-11-21T16:23:26.000Z
defmodule ElasticsearchElixirBulkProcessor.Helpers.BulkResponseTest do use ExUnit.Case, async: true doctest ElasticsearchElixirBulkProcessor.Helpers.BulkResponse end
34
70
0.876471
d5f874b7aaffa10197e00077ff28f9dcaa78d159
3,458
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/reach_report_compatible_fields.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/reach_report_compatible_fields.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/reach_report_compatible_fields.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...
55.774194
229
0.745807
d5f87b676404cd5956919f2137ebd67393ab03c1
2,229
ex
Elixir
lib/tilex_web/router.ex
RyanWillDev/tilex
1fef06ca37434c9448c97e5a7387af2e7039b46c
[ "MIT" ]
null
null
null
lib/tilex_web/router.ex
RyanWillDev/tilex
1fef06ca37434c9448c97e5a7387af2e7039b46c
[ "MIT" ]
null
null
null
lib/tilex_web/router.ex
RyanWillDev/tilex
1fef06ca37434c9448c97e5a7387af2e7039b46c
[ "MIT" ]
null
null
null
defmodule TilexWeb.Router do use TilexWeb, :router @auth_controller Application.get_env(:tilex, :auth_controller) pipeline :browser do plug(:accepts, ["html"]) plug(:fetch_session) plug(:fetch_flash) plug(:protect_from_forgery) plug(:put_secure_browser_headers) plug(Tilex.Plug.BasicAuth)...
28.576923
69
0.69179
d5f89383abb946c86a665fa0e8323f008f052f13
655
ex
Elixir
apps/bank/test/support/case.ex
devnacho/acme_bank
cee19a490d2b3c04465273b7a6212d7e6a81f736
[ "MIT" ]
776
2016-07-16T14:24:37.000Z
2022-03-07T17:05:11.000Z
apps/bank/test/support/case.ex
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
19
2016-09-03T15:06:57.000Z
2021-12-10T10:04:05.000Z
apps/bank/test/support/case.ex
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
130
2016-09-03T19:44:27.000Z
2022-01-16T12:27:54.000Z
defmodule Bank.Case do use ExUnit.CaseTemplate using do quote do alias Bank.Repo import Ecto import Ecto.Changeset import Ecto.Query import Bank.Case import Money, only: [sigil_M: 2] use Bank.Model end end setup tags do opts = tags |> Map.take([:isolatio...
21.129032
66
0.635115
d5f8b97b7f5c2ba867926ca1e457e7db07ef32d2
2,799
ex
Elixir
lib/pow_assent/phoenix/controllers/registration_controller.ex
praveenperera/pow_assent
f550cafcc1dd275db5b2c98d1fee055269ab56b2
[ "MIT" ]
null
null
null
lib/pow_assent/phoenix/controllers/registration_controller.ex
praveenperera/pow_assent
f550cafcc1dd275db5b2c98d1fee055269ab56b2
[ "MIT" ]
null
null
null
lib/pow_assent/phoenix/controllers/registration_controller.ex
praveenperera/pow_assent
f550cafcc1dd275db5b2c98d1fee055269ab56b2
[ "MIT" ]
null
null
null
defmodule PowAssent.Phoenix.RegistrationController do @moduledoc false use Pow.Extension.Phoenix.Controller.Base alias Plug.Conn alias PowAssent.Plug alias PowEmailConfirmation.Phoenix.ControllerCallbacks plug :load_params_from_session plug :assign_create_path @spec process_add_user_id(Conn.t(), map(...
35.43038
152
0.682387
d5f8f32abb5c90ca978819dff7117d183ee9bed2
104
exs
Elixir
test/similarity/simhash_test.exs
preciz/similarity
81b46a7527d9dd937382077000ca99d99d74dfb6
[ "MIT" ]
8
2019-06-28T09:13:15.000Z
2021-11-03T11:20:49.000Z
test/similarity/simhash_test.exs
preciz/similarity
81b46a7527d9dd937382077000ca99d99d74dfb6
[ "MIT" ]
10
2020-09-14T04:58:20.000Z
2021-08-03T04:50:51.000Z
test/similarity/simhash_test.exs
preciz/similarity
81b46a7527d9dd937382077000ca99d99d74dfb6
[ "MIT" ]
1
2020-10-10T08:54:21.000Z
2020-10-10T08:54:21.000Z
defmodule Similarity.SimhashTest do use ExUnit.Case alias Similarity.Simhash doctest Simhash end
14.857143
35
0.807692
d5f8f5b6ec80aa5f1372691d0f7061502616710e
237
exs
Elixir
priv/repo/migrations/20190119211220_add_deleted_to_reply_state.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
928
2018-04-03T16:18:11.000Z
2019-09-09T17:59:55.000Z
priv/repo/migrations/20190119211220_add_deleted_to_reply_state.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
74
2018-04-03T00:46:50.000Z
2019-03-10T18:57:27.000Z
priv/repo/migrations/20190119211220_add_deleted_to_reply_state.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
89
2018-04-03T17:33:20.000Z
2019-08-19T03:40:20.000Z
defmodule Level.Repo.Migrations.AddDeletedToReplyState do use Ecto.Migration @disable_ddl_transaction true def change do alter table(:replies) do add :is_deleted, :boolean, null: false, default: false end end end
19.75
60
0.738397
d5f91f4341e63cb997426c4e0a5d0a6b2fe7f45b
887
ex
Elixir
lib/cuba_librato.ex
TV4/cuba-librato
e2dcf139d6224b56f8f3158af596c319f71a6091
[ "MIT" ]
null
null
null
lib/cuba_librato.ex
TV4/cuba-librato
e2dcf139d6224b56f8f3158af596c319f71a6091
[ "MIT" ]
null
null
null
lib/cuba_librato.ex
TV4/cuba-librato
e2dcf139d6224b56f8f3158af596c319f71a6091
[ "MIT" ]
null
null
null
defmodule CubaLibrato do alias CubaLibrato.{ChartsStore, Credentials, Downloader, MetricsStore, LibratoClient, Uploader} def upload(space_name, %Credentials{} = credentials_dest) do MetricsStore.get() |> Uploader.upload_all_metrics(credentials_dest) space_id = LibratoClient.get_space_id(space_name, cr...
27.71875
97
0.76212
d5f927078c748221dccfd3807195b97d0830e163
836
exs
Elixir
2022/w04/bank_kata_ex/test/bank/core/actions/deposit_test.exs
dc0d/workshop-notes
971f0166116f1c6157ff999059e0151a2db539b8
[ "MIT" ]
null
null
null
2022/w04/bank_kata_ex/test/bank/core/actions/deposit_test.exs
dc0d/workshop-notes
971f0166116f1c6157ff999059e0151a2db539b8
[ "MIT" ]
null
null
null
2022/w04/bank_kata_ex/test/bank/core/actions/deposit_test.exs
dc0d/workshop-notes
971f0166116f1c6157ff999059e0151a2db539b8
[ "MIT" ]
null
null
null
defmodule Bank.Core.Actions.DepositTest do use ExUnit.Case, async: false import Mox setup :verify_on_exit! alias Bank.Core.Actions.Boundaries.DepositInput alias Bank.Core.Actions.Deposit alias Bank.Core.Model.Account.MockService alias Bank.Core.Model.Amount alias Bank.Tests.Support @sample_accoun...
23.222222
94
0.680622
d5f9b3afb40d3dd6551fe622dfdcc468adcd4399
96
exs
Elixir
test/proxy_test.exs
ajuvercr/mu-identifier
d807cca6acd736ac99e61d357f47255449c3a036
[ "MIT" ]
2
2016-06-17T17:40:34.000Z
2016-06-17T17:55:09.000Z
test/proxy_test.exs
cjfuller/ka-devserver-proxy
c869a6405be7d409bddb4cc55d99f16fd350adc0
[ "MIT" ]
2
2019-03-01T09:28:52.000Z
2021-10-14T08:58:25.000Z
test/proxy_test.exs
cjfuller/ka-devserver-proxy
c869a6405be7d409bddb4cc55d99f16fd350adc0
[ "MIT" ]
1
2021-07-21T18:21:11.000Z
2021-07-21T18:21:11.000Z
defmodule ProxyTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
12
22
0.645833
d5f9c32802e077c6302fa25bd4cfd6fc40151bd8
1,433
ex
Elixir
lib/slacker/matcher.ex
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
1
2016-07-30T10:56:24.000Z
2016-07-30T10:56:24.000Z
lib/slacker/matcher.ex
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
null
null
null
lib/slacker/matcher.ex
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
1
2016-11-16T16:35:13.000Z
2016-11-16T16:35:13.000Z
defmodule Slacker.Matcher do defmacro __using__(_opts) do quote do @regex_patterns [] Module.register_attribute(__MODULE__, :regex_patterns, accumulate: true) import unquote(__MODULE__), only: [match: 2] @before_compile unquote(__MODULE__) # some integrations don't provide a "te...
26.537037
84
0.570133
d5f9e24815fb414c913157cd1aeb123a884ef007
157
ex
Elixir
lib/apoc/hazmat/hash/sha256.ex
auxesis/apoc
e650c21767f508a2720dad1bb3d14439bdcf39c4
[ "Apache-2.0" ]
6
2018-10-04T14:18:35.000Z
2020-05-15T08:43:31.000Z
lib/apoc/hazmat/hash/sha256.ex
auxesis/apoc
e650c21767f508a2720dad1bb3d14439bdcf39c4
[ "Apache-2.0" ]
3
2018-10-23T12:20:45.000Z
2021-01-27T10:41:14.000Z
lib/apoc/hazmat/hash/sha256.ex
auxesis/apoc
e650c21767f508a2720dad1bb3d14439bdcf39c4
[ "Apache-2.0" ]
2
2020-02-19T00:43:37.000Z
2021-08-19T04:04:25.000Z
defmodule Apoc.Hazmat.Hash.SHA256 do use Apoc.Adapter.Hash @impl Apoc.Adapter.Hash def hash!(message) do :crypto.hash(:sha256, message) end end
17.444444
36
0.719745
d5fa0a0a4cf96b0c96fa9de541537f55e17aaf63
1,720
ex
Elixir
clients/games/lib/google_api/games/v1/model/quest_list_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/quest_list_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/quest_list_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...
33.076923
144
0.743023
d5fa0e7d113b54f78946b29e1262d39c490d939b
437
ex
Elixir
lib/data/shop.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/data/shop.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/data/shop.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Data.Shop do @moduledoc """ Shop Schema """ use Data.Schema alias Data.Room alias Data.ShopItem schema "shops" do field(:name, :string) has_many(:shop_items, ShopItem) belongs_to(:room, Room) timestamps() end def changeset(struct, params) do struct |> cast(para...
15.607143
43
0.645309
d5fa1dd7c7c22e8e825aef541f7131347917c112
1,576
exs
Elixir
test/resource/actions/create_test.exs
regularfellow/ash
179495fecb141e0eb8eaf35bbb4d04000eab694b
[ "MIT" ]
null
null
null
test/resource/actions/create_test.exs
regularfellow/ash
179495fecb141e0eb8eaf35bbb4d04000eab694b
[ "MIT" ]
null
null
null
test/resource/actions/create_test.exs
regularfellow/ash
179495fecb141e0eb8eaf35bbb4d04000eab694b
[ "MIT" ]
null
null
null
defmodule Ash.Test.Dsl.Resource.Actions.CreateTest do @moduledoc false use ExUnit.Case, async: true defmacrop defposts(do: body) do quote do defmodule Post do @moduledoc false use Ash.Resource, data_layer: Ash.DataLayer.Ets attributes do uuid_primary_key :id...
22.514286
118
0.520305
d5fa5729d406001627ef2fc1bdcf108c70611699
1,679
ex
Elixir
lib/sentry/plug_capture.ex
SophisticaSean/sentry-elixir
94b37b5217f22097e264a41fe7b9a202cc32b716
[ "MIT" ]
null
null
null
lib/sentry/plug_capture.ex
SophisticaSean/sentry-elixir
94b37b5217f22097e264a41fe7b9a202cc32b716
[ "MIT" ]
null
null
null
lib/sentry/plug_capture.ex
SophisticaSean/sentry-elixir
94b37b5217f22097e264a41fe7b9a202cc32b716
[ "MIT" ]
null
null
null
defmodule Sentry.PlugCapture do @moduledoc """ Provides basic functionality to handle and send errors occurring within Plug applications, including Phoenix. It is intended for usage with `Sentry.PlugContext`. #### Usage In a Phoenix application, it is important to use this module before the Phoenix endpo...
28.457627
93
0.630137
d5fa5d251cd2ddca28f9e7808a83d3bad1646d44
4,464
ex
Elixir
clients/managed_identities/lib/google_api/managed_identities/v1/model/binding.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/managed_identities/lib/google_api/managed_identities/v1/model/binding.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/managed_identities/lib/google_api/managed_identities/v1/model/binding.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...
79.714286
1,972
0.750448
d5fa6422a27a413b11cf096cdaea0436087e99df
2,760
ex
Elixir
lib/configex/configuration.ex
vnegrisolo/configex
69cbd5475d9b54650b99a6dfae7a771c6f2cb896
[ "MIT" ]
4
2019-04-03T02:40:53.000Z
2020-09-24T12:37:25.000Z
lib/configex/configuration.ex
vnegrisolo/configex
69cbd5475d9b54650b99a6dfae7a771c6f2cb896
[ "MIT" ]
25
2019-04-01T20:02:53.000Z
2021-08-03T08:12:44.000Z
lib/configex/configuration.ex
vnegrisolo/configex
69cbd5475d9b54650b99a6dfae7a771c6f2cb896
[ "MIT" ]
null
null
null
defmodule Configex.Configuration do @moduledoc false alias Configex.ConfigError @no_default :configex_no_default @type app :: atom @type key :: atom @type default :: any @type is_compiled :: (() -> boolean) @type result :: any @type tuple_result :: {:ok, result} | {:error, reason} @type reason ::...
32.093023
79
0.661232
d5fa67f102e104943f22c99510f5fedb2cb9ddf7
16,831
exs
Elixir
test/phoenix/test/conn_test.exs
smaximov/phoenix
2562c852606fc753dcca59dd38a67ed74a48338b
[ "MIT" ]
null
null
null
test/phoenix/test/conn_test.exs
smaximov/phoenix
2562c852606fc753dcca59dd38a67ed74a48338b
[ "MIT" ]
null
null
null
test/phoenix/test/conn_test.exs
smaximov/phoenix
2562c852606fc753dcca59dd38a67ed74a48338b
[ "MIT" ]
null
null
null
defmodule Phoenix.Test.ConnTest.CatchAll do def init(opts), do: opts def call(conn, :stat), do: conn.params["action"].(conn) def call(conn, _opts), do: Plug.Conn.assign(conn, :catch_all, true) end alias Phoenix.Test.ConnTest.CatchAll defmodule Phoenix.Test.ConnTest.RedirRouter do use Phoenix.Router get "/",...
30.713504
145
0.608461
d5fa7bee1319041b385e484db69e8e00f3a56c12
5,829
ex
Elixir
lib/pigeon/fcm.ex
mumughal/pigeon
6cb698fa5668c3b981f97464a48a61dc3863b3a0
[ "MIT" ]
null
null
null
lib/pigeon/fcm.ex
mumughal/pigeon
6cb698fa5668c3b981f97464a48a61dc3863b3a0
[ "MIT" ]
null
null
null
lib/pigeon/fcm.ex
mumughal/pigeon
6cb698fa5668c3b981f97464a48a61dc3863b3a0
[ "MIT" ]
null
null
null
defmodule Pigeon.FCM do @moduledoc """ Firebase Cloud Messaging (FCM) """ require Logger import Supervisor.Spec alias Pigeon.FCM.{Config, Notification} alias Pigeon.Worker @typedoc ~S""" Can be either a single notification or a list. """ @type notification :: Notification.t() | [Notification.t(...
28.434146
80
0.629954