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
932be2f7dfdd9cfe35525df6c0ef91806fd2aa77
194
exs
Elixir
1_streaming_computation/words/test/words_test.exs
NikolaiIvanov/advanced-elixir-and-otp
93a1ae80fc1bf8684adbbdb48dc92b564abd204a
[ "MIT" ]
1
2022-02-14T09:08:35.000Z
2022-02-14T09:08:35.000Z
1_streaming_computation/words/test/words_test.exs
NikolaiIvanov/advanced-elixir-and-otp
93a1ae80fc1bf8684adbbdb48dc92b564abd204a
[ "MIT" ]
null
null
null
1_streaming_computation/words/test/words_test.exs
NikolaiIvanov/advanced-elixir-and-otp
93a1ae80fc1bf8684adbbdb48dc92b564abd204a
[ "MIT" ]
null
null
null
defmodule WordsTest do use ExUnit.Case doctest Words test "counts given words" do list = ["a", "a a a", "b a"] assert Words.count(list, Stream) == %{"a" => 5, "b" => 1} end end
19.4
61
0.582474
932bf8018ac7ec99d01ec9f06d8443d4f3e49b2a
399
ex
Elixir
2021/day7/lib/task1.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day7/lib/task1.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day7/lib/task1.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
defmodule Task1Runner do def main do case File.read("data.txt") do {:ok, contents} -> contents |> process {:error, reason} -> "failed to read file 'data.txt': #{reason}" end |> IO.puts() end def process(contents) do contents |> String.trim_trailing() |> String.split(",", trim:...
22.166667
69
0.596491
932c2e61295bad985dc2e36fe8eaf526d338e76c
1,407
exs
Elixir
config/config.exs
msdmazarei/LRUCache
3287467056588971a8018ad5b661f58058f12f4d
[ "BSD-2-Clause" ]
null
null
null
config/config.exs
msdmazarei/LRUCache
3287467056588971a8018ad5b661f58058f12f4d
[ "BSD-2-Clause" ]
1
2020-03-15T18:18:57.000Z
2020-03-15T20:38:18.000Z
config/config.exs
msdmazarei/LRUCache
3287467056588971a8018ad5b661f58058f12f4d
[ "BSD-2-Clause" ]
1
2020-07-13T03:01:46.000Z
2020-07-13T03:01:46.000Z
# This file is responsible for configuring your umbrella # and **all applications** and their dependencies with the # help of the Config module. # # Note that all applications in your umbrella share the # same configuration and dependencies, which is why they # all use the same configuration file. If you want different...
32.72093
86
0.73774
932c2ea8d20f233054ffe7455fe0c8d14e978ee2
348
ex
Elixir
lib/supabase_surface/components/icons/icon_bar_chart_2.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_bar_chart_2.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_bar_chart_2.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.IconBarChart2 do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.bar_chart_2(width: icon_size, height: icon_size)} </IconC...
23.2
69
0.724138
932c804a7af2a576025f43e6318b4e4253c49837
1,571
exs
Elixir
apps/omg/test/omg/merkle_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg/test/omg/merkle_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg/test/omg/merkle_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.803922
88
0.700827
932cb61ecd5bcb4ee752fe0198dd3cbb427a8f59
7,420
ex
Elixir
lib/ex_micro_blog/accounts.ex
CassiusPacheco/ex_micro_blog
e96cb65a76bdc17313457dadb8075e3d9ac2e4f5
[ "MIT" ]
3
2020-04-21T22:48:23.000Z
2020-05-12T19:58:31.000Z
lib/ex_micro_blog/accounts.ex
CassiusPacheco/ex_micro_blog
e96cb65a76bdc17313457dadb8075e3d9ac2e4f5
[ "MIT" ]
1
2021-05-11T11:22:49.000Z
2021-05-11T11:22:49.000Z
lib/ex_micro_blog/accounts.ex
CassiusPacheco/ex_micro_blog
e96cb65a76bdc17313457dadb8075e3d9ac2e4f5
[ "MIT" ]
null
null
null
defmodule ExMicroBlog.Accounts do @moduledoc """ The Accounts context. """ import Ecto.Query, warn: false alias ExMicroBlog.Repo alias ExMicroBlog.Accounts.User alias Ecto.Changeset @topic inspect(__MODULE__) @doc """ Returns the list of users with `current_user_following_id` set if the `curent...
21.759531
99
0.623046
932cc617b0fae37f67d06fc1d4f88c7fc9c0690a
160
ex
Elixir
web/views/raw_supplier_rate_import_job_view.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/views/raw_supplier_rate_import_job_view.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/views/raw_supplier_rate_import_job_view.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
defmodule CgratesWebJsonapi.RawSupplierRateImportJobView do use CgratesWebJsonapi.Web, :view use JaSerializer.PhoenixView attributes [:id, :status] end
20
59
0.8125
932d014457b3fb2f388505ee2316724198397eec
973
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/deserializer.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/genomics/lib/google_api/genomics/v1/deserializer.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/deserializer.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
37.423077
77
0.765673
932d347860714476aeedadbd6e173a4178ace337
367
ex
Elixir
test/support/conn_case.ex
ianatha/formex
7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408
[ "MIT" ]
221
2017-01-15T18:14:55.000Z
2021-08-17T14:15:40.000Z
test/support/conn_case.ex
ianatha/formex
7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408
[ "MIT" ]
25
2017-04-09T01:01:20.000Z
2019-04-17T01:36:01.000Z
test/support/conn_case.ex
ianatha/formex
7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408
[ "MIT" ]
24
2017-04-08T22:15:06.000Z
2021-11-15T11:55:41.000Z
defmodule Formex.ConnCase do use ExUnit.CaseTemplate using do quote do # Import conveniences for testing with connections use Phoenix.ConnTest # import Formex.Router.Helpers # The default endpoint for testing # @endpoint Formex.Endpoint end end setup _tags do {:ok, ...
18.35
56
0.683924
932d43fe2a5b6d5d009dce9c745f86315df1231b
283
exs
Elixir
priv/repo/migrations/20210106001620_add_quarantine_conclusion_to_contact_investigations.exs
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
priv/repo/migrations/20210106001620_add_quarantine_conclusion_to_contact_investigations.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
priv/repo/migrations/20210106001620_add_quarantine_conclusion_to_contact_investigations.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule Epicenter.Repo.Migrations.AddQuarantineConclusionToContactInvestigations do use Ecto.Migration def change do alter table(:contact_investigations) do add :quarantine_conclusion_reason, :text add :quarantine_concluded_at, :utc_datetime end end end
25.727273
85
0.787986
932d4b8bb1beecf6ea856cdcbaa6ec677a010b28
608
ex
Elixir
lib/radiator_web/controllers/fallback_controller.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator_web/controllers/fallback_controller.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator_web/controllers/fallback_controller.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule RadiatorWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use RadiatorWeb, :controller require Logger def call(conn, {:error, :not_found}) do conn |> put_stat...
22.518519
72
0.685855
932d58d9ba8602fabc1e7decaa8bd39bfb5ca018
147
exs
Elixir
elixir/algorithm/graph/basic_graph/test/basic_graph_test.exs
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
null
null
null
elixir/algorithm/graph/basic_graph/test/basic_graph_test.exs
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
16
2020-05-30T12:38:13.000Z
2022-02-19T09:23:31.000Z
elixir/algorithm/graph/basic_graph/test/basic_graph_test.exs
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
null
null
null
defmodule BasicGraphTest do use ExUnit.Case doctest BasicGraph test "greets the world" do assert BasicGraph.hello() == :world end end
16.333333
39
0.727891
932d69ccf71ed79c25bf2e5a69b5c6c6e5243adb
954
ex
Elixir
lib/glimesh_web/live/live_helpers.ex
Eein/glimesh.tv
e55e96b852363b0d9576ca47d19f1499889c68db
[ "MIT" ]
1
2021-06-08T00:07:39.000Z
2021-06-08T00:07:39.000Z
lib/glimesh_web/live/live_helpers.ex
defango/glimesh.tv
d429d66cbb61bedcbb62a4d348b5e16a6b5a6868
[ "MIT" ]
null
null
null
lib/glimesh_web/live/live_helpers.ex
defango/glimesh.tv
d429d66cbb61bedcbb62a4d348b5e16a6b5a6868
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.LiveHelpers do @moduledoc """ Inject methods into live views to provide common functionality. """ import Phoenix.LiveView.Helpers @doc """ Renders a component inside the `GlimeshWeb.ModalComponent` component. The rendered modal receives a `:return_to` option to properly update th...
25.783784
71
0.672956
932d70b04c2624163a1e1eab56ae3c4290cfb782
4,830
ex
Elixir
lib/repo/schema.ex
carguero/carguero_ex_audit
aab186a9e3ed53052869953b3673fc9749d50c85
[ "MIT" ]
2
2021-01-28T00:19:17.000Z
2021-01-29T14:47:02.000Z
lib/repo/schema.ex
carguero/carguero_ex_audit
aab186a9e3ed53052869953b3673fc9749d50c85
[ "MIT" ]
null
null
null
lib/repo/schema.ex
carguero/carguero_ex_audit
aab186a9e3ed53052869953b3673fc9749d50c85
[ "MIT" ]
null
null
null
defmodule CargueroExAudit.Schema do def insert_all(module, name, schema_or_source, entries, opts) do # TODO! opts = augment_opts(opts) Ecto.Repo.Schema.insert_all(module, name, schema_or_source, entries, opts) end def insert(module, name, struct, opts) do opts = augment_opts(opts) augment_tr...
27.134831
107
0.630435
932da5eb552291e13a0e0e292d2970bcf1871e1e
699
ex
Elixir
lib/aph_web/gettext.ex
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
8
2019-09-26T13:59:25.000Z
2020-03-30T21:26:48.000Z
lib/aph_web/gettext.ex
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
39
2019-11-16T02:24:28.000Z
2020-01-14T16:40:28.000Z
lib/aph_web/gettext.ex
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
2
2019-12-16T07:55:14.000Z
2020-06-11T04:14:00.000Z
defmodule AphWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import AphWeb.Gettext # Simple translation gettext("Here is the strin...
27.96
72
0.672389
932db658864d8578f5c419703c20613d3e96c11c
462
exs
Elixir
test/cadet/accounts/user_test.exs
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
null
null
null
test/cadet/accounts/user_test.exs
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
test/cadet/accounts/user_test.exs
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule Cadet.Accounts.UserTest do alias Cadet.Accounts.User use Cadet.ChangesetCase, entity: User describe "Changesets" do test "valid changeset" do assert_changeset(%{name: "happy people", role: :admin}, :valid) assert_changeset(%{name: "happy", role: :student}, :valid) end test "in...
25.666667
69
0.675325
932db821a5a8b806eb5133d9292bed2cdb0da5a7
4,628
ex
Elixir
apps/mishka_html/lib/mishka_html_web/live/components/admin/activity/lists_component.ex
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
1
2021-11-14T11:13:25.000Z
2021-11-14T11:13:25.000Z
apps/mishka_html/lib/mishka_html_web/live/components/admin/activity/lists_component.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
apps/mishka_html/lib/mishka_html_web/live/components/admin/activity/lists_component.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
defmodule MishkaHtmlWeb.Admin.Activity.ListComponent do use MishkaHtmlWeb, :live_component def render(assigns) do ~H""" <div class="col bw admin-blog-post-list table-responsive"> <div class="table-responsive"> <table class="table vazir"> <thead> <t...
57.135802
192
0.475367
932db9e972700d1d1399bd67c4c5f9d90813e5dd
833
ex
Elixir
backend/lib/honeyland/astarte/device/device_status/behaviour.ex
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
backend/lib/honeyland/astarte/device/device_status/behaviour.ex
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
backend/lib/honeyland/astarte/device/device_status/behaviour.ex
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
# # This file is part of Honeyland. # # Copyright 2022 Nervive Studio # # 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 ...
33.32
74
0.731092
932dbf3fddcceeb1ede6f611ca6860240226dc12
643
ex
Elixir
lib/fdl_messenger_bot/messenger_api.ex
ukisami/fdl-messenger-bot
571d29795612a21a3be21ce9f8851afa5a7b387f
[ "MIT" ]
null
null
null
lib/fdl_messenger_bot/messenger_api.ex
ukisami/fdl-messenger-bot
571d29795612a21a3be21ce9f8851afa5a7b387f
[ "MIT" ]
null
null
null
lib/fdl_messenger_bot/messenger_api.ex
ukisami/fdl-messenger-bot
571d29795612a21a3be21ce9f8851afa5a7b387f
[ "MIT" ]
null
null
null
defmodule FdlMessengerBot.MessengerAPI do use HTTPoison.Base def process_url(endpoint) do url = api_url(endpoint) IO.puts url url end def process_request_headers(headers) do [{"content-type", "application/json"} | headers] end def process_request_body(body) do Poison.encode!(body) e...
24.730769
113
0.679627
932de05b50c165fa36efb48a8d42b336f9c25200
7,198
exs
Elixir
test/jsonapi/view_test.exs
jgelens/jsonapi
776f4be5169787f1d92b5237ae372d6e3e18add2
[ "MIT" ]
null
null
null
test/jsonapi/view_test.exs
jgelens/jsonapi
776f4be5169787f1d92b5237ae372d6e3e18add2
[ "MIT" ]
null
null
null
test/jsonapi/view_test.exs
jgelens/jsonapi
776f4be5169787f1d92b5237ae372d6e3e18add2
[ "MIT" ]
null
null
null
defmodule JSONAPI.ViewTest do use ExUnit.Case defmodule PostView do use JSONAPI.View, type: "posts", namespace: "/api" def fields do [:title, :body] end def hidden(%{title: "Hidden body"}) do [:body] end def hidden(_), do: [] end defmodule CommentView do use JSONAPI....
29.024194
96
0.612392
932df1d5ccd07a945b328bb3b11de9f5e845bb0e
2,235
exs
Elixir
example_applications/web_app/mix.exs
mrjoelkemp/prom_ex
69cbd7116c3a4f195bb913d500f2fa10af884070
[ "MIT" ]
null
null
null
example_applications/web_app/mix.exs
mrjoelkemp/prom_ex
69cbd7116c3a4f195bb913d500f2fa10af884070
[ "MIT" ]
null
null
null
example_applications/web_app/mix.exs
mrjoelkemp/prom_ex
69cbd7116c3a4f195bb913d500f2fa10af884070
[ "MIT" ]
null
null
null
defmodule WebApp.MixProject do use Mix.Project def project do [ app: :web_app, 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(), ...
29.8
84
0.562416
932e0c709c8147b6e8a86e7755d118a78ea0a562
1,784
ex
Elixir
lib/phoenix_live_view/plug.ex
sysashi/phoenix_live_view
8c2dc794ebe8a5f9430f580311e3a10f47b9655b
[ "MIT" ]
null
null
null
lib/phoenix_live_view/plug.ex
sysashi/phoenix_live_view
8c2dc794ebe8a5f9430f580311e3a10f47b9655b
[ "MIT" ]
null
null
null
lib/phoenix_live_view/plug.ex
sysashi/phoenix_live_view
8c2dc794ebe8a5f9430f580311e3a10f47b9655b
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.Plug do @moduledoc false alias Phoenix.LiveView.Controller alias Plug.Conn @behaviour Plug @link_header "x-requested-with" def link_header, do: @link_header @impl Plug def init(opts), do: opts @impl Plug def call(%Conn{private: %{phoenix_live_view: opts}} = conn, view...
26.626866
116
0.661435
932e13d341a2d426fb2ab8920111b99f22e95b20
10,661
ex
Elixir
apps/andi/lib/andi_web/live/edit_live_view/finalize_form.ex
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/andi/lib/andi_web/live/edit_live_view/finalize_form.ex
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/andi/lib/andi_web/live/edit_live_view/finalize_form.ex
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
defmodule AndiWeb.EditLiveView.FinalizeForm do @moduledoc """ LiveComponent for scheduling dataset ingestion """ use Phoenix.LiveView use AndiWeb.FormSection, schema_module: AndiWeb.InputSchemas.FinalizeFormSchema import Phoenix.HTML.Form require Logger alias Andi.InputSchemas.Datasets alias AndiWeb....
41.003846
172
0.59713
932e3926b8ca7f9c3b32af15b23830f23e89fc72
174
ex
Elixir
test/support/case.ex
annatel/antl_phonenumber
15c58b3894f9bbb4590d69301800c296ac3878b9
[ "MIT" ]
2
2021-12-21T17:54:27.000Z
2022-03-31T19:14:15.000Z
test/support/case.ex
annatel/antl_phonenumber
15c58b3894f9bbb4590d69301800c296ac3878b9
[ "MIT" ]
null
null
null
test/support/case.ex
annatel/antl_phonenumber
15c58b3894f9bbb4590d69301800c296ac3878b9
[ "MIT" ]
null
null
null
defmodule AntlPhonenumber.Case do use ExUnit.CaseTemplate using do quote do import AntlPhonenumber.Case import AntlPhonenumber.Factory end end end
15.818182
36
0.729885
932e5bb58eaf6a39710797de214dea49eb2b63fe
90
exs
Elixir
golf_phoenix/test/golf_phoenix_web/views/layout_view_test.exs
RobertDober/golftour
1a1187ef46be99532b41a08801c10541a9a84ab1
[ "Apache-2.0" ]
null
null
null
golf_phoenix/test/golf_phoenix_web/views/layout_view_test.exs
RobertDober/golftour
1a1187ef46be99532b41a08801c10541a9a84ab1
[ "Apache-2.0" ]
null
null
null
golf_phoenix/test/golf_phoenix_web/views/layout_view_test.exs
RobertDober/golftour
1a1187ef46be99532b41a08801c10541a9a84ab1
[ "Apache-2.0" ]
null
null
null
defmodule GolfPhoenixWeb.LayoutViewTest do use GolfPhoenixWeb.ConnCase, async: true end
22.5
42
0.844444
932e637bab8162b34da3a26e65a34730ab8238a8
1,114
exs
Elixir
24-stream.exs
lbiru/30-days-of-elixir
8472b6bf4a2f0a12dc6aea930abde2d50867b460
[ "MIT" ]
3,040
2015-01-01T00:26:22.000Z
2022-03-17T04:10:43.000Z
24-stream.exs
tifazxy/30-days-of-elixir
1d3e5cc1580ecbfdf9bd8eafed6ed68cb681404a
[ "MIT" ]
29
2015-01-03T02:36:47.000Z
2019-05-20T13:01:52.000Z
24-stream.exs
tifazxy/30-days-of-elixir
1d3e5cc1580ecbfdf9bd8eafed6ed68cb681404a
[ "MIT" ]
520
2015-01-01T09:43:36.000Z
2022-03-19T00:02:22.000Z
defmodule Fib do @moduledoc """ Lazy Fibonacci Sequence """ defmodule FibVal do defstruct val: 0, next: 1 end @doc """ Return a lazy sequence of FibVals. To get the values, use map &(&1.val) iex> Fib.fib |> Stream.map(&(&1.val)) |> Enum.take(10) [0, 1, 1, 2, 3, 5, 8, 13, 21, 34...
21.018868
65
0.561939
932e69652db159ee79d0903d07b775a34d24d740
1,521
exs
Elixir
mix.exs
sjahandideh/words
542ce945a8f1bed8546ecf5df5b4770a6c76329e
[ "MIT" ]
null
null
null
mix.exs
sjahandideh/words
542ce945a8f1bed8546ecf5df5b4770a6c76329e
[ "MIT" ]
null
null
null
mix.exs
sjahandideh/words
542ce945a8f1bed8546ecf5df5b4770a6c76329e
[ "MIT" ]
null
null
null
defmodule Words.Mixfile do use Mix.Project def project do [app: :words, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, aliases: a...
28.698113
78
0.604208
932e746b0a752efe51d7d8ccd66bf1bcdf45f02c
377
ex
Elixir
lib/pump/application.ex
Gamecode-HQ/pump
6e41cd092a148af5903886e3dfbe72ad46b35f14
[ "MIT" ]
1
2018-11-05T17:53:18.000Z
2018-11-05T17:53:18.000Z
lib/pump/application.ex
Gamecode-HQ/pump
6e41cd092a148af5903886e3dfbe72ad46b35f14
[ "MIT" ]
null
null
null
lib/pump/application.ex
Gamecode-HQ/pump
6e41cd092a148af5903886e3dfbe72ad46b35f14
[ "MIT" ]
1
2020-12-03T11:48:37.000Z
2020-12-03T11:48:37.000Z
defmodule Pump.Application do def start(_type, _args) do env = Application.get_all_env(:pump) children = if Keyword.get(env, :enabled, true) do [ %{ id: Pump, start: {Pump, :start_link, [env]} } ] else [] end Superviso...
18.85
59
0.527851
932f21a1bf06fae68a62fd889a48beca34a3163d
45,404
ex
Elixir
lib/elixir/lib/macro.ex
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
1
2018-02-24T19:48:35.000Z
2018-02-24T19:48:35.000Z
lib/elixir/lib/macro.ex
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/macro.ex
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [to_string: 1] defmodule Macro do @moduledoc ~S""" Conveniences for working with macros. ## Custom Sigils To create a custom sigil, define a function with the name `sigil_{identifier}` that takes two arguments. The first argument will be the string, the second will be a charlist co...
30.309746
103
0.612479
932fb6f72718b36abe8e63866ff7bf3d78a23d7a
2,611
ex
Elixir
lib/rtypes/generator.ex
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
21
2019-05-23T12:35:31.000Z
2020-09-30T04:48:03.000Z
lib/rtypes/generator.ex
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
3
2020-10-16T11:49:33.000Z
2020-11-14T08:53:44.000Z
lib/rtypes/generator.ex
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
2
2019-06-06T14:20:25.000Z
2020-01-06T11:00:08.000Z
defmodule RTypes.Generator do @moduledoc """ Generator module provides the `make/4` function and `make/2` macro which allow to automatically derive a data generator to be used with property-based frameworks. For example, to write a unit test for a pure function with a given spec to use with `StreamData` fr...
29.011111
80
0.68288
932fb8e930e33329c97268da73a5f63f7f1960e5
5,274
ex
Elixir
lib/tokeninterface.ex
SirWerto/brawlex
6e8eddafccffacb7a6041544cf30c1471d830d5a
[ "MIT" ]
null
null
null
lib/tokeninterface.ex
SirWerto/brawlex
6e8eddafccffacb7a6041544cf30c1471d830d5a
[ "MIT" ]
1
2021-04-19T21:02:16.000Z
2021-04-19T21:02:16.000Z
lib/tokeninterface.ex
SirWerto/brawlex
6e8eddafccffacb7a6041544cf30c1471d830d5a
[ "MIT" ]
null
null
null
defmodule Brawlex.TokenInterface do @moduledoc false @spec get_brawlers(pid(), timeout()) :: {:ok, list(map())} | {:error, any()} def get_brawlers(tpid, timeout \\ 5000) do try do GenServer.call(tpid, :brawlers, timeout) catch :exit, error -> {:error, error} else {:ok, res} -> {:o...
28.978022
97
0.554987
932fbeca217f356ca537575abdf6b0a299817b8e
477
exs
Elixir
priv/repo/migrations/20170718120051_alter_product_properties_references.exs
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
196
2019-05-05T15:59:32.000Z
2022-03-15T02:37:19.000Z
priv/repo/migrations/20170718120051_alter_product_properties_references.exs
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
105
2019-05-04T19:04:40.000Z
2021-07-28T11:21:45.000Z
priv/repo/migrations/20170718120051_alter_product_properties_references.exs
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
26
2019-05-05T19:40:52.000Z
2021-11-16T00:32:46.000Z
defmodule Shopix.Repo.Migrations.AlterProductPropertiesReferences do use Ecto.Migration def change do drop constraint(:products_properties, "products_properties_property_id_fkey") drop constraint(:products_properties, "products_properties_product_id_fkey") alter table(:products_properties) do mo...
34.071429
81
0.78826
932fc21140e38a093cf662a622777bd014dcf368
1,094
ex
Elixir
lib/lovelace_web/channels/user_socket.ex
cciuenf/lovelaceccuenf_bot
22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9
[ "MIT" ]
null
null
null
lib/lovelace_web/channels/user_socket.ex
cciuenf/lovelaceccuenf_bot
22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9
[ "MIT" ]
null
null
null
lib/lovelace_web/channels/user_socket.ex
cciuenf/lovelaceccuenf_bot
22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9
[ "MIT" ]
null
null
null
defmodule LovelaceWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", LovelaceWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all chan...
30.388889
83
0.695612
932fdb8f088f2e884843bfdfc12b96254ebb4804
7,111
ex
Elixir
lib/changelog_web/views/episode_view.ex
mlineen/changelog.com
fb661d0cf3a4db731d46ef7f1cec44a5d1f4581a
[ "MIT" ]
null
null
null
lib/changelog_web/views/episode_view.ex
mlineen/changelog.com
fb661d0cf3a4db731d46ef7f1cec44a5d1f4581a
[ "MIT" ]
null
null
null
lib/changelog_web/views/episode_view.ex
mlineen/changelog.com
fb661d0cf3a4db731d46ef7f1cec44a5d1f4581a
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.EpisodeView do use ChangelogWeb, :public_view alias Changelog.{Episode, Files, Github, HtmlKit, ListKit, NewsItem} alias ChangelogWeb.{ Endpoint, LayoutView, PersonView, PodcastView, SponsorView, TimeView, Meta.Title, Meta.Description } def admin_edit_...
26.733083
176
0.663057
932ffcc35d6ec81392d5d813055a0e76b6b75cbe
855
exs
Elixir
test/message_test.exs
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
test/message_test.exs
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
9
2020-04-05T15:39:46.000Z
2020-04-06T17:29:00.000Z
test/message_test.exs
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
defmodule NSQ.MessageTest do use ExUnit.Case, async: true doctest NSQ.Message def now do :calendar.datetime_to_gregorian_seconds(:calendar.universal_time()) end def build_raw_nsq_data(attrs \\ %{}) do timestamp = attrs[:timestamp] || now() attempts = attrs[:attempts] || 0 msg_id = attrs[:id]...
28.5
74
0.65731
93301b320bd8b3d3ecdece4b2f418247875dff88
857
exs
Elixir
test/kdf/pbkdf2/mcf_test.exs
impl/ex_crypto
587aa8a63bd1768a361da207339b4a8d68560c22
[ "Apache-2.0" ]
2
2016-05-02T18:19:13.000Z
2016-05-03T16:11:58.000Z
test/kdf/pbkdf2/mcf_test.exs
impl/ex_crypto
587aa8a63bd1768a361da207339b4a8d68560c22
[ "Apache-2.0" ]
null
null
null
test/kdf/pbkdf2/mcf_test.exs
impl/ex_crypto
587aa8a63bd1768a361da207339b4a8d68560c22
[ "Apache-2.0" ]
null
null
null
defmodule Cryptex.Kdf.Pbkdf2.McfTest do use ExUnit.Case alias Cryptex.Kdf.Pbkdf2.Result alias Cryptex.Mac.Hmac alias Cryptex.Mcf test "results can be encoded using modular crypt format" do prf = Hmac.new(:sha512) rounds = 100_000 salt = "saltKEYbcTcXHCBxtjD" digest = << 172, 205, 205, ...
35.708333
170
0.667445
933057b9d4d5ecd8b0c6975fc9bb78dd1fe6d6eb
2,917
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/model/asp.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/admin/lib/google_api/admin/directory_v1/model/asp.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/admin/lib/google_api/admin/directory_v1/model/asp.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...
44.876923
414
0.690778
93307c4dbb812cc2a8d49ade5bceebc0dbc689df
32,616
ex
Elixir
lib/aws/generated/media_live.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/media_live.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/media_live.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.MediaLive do @moduledoc """ API for AWS Elemental MediaLive """ alias AWS.Client alias AWS.Request def metadata do %AWS.ServiceMetadata{ abbreviation: nil, api_versio...
20.022099
108
0.569199
93308c795247651ad91d8e2ec880ca09cddab19a
4,062
exs
Elixir
test/protobuf/protoc/generator/enum_test.exs
arctic-grpc/protobuf
228e1a2912af7b7f7f49ef871e43dd6b886f6675
[ "MIT" ]
419
2017-04-02T13:10:51.000Z
2020-11-15T15:53:17.000Z
test/protobuf/protoc/generator/enum_test.exs
arctic-grpc/protobuf
228e1a2912af7b7f7f49ef871e43dd6b886f6675
[ "MIT" ]
100
2017-04-02T14:26:41.000Z
2020-11-10T23:43:30.000Z
test/protobuf/protoc/generator/enum_test.exs
arctic-grpc/protobuf
228e1a2912af7b7f7f49ef871e43dd6b886f6675
[ "MIT" ]
83
2017-07-24T21:50:04.000Z
2020-11-15T08:52:34.000Z
defmodule Protobuf.Protoc.Generator.EnumTest do use ExUnit.Case, async: true alias Protobuf.Protoc.Context alias Protobuf.Protoc.Generator.Enum, as: Generator alias Protobuf.Protoc.Generator.Util alias Protobuf.TestHelpers test "generate/2 generates enum type messages" do ctx = %Context{} module =...
35.946903
101
0.650419
933090af674901551dfb419d8d16330b671004b9
186
exs
Elixir
priv/repo/migrations/20181121142516_add_role_to_conversations_users.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
37
2018-07-13T14:08:16.000Z
2021-04-09T15:00:22.000Z
priv/repo/migrations/20181121142516_add_role_to_conversations_users.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
9
2018-07-16T15:24:39.000Z
2021-09-01T14:21:20.000Z
priv/repo/migrations/20181121142516_add_role_to_conversations_users.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
3
2018-10-05T20:19:25.000Z
2019-12-05T00:30:01.000Z
defmodule Planga.Repo.Migrations.AddRoleToConversationsUsers do use Ecto.Migration def change do alter table(:conversations_users) do add :role, :string end end end
18.6
63
0.741935
93309e53cb5f31247a572048c616d13333ab9848
549
ex
Elixir
lib/protocol/partition_metadata.ex
chribben/asterix
92d30b7489df9209168f3991b8d5ead500054cb6
[ "MIT" ]
1
2015-02-20T19:25:29.000Z
2015-02-20T19:25:29.000Z
lib/protocol/partition_metadata.ex
chribben/asterix
92d30b7489df9209168f3991b8d5ead500054cb6
[ "MIT" ]
null
null
null
lib/protocol/partition_metadata.ex
chribben/asterix
92d30b7489df9209168f3991b8d5ead500054cb6
[ "MIT" ]
null
null
null
defmodule Asterix.Protocol.PartitionMetadata do defstruct error_code: 0, id: 0, leader: 0, replicas: [], isr: [] end defimpl Asterix.Protocol.Decodeable, for: Asterix.Protocol.PartitionMetadata do import Asterix.Protocol.Decoder def decode(self, b) do {error_code, b} = int16(b) {id, b} = int32(b) {l...
22.875
79
0.628415
93309ef05dfc5878e0c4df15a95ec95ecf3a177d
450
ex
Elixir
lib/parser/fault_struct.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/parser/fault_struct.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/parser/fault_struct.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule FaultStruct do use CWMP.Protocol.ParserHelpers alias CWMP.Protocol.Messages.FaultStruct def initial_acc do %FaultStruct{} end def end_element(state, ['FaultCode']) do update_acc(state, fn cur -> %FaultStruct{cur | code: integerValue(state.last_text, fn(x) -> x >= 0 end)} end) end def ...
26.470588
113
0.708889
9330a232d627fff0f0f9b2c4ddbbe2a63c400448
2,168
exs
Elixir
config/prod.exs
josephyi/hextech
ae892029a424aa52655152af1f0660ea77a5d8e1
[ "MIT" ]
null
null
null
config/prod.exs
josephyi/hextech
ae892029a424aa52655152af1f0660ea77a5d8e1
[ "MIT" ]
null
null
null
config/prod.exs
josephyi/hextech
ae892029a424aa52655152af1f0660ea77a5d8e1
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
32.848485
67
0.712177
9330a71ebe314b02e87ddaf3f44642cf08f78dfb
192
exs
Elixir
priv/repo/migrations/20200702233024_add_data_and_stash_to_events.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
2
2021-06-22T21:01:49.000Z
2021-11-04T18:36:48.000Z
priv/repo/migrations/20200702233024_add_data_and_stash_to_events.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
priv/repo/migrations/20200702233024_add_data_and_stash_to_events.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
defmodule NYSETL.Repo.Migrations.AddDataAndStashToEvents do use Ecto.Migration def change do alter table(:events) do add(:data, :map) add(:stash, :text) end end end
17.454545
59
0.677083
9330ca2dda56b83e931a60711749c313b5885f01
1,990
ex
Elixir
lib/forget/cluster/manager_supervisor.ex
MaethorNaur/forget
8ce8adfcbf88a48d7adabc03c4815f5777e75f03
[ "MIT" ]
null
null
null
lib/forget/cluster/manager_supervisor.ex
MaethorNaur/forget
8ce8adfcbf88a48d7adabc03c4815f5777e75f03
[ "MIT" ]
null
null
null
lib/forget/cluster/manager_supervisor.ex
MaethorNaur/forget
8ce8adfcbf88a48d7adabc03c4815f5777e75f03
[ "MIT" ]
null
null
null
defmodule Forget.Cluster.ManagerSupervisor do use GenServer require Logger @typep key :: {pid(), reference()} @moduledoc """ Monitor Global process and ensure there is always one process of a kind across the cluster """ @doc """ Start the `GenServer` """ @spec start_link :: GenServer.on_start() ...
23.690476
92
0.569347
9330e663809093862fb9802e1180959c7312d5e2
185
exs
Elixir
test/test_helper.exs
GrantJamesPowell/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
2
2020-10-17T05:48:49.000Z
2020-11-11T02:34:15.000Z
test/test_helper.exs
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
3
2020-05-18T05:52:21.000Z
2020-06-09T07:24:14.000Z
test/test_helper.exs
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
null
null
null
ExUnit.start(capture_log: true) Ecto.Adapters.SQL.Sandbox.mode(BattleBox.Repo, :manual) Application.ensure_all_started(:bypass) {:ok, _pid} = BattleBox.GameEngine.Provider.start_link()
37
56
0.805405
9330e7b7d296ba814a884572df0a11b37fac78b4
2,478
exs
Elixir
lib/working_with_multiple_processes_7/pmap.exs
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
null
null
null
lib/working_with_multiple_processes_7/pmap.exs
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
1
2020-01-28T00:19:53.000Z
2020-01-28T00:19:53.000Z
lib/working_with_multiple_processes_7/pmap.exs
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
null
null
null
defmodule WorkingWithMultipleProcesses7 do def pmap(collection, fun) do me = self() collection |> Enum.map(fn (elem) -> spawn_link fn -> (send me, { self(), fun.(elem) }) end end) |> Enum.map(fn (pid) -> receive do { ^pid, result } -> result end # pid は Enum.map の順序で舐める ...
79.935484
569
0.497175
93312c8fe2e905b9c65612e218e641d527625f3f
1,790
exs
Elixir
mix.exs
szTheory/mailer
fb791115d43f31bf2a056d3c970b21865db29c57
[ "Apache-2.0" ]
44
2015-01-08T15:23:39.000Z
2020-01-13T20:41:05.000Z
mix.exs
szTheory/mailer
fb791115d43f31bf2a056d3c970b21865db29c57
[ "Apache-2.0" ]
24
2015-01-03T09:50:31.000Z
2017-11-03T14:31:14.000Z
mix.exs
szTheory/mailer
fb791115d43f31bf2a056d3c970b21865db29c57
[ "Apache-2.0" ]
25
2015-01-03T09:51:56.000Z
2020-03-03T18:06:31.000Z
defmodule Mailer.Mixfile do use Mix.Project def project do [ app: :mailer, version: version(), elixir: "~> 1.3", elixirc_paths: elixirc_paths(Mix.env), deps: deps(), description: description(), package: package(), name: "Mailer", source_url: "https://github...
24.861111
172
0.567039
93315688a46483a29710e5a8626ffb9afc57f10f
132
ex
Elixir
lib/who_web/controllers/page_controller.ex
ryancharris/who
187a207576240d07e338a1707e5a8eba2e2852d5
[ "MIT" ]
1
2017-08-08T13:22:23.000Z
2017-08-08T13:22:23.000Z
lib/who_web/controllers/page_controller.ex
ryancharris/who
187a207576240d07e338a1707e5a8eba2e2852d5
[ "MIT" ]
null
null
null
lib/who_web/controllers/page_controller.ex
ryancharris/who
187a207576240d07e338a1707e5a8eba2e2852d5
[ "MIT" ]
null
null
null
defmodule WhoWeb.PageController do use WhoWeb, :controller def index(conn, _params) do render conn, "index.html" end end
16.5
34
0.727273
9331625355172c9148ec3c8d77aa14483fe30d1b
2,371
exs
Elixir
test/bsv/crypto/rsa_test.exs
afomi/bsv-ex
a31db1e9d223aa4ac9cc00e86b1e6344a0037805
[ "Apache-2.0" ]
null
null
null
test/bsv/crypto/rsa_test.exs
afomi/bsv-ex
a31db1e9d223aa4ac9cc00e86b1e6344a0037805
[ "Apache-2.0" ]
null
null
null
test/bsv/crypto/rsa_test.exs
afomi/bsv-ex
a31db1e9d223aa4ac9cc00e86b1e6344a0037805
[ "Apache-2.0" ]
null
null
null
defmodule BSV.Crypto.RSATest do use ExUnit.Case @moduletag :rsa doctest BSV.Crypto.RSA setup_all do priv_key = BSV.Crypto.RSA.PrivateKey.from_sequence(BSV.Test.rsa_key) %{ priv_key: priv_key, pub_key: BSV.Crypto.RSA.PrivateKey.get_public_key(priv_key) } end describe "BSV.Crypto.RS...
30.397436
83
0.662168
93316454839d1c2e339b97c2c366e6041f783da0
1,984
ex
Elixir
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/replica.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/replica.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/replica.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...
37.433962
172
0.724798
93317bb8a36c5177f53fcf06fa32bf984c95dccc
565
exs
Elixir
res/__images__/update.exs
camshaft/poe-api-ideas
ab9f1709df7f2fc52eb856ee38f4fc598783554e
[ "MIT" ]
null
null
null
res/__images__/update.exs
camshaft/poe-api-ideas
ab9f1709df7f2fc52eb856ee38f4fc598783554e
[ "MIT" ]
null
null
null
res/__images__/update.exs
camshaft/poe-api-ideas
ab9f1709df7f2fc52eb856ee38f4fc598783554e
[ "MIT" ]
null
null
null
@doc """ Update a user """ @action :replace service = Resource.param(:service) function = Resource.param(:function) || :update_image model = Resource.param(:model) {after_update, params} = case Resource.param(:after) do redirect when is_tuple(redirect) -> redirect redirect when is_atom(redirect) -> {redi...
17.121212
55
0.621239
9331abb5d4a9911a96b0cc86d3e0e154ba020e8c
59
ex
Elixir
gaius/lib/gaius_web/views/layout_view.ex
zndx/gaius
01701d355a3fcbeab49c1f7c6283157357d57336
[ "MIT" ]
1
2020-10-06T02:01:03.000Z
2020-10-06T02:01:03.000Z
gaius/lib/gaius_web/views/layout_view.ex
zndx/gaius
01701d355a3fcbeab49c1f7c6283157357d57336
[ "MIT" ]
null
null
null
gaius/lib/gaius_web/views/layout_view.ex
zndx/gaius
01701d355a3fcbeab49c1f7c6283157357d57336
[ "MIT" ]
null
null
null
defmodule GaiusWeb.LayoutView do use GaiusWeb, :view end
14.75
32
0.79661
9331bf6a96b95b893f6d5d666ef2dd48e9197f87
1,327
exs
Elixir
config/config.exs
OSM-Browser/points-api
7022d4e61318fc8da507809302a57bf38223207a
[ "MIT" ]
2
2018-01-18T20:38:08.000Z
2020-01-19T17:44:20.000Z
config/config.exs
OSM-Browser/points-api
7022d4e61318fc8da507809302a57bf38223207a
[ "MIT" ]
85
2018-02-26T05:30:01.000Z
2021-07-26T06:22:02.000Z
config/config.exs
OSM-Browser/points-api
7022d4e61318fc8da507809302a57bf38223207a
[ "MIT" ]
1
2018-10-07T06:57:34.000Z
2018-10-07T06:57:34.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config config :osm_points, OsmPoints.Repo, adapter: Ecto.Adapters.Postgres, database: Sy...
34.921053
86
0.754333
9331eed27560003a0b666c8f9466264a8f4953eb
2,446
exs
Elixir
config/prod.exs
AdolfodelSel/Tembeza
20c19d6cc090e7c128bf35f016b7a3843cfc0dad
[ "Apache-2.0" ]
null
null
null
config/prod.exs
AdolfodelSel/Tembeza
20c19d6cc090e7c128bf35f016b7a3843cfc0dad
[ "Apache-2.0" ]
1
2021-05-11T18:22:04.000Z
2021-05-11T18:22:04.000Z
config/prod.exs
AdolfodelSel/Tembeza
20c19d6cc090e7c128bf35f016b7a3843cfc0dad
[ "Apache-2.0" ]
null
null
null
use Mix.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, # ...
33.972222
69
0.713001
9332224829aa2b286a0fb8e58f695e801b25b9c4
769
ex
Elixir
lib/mix/lib/mix/tasks/deps.precompile.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/deps.precompile.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/deps.precompile.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Deps.Precompile do use Mix.Task @moduledoc """ Extension point for precompiling dependencies. This is a task that can be aliased by projects that need to execute certain tasks to before compiling dependencies: aliases: ["deps.precompile": ["nerves.precompile", "deps.precompile"]...
28.481481
76
0.708713
93322fea0974fe43e48d0b7732afe9e54af8e552
1,326
ex
Elixir
lib/activity_streams/validator.ex
coryodaniel/activity_streams
b5659463d7e6fce08d708efdb505f13652c4c5f0
[ "MIT" ]
2
2018-05-07T21:16:55.000Z
2018-05-08T11:31:48.000Z
lib/activity_streams/validator.ex
coryodaniel/activity_streams
b5659463d7e6fce08d708efdb505f13652c4c5f0
[ "MIT" ]
null
null
null
lib/activity_streams/validator.ex
coryodaniel/activity_streams
b5659463d7e6fce08d708efdb505f13652c4c5f0
[ "MIT" ]
1
2018-10-26T01:59:22.000Z
2018-10-26T01:59:22.000Z
defmodule ActivityStreams.Validator do @moduledoc false @spec validate(__MODULE__, list(:atom)) :: :ok | {:error, ActivityStreams.InvalidType.t()} def validate(struct, required) do %ActivityStreams.InvalidType{data: struct} |> check_required_props(required) |> validate_properties |> case do ...
26.52
92
0.652338
933232921d0f620b89e7a9d438d3b2da554e3273
1,187
exs
Elixir
test/upload/adapters/test_test.exs
joydrive/upload
81614ab11a8f90add04cbfbbd38dc476a99c9bd0
[ "MIT" ]
null
null
null
test/upload/adapters/test_test.exs
joydrive/upload
81614ab11a8f90add04cbfbbd38dc476a99c9bd0
[ "MIT" ]
null
null
null
test/upload/adapters/test_test.exs
joydrive/upload
81614ab11a8f90add04cbfbbd38dc476a99c9bd0
[ "MIT" ]
null
null
null
defmodule Upload.Adapters.TestTest do use ExUnit.Case, async: true alias Upload.Adapters.Test, as: Adapter doctest Upload.Adapters.Test @fixture Path.expand("../../fixtures/text.txt", __DIR__) @upload %Upload{path: @fixture, filename: "text.txt", key: "foo/text.txt"} test "get_uploads/1 and put_upload/1...
30.435897
89
0.667228
933240cc0c68cf972f6f11686d05be3a71382bcd
1,576
ex
Elixir
support/mix.tasks.farmbot.coveralls.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
support/mix.tasks.farmbot.coveralls.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
support/mix.tasks.farmbot.coveralls.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Farmbot.Coveralls do @moduledoc """ Mix Task to report the coverage for all of the individual projects that make up the repository. """ use Mix.Task Module.register_attribute(__MODULE__, :projects, accumulate: true) @projects :farmbot_celery_script @projects :farmbot_core @project...
27.649123
109
0.629442
9332812370791c88c34f5b9b29318fd3cc93fd79
1,916
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/network_endpoint_with_health_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/network_endpoint_with_health_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/network_endpoint_with_health_status.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...
38.32
166
0.754175
933282c8c1bfa8ae162394f216f11000c45e887e
114,600
ex
Elixir
lib/nostrum/api.ex
chakrit/nostrum
f0ce383d06bb3bb1786ff0464c95cbd757d38f1f
[ "MIT" ]
null
null
null
lib/nostrum/api.ex
chakrit/nostrum
f0ce383d06bb3bb1786ff0464c95cbd757d38f1f
[ "MIT" ]
null
null
null
lib/nostrum/api.ex
chakrit/nostrum
f0ce383d06bb3bb1786ff0464c95cbd757d38f1f
[ "MIT" ]
null
null
null
defmodule Nostrum.Api do @moduledoc ~S""" Interface for Discord's rest API. By default all methods in this module are ran synchronously. If you wish to have async rest operations I recommend you execute these functions inside of a task. **Examples** ```Elixir # Async Task t = Task.async fn -> No...
33.401341
192
0.683307
93331b7e3a6467cad2345884f94785c69e820fb4
52
ex
Elixir
lib/mod4.ex
chess4ever/cycle-dependencies
b75760a520280fb043c895799ea31f812e2651d4
[ "MIT" ]
null
null
null
lib/mod4.ex
chess4ever/cycle-dependencies
b75760a520280fb043c895799ea31f812e2651d4
[ "MIT" ]
null
null
null
lib/mod4.ex
chess4ever/cycle-dependencies
b75760a520280fb043c895799ea31f812e2651d4
[ "MIT" ]
null
null
null
defmodule Mod4 do def ciao do :ciao end end
8.666667
17
0.653846
93332f43469fb4513ab73975faec6386838bac53
2,849
ex
Elixir
clients/firestore/lib/google_api/firestore/v1/model/target_change.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/firestore/lib/google_api/firestore/v1/model/target_change.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/firestore/lib/google_api/firestore/v1/model/target_change.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...
48.288136
535
0.718849
93333e9a15dbb47afc49d53bb27a52dcf524a849
3,360
ex
Elixir
apps/janus/lib/janus/socket.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/socket.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/socket.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
defmodule Janus.Socket do use WebSockex require Logger @timeout 1000*60*60*24 def child_spec(url) do %{ id: __MODULE__, start: {__MODULE__, :start_link, url}, type: :worker, restart: :permanent } end def start_link(url) do ...
30
134
0.595833
9333b79f713bcec3923bed140d27650285e1f058
2,202
ex
Elixir
test/support/live_views/update.ex
gjacobrobertson/phoenix_live_view
459fd4939126edeaad673277791d460028bdb102
[ "MIT" ]
1
2020-07-26T12:20:43.000Z
2020-07-26T12:20:43.000Z
test/support/live_views/update.ex
gjacobrobertson/phoenix_live_view
459fd4939126edeaad673277791d460028bdb102
[ "MIT" ]
null
null
null
test/support/live_views/update.ex
gjacobrobertson/phoenix_live_view
459fd4939126edeaad673277791d460028bdb102
[ "MIT" ]
1
2020-09-23T17:11:30.000Z
2020-09-23T17:11:30.000Z
defmodule Phoenix.LiveViewTest.TZLive do use Phoenix.LiveView def render(%{name: "NestedAppend"} = assigns) do ~L""" time: <%= @time %> <%= @name %> <div id="append-<%= @name %>" phx-update="append"><%= for item <- @items do %> <div id="item-<%= item %>"><%= item %></div> <% end %></div> ...
29.36
124
0.576748
9333bf2ab5a06cc80e34a531c58a296e13d59df2
63
ex
Elixir
server/lib/blogsley_web/views/page_view.ex
blogsley/blogsley-absinthe
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
3
2020-01-23T06:37:18.000Z
2020-12-05T08:31:00.000Z
server/lib/blogsley_web/views/page_view.ex
blogsley/blogsley-absinthe
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
16
2020-04-04T05:13:52.000Z
2022-03-31T11:19:20.000Z
server/lib/blogsley_web/views/page_view.ex
blogsley/blogsley
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
null
null
null
defmodule BlogsleyWeb.PageView do use BlogsleyWeb, :view end
15.75
33
0.809524
9333c61c9a320050f9f745d0005382908a4345b1
265
ex
Elixir
lib/options_tracker.ex
mgwidmann/options_tracker
5520f88a9a5873842a63a23d4bcc5da82a51feba
[ "MIT" ]
12
2020-06-25T17:25:15.000Z
2021-09-30T20:13:33.000Z
lib/options_tracker.ex
mgwidmann/options_tracker
5520f88a9a5873842a63a23d4bcc5da82a51feba
[ "MIT" ]
5
2020-08-05T03:12:31.000Z
2021-07-15T04:59:03.000Z
lib/options_tracker.ex
mgwidmann/options_tracker
5520f88a9a5873842a63a23d4bcc5da82a51feba
[ "MIT" ]
2
2021-07-03T17:20:15.000Z
2021-09-01T15:38:58.000Z
defmodule OptionsTracker do @moduledoc """ OptionsTracker 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
26.5
66
0.766038
9333fe7a054b1b15f01ceab6ecfb0e190fa645cb
1,049
exs
Elixir
test/queries/is_present_test.exs
samueljseay/hound_page_object
5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8
[ "MIT" ]
20
2016-07-02T10:10:43.000Z
2021-01-07T19:03:56.000Z
test/queries/is_present_test.exs
samueljseay/hound_page_object
5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8
[ "MIT" ]
6
2016-12-31T22:31:22.000Z
2018-06-12T01:00:07.000Z
test/queries/is_present_test.exs
samueljseay/hound_page_object
5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8
[ "MIT" ]
7
2016-09-02T15:07:20.000Z
2021-09-13T17:09:49.000Z
defmodule IsPresentPage do require Logger use PageObject visitable :visit, "http://localhost:4000/index.html" is_present? :heading_is_present?, "h2" is_present? :hidden_is_present?, "#hidden" is_present? :footer_is_present?, "footer" collection :things, item_scope: "ul .thing" do is_present? :selec...
23.840909
67
0.754051
9334028e01e19936926314f0fa6acffec68a3ab6
382
ex
Elixir
lib/slackin_ex/web/views/error_view.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
lib/slackin_ex/web/views/error_view.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
lib/slackin_ex/web/views/error_view.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
defmodule SlackinEx.Web.ErrorView do use SlackinEx.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_t...
21.222222
47
0.701571
933425bc790983915ded8242a4c24949afeb0885
870
ex
Elixir
lib/purple/uploads/file_ref.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
lib/purple/uploads/file_ref.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
lib/purple/uploads/file_ref.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
defmodule Purple.Uploads.FileRef do use Ecto.Schema import Ecto.Changeset schema "file_uploads" do field :byte_size, :integer field :description, :string, default: "" field :extension, :string field :image_height, :integer field :image_width, :integer field :path, :string field :sha_h...
21.219512
70
0.622989
933431504aea24080403ee758ac6507b8c2b680c
3,681
exs
Elixir
test/drunkard_web/controllers/recipe_ingredient_controller_test.exs
shaddysignal/drunkard
8365c75cd98414dfe38481956e90dda26a177bdd
[ "Unlicense" ]
2
2020-07-05T21:27:33.000Z
2021-12-12T22:56:00.000Z
test/drunkard_web/controllers/recipe_ingredient_controller_test.exs
shaddysignal/drunkard
8365c75cd98414dfe38481956e90dda26a177bdd
[ "Unlicense" ]
1
2021-05-11T08:14:48.000Z
2021-05-11T08:14:48.000Z
test/drunkard_web/controllers/recipe_ingredient_controller_test.exs
shaddysignal/drunkard
8365c75cd98414dfe38481956e90dda26a177bdd
[ "Unlicense" ]
1
2020-07-05T21:27:46.000Z
2020-07-05T21:27:46.000Z
defmodule DrunkardWeb.RecipeIngredientControllerTest do use DrunkardWeb.ConnCase alias Drunkard.Recipes @create_attrs %{amount: "120.5", ingredient: "some ingredient", is_garnish: true, is_optional: true, unit: "some unit"} @update_attrs %{amount: "456.7", ingredient: "some updated ingredient", is_garnish: fa...
41.359551
139
0.728878
9334340a1018bdfc6eea66819c81f573a1bac8d3
13,463
ex
Elixir
lib/aws/generated/cloud_trail.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/cloud_trail.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/cloud_trail.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.CloudTrail do @moduledoc """ AWS CloudTrail This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail. ...
37.817416
132
0.722424
93343636b52694d6a7ee5ddf6f83354f2726fe9e
775
ex
Elixir
lib/altstatus/accounts/user.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
1
2020-01-20T18:17:59.000Z
2020-01-20T18:17:59.000Z
lib/altstatus/accounts/user.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
null
null
null
lib/altstatus/accounts/user.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
2
2018-09-09T08:05:24.000Z
2018-09-09T08:35:18.000Z
defmodule Altstatus.Accounts.User do use Ecto.Schema import Ecto.Changeset import Comeonin.Bcrypt, only: [hashpwsalt: 1] schema "users" do field :email, :string field :name, :string field :password_hash, :string belongs_to :batch, Altstatus.Admission.Batch timestamps() field :password...
22.794118
65
0.68
9334587c11193c197dd124695a797049e57c3ae3
2,554
ex
Elixir
lib/advent_of_code/day_18.ex
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
1
2018-12-03T11:24:19.000Z
2018-12-03T11:24:19.000Z
lib/advent_of_code/day_18.ex
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
null
null
null
lib/advent_of_code/day_18.ex
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Day18 do @moduledoc ~S""" [Advent Of Code day 18](https://adventofcode.com/2018/day/18). """ import AdventOfCode.Utils, only: [map_increment: 2] @open "." @tree "|" @lumberyard "#" def solve("1", input) do grid = input |> parse_input() Enum.reduce(1..10, grid, fn _, gri...
29.697674
103
0.573218
93345f55212876c33336feaf50453fe1603166e4
4,119
ex
Elixir
web_finngen_r8/lib/risteys/phenocode.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r8/lib/risteys/phenocode.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r8/lib/risteys/phenocode.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
defmodule Risteys.Phenocode do use Ecto.Schema import Ecto.Changeset schema "phenocodes" do field :name, :string field :tags, :string field :level, :string field :omit, :string field :longname, :string field :sex, :string field :include, :string field :pre_conditions, :string ...
24.517857
62
0.619082
93346c81d3ea9fcdb9d7c15319282ca6f4501631
1,659
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/model/batch_create_admin_overrides_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/batch_create_admin_overrides_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/batch_create_admin_overrides_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.297872
136
0.761905
933471c253e2052aecefd041145661e34d73f65f
181
exs
Elixir
priv/repo/migrations/20200612082909_add_role_to_users.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
priv/repo/migrations/20200612082909_add_role_to_users.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
priv/repo/migrations/20200612082909_add_role_to_users.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule Hexpm.RepoBase.Migrations.AddRoleToUsers do use Ecto.Migration def change do alter table(:users) do add(:role, :string, default: "basic") end end end
18.1
53
0.696133
9334722eff8415cadbb46ff44be96911325582f4
2,243
exs
Elixir
mix.exs
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
86
2019-01-07T20:49:04.000Z
2021-10-02T21:15:42.000Z
mix.exs
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
26
2019-03-27T12:06:52.000Z
2020-09-20T05:21:09.000Z
mix.exs
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
19
2015-01-06T19:02:49.000Z
2020-05-25T08:54:00.000Z
defmodule Lucidboard.MixProject do @moduledoc false use Mix.Project def project do [ app: :lucidboard, version: "0.0.1", elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, ...
25.781609
79
0.516719
93348a3c5a066bf71e9c0c6a711a68f842130574
2,223
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_domain_verified_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_domain_verified_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_domain_verified_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.677966
132
0.7148
9334b1414fe8352241ba4888e75b53fe576b1353
2,821
exs
Elixir
exercises/concept/language-list/test/language_list_test.exs
kwchang0831/elixir
1b21ae1ca610de97db79e76db890503ba75ce466
[ "MIT" ]
null
null
null
exercises/concept/language-list/test/language_list_test.exs
kwchang0831/elixir
1b21ae1ca610de97db79e76db890503ba75ce466
[ "MIT" ]
null
null
null
exercises/concept/language-list/test/language_list_test.exs
kwchang0831/elixir
1b21ae1ca610de97db79e76db890503ba75ce466
[ "MIT" ]
null
null
null
defmodule LanguageListTest do use ExUnit.Case describe "new/0" do @tag task_id: 1 test "new list" do assert LanguageList.new() == [] end end describe "add/2" do @tag task_id: 2 test "add a language to a list" do language = "Elixir" list = [language] assert Language...
24.111111
97
0.580645
9334d248be4c28daf824f2c7fb5fd5420aca868c
1,173
exs
Elixir
config/prod.secret.exs
grafana/bors-ng
89d7fcdf707c47aea63fb499c8f7c5442736b43b
[ "Apache-2.0" ]
null
null
null
config/prod.secret.exs
grafana/bors-ng
89d7fcdf707c47aea63fb499c8f7c5442736b43b
[ "Apache-2.0" ]
null
null
null
config/prod.secret.exs
grafana/bors-ng
89d7fcdf707c47aea63fb499c8f7c5442736b43b
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :bors, BorsNG.Database.Repo, adapter: Ecto.Adapters.Postgres, url: {:system, "DATABASE_URL"}, timeout: {:system, :integer, "DATABASE_TIMEOUT", 15_000}, pool_size: {:system, :integer, "POOL_SIZE", 10}, loggers: [{Ecto.LogEntry, :log, []}], ssl: {:system, :boolean, "DATABASE_USE_SSL", t...
33.514286
90
0.686275
9334d491fa5c51ad5628c8f0a9e04cc2f058307d
1,554
ex
Elixir
lib/scidata/mnist.ex
nallwhy/scidata
defac25088beb7865757235284499b5357844aba
[ "Apache-2.0" ]
null
null
null
lib/scidata/mnist.ex
nallwhy/scidata
defac25088beb7865757235284499b5357844aba
[ "Apache-2.0" ]
null
null
null
lib/scidata/mnist.ex
nallwhy/scidata
defac25088beb7865757235284499b5357844aba
[ "Apache-2.0" ]
null
null
null
defmodule Scidata.MNIST do @moduledoc """ Module for downloading the [MNIST dataset](http://yann.lecun.com/exdb/mnist/). """ alias Scidata.Utils @base_url "https://storage.googleapis.com/cvdf-datasets/mnist/" @train_image_file "train-images-idx3-ubyte.gz" @train_label_file "train-labels-idx1-ubyte.gz" ...
28.254545
80
0.685328
93350100a8968e57b2a96689bc35724daf54efca
1,686
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/batch_annotate_files_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/batch_annotate_files_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/vision/lib/google_api/vision/v1/model/batch_annotate_files_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.87234
229
0.759786
933510a7e371cfc05917b68182cce4adbf7e8bc5
2,656
exs
Elixir
.workshop/exercises/csv/exercise.exs
silesian-beamers/elixir-from-the-ground-up
1ad8c2a4d429175461dc45e218849eb6a212c776
[ "MIT" ]
10
2015-12-13T07:29:08.000Z
2016-09-22T03:47:35.000Z
.workshop/exercises/csv/exercise.exs
silesian-beamers/elixir-from-the-ground-up
1ad8c2a4d429175461dc45e218849eb6a212c776
[ "MIT" ]
4
2015-12-02T12:12:14.000Z
2016-01-11T07:33:24.000Z
.workshop/exercises/csv/exercise.exs
silesian-beamers/elixir-from-the-ground-up
1ad8c2a4d429175461dc45e218849eb6a212c776
[ "MIT" ]
null
null
null
defmodule Workshop.Exercise.Csv do use Workshop.Exercise @title "Csv" @weight 3000 # Write an exercise description that make the user capable of solving the # given `@task`. @description """ In this exercise we will create a simple CSV parser. ## Default arguments Functions can take default argume...
30.528736
85
0.707455
93352599c0ed7b81c4ad323692272dd5a86b840d
4,100
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_response.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2019-01-03T22:30:36.000Z
2019-01-03T22:30:36.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_response.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_response.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
52.564103
854
0.731463
933556d43f1922a35b24af9638361026439334e7
1,145
exs
Elixir
mix.exs
florinpatrascu/mischievous
0256dabf2430f56ed2c2b0424a268bb368f71524
[ "Apache-2.0" ]
4
2019-05-12T20:35:21.000Z
2020-05-16T00:47:18.000Z
mix.exs
florinpatrascu/mischievous
0256dabf2430f56ed2c2b0424a268bb368f71524
[ "Apache-2.0" ]
null
null
null
mix.exs
florinpatrascu/mischievous
0256dabf2430f56ed2c2b0424a268bb368f71524
[ "Apache-2.0" ]
null
null
null
defmodule Fixex.MixProject do use Mix.Project @url_github "https://github.com/florinpatrascu/fixex" def project do [ app: :fixex, version: "0.1.3", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), description: "FixEx adds a simple support for i...
21.603774
131
0.554585
93355fac664922b4f278e0ec98b3d1e390b37bc4
2,531
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_decrypt_request.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_decrypt_request.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_decrypt_request.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "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...
50.62
932
0.770446
9335884477611026bfd5e93c921f70365c244c0f
2,562
ex
Elixir
apps/discord_splatoon_bot/lib/discord_splatoon_bot/command.ex
ndac-todoroki/DiscordSplatoonBot
6a082b0352684cb64d36fe9116e7f060691cba37
[ "MIT" ]
6
2017-08-10T13:57:06.000Z
2019-01-17T08:48:40.000Z
apps/discord_splatoon_bot/lib/discord_splatoon_bot/command.ex
ndac-todoroki/DiscordSplatoonBot
6a082b0352684cb64d36fe9116e7f060691cba37
[ "MIT" ]
14
2017-08-08T13:07:00.000Z
2019-02-28T15:10:18.000Z
apps/discord_splatoon_bot/lib/discord_splatoon_bot/command.ex
ndac-todoroki/DiscordSplatoonBot
6a082b0352684cb64d36fe9116e7f060691cba37
[ "MIT" ]
null
null
null
defmodule DiscordSplatoonBot.Command do alias Command.{Util, Weapons, Guild, News, Schedule} @bot_id Application.fetch_env!(:nostrum, :bot_id) @reply_prefix "<@#{@bot_id}>" @reply_nickname_prefix "<@!#{@bot_id}>" defp actionable_command?(msg) do msg.author.id != @bot_id end def handle(msg) do i...
33.272727
98
0.664325
933597b9bfe15af27b55504667bf496cc2503e63
16,508
ex
Elixir
lib/akin/util.ex
vanessaklee/akin
fc97befb871536b6c7ef0b35740fe6efc032c566
[ "Apache-2.0" ]
8
2021-10-31T21:24:37.000Z
2022-02-27T05:30:24.000Z
lib/akin/util.ex
vanessaklee/akin
fc97befb871536b6c7ef0b35740fe6efc032c566
[ "Apache-2.0" ]
1
2021-10-31T17:57:41.000Z
2021-11-09T22:54:50.000Z
lib/akin/util.ex
vanessaklee/akin
fc97befb871536b6c7ef0b35740fe6efc032c566
[ "Apache-2.0" ]
null
null
null
defmodule Akin.Util do @moduledoc """ Utilities for string preparation, manipulation, comparison, and inspection. """ alias Akin.Corpus @opts [ngram_size: 2, level: "normal", short_length: 8, match_at: 0.9] @algorithms [ "bag_distance", "substring_set", "sorensen_dice", "jaccard", "jar...
42.328205
5,238
0.614005
9335ae0c8a1f784c5259deb7ccbe739dbaaf7f88
1,282
exs
Elixir
test/auto_api/capabilities/notifications_capability_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
4
2018-01-19T16:11:10.000Z
2019-12-13T16:35:10.000Z
test/auto_api/capabilities/notifications_capability_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
5
2020-07-16T07:20:21.000Z
2021-09-22T10:18:04.000Z
test/auto_api/capabilities/notifications_capability_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
1
2021-02-17T18:36:13.000Z
2021-02-17T18:36:13.000Z
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
47.481481
79
0.782371
9335ae7cc8e55bcb70faa9a30df51c82cad8df3b
1,224
exs
Elixir
installer/mix.exs
lasseebert/phoenix
50012ae068ae36bf08fbbc63c0d7a116b7e59494
[ "MIT" ]
null
null
null
installer/mix.exs
lasseebert/phoenix
50012ae068ae36bf08fbbc63c0d7a116b7e59494
[ "MIT" ]
null
null
null
installer/mix.exs
lasseebert/phoenix
50012ae068ae36bf08fbbc63c0d7a116b7e59494
[ "MIT" ]
null
null
null
defmodule Phx.New.MixProject do use Mix.Project @github_path "phoenixframework/phoenix" @url "https://github.com/#{@github_path}" def project do [ app: :phx_new, start_permanent: Mix.env() == :prod, version: "1.4.0-rc.0", elixir: "~> 1.5", deps: deps(), package: [ ...
21.857143
101
0.573529
9335b92ab521fe474e028fbeb2b5f973bde27740
3,107
exs
Elixir
test/test_helper.exs
uumo/phoenix_live_dashboard
cd07929341d9dca0f85b58c624c62d63cf7c2f07
[ "MIT" ]
null
null
null
test/test_helper.exs
uumo/phoenix_live_dashboard
cd07929341d9dca0f85b58c624c62d63cf7c2f07
[ "MIT" ]
null
null
null
test/test_helper.exs
uumo/phoenix_live_dashboard
cd07929341d9dca0f85b58c624c62d63cf7c2f07
[ "MIT" ]
null
null
null
System.put_env("PHX_DASHBOARD_TEST", "PHX_DASHBOARD_ENV_VALUE") pg_url = System.get_env("PG_URL") || "postgres:postgres@127.0.0.1" Application.put_env(:phoenix_live_dashboard, Phoenix.LiveDashboardTest.Repo, url: "ecto://#{pg_url}/phx_dashboard_test" ) defmodule Phoenix.LiveDashboardTest.Repo do use Ecto.Repo, o...
27.254386
91
0.746701
9335eb5299ec89250dfe98bea4e22380457c2c98
762
ex
Elixir
apps/omg_watcher/lib/omg_watcher/tracer.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher/lib/omg_watcher/tracer.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher/lib/omg_watcher/tracer.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.636364
74
0.759843
9335f3ef4bd8572fc64203b837c047dc156ea1d4
3,837
exs
Elixir
test/maptu_test.exs
qcam/maptu
0d93ac929acd78f666d78c24bade6b2689e5004d
[ "MIT" ]
18
2017-01-20T03:29:07.000Z
2021-05-30T02:36:23.000Z
test/maptu_test.exs
qcam/maptu
0d93ac929acd78f666d78c24bade6b2689e5004d
[ "MIT" ]
5
2017-03-10T19:26:39.000Z
2018-10-05T14:55:06.000Z
test/maptu_test.exs
qcam/maptu
0d93ac929acd78f666d78c24bade6b2689e5004d
[ "MIT" ]
6
2017-03-10T19:12:17.000Z
2020-06-04T11:16:35.000Z
defmodule MaptuTest do use ExUnit.Case doctest Maptu test "struct/1 and strict_struct/1: no __struct__ key in the given map" do assert Maptu.struct(%{"foo" => "bar"}) == {:error, :missing_struct_key} assert Maptu.strict_struct(%{"foo" => "bar"}) == {:error, :missing_struct_key} end test "struct/1 a...
39.556701
104
0.626792
933607f0cb77fffd6859bf0a28466f3286f9174b
841
exs
Elixir
apps/omg_rpc/test/test_helper.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_rpc/test/test_helper.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_rpc/test/test_helper.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
2
2020-06-07T11:14:54.000Z
2020-08-02T07:36:32.000Z
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
38.227273
74
0.764566
933629a829e007c3ca254c47fe879623398d75a4
208
exs
Elixir
priv/repo/migrations/20211105125512_users_add_admin_column.exs
alloverse/places_alloverse_com
5c15ea08a88429378ce8f41047418e166cbde7e9
[ "BSD-2-Clause" ]
null
null
null
priv/repo/migrations/20211105125512_users_add_admin_column.exs
alloverse/places_alloverse_com
5c15ea08a88429378ce8f41047418e166cbde7e9
[ "BSD-2-Clause" ]
null
null
null
priv/repo/migrations/20211105125512_users_add_admin_column.exs
alloverse/places_alloverse_com
5c15ea08a88429378ce8f41047418e166cbde7e9
[ "BSD-2-Clause" ]
null
null
null
defmodule PlacesAlloverseCom.Repo.Migrations.UsersAddAdminColumn do use Ecto.Migration def change do alter table(:users) do add :admin, :boolean, default: false, null: false end end end
18.909091
67
0.725962
93365513dc9bdf78fe6dc403170c1ead1c3b250b
1,574
ex
Elixir
test/support/data_case.ex
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
1
2021-08-05T12:44:37.000Z
2021-08-05T12:44:37.000Z
test/support/data_case.ex
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
16
2021-02-20T19:22:45.000Z
2021-06-14T13:59:01.000Z
test/support/data_case.ex
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
3
2021-05-17T17:54:43.000Z
2021-11-03T15:30:30.000Z
defmodule BgsiteOfficial.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, we enable the SQL sandbox, so changes do...
28.107143
77
0.69695
93365944468e0285d41aa66009231e79e7e4c751
2,103
ex
Elixir
lib/patch/mock/code/generators/delegate.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
57
2020-04-22T00:19:04.000Z
2022-03-20T11:57:00.000Z
lib/patch/mock/code/generators/delegate.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
9
2021-10-29T20:54:56.000Z
2022-02-19T03:41:01.000Z
lib/patch/mock/code/generators/delegate.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
2
2021-07-02T14:41:48.000Z
2022-01-12T11:47:26.000Z
defmodule Patch.Mock.Code.Generators.Delegate do @moduledoc """ Generator for `delegate` modules. `delegate` modules are generated by taking the `target` module and creating a stub function for each function in the module that calls the `Patch.Mock.Server`'s `delegate/3` function. The `delegate` module wil...
22.858696
113
0.615787
933681b5e4902fea1d39b2c725b73b3ac59f2433
950
exs
Elixir
config/prod.exs
topherhunt/reassembling-the-line
c6823b3394ee98d9b0149fa3d09448928ac5c0db
[ "MIT" ]
1
2019-04-27T15:39:20.000Z
2019-04-27T15:39:20.000Z
config/prod.exs
topherhunt/reassembling-the-line
c6823b3394ee98d9b0149fa3d09448928ac5c0db
[ "MIT" ]
11
2020-07-16T11:40:53.000Z
2021-08-16T07:03:33.000Z
config/prod.exs
topherhunt/reassembling-the-line
c6823b3394ee98d9b0149fa3d09448928ac5c0db
[ "MIT" ]
null
null
null
use Mix.Config config :rtl, RTLWeb.Endpoint, # Heroku appears to set the PORT env automatically at startup time or something http: [:inet6, port: System.get_env("PORT") || 4000], url: [scheme: "https", host: H.env!("HOST_NAME"), port: 443], force_ssl: [rewrite_on: [:x_forwarded_proto]], cache_static_manifest...
36.538462
83
0.733684
933689acae9de2d06b6be95ca83f29bc4771e702
12,998
exs
Elixir
test/parser_test.exs
dvlp123456/oasis
a1b2ec720277ced6956094ceb139124f5459b78e
[ "MIT" ]
11
2021-02-24T09:21:11.000Z
2021-12-26T03:51:25.000Z
test/parser_test.exs
dvlp123456/oasis
a1b2ec720277ced6956094ceb139124f5459b78e
[ "MIT" ]
5
2021-03-18T14:15:37.000Z
2022-03-02T09:53:42.000Z
test/parser_test.exs
dvlp123456/oasis
a1b2ec720277ced6956094ceb139124f5459b78e
[ "MIT" ]
6
2021-02-24T09:21:01.000Z
2021-11-16T08:45:03.000Z
defmodule Oasis.ParserTest do use ExUnit.Case import Oasis.Parser @type_integer %{"type" => "integer"} @type_string %{"type" => "string"} @type_null %{"type" => "null"} @type_boolean %{"type" => "boolean"} @type_number %{"type" => "number"} test "parse string" do assert parse(@type_string, "1") =...
27.364211
114
0.477843