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
4ac4b5ea9cdd46fcb4b76fe9bc1ee1883c1ef276
1,990
exs
Elixir
test/lib/tracking_jobs_handler_test.exs
tinenbruno/verk_web
70911a77ba12efcafca495bb43e3074c6cad3cfb
[ "MIT" ]
null
null
null
test/lib/tracking_jobs_handler_test.exs
tinenbruno/verk_web
70911a77ba12efcafca495bb43e3074c6cad3cfb
[ "MIT" ]
null
null
null
test/lib/tracking_jobs_handler_test.exs
tinenbruno/verk_web
70911a77ba12efcafca495bb43e3074c6cad3cfb
[ "MIT" ]
1
2018-06-24T04:11:11.000Z
2018-06-24T04:11:11.000Z
defmodule VerkWeb.TrackingJobsHandlerTest do use ExUnit.Case import VerkWeb.TrackingJobsHandler import :meck setup do on_exit fn -> unload() end :ok end describe "init/1" do test "returns correct initial state" do pid = self() assert {:consumer, {^pid, %{finished: 0, failed: 0}}, s...
33.166667
153
0.61809
4ac4c4e49767a457110ec0e07d3bd3dd659782c3
946
ex
Elixir
lib/nerves_reactor/bootstrap.ex
ConnorRigby/reactor
77b841feed8beca0dbcba6c8d2cb064a5a9f0640
[ "Apache-2.0" ]
2
2021-06-14T18:21:59.000Z
2021-06-15T10:34:36.000Z
lib/nerves_reactor/bootstrap.ex
ConnorRigby/reactor
77b841feed8beca0dbcba6c8d2cb064a5a9f0640
[ "Apache-2.0" ]
null
null
null
lib/nerves_reactor/bootstrap.ex
ConnorRigby/reactor
77b841feed8beca0dbcba6c8d2cb064a5a9f0640
[ "Apache-2.0" ]
null
null
null
defmodule NervesReactor.Bootstrap do @moduledoc """ Initial module loaded by the reactor onto a remote node. Special care should be taken here to only use stdlib modules. I've used `Elixir.File` below, but only because I am lazy. It should be replaced with `:file`. """ def loaded_applications do for...
23.65
83
0.661734
4ac4db6180e3ff776df61dc19eecf43e546ea0d7
198
exs
Elixir
test_old/planga_web/controllers/page_controller_test.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
37
2018-07-13T14:08:16.000Z
2021-04-09T15:00:22.000Z
test_old/planga_web/controllers/page_controller_test.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
9
2018-07-16T15:24:39.000Z
2021-09-01T14:21:20.000Z
test_old/planga_web/controllers/page_controller_test.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
3
2018-10-05T20:19:25.000Z
2019-12-05T00:30:01.000Z
defmodule PlangaWeb.PageControllerTest do use PlangaWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
22
60
0.676768
4ac4e2a42b17122cc7bddb9f675b5d22c230e7e4
594
exs
Elixir
priv/repo/migrations/20200310231635_add_payment_v2_txn_table.exs
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
17
2019-11-03T03:02:41.000Z
2022-01-13T17:03:32.000Z
priv/repo/migrations/20200310231635_add_payment_v2_txn_table.exs
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
5
2019-11-07T23:26:53.000Z
2020-11-24T21:45:35.000Z
priv/repo/migrations/20200310231635_add_payment_v2_txn_table.exs
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
11
2019-12-04T07:03:16.000Z
2022-01-13T17:03:50.000Z
defmodule BlockchainAPI.Repo.Migrations.AddPaymentV2TxnTable do use Ecto.Migration def change do create table(:payment_v2_txns) do add :payer, :binary, null: false add :payments, :map, null: false add :fee, :bigint, null: false add :nonce, :bigint, null: false, default: 0 add :sta...
31.263158
106
0.681818
4ac4eb8f57e281fc1c1ff4b7a415d9b13e6c3ea0
848
ex
Elixir
lib/ash/registry/dsl.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
lib/ash/registry/dsl.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
lib/ash/registry/dsl.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
defmodule Ash.Registry.Dsl do @entry %Ash.Dsl.Entity{ name: :entry, describe: "A reference to an ash module (typically a resource)", target: Ash.Registry.Entry, args: [:entry], examples: [ "entry MyApp.User" ], modules: [ :entry ], schema: [ entry: [ type:...
18.042553
68
0.548349
4ac4f049e28ec428ee6a0c879763176aac6485e4
8,849
ex
Elixir
lib/mix/tasks/phx.gen.context.ex
shritesh/phoenix
4bf53ecaae5a9057ea57c248964490dfdee312af
[ "MIT" ]
null
null
null
lib/mix/tasks/phx.gen.context.ex
shritesh/phoenix
4bf53ecaae5a9057ea57c248964490dfdee312af
[ "MIT" ]
1
2021-11-17T12:10:06.000Z
2021-11-24T12:53:45.000Z
lib/mix/tasks/phx.gen.context.ex
shritesh/phoenix
4bf53ecaae5a9057ea57c248964490dfdee312af
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phx.Gen.Context do @shortdoc "Generates a context with functions around an Ecto schema" @moduledoc """ Generates a context with functions around an Ecto schema. mix phx.gen.context Accounts User users name:string age:integer The first argument is the context module followed by the s...
32.413919
132
0.705842
4ac51959bb1409167693b75fc32dfe00c506077b
62
exs
Elixir
test/phoenix_routes_js/routes_test.exs
szsoppa/phoenix_routes_js
979f7cfea99862580a14fa53f0a20fd3449af103
[ "MIT" ]
19
2017-08-27T16:38:54.000Z
2021-09-30T00:25:23.000Z
test/phoenix_routes_js/routes_test.exs
szsoppa/phoenix_routes_js
979f7cfea99862580a14fa53f0a20fd3449af103
[ "MIT" ]
2
2019-01-08T10:57:58.000Z
2020-03-14T19:22:46.000Z
test/phoenix_routes_js/routes_test.exs
szsoppa/phoenix_routes_js
979f7cfea99862580a14fa53f0a20fd3449af103
[ "MIT" ]
7
2017-08-29T11:03:36.000Z
2022-03-24T14:34:24.000Z
defmodule PhoenixRoutesJs.RoutesTest do use ExUnit.Case end
15.5
39
0.83871
4ac531db4a7fd2f9beabbcfa5211c49e65961e17
1,791
ex
Elixir
lib/opt_web/telemetry.ex
awwong1/opt
8d84c5789b84e95e4825a7a49711263537933b56
[ "Apache-2.0" ]
null
null
null
lib/opt_web/telemetry.ex
awwong1/opt
8d84c5789b84e95e4825a7a49711263537933b56
[ "Apache-2.0" ]
null
null
null
lib/opt_web/telemetry.ex
awwong1/opt
8d84c5789b84e95e4825a7a49711263537933b56
[ "Apache-2.0" ]
null
null
null
defmodule OptWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn more...
31.982143
86
0.666667
4ac59098a98903352e33574df3dbb19ed13ad1dd
1,910
exs
Elixir
mix.exs
icicletech/scrivener_html
f26976fc95fd5d9970125d6dd472d443a497f9f3
[ "MIT" ]
null
null
null
mix.exs
icicletech/scrivener_html
f26976fc95fd5d9970125d6dd472d443a497f9f3
[ "MIT" ]
null
null
null
mix.exs
icicletech/scrivener_html
f26976fc95fd5d9970125d6dd472d443a497f9f3
[ "MIT" ]
null
null
null
defmodule ScrivenerHtml.Mixfile do use Mix.Project @version "1.7.1" def project do [app: :scrivener_html, version: @version, elixir: "~> 1.2", name: "scrivener_html", source_url: "git@github.com:mgwidmann/scrivener_html.git", homepage_url: "https://github.com/mgwidmann/scrivener_html...
25.131579
77
0.578534
4ac5c44468c964573c493df825b87d26e1cc83e0
281
exs
Elixir
priv/repo/migrations/20220316140555_create_articles.exs
prehnRA/ecto_cellar
b3ff3ab4dd3932600b58df7f71ba2fdf4a20015a
[ "Apache-2.0" ]
42
2022-03-18T21:54:17.000Z
2022-03-31T22:03:19.000Z
priv/repo/migrations/20220316140555_create_articles.exs
prehnRA/ecto_cellar
b3ff3ab4dd3932600b58df7f71ba2fdf4a20015a
[ "Apache-2.0" ]
8
2022-03-17T06:04:18.000Z
2022-03-31T01:36:03.000Z
priv/repo/migrations/20220316140555_create_articles.exs
tashirosota/model_changes
3ff04b676d9e7eafad177be1760216cd46d3d34a
[ "Apache-2.0" ]
1
2022-03-29T14:24:39.000Z
2022-03-29T14:24:39.000Z
defmodule Repo.Migrations.CreateArticles do use Ecto.Migration def change do create table(:articles, primary_key: false) do add :uuid, :string, primary_key: true, null: false add :title, :string add :views, :integer timestamps() end end end
20.071429
56
0.669039
4ac5ceb26b75547d74de0c4713fc8a84903bf2e8
141
exs
Elixir
lib/elixir/test/elixir/code_identifier_test.exs
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
19,291
2015-01-01T02:42:49.000Z
2022-03-31T21:01:40.000Z
lib/elixir/test/elixir/code_identifier_test.exs
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
8,082
2015-01-01T04:16:23.000Z
2022-03-31T22:08:02.000Z
lib/elixir/test/elixir/code_identifier_test.exs
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
3,472
2015-01-03T04:11:56.000Z
2022-03-29T02:07:30.000Z
Code.require_file("test_helper.exs", __DIR__) defmodule Code.IdentifierTest do use ExUnit.Case, async: true doctest Code.Identifier end
20.142857
45
0.794326
4ac5ebbc7bb91421d3537cbae26b61fc10adeec1
4,780
ex
Elixir
apps/imposc/lib/dynamics/sticking.ex
FelixDux/impact-oscillator
4b93975a8f87129777f4e4fe5c2da77fbea41ecf
[ "MIT" ]
null
null
null
apps/imposc/lib/dynamics/sticking.ex
FelixDux/impact-oscillator
4b93975a8f87129777f4e4fe5c2da77fbea41ecf
[ "MIT" ]
null
null
null
apps/imposc/lib/dynamics/sticking.ex
FelixDux/impact-oscillator
4b93975a8f87129777f4e4fe5c2da77fbea41ecf
[ "MIT" ]
null
null
null
defmodule StickingRegion do @moduledoc """ The interval of phases over which zero-velocity impacts have non-negative acceleration. For such impacts, the forcing holds the mass against the obstacle until the acceleration changes sign. This phenomenon can only occur if the obstacle offset is < 1. """ @doc "...
34.142857
122
0.608787
4ac604ad70797a8f98d94456db529e29bde953e2
2,083
ex
Elixir
lib/level_web/router.ex
cas27/level
70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a
[ "Apache-2.0" ]
null
null
null
lib/level_web/router.ex
cas27/level
70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a
[ "Apache-2.0" ]
null
null
null
lib/level_web/router.ex
cas27/level
70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a
[ "Apache-2.0" ]
null
null
null
defmodule LevelWeb.Router do @moduledoc false use LevelWeb, :router pipeline :anonymous_browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers plug :fetch_current_user_by_session end pipeline :authenticate...
23.404494
69
0.691791
4ac604dc45167aa84836a053dd006a1f905f8f95
3,475
ex
Elixir
lib/brando/villain/schema.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
lib/brando/villain/schema.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
lib/brando/villain/schema.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule Brando.Villain.Schema do @moduledoc """ Interface to Villain HTML editor. # Schema Schema utilities ## Usage use Brando.Villain.Schema Add fields to your schema: schema "my_schema" do field :header, :string villain :biography end As Ecto 1.1 removed callb...
25
97
0.63741
4ac62807c6d2197612eab90fffeacf3571c5f778
353
ex
Elixir
lib/central/account/guardian.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central/account/guardian.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
lib/central/account/guardian.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
2
2021-02-23T22:34:00.000Z
2021-04-08T13:31:36.000Z
defmodule Central.Account.Guardian do use Guardian, otp_app: :central alias Central.Account def subject_for_token(user, _claims) do {:ok, to_string(user.id)} end def resource_from_claims(%{"sub" => id} = _claims) do case Account.get_user(id) do nil -> {:error, :resource_not_found} user ...
20.764706
55
0.665722
4ac67abeb663b4ec6cdac12dd23c70c67dddf6f9
5,421
ex
Elixir
lib/zaryn/governance/code.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
1
2021-07-06T19:47:14.000Z
2021-07-06T19:47:14.000Z
lib/zaryn/governance/code.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
lib/zaryn/governance/code.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
defmodule Zaryn.Governance.Code do @moduledoc """ Provide functions to handle the code management and deployment """ alias Zaryn.Crypto alias __MODULE__.CICD alias __MODULE__.Proposal alias Zaryn.Governance.Pools alias Zaryn.Replication alias Zaryn.TransactionChain alias Zaryn.Utils @src_di...
28.68254
92
0.6342
4ac67bc0cb4f8cde4c33d5cc6960680ff7bab648
2,279
ex
Elixir
apps/faqcheck_web/lib/faqcheck_web/helpers/link_helpers.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
apps/faqcheck_web/lib/faqcheck_web/helpers/link_helpers.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
20
2021-09-08T04:07:31.000Z
2022-03-10T21:52:24.000Z
apps/faqcheck_web/lib/faqcheck_web/helpers/link_helpers.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
defmodule FaqcheckWeb.LinkHelpers do import Phoenix.LiveView @doc """ Build a relative link from path components, starting with the given locale name. ## Examples iex> FaqcheckWeb.LinkHelpers.lang_link("es", ["one", "two", "three"]) "/es/one/two/three" """ def lang_link(lang, path_info) do ...
26.195402
119
0.601141
4ac6924d07c74cfb5ded2d83458b87531c717e22
568
exs
Elixir
youtube/codemy/games/mix.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
youtube/codemy/games/mix.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
youtube/codemy/games/mix.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
defmodule Games.MixProject do use Mix.Project def project do [ app: :games, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applic...
19.586207
87
0.573944
4ac6a2f660f2930aa11332f7551310964ae7e662
1,062
ex
Elixir
lib/double_bypass.ex
rkstarnerd/double_bypass
c3c8a50e8e7000c25824e2d76a1561b737d0f11c
[ "MIT" ]
null
null
null
lib/double_bypass.ex
rkstarnerd/double_bypass
c3c8a50e8e7000c25824e2d76a1561b737d0f11c
[ "MIT" ]
null
null
null
lib/double_bypass.ex
rkstarnerd/double_bypass
c3c8a50e8e7000c25824e2d76a1561b737d0f11c
[ "MIT" ]
null
null
null
defmodule DoubleBypass do @moduledoc """ Responsible for initializing and configuring the Bypass servers. """ use ExUnit.CaseTemplate def setup_bypass?(tags, bypass_tags) do Enum.any?(bypass_tags, fn({bypass_tag, _host}) -> bypass_tag in Map.keys(tags) end) end def setup_bypass(tags, bypas...
24.697674
71
0.62806
4ac6bca553de14db2a4fa4c5c97d2ea8b50ace5e
1,983
ex
Elixir
lib/noted_web/live/components/note_list_item.ex
lawik/noted
a51b5d79cf44abfc2463560f83f1a8d65e6af85e
[ "BSD-3-Clause" ]
28
2021-02-20T22:22:49.000Z
2022-03-24T21:07:39.000Z
lib/noted_web/live/components/note_list_item.ex
gerhard/noted
c83bfd2e8e2950187268a2e3ba0904ae8a9773e5
[ "BSD-3-Clause" ]
5
2021-05-06T11:37:11.000Z
2021-08-31T11:38:14.000Z
lib/noted_web/live/components/note_list_item.ex
gerhard/noted
c83bfd2e8e2950187268a2e3ba0904ae8a9773e5
[ "BSD-3-Clause" ]
7
2021-02-24T19:18:28.000Z
2021-09-13T16:07:08.000Z
defmodule NotedWeb.Live.Components.NoteListItem do use NotedWeb, :live_component def render(assigns) do ~L""" <li id="note-list-item-<%= @note.id %>" class="flex relative p-3 pl-14 border-b border-b-gray-400 last:border-0" id="note-<%= @note.id %>"> <div class="flex-auto truncate"> <h2 class=...
42.191489
215
0.567322
4ac716905edac9221b43eea7cbcb92a54b4f80f9
879
ex
Elixir
apps/omg/lib/omg/root_chain_coordinator/service.ex
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2020-05-01T12:30:09.000Z
2020-05-01T12:30:09.000Z
apps/omg/lib/omg/root_chain_coordinator/service.ex
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg/lib/omg/root_chain_coordinator/service.ex
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2021-12-04T00:37:46.000Z
2021-12-04T00:37:46.000Z
# Copyright 2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
33.807692
84
0.7281
4ac740b826ffdbd777acdc285f33c57c226d370d
1,268
exs
Elixir
config/prod.secret.exs
clarkware/live_view_covid_19
dfe6ec0cb0ecf91ef30a58b549acc82d4614916a
[ "MIT" ]
4
2020-03-20T13:37:51.000Z
2020-03-27T23:53:55.000Z
config/prod.secret.exs
clarkware/live_view_covid_19
dfe6ec0cb0ecf91ef30a58b549acc82d4614916a
[ "MIT" ]
2
2021-03-10T11:22:03.000Z
2021-05-11T07:08:43.000Z
config/prod.secret.exs
clarkware/live_view_covid_19
dfe6ec0cb0ecf91ef30a58b549acc82d4614916a
[ "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. use Mix.Config # database_url = # System.get_env("DATABASE_URL") || # raise """ # ...
30.190476
69
0.708202
4ac762ed53fdd527d72652bfa79282e342fb5728
1,181
ex
Elixir
episode16/todo/lib/todo/list.ex
paulfioravanti/learn_elixir
8424b1a7a89cb9fd1dacb85bcca487601958b8fa
[ "MIT" ]
null
null
null
episode16/todo/lib/todo/list.ex
paulfioravanti/learn_elixir
8424b1a7a89cb9fd1dacb85bcca487601958b8fa
[ "MIT" ]
null
null
null
episode16/todo/lib/todo/list.ex
paulfioravanti/learn_elixir
8424b1a7a89cb9fd1dacb85bcca487601958b8fa
[ "MIT" ]
null
null
null
defmodule Todo.List do use GenServer alias Todo.Cache def name(list) do GenServer.call(list, :name) end def items(list) do GenServer.call(list, :items) end def add(list, item) do GenServer.cast(list, {:add, item}) end def update(list, item) do GenServer.cast(list, {:update, item}) ...
20.362069
61
0.631668
4ac77446d94abd09b6920abcdc0c8279c21232ee
376
ex
Elixir
lib/quantum/cluster_task_supervisor_registry/state.ex
fatboypunk/quantum-core
f264e1c5d6b0e13e60f0920ae09c287f342b9d7c
[ "Apache-2.0" ]
null
null
null
lib/quantum/cluster_task_supervisor_registry/state.ex
fatboypunk/quantum-core
f264e1c5d6b0e13e60f0920ae09c287f342b9d7c
[ "Apache-2.0" ]
null
null
null
lib/quantum/cluster_task_supervisor_registry/state.ex
fatboypunk/quantum-core
f264e1c5d6b0e13e60f0920ae09c287f342b9d7c
[ "Apache-2.0" ]
null
null
null
defmodule Quantum.ClusterTaskSupervisorRegistry.State do @moduledoc false # State of Quantum.ClusterTaskSupervisorRegistry @type t :: %__MODULE__{ group_name: atom(), task_supervisor_pid: GenServer.server(), monitor_ref: reference } @enforce_keys [:group_name, :task_supe...
25.066667
65
0.712766
4ac7a09a38c2005b6d1f470ade8c9241a789c312
1,926
ex
Elixir
lib/cassette/server/state.ex
maureenwonderland/elixir-cassette
2a1f7a0325c51b9abd572dc1d11529dfdd552dc9
[ "MIT" ]
15
2016-03-03T11:22:00.000Z
2021-03-16T15:03:56.000Z
lib/cassette/server/state.ex
maureenwonderland/elixir-cassette
2a1f7a0325c51b9abd572dc1d11529dfdd552dc9
[ "MIT" ]
13
2016-06-16T11:43:02.000Z
2021-09-27T18:40:19.000Z
lib/cassette/server/state.ex
maureenwonderland/elixir-cassette
2a1f7a0325c51b9abd572dc1d11529dfdd552dc9
[ "MIT" ]
6
2016-06-16T19:26:37.000Z
2021-04-15T19:32:04.000Z
defmodule Cassette.Server.State do @moduledoc """ Struct to represent the internal state of the `Cassette.Server` """ alias Cassette.Config alias Cassette.User defstruct config: Config.default(), tgt: {:tgt, 0, ""}, sts: %{}, validations: %{} @type tgt :: {:tgt, non_neg_integer(), String.t()} @type s...
30.09375
93
0.622015
4ac7aebf74b8228bb934a475ebf6d4ffbc080d68
2,458
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_list_response.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_list_response.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_list_response.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...
43.892857
181
0.741253
4ac7b0cb89f0afa9804842a5f6491cc5773bba03
5,790
exs
Elixir
test/user/refute_called_test.exs
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
57
2020-04-22T00:19:04.000Z
2022-03-20T11:57:00.000Z
test/user/refute_called_test.exs
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
9
2021-10-29T20:54:56.000Z
2022-02-19T03:41:01.000Z
test/user/refute_called_test.exs
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
2
2021-07-02T14:41:48.000Z
2022-01-12T11:47:26.000Z
defmodule Patch.Test.User.RefuteCalledTest do use ExUnit.Case use Patch alias Patch.Test.Support.User.RefuteCalled describe "refute_called/1" do test "exact call can be refuted" do patch(RefuteCalled, :example, :patched) assert RefuteCalled.example(1, 2) == :patched refute_called Refut...
28.382353
77
0.672193
4ac7f177be01a21f9c234a3a7e9cd90bdeb45374
777
ex
Elixir
lib/spender/auth/guardian.ex
LittleKidogo/Budgetinization
eae6dd62208ec7fb43c8c212f40611f8635205d5
[ "MIT" ]
2
2018-02-27T06:29:59.000Z
2018-06-09T16:53:49.000Z
lib/spender/auth/guardian.ex
LittleKidogo/Budgetinization
eae6dd62208ec7fb43c8c212f40611f8635205d5
[ "MIT" ]
94
2018-02-22T06:03:19.000Z
2018-06-28T14:30:31.000Z
lib/spender/auth/guardian.ex
LittleKidogo/Budgetinization
eae6dd62208ec7fb43c8c212f40611f8635205d5
[ "MIT" ]
1
2020-03-04T19:41:06.000Z
2020-03-04T19:41:06.000Z
defmodule Spender.Auth.Guardian do use Guardian, otp_app: :spender # get accounts context to get or create user alias Spender.{Accounts, Accounts.User} # get a field that can Identify a user def subject_for_token(user = %User{}, _claims) do {:ok, "User:#{user.id}"} end # we can't Identify that reso...
31.08
75
0.723295
4ac8266a0ef5b8c62cabd81b1c6440cbdce30bac
2,528
ex
Elixir
lib/membrane/core/bin/action_handler.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/bin/action_handler.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/bin/action_handler.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Core.Bin.ActionHandler do @moduledoc false use Membrane.Core.CallbackHandler alias Membrane.Core.{Message, Parent, TimerController} alias Membrane.Core.Bin.State alias Membrane.{CallbackError, Notification, ParentSpec} require Membrane.Logger require Message @impl CallbackHandler ...
33.706667
98
0.736155
4ac85af9e5e29ca6c5c10beadad5aa1a81e163bc
7,488
ex
Elixir
lib/centraltipsbot/twitter.ex
mcintyre94/CentralTipsBot
626145478d3516493e72d271b045d1f19275fef5
[ "MIT" ]
null
null
null
lib/centraltipsbot/twitter.ex
mcintyre94/CentralTipsBot
626145478d3516493e72d271b045d1f19275fef5
[ "MIT" ]
null
null
null
lib/centraltipsbot/twitter.ex
mcintyre94/CentralTipsBot
626145478d3516493e72d271b045d1f19275fef5
[ "MIT" ]
null
null
null
defmodule Centraltipsbot.Twitter do require Logger # Paginated API, this function makes a single call to # https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/list-events defp fetch_next_dms(cursor) do params = [count: 50] ++ case cursor do nil -> ...
37.44
145
0.660524
4ac8b3f4da56e0e060191d198c9e8b0133e66cf4
2,086
ex
Elixir
lib/locations/geo_encode/lookup.ex
antp/locations
fe765fe78b896fe02e11b92e8d21e97f00744384
[ "MIT" ]
14
2020-09-16T14:10:35.000Z
2021-10-30T22:05:48.000Z
lib/locations/geo_encode/lookup.ex
antp/locations
fe765fe78b896fe02e11b92e8d21e97f00744384
[ "MIT" ]
null
null
null
lib/locations/geo_encode/lookup.ex
antp/locations
fe765fe78b896fe02e11b92e8d21e97f00744384
[ "MIT" ]
null
null
null
defmodule Locations.GeoEncode.Lookup do @moduledoc """ Entry point to perform a lookup using the OpenStreetMap Nominatim service """ require Logger alias Locations.External.HttpClient @url "https://nominatim.openstreetmap.org/search?" @format "&format=geojson&addressdetails=0" @doc """ Geo encode ...
25.439024
92
0.650527
4ac906a00a6e97fe8e5ab53d708e099fda8221e3
677
ex
Elixir
lib/pkg_tar.ex
jnylen/pkg_tar
4638312f7b0ebe4293ffbd6988d2bcc45cb0ba82
[ "MIT" ]
null
null
null
lib/pkg_tar.ex
jnylen/pkg_tar
4638312f7b0ebe4293ffbd6988d2bcc45cb0ba82
[ "MIT" ]
null
null
null
lib/pkg_tar.ex
jnylen/pkg_tar
4638312f7b0ebe4293ffbd6988d2bcc45cb0ba82
[ "MIT" ]
null
null
null
defmodule PkgTar do @moduledoc """ Documentation for PkgTar. """ @doc """ `create/1` allows a `Mix.Release` struct to be inputed. """ def create(%Mix.Release{} = rel) do file_path = Path.join([ PkgCore.Config.rel_dest_path(), filename(rel) ]) PkgCore.Logger.debug("pkg...
19.911765
71
0.62777
4ac9242194d720b5fa530ae4b0d68df2c144bcc1
4,908
ex
Elixir
lib/ueberauth/strategy/apple.ex
ChannexIO/ueberauth_apple
66a03a2727432b49f3bc92fac2d4bc7722e0dc9d
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/apple.ex
ChannexIO/ueberauth_apple
66a03a2727432b49f3bc92fac2d4bc7722e0dc9d
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/apple.ex
ChannexIO/ueberauth_apple
66a03a2727432b49f3bc92fac2d4bc7722e0dc9d
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.Apple do @moduledoc """ Google Strategy for Überauth. """ use Ueberauth.Strategy, uid_field: :uid, default_scope: "name email", default_response_mode: "form_post" alias Ueberauth.Auth.Info alias Ueberauth.Auth.Credentials alias Ueberauth.Auth.Extra alias Uebera...
27.728814
96
0.656072
4ac94d5fa346185787bd4b3553e3a91f3c11e15d
1,535
ex
Elixir
lib/puppeteer_pdf.ex
churcho/puppeteer-pdf
2f67ec7e8c4ca8625cf27560b8e9343453f8ca2a
[ "MIT" ]
null
null
null
lib/puppeteer_pdf.ex
churcho/puppeteer-pdf
2f67ec7e8c4ca8625cf27560b8e9343453f8ca2a
[ "MIT" ]
null
null
null
lib/puppeteer_pdf.ex
churcho/puppeteer-pdf
2f67ec7e8c4ca8625cf27560b8e9343453f8ca2a
[ "MIT" ]
null
null
null
defmodule PuppeteerPdf do @moduledoc """ Wrapper library for NodeJS binary puppeteer-pdf. """ @doc false @deprecated "Use PuppeteerPdf.Generate.from_string/2" @spec generate_with_html(String.t(), String.t(), list()) :: {:ok, String.t()} | {:error, atom()} def generate_with_html(html, pdf_output_path, opt...
28.425926
98
0.639739
4ac96c379e5337191ad52268ed7eefa70a27a57e
650
ex
Elixir
lib/2015/1.ex
segfaultvicta/advent-ex
a300e2659858b45b545773a0f2ff24f00453d35f
[ "MIT" ]
null
null
null
lib/2015/1.ex
segfaultvicta/advent-ex
a300e2659858b45b545773a0f2ff24f00453d35f
[ "MIT" ]
null
null
null
lib/2015/1.ex
segfaultvicta/advent-ex
a300e2659858b45b545773a0f2ff24f00453d35f
[ "MIT" ]
null
null
null
defmodule Advent.Fifteen.One do @input "./input/2015/1" def handle_floor(floor, acc) do case floor do "(" -> acc + 1 ")" -> acc - 1 end end def find_basement(floor, acc) do case acc do {-1, step} -> step {curr, step} -> case floor do "(" -> {curr + 1, step + 1} ...
17.105263
43
0.518462
4ac98390a7bb7de8e548b1dc105ef38c33f66d7c
1,171
exs
Elixir
config/config.exs
pierce-h/maintainable_api_documentation
854772687e0647019702b28e68a8283f4ab66039
[ "Apache-2.0" ]
null
null
null
config/config.exs
pierce-h/maintainable_api_documentation
854772687e0647019702b28e68a8283f4ab66039
[ "Apache-2.0" ]
null
null
null
config/config.exs
pierce-h/maintainable_api_documentation
854772687e0647019702b28e68a8283f4ab66039
[ "Apache-2.0" ]
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...
37.774194
73
0.760034
4ac9912d0da8227992e88f9bb46f54275523a1b9
5,514
ex
Elixir
deps/calliope/lib/calliope/parser.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/calliope/lib/calliope/parser.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/calliope/lib/calliope/parser.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
defmodule Calliope.Parser do @tag "%" @id "#" @class "." @content " " @tab "\t" @doctype "!" @attrs "{" @parens "(" @comment "/" @script "=" @smart "-" @filter ":" def parse([]), do: [] def parse(l) do parse_lines(l) |> validations |> build_tree end ...
30.296703
112
0.554951
4ac9a3e28bedc41370ffbd6ddd24b777b5a832b9
1,288
ex
Elixir
clients/container/lib/google_api/container/v1/model/cancel_operation_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/cancel_operation_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/cancel_operation_request.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...
28.622222
83
0.763199
4ac9eb211589baa804c72638dd770a1538035c6f
860
ex
Elixir
lib/scaffolding/v1/behaviours/nmid_behaviour.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
1
2018-07-03T10:15:05.000Z
2018-07-03T10:15:05.000Z
lib/scaffolding/v1/behaviours/nmid_behaviour.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
1
2018-04-03T17:18:19.000Z
2018-04-03T17:18:19.000Z
lib/scaffolding/v1/behaviours/nmid_behaviour.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
2
2018-03-05T11:46:01.000Z
2018-07-03T10:15:07.000Z
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2018 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.Scaffolding.NmidBehaviour do @moduledoc (""" This Behav...
40.952381
126
0.582558
4aca182835c2a887a3373e7a8704c5a9ba376163
2,746
ex
Elixir
lib/firebase_admin_ex/messaging.ex
Voronchuk/firebase-admin-ex
4d21f4e8ce8e18514e3ee5b045a40b7126dafd35
[ "MIT" ]
null
null
null
lib/firebase_admin_ex/messaging.ex
Voronchuk/firebase-admin-ex
4d21f4e8ce8e18514e3ee5b045a40b7126dafd35
[ "MIT" ]
null
null
null
lib/firebase_admin_ex/messaging.ex
Voronchuk/firebase-admin-ex
4d21f4e8ce8e18514e3ee5b045a40b7126dafd35
[ "MIT" ]
1
2020-08-27T15:42:39.000Z
2020-08-27T15:42:39.000Z
defmodule FirebaseAdminEx.Messaging do alias FirebaseAdminEx.{Request, Response} alias FirebaseAdminEx.Messaging.Message @fcm_endpoint "https://fcm.googleapis.com/v1" @messaging_scope "https://www.googleapis.com/auth/firebase.messaging" @type result :: {:ok, term()} | {:error, HTTPoison.Error.t() | Jason.De...
32.305882
98
0.680991
4aca338cd0f4b0a93dbe99839dec60932b9321ed
8,384
ex
Elixir
lib/git_diff.ex
ericmj/git_diff
bb3828a75a9eba016bd7c9bf65b92810dfb0b8a4
[ "MIT" ]
null
null
null
lib/git_diff.ex
ericmj/git_diff
bb3828a75a9eba016bd7c9bf65b92810dfb0b8a4
[ "MIT" ]
null
null
null
lib/git_diff.ex
ericmj/git_diff
bb3828a75a9eba016bd7c9bf65b92810dfb0b8a4
[ "MIT" ]
null
null
null
defmodule GitDiff do @moduledoc """ A simple implementation for taking the output from 'git diff' and transforming it into Elixir structs. ## Installation The package can be installed by adding `git_diff` to your list of dependencies in `mix.exs`: ```elixir def deps do [ {:git_diff, "~> 0...
33.13834
184
0.539957
4acaabc7d704d341740f21dfb1c9a20f3266fbcd
1,052
exs
Elixir
test/ex_okex/spot/private/amend_bulk_orders_test.exs
yurikoval/ex_okex
bcaccee94b2f3ebcf2adec4ae70ed71dbe6f35c2
[ "MIT" ]
6
2018-12-04T22:05:05.000Z
2022-01-08T11:54:40.000Z
test/ex_okex/spot/private/amend_bulk_orders_test.exs
yurikoval/ex_okex
bcaccee94b2f3ebcf2adec4ae70ed71dbe6f35c2
[ "MIT" ]
14
2019-12-21T11:32:30.000Z
2022-03-28T16:07:01.000Z
test/ex_okex/spot/private/amend_bulk_orders_test.exs
yurikoval/ex_okex
bcaccee94b2f3ebcf2adec4ae70ed71dbe6f35c2
[ "MIT" ]
3
2019-10-19T19:33:34.000Z
2019-10-19T19:35:18.000Z
defmodule ExOkex.Spot.Private.AmendBulkOrdersTest do use ExUnit.Case import TestHelper alias ExOkex.Spot test "returns successfully updated order" do response = http_response( %{ "btc_usdt" => [ %{ "client_oid" => "", "code" => "0", ...
24.465116
53
0.390684
4acac239892affc8f1d3c8aff06d6a055a8793aa
195
exs
Elixir
installer/templates/phx_umbrella/apps/app_name_web/test/controllers/page_controller_test.exs
joeellis/phoenix
f4eec8548db853edbe35b210126fe856d885c71b
[ "MIT" ]
null
null
null
installer/templates/phx_umbrella/apps/app_name_web/test/controllers/page_controller_test.exs
joeellis/phoenix
f4eec8548db853edbe35b210126fe856d885c71b
[ "MIT" ]
null
null
null
installer/templates/phx_umbrella/apps/app_name_web/test/controllers/page_controller_test.exs
joeellis/phoenix
f4eec8548db853edbe35b210126fe856d885c71b
[ "MIT" ]
1
2020-02-08T16:23:00.000Z
2020-02-08T16:23:00.000Z
defmodule Chat.Web.PageControllerTest do use Chat.Web.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.666667
60
0.666667
4acac8466e558fe15389f22688c873523211905a
219
exs
Elixir
priv/repo/migrations/20190317015230_add_from_frontier_column.exs
lee-dohm/elite-investigations
6511bd1c734bcc7d1e4177b73006891fd1d81855
[ "MIT" ]
null
null
null
priv/repo/migrations/20190317015230_add_from_frontier_column.exs
lee-dohm/elite-investigations
6511bd1c734bcc7d1e4177b73006891fd1d81855
[ "MIT" ]
8
2019-03-14T16:31:37.000Z
2019-03-31T16:14:57.000Z
priv/repo/migrations/20190317015230_add_from_frontier_column.exs
lee-dohm/elite-investigations
6511bd1c734bcc7d1e4177b73006891fd1d81855
[ "MIT" ]
null
null
null
defmodule EliteInvestigations.Repo.Migrations.AddFromFrontierColumn do use Ecto.Migration def change do alter table(:stories) do add :from_frontier, :boolean, null: false, default: true end end end
21.9
70
0.744292
4acafcda9beb1e38fc8430721e1a6b4c8194e84f
3,652
ex
Elixir
lib/polyglot/compiler.ex
sysdea-libs/polyglot
b747eac16c76dd86f97e567e14d7a90012710c13
[ "MIT" ]
1
2015-08-01T06:05:28.000Z
2015-08-01T06:05:28.000Z
lib/polyglot/compiler.ex
sysdea-libs/polyglot
b747eac16c76dd86f97e567e14d7a90012710c13
[ "MIT" ]
null
null
null
lib/polyglot/compiler.ex
sysdea-libs/polyglot
b747eac16c76dd86f97e567e14d7a90012710c13
[ "MIT" ]
null
null
null
defmodule Polyglot.Compiler do alias Polyglot.Parser require Logger def compile_string!(lang, domain, key, string) do Logger.debug "Compiling t!(#{inspect lang}, #{inspect key}, string)" stripped = String.strip(string) args = Macro.var(:args, :polyglot) {:ok, parse_tree} = Parser.parse(stripped)...
28.092308
92
0.593647
4acb084a53a36e435a4c3f2cda1e80dd8113f8f7
6,455
ex
Elixir
lib/tektelic_kona_home_sensor.ex
flixbi/element-parsers
b92ef1cff139130acbac4f40d0d48568a3de6590
[ "MIT" ]
1
2021-11-10T18:06:59.000Z
2021-11-10T18:06:59.000Z
lib/tektelic_kona_home_sensor.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
lib/tektelic_kona_home_sensor.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour require Logger # # Parser for Tektelic Kona home sensor. # # Changelog: # 2019-10-15 [jb]: Initial implementation according to "T0005370_TRM_ver2.0.pdf" # def parse(payload, %{meta: %{frame_port: 10}}) do payload |> parse_frames([]) |>...
32.60101
148
0.606352
4acb2292dfc7e78fd7ce695677ba149ce8521034
2,370
exs
Elixir
test/trigger_test.exs
sega-yarkin/trigger
1fc6b4525e0ada03b849aca6634624d8050adf35
[ "MIT" ]
null
null
null
test/trigger_test.exs
sega-yarkin/trigger
1fc6b4525e0ada03b849aca6634624d8050adf35
[ "MIT" ]
null
null
null
test/trigger_test.exs
sega-yarkin/trigger
1fc6b4525e0ada03b849aca6634624d8050adf35
[ "MIT" ]
null
null
null
defmodule TriggerTest do use ExUnit.Case, async: true doctest Trigger test "new/1" do pid = self() assert %{receiver: ^pid} = Trigger.new() pid = spawn(fn -> :ok end) assert %{receiver: ^pid} = Trigger.new(receiver: pid) assert is_reference(Trigger.new().ref) # Test default struct constru...
27.241379
79
0.634177
4acb3f36188f15e5539348e5dd19cba6cbfae122
11,481
ex
Elixir
lib/ex_public_key.ex
ntrepid8/elixir-crypto
0997a1aaebe701523c0a9b71d4acec4a1819354e
[ "MIT" ]
116
2015-11-18T12:04:23.000Z
2022-03-09T23:07:38.000Z
lib/ex_public_key.ex
ntrepid8/elixir-crypto
0997a1aaebe701523c0a9b71d4acec4a1819354e
[ "MIT" ]
34
2016-10-29T23:23:09.000Z
2022-03-17T17:28:48.000Z
lib/ex_public_key.ex
ntrepid8/elixir-crypto
0997a1aaebe701523c0a9b71d4acec4a1819354e
[ "MIT" ]
47
2016-08-12T13:06:48.000Z
2022-02-17T22:20:02.000Z
defmodule ExPublicKey do @moduledoc """ API module for public-key infrastructure. ## Description Mostly wrappers Erlang' `:public_key` module, to help simplify using public/private key encryption in Elixir. """ # Erlang public_key v1.4.1 corresponds to Erlang/OTP 20.0 @otp_20_public_key_version [1, 4, ...
30.534574
126
0.689574
4acb70f3b54051e753ac7620957afde02e96446f
3,420
exs
Elixir
spec/zen_ex/core/models/dynamic_content/variant_spec.exs
TheRealReal/zen_ex
cea46f398ceba6b46ee128635eb0e4f351f29086
[ "CC0-1.0" ]
11
2017-09-14T15:57:30.000Z
2020-11-24T23:33:40.000Z
spec/zen_ex/core/models/dynamic_content/variant_spec.exs
TheRealReal/zen_ex
cea46f398ceba6b46ee128635eb0e4f351f29086
[ "CC0-1.0" ]
9
2017-08-15T21:30:36.000Z
2022-01-14T11:08:37.000Z
spec/zen_ex/core/models/dynamic_content/variant_spec.exs
TheRealReal/zen_ex
cea46f398ceba6b46ee128635eb0e4f351f29086
[ "CC0-1.0" ]
17
2017-08-15T21:40:47.000Z
2022-01-12T23:04:28.000Z
defmodule ZenEx.Model.DynamicContent.VariantSpec do use ESpec alias ZenEx.Entity.DynamicContent.Variant alias ZenEx.Entity.{DynamicContent,JobStatus} alias ZenEx.Model let :json_variants do ~s({"count":2,"variants":[{"id":223443,"content":"Mail address","locale_id":1},{"id":8678530,"content":"メールアドレス","...
44.415584
143
0.704094
4acbc1f240f9c336678f0a843ab627a862502355
550
ex
Elixir
solucoes/desafio_01/mschonfinkel/lib/mschonfinkel.ex
felipsimoes/elixir-study-group
34af61c29cf3b98df1a3edfa7eab83788eeef8cd
[ "MIT" ]
32
2017-12-13T15:37:12.000Z
2021-03-08T13:37:40.000Z
solucoes/desafio_01/mschonfinkel/lib/mschonfinkel.ex
felipsimoes/elixir-study-group
34af61c29cf3b98df1a3edfa7eab83788eeef8cd
[ "MIT" ]
7
2018-03-01T09:37:30.000Z
2018-08-29T00:16:12.000Z
solucoes/desafio_01/mschonfinkel/lib/mschonfinkel.ex
felipsimoes/elixir-study-group
34af61c29cf3b98df1a3edfa7eab83788eeef8cd
[ "MIT" ]
18
2017-12-29T23:56:35.000Z
2019-01-23T17:44:59.000Z
defmodule Mschonfinkel do @moduledoc """ Documentation for Mschonfinkel. """ @hints ["Poção mágica", "Liquido encantado em frasco"] @doc """ Main function, plays a one round game. """ def play do case IO.gets(show_hint()) |> normalize_input do "elixir" -> IO.puts("Parabéns, você acertou!") ...
20.37037
56
0.627273
4acbc25ffb61bc6da5765eac0002cf76a5d8f15c
1,910
ex
Elixir
lib/not_a_blog_web/controllers/post_controller.ex
ARtoriouSs/not_a_blog
7e2810d1ae6f9fd579d2964981dbbeead7df1e79
[ "MIT" ]
null
null
null
lib/not_a_blog_web/controllers/post_controller.ex
ARtoriouSs/not_a_blog
7e2810d1ae6f9fd579d2964981dbbeead7df1e79
[ "MIT" ]
null
null
null
lib/not_a_blog_web/controllers/post_controller.ex
ARtoriouSs/not_a_blog
7e2810d1ae6f9fd579d2964981dbbeead7df1e79
[ "MIT" ]
null
null
null
defmodule NotABlogWeb.PostController do use NotABlogWeb, :controller alias NotABlog.Repo alias NotABlog.Blog alias NotABlog.Blog.Post def index(conn, _params) do posts = Blog.list_posts render(conn, "index.html", posts: posts) end def show(conn, %{"id" => id}) do post = Repo.get(Post, id) ...
28.507463
88
0.601571
4acbc5a39e81ad0ad0ed546a3916e99893728542
2,401
exs
Elixir
test/services/collaborator_normalizer_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
null
null
null
test/services/collaborator_normalizer_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
2
2021-09-28T05:37:00.000Z
2022-02-26T10:10:15.000Z
test/services/collaborator_normalizer_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
null
null
null
defmodule AccentTest.CollaboratorNormalizer do use Accent.RepoCase import Ecto.Query alias Accent.{Collaborator, Project, Repo, User, UserRemote.CollaboratorNormalizer} test "create with many collaborations" do project = %Project{main_color: "#f00", name: "Ha"} |> Repo.insert!() project2 = %Project{m...
35.308824
97
0.65556
4acbf22f4a2146d113082996cfa5cf882c66ba12
1,096
exs
Elixir
mix.exs
sultaniman/every
b25592a81aa8470b27ed51a5cb24cc08e62bf50f
[ "Apache-2.0" ]
9
2018-10-22T14:07:00.000Z
2021-01-06T14:02:31.000Z
mix.exs
imanhodjaev/every
b25592a81aa8470b27ed51a5cb24cc08e62bf50f
[ "Apache-2.0" ]
25
2018-10-14T17:58:24.000Z
2022-01-25T04:19:36.000Z
mix.exs
sultaniman/every
b25592a81aa8470b27ed51a5cb24cc08e62bf50f
[ "Apache-2.0" ]
2
2018-10-16T16:13:57.000Z
2018-10-26T12:46:19.000Z
defmodule Every.MixProject do use Mix.Project @vsn "0.0.9" @deps [ {:timex, "~> 3.6"}, {:ex_doc, "~> 0.21", only: :dev, runtime: false}, {:excoveralls, "~> 0.12", only: :test}, {:inch_ex, github: "rrrene/inch_ex", only: [:dev, :test]}, {:credo, "~> 1.0", only: [:dev, :test], runtime: false} ...
23.319149
68
0.558394
4acbf2df4096d2714f4501e7b694d9b4edc2db62
1,016
ex
Elixir
test/support/conn_case.ex
mayel/polaris
9b610f83883d009847a72452635d18427f1c7872
[ "Apache-2.0" ]
2
2020-05-02T00:16:35.000Z
2020-06-18T11:43:17.000Z
test/support/conn_case.ex
mayel/polaris
9b610f83883d009847a72452635d18427f1c7872
[ "Apache-2.0" ]
2
2021-03-10T10:35:32.000Z
2021-05-11T06:13:28.000Z
test/support/conn_case.ex
mayel/polaris
9b610f83883d009847a72452635d18427f1c7872
[ "Apache-2.0" ]
2
2020-12-03T10:41:14.000Z
2022-01-17T20:22:50.000Z
defmodule PolarisWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if th...
29.028571
61
0.737205
4acbf4caf4ba4f9a3b9154c5e8bd0964adea79aa
18,187
ex
Elixir
lib/mix/lib/mix/utils.ex
flash4syth/elixir
466bfc79fbad69eb6c9e4e3f19c262cdd93d7817
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/utils.ex
flash4syth/elixir
466bfc79fbad69eb6c9e4e3f19c262cdd93d7817
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/mix/lib/mix/utils.ex
flash4syth/elixir
466bfc79fbad69eb6c9e4e3f19c262cdd93d7817
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Utils do @moduledoc false @doc """ Gets the Mix home. It uses the the locations `MIX_HOME`, `XDG_DATA_HOME/mix`, `~/.mix` with decreasing priority. Developers should only store entries in the `MIX_HOME` directory which are guaranteed to work across multiple Elixir versions, as it is n...
26.473071
103
0.61423
4acbfc42e922d9078f86cc494da9bfc92f23db3c
138
exs
Elixir
servers/exilp/apps/service/test/service_test.exs
cjimison/exilp
cb350c4dffe90d37607764e668e14e99bbad5428
[ "MIT" ]
null
null
null
servers/exilp/apps/service/test/service_test.exs
cjimison/exilp
cb350c4dffe90d37607764e668e14e99bbad5428
[ "MIT" ]
null
null
null
servers/exilp/apps/service/test/service_test.exs
cjimison/exilp
cb350c4dffe90d37607764e668e14e99bbad5428
[ "MIT" ]
null
null
null
defmodule ServiceTest do use ExUnit.Case doctest Service test "greets the world" do assert Service.hello() == :world end end
15.333333
36
0.710145
4acc2c8e7a2def2f54ca7c45883744b171695c78
338
ex
Elixir
lib/slackin_ex/web/controllers/main_controller.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
lib/slackin_ex/web/controllers/main_controller.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
lib/slackin_ex/web/controllers/main_controller.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
defmodule SlackinEx.Web.MainController do use SlackinEx.Web, :controller def index(conn, _params) do conn |> put_resp_content_type("text/html", nil) |> render("main.html", layout: false) end def badge(conn, _params) do conn |> put_resp_content_type("image/svg+xml", nil) |> render("badg...
21.125
50
0.671598
4accbedd391909b712b5b4c559f26df47915b779
1,832
exs
Elixir
test/lib/timber/utils/map_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/utils/map_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/utils/map_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
defmodule Timber.Utils.MapTest do defmodule TestStruct do defstruct [:key] end use Timber.TestCase alias Timber.Utils.Map, as: UtilsMap describe "Timber.Utils.Map.deep_from_struct/1" do test "normalizes a struct into maps" do m = %{key: %Timber.Contexts.UserContext{id: 1}} r = UtilsMap....
25.802817
62
0.561681
4acd08feb1f2dce3cd2085807ac0ee8c71ce08f7
1,125
ex
Elixir
elixir/codes-from-books/little-elixir/cap7/pooly/version-3/lib/pooly/server.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
1
2017-10-16T03:00:50.000Z
2017-10-16T03:00:50.000Z
elixir/codes-from-books/little-elixir/cap7/pooly/version-3/lib/pooly/server.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
null
null
null
elixir/codes-from-books/little-elixir/cap7/pooly/version-3/lib/pooly/server.ex
trxeste/wrk
3e05e50ff621866f0361cc8494ce8f6bb4d97fae
[ "BSD-3-Clause" ]
null
null
null
defmodule Pooly.Server do use GenServer import Supervisor.Spec ####### # API # ####### def start_link(pools_config) do GenServer.start_link(__MODULE__, pools_config, name: __MODULE__) end def checkout(pool_name) do GenServer.call(:"#{pool_name}Server", :checkout) end def checkin(pool_nam...
21.634615
98
0.635556
4acd0ab61d668695aee907eb2fbf85890b668730
2,263
ex
Elixir
clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_create_workload_operation_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_create_workload_operation_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_create_workload_operation_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.920635
160
0.731772
4acd19540404e365a806c5496a16ba176dc2af84
67
ex
Elixir
lib/storeHall_web/views/shared_view.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
null
null
null
lib/storeHall_web/views/shared_view.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
4
2019-07-16T06:24:42.000Z
2021-05-07T22:26:14.000Z
lib/storeHall_web/views/shared_view.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
1
2018-11-23T21:13:31.000Z
2018-11-23T21:13:31.000Z
defmodule StoreHallWeb.SharedView do use StoreHallWeb, :view end
16.75
36
0.820896
4acd29300c53663a9a9371585548f31545df4fc6
1,077
exs
Elixir
test/day_16_ticket_translation_test.exs
scmx/advent-of-code-2020-elixir
f60159e1a8827c6e033f5f4b2d47ea7edd49db5f
[ "MIT" ]
1
2021-01-07T07:00:16.000Z
2021-01-07T07:00:16.000Z
test/day_16_ticket_translation_test.exs
scmx/advent-of-code-2020-elixir
f60159e1a8827c6e033f5f4b2d47ea7edd49db5f
[ "MIT" ]
null
null
null
test/day_16_ticket_translation_test.exs
scmx/advent-of-code-2020-elixir
f60159e1a8827c6e033f5f4b2d47ea7edd49db5f
[ "MIT" ]
null
null
null
defmodule Adventofcode.Day16TicketTranslationTest do use Adventofcode.FancyCase import Adventofcode.Day16TicketTranslation alias Adventofcode.Day16TicketTranslation.{Parser, Part2} describe "part_1/1" do @example """ class: 1-3 or 5-7 row: 6-11 or 33-44 seat: 13-40 or 45-50 your ticket: ...
19.581818
72
0.61467
4acd57d7f0bee54ea0729a9cacb1d4a4804b6910
14,288
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/creatives.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/creatives.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/creatives.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
40.706553
211
0.676302
4acd580c1e0338e7a6176db76a2ae1adb0cfd789
2,226
ex
Elixir
distributor/lib/distributor/application.ex
fknop/distributor
1b1a4910ec0887b8c10c636e55f15921d67bfa86
[ "MIT" ]
1
2019-12-27T10:21:13.000Z
2019-12-27T10:21:13.000Z
distributor/lib/distributor/application.ex
fknop/distributor
1b1a4910ec0887b8c10c636e55f15921d67bfa86
[ "MIT" ]
209
2019-12-25T17:16:14.000Z
2022-03-25T23:13:05.000Z
distributor/lib/distributor/application.ex
fknop/distributor
1b1a4910ec0887b8c10c636e55f15921d67bfa86
[ "MIT" ]
null
null
null
defmodule Distributor.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ {Cluster.Supervisor, [Application.get_env...
28.909091
95
0.657233
4acd6e90970cd15a528f4c9d2bc95b353fb983a9
1,723
ex
Elixir
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.659574
288
0.750435
4acd73a017f477b413a9092bd012a16eff544327
716
exs
Elixir
elixir/026/026.exs
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
36
2015-01-24T08:11:52.000Z
2021-03-21T00:32:00.000Z
elixir/026/026.exs
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
null
null
null
elixir/026/026.exs
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
4
2015-01-24T08:17:42.000Z
2022-01-11T16:10:56.000Z
defmodule Euler do def divide(a, b) when is_integer(a) and is_integer(b) and b != 0 do q = div(a, b) r = rem(a, b) seen = Map.put(%{}, r, 0) digits = [] divide(b, q, r, seen, digits) end defp divide(b, q, r, seen, digits) do r = r * 10 digits = digits ++ [div(r, b)] r = rem(...
19.351351
80
0.537709
4acd79d519d7e15bf3ba9622dac6a5a3f9f645c7
7,493
exs
Elixir
test/console/services/plural_test.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
test/console/services/plural_test.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
test/console/services/plural_test.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
defmodule Console.Services.PluralTest do use Console.DataCase, async: false use Mimic alias Console.Services.Plural alias Console.Plural.{Queries, Manifest, Context} alias Console.Commands.Command setup :set_mimic_global describe "update_configuration/2" do @tag :skip test "it can update configu...
30.45935
104
0.526358
4acd7bc7ab13036c328047e739780967c27f648e
1,254
ex
Elixir
lib/birdcage_web/controllers/session_controller.ex
forest/birdcage
4c1d851d9ae01ebe94c0366a6e2d932db7435d19
[ "Apache-2.0" ]
2
2020-10-04T16:07:25.000Z
2020-12-25T14:28:28.000Z
lib/birdcage_web/controllers/session_controller.ex
forest/birdcage
4c1d851d9ae01ebe94c0366a6e2d932db7435d19
[ "Apache-2.0" ]
1
2020-07-10T00:50:28.000Z
2020-07-10T00:55:58.000Z
lib/birdcage_web/controllers/session_controller.ex
forest/birdcage
4c1d851d9ae01ebe94c0366a6e2d932db7435d19
[ "Apache-2.0" ]
null
null
null
defmodule BirdcageWeb.SessionController do use BirdcageWeb, :controller action_fallback BirdcageWeb.FallbackController @client_id get_in(Birdcage.Application.config(), [:openid_connect, :client_id]) @client_role get_in(Birdcage.Application.config(), [:openid_connect, :client_role]) def authenticate(conn, _...
27.866667
88
0.635566
4acd7d922c372097c5354af323ad3238fec55ebc
43
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/MatchedCallOperationAtEnd.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/MatchedCallOperationAtEnd.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/MatchedCallOperationAtEnd.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
one.( one, two positional, key: value )
10.75
28
0.627907
4acd8df894c1da7501295e6204a7dd25b06d0021
508
exs
Elixir
priv/repo/migrations/20170225140728_create_todo_list.exs
sprql/planner
9f42b34dc511bfe1668b7092d0a68924b9dc9501
[ "MIT" ]
null
null
null
priv/repo/migrations/20170225140728_create_todo_list.exs
sprql/planner
9f42b34dc511bfe1668b7092d0a68924b9dc9501
[ "MIT" ]
null
null
null
priv/repo/migrations/20170225140728_create_todo_list.exs
sprql/planner
9f42b34dc511bfe1668b7092d0a68924b9dc9501
[ "MIT" ]
null
null
null
defmodule Planner.Repo.Migrations.CreatePlanner.Todo.List do use Ecto.Migration def change do create table(:todo_lists, primary_key: false) do add :id, :uuid, primary_key: true, default: fragment("uuid_generate_v4()") add :project_id, references(:projects, on_delete: :nothing, type: :uuid) ad...
25.4
80
0.673228
4acd9f75bc4705f4263467dbf2980a56fb972c13
1,823
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/add_data_source_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/add_data_source_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sheets/lib/google_api/sheets/v4/model/add_data_source_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...
36.46
134
0.745474
4acdaecdc068fcdc3d75ed85232aba1cf94c8c5e
1,217
ex
Elixir
web/views/error_helpers.ex
grych/elph
64654a166cfca2af6e2b8bf318bba8fd297b42f8
[ "MIT", "Unlicense" ]
null
null
null
web/views/error_helpers.ex
grych/elph
64654a166cfca2af6e2b8bf318bba8fd297b42f8
[ "MIT", "Unlicense" ]
null
null
null
web/views/error_helpers.ex
grych/elph
64654a166cfca2af6e2b8bf318bba8fd297b42f8
[ "MIT", "Unlicense" ]
null
null
null
defmodule Elph.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error), cla...
29.682927
70
0.664749
4acdcb8f27c8ec7727e68e25dda8218266025a61
671
ex
Elixir
lib/grpc/time_utils.ex
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
561
2019-03-18T09:10:57.000Z
2022-03-27T17:34:59.000Z
lib/grpc/time_utils.ex
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
94
2019-03-20T09:34:38.000Z
2022-02-27T20:44:04.000Z
lib/grpc/time_utils.ex
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
112
2019-03-25T03:27:26.000Z
2022-03-21T12:43:59.000Z
defmodule GRPC.TimeUtils do @moduledoc false @doc """ Returns relative time in milliseconds. ## Examples iex> from = DateTime.utc_now iex> us = DateTime.to_unix(from, :microsecond) iex> datetime = DateTime.from_unix!(us + 5005, :microsecond) iex> Float.round(GRPC.TimeUtils.to_relative...
26.84
86
0.692996
4ace49ed95bee8c1f2e3988a92c44c47508d3b6a
11,890
exs
Elixir
test/cid_test.exs
nocursor/ex-cid
ee9304dca50514ee75ebfb4917597d32b4a3c036
[ "MIT" ]
14
2018-11-22T14:02:59.000Z
2022-01-29T08:06:33.000Z
test/cid_test.exs
nelsonic/ex-cid
42282b6462bda76978f6298a8d51bd8f583c5d99
[ "MIT" ]
2
2018-12-07T11:34:11.000Z
2021-09-29T18:10:16.000Z
test/cid_test.exs
nelsonic/ex-cid
42282b6462bda76978f6298a8d51bd8f583c5d99
[ "MIT" ]
2
2018-12-07T11:14:07.000Z
2019-01-17T16:50:45.000Z
defmodule CIDTest do use ExUnit.Case, async: true doctest CID require Multibase #TODO: better test setup to include more re-used data or scope the data, but the data is pretty simple so.......maybe not setup_all do digest = :crypto.hash(:sha256, "hello world") {:ok, multihash} = Multihash.encode(:sh...
47.18254
153
0.696468
4ace4c1d7e933a6bce20893d0facb7823b166801
954
ex
Elixir
lib/poxa/socket_id.ex
robktek/poxa
1c330789735f9bc1e91c3dfa7a10edb3aff50aab
[ "MIT" ]
null
null
null
lib/poxa/socket_id.ex
robktek/poxa
1c330789735f9bc1e91c3dfa7a10edb3aff50aab
[ "MIT" ]
null
null
null
lib/poxa/socket_id.ex
robktek/poxa
1c330789735f9bc1e91c3dfa7a10edb3aff50aab
[ "MIT" ]
null
null
null
defmodule Poxa.SocketId do @doc """ Generates a string on the form 123.456 """ @spec generate! :: binary def generate! do <<part1::32, part2::32>> = :crypto.strong_rand_bytes(8) "#{part1}.#{part2}" end @doc """ Returns wheter a socket id is valid or not. iex> Poxa.SocketId.valid? "123.456" ...
21.681818
61
0.65304
4ace550eaf2e30d98b76b3b2ada9a9671ee7cd71
2,142
ex
Elixir
clients/dns/lib/google_api/dns/v1/model/managed_zone_peering_config_target_network.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/model/managed_zone_peering_config_target_network.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dns/lib/google_api/dns/v1/model/managed_zone_peering_config_target_network.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.415094
356
0.739963
4ace5fb9a374020d9453b4dd3c3b936a7f4214e8
9,237
ex
Elixir
lib/elixir/lib/dict.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
4
2015-12-22T02:46:39.000Z
2016-04-26T06:11:09.000Z
lib/elixir/lib/dict.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/dict.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
defmodule Dict do @moduledoc ~S""" WARNING: this module is deprecated. If you need a general dictionary, use the `Map` module. If you need to manipulate keyword lists, use `Keyword`. To convert maps into keywords and vice-versa, use the `new` function in the respective modules. """ @type key :: any ...
25.100543
76
0.530475
4ace7467685939dea5517e450c9fb984ae8a5111
548
ex
Elixir
lib/translator.ex
hedgesky/slime_conveter_app
d8b51a6fe384820af547b026c9c5ac068357f88a
[ "MIT" ]
1
2021-01-19T16:32:39.000Z
2021-01-19T16:32:39.000Z
lib/translator.ex
hedgesky/slime_conveter_app
d8b51a6fe384820af547b026c9c5ac068357f88a
[ "MIT" ]
null
null
null
lib/translator.ex
hedgesky/slime_conveter_app
d8b51a6fe384820af547b026c9c5ac068357f88a
[ "MIT" ]
null
null
null
defmodule Translator do def slime2html(input) do try do html = input |> strip_or_empty |> Slime.Renderer.precompile |> Indentifier.indentify { :ok, html } rescue e -> { :error, friendly_error_message(e) } end end defp strip_or_empty(nil), do: ...
20.296296
77
0.638686
4acea833311edbdd7e100c70d0097ccce7d817b6
2,168
exs
Elixir
test/support/trace.exs
kantox/plug_amqp
6bf20180220a5dc299d63623538670659f2553f1
[ "MIT" ]
1
2020-05-12T08:05:09.000Z
2020-05-12T08:05:09.000Z
test/support/trace.exs
kantox/plug_amqp
6bf20180220a5dc299d63623538670659f2553f1
[ "MIT" ]
21
2020-05-08T17:26:15.000Z
2021-08-02T10:24:02.000Z
test/support/trace.exs
kantox/plug_amqp
6bf20180220a5dc299d63623538670659f2553f1
[ "MIT" ]
null
null
null
defmodule Support.Trace do # # Trace Macro # # Allows tracing calls to a function from the current process. This is useful # for testing purposes. It also allow us to block the execution of a function. # # ## Examples # # my_func = trace(:my_id, fn a -> a + 40 end) # my_func(2) # asser...
27.794872
97
0.604705
4acf049ef89bffb755827b6dd8966f994395b4d6
3,695
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_executed_action_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_executed_action_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_executed_action_metadata.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...
46.772152
135
0.728011
4acf13c4b9f26e62c7686d91e2ef11f672ef602d
3,881
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/scheduling.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/scheduling.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/scheduling.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "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...
57.073529
437
0.733058
4acf7af29e728f8160f99fa2443a857ff6b79c3a
894
ex
Elixir
clients/billing_budgets/lib/google_api/billing_budgets/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "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...
33.111111
74
0.761745
4acf8b5c0d65f566210ee4ca84165f9e9ae18458
150
exs
Elixir
02_counting_number_characters/test/counting_number_characters_test.exs
mkchandler/elixir-school
cc08bd723db00cc35cd2d6b07abe519e5d102ca0
[ "MIT" ]
1
2015-12-15T04:46:41.000Z
2015-12-15T04:46:41.000Z
02_counting_number_characters/test/counting_number_characters_test.exs
mkchandler/elixir-school
cc08bd723db00cc35cd2d6b07abe519e5d102ca0
[ "MIT" ]
null
null
null
02_counting_number_characters/test/counting_number_characters_test.exs
mkchandler/elixir-school
cc08bd723db00cc35cd2d6b07abe519e5d102ca0
[ "MIT" ]
null
null
null
defmodule CountingNumberCharactersTest do use ExUnit.Case doctest CountingNumberCharacters test "the truth" do assert 1 + 1 == 2 end end
16.666667
41
0.746667
4ad015ba82528ff6f28c617ddbaa146b7311eefa
3,033
ex
Elixir
clients/pub_sub/lib/google_api/pub_sub/v1/model/binding.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/binding.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/binding.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
56.166667
1,055
0.726014
4ad046eedff7ab94a9c67e0e3f97e2f79be907ea
14,452
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/transaction_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/transaction_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/spanner/lib/google_api/spanner/v1/model/transaction_options.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...
272.679245
12,033
0.807985
4ad05809ef97ba6e693a0d65410d28c7ff644d61
5,229
ex
Elixir
apps/mishka_content/lib/cache/content_draft_management.ex
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
35
2021-06-26T09:05:50.000Z
2022-03-30T15:41:22.000Z
apps/mishka_content/lib/cache/content_draft_management.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
101
2021-01-01T09:54:07.000Z
2022-03-28T10:02:24.000Z
apps/mishka_content/lib/cache/content_draft_management.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
8
2021-01-17T17:08:07.000Z
2022-03-11T16:12:06.000Z
defmodule MishkaContent.Cache.ContentDraftManagement do use GenServer, restart: :temporary require Logger alias MishkaContent.Cache.ContentDraftDynamicSupervisor @type params() :: map() @type id() :: String.t() @type token() :: String.t() def start_link(args) do id = Keyword.get(args, :id) || Ecto.U...
32.886792
166
0.69497
4ad08b0dff0f3cfd3951d60290643f193b42dce8
2,545
exs
Elixir
test/json_rpc/parser_test.exs
versus-systems/json_rpc_toolkit
7fd2181e342d86cab029f8975ef78afe519fed8e
[ "MIT" ]
2
2020-04-04T17:56:17.000Z
2021-11-04T17:14:15.000Z
test/json_rpc/parser_test.exs
versus-systems/json_rpc_toolkit
7fd2181e342d86cab029f8975ef78afe519fed8e
[ "MIT" ]
2
2021-07-01T23:23:54.000Z
2021-08-16T22:18:28.000Z
test/json_rpc/parser_test.exs
versus-systems/json_rpc_toolkit
7fd2181e342d86cab029f8975ef78afe519fed8e
[ "MIT" ]
null
null
null
defmodule JSONRPC.ParserTest do use ExUnit.Case doctest JSONRPC.Parser test "parses JSON RPC requests" do request = "{\"jsonrpc\":\"2.0\",\"id\":\"123abc\",\"method\":\"test.add\",\"params\":{\"x\":2,\"y\":3}}" assert JSONRPC.Parser.parse(request) == %JSONRPC.Request{ error: nil, ...
28.595506
116
0.450688
4ad0ac285fa165247b2e488e0ab32bb21f6dd9cd
3,725
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/model/adsense_reports_generate_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/ad_sense/lib/google_api/ad_sense/v14/model/adsense_reports_generate_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/ad_sense/lib/google_api/ad_sense/v14/model/adsense_reports_generate_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...
48.376623
298
0.698523
4ad0c99367e4b35d58ca1219f46e4b24bd2a51bd
10,463
exs
Elixir
lib/elixir/test/elixir/path_test.exs
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/path_test.exs
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/elixir/test/elixir/path_test.exs
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule PathTest do use ExUnit.Case, async: true doctest Path import PathHelpers if :file.native_name_encoding() == :utf8 do test "wildcard with UTF-8" do File.mkdir_p(tmp_path("héllò")) assert Path.wildcard(tmp_path("héllò")) == [tmp_path("hél...
38.895911
98
0.593711
4ad0d6be9c02bbfa6fdd1fadf56f684d6459e1af
4,827
ex
Elixir
lib/correios/cep.ex
lccezinha/correios-cep-elixir
fee32a9146167c13e169f682ed04837d9e9a525e
[ "Apache-2.0" ]
null
null
null
lib/correios/cep.ex
lccezinha/correios-cep-elixir
fee32a9146167c13e169f682ed04837d9e9a525e
[ "Apache-2.0" ]
null
null
null
lib/correios/cep.ex
lccezinha/correios-cep-elixir
fee32a9146167c13e169f682ed04837d9e9a525e
[ "Apache-2.0" ]
null
null
null
defmodule Correios.CEP do @moduledoc """ Find Brazilian addresses by zip code, directly from Correios API. No HTML parsers. """ alias Correios.CEP.{Address, Client, Error, Parser} @type t :: {:ok, Address.t()} | {:error, Error.t()} @zipcode_regex ~r/^\d{5}-?\d{3}$/ @doc """ Finds address by the give...
30.16875
128
0.594158
4ad0da118a29c3b396d80069693da8d060e6a492
1,111
exs
Elixir
mix.exs
jeffgrunewald/divo_pulsar
b49d7aefe4b982b1ca28b54bfc5c73cebd1ee817
[ "Apache-2.0" ]
1
2021-01-20T08:50:12.000Z
2021-01-20T08:50:12.000Z
mix.exs
jeffgrunewald/divo_pulsar
b49d7aefe4b982b1ca28b54bfc5c73cebd1ee817
[ "Apache-2.0" ]
null
null
null
mix.exs
jeffgrunewald/divo_pulsar
b49d7aefe4b982b1ca28b54bfc5c73cebd1ee817
[ "Apache-2.0" ]
2
2020-11-04T04:21:36.000Z
2021-01-13T09:23:37.000Z
defmodule DivoPulsar.MixProject do use Mix.Project @github "https://github.com/jeffgrunewald/divo_pulsar" def project() do [ app: :divo_pulsar, version: "0.1.2", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), package: package(), ...
19.839286
67
0.563456
4ad0f19a37c0c461720df04efceca695a7969965
1,161
ex
Elixir
lib/athel/user_cache.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
14
2016-09-12T02:45:12.000Z
2021-02-08T04:13:29.000Z
lib/athel/user_cache.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
3
2016-09-12T05:17:35.000Z
2016-09-14T16:35:04.000Z
lib/athel/user_cache.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
1
2018-02-12T04:30:52.000Z
2018-02-12T04:30:52.000Z
defmodule Athel.UserCache do use GenServer # API def start_link(), do: start_link([]) def start_link([]) do GenServer.start_link(__MODULE__, :ok, name: UserCache) end def get(email) do GenServer.call(UserCache, {:get, email}) end def put(user) do GenServer.cast(UserCache, {:put, user}) ...
20.732143
77
0.633075
4ad117dc66397a83e5c4208e509052f6669930b1
4,706
exs
Elixir
priv/repo/seeds.exs
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # AfterGlow.Repo.insert!(%AfterGlow.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they w...
26.438202
102
0.599023
4ad1315106e5b358267c8d4c0be734cc123d0248
3,056
ex
Elixir
lib/codes/codes_j68.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_j68.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_j68.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_J68 do alias IcdCode.ICDCode def _J680 do %ICDCode{full_code: "J680", category_code: "J68", short_code: "0", full_name: "Bronchitis and pneumonitis due to chemicals, gases, fumes and vapors", short_name: "Bronchitis and pneumonitis due to ch...
43.657143
125
0.666885
4ad14fc50ff6b571177819add1106952ff47f253
1,598
ex
Elixir
game_server_umbrella/apps/game_server_web/lib/game_server_web/endpoint.ex
jburky/dara-dots
7a67de3d77448792435ccbf9fb8291e821fed4ac
[ "MIT" ]
6
2021-03-25T21:02:28.000Z
2022-02-10T08:11:28.000Z
game_server_umbrella/apps/game_server_web/lib/game_server_web/endpoint.ex
jburky/dara-dots
7a67de3d77448792435ccbf9fb8291e821fed4ac
[ "MIT" ]
20
2020-09-02T23:17:29.000Z
2022-03-27T22:54:20.000Z
game_server_umbrella/apps/game_server_web/lib/game_server_web/endpoint.ex
jburky/dara-dots
7a67de3d77448792435ccbf9fb8291e821fed4ac
[ "MIT" ]
2
2021-03-25T21:08:15.000Z
2021-09-25T19:11:36.000Z
defmodule GameServerWeb.Endpoint do use Phoenix.Endpoint, otp_app: :game_server_web # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: ...
29.592593
97
0.72403
4ad16107e278ed809cca49b9be367870b7b6235e
2,972
exs
Elixir
mix.exs
scottming/nebulex_redis_adapter
896a023f7048473f7330e85274e4e90789eafdaf
[ "MIT" ]
null
null
null
mix.exs
scottming/nebulex_redis_adapter
896a023f7048473f7330e85274e4e90789eafdaf
[ "MIT" ]
null
null
null
mix.exs
scottming/nebulex_redis_adapter
896a023f7048473f7330e85274e4e90789eafdaf
[ "MIT" ]
null
null
null
defmodule NebulexRedisAdapter.MixProject do use Mix.Project @version "2.0.0-rc.1" def project do [ app: :nebulex_redis_adapter, version: @version, elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), aliases: aliases(), deps: deps(), # Docs name: "Nebul...
23.401575
78
0.559892
4ad1842cf4743a3e51bc3212dc80180b7baae450
748
exs
Elixir
test/expr/dgraph_ex_uid_test.exs
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
21
2017-08-20T06:19:37.000Z
2021-02-04T23:22:10.000Z
test/expr/dgraph_ex_uid_test.exs
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
43
2017-08-06T21:03:28.000Z
2018-09-08T13:00:35.000Z
test/expr/dgraph_ex_uid_test.exs
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
1
2017-10-12T02:20:13.000Z
2017-10-12T02:20:13.000Z
defmodule DgraphEx.UidTest do use ExUnit.Case doctest DgraphEx.Expr.Uid import DgraphEx alias DgraphEx.Expr.Uid alias DgraphEx.Query.Block test "uid given a string renders a plain-old uid literal" do assert uid("0x9") |> Uid.render == "<0x9>" end test "uid given a list of strings renders a multi...
25.793103
71
0.640374
4ad1c1a80dba0c248a166bf53f22573f1da54fa7
1,257
exs
Elixir
src/035/problem035.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
9
2018-05-06T04:43:08.000Z
2020-12-01T20:51:34.000Z
src/035/problem035.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
null
null
null
src/035/problem035.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
null
null
null
#!/usr/bin/env elixir defmodule Problem035 do @moduledoc """ The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97. How many circular primes are ther...
27.326087
123
0.645187
4ad1c9d4a238368b00cbc69e771367e541affb8a
3,215
exs
Elixir
test/cf_sync/http_client/httpoison_test.exs
3h15/CFSync
0b5024688bcb40786c8313e77385f935686d1bdd
[ "MIT" ]
null
null
null
test/cf_sync/http_client/httpoison_test.exs
3h15/CFSync
0b5024688bcb40786c8313e77385f935686d1bdd
[ "MIT" ]
null
null
null
test/cf_sync/http_client/httpoison_test.exs
3h15/CFSync
0b5024688bcb40786c8313e77385f935686d1bdd
[ "MIT" ]
null
null
null
defmodule CFSync.HTTPClient.HTTPoisonTest do use ExUnit.Case, async: true doctest CFSync.HTTPClient.HTTPoison import ExUnit.CaptureLog import Mox alias CFSyncTest.FakeHTTPoison alias CFSync.HTTPClient setup :verify_on_exit! test "It calls request function with correct data" do url = Faker.Inter...
23.639706
86
0.55832
4ad1d4a19f1025fb78ff3cc9f9618383ac119f8e
3,664
ex
Elixir
lib/structs/invite.ex
Drahcirius/crux_structs
53ba17c6ab0adfadbf69e236ec936fed8015420e
[ "MIT" ]
null
null
null
lib/structs/invite.ex
Drahcirius/crux_structs
53ba17c6ab0adfadbf69e236ec936fed8015420e
[ "MIT" ]
null
null
null
lib/structs/invite.ex
Drahcirius/crux_structs
53ba17c6ab0adfadbf69e236ec936fed8015420e
[ "MIT" ]
null
null
null
defmodule Crux.Structs.Invite do @moduledoc """ Represents a Discord [Invite Object](https://discordapp.com/developers/docs/resources/invite#invite-object) List of what property can be present fetched with what function: | Property | `Rest.get_invite/1` | `Rest.create_channel_invite/1` | `Re...
40.711111
114
0.415666