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
338994900ba9a8e903ca4cb6102712ed3b9e4ffb
478
ex
Elixir
lib/intermodal_containers/container_number/category.ex
jjdonov/intermodal_containers
43cdd7af84fae773ea5a7fc416454ef9aeab0345
[ "MIT" ]
null
null
null
lib/intermodal_containers/container_number/category.ex
jjdonov/intermodal_containers
43cdd7af84fae773ea5a7fc416454ef9aeab0345
[ "MIT" ]
null
null
null
lib/intermodal_containers/container_number/category.ex
jjdonov/intermodal_containers
43cdd7af84fae773ea5a7fc416454ef9aeab0345
[ "MIT" ]
null
null
null
defmodule IntermodalContainers.ContainerNumber.Category do @moduledoc false alias IntermodalContainers.ContainerNumber def category(%ContainerNumber{category_identifier: id}) do category(id) end def category("J") do "detachable freight container related equipment" end def category("R") do ...
18.384615
60
0.725941
3389b4c6af837d81c51071566c43d293f1830cb7
1,903
ex
Elixir
lib/credo/cli/output/issues_short_list.ex
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
1
2020-01-31T10:23:37.000Z
2020-01-31T10:23:37.000Z
lib/credo/cli/output/issues_short_list.ex
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
lib/credo/cli/output/issues_short_list.ex
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
defmodule Credo.CLI.Output.IssuesShortList do alias Credo.CLI.Filename alias Credo.CLI.Filter alias Credo.CLI.Output alias Credo.CLI.Output.UI alias Credo.SourceFile alias Credo.Issue @doc "Called before the analysis is run." def print_before_info(source_files, config) do case Enum.count(source_fil...
31.196721
136
0.703626
3389bc77712933c8b29eaf63196e8ef07d7f7abe
199
ex
Elixir
aoc2019/elixir/lib/aoc2019.ex
austinsalonen/advent_of_code
c085a813511ace023620739f367948c58e7ca5e7
[ "MIT" ]
null
null
null
aoc2019/elixir/lib/aoc2019.ex
austinsalonen/advent_of_code
c085a813511ace023620739f367948c58e7ca5e7
[ "MIT" ]
null
null
null
aoc2019/elixir/lib/aoc2019.ex
austinsalonen/advent_of_code
c085a813511ace023620739f367948c58e7ca5e7
[ "MIT" ]
null
null
null
defmodule Aoc2019 do @moduledoc """ Documentation for Aoc2019. """ @doc """ Hello world. ## Examples iex> Aoc2019.hello() :world """ def hello do :world end end
10.473684
28
0.562814
338a0f54c34a5f4e398becca5ab6182c244503fc
197
exs
Elixir
test/medivh_web/controllers/page_controller_test.exs
vanetix/medivh
8ad3c05715aed34855d9539c60ec617996bed507
[ "MIT" ]
1
2019-12-04T20:29:27.000Z
2019-12-04T20:29:27.000Z
test/medivh_web/controllers/page_controller_test.exs
vanetix/medivh
8ad3c05715aed34855d9539c60ec617996bed507
[ "MIT" ]
null
null
null
test/medivh_web/controllers/page_controller_test.exs
vanetix/medivh
8ad3c05715aed34855d9539c60ec617996bed507
[ "MIT" ]
null
null
null
defmodule MedivhWeb.PageControllerTest do use MedivhWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.888889
60
0.680203
338a181412c01af571785190d402ee8538a3f569
1,027
ex
Elixir
2021/elixir/apps/day12/lib/part1.ex
ColdOrange/advent_of_code
18c4054558fdcaf123c8d8057b6de23894488a73
[ "MIT" ]
null
null
null
2021/elixir/apps/day12/lib/part1.ex
ColdOrange/advent_of_code
18c4054558fdcaf123c8d8057b6de23894488a73
[ "MIT" ]
null
null
null
2021/elixir/apps/day12/lib/part1.ex
ColdOrange/advent_of_code
18c4054558fdcaf123c8d8057b6de23894488a73
[ "MIT" ]
null
null
null
defmodule Day12Part1 do @moduledoc """ Day12 - Part1 """ def solve(input) do input |> String.split("\n", trim: true) |> Enum.map(&String.split(&1, "-")) |> Enum.reduce(%{}, fn [s | [e]], map -> map |> Map.update(s, [e], fn edges -> [e | edges] end) |> Map.update(e, [s], fn edg...
22.326087
88
0.547225
338a559f3434f888c4637c5acd47d2bd3640c564
33,309
ex
Elixir
clients/composer/lib/google_api/composer/v1beta1/api/projects.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1beta1/api/projects.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1beta1/api/projects.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...
53.551447
6,533
0.67069
338a648faf8803fb1dc5fa4f533d9a49a38abc24
3,415
exs
Elixir
farmbot_ext/config/config.exs
timgates42/farmbot_os
60b4917818d8ba6c2a95be0804ced493284c9cc3
[ "MIT" ]
null
null
null
farmbot_ext/config/config.exs
timgates42/farmbot_os
60b4917818d8ba6c2a95be0804ced493284c9cc3
[ "MIT" ]
null
null
null
farmbot_ext/config/config.exs
timgates42/farmbot_os
60b4917818d8ba6c2a95be0804ced493284c9cc3
[ "MIT" ]
null
null
null
use Mix.Config config :logger, handle_otp_reports: true, handle_sasl_reports: true # TODO(Rick) We probably don't need to use this anymore now that Mox is a thing. config :farmbot_celery_script, FarmbotCeleryScript.SysCalls, sys_calls: FarmbotCeleryScript.SysCalls.Stubs repos = [FarmbotCore.Config.Repo, FarmbotCor...
34.15
98
0.787408
338abe854d46982c3cbcf3001db927c3c2a5d185
578
ex
Elixir
lib/cadet/assessments/question_types/programming_question_testcases.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
lib/cadet/assessments/question_types/programming_question_testcases.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
lib/cadet/assessments/question_types/programming_question_testcases.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Assessments.QuestionTypes.Testcase do @moduledoc """ The Assessments.QuestionTypes.Testcase entity represents a public/opaque/secret testcase. """ use Cadet, :model @primary_key false embedded_schema do field(:program, :string) field(:answer, :string) field(:score, :integer) e...
25.130435
91
0.717993
338ad2634a977badd56238515380e21e294973f9
1,003
ex
Elixir
lib/epicenter/accounts/multifactor_auth.ex
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
lib/epicenter/accounts/multifactor_auth.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
lib/epicenter/accounts/multifactor_auth.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule Epicenter.Accounts.MultifactorAuth do @totp Application.compile_env(:epicenter, :totp, Epicenter.Accounts.TOTP) alias Epicenter.Accounts.User alias Epicenter.Extra def auth_uri(%User{email: email}, secret), do: @totp.otpauth_uri("Viewpoint:#{email}", secret, issuer: mfa_issuer()) def check(se...
28.657143
79
0.704885
338ae5dfb299633ee2b28d5a7d6d531f51c6eba7
721
ex
Elixir
web/views/auth_view.ex
wkozyra95/phoenix-boilerplate
8fd4607639f327928b0f8319a697f8efa951556e
[ "MIT" ]
null
null
null
web/views/auth_view.ex
wkozyra95/phoenix-boilerplate
8fd4607639f327928b0f8319a697f8efa951556e
[ "MIT" ]
null
null
null
web/views/auth_view.ex
wkozyra95/phoenix-boilerplate
8fd4607639f327928b0f8319a697f8efa951556e
[ "MIT" ]
null
null
null
defmodule StarterProject.AuthView do use StarterProject.Web, :view def render("user.json", %{ user: user }) do %{ id: user.id, username: user.username, email: user.email, } end def render("login.json", %{ user: user, jwt: jwt }) do %{ token: jwt, user: render("user.js...
21.205882
77
0.557559
338ae89bb6b3130d2a082d3be7b8a5824a3972f0
283
exs
Elixir
priv/repo/migrations/20180610040824_create_users.exs
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
priv/repo/migrations/20180610040824_create_users.exs
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
priv/repo/migrations/20180610040824_create_users.exs
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
defmodule Demo.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add(:username, :string) add(:email, :string) add(:phone_number, :string) timestamps() end create(unique_index(:users, :email)) end end
17.6875
45
0.650177
338af5fe0c453a4089cfa8b056997b3c2ceb2340
8,175
ex
Elixir
lib/teslamate/vehicles/vehicle/summary.ex
Ma233/teslamate
0ea19c19452623941681ca54ecbdc8f2353566ed
[ "MIT" ]
2,602
2019-07-24T23:19:12.000Z
2022-03-31T15:03:48.000Z
lib/teslamate/vehicles/vehicle/summary.ex
Ma233/teslamate
0ea19c19452623941681ca54ecbdc8f2353566ed
[ "MIT" ]
1,547
2019-07-26T22:02:09.000Z
2022-03-31T15:39:41.000Z
lib/teslamate/vehicles/vehicle/summary.ex
Ma233/teslamate
0ea19c19452623941681ca54ecbdc8f2353566ed
[ "MIT" ]
524
2019-07-26T17:31:33.000Z
2022-03-29T15:16:36.000Z
defmodule TeslaMate.Vehicles.Vehicle.Summary do import TeslaMate.Convert, only: [miles_to_km: 2, mph_to_kmh: 1] alias TeslaApi.Vehicle.State.{Drive, Charge, VehicleState} alias TeslaApi.Vehicle alias TeslaMate.Log.Car defstruct ~w( car display_name state since healthy latitude longitude heading battery_...
38.928571
107
0.69945
338b3ed56cd5f58ef260eac2692655439cc6e574
187
exs
Elixir
priv/repo/migrations/20180430130505_create_players.exs
artukrap/table-tennis-score-dashboard
4e0c20adeebc6755bb858c624310158a8f73cfe8
[ "MIT" ]
3
2018-05-11T11:28:20.000Z
2019-02-22T22:59:42.000Z
priv/repo/migrations/20180430130505_create_players.exs
krapans/table-tennis-score-dashboard
4e0c20adeebc6755bb858c624310158a8f73cfe8
[ "MIT" ]
4
2018-04-30T12:13:36.000Z
2018-05-04T12:17:38.000Z
priv/repo/migrations/20180430130505_create_players.exs
krapans/table-tennis-score-dashboard
4e0c20adeebc6755bb858c624310158a8f73cfe8
[ "MIT" ]
null
null
null
defmodule TableTennis.Repo.Migrations.CreatePlayers do use Ecto.Migration def change do create table(:players) do add :name, :string timestamps() end end end
14.384615
54
0.684492
338b4fe408a892a3ae3a87f118e072ddc98f3c7f
214
exs
Elixir
apps/astarte_realm_management/config/dev.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_realm_management/config/dev.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_realm_management/config/dev.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
use Mix.Config config :logger, :console, format: {PrettyLog.LogfmtFormatter, :format}, metadata: [ :realm, :interface, :interface_major, :trigger_name, :module, :function, :tag ]
15.285714
47
0.621495
338bc2861d753a112b70e241bba7fe1be42d43c9
2,214
ex
Elixir
lib/zeroth/client_grant.ex
arnau/zeroth
6826f140567002449cacc1502ade00e5da23c7ad
[ "MIT" ]
1
2017-06-02T10:07:47.000Z
2017-06-02T10:07:47.000Z
lib/zeroth/client_grant.ex
arnau/zeroth
6826f140567002449cacc1502ade00e5da23c7ad
[ "MIT" ]
null
null
null
lib/zeroth/client_grant.ex
arnau/zeroth
6826f140567002449cacc1502ade00e5da23c7ad
[ "MIT" ]
null
null
null
defmodule Zeroth.ClientGrant do @moduledoc """ Auth0 Client Grant management. https://auth0.com/docs/api/management/v2#!/Client_Grants """ alias Zeroth.Api alias Zeroth.Token alias Zeroth.Param alias Lonely.Result alias URI.Ext, as: URIE @path URI.parse("/api/v2/client-grants") @derive [Poison.En...
29.52
89
0.628726
338bca92d173f79c7d03a34dc41da255a21ac812
3,202
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/config_change.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/config_change.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/config_change.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...
42.693333
173
0.71674
338be14cd34e6498aa4de2d2b90d00b31a4d0c57
3,311
exs
Elixir
test/otp_demo_web/controllers/user_session_controller_test.exs
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
test/otp_demo_web/controllers/user_session_controller_test.exs
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
test/otp_demo_web/controllers/user_session_controller_test.exs
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
defmodule OtpDemoWeb.UserSessionControllerTest do use OtpDemoWeb.ConnCase, async: true import OtpDemo.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/log_in" do test "renders log in page", %{conn: conn} do conn = get(conn, Routes.user_session_path(conn, :new)) ...
31.836538
89
0.598309
338bef03b0c6be852c999540dfafcbe638baa57c
900
ex
Elixir
apps/web_api/test/support/conn_case.ex
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
null
null
null
apps/web_api/test/support/conn_case.ex
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
null
null
null
apps/web_api/test/support/conn_case.ex
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
null
null
null
defmodule Staxx.WebApiWeb.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, ...
27.272727
59
0.73
338c05470ca7f0d6b9f3480dd998512b74a89cd7
6,979
ex
Elixir
lib/fritz_api/models.ex
adriankumpf/fritz-api
ba84025a6c418990123fc1c6279c8a0e0939c2c3
[ "MIT" ]
4
2018-05-20T14:00:59.000Z
2021-01-22T04:44:55.000Z
lib/fritz_api/models.ex
adriankumpf/fritz-api
ba84025a6c418990123fc1c6279c8a0e0939c2c3
[ "MIT" ]
48
2019-05-27T12:39:40.000Z
2022-03-07T18:13:22.000Z
lib/fritz_api/models.ex
adriankumpf/fritz-api
ba84025a6c418990123fc1c6279c8a0e0939c2c3
[ "MIT" ]
null
null
null
defmodule FritzApi.Model do @moduledoc false @callback into(Enumerable.t()) :: struct defmacro __using__(_opts) do quote do @behaviour FritzApi.Model @impl true def into(attrs) do fields = Enum.map(attrs, fn {k, v} -> {to_atom(k), v} end) struct(__MODULE__, fields) e...
24.660777
90
0.580599
338c13cf3e2eb15a1e3e4a696a3a1b1f35081390
141
ex
Elixir
libmahou/lib/mahou/message/create_container.ex
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
37
2021-01-31T17:43:03.000Z
2021-11-17T12:29:00.000Z
lib/mahou/message/create_container.ex
queer/libmahou
563d0cd2fb60e7b1e356b10dc457834e9c057002
[ "BSD-3-Clause" ]
4
2021-05-29T04:54:28.000Z
2021-06-26T20:40:48.000Z
lib/mahou/message/create_container.ex
queer/libmahou
563d0cd2fb60e7b1e356b10dc457834e9c057002
[ "BSD-3-Clause" ]
null
null
null
defmodule Mahou.Message.CreateContainer do use TypedStruct alias Mahou.Format.App typedstruct do field :apps, [App.t()] end end
15.666667
42
0.730496
338c255e43dce8787c852defe143398c18f15be1
1,344
exs
Elixir
test/unit/dry_run/dry_run_test.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
test/unit/dry_run/dry_run_test.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
test/unit/dry_run/dry_run_test.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
defmodule ZiglerTest.DryRunTest do use ExUnit.Case, async: true @moduletag :dry_run defmodule BasicZeroArity do use Zigler, dry_run: true ~Z""" /// nif: zeroarity/0 fn zeroarity() i64 { return 47; } """ end # performs a dry run of zigler compilation pathway, which is everythi...
24.436364
87
0.675595
338c33fb7e72cb0c1e10a6e66bc9b2145950b9e9
1,874
exs
Elixir
exercises/markdown/test/markdown_test.exs
cetinajero/elixir
63f48d7fbe9f1d6aae270218fbadfc8e6ba13543
[ "MIT" ]
null
null
null
exercises/markdown/test/markdown_test.exs
cetinajero/elixir
63f48d7fbe9f1d6aae270218fbadfc8e6ba13543
[ "MIT" ]
null
null
null
exercises/markdown/test/markdown_test.exs
cetinajero/elixir
63f48d7fbe9f1d6aae270218fbadfc8e6ba13543
[ "MIT" ]
null
null
null
defmodule MarkdownTest do use ExUnit.Case # @tag :pending test "parses normal text as a paragraph" do input = "This will be a paragraph" expected = "<p>This will be a paragraph</p>" assert Markdown.parse(input) == expected end @tag :pending test "parsing italics" do input = "_This will be ...
26.771429
97
0.635539
338c4659727ae1da2d292c9e50a24029defc0ec9
752
exs
Elixir
triangle/triangle.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
triangle/triangle.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
triangle/triangle.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
defmodule Triangle do @type kind :: :equilateral | :isosceles | :scalene @doc """ Return the kind of triangle of a triangle with 'a', 'b' and 'c' as lengths. """ @spec kind(number, number, number) :: { :ok, kind } | { :error, String.t } def kind(a, b, c) do cond do is_valid(a, b, c) != { :ok } ->...
30.08
82
0.5
338c59cf8c3e312ccd434658b07e8469ce5c6f51
571
exs
Elixir
priv/repo/migrations/20210524333791_create_purchases.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
priv/repo/migrations/20210524333791_create_purchases.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
priv/repo/migrations/20210524333791_create_purchases.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
defmodule MultipleProducts.Repo.Migrations.CreatePurchases do use Ecto.Migration def change do create table(:invoices) do add :stripe, :jsonb add :status, :string add :user_id, references("users", on_delete: :delete_all), null: false timestamps() end create table(:purchase...
19.689655
82
0.647986
338c762f04cba3feb4653aed06f74ada07a685a0
1,700
ex
Elixir
lib/cat_on_duty_web/live/team_live/index.ex
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
3
2020-11-23T15:30:04.000Z
2020-12-01T17:11:49.000Z
lib/cat_on_duty_web/live/team_live/index.ex
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
1
2020-12-29T09:09:03.000Z
2020-12-29T09:09:03.000Z
lib/cat_on_duty_web/live/team_live/index.ex
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
1
2021-08-11T10:10:16.000Z
2021-08-11T10:10:16.000Z
defmodule CatOnDutyWeb.TeamLive.Index do @moduledoc "Team index page handlers" use CatOnDutyWeb, :live_view alias CatOnDuty.{Employees, Employees.Team} @impl true def mount(_params, _session, socket) do :ok = Employees.subscribe() {:ok, socket |> assign(:search, "") |> fetch()} en...
28.333333
88
0.642941
338c8711223e709f3a4a86cd3de25e254599b427
10,654
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/training_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/training_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/big_query/lib/google_api/big_query/v2/model/training_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...
61.583815
618
0.682091
338c92079fe56efb7f416b86d85effc25bf18ce5
1,162
exs
Elixir
mix.exs
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
null
null
null
mix.exs
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
null
null
null
mix.exs
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
null
null
null
defmodule HedwigSlack.Mixfile do use Mix.Project @version "1.0.1" def project do [app: :hedwig_slack, name: "Hedwig Slack", version: @version, elixir: "~> 1.1", elixirc_paths: elixirc_paths(Mix.env), build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, pack...
22.346154
81
0.568847
338c9901d9d8fe6aa49675d81cd2f66b817bd9f9
712
exs
Elixir
elixir/hello-world/hello_world.exs
amitizle/exercism.io_exercises
1abfc90a47d96b212e29c5efef593448ffdc08df
[ "BSD-3-Clause" ]
null
null
null
elixir/hello-world/hello_world.exs
amitizle/exercism.io_exercises
1abfc90a47d96b212e29c5efef593448ffdc08df
[ "BSD-3-Clause" ]
null
null
null
elixir/hello-world/hello_world.exs
amitizle/exercism.io_exercises
1abfc90a47d96b212e29c5efef593448ffdc08df
[ "BSD-3-Clause" ]
null
null
null
defmodule HelloWorld do @moduledoc """ Elixir counts the number of arguments as part of the function name. For instance; def hello() do end would be a completely different function from def hello(name) do end Can you find a way to make all the tests pass with just one function? ...
19.243243
85
0.660112
338cbab35037f448af08894927c1dcd91742180a
4,709
exs
Elixir
test/acceptance/links_images/link_test.exs
boudra/earmark
add45b50fbfdd96283e0d5359ffcf43b844337ad
[ "Apache-1.1" ]
null
null
null
test/acceptance/links_images/link_test.exs
boudra/earmark
add45b50fbfdd96283e0d5359ffcf43b844337ad
[ "Apache-1.1" ]
null
null
null
test/acceptance/links_images/link_test.exs
boudra/earmark
add45b50fbfdd96283e0d5359ffcf43b844337ad
[ "Apache-1.1" ]
null
null
null
defmodule Acceptance.LinkImages.LinkTest do use ExUnit.Case import Support.Helpers, only: [as_html: 1, as_html: 2] describe "Link reference definitions" do test "link with title" do markdown = "[foo]: /url \"title\"\n\n[foo]\n" html = "<p><a href=\"/url\" title=\"title\">foo</a></p>\n" mes...
26.908571
93
0.544914
338cc6bcf33dc0b62cdd01e96de6701da509ccae
892
ex
Elixir
example/lib/example.ex
mnishiguchi/circuits_cdev
26aa3186a172456573a837f78649dc2c4ae1d4bb
[ "Apache-2.0" ]
null
null
null
example/lib/example.ex
mnishiguchi/circuits_cdev
26aa3186a172456573a837f78649dc2c4ae1d4bb
[ "Apache-2.0" ]
null
null
null
example/lib/example.ex
mnishiguchi/circuits_cdev
26aa3186a172456573a837f78649dc2c4ae1d4bb
[ "Apache-2.0" ]
null
null
null
defmodule Example do @moduledoc false use GenServer alias Circuits.GPIO.Chip def start_link(args) do GenServer.start_link(__MODULE__, args) end @impl GenServer def init(args) do chip = Keyword.get(args, :chip, "gpiochip0") led1 = Keyword.get(args, :led1, 17) led2 = Keyword.get(args, :l...
21.238095
65
0.647982
338cd6056fdf997f4151e07c9afd3811a26ccec8
348
ex
Elixir
apps/re_web/lib/views/listings/relaxed_view.ex
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re_web/lib/views/listings/relaxed_view.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
apps/re_web/lib/views/listings/relaxed_view.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule ReWeb.RelaxedView do use ReWeb, :view def render("index.json", %{ listings: listings, filters: filters, remaining_count: remaining_count }) do %{ listings: render_many(listings, ReWeb.ListingView, "listing.json"), filters: filters, remaining_count: rema...
21.75
73
0.640805
338d1d89b4e843df639773c2deff4a40e7371096
612
exs
Elixir
priv/repo/migrations/20180812183008_create_users.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
12
2019-05-10T21:48:06.000Z
2021-11-07T14:04:30.000Z
priv/repo/migrations/20180812183008_create_users.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
2
2019-05-14T19:07:10.000Z
2019-05-20T21:06:27.000Z
priv/repo/migrations/20180812183008_create_users.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
3
2019-05-19T18:24:20.000Z
2019-10-31T20:29:12.000Z
defmodule OkrApp.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users, primary_key: false) do add(:id, :string, null: false, primary_key: true) add(:user_name, :text, null: false) add(:active, :boolean, null: false) add(:family_name, :text) add(:giv...
26.608696
55
0.617647
338d2a4980b863b74861f7adc9296333c41c5a19
40
ex
Elixir
lib/rcon.ex
wisq/elixir-rcon
e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468
[ "MIT" ]
null
null
null
lib/rcon.ex
wisq/elixir-rcon
e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468
[ "MIT" ]
null
null
null
lib/rcon.ex
wisq/elixir-rcon
e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468
[ "MIT" ]
null
null
null
defmodule RCON do @moduledoc false end
10
17
0.8
338d3955f9b46a0bdfb1bba855c6f11c76e435cb
2,139
exs
Elixir
config/dev.exs
ontanj/karroake
b3346707df9d2378a06ee3bb7d218d0962fe7d86
[ "MIT" ]
null
null
null
config/dev.exs
ontanj/karroake
b3346707df9d2378a06ee3bb7d218d0962fe7d86
[ "MIT" ]
1
2021-05-10T10:36:59.000Z
2021-05-10T10:36:59.000Z
config/dev.exs
ontanj/karroake
b3346707df9d2378a06ee3bb7d218d0962fe7d86
[ "MIT" ]
null
null
null
import Config # Configure your database config :karroake, Karroake.Repo, username: "sol", password: "sofla123", database: "karroake_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading. #...
27.779221
68
0.691445
338d39be331ca4d4aa7daaba9718653d798d2e84
2,217
ex
Elixir
apps/omg_watcher/lib/recorder.ex
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/lib/recorder.ex
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/lib/recorder.ex
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
2
2020-06-07T11:14:54.000Z
2020-08-02T07:36:32.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...
29.171053
114
0.624267
338d3dd7a7cadd9732d3ae73cba1926aeda3309c
1,459
ex
Elixir
lib/surface/directive/hook.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
1
2021-06-04T20:46:52.000Z
2021-06-04T20:46:52.000Z
lib/surface/directive/hook.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
lib/surface/directive/hook.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
defmodule Surface.Directive.Hook do use Surface.Directive def extract({":hook", value, attr_meta}, meta) do %AST.Directive{ module: __MODULE__, name: :hook, value: directive_value(value, attr_meta, meta), meta: Helpers.to_meta(attr_meta, meta) } end def extract(_, _), do: [] ...
25.155172
89
0.629198
338d5e9883aa2f3569326ef2fe155a5606f8a827
11,473
ex
Elixir
lib/expo/plural_forms/known.ex
jshmrtn/expo
98459ed26833c1b05348bb80a66e78fc6d2e488d
[ "Apache-2.0" ]
2
2022-03-31T21:12:35.000Z
2022-03-31T21:44:59.000Z
lib/expo/plural_forms/known.ex
jshmrtn/expo
98459ed26833c1b05348bb80a66e78fc6d2e488d
[ "Apache-2.0" ]
13
2022-03-30T17:41:25.000Z
2022-03-31T23:35:49.000Z
lib/expo/plural_forms/known.ex
jshmrtn/expo
98459ed26833c1b05348bb80a66e78fc6d2e488d
[ "Apache-2.0" ]
null
null
null
defmodule Expo.PluralForms.Known do @moduledoc false alias Expo.PluralForms alias Expo.PluralForms.Parser # Extracted and adapted from # https://github.com/elixir-gettext/gettext/blob/600e4630fb7db514d464f92e2069a138cf9c68a1/lib/gettext/plural.ex known_plural_forms = """ ach, Acholi, ...
62.016216
136
0.456463
338db73f648fbc77c7f8aee86f76bbbe09ed2b63
168
exs
Elixir
Chapter 6 - Modules and Named Functions/times.exs
oktaviandi/programming-elixir
63c5eab8f0e56da644eed3899f010332ee2f7e1c
[ "MIT" ]
null
null
null
Chapter 6 - Modules and Named Functions/times.exs
oktaviandi/programming-elixir
63c5eab8f0e56da644eed3899f010332ee2f7e1c
[ "MIT" ]
null
null
null
Chapter 6 - Modules and Named Functions/times.exs
oktaviandi/programming-elixir
63c5eab8f0e56da644eed3899f010332ee2f7e1c
[ "MIT" ]
null
null
null
defmodule Times do def double(n) do n * 2 end def triple(n) do n * 3 end def quadruple(n) do double(double(n)) end end
12.923077
25
0.5
338dcf8c9d60291944d5cb6a0085576ab1342d29
2,212
ex
Elixir
web/models/session.ex
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
2
2016-02-25T20:12:35.000Z
2018-01-03T00:03:12.000Z
web/models/session.ex
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
1
2016-01-11T04:50:39.000Z
2016-01-12T05:00:08.000Z
web/models/session.ex
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
null
null
null
defmodule Apiv4.Session do use Apiv4.Web, :model alias Apiv4.Repo alias Apiv4.User alias Apiv4.Account use Autox.Session, repo: Repo, user: User schema "sessions" do belongs_to :user, Apiv4.User belongs_to :account, Apiv4.Account belongs_to :employee, Apiv4.Employee field :email, :st...
27.65
88
0.632911
338e0376c6b1935ed585adc0013f54df55b0b2e3
1,676
ex
Elixir
apps/bingo_hall/lib/bingo_hall_web/channels/user_socket.ex
marcdel/bingo
898dc4a5fb53f3941038796793a3bd7606c70567
[ "Unlicense" ]
2
2018-05-30T11:17:19.000Z
2018-11-08T19:04:09.000Z
apps/bingo_hall/lib/bingo_hall_web/channels/user_socket.ex
marcdel/bingo
898dc4a5fb53f3941038796793a3bd7606c70567
[ "Unlicense" ]
null
null
null
apps/bingo_hall/lib/bingo_hall_web/channels/user_socket.ex
marcdel/bingo
898dc4a5fb53f3941038796793a3bd7606c70567
[ "Unlicense" ]
null
null
null
defmodule BingoHallWeb.UserSocket do use Phoenix.Socket ## Channels channel "games:*", BingoHallWeb.GameChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify an...
32.862745
84
0.694511
338e19129abb12b46e949f66bc15e05affe28ecf
1,470
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/ssl_policies_list_available_features_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/ssl_policies_list_available_features_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/ssl_policies_list_available_features_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
31.276596
99
0.748299
338e1de949ef04cae39eedd6a2e84cf957c6fae3
254
exs
Elixir
priv/repo/migrations/20200811162628_add_host_name_to_widget_settings.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
priv/repo/migrations/20200811162628_add_host_name_to_widget_settings.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
priv/repo/migrations/20200811162628_add_host_name_to_widget_settings.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Repo.Migrations.AddHostNameToWidgetSettings do use Ecto.Migration def change do alter table(:widget_settings) do add(:last_seen_at, :utc_datetime) add(:host, :string) add(:pathname, :string) end end end
21.166667
64
0.704724
338e3470e70539b8ff0650a06aa13f23ad3af5b6
1,476
ex
Elixir
lib/elixir/lib/kernel/def.ex
DavidAlphaFox/elixir
de414fe998efcb07e05210a2c07b2496319716fd
[ "Apache-2.0" ]
1
2019-06-11T20:22:20.000Z
2019-06-11T20:22:20.000Z
lib/elixir/lib/kernel/def.ex
DavidAlphaFox/elixir
de414fe998efcb07e05210a2c07b2496319716fd
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/def.ex
DavidAlphaFox/elixir
de414fe998efcb07e05210a2c07b2496319716fd
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.Def do @moduledoc false @doc """ Callback invoked at compile time for `defdelegate`. """ def delegate(fun, opts) do append_first = Keyword.get(opts, :append_first, false) {name, args} = case Macro.decompose_call(fun) do {_, _} = pair -> pair _ -> raise Argument...
26.357143
98
0.588753
338e561453ebee73d67de5c6f9caaa220931217b
3,101
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/notification.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/storage/lib/google_api/storage/v1/model/notification.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/notification.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
43.676056
203
0.69139
338e935f1f0f69c7b1e751f7375fa32ac2d0c1db
828
ex
Elixir
lib/vintage_net/property_table/supervisor.ex
nerves-networking/vintage_net
8d4251a0ec995babf8f4d7aa7cc1d74b70646c72
[ "Apache-2.0" ]
85
2019-05-09T14:54:38.000Z
2022-02-08T16:52:04.000Z
lib/vintage_net/property_table/supervisor.ex
nerves-networking/vintage_net
8d4251a0ec995babf8f4d7aa7cc1d74b70646c72
[ "Apache-2.0" ]
132
2019-05-09T15:57:59.000Z
2022-02-28T16:31:22.000Z
lib/vintage_net/property_table/supervisor.ex
nerves-networking/vintage_net
8d4251a0ec995babf8f4d7aa7cc1d74b70646c72
[ "Apache-2.0" ]
14
2019-07-08T19:18:23.000Z
2022-02-08T16:52:05.000Z
defmodule VintageNet.PropertyTable.Supervisor do @moduledoc false use Supervisor alias VintageNet.PropertyTable @spec start_link(PropertyTable.options()) :: Supervisor.on_start() def start_link(options) do Supervisor.start_link(__MODULE__, options) end @impl Supervisor def init(options) do na...
26.709677
74
0.725845
338ec65b11ac87c8b08ef924df54eb6b7806a229
1,092
exs
Elixir
test/toy_robot/cli_test.exs
lowski/toy-robot
107e5c68c1ba0813be9efb3949f6fde348aaa05b
[ "MIT" ]
null
null
null
test/toy_robot/cli_test.exs
lowski/toy-robot
107e5c68c1ba0813be9efb3949f6fde348aaa05b
[ "MIT" ]
null
null
null
test/toy_robot/cli_test.exs
lowski/toy-robot
107e5c68c1ba0813be9efb3949f6fde348aaa05b
[ "MIT" ]
null
null
null
defmodule ToyRobot.CLITest do use ExUnit.Case, async: true import ExUnit.CaptureIO test "it provides usage instructions if no arguments are specified" do output = capture_io(fn -> ToyRobot.CLI.main([]) end) assert String.trim(output) == "Usage: toy_robot commands.txt" end test ...
24.818182
78
0.65293
338efaa67ba7f2190fa8948f6f0b2c52d395073c
6,018
exs
Elixir
test/xema/cast/one_of_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/xema/cast/one_of_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/xema/cast/one_of_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule Xema.Cast.OneOfTest do use ExUnit.Case, async: true import Xema, only: [cast: 2] alias Xema.{CastError, ValidationError} describe "cast/2 with one_of schema with types" do setup do %{ schema: Xema.new(one_of: [:integer, :string, nil]) } end test "from an integer", %...
27.732719
81
0.456132
338f3621e42d79e2d477fc576394c538efe31a1d
2,859
exs
Elixir
test/ui_test.exs
aman-io/exq_ui
28a02575481a5ddf77a0ea302d711c55c7420bab
[ "Apache-2.0" ]
null
null
null
test/ui_test.exs
aman-io/exq_ui
28a02575481a5ddf77a0ea302d711c55c7420bab
[ "Apache-2.0" ]
null
null
null
test/ui_test.exs
aman-io/exq_ui
28a02575481a5ddf77a0ea302d711c55c7420bab
[ "Apache-2.0" ]
null
null
null
defmodule Exq.ApiTest do use ExUnit.Case, async: false use Plug.Test alias Exq.Support.Config alias Exq.Support.Job alias Exq.Redis.JobQueue alias Exq.Support.Process alias Exq.Redis.JobStat import ExqTestUtil setup_all do TestRedis.setup() {:ok, sup} = Exq.start_link(host: redis_host(), port...
25.990909
94
0.622246
338f3e22eef7b97b9713ffdc3b8c542852351ae6
106
exs
Elixir
test/hooks/paginate_test.exs
mirego/rummage_ecto
e10f9455e21eac6de8c654c5777ba6fe65bb6169
[ "MIT" ]
null
null
null
test/hooks/paginate_test.exs
mirego/rummage_ecto
e10f9455e21eac6de8c654c5777ba6fe65bb6169
[ "MIT" ]
null
null
null
test/hooks/paginate_test.exs
mirego/rummage_ecto
e10f9455e21eac6de8c654c5777ba6fe65bb6169
[ "MIT" ]
null
null
null
defmodule Rummage.Ecto.Hooks.PaginateTest do use ExUnit.Case doctest Rummage.Ecto.Hooks.Paginate end
17.666667
44
0.811321
338f6417f8dcaa7a865334a9c4c220fe9169346b
670
ex
Elixir
lib/source_academy/course/student.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy/course/student.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy/course/student.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
defmodule SourceAcademy.Course.Student do @moduledoc false use SourceAcademy, :model alias SourceAcademy.Accounts.User schema "students" do field :is_phantom, :boolean, default: false field :experience_point, :integer, default: 0 field :level, :integer, default: 0 field :latest_story, :string ...
26.8
70
0.735821
338f65bf99115e73e8cd7646bbd60654e024441b
84
ex
Elixir
04-chapter/04_example.ex
herminiotorres/programming-elixir
70add5ec9fe7f91129da0a4e39ab329afb9be598
[ "MIT" ]
null
null
null
04-chapter/04_example.ex
herminiotorres/programming-elixir
70add5ec9fe7f91129da0a4e39ab329afb9be598
[ "MIT" ]
null
null
null
04-chapter/04_example.ex
herminiotorres/programming-elixir
70add5ec9fe7f91129da0a4e39ab329afb9be598
[ "MIT" ]
null
null
null
# keyword lists IO.inspect([1, fred: 1, dave: 2]) IO.inspect({1, fred: 1, dave: 2})
21
33
0.619048
338f6c84d699e8cb5b2fdf638a66c5c927f8ba58
1,951
exs
Elixir
test/object/put_new_test.exs
functional-bitcoin/library
58ae7717d473baca3408bc6f920904db78dd9eaf
[ "MIT" ]
6
2019-02-13T21:58:50.000Z
2019-08-07T12:05:20.000Z
test/object/put_new_test.exs
operate-bsv/op_library
58ae7717d473baca3408bc6f920904db78dd9eaf
[ "MIT" ]
null
null
null
test/object/put_new_test.exs
operate-bsv/op_library
58ae7717d473baca3408bc6f920904db78dd9eaf
[ "MIT" ]
null
null
null
defmodule Object.PutNewTest do use ExUnit.Case setup_all do %{ vm: Operate.VM.init, op: File.read!("src/object/put_new.lua") } end describe "without a state" do test "must set simple key value pairs with empty object on path", ctx do res = %Operate.Cell{op: ctx.op, params: ["fo...
34.22807
90
0.50692
338f8dfc1938eee8836249bb2dcde686a4ad7bb9
7,776
exs
Elixir
test/themes/filter_test.exs
ArthurPai/ex_admin
8894a5e2d4a8ca0c0bfeceded16df3b7058ca665
[ "MIT" ]
null
null
null
test/themes/filter_test.exs
ArthurPai/ex_admin
8894a5e2d4a8ca0c0bfeceded16df3b7058ca665
[ "MIT" ]
null
null
null
test/themes/filter_test.exs
ArthurPai/ex_admin
8894a5e2d4a8ca0c0bfeceded16df3b7058ca665
[ "MIT" ]
1
2021-04-14T16:18:31.000Z
2021-04-14T16:18:31.000Z
defmodule ExAdmin.ThemeFilterTest do use ExUnit.Case alias ExAdmin.Theme.{ActiveAdmin, AdminLte2} def all(TestExAdmin.User = model) do [struct(model.__struct__, [id: 1, name: "test"])] end def all(TestExAdmin.UUIDSchema = model) do [struct(model.__struct__, [key: Ecto.UUID.generate, name: "test"])] ...
48.6
94
0.694959
338fab83c6496ff29f31749b86edd90e694aacbb
855
exs
Elixir
test/channel_test.exs
Lean5/rbmq
c6e746c212e103fc4ada53969e88fc1f32a357a6
[ "MIT" ]
null
null
null
test/channel_test.exs
Lean5/rbmq
c6e746c212e103fc4ada53969e88fc1f32a357a6
[ "MIT" ]
1
2019-02-13T14:26:22.000Z
2019-02-13T14:26:22.000Z
test/channel_test.exs
Lean5/rbmq
c6e746c212e103fc4ada53969e88fc1f32a357a6
[ "MIT" ]
null
null
null
defmodule RBMQ.ChannelTest do use ExUnit.Case import RBMQ.Connection doctest RBMQ.Connection.Channel defmodule TestConnection do use RBMQ.Connection, otp_app: :rbmq end defmodule TestChannelSupervisor do def start do children = [ TestConnection, ] opts = [strategy:...
20.853659
76
0.674854
338fafa03a2bcc27064d65cb8bc8b2e9a9ca3da7
535
exs
Elixir
daniel/prog_elix/ch15/ex04.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/prog_elix/ch15/ex04.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/prog_elix/ch15/ex04.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
defmodule Exercise04 do import :timer, only: [sleep: 1] def reply(sender) do send(sender, {:ok, :did_that}) raise("raising as requested") end def run do Process.flag(:trap_exit, true) spawn_link(Exercise04, :reply, [self()]) sleep(500) receive_stuff() end defp receive_stuff do ...
18.448276
66
0.626168
338fbe4323ecb49e049fbe8d641281ac55bb3168
437
ex
Elixir
apps/rest_api/lib/view.ex
dcdourado/watcher_ex
ce80df81610a6e9b77612911aac2a6d6cf4de8d5
[ "Apache-2.0" ]
9
2020-10-13T14:11:37.000Z
2021-08-12T18:40:08.000Z
apps/rest_api/lib/view.ex
dcdourado/watcher_ex
ce80df81610a6e9b77612911aac2a6d6cf4de8d5
[ "Apache-2.0" ]
28
2020-10-04T14:43:48.000Z
2021-12-07T16:54:22.000Z
apps/rest_api/lib/view.ex
dcdourado/watcher_ex
ce80df81610a6e9b77612911aac2a6d6cf4de8d5
[ "Apache-2.0" ]
3
2020-11-25T20:59:47.000Z
2021-08-30T10:36:58.000Z
defmodule RestAPI.View do @moduledoc """ Helpers to be used in views. """ defmacro __using__(_opts) do quote do use Phoenix.View, root: "lib/templates", namespace: RestAPI import Phoenix.Controller, only: [get_flash: 1, get_flash: 2, view_module: 1, view_template: 1] import Phoe...
21.85
76
0.670481
338fc8e5f1e439115a4888d9b7722423643b9503
631
exs
Elixir
.tidy.exs
shinyscorpion/location
82eebb125ce45c82c9b78e54bf469d8d4a69ba28
[ "MIT" ]
1
2020-01-12T03:45:45.000Z
2020-01-12T03:45:45.000Z
.tidy.exs
shinyscorpion/location
82eebb125ce45c82c9b78e54bf469d8d4a69ba28
[ "MIT" ]
null
null
null
.tidy.exs
shinyscorpion/location
82eebb125ce45c82c9b78e54bf469d8d4a69ba28
[ "MIT" ]
null
null
null
%{ checks: [ {Tidy.Checks.DescribeOptions, [level: :warning, args: [:opts, :options]]}, # {Tidy.Checks.FunctionArgumentDocumentation, # [level: :warning, exceptions: ["opts", "options"]]}, {Tidy.Checks.FunctionDoc, [level: :error]}, # {Tidy.Checks.FunctionExamples, [level: :suggest]}, {Tidy.C...
37.117647
94
0.643423
33901f8cc6a41ec9e8e7565af97c670bf4c29bb6
372
exs
Elixir
apps/nerves_hub_web_core/priv/repo/migrations/20180308221948_deployment_status_to_boolean.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20180308221948_deployment_status_to_boolean.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20180308221948_deployment_status_to_boolean.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubWebCore.Repo.Migrations.DeploymentStatusToBoolean do use Ecto.Migration def up do alter table(:deployments) do remove :status add :is_active, :boolean, null: false, default: false end end def down do alter table(:deployments) do remove :is_active add :sta...
20.666667
71
0.688172
33904b9890b5344cff05d46f98e157ef607db538
2,279
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/exchanged_peering_route.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/exchanged_peering_route.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/exchanged_peering_route.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...
38.627119
334
0.704256
3390820e13c6372472d2833bcf22992b09392166
388
exs
Elixir
apps/omg_watcher_info/priv/repo/migrations/20200529085008_create_pending_block_table.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher_info/priv/repo/migrations/20200529085008_create_pending_block_table.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher_info/priv/repo/migrations/20200529085008_create_pending_block_table.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
defmodule OMG.WatcherInfo.DB.Repo.Migrations.CreatePendingBlockTable do use Ecto.Migration def change() do create table(:pending_blocks, primary_key: false) do add :blknum, :bigint, null: false, primary_key: true add :data, :binary, null: false timestamps([type: :timestamptz, default: fragme...
29.846154
102
0.703608
339084b2af7083bb17968e2e5681a2795ba8bd57
1,776
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_locations_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_locations_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_locations_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.52
164
0.73536
3390afe96d722866f83af63ddaeaf06aa6763ab3
171
exs
Elixir
config/test.exs
myobie/ueberauth_vso
d3e9600935cbf3b360e9a8f9fb8876b82e4e8c85
[ "MIT" ]
null
null
null
config/test.exs
myobie/ueberauth_vso
d3e9600935cbf3b360e9a8f9fb8876b82e4e8c85
[ "MIT" ]
null
null
null
config/test.exs
myobie/ueberauth_vso
d3e9600935cbf3b360e9a8f9fb8876b82e4e8c85
[ "MIT" ]
null
null
null
use Mix.Config config :ueberauth, Ueberauth.Strategy.VSO.OAuth, redirect_uri: "http://localhost:4000/auth/vso/callback", client_id: "test", client_secret: "sekr3t"
24.428571
58
0.748538
3390c2ed827de2649b04cf5b6fb92db1877e3d23
1,769
ex
Elixir
lib/k6/target.ex
dallagi/elixir-k6
f6b6db55e766019e97378ea28a3ea2e9070c2e08
[ "MIT" ]
null
null
null
lib/k6/target.ex
dallagi/elixir-k6
f6b6db55e766019e97378ea28a3ea2e9070c2e08
[ "MIT" ]
null
null
null
lib/k6/target.ex
dallagi/elixir-k6
f6b6db55e766019e97378ea28a3ea2e9070c2e08
[ "MIT" ]
null
null
null
defmodule K6.Target do @moduledoc """ Get k6 target version according to system """ @type file_type :: :zip | :tar_gz @type target :: String.t() @type checksum :: String.t() @known_checksums %{ "k6-v0.34.1-linux-amd64.tar.gz" => "932668f86b4f5cfd4d33cd7c05651f9638570ccf303480ab5c207cba394e1732"...
32.759259
73
0.624081
3390efd3de0e9aaeae95934b7a7df4da62fc99d0
7,570
ex
Elixir
lib/mechanize/query.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
25
2020-06-26T02:21:35.000Z
2022-03-05T18:51:46.000Z
lib/mechanize/query.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
29
2019-07-02T21:50:06.000Z
2020-05-28T18:34:01.000Z
lib/mechanize/query.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
4
2020-06-24T02:11:47.000Z
2022-03-06T00:50:59.000Z
defmodule Mechanize.Query do @moduledoc """ Provides an easy support for querying elements in many Mechanize modules. This module is not primarily designed to be used by cliente code, instead you should use indirectly throught `Mechanize.Page.search/2` and `Mechanize.Page.filter_out/2`. Many other functions ...
31.67364
100
0.703038
3390f099c06adabd70c43c02840a1fc8180839ad
667
ex
Elixir
lib/dobar_web/resolvers/discover_resolver.ex
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
null
null
null
lib/dobar_web/resolvers/discover_resolver.ex
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
14
2019-09-02T18:00:07.000Z
2021-09-02T00:49:54.000Z
lib/dobar_web/resolvers/discover_resolver.ex
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
1
2016-07-27T14:40:55.000Z
2016-07-27T14:40:55.000Z
defmodule DobarWeb.Resolvers.DiscoverResolver do alias Dobar.{Discover, Accounts} def find_us_new_places( _parent, args = %{other_usernames: other_usernames, being_adventurous: being_adventurous}, %{ context: %{current_user: current_user} } ) when not is_nil(cu...
31.761905
89
0.686657
3390fe1e544225b1ad1047ab538a46507d87223a
1,325
ex
Elixir
elixir/lib/lost_in_translation.ex
pchaussalet/lost-in-transation
6e07b3c62666d70c5507e5455d5f42b3df97dd89
[ "MIT" ]
3
2019-02-18T09:38:55.000Z
2019-02-21T20:42:03.000Z
elixir/lib/lost_in_translation.ex
pchaussalet/lost-in-transation
6e07b3c62666d70c5507e5455d5f42b3df97dd89
[ "MIT" ]
2
2019-02-20T10:22:35.000Z
2019-02-21T20:33:27.000Z
elixir/lib/lost_in_translation.ex
pchaussalet/lost-in-transation
6e07b3c62666d70c5507e5455d5f42b3df97dd89
[ "MIT" ]
6
2019-02-07T19:29:12.000Z
2019-02-20T23:38:48.000Z
defmodule LostInTranslation do def main(args \\ []) def main([filename]), do: display_top_words_in_file(filename) def main(_), do: :error def display_top_words_in_file(filename) do read_lines(filename) |> Enum.map(fn line -> count_words_in_line(line) end) |> aggregate_line_counts() |> get_t...
24.090909
92
0.637736
33912102296f87f81b1819667e673d78c82bd898
898
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.259259
74
0.762806
33912d3bbf260b5aa64794f9a9e8da7ece34fba6
35,019
ex
Elixir
lib/elixir/lib/gen_event.ex
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/gen_event.ex
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/gen_event.ex
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
defmodule GenEvent do @moduledoc """ A behaviour module for implementing event handling functionality. The event handling model consists of a generic event manager process with an arbitrary number of event handlers which are added and deleted dynamically. An event manager implemented using this module wil...
33.224858
110
0.644022
33912fa3a031da0f8980c1fe04ae7f000ea3f538
96
exs
Elixir
test/test_helper.exs
filipecabaco/Ace
e5497f182c103f62ba42d8bccf429e016d4efe73
[ "MIT" ]
1
2021-11-22T10:30:44.000Z
2021-11-22T10:30:44.000Z
test/test_helper.exs
filipecabaco/Ace
e5497f182c103f62ba42d8bccf429e016d4efe73
[ "MIT" ]
null
null
null
test/test_helper.exs
filipecabaco/Ace
e5497f182c103f62ba42d8bccf429e016d4efe73
[ "MIT" ]
1
2021-11-22T10:31:48.000Z
2021-11-22T10:31:48.000Z
Code.require_file("support.exs", __DIR__) ExUnit.start() ExUnit.configure(exclude: [ci: true])
19.2
41
0.75
33915c2a7c614c8fad437160150e0d21b648614e
2,118
ex
Elixir
lib/ex_plasma/builder.ex
nondejus/ex_plasma
3be21c80ab9d28a40d44a6950969e72270f9bbb4
[ "Apache-2.0" ]
null
null
null
lib/ex_plasma/builder.ex
nondejus/ex_plasma
3be21c80ab9d28a40d44a6950969e72270f9bbb4
[ "Apache-2.0" ]
null
null
null
lib/ex_plasma/builder.ex
nondejus/ex_plasma
3be21c80ab9d28a40d44a6950969e72270f9bbb4
[ "Apache-2.0" ]
null
null
null
defmodule ExPlasma.Builder do @moduledoc """ Helper module to make crafting plasma transactions much simplier. """ alias ExPlasma.Output alias ExPlasma.Transaction @doc """ Create a new Transaction ## Example # Add tx_type iex> new(tx_type: 1) %ExPlasma.Transaction{tx_type: 1} # Add metadat...
28.621622
111
0.619452
339191792e9b9a90db28c23f21e6a08811c511a8
3,549
exs
Elixir
mix.exs
huzeifa/custom_rpi3
f0822494992679d1d8f096e9877c624db390a722
[ "Apache-2.0" ]
null
null
null
mix.exs
huzeifa/custom_rpi3
f0822494992679d1d8f096e9877c624db390a722
[ "Apache-2.0" ]
null
null
null
mix.exs
huzeifa/custom_rpi3
f0822494992679d1d8f096e9877c624db390a722
[ "Apache-2.0" ]
null
null
null
defmodule NervesSystemRpi3.MixProject do use Mix.Project @github_organization "nerves-project" @app :nerves_system_rpi3 @source_url "https://github.com/#{@github_organization}/#{@app}" @version Path.join(__DIR__, "VERSION") |> File.read!() |> String.trim() def project do [ ...
24.475862
83
0.587208
3391cf9a71e5c859e32ad732e05a67e253991b43
70
exs
Elixir
test/gh_web/views/page_view_test.exs
snamiki1212/example-elixir-phoenix-nuron-graphql
57b7f255db683a880d1b31f65a4328606d4d0009
[ "MIT" ]
null
null
null
test/gh_web/views/page_view_test.exs
snamiki1212/example-elixir-phoenix-nuron-graphql
57b7f255db683a880d1b31f65a4328606d4d0009
[ "MIT" ]
null
null
null
test/gh_web/views/page_view_test.exs
snamiki1212/example-elixir-phoenix-nuron-graphql
57b7f255db683a880d1b31f65a4328606d4d0009
[ "MIT" ]
null
null
null
defmodule GhWeb.PageViewTest do use GhWeb.ConnCase, async: true end
17.5
33
0.8
339206f1cdcc942ae27af0b80501c0eace7ba96a
294
ex
Elixir
lib/gaga_web/channels/presence.ex
madvoidhq/gaga
1a539edc327135c7910a51bffd6824bddcba5f7d
[ "MIT" ]
13
2020-11-22T18:43:21.000Z
2022-02-12T00:57:45.000Z
lib/gaga_web/channels/presence.ex
madvoidhq/gaga
1a539edc327135c7910a51bffd6824bddcba5f7d
[ "MIT" ]
2
2020-11-25T16:58:15.000Z
2021-06-21T12:02:41.000Z
lib/gaga_web/channels/presence.ex
madvoidhq/gaga
1a539edc327135c7910a51bffd6824bddcba5f7d
[ "MIT" ]
4
2020-11-23T08:14:03.000Z
2022-01-25T08:18:41.000Z
defmodule GagaWeb.Presence do @moduledoc """ Provides presence tracking to channels and processes. See the [`Phoenix.Presence`](http://hexdocs.pm/phoenix/Phoenix.Presence.html) docs for more details. """ use Phoenix.Presence, otp_app: :gaga, pubsub_server: Gaga.PubSub end
24.5
79
0.727891
3392246c92d09c3f09c4901f847637fe935f9ac8
1,468
exs
Elixir
mix.exs
0xd61/fluex
b9920cc5a7fd294430751544806093ae9a9dfb74
[ "Apache-2.0" ]
null
null
null
mix.exs
0xd61/fluex
b9920cc5a7fd294430751544806093ae9a9dfb74
[ "Apache-2.0" ]
16
2021-03-17T07:39:48.000Z
2022-03-23T11:31:23.000Z
mix.exs
kaitsh/fluex
b9920cc5a7fd294430751544806093ae9a9dfb74
[ "Apache-2.0" ]
null
null
null
defmodule Fluex.MixProject do use Mix.Project def project do [ app: :fluex, version: "0.1.1", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, compilers: [:rustler] ++ Mix.compilers(), rustler_crates: rustler_crates(), description: "Localization system for natura...
24.881356
91
0.565395
3392512f627892ab0be7c90444c381b16b0364e5
21,528
exs
Elixir
test/scrivener/html_test.exs
thbar/scrivener_html
c579ed10e0c7c8488aefa87210d27ddfd4f1583d
[ "MIT" ]
null
null
null
test/scrivener/html_test.exs
thbar/scrivener_html
c579ed10e0c7c8488aefa87210d27ddfd4f1583d
[ "MIT" ]
null
null
null
test/scrivener/html_test.exs
thbar/scrivener_html
c579ed10e0c7c8488aefa87210d27ddfd4f1583d
[ "MIT" ]
4
2020-10-01T15:16:06.000Z
2021-02-11T05:21:56.000Z
defmodule Scrivener.HTMLTest do use ExUnit.Case alias Scrivener.HTML doctest Scrivener.HTML import Phoenix.ConnTest import Scrivener.Support.HTML alias Scrivener.Page setup do Application.put_env(:scrivener_html, :view_style, :bootstrap) Application.put_env(:scrivener_html, :routes_helper, MyApp...
38.859206
826
0.49424
33925305bd740deb6b5e814e8a23ae506965f5a8
3,994
ex
Elixir
apps/nightcrawler/lib/nightcrawler/parser.ex
ZucchiniZe/nightcrawler_elixir
be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6
[ "MIT" ]
null
null
null
apps/nightcrawler/lib/nightcrawler/parser.ex
ZucchiniZe/nightcrawler_elixir
be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6
[ "MIT" ]
null
null
null
apps/nightcrawler/lib/nightcrawler/parser.ex
ZucchiniZe/nightcrawler_elixir
be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6
[ "MIT" ]
null
null
null
defmodule Nightcrawler.Parser do @moduledoc """ Parses multiple things to deliver neat representations of entities """ @doc """ Grabs the title and start + end values ## Example iex> Nightcrawler.Parser.title("Nightcrawler (2011 - 2018)") %{title: "Nightcrawler", start: 2011, end: 2018} ...
26.450331
101
0.572359
33926631671ebf20fa6efb2acede7f5f0486ecd9
731
exs
Elixir
examples/server/elixir/mix.exs
egeland/satellizer
077b232d73198e5d21160fddd56e4be284a32a0b
[ "MIT" ]
6
2015-03-27T19:46:25.000Z
2018-04-05T08:29:17.000Z
examples/server/elixir/mix.exs
egeland/satellizer
077b232d73198e5d21160fddd56e4be284a32a0b
[ "MIT" ]
3
2020-03-30T23:38:29.000Z
2020-07-10T02:17:02.000Z
examples/server/elixir/mix.exs
egeland/satellizer
077b232d73198e5d21160fddd56e4be284a32a0b
[ "MIT" ]
1
2016-11-24T06:34:10.000Z
2016-11-24T06:34:10.000Z
defmodule Satellizer.Mixfile do use Mix.Project def project do [ app: :satellizer, version: "0.0.1", elixir: "~> 0.15.0", elixirc_paths: ["lib", "web"], deps: deps ] end # Configuration for the OTP application def application do [ mod: { Satellizer, [] }, applicat...
22.84375
77
0.588235
3392b36949a192cee8cdc647458236dd402bf192
966
ex
Elixir
lib/KVS.ex
221V/kvs
cec27cf6fc3cfe805ddcf6721b566a76126a3eb4
[ "ISC" ]
null
null
null
lib/KVS.ex
221V/kvs
cec27cf6fc3cfe805ddcf6721b566a76126a3eb4
[ "ISC" ]
null
null
null
lib/KVS.ex
221V/kvs
cec27cf6fc3cfe805ddcf6721b566a76126a3eb4
[ "ISC" ]
null
null
null
defmodule KVS do require Record Enum.each(Record.extract_all(from_lib: "kvs/include/cursors.hrl"), fn {name, definition} -> Record.defrecord(name, definition) end) Enum.each(Record.extract_all(from_lib: "kvs/include/metainfo.hrl"), fn {name, definition} -> Record.defrecord(name, definition) end) ...
26.108108
94
0.640787
3392cb978ed14c5b2c0e2c419b3a43fa317c3f09
2,145
ex
Elixir
clients/partners/lib/google_api/partners/v2/model/request_metadata.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/partners/lib/google_api/partners/v2/model/request_metadata.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/partners/lib/google_api/partners/v2/model/request_metadata.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...
37.631579
188
0.749184
3392cf7c94b21a3be1fc825e90d808b156891786
1,719
ex
Elixir
lib/igwet_web/controllers/user_controller.ex
TheSwanFactory/igwet
0a450686d1d222eb8e39e23ba5d2ea83657862d1
[ "MIT" ]
null
null
null
lib/igwet_web/controllers/user_controller.ex
TheSwanFactory/igwet
0a450686d1d222eb8e39e23ba5d2ea83657862d1
[ "MIT" ]
18
2018-02-25T11:13:46.000Z
2022-03-28T03:43:38.000Z
lib/igwet_web/controllers/user_controller.ex
TheSwanFactory/igwet
0a450686d1d222eb8e39e23ba5d2ea83657862d1
[ "MIT" ]
1
2019-01-04T12:16:47.000Z
2019-01-04T12:16:47.000Z
defmodule IgwetWeb.UserController do use IgwetWeb, :controller alias Igwet.Admin alias Igwet.Admin.User alias Igwet.Repo plug(:require_admin) def index(conn, _params) do users = Admin.list_users() render(conn, "index.html", users: users) end def new(conn, _params) do changeset = Admin.ch...
26.045455
67
0.617219
33934f9dc3643f72f67dab19102e76276accadd8
4,613
ex
Elixir
apps/astarte_appengine_api/lib/astarte_appengine_api_web/router.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_appengine_api/lib/astarte_appengine_api_web/router.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_appengine_api/lib/astarte_appengine_api_web/router.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.485915
98
0.707782
339397c40052d85e3d4e413339fe7c7fed559d70
468
ex
Elixir
tests/dummy/web/models/owner.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
tests/dummy/web/models/owner.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
tests/dummy/web/models/owner.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
defmodule Dummy.Owner do use Dummy.Web, :model schema "owners" do field :name, :string has_many :shops, Dummy.Shop timestamps end @create_fields ~w(name) @update_fields @create_fields @optional_fields ~w() def create_changeset(model, params\\%{}) do model |> cast(params, @create_fie...
20.347826
53
0.681624
3393a287a1ec399c2eab85f3da49539019320bce
599
ex
Elixir
lib/ex_saferpay/request/payer.ex
jshmrtn/ex-saferpay
263fc6dacf5b2741eb3fff33cf8ed405637d170a
[ "MIT" ]
1
2017-12-12T17:09:02.000Z
2017-12-12T17:09:02.000Z
lib/ex_saferpay/request/payer.ex
jshmrtn/ex-saferpay
263fc6dacf5b2741eb3fff33cf8ed405637d170a
[ "MIT" ]
4
2017-12-12T17:08:28.000Z
2018-03-01T08:04:56.000Z
lib/ex_saferpay/request/payer.ex
jshmrtn/ex-saferpay
263fc6dacf5b2741eb3fff33cf8ed405637d170a
[ "MIT" ]
null
null
null
defmodule ExSaferpay.Request.Payer do @moduledoc """ Request Body for Payer """ use ExSaferpay.RequestNormalizer alias ExSaferpay.Request @type t :: %__MODULE__{ ip_address: nil | String.t(), language_code: nil | Request.language(), delivery_address: nil | Request.Address.t()...
23.96
54
0.560935
3393ae5390d3f0889a5318bc2a4e079ac298a1ef
554
ex
Elixir
lib/sonox/application.ex
motionless/sonox
7d5738c570ebdb4ff042d560edc21d87db86e830
[ "MIT" ]
null
null
null
lib/sonox/application.ex
motionless/sonox
7d5738c570ebdb4ff042d560edc21d87db86e830
[ "MIT" ]
null
null
null
lib/sonox/application.ex
motionless/sonox
7d5738c570ebdb4ff042d560edc21d87db86e830
[ "MIT" ]
null
null
null
defmodule Sonox.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 = [ # Starts a worker by calling: Sonox.Worker.start_link(arg) # {Sonox.Worker, arg} {Sonox.Di...
26.380952
64
0.698556
3393de10f093c1ae35b7c7aec0d61fe3eaacc1f4
6,057
ex
Elixir
clients/domains/lib/google_api/domains/v1beta1/model/policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/domains/lib/google_api/domains/v1beta1/model/policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/domains/lib/google_api/domains/v1beta1/model/policy.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...
108.160714
1,997
0.750041
3393e54dcec9e2f56ff7e99b300d50d79137838a
5,226
ex
Elixir
lib/plug/adapters/test/conn.ex
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
1
2020-09-01T12:50:36.000Z
2020-09-01T12:50:36.000Z
lib/plug/adapters/test/conn.ex
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
lib/plug/adapters/test/conn.ex
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Adapters.Test.Conn do @behaviour Plug.Conn.Adapter @moduledoc false ## Test helpers def conn(conn, method, uri, body_or_params) do maybe_flush() uri = URI.parse(uri) method = method |> to_string |> String.upcase() query = uri.query || "" owner = self() {body, body_para...
28.557377
91
0.626292
3393e76499a43eb0d571aea3dcdbf1eea21f61e5
2,030
ex
Elixir
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_label_image_bounding_box_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_label_image_bounding_box_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_label_image_bounding_box_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35
201
0.781281
3394006635aa037263a7e7a62d1e0469ec0fc925
916
ex
Elixir
lib/asciinema_web/controllers/oembed_controller.ex
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
893
2017-09-14T14:18:29.000Z
2022-03-31T21:45:08.000Z
lib/asciinema_web/controllers/oembed_controller.ex
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
103
2017-09-29T22:15:33.000Z
2022-03-27T21:47:43.000Z
lib/asciinema_web/controllers/oembed_controller.ex
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
152
2017-09-07T12:43:15.000Z
2022-03-10T18:47:47.000Z
defmodule AsciinemaWeb.OembedController do use AsciinemaWeb, :controller alias Asciinema.Asciicasts plug :put_layout, nil def show(conn, params) do uri = URI.parse(params["url"] || "") with path when is_binary(path) <- uri.path, [_, id] <- Regex.run(~r|^/a/([^/]+)$|, path), {:ok, as...
24.105263
77
0.552402
339434c5e3b0b1d8d493dbd36a94e67c17a60dae
340
exs
Elixir
config/dev.exs
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
10
2020-11-13T08:33:22.000Z
2021-08-09T17:37:09.000Z
config/dev.exs
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
11
2021-01-06T21:30:14.000Z
2021-09-08T09:04:51.000Z
config/dev.exs
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
null
null
null
use Mix.Config config :fusion_auth, api_key: System.get_env("FUSION_AUTH_API_KEY"), api_url: System.get_env("FUSION_AUTH_URL"), tenant_id: System.get_env("FUSION_AUTH_TENANT_ID"), application_id: System.get_env("FUSION_AUTH_APPLICATION_ID"), enable_jwt: true, token_header_key: "authorization", refresh_he...
30.909091
63
0.785294
339435ffd2533e916e1aea1f8e0ec8925acedfce
4,911
ex
Elixir
lib/forge_sdk/conn/rpc_conn.ex
ArcBlock/forge-elixir-sdk
61ff656a59116d3da18055d54655e8eb5ca15f63
[ "Apache-2.0" ]
21
2019-05-08T01:25:42.000Z
2022-02-08T02:30:18.000Z
lib/forge_sdk/conn/rpc_conn.ex
ArcBlock/forge-elixir-sdk
61ff656a59116d3da18055d54655e8eb5ca15f63
[ "Apache-2.0" ]
6
2019-05-27T23:07:00.000Z
2020-03-10T04:33:10.000Z
lib/forge_sdk/conn/rpc_conn.ex
ArcBlock/forge-elixir-sdk
61ff656a59116d3da18055d54655e8eb5ca15f63
[ "Apache-2.0" ]
2
2019-07-21T18:12:47.000Z
2021-07-31T21:18:38.000Z
defmodule ForgeSdk.Conn do @moduledoc """ Wrapper for ForgeSdk gRPC connection """ use TypedStruct typedstruct do field :name, String.t() field :endpoint, String.t() field :chan, GRPC.Channel.t() | nil, default: nil field :chain_id, String.t(), default: "" field :decimal, non_neg_integer(...
28.719298
99
0.58257
339447c9b9bbe48d22a10d3c2d0dabc09f05e0e1
3,951
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__object_tracking_annotation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__object_tracking_annotation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__object_tracking_annotation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
44.393258
391
0.741078
33946354a5138349f96e2e0cd7df047b70e1d2f4
10,914
ex
Elixir
apps/artemis_web/lib/artemis_web.ex
artemis-platform/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2020-04-23T02:29:18.000Z
2020-07-07T13:13:17.000Z
apps/artemis_web/lib/artemis_web.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
4
2020-04-26T20:35:36.000Z
2020-11-10T22:13:19.000Z
apps/artemis_web/lib/artemis_web.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
null
null
null
defmodule ArtemisWeb 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 ArtemisWeb, :controller use ArtemisWeb, :view The definitions below will be executed for every view, controller, ...
31.094017
110
0.651274
33947fb5bdadd9ee5af1eb2e0a5bba630505e8f9
2,176
ex
Elixir
apps/evm/lib/evm/refunds/sstore.ex
atoulme/mana
cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
apps/evm/lib/evm/refunds/sstore.ex
atoulme/mana
cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
apps/evm/lib/evm/refunds/sstore.ex
atoulme/mana
cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
defmodule EVM.Refunds.Sstore do alias EVM.{ExecEnv, Gas} # Refund given (added into refund counter) when the storage value is set to zero from non-zero. @storage_refund 15_000 @spec refund({integer(), integer()}, ExecEnv.t()) :: integer() def refund({key, new_value}, exec_env) do if exec_env.config.eip1...
24.177778
97
0.584559
3394c6c4b37a072efac36b3bf6fa3e5c2e4d4211
2,232
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_groups_list_instances_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_groups_list_instances_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_groups_list_instances_warning.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...
40.581818
195
0.725806
3394d780665a3d3481432263419774f9deaf54c6
4,277
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/binding.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/binding.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/binding.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...
80.698113
1,972
0.753098
3394e626e74bc02c8d1c58e89bce2b2fa62d01ea
877
ex
Elixir
lib/gdex/config.ex
fracek/gdex
20c56076991d3eb660bf1e424d6560cc5d96e97f
[ "Apache-2.0" ]
7
2017-12-12T19:08:40.000Z
2021-11-11T04:58:55.000Z
lib/gdex/config.ex
fracek/gdex
20c56076991d3eb660bf1e424d6560cc5d96e97f
[ "Apache-2.0" ]
null
null
null
lib/gdex/config.ex
fracek/gdex
20c56076991d3eb660bf1e424d6560cc5d96e97f
[ "Apache-2.0" ]
2
2018-11-21T17:05:56.000Z
2019-04-07T19:33:12.000Z
defmodule Gdex.Config do @moduledoc """ Configuration used when connecting to GDAX. \ If the configuration contains `:api_key`, `:api_secret` and `:api_passphrase` requests will be authenticated. """ @type t :: %{} | Map.t @defaults %{ rest_url: "https://api.pro.coinbase.com/", websocket_url: "w...
23.702703
79
0.646522
33950cc6ef4476b15fd600c38736feffec2ee59c
3,540
ex
Elixir
lib/codes/codes_z93.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z93.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z93.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_Z93 do alias IcdCode.ICDCode def _Z930 do %ICDCode{full_code: "Z930", category_code: "Z93", short_code: "0", full_name: "Tracheostomy status", short_name: "Tracheostomy status", category_name: "Tracheostomy status" } end...
30.782609
85
0.603955
339513302b670c282dd74331843cbaf9fc570dd7
3,917
ex
Elixir
lib/vex/validator.ex
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
560
2015-01-12T00:07:27.000Z
2022-02-07T03:21:44.000Z
lib/vex/validator.ex
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
55
2015-02-16T18:59:57.000Z
2021-12-23T12:34:25.000Z
lib/vex/validator.ex
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
63
2015-02-12T03:49:50.000Z
2021-12-12T00:11:01.000Z
defmodule Vex.Validator do @moduledoc """ Common validator behavior. """ defmacro __using__(_) do quote do @behaviour Vex.Validator.Behaviour import Vex.Validator.Skipping use Vex.Validator.ErrorMessage def validate(data, _context, options) do validate(data, options) ...
33.478632
110
0.625479
33952aedfe3d0c82def3c62ce98fbe950870bf5b
442
exs
Elixir
test/bank_web/views/error_view_test.exs
jhonisds/bank
d053a8ddf47839b12ffde0397cc6be5ec86b4de3
[ "MIT" ]
4
2020-05-05T18:37:28.000Z
2022-01-05T00:56:19.000Z
test/bank_web/views/error_view_test.exs
jhonisds/bank
d053a8ddf47839b12ffde0397cc6be5ec86b4de3
[ "MIT" ]
21
2019-12-01T15:32:02.000Z
2019-12-19T13:10:36.000Z
test/bank_web/views/error_view_test.exs
jhonisds/bank
d053a8ddf47839b12ffde0397cc6be5ec86b4de3
[ "MIT" ]
2
2020-09-12T16:07:11.000Z
2020-12-11T06:46:45.000Z
defmodule BankWeb.ErrorViewTest do use BankWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(BankWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end test "renders 500.json" do ...
27.625
89
0.674208
33952fac3498a5aba4c4338e37e840f288e444a6
5,617
ex
Elixir
lib/codes/codes_z28.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z28.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z28.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_Z28 do alias IcdCode.ICDCode def _Z2801 do %ICDCode{full_code: "Z2801", category_code: "Z28", short_code: "01", full_name: "Immunization not carried out because of acute illness of patient", short_name: "Immunization not carried out because ...
42.233083
123
0.664946