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
f7659df16ba40172566be809bf50725c62e7e767
1,641
ex
Elixir
lib/crit/reservations/reservation_impl/write.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
lib/crit/reservations/reservation_impl/write.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
null
null
null
lib/crit/reservations/reservation_impl/write.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule Crit.Reservations.ReservationImpl.Write do alias Crit.Schemas alias Crit.Reservations.RestPeriod alias Crit.Sql alias Ecto.Multi alias Crit.Sql.CommonQuery def create(struct, institution) do struct_to_changeset(struct) |> Sql.insert(institution) end def create_noting_conflicts(struct, in...
26.901639
87
0.69348
f765c03d5425f0ecebf477fc4f1a0833696809e6
6
ex
Elixir
testData/org/elixir_lang/parser_definition/eol_to_whitespace/ClosingBracket.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/eol_to_whitespace/ClosingBracket.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/eol_to_whitespace/ClosingBracket.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
[1 ]
1.5
2
0.166667
f765d3da051c5c44de92f372717b3678b1fb6ed6
6,359
ex
Elixir
lib/ex_health.ex
kianmeng/ex_health
f7311d5e23e8cfbb6dd91381a52a420345331535
[ "MIT" ]
null
null
null
lib/ex_health.ex
kianmeng/ex_health
f7311d5e23e8cfbb6dd91381a52a420345331535
[ "MIT" ]
null
null
null
lib/ex_health.ex
kianmeng/ex_health
f7311d5e23e8cfbb6dd91381a52a420345331535
[ "MIT" ]
null
null
null
defmodule ExHealth do @moduledoc """ [![CircleCI](https://circleci.com/gh/Kartstig/ex_health/tree/master.svg?style=svg&circle-token=8ed28fee90111e2a034b0d71e0fcf8ae18bba641)](https://circleci.com/gh/Kartstig/ex_health/tree/master) [![codecov](https://codecov.io/gh/Kartstig/ex_health/branch/master/graph/badge.svg)](...
26.061475
322
0.628872
f765fdeba1045a3c15e9b38ac25462592bf9bc7b
698
exs
Elixir
services/fc_identity/test/fc_identity/commands/add_app_test.exs
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
services/fc_identity/test/fc_identity/commands/add_app_test.exs
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
services/fc_identity/test/fc_identity/commands/add_app_test.exs
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
defmodule FCIdentity.AddAppTest do use FCIdentity.UnitCase, async: true import FCSupport.Validation alias FCIdentity.AddApp describe "validations" do test "given type is standard" do cmd = %AddApp{ type: "standard" } {:error, {:validation_failed, errors}} = validate(cmd) ...
23.266667
60
0.644699
f76647714afdea38a08b1d10e252d14ada7d9ee7
1,758
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/autoscaling_settings.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/autoscaling_settings.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/autoscaling_settings.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "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.807692
108
0.74744
f76647fc915740c2a6a98bde68d072a25992cdf3
530
exs
Elixir
test/unit/hologram/compiler/transformers/not_equal_to_operator_transformer_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
test/unit/hologram/compiler/transformers/not_equal_to_operator_transformer_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
test/unit/hologram/compiler/transformers/not_equal_to_operator_transformer_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
defmodule Hologram.Compiler.NotEqualToOperatorTransformerTest do use Hologram.Test.UnitCase, async: true alias Hologram.Compiler.{Context, NotEqualToOperatorTransformer} alias Hologram.Compiler.IR.{IntegerType, NotEqualToOperator} test "transform/3" do code = "1 != 2" ast = ast(code) result = Not...
25.238095
69
0.720755
f766ae70ec2dddad3189f9657376b6226ad7246b
1,717
ex
Elixir
lib/scidata/iris.ex
goodhamgupta/scidata
0336e188213b2d8629060930143013a43507ce2f
[ "Apache-2.0" ]
null
null
null
lib/scidata/iris.ex
goodhamgupta/scidata
0336e188213b2d8629060930143013a43507ce2f
[ "Apache-2.0" ]
null
null
null
lib/scidata/iris.ex
goodhamgupta/scidata
0336e188213b2d8629060930143013a43507ce2f
[ "Apache-2.0" ]
null
null
null
defmodule Scidata.Iris do @moduledoc """ Module for downloading the [Iris Data Set](https://archive.ics.uci.edu/ml/datasets/iris). """ @base_url "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/" @dataset_file "iris.data" alias Scidata.Utils @doc """ Downloads the Iris dataset or fetch...
23.202703
102
0.606872
f766c898c38f878c59dc793a4c38f8fd3914b9ba
1,868
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "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...
36.627451
133
0.758565
f766f6b9f22e93e7141edb7cd806e7a6eff91c1c
1,376
ex
Elixir
test/support/data_case.ex
ashkan18/onsor
73b75b24f638f1a425de8ebf4454df971040e9f2
[ "MIT" ]
null
null
null
test/support/data_case.ex
ashkan18/onsor
73b75b24f638f1a425de8ebf4454df971040e9f2
[ "MIT" ]
4
2021-03-09T00:47:04.000Z
2022-02-10T15:15:28.000Z
test/support/data_case.ex
ashkan18/onsor
73b75b24f638f1a425de8ebf4454df971040e9f2
[ "MIT" ]
null
null
null
defmodule Onsor.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test r...
25.481481
77
0.678052
f766fa32224489ae023ef395ad6fe4326ce2c8b4
739
exs
Elixir
test/support/mock_adapter.exs
yrashk/ecto
1462d5ad4cbb7bf74c292ec405852bc196808daf
[ "Apache-2.0" ]
1
2016-08-15T21:23:28.000Z
2016-08-15T21:23:28.000Z
test/support/mock_adapter.exs
yrashk/ecto
1462d5ad4cbb7bf74c292ec405852bc196808daf
[ "Apache-2.0" ]
null
null
null
test/support/mock_adapter.exs
yrashk/ecto
1462d5ad4cbb7bf74c292ec405852bc196808daf
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.MockAdapter do @behaviour Ecto.Adapter defmacro __using__(_opts), do: :ok def start_link(_repo, _opts), do: :ok def stop(_repo), do: :ok def all(_repo, _query, _params, _opts), do: [1] def update_all(_repo, _query, _values, _params, _opts), do: 1 def delete_all(_repo, _query, _params, _op...
29.56
63
0.677943
f7674227126db6763753edbfd6fd7c02ef36dd0b
125
exs
Elixir
config/config.exs
Waasi/jirex
24f43309183c4702c7cdda956a58202847f5c074
[ "MIT" ]
null
null
null
config/config.exs
Waasi/jirex
24f43309183c4702c7cdda956a58202847f5c074
[ "MIT" ]
null
null
null
config/config.exs
Waasi/jirex
24f43309183c4702c7cdda956a58202847f5c074
[ "MIT" ]
null
null
null
use Mix.Config config :jirex, jira_api_key: System.get_env("JIRA_API_KEY"), jira_api_url: System.get_env("JIRA_API_URL")
25
47
0.776
f7674d18dc3c81b7a70d05952688e0f0d78f022e
1,244
ex
Elixir
apps/database/lib/database/services/account/withdraw.ex
fschuindt/amethyst
0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30
[ "MIT" ]
2
2018-06-23T11:43:34.000Z
2019-01-07T10:52:42.000Z
apps/database/lib/database/services/account/withdraw.ex
fschuindt/amethyst
0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30
[ "MIT" ]
1
2018-06-21T01:20:04.000Z
2018-06-21T01:20:04.000Z
apps/database/lib/database/services/account/withdraw.ex
fschuindt/amethyst
0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30
[ "MIT" ]
1
2018-06-30T21:40:51.000Z
2018-06-30T21:40:51.000Z
defmodule DataBase.Services.Account.Withdraw do @moduledoc """ Acts as a service to **withdraw** assets from a account. """ alias DataBase.Schemas.AccountMovement, as: Movement alias DataBase.Repos.AmethystRepo, as: Repo alias DataBase.Schemas.Account, as: Acc alias Decimal, as: D @doc """ Given a `...
31.1
65
0.645498
f7677a797257ab15d6d1e7348a2bb4a427cefd46
3,741
ex
Elixir
lib/scidata/squad.ex
jeantux/scidata
216d7b8ba09e402f7a3e8763af9d28fc8c549a0b
[ "Apache-2.0" ]
null
null
null
lib/scidata/squad.ex
jeantux/scidata
216d7b8ba09e402f7a3e8763af9d28fc8c549a0b
[ "Apache-2.0" ]
null
null
null
lib/scidata/squad.ex
jeantux/scidata
216d7b8ba09e402f7a3e8763af9d28fc8c549a0b
[ "Apache-2.0" ]
null
null
null
defmodule Scidata.Squad do @moduledoc """ Module for downloading the [SQuAD1.1 dataset](https://rajpurkar.github.io/SQuAD-explorer). """ require Scidata.Utils alias Scidata.Utils @base_url "https://rajpurkar.github.io/SQuAD-explorer/dataset/" @train_dataset_file "train-v1.1.json" @test_dataset_file "d...
27.108696
98
0.493986
f767d2d95b0b180e170820b4616d0e89b68f3034
2,116
ex
Elixir
lib/challenge/message.ex
juan-b-challenge/challenge
4cd55084067891ff1a86f827294dad05122f1059
[ "MIT" ]
null
null
null
lib/challenge/message.ex
juan-b-challenge/challenge
4cd55084067891ff1a86f827294dad05122f1059
[ "MIT" ]
null
null
null
lib/challenge/message.ex
juan-b-challenge/challenge
4cd55084067891ff1a86f827294dad05122f1059
[ "MIT" ]
null
null
null
defmodule Challenge.Message do use Ecto.Schema import Ecto.Changeset alias Challenge.{Message, Repo} schema "messages" do field :metadata, :map field :type, MessageTypeEnum field :sender_id, :id field :recipient_id, :id timestamps() end @doc false def changeset(message, attrs) do ...
27.128205
121
0.603497
f767e14e06a98c2894487c4b5b7bc1da85b0e27c
3,751
ex
Elixir
cp/lib/cpsim/cp/connection.ex
azhi/cpsim
a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b
[ "MIT" ]
null
null
null
cp/lib/cpsim/cp/connection.ex
azhi/cpsim
a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b
[ "MIT" ]
null
null
null
cp/lib/cpsim/cp/connection.ex
azhi/cpsim
a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b
[ "MIT" ]
null
null
null
defmodule CPSIM.CP.Connection do require Logger def init(state) do {:ok, pid} = __MODULE__.WS.start_link( url: Path.join(state.internal_config.ws_endpoint, state.internal_config.identity), parent: self() ) true = Process.link(pid) state |> put_in([:modules, __MODULE__,...
30.745902
120
0.671554
f7680bdc55fe32b4de98b93bb04ecef75183aff8
430
exs
Elixir
config/config.exs
myxplor/exvcr
84aa3ebce2412aff3eff25dea14cd39b08a5a32d
[ "MIT" ]
null
null
null
config/config.exs
myxplor/exvcr
84aa3ebce2412aff3eff25dea14cd39b08a5a32d
[ "MIT" ]
null
null
null
config/config.exs
myxplor/exvcr
84aa3ebce2412aff3eff25dea14cd39b08a5a32d
[ "MIT" ]
null
null
null
use Mix.Config config :exvcr, [ vcr_cassette_library_dir: "fixture/vcr_cassettes", custom_cassette_library_dir: "fixture/custom_cassettes", filter_sensitive_data: [ [pattern: "<PASSWORD>.+</PASSWORD>", placeholder: "PASSWORD_PLACEHOLDER"] ], filter_url_params: false, filter_request_headers: [], respo...
26.875
77
0.75814
f768431a1fe1d77067e484fc3629789f32f5464c
5,125
ex
Elixir
lib/qr_code/svg.ex
erickgnavar/qr_code
99bbc9cbc775f39f5818567b06087334dac4d231
[ "BSD-4-Clause" ]
null
null
null
lib/qr_code/svg.ex
erickgnavar/qr_code
99bbc9cbc775f39f5818567b06087334dac4d231
[ "BSD-4-Clause" ]
null
null
null
lib/qr_code/svg.ex
erickgnavar/qr_code
99bbc9cbc775f39f5818567b06087334dac4d231
[ "BSD-4-Clause" ]
null
null
null
defmodule QRCode.Svg do @moduledoc """ SVG structure and helper functions. """ alias MatrixReloaded.Matrix alias QRCode.{QR, SvgSettings} @type t :: %__MODULE__{ xmlns: String.t(), xlink: String.t(), width: ExMaybe.t(integer), height: ExMaybe.t(integer), b...
28.792135
108
0.570927
f7685d2610f884de8b2b26f45da9704aa5d9d4e9
317
exs
Elixir
priv/repo/migrations/20200611081048_create_batteries_table.exs
mekongit/evercam_models
7c36d52f2b47ffc89a3eaca65c2e353716fafacc
[ "MIT" ]
null
null
null
priv/repo/migrations/20200611081048_create_batteries_table.exs
mekongit/evercam_models
7c36d52f2b47ffc89a3eaca65c2e353716fafacc
[ "MIT" ]
null
null
null
priv/repo/migrations/20200611081048_create_batteries_table.exs
mekongit/evercam_models
7c36d52f2b47ffc89a3eaca65c2e353716fafacc
[ "MIT" ]
null
null
null
defmodule Evercam.Repo.Migrations.CreateBatteriesTable do use Ecto.Migration def change do create table(:batteries) do add :name, :string add :source_url, :string add :active, :boolean, default: true, null: false add :user_id, references(:users) timestamps() end end end
21.133333
57
0.671924
f7685f4b14ecc36094bc5f5a660573ee67fecfb1
4,175
ex
Elixir
src/lib/changelog/data/news/news_queue.ex
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
null
null
null
src/lib/changelog/data/news/news_queue.ex
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
null
null
null
src/lib/changelog/data/news/news_queue.ex
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
null
null
null
defmodule Changelog.NewsQueue do use Changelog.Data require Logger alias Changelog.{Buffer, NewsItem, NewsQueue, Notifier} schema "news_queue" do field :position, :float belongs_to :item, NewsItem end def queued(query \\ NewsQueue) do from(q in query, left_join: i in assoc(q, :item), ...
25.931677
108
0.631138
f768641aac537d9d67faee6cf31e6b731a16f56c
1,479
exs
Elixir
test/exavier_test.exs
filipevarjao/exavier
5e916fcf9ed95255ff937ff595d530e656adfa97
[ "MIT" ]
93
2019-07-22T09:21:31.000Z
2022-02-02T05:49:29.000Z
test/exavier_test.exs
filipevarjao/exavier
5e916fcf9ed95255ff937ff595d530e656adfa97
[ "MIT" ]
21
2019-07-26T12:54:37.000Z
2022-03-10T10:56:47.000Z
test/exavier_test.exs
filipevarjao/exavier
5e916fcf9ed95255ff937ff595d530e656adfa97
[ "MIT" ]
7
2019-11-05T08:32:51.000Z
2020-11-25T19:37:35.000Z
defmodule ExavierTest do use ExUnit.Case, async: true @subject Exavier test "returns quoted code from given file" do {:defmodule, _meta, [{:__aliases__, [line: 1], [module]}, _]} = @subject.file_to_quoted("test/fixtures/foo_bar.ex") assert module == :FooBar end test "translate test module to...
29
75
0.712644
f7686dc9a285354375e60c8c90e72d7c92df3c8d
101
ex
Elixir
lib/code_corps/repo.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
lib/code_corps/repo.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
lib/code_corps/repo.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
defmodule CodeCorps.Repo do use Ecto.Repo, otp_app: :code_corps use Scrivener, page_size: 10 end
20.2
37
0.772277
f7687efaf6997bcd2dee101bc26edbab4fb0e826
3,305
ex
Elixir
clients/games/lib/google_api/games/v1/api/revisions.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/api/revisions.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/api/revisions.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...
45.273973
342
0.708623
f7688ded660bdf652d63d1205c40dddc9f52c8c8
2,531
ex
Elixir
lib/teslamate/repair.ex
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
null
null
null
lib/teslamate/repair.ex
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
null
null
null
lib/teslamate/repair.ex
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
null
null
null
defmodule TeslaMate.Repair do use GenServer require Logger import Ecto.Query alias TeslaMate.Log.{Drive, Position, ChargingProcess} alias TeslaMate.{Repo, Locations} # API def start_link(opts) do GenServer.start_link(__MODULE__, opts, name: __MODULE__) end # Callbacks @impl true def init...
22.801802
84
0.5887
f768a1f0d6ca5c0fe034403b289f90c7226e3126
1,214
exs
Elixir
mix.exs
pedromvieira/cloud_storage
306c062e4d5c2b217c72fb01c712bb330b666bb4
[ "MIT" ]
12
2017-08-14T13:06:53.000Z
2020-04-29T19:28:27.000Z
mix.exs
pedromvieira/cloud_storage
306c062e4d5c2b217c72fb01c712bb330b666bb4
[ "MIT" ]
null
null
null
mix.exs
pedromvieira/cloud_storage
306c062e4d5c2b217c72fb01c712bb330b666bb4
[ "MIT" ]
1
2020-01-08T20:51:31.000Z
2020-01-08T20:51:31.000Z
defmodule CloudStorage.Mixfile do use Mix.Project def project do [ app: :cloud_storage, version: "0.5.1", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps(), na...
22.481481
88
0.541186
f768bbb6db2a2ce1fbc6d3897d4fdf764fafeb5d
3,068
ex
Elixir
clients/content/lib/google_api/content/v2/model/account_status.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/account_status.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/account_status.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...
42.027397
227
0.718383
f768c6532941b5d2d845b0ed484a8034435cbee5
535
ex
Elixir
apps/get_functional_tree/lib/get_functional_tree/supervisor.ex
taylonr/get_functional_elixir
a519eb3689749883e3fe5dd59a17253571c5fd33
[ "MIT" ]
4
2017-04-16T21:07:36.000Z
2021-07-21T10:27:10.000Z
apps/get_functional_tree/lib/get_functional_tree/supervisor.ex
taylonr/get_functional_elixir
a519eb3689749883e3fe5dd59a17253571c5fd33
[ "MIT" ]
null
null
null
apps/get_functional_tree/lib/get_functional_tree/supervisor.ex
taylonr/get_functional_elixir
a519eb3689749883e3fe5dd59a17253571c5fd33
[ "MIT" ]
null
null
null
defmodule GetFunctionalTree.Supervisor do use Supervisor def start_link(balance) do result = {:ok, sup} = Supervisor.start_link(__MODULE__, [balance]) start_workers(sup, balance) result end def start_workers(sup, balance) do {:ok, stash} = Supervisor.start_child(sup, wor...
31.470588
94
0.678505
f768cef1689401891f89ed8649b23543c51721cf
2,971
exs
Elixir
test/elixir/test/view_test.exs
denyadb/couchdb
ac33e853cef2a6a108aa64269eb196d32b235529
[ "Apache-2.0" ]
1
2020-09-11T19:23:27.000Z
2020-09-11T19:23:27.000Z
test/elixir/test/view_test.exs
denyadb/couchdb
ac33e853cef2a6a108aa64269eb196d32b235529
[ "Apache-2.0" ]
null
null
null
test/elixir/test/view_test.exs
denyadb/couchdb
ac33e853cef2a6a108aa64269eb196d32b235529
[ "Apache-2.0" ]
null
null
null
defmodule ViewTest do use CouchTestCase @moduletag :view @moduletag kind: :single_node @moduledoc """ Test CouchDB /{db}/_design/{ddoc}/_view/{view} """ setup_all do db_name = random_db_name() {:ok, _} = create_db(db_name) on_exit(fn -> delete_db(db_name) end) {:ok, _} = create_doc( ...
20.489655
86
0.511612
f768d749d2714a4b68a537eb00e988bd23445c62
1,819
ex
Elixir
phx/praxkit/lib/praxkit_web/telemetry.ex
zoosky/praxkit
4b4fe1af274e79e1a4f728a94ff58468f0fe13e0
[ "Apache-2.0" ]
null
null
null
phx/praxkit/lib/praxkit_web/telemetry.ex
zoosky/praxkit
4b4fe1af274e79e1a4f728a94ff58468f0fe13e0
[ "Apache-2.0" ]
5
2021-02-28T14:39:51.000Z
2021-02-28T14:43:10.000Z
phx/praxkit/lib/praxkit_web/telemetry.ex
zoosky/praxkit
4b4fe1af274e79e1a4f728a94ff58468f0fe13e0
[ "Apache-2.0" ]
1
2018-09-19T17:53:28.000Z
2018-09-19T17:53:28.000Z
defmodule PraxkitWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn ...
32.482143
86
0.671798
f768dbcf88244a5e34e13ccb78ec580ce877d4d3
177
ex
Elixir
vendor/tree-sitter-elixir/test/highlight/identifiers.ex
jessesna/difftastic
2c6545fae403f360c8b4d0e64fb3ece2baa8deea
[ "MIT" ]
125
2021-09-30T10:55:46.000Z
2022-03-16T10:49:32.000Z
vendor/tree-sitter-elixir/test/highlight/identifiers.ex
jessesna/difftastic
2c6545fae403f360c8b4d0e64fb3ece2baa8deea
[ "MIT" ]
21
2021-10-01T22:47:58.000Z
2022-03-25T19:43:13.000Z
vendor/tree-sitter-elixir/test/highlight/identifiers.ex
jessesna/difftastic
2c6545fae403f360c8b4d0e64fb3ece2baa8deea
[ "MIT" ]
9
2021-10-13T13:06:11.000Z
2022-02-12T17:16:06.000Z
abc_123 # ^ variable _018OP # ^ comment.unused A__0 # ^ module __MODULE__ ; __STACKTRACE__ # ^ constant.builtin # ^ constant.builtin __OTHER__ # ^ comment.unused
11.0625
31
0.677966
f768de6e3eb69e2e019eda9586f1e6d9c4a3bd12
1,170
exs
Elixir
config/dev.exs
matthewphilyaw/basic_auth_test
9bd6b62c8680ec603314adab940b8840e50b240c
[ "MIT" ]
null
null
null
config/dev.exs
matthewphilyaw/basic_auth_test
9bd6b62c8680ec603314adab940b8840e50b240c
[ "MIT" ]
null
null
null
config/dev.exs
matthewphilyaw/basic_auth_test
9bd6b62c8680ec603314adab940b8840e50b240c
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :foo_api, FooApi.Endpoint, http: [port: 4000],...
27.857143
60
0.719658
f768f54838f99455f457b805983696b5ff2870b7
941
exs
Elixir
mix.exs
danieledangeli/oanda_elixir
11d10c5603b1048ec9a31831bd1bc7c08198eb98
[ "Apache-2.0" ]
2
2018-02-28T06:02:32.000Z
2020-11-09T19:40:40.000Z
mix.exs
danieledangeli/oanda_elixir
11d10c5603b1048ec9a31831bd1bc7c08198eb98
[ "Apache-2.0" ]
null
null
null
mix.exs
danieledangeli/oanda_elixir
11d10c5603b1048ec9a31831bd1bc7c08198eb98
[ "Apache-2.0" ]
null
null
null
defmodule OandaApi.Mixfile do use Mix.Project def project do [app: :oanda_api, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps()] end def application do ...
23.525
86
0.587673
f76924666f13aecdf6ee70c00e16678eca3c99e8
3,760
ex
Elixir
lib/bike_brigade_web/live/sms_message_live/conversation_component.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
28
2021-10-11T01:53:53.000Z
2022-03-24T17:45:55.000Z
lib/bike_brigade_web/live/sms_message_live/conversation_component.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
20
2021-10-21T08:12:31.000Z
2022-03-31T13:35:53.000Z
lib/bike_brigade_web/live/sms_message_live/conversation_component.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
null
null
null
defmodule BikeBrigadeWeb.SmsMessageLive.ConversationComponent do use BikeBrigadeWeb, :live_component import BikeBrigadeWeb.MessagingHelpers alias BikeBrigade.Messaging alias BikeBrigade.MediaStorage alias BikeBrigade.SmsService @impl Phoenix.LiveComponent def mount(socket) do socket = socket ...
28.70229
96
0.681915
f76944dada5df8d9103f617c9f2493a601df8edf
503
ex
Elixir
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/views/error_view.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
1
2022-02-16T09:00:34.000Z
2022-02-16T09:00:34.000Z
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/views/error_view.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/views/error_view.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
defmodule LvPerformanceWeb.ErrorView do use LvPerformanceWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the t...
29.588235
61
0.741551
f769798164ea68ee116d7b44818485f24e1359d6
235
exs
Elixir
apps/snitch_core/priv/repo/migrations/20180223102833_create_constraints_on_payment_subtypes.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/priv/repo/migrations/20180223102833_create_constraints_on_payment_subtypes.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/priv/repo/migrations/20180223102833_create_constraints_on_payment_subtypes.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Core.Repo.Migrations.CreateConstraintsOnPaymentSubtypes do use Ecto.Migration def change do create constraint("snitch_card_payments", :card_exclusivity, check: "payment_exclusivity(payment_id, 'ccd') = 1") end end
29.375
117
0.791489
f7699fe6ab98146d07bc95e812f9e430d247dd0b
32,270
ex
Elixir
lib/webdriver/protocol.ex
bosko/elixir-webdriver
e7037312decab6646b2107b7345f2974b24a9d15
[ "MIT" ]
104
2015-02-11T02:57:53.000Z
2022-01-12T14:28:12.000Z
lib/webdriver/protocol.ex
bosko/elixir-webdriver
e7037312decab6646b2107b7345f2974b24a9d15
[ "MIT" ]
3
2015-07-23T18:48:11.000Z
2016-10-12T14:28:43.000Z
lib/webdriver/protocol.ex
bosko/elixir-webdriver
e7037312decab6646b2107b7345f2974b24a9d15
[ "MIT" ]
28
2015-01-09T22:05:27.000Z
2021-04-29T13:55:13.000Z
defmodule WebDriver.Protocol do use Jazz @moduledoc """ Implements the HTTP JSON wire protocol for WebDriver. This is the internal protocol and is supposed to be called via the WebDriver session server rather than directly. https://code.google.com/p/selenium/wiki/JsonWireProtocol All these ca...
34.886486
115
0.709266
f769a58a24d933f7414045acb321607048708e74
1,270
exs
Elixir
benchmarks.exs
ckampfe/ox
d8da521a580dd14df27406ac2fe35ab8890f979a
[ "MIT" ]
null
null
null
benchmarks.exs
ckampfe/ox
d8da521a580dd14df27406ac2fe35ab8890f979a
[ "MIT" ]
null
null
null
benchmarks.exs
ckampfe/ox
d8da521a580dd14df27406ac2fe35ab8890f979a
[ "MIT" ]
null
null
null
alias Ox.LeftistHeap, as: Heap random = StreamData.integer() |> Stream.map(&abs/1) [random_int] = StreamData.integer() |> Stream.map(&abs/1) |> Enum.take(1) small = random |> Enum.take(100) medium = random |> Enum.take(10_000) large = random |> Enum.take(1_000_000) int_compare_fn = fn x, y -> x <= y end small_heap...
36.285714
73
0.666929
f769b6af8d2203e2dd71935c92ad4bc1f9dbc9f8
1,570
exs
Elixir
config/config.exs
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
38
2016-10-21T08:26:15.000Z
2021-03-19T23:10:40.000Z
config/config.exs
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
32
2017-02-19T08:57:35.000Z
2020-02-05T13:15:11.000Z
config/config.exs
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
6
2017-11-24T16:02:20.000Z
2022-02-22T07:44:36.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # Configures the endpoint config :kastlex, Kastlex.Endpoint, root: Path.dirname(__D...
28.545455
86
0.735669
f769c3034876e4d8d395323e57843f1bff309bc2
5,381
ex
Elixir
lib/central/general/startup.ex
Teifion/teiserver
131e002160e1e948cb55e56d62370ba66a972cba
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central/general/startup.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
null
null
null
lib/central/general/startup.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
2
2021-02-23T22:34:00.000Z
2021-04-08T13:31:36.000Z
defmodule Central.General.Startup do use CentralWeb, :startup def startup do QuickAction.add_items([ %{ label: "Admin index", icons: [Central.Admin.AdminLib.icon(), :list], url: "/admin", permissions: "admin.admin.limited" }, %{ label: "Tools", ...
27.594872
108
0.568482
f769ca261ffbfcef2c3e22f81c7731abf3cbe91a
16,557
ex
Elixir
Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/api/disaster_recovery_configs.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/api/disaster_recovery_configs.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/api/disaster_recovery_configs.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.EventHub.Api.DisasterRecoveryConfigs do @moduledoc """ API calls for all endpoints tagged `DisasterRecoveryConfigs`...
53.756494
308
0.749834
f769fcb4ca4b2d1174afe9811af5480cc6051777
1,861
ex
Elixir
lib/exred_node_gpio_out.ex
exredorg/exred_node_gpio_out
59dfcd59b2a1c8c28904eb0418e8ed203dd2ec02
[ "MIT" ]
null
null
null
lib/exred_node_gpio_out.ex
exredorg/exred_node_gpio_out
59dfcd59b2a1c8c28904eb0418e8ed203dd2ec02
[ "MIT" ]
null
null
null
lib/exred_node_gpio_out.ex
exredorg/exred_node_gpio_out
59dfcd59b2a1c8c28904eb0418e8ed203dd2ec02
[ "MIT" ]
null
null
null
defmodule Exred.Node.GPIOOut do @moduledoc """ Sends data to a GPIO pin. Uses [Elixir ALE](https://github.com/fhunleth/elixir_ale) to interface with GPIO. ##Incoming Message format msg = %{payload :: 0 | 1 | true | false} ##Outgoing Message format msg = %{ payload :: :ok | :error, err...
20.450549
104
0.572273
f76a361b1620c6644c62093599b1d864c937a9cb
2,593
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_custom_batch_response_entry.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_custom_batch_response_entry.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_custom_batch_response_entry.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...
39.892308
196
0.708446
f76a42da1d329a8a956fff8d8ac4bd6392fb2187
2,143
ex
Elixir
2020/day24/lib/day24.ex
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
2020/day24/lib/day24.ex
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
2020/day24/lib/day24.ex
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
defmodule Day24 do @dirs %{ "w" => {0, -1}, "e" => {0, 1}, "nw" => {0.5, -0.5}, "ne" => {0.5, 0.5}, "se" => {-0.5, 0.5}, "sw" => {-0.5, -0.5} } def readinput() do File.read!("24.input.txt") |> String.split("\n", trim: true) |> Enum.map(fn line -> Regex.scan(~r/(se|ne|sw|...
23.043011
97
0.497434
f76a539921654623c2443a6f7fa1e381d9799e72
1,077
exs
Elixir
test/lib/code_corps/emails/project_approval_request_email_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps/emails/project_approval_request_email_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps/emails/project_approval_request_email_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Emails.ProjectApprovalRequestEmailTest do use CodeCorps.ModelCase use Bamboo.Test alias CodeCorps.Emails.ProjectApprovalRequestEmail test "request email works" do project = insert(:project) admin1 = insert(:user, admin: true) admin2 = insert(:user, admin: true) email = Pro...
35.9
108
0.725162
f76a7fd651486650a2e541ce2c061377bd1da4e7
296
ex
Elixir
aoc2019_elixir/apps/days/lib/supervisor.ex
mjm/advent-of-code-2019
a30599c1cba05d574fb30b6de98acdcec1ddc643
[ "MIT" ]
1
2019-12-09T07:43:02.000Z
2019-12-09T07:43:02.000Z
aoc2019_elixir/apps/days/lib/supervisor.ex
mjm/advent-of-code-2019
a30599c1cba05d574fb30b6de98acdcec1ddc643
[ "MIT" ]
null
null
null
aoc2019_elixir/apps/days/lib/supervisor.ex
mjm/advent-of-code-2019
a30599c1cba05d574fb30b6de98acdcec1ddc643
[ "MIT" ]
null
null
null
defmodule Days.Supervisor do @moduledoc false use Supervisor def start_link(opts) do Supervisor.start_link(__MODULE__, :ok, opts) end @impl true def init(:ok) do children = [ {Day01, name: Day01} ] Supervisor.init(children, strategy: :one_for_one) end end
15.578947
53
0.668919
f76ad92add25b64b838615f836123c26a9c09c1f
1,344
exs
Elixir
elixir_spec/mix.exs
bit4bit/phoenixchannels.cr
ef0956ba233b3a2e6ea0c4ba0f1806dc77959df3
[ "MIT" ]
null
null
null
elixir_spec/mix.exs
bit4bit/phoenixchannels.cr
ef0956ba233b3a2e6ea0c4ba0f1806dc77959df3
[ "MIT" ]
null
null
null
elixir_spec/mix.exs
bit4bit/phoenixchannels.cr
ef0956ba233b3a2e6ea0c4ba0f1806dc77959df3
[ "MIT" ]
null
null
null
defmodule ElixirSpec.MixProject do use Mix.Project def project do [ app: :elixir_spec, version: "0.1.0", elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), compilers: Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps() ...
23.578947
84
0.598958
f76af0a8c79ee0c0063016fab272f5bbd045c820
182
exs
Elixir
elixir/elixir-sips/samples/ecto_test/config/config.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
2
2015-12-09T02:16:51.000Z
2021-07-26T22:53:43.000Z
elixir/elixir-sips/samples/ecto_test/config/config.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
null
null
null
elixir/elixir-sips/samples/ecto_test/config/config.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
1
2016-05-08T18:40:31.000Z
2016-05-08T18:40:31.000Z
use Mix.Config config :ecto_test, EctoTest.Repo, adapter: Ecto.Adapters.Postgres, database: "ecto_test", username: "postgres", password: "postgres", hostname: "localhost"
20.222222
34
0.725275
f76b14cb2a93602ead592cecdb59d04b05f0ab84
3,198
ex
Elixir
lib/bagg.ex
quantified-self-tools/bagg
46675b4fe3c0c8c74bc6084b6c6fb2483a3a1c87
[ "MIT" ]
1
2020-11-26T17:01:42.000Z
2020-11-26T17:01:42.000Z
lib/bagg.ex
quantified-self-tools/bagg
46675b4fe3c0c8c74bc6084b6c6fb2483a3a1c87
[ "MIT" ]
null
null
null
lib/bagg.ex
quantified-self-tools/bagg
46675b4fe3c0c8c74bc6084b6c6fb2483a3a1c87
[ "MIT" ]
null
null
null
defmodule Bagg do alias Bagg.{Aggday, Datapoint} @valid_aggdays for {name, 1} <- Aggday.__info__(:functions), do: Atom.to_string(name) @type aggregate_opt() :: {:aggday, atom() | String.t()} | {:kyoom, boolean()} | {:odom, boolean()} @type aggregate_error() :: {:invalid_aggday, ...
26.87395
87
0.56723
f76b18f5b4f9eb3eb889cc0eb430a1632f84496a
934
ex
Elixir
debian/postrm.ex
mikeyb/GameCredits
4c1844a3ffecfbd222ee68cbac1f1fc7ec2072e5
[ "MIT", "Unlicense" ]
12
2016-09-02T22:48:17.000Z
2022-01-07T03:00:20.000Z
debian/postrm.ex
mikeyb/GameCredits
4c1844a3ffecfbd222ee68cbac1f1fc7ec2072e5
[ "MIT", "Unlicense" ]
1
2018-04-04T04:38:58.000Z
2021-04-13T02:39:22.000Z
debian/postrm.ex
mikeyb/GameCredits
4c1844a3ffecfbd222ee68cbac1f1fc7ec2072e5
[ "MIT", "Unlicense" ]
5
2016-08-07T08:26:50.000Z
2020-10-11T20:45:44.000Z
#!/bin/sh # postrm script for gamecredits # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install'...
24.578947
78
0.62955
f76b1f0bd6fc0f69a237b024a3f6c610c9ef79b6
1,447
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/quota_properties.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_control/lib/google_api/service_control/v1/model/quota_properties.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_control/lib/google_api/service_control/v1/model/quota_properties.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...
30.787234
89
0.741534
f76b4e720c6b17cf91b5ee6504c2906733e503db
18,286
exs
Elixir
test/livebook/session_test.exs
danhuynhdev/livebook
d20d4f6bf123d58e4666c064027b55e3b300702f
[ "Apache-2.0" ]
null
null
null
test/livebook/session_test.exs
danhuynhdev/livebook
d20d4f6bf123d58e4666c064027b55e3b300702f
[ "Apache-2.0" ]
null
null
null
test/livebook/session_test.exs
danhuynhdev/livebook
d20d4f6bf123d58e4666c064027b55e3b300702f
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.SessionTest do use ExUnit.Case, async: true alias Livebook.{Session, Delta, Runtime, Utils, Notebook} # Note: queueing evaluation in most of the tests below # requires the runtime to synchronously start first, # so we use a longer timeout just to make sure the tests # pass reliably @e...
33.675875
94
0.670622
f76b7a6f0c25541f97bbe48dcdad638d59c8ed9b
1,194
ex
Elixir
lib/majudge/application.ex
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
null
null
null
lib/majudge/application.ex
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
1
2021-05-10T04:23:56.000Z
2021-05-10T04:23:56.000Z
lib/majudge/application.ex
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
null
null
null
defmodule Majudge.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Ecto repository # Majudge.Repo, ...
33.166667
87
0.71943
f76bb578dc8f3640fd45e68a57561c8a21a1af1b
959
ex
Elixir
lib/headers.ex
SkyllaTech/set_locale
68d709fb4d7a623d76bfbe9a97926da3d6226174
[ "WTFPL" ]
64
2016-11-03T12:56:08.000Z
2021-12-05T07:22:20.000Z
lib/headers.ex
SkyllaTech/set_locale
68d709fb4d7a623d76bfbe9a97926da3d6226174
[ "WTFPL" ]
28
2016-11-25T11:52:38.000Z
2021-06-10T18:37:46.000Z
lib/headers.ex
SkyllaTech/set_locale
68d709fb4d7a623d76bfbe9a97926da3d6226174
[ "WTFPL" ]
33
2016-11-25T11:06:27.000Z
2021-06-09T21:49:35.000Z
defmodule SetLocale.Headers do def extract_accept_language(conn) do case Plug.Conn.get_req_header(conn, "accept-language") do [value | _] -> value |> String.split(",") |> Enum.map(&parse_language_option/1) |> Enum.sort(&(&1.quality > &2.quality)) |> Enum.map(& &1.tag)...
25.918919
97
0.561001
f76bbbd6d8d091170b63e734c3d01fbc8a19256b
342
ex
Elixir
lib/tube_streamer_web/plug/locale.ex
surik/tube_streamer
c353e8512ec6b7521c18e8bdad927d8abad0d346
[ "MIT" ]
1
2018-02-06T17:28:51.000Z
2018-02-06T17:28:51.000Z
lib/tube_streamer_web/plug/locale.ex
surik/tube_streamer
c353e8512ec6b7521c18e8bdad927d8abad0d346
[ "MIT" ]
null
null
null
lib/tube_streamer_web/plug/locale.ex
surik/tube_streamer
c353e8512ec6b7521c18e8bdad927d8abad0d346
[ "MIT" ]
null
null
null
defmodule TubeStreamerWeb.Plug.Locale do import Plug.Conn def init(_opts), do: nil def call(conn, _opts) do case conn.params["locale"] || get_session(conn, :locale) do nil -> conn locale -> Gettext.put_locale(TubeStreamerWeb.Gettext, locale) conn |> put_session(:locale, loca...
22.8
63
0.649123
f76bbc7e76e75c9ead6c5b505234b50bbc9fac84
778
ex
Elixir
lib/phoenix/live_dashboard/components/card_usage_component.ex
PaulOstazeski/phoenix_live_dashboard
c68eac2640d6579d16f222fe58c1eb669342a1f2
[ "MIT" ]
2
2020-05-06T14:51:56.000Z
2020-05-06T14:52:21.000Z
deps/phoenix_live_dashboard/lib/phoenix/live_dashboard/components/card_usage_component.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/phoenix_live_dashboard/lib/phoenix/live_dashboard/components/card_usage_component.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
1
2020-05-16T22:44:14.000Z
2020-05-16T22:44:14.000Z
defmodule Phoenix.LiveDashboard.CardUsageComponent do use Phoenix.LiveDashboard.Web, :live_component def render(assigns) do ~L""" <div class="card progress-section mb-4"> <%= live_component @socket, Phoenix.LiveDashboard.TitleBarComponent, dom_id: "#{@dom_id}-title-bar", class: "card-body", percent: ...
27.785714
193
0.550129
f76bc9091781e26b8514d55564f177b04450b34d
130
exs
Elixir
apps/gullintanni_web/test/gullintanni_web_test.exs
gullintanni/gullintanni
63c58b7ea438a4c6885a13842d8e33d3b1273ced
[ "0BSD" ]
15
2016-08-09T21:27:54.000Z
2020-12-03T11:21:10.000Z
apps/gullintanni_web/test/gullintanni_web_test.exs
gullintanni/gullintanni
63c58b7ea438a4c6885a13842d8e33d3b1273ced
[ "0BSD" ]
15
2016-08-04T21:11:05.000Z
2017-08-02T17:46:17.000Z
apps/gullintanni_web/test/gullintanni_web_test.exs
gullintanni/gullintanni
63c58b7ea438a4c6885a13842d8e33d3b1273ced
[ "0BSD" ]
null
null
null
defmodule GullintanniWebTest do use ExUnit.Case doctest GullintanniWeb test "the truth" do assert 1 + 1 == 2 end end
14.444444
31
0.707692
f76bd9d2d7f67497feca4a8b30f6ac47fcf8acc6
1,604
exs
Elixir
mix.exs
valiot/tycmdex
94caa4f90a1e4f51f1f7e315173b9b3148f3d03b
[ "MIT" ]
null
null
null
mix.exs
valiot/tycmdex
94caa4f90a1e4f51f1f7e315173b9b3148f3d03b
[ "MIT" ]
null
null
null
mix.exs
valiot/tycmdex
94caa4f90a1e4f51f1f7e315173b9b3148f3d03b
[ "MIT" ]
null
null
null
defmodule Tycmdex.MixProject do use Mix.Project def project do [ app: :tycmdex, version: "0.1.0", elixir: "~> 1.9", name: "Tycmdex", description: description(), package: package(), source_url: "https://github.com/valiot/tycmdex", start_permanent: Mix.env() == :pr...
24.30303
87
0.543017
f76bea3086535eedc3e2f6e52381ce5ce7227951
5,569
ex
Elixir
lib/mix/lib/mix/local/installer.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/local/installer.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/local/installer.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Local.Installer do @moduledoc """ This module implements pieces of functionality shared by the archive- and escript-related tasks. """ @doc """ Checks that the argument given to install is supported by the respective module. """ @callback check_path_or_url(String.t) :: :ok | {:error, Stri...
30.102703
94
0.618783
f76c80003b0f6353b9528ba92e9f2ccfcf446b28
2,063
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_priority_capabilities.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_priority_capabilities.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_priority_capabilities.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...
34.383333
160
0.759573
f76c89ce3b9457cea9b875029cfcdd1cf99438fe
879
ex
Elixir
lib/annon_api/configuration/schemas/api.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
328
2017-05-05T15:19:46.000Z
2022-03-11T10:52:45.000Z
lib/annon_api/configuration/schemas/api.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
83
2017-04-30T10:36:15.000Z
2019-10-14T13:14:34.000Z
lib/annon_api/configuration/schemas/api.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
29
2017-05-02T14:36:50.000Z
2021-09-03T13:36:17.000Z
defmodule Annon.Configuration.Schemas.API do @moduledoc """ Schema for API's entity. """ use Ecto.Schema @derive {Poison.Encoder, except: [:__meta__, :plugins]} @primary_key {:id, :binary_id, autogenerate: false} schema "apis" do field :name, :string field :description, :string, default: "" f...
29.3
81
0.678043
f76ca0889f03070b070ca1c8385c8aba9addba62
3,203
ex
Elixir
lib/bonny/config.ex
victoriavilasb/bonny
c5f2b3f69d8f4750d796a619d71692d76445b509
[ "MIT" ]
null
null
null
lib/bonny/config.ex
victoriavilasb/bonny
c5f2b3f69d8f4750d796a619d71692d76445b509
[ "MIT" ]
null
null
null
lib/bonny/config.ex
victoriavilasb/bonny
c5f2b3f69d8f4750d796a619d71692d76445b509
[ "MIT" ]
null
null
null
defmodule Bonny.Config do @moduledoc """ Operator configuration interface """ @doc """ Kubernetes API Group of this operator """ @spec group() :: binary def group do default = "#{project_name()}.example.com" Application.get_env(:bonny, :group, default) end @doc """ The name of the operat...
24.082707
110
0.668436
f76cbc349a5cdbc25ece9d2c74342702bc514edc
1,118
exs
Elixir
test/concentrate/filter/gtfs/unzip_test.exs
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
19
2018-01-22T18:39:20.000Z
2022-02-22T16:15:30.000Z
test/concentrate/filter/gtfs/unzip_test.exs
mbta/concentrate
bae6e05713ed079b7da53867a01dd007861fb656
[ "MIT" ]
216
2018-01-22T14:22:39.000Z
2022-03-31T10:30:31.000Z
test/concentrate/filter/gtfs/unzip_test.exs
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
5
2018-01-22T14:18:15.000Z
2021-04-26T18:34:19.000Z
defmodule Concentrate.Filter.GTFS.UnzipTest do @moduledoc false use ExUnit.Case, async: true import Concentrate.Filter.GTFS.Unzip describe "parse/1" do test "returns the relevants bodies" do bodies = for name <- ~w(trips.txt stop_times.txt other) do {String.to_charlist(name), "#{nam...
27.95
75
0.635957
f76cbfcd0356259d148a68bd3a0abfe2ed314271
2,211
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_snippet.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_snippet.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_snippet.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...
35.095238
133
0.691542
f76cf5fbbaf85369ef910b9458efb8bf17835c03
68
ex
Elixir
apps/massa_proxy/lib/massa_proxy/runtime/wasm/protocol/discovery/manager.ex
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
20
2021-06-28T12:03:49.000Z
2022-03-28T22:35:56.000Z
apps/massa_proxy/lib/massa_proxy/runtime/wasm/protocol/discovery/manager.ex
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
48
2021-03-19T12:01:38.000Z
2022-03-29T21:19:26.000Z
apps/massa_proxy/lib/massa_proxy/runtime/wasm/protocol/discovery/manager.ex
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
5
2021-03-18T21:46:10.000Z
2021-10-01T17:39:05.000Z
defmodule MassaProxy.Runtime.Protocol.Wasm.Discovery.Manager do end
22.666667
63
0.867647
f76d2efb8fa39df3dbe0b867f96bce6fdd268919
4,182
ex
Elixir
lib/states_language/ast/default.ex
CityBaseInc/states_language
474b8a46f392b62d03c5ff5ed7f10f576b3166d7
[ "MIT" ]
67
2019-12-04T07:31:58.000Z
2020-04-02T21:52:44.000Z
lib/states_language/ast/default.ex
fpalluel/states_language
a5772b6ba700651078592c71d63bc46bfbdd19b9
[ "MIT" ]
5
2019-12-04T18:53:08.000Z
2020-04-02T19:02:34.000Z
lib/states_language/ast/default.ex
fpalluel/states_language
a5772b6ba700651078592c71d63bc46bfbdd19b9
[ "MIT" ]
7
2019-12-05T11:41:48.000Z
2020-04-02T14:08:27.000Z
# credo:disable-for-this-file defmodule StatesLanguage.AST.Default do @moduledoc false @behaviour StatesLanguage.AST @impl true def create(_) do quote location: :keep do defdelegate call(pid, event), to: :gen_statem defdelegate call(pid, event, timeout), to: :gen_statem defdelegate cast(...
29.659574
94
0.566954
f76d670dc0ba11d5f4db33c562b8f847817fe7a7
23,426
exs
Elixir
lib/mix/test/mix/tasks/deps_test.exs
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/deps_test.exs
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/deps_test.exs
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.DepsTest do use MixTest.Case defmodule DepsApp do def project do [app: :deps, version: "0.1.0", deps: [ {:ok, "0.1.0", github: "elixir-lang/ok"}, {:invalidvsn, "0.2.0", path: "deps/invalidvsn"}, ...
31.276368
171
0.616793
f76da3f96cd534839e4f881b77e07b8041a5463f
1,604
exs
Elixir
mix.exs
shinyscorpion/time_machinex
00a93c4329e269ff112edd0e464ebe1b0684d25e
[ "MIT" ]
6
2018-05-31T22:48:41.000Z
2021-03-03T17:22:48.000Z
mix.exs
shinyscorpion/time_machinex
00a93c4329e269ff112edd0e464ebe1b0684d25e
[ "MIT" ]
1
2019-12-19T08:18:39.000Z
2019-12-19T08:18:39.000Z
mix.exs
shinyscorpion/time_machinex
00a93c4329e269ff112edd0e464ebe1b0684d25e
[ "MIT" ]
1
2018-01-31T12:12:26.000Z
2018-01-31T12:12:26.000Z
defmodule TimeMachinex.MixProject do use Mix.Project @version "0.3.0" @description "Time machine clock to simplify time testing" def project do [ app: :time_machinex, version: @version, description: @description, elixir: "~> 1.9", start_permanent: Mix.env() == :prod, de...
21.972603
76
0.546135
f76db934a88ff2a6765af1a8ad2a76517005295a
16,682
exs
Elixir
lib/mix/test/mix/tasks/xref_test.exs
fertapric/elixir
9df2216670493aa30f37681cc812f3192adfe55a
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/xref_test.exs
fertapric/elixir
9df2216670493aa30f37681cc812f3192adfe55a
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/mix/test/mix/tasks/xref_test.exs
fertapric/elixir
9df2216670493aa30f37681cc812f3192adfe55a
[ "Apache-2.0" ]
null
null
null
Code.require_file("../../test_helper.exs", __DIR__) defmodule Mix.Tasks.XrefTest do use MixTest.Case import ExUnit.CaptureIO setup_all do previous = Application.get_env(:elixir, :ansi_enabled, false) Application.put_env(:elixir, :ansi_enabled, false) on_exit(fn -> Application.put_env(:elixir, :ansi...
23.364146
110
0.513488
f76dd32f995e52a786b6b1853a9514c88ceb2cae
3,948
ex
Elixir
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex
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...
42
196
0.650963
f76e0bd678d0f66655eee1f935aa593eabd6b6de
2,026
ex
Elixir
lib/api/graphql/input_types.ex
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
1
2017-09-10T23:51:40.000Z
2017-09-10T23:51:40.000Z
lib/api/graphql/input_types.ex
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
24
2018-03-14T18:17:00.000Z
2021-03-01T07:47:53.000Z
lib/api/graphql/input_types.ex
portosummerofcode/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
null
null
null
defmodule Api.GraphQL.InputTypes do use Absinthe.Schema.Notation input_object :ai_competition_bot_input do field :title, non_null(:string) field :sdk, non_null(:string) field :source_code, non_null(:string) end input_object :competition_input do field :name, non_null(:string) field :status...
27.013333
56
0.698914
f76e3aadfca3b869b31042814aaa370b7a882266
1,029
ex
Elixir
lib/accent/schemas/collaborator.ex
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
1
2020-07-01T16:08:34.000Z
2020-07-01T16:08:34.000Z
lib/accent/schemas/collaborator.ex
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
2
2021-09-28T05:37:00.000Z
2022-02-26T10:10:15.000Z
lib/accent/schemas/collaborator.ex
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
null
null
null
defmodule Accent.Collaborator do use Accent.Schema require Accent.Role schema "collaborators" do field(:email, :string) field(:role, :string) belongs_to(:user, Accent.User) belongs_to(:assigner, Accent.User) belongs_to(:project, Accent.Project) timestamps() end @required_fields ~w...
24.5
57
0.699708
f76e4a325d2b24a75fc3fbce1323c6a092527535
68
exs
Elixir
test/bitflyex_doc_test.exs
piacere-ex/bitflyex
ba07ad1474021c20c1816a7e803c248dc2177a3c
[ "Apache-2.0" ]
3
2018-01-12T10:18:13.000Z
2018-07-28T15:58:43.000Z
test/bitflyex_doc_test.exs
piacerex/bitflyex
ba07ad1474021c20c1816a7e803c248dc2177a3c
[ "Apache-2.0" ]
null
null
null
test/bitflyex_doc_test.exs
piacerex/bitflyex
ba07ad1474021c20c1816a7e803c248dc2177a3c
[ "Apache-2.0" ]
1
2018-03-02T11:03:33.000Z
2018-03-02T11:03:33.000Z
defmodule BitFlyexDocTest do use PowerAssert doctest BitFlyex end
13.6
28
0.852941
f76e662f4d7fc177ff1b57a750251823c150e6a8
34,997
ex
Elixir
lib/elixir/lib/kernel/typespec.ex
paulswartz/elixir
921f17e21ddfc1a50eaa4ce49fc7cc0c93822e5c
[ "Apache-2.0" ]
1
2017-07-25T21:46:25.000Z
2017-07-25T21:46:25.000Z
lib/elixir/lib/kernel/typespec.ex
paulswartz/elixir
921f17e21ddfc1a50eaa4ce49fc7cc0c93822e5c
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/typespec.ex
paulswartz/elixir
921f17e21ddfc1a50eaa4ce49fc7cc0c93822e5c
[ "Apache-2.0" ]
1
2017-07-25T21:46:48.000Z
2017-07-25T21:46:48.000Z
defmodule Kernel.Typespec do @moduledoc false @doc """ Defines a type. This macro is responsible for handling the attribute `@type`. ## Examples @type my_type :: atom """ defmacro deftype(type) do pos = :elixir_locals.cache_env(__CALLER__) %{line: line, file: file, module: module} = __CA...
32.46475
146
0.624396
f76e71f37b1e92703df7d17792fb89d58c0dab69
5,266
exs
Elixir
integration_test/support/schemas.exs
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
integration_test/support/schemas.exs
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
integration_test/support/schemas.exs
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Integration.Schema do defmacro __using__(_) do quote do use Ecto.Schema type = Application.get_env(:ecto, :primary_key_type) || raise ":primary_key_type not set in :ecto application" @primary_key {:id, type, autogenerate: true} @foreign_key_type type end...
23.300885
118
0.696924
f76e7f093f7c85f982fb906551c3780ad28b67d1
1,041
ex
Elixir
lib/chat/application.ex
Zesky665/GradProject
dad0152de7be505338b1ddbbfcfa82fafe613b68
[ "Unlicense" ]
null
null
null
lib/chat/application.ex
Zesky665/GradProject
dad0152de7be505338b1ddbbfcfa82fafe613b68
[ "Unlicense" ]
null
null
null
lib/chat/application.ex
Zesky665/GradProject
dad0152de7be505338b1ddbbfcfa82fafe613b68
[ "Unlicense" ]
null
null
null
defmodule Chat.Application do use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the Ecto repository s...
31.545455
82
0.705091
f76edda2771c979d84026a6f902846ec162fda8d
472
ex
Elixir
lib/cadet/accounts/form/login.ex
jiachen247/cadet
4219acaa9ba1d3672b2220d9d1acb2cb671443a3
[ "MIT" ]
null
null
null
lib/cadet/accounts/form/login.ex
jiachen247/cadet
4219acaa9ba1d3672b2220d9d1acb2cb671443a3
[ "MIT" ]
null
null
null
lib/cadet/accounts/form/login.ex
jiachen247/cadet
4219acaa9ba1d3672b2220d9d1acb2cb671443a3
[ "MIT" ]
null
null
null
defmodule Cadet.Accounts.Form.Login do @moduledoc """ The Accounts.Form entity represents an entry from an accounts form. A login form comprises of an IVLE authentication token. """ use Ecto.Schema import Ecto.Changeset embedded_schema do field(:ivle_token, :string) end @required_fields ~w(ivle...
21.454545
69
0.713983
f76f08dac8a7392a07cfd84b8a9f65e236a6fc56
385
ex
Elixir
lib/banking/transaction/withdrawal_transaction.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
lib/banking/transaction/withdrawal_transaction.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
lib/banking/transaction/withdrawal_transaction.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
defmodule Banking.WithdrawalTransaction do @moduledoc """ Creating a withdrawal transaction """ import Ecto.Changeset alias Banking.{Repo, Transaction} def run(params) do %Transaction{type: 2} |> cast(params, [:amount, :account_from]) |> validate_required([:amount, :account_from]) |> fore...
21.388889
50
0.693506
f76f3587d5a6cbbd59c791ce99109e431c06895a
86
exs
Elixir
elixir-intro/kode/eksempler/heiverden1.exs
kentdahl/nektar-nuby
03f6624c8bf8de41dd63a0adda5456639b256bc5
[ "MIT" ]
null
null
null
elixir-intro/kode/eksempler/heiverden1.exs
kentdahl/nektar-nuby
03f6624c8bf8de41dd63a0adda5456639b256bc5
[ "MIT" ]
null
null
null
elixir-intro/kode/eksempler/heiverden1.exs
kentdahl/nektar-nuby
03f6624c8bf8de41dd63a0adda5456639b256bc5
[ "MIT" ]
null
null
null
defmodule Verden do def si_hei do IO.puts "Hei verden!" end end Verden.si_hei
12.285714
25
0.709302
f76f539995de39b6a2b9d040d50bc65e41c4b987
1,850
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation.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...
37
206
0.737838
f76f7c3aaeab5e614a3dd3a97d82ad12b7d0d815
658
ex
Elixir
lib/dynamodb/batch_get_item.ex
hirokazumiyaji/dynamodb
f8a3fdc64b954aae99e4281fc28c8ca6886e5876
[ "MIT" ]
1
2017-02-01T12:42:45.000Z
2017-02-01T12:42:45.000Z
lib/dynamodb/batch_get_item.ex
hirokazumiyaji/dynamodb-elixir
f8a3fdc64b954aae99e4281fc28c8ca6886e5876
[ "MIT" ]
null
null
null
lib/dynamodb/batch_get_item.ex
hirokazumiyaji/dynamodb-elixir
f8a3fdc64b954aae99e4281fc28c8ca6886e5876
[ "MIT" ]
null
null
null
defmodule DynamoDB.BatchGetItem do import DynamoDB.Utils defmacro __using__(_) do quote do def batch_get_item(config, request_items, parameters \\ %{}) do payload = %{ RequestItems: request_items } |> Dict.merge(parameters) case post(config, "BatchGetItem", payl...
25.307692
69
0.566869
f76f8682e32dcaa358d790ec302c8b62cf19f809
388
exs
Elixir
priv/repo/seeds.exs
kenforthewin/mentat
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
88
2018-06-17T17:36:56.000Z
2021-11-20T20:29:27.000Z
priv/repo/seeds.exs
kenforthewin/scalar
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
47
2018-05-12T00:12:37.000Z
2018-06-16T19:52:52.000Z
priv/repo/seeds.exs
kenforthewin/scalar
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
6
2018-06-17T17:37:11.000Z
2020-04-12T04:05:49.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # App.Repo.insert!(%App.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail if...
25.866667
61
0.693299
f76f9659c7bc146548e386e1663e3cd174230315
293
ex
Elixir
{{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/plugs/auth.ex
StephaneRob/cookiecutter-phoenix
c71a01a582fe8d57999d646cea7cbd820a4c73ca
[ "BSD-2-Clause" ]
4
2018-01-16T15:40:04.000Z
2020-01-11T19:34:42.000Z
{{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/plugs/auth.ex
StephaneRob/cookiecutter-phoenix
c71a01a582fe8d57999d646cea7cbd820a4c73ca
[ "BSD-2-Clause" ]
4
2018-03-10T14:18:37.000Z
2018-03-13T20:43:06.000Z
{{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/plugs/auth.ex
StephaneRob/cookiecutter-phoenix
c71a01a582fe8d57999d646cea7cbd820a4c73ca
[ "BSD-2-Clause" ]
1
2019-10-11T20:52:31.000Z
2019-10-11T20:52:31.000Z
defmodule {{cookiecutter.app_name.split('_')|map('title')|join}}Web.Plug.Auth do import Plug.Conn def init(opts), do: opts def call(conn, _params) do assign(conn, :current_user, {{cookiecutter.app_name.split('_')|map('title')|join}}.Guardian.Plug.current_resource(conn)) end end
29.3
124
0.713311
f76fec52d30bc7ad8561bcbb31dfe3a62699cdeb
756
ex
Elixir
lib/cap_phoenix_react_webpack_web/gettext.ex
EBKH/cap-react-webpack
08638c4e4cc30e2cb35e0299a99a7c68a24f2128
[ "MIT" ]
null
null
null
lib/cap_phoenix_react_webpack_web/gettext.ex
EBKH/cap-react-webpack
08638c4e4cc30e2cb35e0299a99a7c68a24f2128
[ "MIT" ]
null
null
null
lib/cap_phoenix_react_webpack_web/gettext.ex
EBKH/cap-react-webpack
08638c4e4cc30e2cb35e0299a99a7c68a24f2128
[ "MIT" ]
null
null
null
defmodule CapPhoenixReactWebpackWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import CapPhoenixReactWebpackWeb.Gettext # Simple transl...
30.24
72
0.701058
f76ffcb6291828130610c9b83e89e40380c49f16
695
ex
Elixir
samples/client/petstore/elixir/lib/openapi_petstore/model/all_of_with_single_ref.ex
chanjarster/openapi-generator
f92f8f1e58c59a429295509d8c5df32b100cde22
[ "Apache-2.0" ]
1
2022-01-11T15:49:34.000Z
2022-01-11T15:49:34.000Z
samples/client/petstore/elixir/lib/openapi_petstore/model/all_of_with_single_ref.ex
chanjarster/openapi-generator
f92f8f1e58c59a429295509d8c5df32b100cde22
[ "Apache-2.0" ]
9
2021-11-01T08:59:31.000Z
2022-03-31T08:31:57.000Z
samples/client/petstore/elixir/lib/openapi_petstore/model/all_of_with_single_ref.ex
chanjarster/openapi-generator
f92f8f1e58c59a429295509d8c5df32b100cde22
[ "Apache-2.0" ]
1
2022-03-20T14:46:48.000Z
2022-03-20T14:46:48.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule OpenapiPetstore.Model.AllOfWithSingleRef do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"username", :"SingleRefType" ...
23.166667
91
0.709353
f770139e252420e84aadb929064287eadd132f85
24,477
ex
Elixir
lib/ecto/schema.ex
lancehalvorsen/ecto
af1f80f2907c62da8abb6d0e4bdac98269a80339
[ "Apache-2.0" ]
null
null
null
lib/ecto/schema.ex
lancehalvorsen/ecto
af1f80f2907c62da8abb6d0e4bdac98269a80339
[ "Apache-2.0" ]
null
null
null
lib/ecto/schema.ex
lancehalvorsen/ecto
af1f80f2907c62da8abb6d0e4bdac98269a80339
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Schema do @moduledoc ~S""" Defines a schema for a model. A schema is a struct with associated metadata that is persisted to a repository. Every schema model is also a struct, that means that you work with models just like you would work with structs. ## Example defmodule User do ...
33.995833
98
0.65392
f7704fc423390c3c550145b20d8145c8dab45a32
527
ex
Elixir
lib/todo_app/views/comment_view.ex
Angarsk8/todoapp_cowboy_elixir
38a4b4420e3c8cbd5f77178aa1cd4b292bd1c4fd
[ "MIT" ]
134
2017-03-28T14:47:37.000Z
2021-11-25T10:40:15.000Z
lib/todo_app/views/comment_view.ex
Angarsk8/todoapp_cowboy_elixir
38a4b4420e3c8cbd5f77178aa1cd4b292bd1c4fd
[ "MIT" ]
5
2017-03-30T05:56:55.000Z
2018-01-17T09:22:51.000Z
lib/todo_app/views/comment_view.ex
Angarsk8/todoapp_cowboy_elixir
38a4b4420e3c8cbd5f77178aa1cd4b292bd1c4fd
[ "MIT" ]
14
2017-03-28T17:04:31.000Z
2021-08-07T07:09:21.000Z
defmodule TodoApp.CommentView do use TodoApp.BaseView def render(:index, %{comments: comments}) do %{ data: Enum.map(comments, & render(:comment, %{comment: &1})) } end def render(:show, %{comment: comment}) do %{ data: render(:comment, %{comment: comment}) } end def render(:com...
21.958333
66
0.612903
f770664a26bdc9eee53256579357b57838fdeada
2,182
ex
Elixir
web/models/user.ex
koenighotze/callforpaper
3ca57abc0cd8d857dedf20e70bce841264d0fe30
[ "MIT" ]
1
2017-01-25T21:34:37.000Z
2017-01-25T21:34:37.000Z
web/models/user.ex
koenighotze/callforpaper
3ca57abc0cd8d857dedf20e70bce841264d0fe30
[ "MIT" ]
40
2017-02-09T07:22:25.000Z
2020-10-28T13:43:12.000Z
web/models/user.ex
koenighotze/callforpaper
3ca57abc0cd8d857dedf20e70bce841264d0fe30
[ "MIT" ]
null
null
null
defmodule Callforpapers.User do use Callforpapers.Web, :model alias Callforpapers.Talk schema "users" do field :name, :string field :email, :string field :bio, :string field :picture, :string field :password, :string, virtual: true field :password_hash, :string field :role, :string,...
23.978022
134
0.604491
f7706f8c50691545f6dbdb4af2eba4988d600f7a
1,004
ex
Elixir
lib/chess_app/web/views/error_helpers.ex
leobessa/exchess
289819d183f3001dddf56810c36298fa669c3a06
[ "MIT" ]
3
2017-06-02T20:47:07.000Z
2018-05-25T11:17:12.000Z
lib/chess_app/web/views/error_helpers.ex
leobessa/exchess
289819d183f3001dddf56810c36298fa669c3a06
[ "MIT" ]
null
null
null
lib/chess_app/web/views/error_helpers.ex
leobessa/exchess
289819d183f3001dddf56810c36298fa669c3a06
[ "MIT" ]
null
null
null
defmodule ChessApp.Web.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # Because error messages were defined within Ecto, we must # call the Gettext module pass...
33.466667
78
0.671315
f7707d82d83b9e59e0a2a9be2dfbc1e7a1b38b58
1,637
exs
Elixir
config/dev.exs
tagonzalez/qa-api
10d3ff2ee7fe21c4cca84683f93a3111f7c415e6
[ "MIT" ]
null
null
null
config/dev.exs
tagonzalez/qa-api
10d3ff2ee7fe21c4cca84683f93a3111f7c415e6
[ "MIT" ]
null
null
null
config/dev.exs
tagonzalez/qa-api
10d3ff2ee7fe21c4cca84683f93a3111f7c415e6
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :qa_api, QaApi.Repo, username: "postgres", password: "postgres", database: "qa_api_dev", hostname: "db", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading. # # The w...
28.224138
68
0.723885
f7708a363108b6aa1867ae8d10a787c394d8dcf9
67
exs
Elixir
Chapter13/todo_release/config/dev.exs
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter13/todo_release/config/dev.exs
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter13/todo_release/config/dev.exs
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
use Mix.Config config :todo, todo_item_expiry: :timer.seconds(10)
16.75
50
0.776119
f7708a7615b18a690b3704d2cf76aa04e5357088
958
ex
Elixir
lib/scaffolding/common/schema/metadata/ecto_metadata.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
lib/scaffolding/common/schema/metadata/ecto_metadata.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
lib/scaffolding/common/schema/metadata/ecto_metadata.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Keith Brings <keith.brings@noizu.com> # Copyright (C) 2021 Noizu Labs Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.AdvancedScaffolding.Schema.Metadat...
25.210526
125
0.535491
f77091303866f4dc0d4010d5078a43fae56809d8
417
ex
Elixir
lib/json_rpc/json.ex
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
lib/json_rpc/json.ex
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
lib/json_rpc/json.ex
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
defmodule JsonRPC.Json do @moduledoc false @spec encode!(term()) :: String.t() def encode!(input) do parser().encode!(input) end @spec decode(iodata()) :: {:ok, map()} | {:error, {:parse_error, Exception.t()}} def decode(json) do with {:error, error} <- parser().decode(json) do {:error, {:pa...
23.166667
82
0.625899
f7709df2bb69deac57a459d389d2e167b82392bf
1,779
ex
Elixir
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/extended_source_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/extended_source_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/extended_source_context.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.58
116
0.740304
f770df1c0c786b4d1d30a9ecc1a776fe2b408b0e
774
ex
Elixir
apps/definition_dictionary/lib/dictionary/type/float.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition_dictionary/lib/dictionary/type/float.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition_dictionary/lib/dictionary/type/float.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule Dictionary.Type.Float do use Definition, schema: Dictionary.Type.Float.V1 use Dictionary.JsonEncoder defstruct version: 1, name: nil, description: "" defimpl Dictionary.Type.Normalizer, for: __MODULE__ do def normalize(_field, value) when is_integer(value) or is_float(val...
22.114286
77
0.653747
f770e6062d02c0de83d4788f6ba02406a0f42152
1,202
exs
Elixir
mix.exs
mathieuprog/redirect
bc60bfd265a4b46234fd6f980ae6270ff7c471e6
[ "Apache-2.0" ]
12
2019-12-04T07:18:49.000Z
2022-01-22T03:20:18.000Z
mix.exs
mathieuprog/redirect
bc60bfd265a4b46234fd6f980ae6270ff7c471e6
[ "Apache-2.0" ]
2
2020-01-03T14:48:25.000Z
2021-06-23T09:50:58.000Z
mix.exs
mathieuprog/redirect
bc60bfd265a4b46234fd6f980ae6270ff7c471e6
[ "Apache-2.0" ]
1
2020-10-27T11:30:04.000Z
2020-10-27T11:30:04.000Z
defmodule Redirect.MixProject do use Mix.Project @version "0.3.0" def project do [ app: :redirect, elixir: "~> 1.9", deps: deps(), elixirc_paths: elixirc_paths(Mix.env()), # Hex version: @version, package: package(), description: "Router macro for redirecting...
20.033333
87
0.540765
f770ef717ba5144811fb63deb3e16bfbcd3d6cbc
268
exs
Elixir
priv/repo/migrations/20180405055546_create_elm_types.exs
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
377
2018-04-05T03:36:00.000Z
2022-03-30T19:12:44.000Z
priv/repo/migrations/20180405055546_create_elm_types.exs
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
91
2018-05-24T21:56:06.000Z
2022-02-26T03:54:04.000Z
priv/repo/migrations/20180405055546_create_elm_types.exs
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
34
2018-05-29T03:54:35.000Z
2022-01-13T07:12:46.000Z
defmodule Ellie.Repo.Migrations.CreateUsers do use Ecto.Migration def up do Elm.Ecto.Version.up() Elm.Ecto.Name.up() Elm.Ecto.Package.up() end def down do Elm.Ecto.Package.down() Elm.Ecto.Name.down() Elm.Ecto.Version.down() end end
16.75
46
0.664179
f770fbcbd390d481f4c1e8d95c7ad7debe067a82
1,277
ex
Elixir
lib/octet.ex
kiennt/octet
27c4aad5b75725a9013aa2ce9aa7f6d8f9150673
[ "MIT" ]
2
2016-03-15T18:36:08.000Z
2016-05-01T15:09:27.000Z
lib/octet.ex
kiennt/octet
27c4aad5b75725a9013aa2ce9aa7f6d8f9150673
[ "MIT" ]
null
null
null
lib/octet.ex
kiennt/octet
27c4aad5b75725a9013aa2ce9aa7f6d8f9150673
[ "MIT" ]
null
null
null
defmodule Octet do @moduledoc """ Elixir converter to convert octet string to string and vise versa """ @doc """ Convert octet string to binary ## Examples iex> Octet.string_to_bin("aa09ab") <<170, 9, 171>> iex> Octet.string_to_bin("ffddaa") <<255, 221, 170>> """ @spec string_...
25.54
92
0.60141
f77135ab801d0b2323a5907382e360597a65b978
648
ex
Elixir
lib/pigeon/http2_client/chatterbox.ex
elixir-twister/pigeon
9ec9b9773b4a459d5b9743a55f03b61699650d20
[ "MIT" ]
null
null
null
lib/pigeon/http2_client/chatterbox.ex
elixir-twister/pigeon
9ec9b9773b4a459d5b9743a55f03b61699650d20
[ "MIT" ]
null
null
null
lib/pigeon/http2_client/chatterbox.ex
elixir-twister/pigeon
9ec9b9773b4a459d5b9743a55f03b61699650d20
[ "MIT" ]
null
null
null
defmodule Pigeon.Http2.Client.Chatterbox do @behaviour Pigeon.Http2.Client def connect(uri, scheme, opts) do :h2_client.start_link(scheme, uri, opts) end def send_request(pid, headers, data) do :h2_client.send_request(pid, headers, data) end def send_ping(pid) do :h2_client.send_ping(pid) e...
25.92
79
0.709877
f7713b6d2c536f364dcbdbf21eedcda4cdbab0e9
978
ex
Elixir
test/support/channel_case.ex
sdost/game_service
d3dc16ceec2c414cbc10839db19d325d45f4ca04
[ "MIT" ]
1
2017-06-26T23:38:47.000Z
2017-06-26T23:38:47.000Z
test/support/channel_case.ex
sdost/game_service
d3dc16ceec2c414cbc10839db19d325d45f4ca04
[ "MIT" ]
null
null
null
test/support/channel_case.ex
sdost/game_service
d3dc16ceec2c414cbc10839db19d325d45f4ca04
[ "MIT" ]
null
null
null
defmodule GameService.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot...
23.285714
70
0.705521
f7713cf4b206bd942ebd8c4a7b051499743edcf1
874
exs
Elixir
test/himamo/sim_test.exs
mfilej/himamo
78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5
[ "MIT" ]
2
2017-09-25T07:24:26.000Z
2019-08-23T19:55:10.000Z
test/himamo/sim_test.exs
mfilej/himamo
78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5
[ "MIT" ]
null
null
null
test/himamo/sim_test.exs
mfilej/himamo
78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5
[ "MIT" ]
null
null
null
defmodule Himamo.SimTest do use ExUnit.Case alias Himamo.{Sim, Model} doctest Sim def a do import Model.A, only: [new: 1, put: 3] new(3) |> put({0, 0}, 0.0) |> put({0, 1}, 1.0) |> put({0, 2}, 0.0) |> put({1, 0}, 0.0) |> put({1, 1}, 0.0) |> put({1, 2}, 1.0) |> put({2, 0}, 1.0) |> put({2, 1},...
25.705882
72
0.461098
f7716b9b80a6364f383a469cda2e5af38e9696dd
2,820
exs
Elixir
test/player_test.exs
LeviSchuck/madness
2914f012bd4f40cef2ad39a6d0344a97baf35c79
[ "MIT" ]
null
null
null
test/player_test.exs
LeviSchuck/madness
2914f012bd4f40cef2ad39a6d0344a97baf35c79
[ "MIT" ]
null
null
null
test/player_test.exs
LeviSchuck/madness
2914f012bd4f40cef2ad39a6d0344a97baf35c79
[ "MIT" ]
null
null
null
defmodule PlayerTest do use ExUnit.Case doctest Madness.Player test "Steps" do story_sup_pid = Madness.Stories.Supervisor.whereis {:ok, story_uuid} = Madness.Stories.Supervisor.add_story story_sup_pid story_pid = Madness.Story.whereis story_uuid {:ok, area1_uuid} = Madness.Story.add_area story_p...
43.384615
78
0.697518