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
4a29f79354e113db0a476d3690a4b92cf93ed2c8
618
ex
Elixir
phoenix_crud/web/router.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
phoenix_crud/web/router.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
phoenix_crud/web/router.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule PhoenixCrud.Router do use Phoenix.Router pipeline :browser do plug :accepts, ~w(html) plug :fetch_session plug :fetch_flash plug :protect_from_forgery end pipeline :api do plug :accepts, ~w(json) end scope "/", PhoenixCrud do pipe_through :browser # Use the default brows...
22.071429
75
0.677994
4a2a043e946dba041496f523e038c1b29a6ae6a6
150
exs
Elixir
test/repo_example_test.exs
ricardocorral/exreleasetest
bc20e709f0ca2f5ced5a8091ad607c3e620f13e9
[ "MIT" ]
null
null
null
test/repo_example_test.exs
ricardocorral/exreleasetest
bc20e709f0ca2f5ced5a8091ad607c3e620f13e9
[ "MIT" ]
null
null
null
test/repo_example_test.exs
ricardocorral/exreleasetest
bc20e709f0ca2f5ced5a8091ad607c3e620f13e9
[ "MIT" ]
null
null
null
defmodule RepoExampleTest do use ExUnit.Case doctest RepoExample test "greets the world" do assert RepoExample.hello() == :world end end
16.666667
40
0.733333
4a2a2200b3a6c7ac026b52effde5a81769af0d5e
6,031
exs
Elixir
.credo.exs
alisinabh/fusion_dsl
7a90d6faf184a9cb9252a475e5784e4373d641e1
[ "MIT" ]
null
null
null
.credo.exs
alisinabh/fusion_dsl
7a90d6faf184a9cb9252a475e5784e4373d641e1
[ "MIT" ]
null
null
null
.credo.exs
alisinabh/fusion_dsl
7a90d6faf184a9cb9252a475e5784e4373d641e1
[ "MIT" ]
null
null
null
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
37.459627
80
0.632233
4a2a22da734d34408d3452956ef35377aba16904
260
exs
Elixir
coinfeed/test/coindata/coindata_test.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
coinfeed/test/coindata/coindata_test.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
coinfeed/test/coindata/coindata_test.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
defmodule CoinFeed.Test do use ExUnit.Case, async: false test "fetch BTC price" do data = CoinFeed.Data.fetch(:btc) IO.inspect data, label: "mock btc" assert data["id"] == "BTC" assert data["price_btc"] == 1 end end
26
42
0.596154
4a2a29b61286a5bb2a9fdbc5d7d11ccd6163bbd4
1,396
ex
Elixir
test/support/factory.ex
sfusato/trans
d60e6c047517a6da6b3e16fdc55b8c3955a2c927
[ "Apache-2.0" ]
null
null
null
test/support/factory.ex
sfusato/trans
d60e6c047517a6da6b3e16fdc55b8c3955a2c927
[ "Apache-2.0" ]
null
null
null
test/support/factory.ex
sfusato/trans
d60e6c047517a6da6b3e16fdc55b8c3955a2c927
[ "Apache-2.0" ]
null
null
null
alias Trans.Article alias Trans.Comment alias Trans.TestRepo, as: Repo defmodule Trans.Factory do @moduledoc false def build(factory, attributes) do factory |> build() |> struct(attributes) end def insert(factory, attributes \\ []) do factory |> build(attributes) |> Repo.insert!() end def build(...
25.381818
68
0.594556
4a2a2a717213c5ac11d28b44ef16f4d9b1eb4ccf
1,576
exs
Elixir
test/scopes/translation_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
test/scopes/translation_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
test/scopes/translation_test.exs
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule AccentTest.Scopes.Translation do use Accent.RepoCase, async: true doctest Accent.Scopes.Translation alias Accent.{Operation, Project, Repo, Translation} alias Accent.Scopes.Translation, as: Scope setup do project = %Project{main_color: "#f00", name: "My project"} |> Repo.insert!() {:ok, [...
42.594595
161
0.677665
4a2a3828eb43d8fb7022dd3796b0362abfe5f902
178
exs
Elixir
apps/ello_auth/config/prod.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_auth/config/prod.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_auth/config/prod.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
use Mix.Config config :ello_auth, jwt_alg: :rs512, jwt_private_key: System.get_env("JWT_PRIVATE_KEY"), jwt_exp_duration: System.get_env("ACCESS_TOKEN_EXPIRATION_SECONDS")
25.428571
69
0.797753
4a2a51025f51a972dc37370b6b007aed26a960ba
1,019
ex
Elixir
lib/free_fall/application.ex
Goose-Vic/free_fall
84d95e33cbd0d6e06dd9170576726929e97b25ac
[ "MIT" ]
1
2021-11-17T21:16:30.000Z
2021-11-17T21:16:30.000Z
lib/free_fall/application.ex
Goose-Vic/free_fall
84d95e33cbd0d6e06dd9170576726929e97b25ac
[ "MIT" ]
null
null
null
lib/free_fall/application.ex
Goose-Vic/free_fall
84d95e33cbd0d6e06dd9170576726929e97b25ac
[ "MIT" ]
9
2021-07-29T23:36:54.000Z
2021-09-30T22:47:39.000Z
defmodule FreeFall.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository FreeFall.Repo, # Start the Telemetry supervisor FreeF...
29.114286
66
0.704612
4a2a5ecbcae4e328bf011692ea2d49f46d84bbaf
711
ex
Elixir
lib/doctor_schedule_web/controllers/auth/guardian.ex
romenigld/doctor_schedule
40fb31b58d5d1f9f2b1809b869396d9f57244cc5
[ "MIT" ]
2
2022-03-11T12:15:01.000Z
2022-03-11T13:53:21.000Z
lib/doctor_schedule_web/controllers/auth/guardian.ex
theguuholi/doctor_schedule
a92dfa92d1398c59718be2428d36bb326d6bc361
[ "MIT" ]
3
2020-12-12T22:10:17.000Z
2021-04-05T12:53:12.000Z
lib/doctor_schedule_web/controllers/auth/guardian.ex
romenigld/doctor_schedule
40fb31b58d5d1f9f2b1809b869396d9f57244cc5
[ "MIT" ]
1
2021-02-26T04:24:34.000Z
2021-02-26T04:24:34.000Z
defmodule DoctorScheduleWeb.Auth.Guardian do use Guardian, otp_app: :doctor_schedule alias DoctorSchedule.Accounts.Repositories.AccountRepository alias DoctorSchedule.Accounts.Services.Session def subject_for_token(user, _claims), do: {:ok, to_string(user.id)} def resource_from_claims(claims) do user =...
22.21875
69
0.680731
4a2a6c8d3ca61eca7b4246917e11b8f0d08a059c
3,750
ex
Elixir
lib/api/checkout_api.ex
iwatakeshi/square-elixir-sdk
011b4575b0723a16942b87b6fb98fab558e8d847
[ "Apache-2.0" ]
null
null
null
lib/api/checkout_api.ex
iwatakeshi/square-elixir-sdk
011b4575b0723a16942b87b6fb98fab558e8d847
[ "Apache-2.0" ]
null
null
null
lib/api/checkout_api.ex
iwatakeshi/square-elixir-sdk
011b4575b0723a16942b87b6fb98fab558e8d847
[ "Apache-2.0" ]
null
null
null
defmodule Square.Checkout do @doc """ Links a `checkoutId` to a `checkout_page_url` that customers will be directed to in order to provide their payment information using a payment processing workflow hosted on connect.squareup.com. ```ruby def create_checkout(client, location_id, body) ``` ### Parame...
35.714286
281
0.5376
4a2a777cb75cf859eac0bceff37bb81a89a84f7b
615
exs
Elixir
apps/day13/mix.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
apps/day13/mix.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
apps/day13/mix.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
defmodule Day13.Mixfile do use Mix.Project def project do [ app: :day13, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.5", start_permanent: Mix.env == :prod...
19.21875
59
0.554472
4a2a98b00ad37393df70b2fad04f7856b4b621b8
783
ex
Elixir
apps/common/lib/common/tick.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
apps/common/lib/common/tick.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
8
2020-11-16T09:59:12.000Z
2020-11-16T10:13:07.000Z
apps/common/lib/common/tick.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
defmodule Common.Tick do @moduledoc """ Kill cord - times out and dies if not called within a timeout period. Process linking / supervision can be used to cause the death of the other processs for a fresh start. """ use GenServer @doc """ Options, GenServer start options (eg name) plus: * timeout - t...
22.371429
102
0.667944
4a2ab83865190b5831f3e7ec9e4492f7a223cf20
4,268
exs
Elixir
api/test/controllers/bookmark_controller_test.exs
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
null
null
null
api/test/controllers/bookmark_controller_test.exs
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
6
2021-05-25T05:47:16.000Z
2022-02-26T04:42:31.000Z
api/test/controllers/bookmark_controller_test.exs
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
null
null
null
defmodule IntoTheBookmarks.BookmarkControllerTest do use IntoTheBookmarks.ConnCase alias IntoTheBookmarks.Bookmark alias IntoTheBookmarks.User alias IntoTheBookmarks.Category @valid_attrs %{bookmark_notes: "some bookmark_notes", bookmark_title: "some bookmark_title", bookmark_url: "some bookmark_url"} @inv...
49.627907
140
0.701734
4a2ae2189951516eba40dddc48374e7504908558
577
ex
Elixir
lib/api/v2/resources/social_connections/social_connections.ex
JayPeet/patreon-elixir
fdb3bb004049e20a2f89fc46e19ed7626196a16e
[ "MIT" ]
1
2022-03-22T21:33:44.000Z
2022-03-22T21:33:44.000Z
lib/api/v2/resources/social_connections/social_connections.ex
JayPeet/patreon-elixir
fdb3bb004049e20a2f89fc46e19ed7626196a16e
[ "MIT" ]
5
2021-12-28T16:58:22.000Z
2022-03-24T18:39:08.000Z
lib/api/v2/resources/social_connections/social_connections.ex
JayPeet/patreon-elixir
fdb3bb004049e20a2f89fc46e19ed7626196a16e
[ "MIT" ]
null
null
null
defmodule Patreon.API.V2.Resource.SocialConnections do @type t :: %__MODULE__{ deviantart: map | nil, discord: Patreon.API.V2.Resource.SocialConnections.Discord.t | nil, facebook: map | nil, google: map | nil, instagram: map | nil, reddit: map | nil, spotify: map | nil, twitch: map | ...
18.612903
71
0.587522
4a2aefc73f5e21fd0247970e471d77a43710e553
174
ex
Elixir
lib/iex_test.ex
pragdave/iex_test
3607d9f4891d8bd07aeaa8b97ca30495751575b8
[ "MIT", "Unlicense" ]
null
null
null
lib/iex_test.ex
pragdave/iex_test
3607d9f4891d8bd07aeaa8b97ca30495751575b8
[ "MIT", "Unlicense" ]
null
null
null
lib/iex_test.ex
pragdave/iex_test
3607d9f4891d8bd07aeaa8b97ca30495751575b8
[ "MIT", "Unlicense" ]
null
null
null
defmodule IexTest do def start(argv \\ System.argv) do argv |> IexTest.Extract.iex_blocks |> List.flatten |> IexTest.Runner.test_blocks :ok end end
14.5
35
0.649425
4a2af0df73d2cf006c472beb6f36079b84d5af2f
1,837
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_entity_relation.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_entity_relation.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_entity_relation.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.672414
93
0.72074
4a2b0b1c86ecbf8eccf4f6f20d1f24bab174c6b2
460
ex
Elixir
lib/inertia_phoenix/view.ex
szTheory/inertia_phoenix
e402057ced14bdd020d4b1c4354b089aee773a75
[ "MIT" ]
null
null
null
lib/inertia_phoenix/view.ex
szTheory/inertia_phoenix
e402057ced14bdd020d4b1c4354b089aee773a75
[ "MIT" ]
61
2020-03-09T09:07:26.000Z
2021-08-03T03:28:55.000Z
lib/inertia_phoenix/view.ex
bigx333/inertia_phoenix
a7d8e8a8cdd6b5f061932f3575f396eb3cbc30ea
[ "MIT" ]
null
null
null
defmodule InertiaPhoenix.View do @moduledoc false import InertiaPhoenix alias Phoenix.HTML.Tag def render("inertia.html", assigns) do Tag.content_tag(:div, "", [ {:id, "app"}, {:data, [page: page_json(assigns)]} ]) end defp page_json(%{conn: conn}) do Jason.encode!(%{ compone...
20.909091
41
0.630435
4a2b198c10a89c98be3694dd717101c8fb070cbd
213
exs
Elixir
priv/repo/migrations/20161024142125_add_bibliograph_link.exs
mntns/artus
958380f42612ec0bc9d059037cf7b59dfbe1cfa9
[ "MIT" ]
null
null
null
priv/repo/migrations/20161024142125_add_bibliograph_link.exs
mntns/artus
958380f42612ec0bc9d059037cf7b59dfbe1cfa9
[ "MIT" ]
null
null
null
priv/repo/migrations/20161024142125_add_bibliograph_link.exs
mntns/artus
958380f42612ec0bc9d059037cf7b59dfbe1cfa9
[ "MIT" ]
null
null
null
defmodule Artus.Repo.Migrations.AddBibliographLink do use Ecto.Migration def change do alter table(:entries) do add :bibliograph, references(:users) add :bibliograph_id, :id end end end
19.363636
53
0.70892
4a2b3656be0e8e339d1e0bb331bc376e0812f693
2,818
ex
Elixir
lib/mix/lib/mix/tasks/compile.elixir.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/mix/lib/mix/tasks/compile.elixir.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/compile.elixir.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Compile.Elixir do use Mix.Task.Compiler @recursive true @manifest "compile.elixir" @moduledoc """ Compiles Elixir source files. Elixir is smart enough to recompile only files that have changed and their dependencies. This means if `lib/a.ex` is invoking a function defined over `li...
33.152941
92
0.688786
4a2b3daf9280813ce4744863f1a6b162879a17ba
1,654
ex
Elixir
lib/live_beats/application.ex
dsdshcym/live_beats
554c97fde490b75cf1868e152a73f4066d8470b6
[ "MIT" ]
1
2022-02-15T08:06:08.000Z
2022-02-15T08:06:08.000Z
lib/live_beats/application.ex
dsdshcym/live_beats
554c97fde490b75cf1868e152a73f4066d8470b6
[ "MIT" ]
null
null
null
lib/live_beats/application.ex
dsdshcym/live_beats
554c97fde490b75cf1868e152a73f4066d8470b6
[ "MIT" ]
null
null
null
defmodule LiveBeats.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @impl true def start(_type, _args) do LiveBeats.MediaLibrary.attach() topologies = Application.get_env(:libcluster, :topologies) || [] ...
31.207547
78
0.695284
4a2b3e0cd5e856eda72f22c941f75d1e5c1ba414
1,877
exs
Elixir
clients/games_management/mix.exs
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/games_management/mix.exs
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/games_management/mix.exs
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.014925
110
0.662227
4a2b61725ad21e4512aa2fff951c69e92dc63154
589
ex
Elixir
apps/discovery_api/lib/discovery_api/data/system_name_cache.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/discovery_api/lib/discovery_api/data/system_name_cache.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/discovery_api/lib/discovery_api/data/system_name_cache.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule DiscoveryApi.Data.SystemNameCache do @moduledoc """ Simple module to cache systemName to dataset_id mapping """ require Logger def child_spec([]) do Supervisor.child_spec({Cachex, cache_name()}, id: __MODULE__) end def cache_name() do :system_name_cache end def put(id, org_name, d...
21.814815
65
0.704584
4a2b7e0ce0570e044a53aa96cd45b5deb6289255
3,650
ex
Elixir
lib/event_store/notifications/listener.ex
LeartS/eventstore
f0431bfefcaa1a6fa8251eb6dd0ae8def1d82961
[ "MIT" ]
null
null
null
lib/event_store/notifications/listener.ex
LeartS/eventstore
f0431bfefcaa1a6fa8251eb6dd0ae8def1d82961
[ "MIT" ]
null
null
null
lib/event_store/notifications/listener.ex
LeartS/eventstore
f0431bfefcaa1a6fa8251eb6dd0ae8def1d82961
[ "MIT" ]
null
null
null
defmodule EventStore.Notifications.Listener do @moduledoc false # Listener subscribes to event notifications using PostgreSQL's `LISTEN` # command. Whenever events are appended to storage a `NOTIFY` command is # executed by a trigger. The notification payload contains the first and last # event number of the...
30.165289
99
0.678904
4a2b905a88637db3b45b030a5af3c12d9dcd14c2
1,290
ex
Elixir
test/javascript_source_test.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
test/javascript_source_test.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
1
2020-11-11T15:16:51.000Z
2020-11-11T20:53:34.000Z
test/javascript_source_test.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
defmodule JavascriptSourceTest do use ExUnit.Case import Mox setup :verify_on_exit! test "can get associated jobs" do stub_json = """ {"data":[{"id":"c9572706-36e5-48c2-86be-7429ae4c3bae", "url_id":"123456", "src": "https://example.com/x.js", "javascript_libraries" : [{"id": "654321", "nam...
30.714286
123
0.482171
4a2b9f68439402ed1e1c4dff246599629ac99330
324
ex
Elixir
lib/raft/state.ex
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
lib/raft/state.ex
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
lib/raft/state.ex
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
defmodule Raft.State do @moduledoc """ Struct for the state of the local process """ defstruct [ :state, :term, :highest_seen_term, :leader_pid, :leader_node, :voted_for, :votes ] @doc """ States of a node """ def states() do ["follower", "candidate", "leader"] end ...
14.086957
43
0.583333
4a2bc16d187c86872c227345c0dcf28095f73d5a
533
ex
Elixir
lib/deparam/types/string.ex
tlux/deparam
8e8c16e3985eed09ea6f13dbd371b1e6f1adc150
[ "MIT" ]
null
null
null
lib/deparam/types/string.ex
tlux/deparam
8e8c16e3985eed09ea6f13dbd371b1e6f1adc150
[ "MIT" ]
null
null
null
lib/deparam/types/string.ex
tlux/deparam
8e8c16e3985eed09ea6f13dbd371b1e6f1adc150
[ "MIT" ]
null
null
null
defmodule Deparam.Types.String do @behaviour Deparam.Type @impl true def coerce("", %{modifier: :non_empty}), do: :error def coerce(value, %{modifier: :non_empty} = context) when is_binary(value) do coerce(value, %{context | modifier: nil}) end def coerce(value, _context) when is_binary(value) do ...
21.32
79
0.660413
4a2bde34891abbf9a5e543b5f888696e2885148f
419
ex
Elixir
lib/consul/json_codec.ex
simplifi/consulex
6fb9745cfe1191e3d8accbd28d2b1b6fe7874ace
[ "Apache-2.0" ]
null
null
null
lib/consul/json_codec.ex
simplifi/consulex
6fb9745cfe1191e3d8accbd28d2b1b6fe7874ace
[ "Apache-2.0" ]
null
null
null
lib/consul/json_codec.ex
simplifi/consulex
6fb9745cfe1191e3d8accbd28d2b1b6fe7874ace
[ "Apache-2.0" ]
1
2022-02-21T09:59:39.000Z
2022-02-21T09:59:39.000Z
defmodule Consul.JsonCodec do @moduledoc """ Interface to JSON library Defaults to using Jason """ @type json_value :: nil | true | false | list | float | integer | String.t() | map # Expected behaviours @callback decode(iodata) :: {:ok, json_value} | {:error, term} def decode(iodata), do: json_codec...
26.1875
84
0.689737
4a2bee200c886c82985168551ccdfa6911bb1597
1,614
ex
Elixir
lib/game/engine.ex
toranb/elixir-gleam-match
2102b071de2d45a7b528fc4fc7172e62dc72ce50
[ "MIT" ]
22
2020-09-06T22:18:35.000Z
2022-01-30T13:58:33.000Z
lib/game/engine.ex
toranb/elixir-gleam-match
2102b071de2d45a7b528fc4fc7172e62dc72ce50
[ "MIT" ]
1
2020-09-10T14:54:30.000Z
2020-09-10T18:38:30.000Z
lib/game/engine.ex
toranb/elixir-gleam-match
2102b071de2d45a7b528fc4fc7172e62dc72ce50
[ "MIT" ]
2
2020-09-06T23:02:38.000Z
2020-09-09T05:23:03.000Z
defmodule Game.Engine do use Game.Strucord, name: :engine, from: "gen/src/game_Engine.hrl" def new(playing_cards, random) when is_boolean(random) do record = :game.init(playing_cards, random) from_record_custom(record) end def flip(%__MODULE__{} = struct, flip_id) when is_binary(flip_id) do gleami...
25.21875
94
0.654895
4a2c2ec34049ae35fbb18bd3a7365407faab1282
2,885
ex
Elixir
clients/content/lib/google_api/content/v2/model/pos_sale_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/pos_sale_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/pos_sale_response.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 "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...
38.466667
178
0.697747
4a2c4cb2bdda2f0fe8238a8237b652241298720d
511
exs
Elixir
test/body_test.exs
marcobellaccini/openpgp_tools
dd3c6559c142f1c2fe028242cc60527e1ff24974
[ "Apache-2.0" ]
4
2019-06-13T22:04:57.000Z
2020-03-06T10:22:59.000Z
test/body_test.exs
marcobellaccini/openpgp_tools
dd3c6559c142f1c2fe028242cc60527e1ff24974
[ "Apache-2.0" ]
null
null
null
test/body_test.exs
marcobellaccini/openpgp_tools
dd3c6559c142f1c2fe028242cc60527e1ff24974
[ "Apache-2.0" ]
null
null
null
defmodule BodyTest do use ExUnit.Case alias OpenpgpTools.Body, as: BO alias OpenpgpTools.PacketTypes.CompressedData, as: CD ## Tests for parse_body function test "bd_parse_body_cdata" do body = [<<1>>, <<0xFA>>, <<0x2B>>] assert BO.parse_body(body, :cdata) == CD.parse(body) end test "bd_parse_bod...
28.388889
70
0.649706
4a2cb0b20194d46b2bb50238cb9d93580d643be8
3,303
exs
Elixir
test/sanbase/internal_services/tech_indicators_test.exs
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
test/sanbase/internal_services/tech_indicators_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
test/sanbase/internal_services/tech_indicators_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.TechIndicatorsTest do use SanbaseWeb.ConnCase, async: false import Mockery import Sanbase.Factory alias Sanbase.TechIndicators setup do [ project: insert(:random_erc20_project) ] end test "fetch price_volume_diff", context do mock( HTTPoison, :get, ...
30.583333
86
0.518922
4a2cc412d364a533ca97e5f237b2fe447da2a252
671
ex
Elixir
lib/pointing_party_web/router.ex
drews256/planning_party_ex
8fb8116b0fa321d86fd5908db9c6218a56d79b0e
[ "Apache-2.0" ]
null
null
null
lib/pointing_party_web/router.ex
drews256/planning_party_ex
8fb8116b0fa321d86fd5908db9c6218a56d79b0e
[ "Apache-2.0" ]
3
2020-04-30T11:45:19.000Z
2021-05-10T10:22:58.000Z
lib/pointing_party_web/router.ex
drews256/planning_party_ex
8fb8116b0fa321d86fd5908db9c6218a56d79b0e
[ "Apache-2.0" ]
null
null
null
defmodule PointingPartyWeb.Router do use PointingPartyWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end scope "/", PointingPartyWeb do pipe_through :browser get "/login", S...
25.807692
56
0.709389
4a2cccc5b320631dae8bda090a5ca05296bdabba
999
ex
Elixir
lib/level_web/schema/enums.ex
cas27/level
70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a
[ "Apache-2.0" ]
null
null
null
lib/level_web/schema/enums.ex
cas27/level
70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a
[ "Apache-2.0" ]
null
null
null
lib/level_web/schema/enums.ex
cas27/level
70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a
[ "Apache-2.0" ]
null
null
null
defmodule LevelWeb.Schema.Enums do @moduledoc false use Absinthe.Schema.Notation enum :user_state do value(:active, as: "ACTIVE") value(:disabled, as: "DISABLED") end enum :space_member_state do value(:active, as: "ACTIVE") value(:disabled, as: "DISABLED") end enum :space_member_role d...
17.224138
36
0.641642
4a2cfd17d8498e98fd5b5adac272016130e7737a
328
exs
Elixir
test/seent_web/live/page_live_test.exs
seent-app/seent
6071a0f90f1cb5345faa0c9e476d3c64310a7be9
[ "0BSD" ]
null
null
null
test/seent_web/live/page_live_test.exs
seent-app/seent
6071a0f90f1cb5345faa0c9e476d3c64310a7be9
[ "0BSD" ]
1
2020-07-04T17:19:38.000Z
2020-07-04T17:19:38.000Z
test/seent_web/live/page_live_test.exs
seent-app/seent
6071a0f90f1cb5345faa0c9e476d3c64310a7be9
[ "0BSD" ]
null
null
null
defmodule SeentWeb.PageLiveTest do use SeentWeb.ConnCase import Phoenix.LiveViewTest test "disconnected and connected render", %{conn: conn} do {:ok, page_live, disconnected_html} = live(conn, "/") assert disconnected_html =~ "Welcome to Phoenix!" assert render(page_live) =~ "Welcome to Phoenix!" ...
27.333333
60
0.722561
4a2d1883caddc8040b67a1011caba178e91e71df
263
ex
Elixir
robotica_hello/lib/robotica_hello.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
1
2019-04-23T09:16:44.000Z
2019-04-23T09:16:44.000Z
robotica_hello/lib/robotica_hello.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
107
2019-05-26T08:03:26.000Z
2022-02-03T19:13:56.000Z
robotica_hello/lib/robotica_hello.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
1
2019-08-10T20:44:24.000Z
2019-08-10T20:44:24.000Z
defmodule RoboticaHello do @moduledoc """ RoboticaHello 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.3
66
0.764259
4a2d3b4f292745bdc295f2c0a5e02f932ac7d6df
1,523
ex
Elixir
web/uploaders/project_icon.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/uploaders/project_icon.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/uploaders/project_icon.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
defmodule CodeCorps.ProjectIcon do use Arc.Definition # Include ecto support (requires package arc_ecto installed): use Arc.Ecto.Definition @versions [:original, :large, :thumb] @acl :public_read @icon_color_generator Application.get_env(:code_corps, :icon_color_generator) # Whitelist file extensions...
29.288462
118
0.713723
4a2d72ea725d21c083e79d90b98e52c3501b5a23
440
ex
Elixir
lib/ex_aequo.ex
RobertDober/ex_aequo
d02fea2115d21e8ca426c6ef082ae2663839fe93
[ "Apache-2.0" ]
null
null
null
lib/ex_aequo.ex
RobertDober/ex_aequo
d02fea2115d21e8ca426c6ef082ae2663839fe93
[ "Apache-2.0" ]
null
null
null
lib/ex_aequo.ex
RobertDober/ex_aequo
d02fea2115d21e8ca426c6ef082ae2663839fe93
[ "Apache-2.0" ]
null
null
null
defmodule ExAequo do @moduledoc """ Namespace only and exposing version """ @doc """ Used by the `xtra` mix task to generate the latest version in the docs, but also handy for client applications for quick exploration in `iex`. """ @spec version() :: binary() def version() do with {:ok, version} ...
24.444444
77
0.675
4a2d907ff1ac5008d788097f132108d477383264
903
ex
Elixir
lib/white_bread/context/step_executor.ex
ejscunha/white-bread
1c2eed1c98545beeb70b590426ce9026a8455e97
[ "MIT" ]
209
2015-03-03T14:14:28.000Z
2020-10-26T03:23:48.000Z
lib/white_bread/context/step_executor.ex
ejscunha/white-bread
1c2eed1c98545beeb70b590426ce9026a8455e97
[ "MIT" ]
83
2015-03-23T11:46:51.000Z
2020-11-04T09:47:06.000Z
lib/white_bread/context/step_executor.ex
ejscunha/white-bread
1c2eed1c98545beeb70b590426ce9026a8455e97
[ "MIT" ]
46
2015-06-12T17:37:21.000Z
2020-10-30T09:52:45.000Z
defmodule WhiteBread.Context.StepExecutor do alias WhiteBread.Context.StepExecutor.ErrorHandler alias WhiteBread.Context.StepFunction def execute_step(steps, step, state) when is_list(steps) do try do steps |> find_match(step.text) |> StepFunction.call(step, state) rescue miss...
29.129032
76
0.685493
4a2d913eed45d11bd3fde9ef82f376fd79a9738e
1,419
ex
Elixir
elixir/lib/homework_web/schemas/companies_schema.ex
jeanettearteaga/web-homework
0a39c23b736748d053fe9fe528da3e82b4ca1672
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/companies_schema.ex
jeanettearteaga/web-homework
0a39c23b736748d053fe9fe528da3e82b4ca1672
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/companies_schema.ex
jeanettearteaga/web-homework
0a39c23b736748d053fe9fe528da3e82b4ca1672
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.Schemas.CompaniesSchema do @moduledoc """ Defines the graphql schema for companies. """ use Absinthe.Schema.Notation alias HomeworkWeb.Resolvers.CompaniesResolver alias HomeworkWeb.Resolvers.TransactionsResolver alias HomeworkWeb.Resolvers.UsersResolver object :company do fie...
26.277778
65
0.703312
4a2d974e304880ede8b93780ba06ff50bb137c8e
458
ex
Elixir
lib/inflex/underscore.ex
moxley/inflex
5a95d81eb10becb6a1ee1cbf5744e9443cfc8e1e
[ "Apache-2.0" ]
342
2015-02-17T08:31:25.000Z
2022-03-18T15:33:21.000Z
lib/inflex/underscore.ex
moxley/inflex
5a95d81eb10becb6a1ee1cbf5744e9443cfc8e1e
[ "Apache-2.0" ]
55
2015-01-23T15:18:33.000Z
2021-07-21T15:03:05.000Z
lib/inflex/underscore.ex
moxley/inflex
5a95d81eb10becb6a1ee1cbf5744e9443cfc8e1e
[ "Apache-2.0" ]
60
2015-01-22T03:36:03.000Z
2021-09-13T21:26:27.000Z
defmodule Inflex.Underscore do @moduledoc false def underscore(atom) when is_atom(atom) do case Atom.to_string(atom) do "Elixir." <> rest -> underscore(rest) word -> underscore(word) end end def underscore(word) when is_binary(word) do word |> String.replace(~r/([A-Z]+)([A-Z][a-z])...
24.105263
58
0.580786
4a2dcb3815af23b4c3cda37782528340a1bc1da0
5,941
ex
Elixir
lib/livebook/live_markdown/export.ex
mgibowski/livebook
bfb9dc371e386597219a398a180d69c0bfa2f384
[ "Apache-2.0" ]
null
null
null
lib/livebook/live_markdown/export.ex
mgibowski/livebook
bfb9dc371e386597219a398a180d69c0bfa2f384
[ "Apache-2.0" ]
null
null
null
lib/livebook/live_markdown/export.ex
mgibowski/livebook
bfb9dc371e386597219a398a180d69c0bfa2f384
[ "Apache-2.0" ]
1
2021-12-18T03:42:04.000Z
2021-12-18T03:42:04.000Z
defmodule Livebook.LiveMarkdown.Export do alias Livebook.Notebook alias Livebook.Notebook.Cell alias Livebook.LiveMarkdown.MarkdownHelpers @doc """ Converts the given notebook into a Markdown document. ## Options * `:include_outputs` - whether to render cell outputs. Only textual outputs are in...
26.641256
92
0.642821
4a2dcbd54aaa89749697aeb34a46104f801f36a2
3,947
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/api/i18n_regions.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/api/i18n_regions.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/api/i18n_regions.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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.855556
196
0.650621
4a2dfcc16533f48371dcb3157451f817ee3d52c4
1,168
ex
Elixir
debian/emacsen-startup.ex
isis-project/AdapterBase
5b8e6086950f6e3938691e6fe0d591fb5e675575
[ "Apache-2.0" ]
1
2015-07-19T20:11:07.000Z
2015-07-19T20:11:07.000Z
debian/emacsen-startup.ex
isis-project/AdapterBase
5b8e6086950f6e3938691e6fe0d591fb5e675575
[ "Apache-2.0" ]
null
null
null
debian/emacsen-startup.ex
isis-project/AdapterBase
5b8e6086950f6e3938691e6fe0d591fb5e675575
[ "Apache-2.0" ]
null
null
null
;; -*-emacs-lisp-*- ;; ;; Emacs startup file, e.g. /etc/emacs/site-start.d/50adapterbase.el ;; for the Debian adapterbase package ;; ;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at> ;; Modified by Dirk Eddelbuettel <edd@debian.org> ;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org> ;; The ada...
44.923077
76
0.6875
4a2e1a5d57941b84ebe9441ab6568bd0d4e4823d
1,348
ex
Elixir
lib/liblink.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
3
2018-10-26T12:55:15.000Z
2019-05-03T22:41:34.000Z
lib/liblink.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
4
2018-08-26T14:43:57.000Z
2020-09-23T21:14:56.000Z
lib/liblink.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 (c) Xerpa # # 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, so...
29.304348
91
0.71365
4a2e6320da1f9809d9d5c8586d4c3f684dfab3aa
10,092
ex
Elixir
lib/elixir/lib/module/locals_tracker.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/elixir/lib/module/locals_tracker.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/locals_tracker.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
# This is a module Elixir responsible for tracking # calls in order to extract Elixir modules' behaviour # during compilation time. # # ## Implementation # # The implementation uses the digraph module to track # all dependencies. The graph starts with one main vertice: # # * `:local` - points to local functions # # We ...
27.349593
99
0.650218
4a2e7b691290c0057ab0aae22b301851069f8b12
1,349
ex
Elixir
lib/ellie_web.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
377
2018-04-05T03:36:00.000Z
2022-03-30T19:12:44.000Z
lib/ellie_web.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
91
2018-05-24T21:56:06.000Z
2022-02-26T03:54:04.000Z
lib/ellie_web.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
34
2018-05-29T03:54:35.000Z
2022-01-13T07:12:46.000Z
defmodule EllieWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use EllieWeb, :controller use EllieWeb, :view The definitions below will be executed for every view, controller, etc, s...
22.483333
93
0.686434
4a2eb6e9f3b48fcd7eba9f74b23f9a8c02d8b755
311
exs
Elixir
apps/artemis/priv/repo/migrations/20190201222111_create_permissions.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis/priv/repo/migrations/20190201222111_create_permissions.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/priv/repo/migrations/20190201222111_create_permissions.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule Artemis.Repo.Migrations.CreatePermissions do use Ecto.Migration def change do create table(:permissions) do add :description, :text add :name, :string add :slug, :string timestamps(type: :utc_datetime) end create unique_index(:permissions, [:slug]) end end
20.733333
54
0.681672
4a2eb7cb5872abf07a127e4a54af52112af62daf
4,088
ex
Elixir
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/api/iam.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/api/iam.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/api/iam.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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.489362
196
0.667319
4a2ed8dcc737b080d8679ad0c50a68f7d646e8f8
2,185
ex
Elixir
lib/chat_api/messages/message.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
1
2021-06-17T03:17:24.000Z
2021-06-17T03:17:24.000Z
lib/chat_api/messages/message.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
null
null
null
lib/chat_api/messages/message.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
null
null
null
defmodule ChatApi.Messages.Message do use Ecto.Schema import Ecto.Changeset alias ChatApi.Conversations.Conversation alias ChatApi.Accounts.Account alias ChatApi.Customers.Customer alias ChatApi.Users.User alias ChatApi.Messages.MessageFile @type t :: %__MODULE__{ body: String.t(), ...
25.114943
60
0.583524
4a2f05f663cae369bba0874c101a0ff74051088a
1,604
exs
Elixir
elixir/grade-school/grade_school_test.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
elixir/grade-school/grade_school_test.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
elixir/grade-school/grade_school_test.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("school.exs", __DIR__) end ExUnit.start() ExUnit.configure(exclude: :pending, trace: true) defmodule SchoolTest do use ExUnit.Case @db %{} test "add student" do actual = School.add(@db, "Aimee", 2) assert actual == %{2 => ["Aimee"]} en...
21.105263
61
0.55611
4a2f1eadc814a017df023eb7bdb05901931df60c
1,807
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_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.14
157
0.7399
4a2f25973ea5febbf5c6e63151dca2321886c9da
6,655
ex
Elixir
lib/graphql/dataloader.ex
alexfreska/ash_graphql
d7e56bec11b4e714c19ccebfa7ba5821669b19cc
[ "MIT" ]
null
null
null
lib/graphql/dataloader.ex
alexfreska/ash_graphql
d7e56bec11b4e714c19ccebfa7ba5821669b19cc
[ "MIT" ]
null
null
null
lib/graphql/dataloader.ex
alexfreska/ash_graphql
d7e56bec11b4e714c19ccebfa7ba5821669b19cc
[ "MIT" ]
null
null
null
defmodule AshGraphql.Dataloader do @moduledoc "The dataloader in charge of resolving " defstruct [ :api, batches: %{}, results: %{}, default_params: %{} ] @type t :: %__MODULE__{ api: Ash.api(), batches: map, results: map, default_params: map } ...
26.726908
95
0.578512
4a2f3cb118ab015f81859fa1a3ce818c9e342107
1,183
exs
Elixir
ListsAndRecursion5.exs
itsjustsoda/programming-elixir-solutions
cbad3edcf6bb52cce0d26a6252d3e30fe9bec28f
[ "Unlicense" ]
null
null
null
ListsAndRecursion5.exs
itsjustsoda/programming-elixir-solutions
cbad3edcf6bb52cce0d26a6252d3e30fe9bec28f
[ "Unlicense" ]
null
null
null
ListsAndRecursion5.exs
itsjustsoda/programming-elixir-solutions
cbad3edcf6bb52cce0d26a6252d3e30fe9bec28f
[ "Unlicense" ]
null
null
null
defmodule MyEnum do def all?([], _), do: true def all?([head | tail], func), do: func.(head) and all?(tail, func) def each([], _), do: :ok def each([head | tail], func) do func.(head) each(tail, func) end def filter([], _), do: [] def filter([head | tail], predicate) do if predicate.(hea...
26.288889
96
0.568047
4a2f4525b06cbede2bbd2c235ef41250fe8ccccb
2,375
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case_case_content.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case_case_content.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case_case_content.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...
37.698413
179
0.770105
4a2f583d83b9d7405d2f8c72b9873b0eef5b23be
3,948
ex
Elixir
lib/mysimplelist/lists.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
lib/mysimplelist/lists.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
lib/mysimplelist/lists.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
defmodule Mysimplelist.Lists do @moduledoc """ Interact with Lists, which contain ListItems. """ import Ecto.Query, warn: false alias Mysimplelist.{Logger, Repo} alias Mysimplelist.Lists.List @doc """ Returns the list of lists. ## Examples iex> list_lists() [%List{}, ...] """ def...
17.864253
64
0.588652
4a2f60bfb228da718aeedfa9f635cf3379619181
2,400
exs
Elixir
apps/ewallet/test/ewallet/permissions/bouncer/targets/account_target_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/test/ewallet/permissions/bouncer/targets/account_target_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/test/ewallet/permissions/bouncer/targets/account_target_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-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 ...
33.333333
79
0.70125
4a2f731cf72db406ad1d10776f57afdef7ba3581
2,671
exs
Elixir
test/lib/option_test.exs
kimidesu/ElixirCore
1d3558aaccbca5f18dbf453271d8a98826fe1ce2
[ "MIT" ]
1
2021-04-09T05:40:28.000Z
2021-04-09T05:40:28.000Z
test/lib/option_test.exs
kimidesu/ElixirCore
1d3558aaccbca5f18dbf453271d8a98826fe1ce2
[ "MIT" ]
null
null
null
test/lib/option_test.exs
kimidesu/ElixirCore
1d3558aaccbca5f18dbf453271d8a98826fe1ce2
[ "MIT" ]
null
null
null
defmodule Noizu.ElixirCore.OptionTest do use ExUnit.Case, async: false alias Noizu.ElixirCore.OptionSettings alias Noizu.ElixirCore.OptionValue alias Noizu.ElixirCore.OptionList require Logger def prepare_options(options) do settings = %OptionSettings{ option_settings: %{ not_me...
43.080645
169
0.721078
4a2f88cd8a255245a4a6c2b1fca7d2896bc6a419
4,916
exs
Elixir
test/user_test.exs
stevegrossi/lessonly-elixir
abd767bc1171c6ac6f2de6086a5e42361e2421bb
[ "MIT" ]
1
2016-09-06T20:04:38.000Z
2016-09-06T20:04:38.000Z
test/user_test.exs
stevegrossi/lessonly-elixir
abd767bc1171c6ac6f2de6086a5e42361e2421bb
[ "MIT" ]
3
2016-04-03T21:03:19.000Z
2016-04-03T21:38:02.000Z
test/user_test.exs
stevegrossi/lessonly-elixir
abd767bc1171c6ac6f2de6086a5e42361e2421bb
[ "MIT" ]
null
null
null
defmodule UserTest do use Lessonly.ApiTest test "all" do use_cassette "user.all" do response = Lessonly.User.all(client) assert response == [ %{"email" => "test4@lesson.ly", "ext_uid" => nil, "id" => 544550, "name" => "Test User 4", "resource_type" => "user", "role" => "learner"}, %...
27.010989
147
0.471318
4a2f9590477d1ad3aab1d04f033165e19e373186
263
exs
Elixir
test/test_helper.exs
manusajith/nebulex_redis_adapter
0a29e6eaa5563ec2237e38ad9b88a476aaa8a26b
[ "MIT" ]
1
2018-12-10T13:43:25.000Z
2018-12-10T13:43:25.000Z
test/test_helper.exs
manusajith/nebulex_redis_adapter
0a29e6eaa5563ec2237e38ad9b88a476aaa8a26b
[ "MIT" ]
1
2019-01-11T19:38:01.000Z
2019-01-11T19:38:01.000Z
test/test_helper.exs
manusajith/nebulex_redis_adapter
0a29e6eaa5563ec2237e38ad9b88a476aaa8a26b
[ "MIT" ]
null
null
null
# Load support files for dir <- ["support", "shared"], file <- File.ls!("test/" <> dir) do Code.require_file(dir <> "/" <> file, __DIR__) end # Load Nebulex helper File.cd!("deps/nebulex", fn -> Code.require_file("test/test_helper.exs") end) ExUnit.start()
21.916667
69
0.65019
4a2fb33565243da347ba742a60c30608add204c2
11,200
ex
Elixir
lib/type/tuple.ex
ityonemo/mavis
6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99
[ "MIT" ]
97
2020-09-22T01:52:19.000Z
2022-03-21T17:50:13.000Z
lib/type/tuple.ex
ityonemo/mavis
6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99
[ "MIT" ]
106
2020-09-22T18:55:28.000Z
2021-11-30T01:51:04.000Z
lib/type/tuple.ex
ityonemo/mavis
6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99
[ "MIT" ]
3
2020-10-27T22:36:56.000Z
2022-01-25T21:00:24.000Z
defmodule Type.Tuple do @moduledoc """ Represents tuple types. The associated struct has two parameters: - `:elements` which may be a list of types, corresponding to the ordered list of tuple element types. - `:fixed` which is false if the total number of elements is not known, but must be at least a...
33.633634
112
0.605
4a2fe2e1365d47b7f50dae56043be4406d4515d4
566
exs
Elixir
priv/repo/migrations/20210409211435_create_dubvotes.exs
rushsteve1/RateTheDub
89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081
[ "Apache-2.0" ]
4
2021-04-26T21:50:45.000Z
2021-04-27T18:37:51.000Z
priv/repo/migrations/20210409211435_create_dubvotes.exs
rushsteve1/RateTheDub
89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081
[ "Apache-2.0" ]
25
2021-04-26T21:39:21.000Z
2021-09-07T13:59:14.000Z
priv/repo/migrations/20210409211435_create_dubvotes.exs
rushsteve1/RateTheDub
89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081
[ "Apache-2.0" ]
null
null
null
defmodule RateTheDub.Repo.Migrations.CreateDubvotes do use Ecto.Migration def change do create table(:dubvotes) do add :language, :string, primary_key: true add :user_ip, :string add :user_snowflake, :string add :mal_id, references(:anime, column: :mal_id, on_delete: :delete_...
25.727273
83
0.664311
4a2fe5fe4174b19c9f3f849d3551271c5ffbc76e
2,261
exs
Elixir
test/test_helper.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
null
null
null
alias Instream.TestHelpers.Connections.DefaultConnection config = ExUnit.configuration() # configure InfluxDB test version version = System.get_env("INFLUXDB_VERSION") version_excludes = case version do "1.7" -> [:"influxdb_exclude_1.7", :"influxdb_include_2.x", :"influxdb_include_1.8"] "1.8" -> [:"influxd...
29.75
92
0.702344
4a2ff9761e9a8d38c6bb08afbfc13be8737e9e8b
496
ex
Elixir
lib/bugsnex/api.ex
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
11
2016-05-04T14:23:26.000Z
2020-04-30T16:53:32.000Z
lib/bugsnex/api.ex
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
27
2016-04-19T10:25:41.000Z
2020-09-11T09:27:39.000Z
lib/bugsnex/api.ex
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
4
2017-03-16T16:14:47.000Z
2019-08-30T14:36:26.000Z
defmodule Bugsnex.Api do use HTTPoison.Base def process_url(path) do base_url() <> path end def process_request_headers(headers) do [{"Content-Type", "application/json"} | headers] end def send_notice(notice) do body = Poison.encode!(notice) post("/", body) end def send_deploy(deploy...
19.076923
74
0.671371
4a30611f182ca86682aa524e3fd307913320debf
11,184
ex
Elixir
lib/elixir_sense/core/metadata_builder.ex
msaraiva/elixir_sense
15bf8a5d4ea55ced2d76e5f41620c769cf125c82
[ "Unlicense", "MIT" ]
212
2017-03-29T09:08:08.000Z
2022-01-26T13:35:40.000Z
lib/elixir_sense/core/metadata_builder.ex
msaraiva/elixir_sense
15bf8a5d4ea55ced2d76e5f41620c769cf125c82
[ "Unlicense", "MIT" ]
37
2017-04-11T04:13:18.000Z
2020-02-12T20:02:55.000Z
lib/elixir_sense/core/metadata_builder.ex
msaraiva/elixir_sense
15bf8a5d4ea55ced2d76e5f41620c769cf125c82
[ "Unlicense", "MIT" ]
17
2017-04-11T17:46:15.000Z
2021-05-31T09:10:18.000Z
defmodule ElixirSense.Core.MetadataBuilder do @moduledoc """ This module is responsible for building/retrieving environment information from an AST. """ import ElixirSense.Core.State alias ElixirSense.Core.Ast alias ElixirSense.Core.State alias ElixirSense.Core.State.VarInfo @scope_keywords [:for, :t...
29.277487
184
0.652361
4a3065621e305f05725b2b2b1dbe03175d825498
2,398
ex
Elixir
web/controllers/score_controller.ex
dtcristo/high-score
7dcd0a9aaf7cc89a7c268acc1ef4560fbf24c61c
[ "MIT" ]
3
2015-11-16T10:27:50.000Z
2015-11-25T02:22:57.000Z
web/controllers/score_controller.ex
dtcristo/high-score
7dcd0a9aaf7cc89a7c268acc1ef4560fbf24c61c
[ "MIT" ]
null
null
null
web/controllers/score_controller.ex
dtcristo/high-score
7dcd0a9aaf7cc89a7c268acc1ef4560fbf24c61c
[ "MIT" ]
null
null
null
defmodule HighScore.ScoreController do use HighScore.Web, :controller alias HighScore.Score plug :scrub_params, "score" when action in [:create, :update] def index(conn, _params) do scores = Repo.all(from s in Score, order_by: [desc: s.value, asc: s.inserted_at], ...
29.604938
80
0.56839
4a30afd73af2393ed1ac78bae265e29d700df36a
38,077
exs
Elixir
lib/elixir/test/elixir/stream_test.exs
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
1
2018-08-08T12:15:48.000Z
2018-08-08T12:15:48.000Z
lib/elixir/test/elixir/stream_test.exs
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
1
2018-09-10T23:36:45.000Z
2018-09-10T23:36:45.000Z
lib/elixir/test/elixir/stream_test.exs
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
1
2021-09-30T01:21:02.000Z
2021-09-30T01:21:02.000Z
Code.require_file("test_helper.exs", __DIR__) defmodule StreamTest do use ExUnit.Case, async: true doctest Stream defmodule Pdict do defstruct [] defimpl Collectable do def into(struct) do fun = fn _, {:cont, x} -> Process.put(:stream_cont, [x | Process.get(:stream_cont)]) ...
31.390767
97
0.565486
4a312266f5983402b017574df283b190ca9e1ad9
2,226
ex
Elixir
apps/money/lib/money.ex
patrickdet/acme_bank
b9660d995ef8eea94f921511a3936bf354d2fbbc
[ "MIT" ]
2
2020-04-07T20:02:24.000Z
2021-02-27T13:32:13.000Z
apps/money/lib/money.ex
patrickdet/acme_bank
b9660d995ef8eea94f921511a3936bf354d2fbbc
[ "MIT" ]
null
null
null
apps/money/lib/money.ex
patrickdet/acme_bank
b9660d995ef8eea94f921511a3936bf354d2fbbc
[ "MIT" ]
null
null
null
defmodule Money do @moduledoc ~S""" `Money` represents some monetary value (stored in cents) in a given currency. See `Money.Ecto` for a custom type implementation that can be used in schemas. In order to use the `~M` sigil, import the module: import Money ## Examples iex> Money.new("10.0...
23.1875
80
0.592543
4a3127fb548abe09f5e643826e42291c95371205
440
exs
Elixir
priv/repo/migrations/20170617130109_create_routine.exs
OpenFermentor/Local-Monitor
4b356e8ac3f154ec72bdd23b3a501d5f1645241c
[ "MIT" ]
null
null
null
priv/repo/migrations/20170617130109_create_routine.exs
OpenFermentor/Local-Monitor
4b356e8ac3f154ec72bdd23b3a501d5f1645241c
[ "MIT" ]
null
null
null
priv/repo/migrations/20170617130109_create_routine.exs
OpenFermentor/Local-Monitor
4b356e8ac3f154ec72bdd23b3a501d5f1645241c
[ "MIT" ]
null
null
null
defmodule BioMonitor.Repo.Migrations.CreateRoutine do use Ecto.Migration def change do create table(:routines) do add :title, :string add :strain, :string add :medium, :string add :target_temp, :float add :target_ph, :float add :target_co2, :float add :target_density, ...
20.952381
53
0.647727
4a317d3d785100bf7cda0e15e33430582c86a14b
1,388
ex
Elixir
lib/mix/tasks/phx.server.ex
henriquecf/phoenix
d90f7cfd453201fef1a869156b04c3f5bb1ffe3f
[ "MIT" ]
null
null
null
lib/mix/tasks/phx.server.ex
henriquecf/phoenix
d90f7cfd453201fef1a869156b04c3f5bb1ffe3f
[ "MIT" ]
null
null
null
lib/mix/tasks/phx.server.ex
henriquecf/phoenix
d90f7cfd453201fef1a869156b04c3f5bb1ffe3f
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phx.Server do use Mix.Task @shortdoc "Starts applications and their servers" @moduledoc """ Starts the application by configuring all endpoints servers to run. Note: to start the endpoint without using this mix task you must set `server: true` in your `Phoenix.Endpoint` configuration....
24.785714
75
0.685879
4a31815bb91fa3072d232056a4ed0dc7d8da634e
2,333
ex
Elixir
lib/chess_web.ex
embik/chess
a6b494cb9d3bc539612af6c4aa97b05c9fe3c52a
[ "MIT" ]
null
null
null
lib/chess_web.ex
embik/chess
a6b494cb9d3bc539612af6c4aa97b05c9fe3c52a
[ "MIT" ]
null
null
null
lib/chess_web.ex
embik/chess
a6b494cb9d3bc539612af6c4aa97b05c9fe3c52a
[ "MIT" ]
null
null
null
defmodule ChessWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use ChessWeb, :controller use ChessWeb, :view The definitions below will be executed for every view, controller, etc, s...
22.219048
78
0.678954
4a318cbcfcee81faad465d7c7888880caa1b049c
13,024
ex
Elixir
deps/mojito/lib/mojito.ex
PrecisionNutrition/frogger
96374fe0ac0ea616205f6678fe088802572e922e
[ "MIT" ]
null
null
null
deps/mojito/lib/mojito.ex
PrecisionNutrition/frogger
96374fe0ac0ea616205f6678fe088802572e922e
[ "MIT" ]
null
null
null
deps/mojito/lib/mojito.ex
PrecisionNutrition/frogger
96374fe0ac0ea616205f6678fe088802572e922e
[ "MIT" ]
null
null
null
defmodule Mojito do @moduledoc ~S""" Mojito is an easy-to-use, high-performance HTTP client built using the low-level [Mint library](https://github.com/ericmj/mint). Mojito is built for comfort _and_ for speed. Behind a simple and predictable interface, there is a sophisticated connection pool manager tha...
35.878788
330
0.652257
4a31923c5aed673bbd57fdc0c4ea1751882872a8
1,143
exs
Elixir
elixir/change/change.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/change/change.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/change/change.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
defmodule Change do @doc """ Determine the least number of coins to be given to the user such that the sum of the coins' value would equal the correct amount of change. It returns :error if it is not possible to compute the right amount of coins. Otherwise returns the tuple {:ok, map_of_coins} ##...
27.214286
116
0.5993
4a319fa89f288ff98b7beb82b505976ea4a68563
729
ex
Elixir
web/gettext.ex
deerob4/words-with-enemies
f9de13d599bdecc71007db57d3c21651b9be7463
[ "MIT" ]
1
2015-02-15T23:50:29.000Z
2015-02-15T23:50:29.000Z
web/gettext.ex
deerob4/words-with-enemies
f9de13d599bdecc71007db57d3c21651b9be7463
[ "MIT" ]
null
null
null
web/gettext.ex
deerob4/words-with-enemies
f9de13d599bdecc71007db57d3c21651b9be7463
[ "MIT" ]
null
null
null
defmodule WordsWithEnemies.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import WordsWithEnemies.Gettext # Simple translation gettext...
29.16
71
0.689986
4a31aab857e91f08f1034b2143ba15e5d6e9531d
267
ex
Elixir
Ternary.ex
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
4
2016-09-22T03:47:56.000Z
2017-02-02T17:42:57.000Z
Ternary.ex
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
Ternary.ex
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
# This is the way we implement a ternary operator in # Elixir. The && and || operators are not strict logic # Operators, so they accept all types of values and try # to evaluate it as a boolean myvalue = false && "this_must not be" || "this must be" IO.puts myvalue
33.375
55
0.722846
4a31d37f60c20dec1c47bf3f26cb29a467780f68
275
exs
Elixir
test/display/intro_test.exs
flowerett/elixir-koans
174f4610e846f59cc34b41a36b813f5d684fd510
[ "MIT" ]
1,944
2016-04-24T02:46:10.000Z
2022-03-29T00:19:17.000Z
test/display/intro_test.exs
flowerett/elixir-koans
174f4610e846f59cc34b41a36b813f5d684fd510
[ "MIT" ]
157
2016-04-23T18:40:24.000Z
2022-02-10T14:00:45.000Z
test/display/intro_test.exs
flowerett/elixir-koans
174f4610e846f59cc34b41a36b813f5d684fd510
[ "MIT" ]
636
2016-04-23T17:18:00.000Z
2022-03-23T10:04:06.000Z
defmodule IntroTest do use ExUnit.Case alias Display.Intro test "module not visited yet" do assert Intro.intro(SampleKoan, []) == "There is something\n\n" end test "module has been visited" do assert Intro.intro(SampleKoan, [SampleKoan]) == "" end end
19.642857
66
0.690909
4a31e545ca7ffca099bf8ef740b0d1f74470b11c
11,158
exs
Elixir
priv/repo/seed_modules/challenges.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
priv/repo/seed_modules/challenges.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
priv/repo/seed_modules/challenges.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule Seeds.SeedModules.Challenges do alias ChallengeGov.Accounts alias ChallengeGov.Agencies alias ChallengeGov.Challenges @remote_ip "127.0.0.1" def run() do IO.inspect "Seeding Challenges" {:ok, challenge_manager} = Accounts.get_by_email("challenge_manager_active@example.gov") {:ok, age...
34.86875
155
0.627532
4a31f55655df62672083f5f5d4a280f2df4cd9c7
6,060
exs
Elixir
test/html_tag_test.exs
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
test/html_tag_test.exs
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
test/html_tag_test.exs
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
defmodule HtmlTagTest do use ExUnit.Case, async: true import Surface import ComponentTestHelper test "raise runtime error for invalid attributes values" do assert_raise(RuntimeError, ~r/invalid value for attribute "title"/, fn -> assigns = %{} code = ~H""" <div title={{ {1, 2} }}/> ...
21.338028
101
0.476733
4a320b275a37d7536f65a58bccfe40d4838d3d1b
228
exs
Elixir
priv/repo/migrations/20190922203322_create_challenges.exs
Cadiac/titeenit-backend
51db7a1f93dc78a769bb309b94b1b893cefdcdc9
[ "MIT" ]
null
null
null
priv/repo/migrations/20190922203322_create_challenges.exs
Cadiac/titeenit-backend
51db7a1f93dc78a769bb309b94b1b893cefdcdc9
[ "MIT" ]
null
null
null
priv/repo/migrations/20190922203322_create_challenges.exs
Cadiac/titeenit-backend
51db7a1f93dc78a769bb309b94b1b893cefdcdc9
[ "MIT" ]
null
null
null
defmodule Titeenipeli.Repo.Migrations.CreateChallenges do use Ecto.Migration def change do create table(:challenges) do add :solution, :string add :max_points, :integer timestamps() end end end
17.538462
57
0.692982
4a322bb9e0a4fbdd44e4c83451eac0ec69dbd8e5
1,983
ex
Elixir
lib/hl7/2.3.1/segments/in1.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/segments/in1.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/segments/in1.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_3_1.Segments.IN1 do @moduledoc false require Logger alias HL7.V2_3_1.{DataTypes} use HL7.Segment, fields: [ segment: nil, set_id_in1: nil, insurance_plan_id: DataTypes.Ce, insurance_company_id: DataTypes.Cx, insurance_company_name: DataTypes.Xon, insura...
32.508197
53
0.713565
4a32526807f617c686b0f625f0ea1e12bc0e88ed
260
exs
Elixir
priv/repo/migrations/20200228171228_create_tags_trigram_index.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
120
2020-03-30T13:58:40.000Z
2022-03-30T10:17:50.000Z
priv/repo/migrations/20200228171228_create_tags_trigram_index.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
34
2020-04-01T23:11:59.000Z
2022-03-13T08:14:37.000Z
priv/repo/migrations/20200228171228_create_tags_trigram_index.exs
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
16
2020-04-24T17:14:23.000Z
2022-03-27T22:32:48.000Z
defmodule Adoptoposs.Repo.Migrations.CreateTagsTrigramIndex do use Ecto.Migration def up do execute "CREATE INDEX tags_name_trgm_index ON tags USING gin (name gin_trgm_ops)" end def down do execute "DROP INDEX tags_name_trgm_index" end end
21.666667
85
0.776923
4a3267d21d54bdb90e6a264d7bbf0c59a933bfad
2,065
ex
Elixir
apps/andi/lib/andi_web/auth/token_handler.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/lib/andi_web/auth/token_handler.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/lib/andi_web/auth/token_handler.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule AndiWeb.Auth.TokenHandler do @moduledoc """ Token handling specific to Andi. """ use Auth.Guardian.TokenHandler, otp_app: :andi @doc """ Puts a JWT into a Plug.Session cookie """ def put_session_token(conn, token) do TelemetryEvent.add_event_metrics([app: "andi"], [:andi_login_succes...
27.533333
151
0.685714
4a32759db66ceac4a2c6190a058659478a29ec02
261
ex
Elixir
gherkin/elixir/lib/gherkin/builder.ex
endersstocker/cucumber
5ad94a9ab5f87bca6ee23a6b4212705cdc58753d
[ "MIT" ]
null
null
null
gherkin/elixir/lib/gherkin/builder.ex
endersstocker/cucumber
5ad94a9ab5f87bca6ee23a6b4212705cdc58753d
[ "MIT" ]
null
null
null
gherkin/elixir/lib/gherkin/builder.ex
endersstocker/cucumber
5ad94a9ab5f87bca6ee23a6b4212705cdc58753d
[ "MIT" ]
null
null
null
defmodule Gherkin.Builder do alias Gherkin.{ASTNode, Token} @type t :: struct @callback build(t, Token.t()) :: t @callback end_rule(t, ASTNode.rule_type()) :: t @callback get_result(t) :: term @callback start_rule(t, ASTNode.rule_type()) :: t end
23.727273
51
0.678161
4a329fe37b35aa9ac097ea0edc8b29cd00cc262a
840
exs
Elixir
mix.exs
LanfordCai/ElixirWeather
a7667bde35b6ee1073c324266ae15dbadb6d33f7
[ "MIT" ]
1
2016-02-17T19:10:42.000Z
2016-02-17T19:10:42.000Z
mix.exs
LanfordCai/ElixirWeather
a7667bde35b6ee1073c324266ae15dbadb6d33f7
[ "MIT" ]
null
null
null
mix.exs
LanfordCai/ElixirWeather
a7667bde35b6ee1073c324266ae15dbadb6d33f7
[ "MIT" ]
null
null
null
defmodule Weather.Mixfile do use Mix.Project def project do [app: :weather, escript: escript_config, version: "0.0.1", elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "...
20
77
0.594048
4a32b38606bbe08efd0c8a93003d2d73b01297c8
371
ex
Elixir
lib/remedy/schema/voice_server_update.ex
bdanklin/nostrum
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
3
2021-09-05T09:44:02.000Z
2022-01-26T15:31:50.000Z
lib/remedy/schema/voice_server_update.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
lib/remedy/schema/voice_server_update.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
defmodule Remedy.Schema.VoiceServerUpdate do @moduledoc """ Voice Server Update Event Object """ use Remedy.Schema embedded_schema do field :token, :string field :guild_id, Snowflake field :endpoint, :string end @doc false def changeset(module \\ %__MODULE__{}, params) do cast(module,...
19.526316
56
0.690027
4a32c9a3ac108d1882373662e1de5f8e015ad8c6
1,091
ex
Elixir
test/support/conn_case.ex
HenningLanghorst/jhu_csse_covid19_api
46861f31ce7154f74c377d37a31bd4283524894f
[ "MIT" ]
null
null
null
test/support/conn_case.ex
HenningLanghorst/jhu_csse_covid19_api
46861f31ce7154f74c377d37a31bd4283524894f
[ "MIT" ]
null
null
null
test/support/conn_case.ex
HenningLanghorst/jhu_csse_covid19_api
46861f31ce7154f74c377d37a31bd4283524894f
[ "MIT" ]
null
null
null
defmodule Covid19ApiWeb.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...
28.710526
64
0.737855
4a333c4df146e6ba87e67bf5d09238bd7a8f0ee8
2,137
exs
Elixir
mix.exs
hypno2000/phoenix_live_view
f9aa7fea9c7baf87448d8666b7340bbb73583611
[ "MIT" ]
null
null
null
mix.exs
hypno2000/phoenix_live_view
f9aa7fea9c7baf87448d8666b7340bbb73583611
[ "MIT" ]
null
null
null
mix.exs
hypno2000/phoenix_live_view
f9aa7fea9c7baf87448d8666b7340bbb73583611
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.MixProject do use Mix.Project @version "0.5.1" def project do [ app: :phoenix_live_view, version: @version, elixir: "~> 1.7", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), package: package(), xref: [exclude:...
23.483516
99
0.590547
4a3385dddfecdf5e0e5092622560a1a80ae81caf
1,585
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/category_count.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/category_count.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/category_count.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...
31.078431
117
0.718612
4a33a7303e6c6c4dd9bbed7e3d2ffb1cfb76f6af
67
ex
Elixir
web/views/user_view.ex
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
22
2016-03-31T02:58:09.000Z
2020-06-16T02:37:16.000Z
web/views/user_view.ex
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
7
2016-03-27T14:22:59.000Z
2021-04-27T14:33:51.000Z
web/views/user_view.ex
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
13
2016-04-21T06:05:32.000Z
2018-08-23T06:38:54.000Z
defmodule ExAdminDemo.UserView do use ExAdminDemo.Web, :view end
16.75
33
0.80597
4a33eb80993941bd26783da8a320e0bddb20bdc6
2,267
exs
Elixir
config/prod.exs
jonathanleang/phoenix_sample
2dbc65d74087fedc9eccb87436870f0927c74522
[ "Apache-2.0" ]
null
null
null
config/prod.exs
jonathanleang/phoenix_sample
2dbc65d74087fedc9eccb87436870f0927c74522
[ "Apache-2.0" ]
null
null
null
config/prod.exs
jonathanleang/phoenix_sample
2dbc65d74087fedc9eccb87436870f0927c74522
[ "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, # ...
35.984127
66
0.721659
4a3403264cba53325e2e49a738b946a851db7960
2,651
ex
Elixir
clients/jobs/lib/google_api/jobs/v2/model/histogram_facets.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v2/model/histogram_facets.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v2/model/histogram_facets.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...
39.567164
238
0.753678
4a340f848590353a9ee69d3e4ef61ed0546244ab
2,869
ex
Elixir
clients/drive_activity/lib/google_api/drive_activity/v2/model/permission.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/permission.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/permission.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...
46.274194
237
0.711398
4a343974ca083dd8e2daeaaa1ea3496d84914244
375
exs
Elixir
examples/basic/gen_code.exs
dengjie-ys/ex_ray
2715b44d8a8d6a17632e8cb9a9dfb98043f471d9
[ "Apache-2.0" ]
null
null
null
examples/basic/gen_code.exs
dengjie-ys/ex_ray
2715b44d8a8d6a17632e8cb9a9dfb98043f471d9
[ "Apache-2.0" ]
null
null
null
examples/basic/gen_code.exs
dengjie-ys/ex_ray
2715b44d8a8d6a17632e8cb9a9dfb98043f471d9
[ "Apache-2.0" ]
null
null
null
defoverridable(fred: 2) ############################# def(fred(a, b)) do ctx = %ExRay.Context{target: :fred, args: [a, b], guards: [], meta: [kind: :c]} pre = before_fun(ctx) try do super(a, b) rescue err -> after_fun(ctx, pre, err) throw(err) else res -> after_fun(ctx, pre, re...
19.736842
81
0.461333
4a344101fc0125bb6b1908073cb60dd849c3aa44
1,598
ex
Elixir
lib/blue_heron/hci/commands/controller_and_baseband/read_local_name.ex
kevinansfield/blue_heron
8339e6747e135030f7d1e67801391f03f2558e0d
[ "Apache-2.0" ]
45
2020-10-17T13:34:15.000Z
2022-03-08T09:40:43.000Z
lib/blue_heron/hci/commands/controller_and_baseband/read_local_name.ex
kevinansfield/blue_heron
8339e6747e135030f7d1e67801391f03f2558e0d
[ "Apache-2.0" ]
20
2020-10-15T15:05:54.000Z
2022-03-27T15:54:36.000Z
lib/blue_heron/hci/commands/controller_and_baseband/read_local_name.ex
kevinansfield/blue_heron
8339e6747e135030f7d1e67801391f03f2558e0d
[ "Apache-2.0" ]
11
2020-10-23T17:18:57.000Z
2022-03-15T20:01:49.000Z
defmodule BlueHeron.HCI.Command.ControllerAndBaseband.ReadLocalName do use BlueHeron.HCI.Command.ControllerAndBaseband, ocf: 0x0014 @moduledoc """ The Read_Local_Name command provides the ability to read the stored user-friendly name for the BR/EDR Controller. See Section 6.23 and 7.3.12 for more details * ...
29.054545
92
0.68836
4a34566801db69ee0c157dfd897f49f66f976ec5
690
ex
Elixir
lib/graphql/resolvers/permission.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/graphql/resolvers/permission.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/graphql/resolvers/permission.ex
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Accent.GraphQL.Resolvers.Permission do alias Accent.{ Plugs.GraphQLContext, Project, User } @spec list_viewer(User.t(), any(), GraphQLContext.t()) :: {:ok, [atom()]} def list_viewer(current_user, _, _) do permissions = current_user |> Map.get(:email) |> Accent.EmailA...
24.642857
79
0.64058
4a3469ba69e9419ab8221562adce97c6b6570386
1,227
ex
Elixir
lib/changelog_web/controllers/episode_request_controller.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
1
2020-05-20T16:58:17.000Z
2020-05-20T16:58:17.000Z
lib/changelog_web/controllers/episode_request_controller.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
lib/changelog_web/controllers/episode_request_controller.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.EpisodeRequestController do use ChangelogWeb, :controller alias Changelog.{EpisodeRequest} plug RequireUser, "before submitting" when action in [:create] def new(conn = %{assigns: %{podcasts: podcasts}}, params) do podcast = Enum.find(podcasts, fn(p) -> p.slug == params["slug"] end...
31.461538
97
0.656887
4a346a2286c3880b2745aad87ecb806a512f5105
9,087
ex
Elixir
lib/aws_codegen/rest_service.ex
bolmar/aws-codegen
bfd11edb78e798a562198d91639fdeebfd1f5197
[ "Apache-2.0" ]
null
null
null
lib/aws_codegen/rest_service.ex
bolmar/aws-codegen
bfd11edb78e798a562198d91639fdeebfd1f5197
[ "Apache-2.0" ]
null
null
null
lib/aws_codegen/rest_service.ex
bolmar/aws-codegen
bfd11edb78e798a562198d91639fdeebfd1f5197
[ "Apache-2.0" ]
null
null
null
defmodule AWS.CodeGen.RestService do alias AWS.CodeGen.Docstring defmodule Service do defstruct abbreviation: nil, actions: [], credential_scope: nil, content_type: nil, docstring: nil, decode: nil, encode: nil, e...
34.683206
107
0.595026
4a347a5d4b822f7937f1adcf2e8b85242c351016
834
ex
Elixir
lib/snowplow_tracker/subjects/helper.ex
WTTJ/snowplow-elixir-tracker
86b6301b4b98b04fca0d79ab2f4fca03a5e748c1
[ "Apache-2.0" ]
6
2018-04-30T11:02:45.000Z
2021-06-18T19:09:39.000Z
lib/snowplow_tracker/subjects/helper.ex
WTTJ/snowplow-elixir-tracker
86b6301b4b98b04fca0d79ab2f4fca03a5e748c1
[ "Apache-2.0" ]
15
2018-05-23T05:26:27.000Z
2020-07-12T10:12:32.000Z
lib/snowplow_tracker/subjects/helper.ex
WTTJ/snowplow-elixir-tracker
86b6301b4b98b04fca0d79ab2f4fca03a5e748c1
[ "Apache-2.0" ]
3
2020-06-05T23:30:14.000Z
2021-06-22T08:14:35.000Z
defmodule SnowplowTracker.Subjects.Helper do @moduledoc """ This module contains helper functions to support 'Subject' type creation. """ alias SnowplowTracker.Errors @supported_platforms [ "pc", "tv", "mob", "cnsl", "iot", "web", "srv", "app" ] @doc """ This function ...
21.384615
83
0.667866
4a34962d5c8c1b5055aa6821eab818fc68b83694
114
exs
Elixir
2017-06-23/pattern-matching/meetup/test/meetup_test.exs
yfractal/shenzhen-meetup
65ff0a7ab4d74748d5caa5c71a4179790634b266
[ "MIT" ]
19
2017-06-22T08:06:04.000Z
2019-10-28T02:36:20.000Z
2017-06-23/pattern-matching/meetup/test/meetup_test.exs
caicaishmily/shenzhen-meetup
59dabe90f30b8b20ea37c77c84791ffb0ab6757b
[ "MIT" ]
null
null
null
2017-06-23/pattern-matching/meetup/test/meetup_test.exs
caicaishmily/shenzhen-meetup
59dabe90f30b8b20ea37c77c84791ffb0ab6757b
[ "MIT" ]
6
2019-08-02T06:09:24.000Z
2020-12-30T09:04:31.000Z
defmodule MeetupTest do use ExUnit.Case doctest Meetup test "the truth" do assert 1 + 1 == 2 end end
12.666667
23
0.666667
4a349bd71e050d2d1d00b464984f4b91ca34bdf9
2,557
ex
Elixir
lib/bootleg/config.ex
jayjun/bootleg
2283ad22810178625c45eb2661624fac914befdd
[ "MIT" ]
null
null
null
lib/bootleg/config.ex
jayjun/bootleg
2283ad22810178625c45eb2661624fac914befdd
[ "MIT" ]
1
2018-10-17T17:41:19.000Z
2018-10-17T17:41:19.000Z
lib/bootleg/config.ex
jayjun/bootleg
2283ad22810178625c45eb2661624fac914befdd
[ "MIT" ]
null
null
null
defmodule Bootleg.Config do @moduledoc """ Configuration manager for Bootleg. """ alias Mix.Project defmacro __using__(_) do quote do IO.warn( "`use Bootleg.Config` is deprecated; call `use Bootleg.DSL` instead.", Macro.Env.stacktrace(__ENV__) ) import Bootleg.DSL, ...
20.620968
91
0.58115
4a34a6c454eba2cb95d99ad1e654545024cfca39
216
ex
Elixir
lib/dictator/config.ex
pedromlcosta/dictator
1b81c6a7c340b0c8338fd69c8123827a97d0ce06
[ "0BSD" ]
78
2020-02-21T14:35:54.000Z
2021-11-08T23:03:47.000Z
lib/dictator/config.ex
pedromlcosta/dictator
1b81c6a7c340b0c8338fd69c8123827a97d0ce06
[ "0BSD" ]
11
2020-04-23T07:17:00.000Z
2020-12-17T14:46:56.000Z
lib/dictator/config.ex
pedromlcosta/dictator
1b81c6a7c340b0c8338fd69c8123827a97d0ce06
[ "0BSD" ]
4
2020-09-16T15:08:53.000Z
2021-10-14T01:52:06.000Z
defmodule Dictator.Config do @moduledoc """ Helpers to get the dictator configs. Intended for internal use only. """ def get(key, default \\ nil) do Application.get_env(:dictator, key, default) end end
24
70
0.708333