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
5a4658b2e79b244f3b65e1cb83d147bb060c57f4
209
exs
Elixir
elixir/priv/repo/migrations/20210127004253_enable_fuzzystrmatch.exs
alexparker/divvy-homework
f656b6966c626befb5404d0c8455de86da5aab14
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210127004253_enable_fuzzystrmatch.exs
alexparker/divvy-homework
f656b6966c626befb5404d0c8455de86da5aab14
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210127004253_enable_fuzzystrmatch.exs
alexparker/divvy-homework
f656b6966c626befb5404d0c8455de86da5aab14
[ "MIT" ]
2
2021-03-16T22:27:37.000Z
2021-10-16T08:38:35.000Z
defmodule Homework.Repo.Migrations.EnableFuzzystrmatch do use Ecto.Migration def change do execute "CREATE extension if not exists fuzzystrmatch;", "DROP extension if exists fuzzystrmatch;" end end
26.125
102
0.789474
5a465ef5ab8f2bf4786c3b06f34665b8d9c9b303
3,436
ex
Elixir
apps/faqcheck_web/lib/faqcheck_web/controllers/microsoft_teams_controller.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
apps/faqcheck_web/lib/faqcheck_web/controllers/microsoft_teams_controller.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
20
2021-09-08T04:07:31.000Z
2022-03-10T21:52:24.000Z
apps/faqcheck_web/lib/faqcheck_web/controllers/microsoft_teams_controller.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
defmodule FaqcheckWeb.MicrosoftTeamsController do use FaqcheckWeb, :controller alias ExMicrosoftBot.Models.Activity alias ExMicrosoftBot.Models.Attachment alias ExMicrosoftBot.Client.Conversations alias Faqcheck.Referrals def message(conn, params) do with {:ok, activity} <- Activity.parse(params) do ...
23.696552
143
0.555879
5a466cca5db20be93041b4a31c1d3b154d7688da
1,033
ex
Elixir
lib/tentacat/git/blobs.ex
nmohoric/tentacat
3bbb9990aafad0a7232d302526ca00e282e7ba43
[ "MIT" ]
null
null
null
lib/tentacat/git/blobs.ex
nmohoric/tentacat
3bbb9990aafad0a7232d302526ca00e282e7ba43
[ "MIT" ]
null
null
null
lib/tentacat/git/blobs.ex
nmohoric/tentacat
3bbb9990aafad0a7232d302526ca00e282e7ba43
[ "MIT" ]
null
null
null
defmodule Tentacat.Git.Blobs do import Tentacat alias Tentacat.Client @doc """ Get the Blob content and metadata for a specific sha ## Example Tentacat.Git.Blobs.get "elixir-lang", "elixir", "7491bda5196f78536e5acc9b7c90a97170e4db0a" More info at: https://developer.github.com/v3/git/blobs/#get-a-b...
26.487179
96
0.655373
5a467beaa1ce4139cba80ba152ec0aba488c0ce4
4,142
exs
Elixir
priv/templates/phoenix.gen.html/controller_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
10
2016-07-15T15:57:33.000Z
2018-06-09T00:40:46.000Z
priv/templates/phoenix.gen.html/controller_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
null
null
null
priv/templates/phoenix.gen.html/controller_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
6
2016-07-15T15:57:41.000Z
2018-03-22T16:38:00.000Z
defmodule <%= module %>ControllerTest do use <%= base %>.ConnCase alias <%= module %> @valid_attrs <%= inspect params %> @invalid_attrs %{} @intended_for "admin" # MAY CHANGE THIS ### Authorization describe "who is NOT allowed access" do @tag accessed_by: "user" test "anyone less than admin ...
35.706897
108
0.61661
5a469240521f4057e7b964f4c37b829f911dca09
3,025
ex
Elixir
web/controllers/review_controller.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
48
2015-06-29T21:20:25.000Z
2021-05-09T04:27:41.000Z
web/controllers/review_controller.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
null
null
null
web/controllers/review_controller.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
15
2015-06-29T21:13:57.000Z
2021-07-27T10:02:40.000Z
defmodule Survey.ReviewController do use Survey.Web, :controller alias Survey.DesignGroup alias Survey.Review import Ecto.Query require Ecto.Query alias Survey.Repo require Logger import Prelude @form Survey.HTML.Survey.gen_survey("data/review.txt", :f) @form2 Survey.HTML.Survey.gen_survey("data/rev...
31.185567
134
0.655207
5a46c8f682f94869e9bcaacc0575b33f5e0753e3
910
ex
Elixir
test/support/conn_case.ex
bionikspoon/elaborate_image
bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf
[ "MIT" ]
null
null
null
test/support/conn_case.ex
bionikspoon/elaborate_image
bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf
[ "MIT" ]
null
null
null
test/support/conn_case.ex
bionikspoon/elaborate_image
bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf
[ "MIT" ]
null
null
null
alias Phoenix.ConnTest defmodule ElaborateImageWeb.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 datastructures and query the...
26
58
0.738462
5a46d22fc3b7290b4d697b6d1aa6683d1ba5b55f
381
exs
Elixir
chromoid_web/priv/repo/migrations/20210201181815_add_nfc_webhooks_table.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
7
2020-11-18T11:29:20.000Z
2022-01-16T03:16:14.000Z
chromoid_web/priv/repo/migrations/20210201181815_add_nfc_webhooks_table.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
null
null
null
chromoid_web/priv/repo/migrations/20210201181815_add_nfc_webhooks_table.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
1
2021-01-06T15:40:46.000Z
2021-01-06T15:40:46.000Z
defmodule Chromoid.Repo.Migrations.AddNfcWebhooksTable do use Ecto.Migration def change do create table(:nfc_webhooks) do add :nfc_iso14443a_id, references(:nfc_iso14443a), null: false add :url, :string, null: false add :secret, :string, null: false timestamps() end create uniq...
25.4
68
0.703412
5a46d276014940c707dc5e564b796808d70f362a
1,015
ex
Elixir
lib/skeleton/application.ex
diegomanuel/liveview-skeleton
a27653a88a356c3dae5e012960d46f58eaf1d1c6
[ "MIT" ]
null
null
null
lib/skeleton/application.ex
diegomanuel/liveview-skeleton
a27653a88a356c3dae5e012960d46f58eaf1d1c6
[ "MIT" ]
null
null
null
lib/skeleton/application.ex
diegomanuel/liveview-skeleton
a27653a88a356c3dae5e012960d46f58eaf1d1c6
[ "MIT" ]
null
null
null
defmodule Skeleton.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 endpoint when the application starts ...
30.757576
81
0.723153
5a46de4a560825cc61487e2548bba11badf172db
917
ex
Elixir
lib/riak/crdt/register.ex
MikaAK/riak-elixir-client
c58700ec30a451a46b226a09387144becc47d5ae
[ "Apache-2.0" ]
193
2015-01-04T15:36:15.000Z
2022-03-17T21:31:57.000Z
lib/riak/crdt/register.ex
MikaAK/riak-elixir-client
c58700ec30a451a46b226a09387144becc47d5ae
[ "Apache-2.0" ]
51
2015-02-12T02:32:23.000Z
2020-09-22T11:10:56.000Z
lib/riak/crdt/register.ex
MikaAK/riak-elixir-client
c58700ec30a451a46b226a09387144becc47d5ae
[ "Apache-2.0" ]
54
2015-03-05T01:10:33.000Z
2021-09-27T10:40:26.000Z
defmodule Riak.CRDT.Register do @moduledoc """ Encapsulates a binary data to be used on CRDT.Map's """ require Record @doc """ Creates a new register """ def new(), do: :riakc_register.new() @doc """ Creates a new register with the initial `value` """ def new(value) when is_binary(value), do: ...
25.472222
69
0.634678
5a470f38d8808488870efb21b54d27d00217c53b
3,353
ex
Elixir
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/expr.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/expr.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/expr.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...
36.846154
129
0.708321
5a473a9a5abe2ba122f131351481c0a8c7e4c6d6
11,738
ex
Elixir
lib/delta_crdt/causal_crdt.ex
bobkocisko/delta_crdt_ex
44e27203447c9cf9af93bd540b748532bf2b8608
[ "MIT" ]
null
null
null
lib/delta_crdt/causal_crdt.ex
bobkocisko/delta_crdt_ex
44e27203447c9cf9af93bd540b748532bf2b8608
[ "MIT" ]
null
null
null
lib/delta_crdt/causal_crdt.ex
bobkocisko/delta_crdt_ex
44e27203447c9cf9af93bd540b748532bf2b8608
[ "MIT" ]
null
null
null
defmodule DeltaCrdt.CausalCrdt do use GenServer require Logger require BenchmarkHelper BenchmarkHelper.inject_in_dev() @type delta :: {k :: integer(), delta :: any()} @type delta_interval :: {a :: integer(), b :: integer(), delta :: delta()} @moduledoc false defstruct node_id: nil, nam...
28.699267
106
0.635117
5a47492463e951a8ea148eea30756bde5f4808f2
1,580
ex
Elixir
clients/calendar/lib/google_api/calendar/v3/model/event_extended_properties.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/event_extended_properties.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/event_extended_properties.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...
32.916667
144
0.753165
5a4752856d730ce9a1cd30c21db5c67d3ccb0a0c
272
ex
Elixir
lib/central_web/views/logging/page_view_log_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central_web/views/logging/page_view_log_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/central_web/views/logging/page_view_log_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule CentralWeb.Logging.PageViewLogView do use CentralWeb, :view def colours(), do: Central.Logging.PageViewLogLib.colours() def icon(), do: Central.Logging.PageViewLogLib.icon() def convert_load_time(load_time) do round(load_time / 10) / 100 end end
24.727273
61
0.75
5a47a65545985c37c25bf07a9455329e80ca2580
28,493
exs
Elixir
test/ecto/schema_test.exs
revati/ecto
75b4c4179724af8ae2582aa8adae21eeb111ec78
[ "Apache-2.0" ]
null
null
null
test/ecto/schema_test.exs
revati/ecto
75b4c4179724af8ae2582aa8adae21eeb111ec78
[ "Apache-2.0" ]
null
null
null
test/ecto/schema_test.exs
revati/ecto
75b4c4179724af8ae2582aa8adae21eeb111ec78
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../integration_test/support/types.exs", __DIR__ defmodule Ecto.SchemaTest do use ExUnit.Case, async: true defmodule Schema do use Ecto.Schema schema "my schema" do field :name, :string, default: "eric", autogenerate: {String, :upcase, ["eric"]} field :email, :string, un...
32.2319
143
0.658899
5a47b2bf8afcdde107f7868ff12fc440a93d1188
381
ex
Elixir
lib/device_manager/device/ieq/ieq.ex
rosetta-home/cicada
a5ac51ecc202e1694dedc9875604fa3564ef4b3c
[ "Apache-2.0" ]
7
2017-09-08T11:29:42.000Z
2020-01-18T22:15:12.000Z
lib/device_manager/device/ieq/ieq.ex
rosetta-home/cicada
a5ac51ecc202e1694dedc9875604fa3564ef4b3c
[ "Apache-2.0" ]
null
null
null
lib/device_manager/device/ieq/ieq.ex
rosetta-home/cicada
a5ac51ecc202e1694dedc9875604fa3564ef4b3c
[ "Apache-2.0" ]
2
2017-07-02T11:58:50.000Z
2019-09-14T03:16:12.000Z
defmodule Cicada.DeviceManager.Device.IEQ do defmodule State do @derive [Poison.Encoder] defstruct id: 0, battery: 0, co2: 0, door: 0, energy: 0, pressure: 0, humidity: 0, light: 0, motion: 0, no2: 0, co: 0, pm: 0, rssi: 0, sound: ...
15.875
44
0.490814
5a47bc69b040d854f5c8b91c8a772209b76ada3b
215
exs
Elixir
priv/repos/configuration/migrations/20161007140320_add_apis_table.exs
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
328
2017-05-05T15:19:46.000Z
2022-03-11T10:52:45.000Z
priv/repos/configuration/migrations/20161007140320_add_apis_table.exs
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
83
2017-04-30T10:36:15.000Z
2019-10-14T13:14:34.000Z
priv/repos/configuration/migrations/20161007140320_add_apis_table.exs
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
29
2017-05-02T14:36:50.000Z
2021-09-03T13:36:17.000Z
defmodule Annon.Configuration.Repo.Migrations.AddApisTable do use Ecto.Migration def change do create table(:apis) do add :name, :string add :request, :map timestamps() end end end
16.538462
61
0.669767
5a47c83fbce0469052e06af92d31635b5435e51a
15,042
ex
Elixir
lib/ex_unit/lib/ex_unit/formatter.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2020-01-14T18:44:56.000Z
2020-01-14T18:44:56.000Z
lib/ex_unit/lib/ex_unit/formatter.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/formatter.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
defmodule ExUnit.Formatter do @moduledoc """ Helper functions for formatting and the formatting protocols. Formatters are `GenServer`s specified during ExUnit configuration that receive a series of events as casts. The following events are possible: * `{:suite_started, opts}` - the suite has star...
29.668639
101
0.650246
5a47d59699e02aa53e314734c831252a5ab845fc
400
exs
Elixir
clients/firestore/test/test_helper.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/firestore/test/test_helper.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/firestore/test/test_helper.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
ExUnit.start() defmodule GoogleApi.Firestore.V1beta1.TestHelper do defmacro __using__(opts) do quote do use ExUnit.Case, unquote(opts) import GoogleApi.Firestore.V1beta1.TestHelper end end def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " ")) def for_scope(scop...
21.052632
83
0.7075
5a47dfd9066d53ecf0c8820abafc27d767ee7cb3
516
exs
Elixir
test/execjs_test.exs
solvedata/execjs
a2fc3adf2b915f2f90c0a47eb9b3553838202c1c
[ "CC0-1.0" ]
126
2015-01-08T11:55:52.000Z
2022-01-06T01:26:48.000Z
test/execjs_test.exs
solvedata/execjs
a2fc3adf2b915f2f90c0a47eb9b3553838202c1c
[ "CC0-1.0" ]
7
2016-06-16T06:32:39.000Z
2020-01-30T21:09:58.000Z
test/execjs_test.exs
solvedata/execjs
a2fc3adf2b915f2f90c0a47eb9b3553838202c1c
[ "CC0-1.0" ]
25
2015-07-06T14:42:56.000Z
2021-10-05T18:14:51.000Z
defmodule ExecjsTest do use ExUnit.Case, async: true import Execjs alias Execjs.RuntimeError test "eval" do assert eval(~s(var a = "a"; a + "b")) == "ab" assert eval(~s(\u2028\nvar str = "foo";\u2029\n)) assert_raise RuntimeError, fn -> eval("xxx") end end test "call" do conte...
17.793103
53
0.54845
5a47f841d781b0c263433eff372ec91df09e6e86
3,104
ex
Elixir
clients/content/lib/google_api/content/v21/model/regional_inventory.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/regional_inventory.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/regional_inventory.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...
47.753846
253
0.716817
5a4829a07944ea02e96dbca4ae0a96cb5ad82ef7
7
ex
Elixir
testData/org/elixir_lang/parser_definition/string_heredoc_parsing_test_case/Minimal.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/string_heredoc_parsing_test_case/Minimal.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/string_heredoc_parsing_test_case/Minimal.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
""" """
3.5
3
0
5a4843958a027b493bd2e1332398a20a08bbc292
490
ex
Elixir
lib/tablespoon/intersection/supervisor.ex
paulswartz/tablespoon
3637ee22cce16755fa50461058a079fa18d33b1b
[ "MIT" ]
2
2020-04-03T14:39:23.000Z
2020-12-17T23:12:58.000Z
lib/tablespoon/intersection/supervisor.ex
mbta/tablespoon
4303ad8498f3e619b081ffbd6892156e0214b61e
[ "MIT" ]
107
2019-09-16T12:52:17.000Z
2022-02-28T10:25:15.000Z
lib/tablespoon/intersection/supervisor.ex
mbta/tablespoon
4303ad8498f3e619b081ffbd6892156e0214b61e
[ "MIT" ]
null
null
null
defmodule Tablespoon.Intersection.Supervisor do @moduledoc """ Supervisor for all the Intersection processes """ use Supervisor def start_link(configs) do Supervisor.start_link(__MODULE__, configs) end @impl Supervisor def init(configs) do configs |> child_specs() |> Supervisor.init(st...
20.416667
47
0.708163
5a48474cd30122448512c18747bc520d509eb232
151
ex
Elixir
lib/hl7/2.4/datatypes/wvi.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/datatypes/wvi.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/datatypes/wvi.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.DataTypes.Wvi do @moduledoc false use HL7.DataType, fields: [ channel_number: nil, channel_name: nil ] end
15.1
35
0.655629
5a486d42447a7a523a499b67b8034e8fd343d000
786
exs
Elixir
mix.exs
hrefhref/o2m
852e9a806a284cf02a489f76557c7f1f748b9619
[ "Unlicense" ]
1
2019-11-05T21:57:31.000Z
2019-11-05T21:57:31.000Z
mix.exs
hrefhref/o2m
852e9a806a284cf02a489f76557c7f1f748b9619
[ "Unlicense" ]
null
null
null
mix.exs
hrefhref/o2m
852e9a806a284cf02a489f76557c7f1f748b9619
[ "Unlicense" ]
null
null
null
defmodule O2M.MixProject do use Mix.Project def project do [ app: :o2m, version: "0.1.4", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), docs: [ # The main page in the docs main: "O2M", extras: ["README.md"] ] ] end ...
20.153846
59
0.502545
5a48739f4ffd089393b046a2a2f39ee02a586107
1,150
ex
Elixir
lib/glimesh/streams/stream.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
1
2020-08-02T00:12:28.000Z
2020-08-02T00:12:28.000Z
lib/glimesh/streams/stream.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
lib/glimesh/streams/stream.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
defmodule Glimesh.Streams.Stream do @moduledoc false use Ecto.Schema use Waffle.Ecto.Schema import Ecto.Changeset schema "streams" do belongs_to :channel, Glimesh.Streams.Channel field :title, :string belongs_to :category, Glimesh.Streams.Category field :started_at, :naive_datetime fiel...
22.115385
54
0.676522
5a489c4708ebc4411097d50ef4b24b2d17620a2b
2,149
ex
Elixir
lib/noaax/cli.ex
nayed/noaax
ef694a36b44a490a7c54341d5cd9ea8b3d53bbd0
[ "MIT" ]
null
null
null
lib/noaax/cli.ex
nayed/noaax
ef694a36b44a490a7c54341d5cd9ea8b3d53bbd0
[ "MIT" ]
null
null
null
lib/noaax/cli.ex
nayed/noaax
ef694a36b44a490a7c54341d5cd9ea8b3d53bbd0
[ "MIT" ]
null
null
null
defmodule Noaax.CLI do @moduledoc """ Handle the command line parsing and the dispatch to the various functions that end up generating a table """ def main(argv) do argv |> parse_args |> process end @doc """ `argv` can be: -s or --state <state>, which returns list of station from <st...
25.583333
95
0.586785
5a48ed95d1a497fad2fd417d79541738992ec00d
275
exs
Elixir
priv/repo/migrations/20160109225331_add_procedure_timestamps.exs
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
priv/repo/migrations/20160109225331_add_procedure_timestamps.exs
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
priv/repo/migrations/20160109225331_add_procedure_timestamps.exs
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
defmodule Critter4us.Repo.Migrations.AddProcedureTimestamps do use Ecto.Migration def change do alter table(:procedures) do add :inserted_at, :datetime, default: fragment("now()") add :updated_at, :datetime, default: fragment("now()") end end end
25
62
0.705455
5a48faa8bfb8d8fce2ba4be863821dd1ab064ebf
621
ex
Elixir
lib/mix.tasks.configure.ex
FarmBot-Labs/host_farmware_tools
4435641a030e3f6bec87c42a7ae7b16f38ac5908
[ "MIT" ]
null
null
null
lib/mix.tasks.configure.ex
FarmBot-Labs/host_farmware_tools
4435641a030e3f6bec87c42a7ae7b16f38ac5908
[ "MIT" ]
null
null
null
lib/mix.tasks.configure.ex
FarmBot-Labs/host_farmware_tools
4435641a030e3f6bec87c42a7ae7b16f38ac5908
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Farmbot.Configure do use Mix.Task @shortdoc "Configure you're farmbot account." def run([email, password, server]) do Application.ensure_all_started(:httpoison) case HostFarmwareTools.fetch_token(email, password, server) do {:ok, _tkn} -> secret = %{email: ema...
23.884615
66
0.634461
5a490d96a717e99281f7fefba2df63a82292e8d8
1,798
exs
Elixir
test/permutation_test.exs
fireproofsocks/permutation
9c0c4ba99db1392e60bed63908f31a72db7e0183
[ "Apache-2.0" ]
null
null
null
test/permutation_test.exs
fireproofsocks/permutation
9c0c4ba99db1392e60bed63908f31a72db7e0183
[ "Apache-2.0" ]
null
null
null
test/permutation_test.exs
fireproofsocks/permutation
9c0c4ba99db1392e60bed63908f31a72db7e0183
[ "Apache-2.0" ]
null
null
null
defmodule PermutationTest do use ExUnit.Case describe "Mapset permut/2" do test ":ok with default cardinality is a set with the original set as its only member" do mapset = MapSet.new([:a, :b, :c]) assert {:ok, MapSet.new([mapset])} == Permutation.permute(mapset) end test ":ok with smaller...
29.966667
95
0.482202
5a490f404b76fcd3b994d39af8bda6aa6b28e900
1,018
ex
Elixir
lib/web/managers/settings_manager.ex
yknx4/opencov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
8
2021-08-22T10:37:57.000Z
2022-01-10T11:27:06.000Z
lib/web/managers/settings_manager.ex
yknx4/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
109
2021-08-20T04:08:04.000Z
2022-01-03T07:39:18.000Z
lib/web/managers/settings_manager.ex
Librecov/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
null
null
null
defmodule Librecov.SettingsManager do use Librecov.Web, :manager @required_fields ~w()a @optional_fields ~w(restricted_signup_domains signup_enabled default_project_visibility)a def changeset(model, params \\ :invalid) do model |> cast(params, @required_fields ++ @optional_fields) |> validate_requ...
27.513514
93
0.717092
5a4965bf98a10582951539369fa1f576a4b2e785
1,186
exs
Elixir
config/config.exs
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
config/config.exs
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
config/config.exs
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :neuron, :neuron_connection_opts, recv_timeout: 10_000 # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on...
35.939394
73
0.753794
5a49842347bcce5803fb6af22bccfa78cac1d302
5,413
ex
Elixir
apps/tanx_web/lib/tanx_web/channels/game_channel.ex
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
112
2016-05-10T17:17:08.000Z
2022-01-25T22:41:29.000Z
apps/tanx_web/lib/tanx_web/channels/game_channel.ex
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
3
2016-05-10T04:39:02.000Z
2019-07-19T12:50:07.000Z
apps/tanx_web/lib/tanx_web/channels/game_channel.ex
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
22
2016-05-17T01:51:51.000Z
2022-03-15T03:21:02.000Z
defmodule TanxWeb.GameChannel do use TanxWeb, :channel require Logger def join("game:" <> game, %{"name" => player_name, "id" => player}, socket) do game_proc = Tanx.Cluster.game_process(game) case Tanx.ContinuousGame.rename_player(game_proc, player, player_name) do {:ok, ^player} -> {:ok,...
27.758974
98
0.634029
5a498996e5fd030d6081b4dc1d0f9477a9cd37f1
954
ex
Elixir
test/support/channel_case.ex
bfontaine/train2cal
d4a69e3dece4e68f1e280c9f5d796b738dee64bb
[ "MIT" ]
null
null
null
test/support/channel_case.ex
bfontaine/train2cal
d4a69e3dece4e68f1e280c9f5d796b738dee64bb
[ "MIT" ]
null
null
null
test/support/channel_case.ex
bfontaine/train2cal
d4a69e3dece4e68f1e280c9f5d796b738dee64bb
[ "MIT" ]
null
null
null
defmodule Train2calWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts...
27.257143
66
0.74109
5a49b12bb0291fe4ff7ad96eed0ecf81daf19404
15,512
ex
Elixir
lib/ecto/adapters/postgres/sql.ex
liveforeverx/ecto
42a812b765762f62cc260a994897a95492ffae28
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/postgres/sql.ex
liveforeverx/ecto
42a812b765762f62cc260a994897a95492ffae28
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/postgres/sql.ex
liveforeverx/ecto
42a812b765762f62cc260a994897a95492ffae28
[ "Apache-2.0" ]
null
null
null
if Code.ensure_loaded?(Postgrex.Connection) do defmodule Ecto.Adapters.Postgres.SQL do @moduledoc false # This module handles the generation of SQL code from queries and for create, # update and delete. All queries have to be normalized and validated for # correctness before given to this module. ...
32.384134
94
0.57433
5a49c71dc90675c8496a2666ad59a86fdaec9e07
255
ex
Elixir
lib/stormchat.ex
gautambaghel/stormchat
1882467113158e7524d02d273e1f88439cc1f152
[ "MIT" ]
null
null
null
lib/stormchat.ex
gautambaghel/stormchat
1882467113158e7524d02d273e1f88439cc1f152
[ "MIT" ]
7
2019-06-25T17:21:41.000Z
2022-02-10T12:09:08.000Z
lib/stormchat.ex
gautambaghel/stormchat
1882467113158e7524d02d273e1f88439cc1f152
[ "MIT" ]
null
null
null
defmodule Stormchat do @moduledoc """ Stormchat keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
25.5
66
0.756863
5a49cc7efe5ceb706ff1abbff847ef2875b1ec4c
502
ex
Elixir
apps/tai/lib/tai/markets/price_point.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/markets/price_point.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/markets/price_point.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Markets.PricePoint do @moduledoc """ A level of a side in an order book """ alias __MODULE__ @type t :: %PricePoint{price: number, size: number} @enforce_keys ~w(price size)a defstruct ~w(price size)a def fetch(term, :price), do: {:ok, term.price} def fetch(term, :size), do: {:ok, te...
20.916667
53
0.633466
5a49d83278c19261a21061505147cfbd164c129f
6,581
ex
Elixir
lib/console/graphql/kubernetes.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
lib/console/graphql/kubernetes.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
lib/console/graphql/kubernetes.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
defmodule Console.GraphQl.Kubernetes do use Console.GraphQl.Schema.Base alias Console.GraphQl.Resolvers.Kubernetes alias Console.Middleware.{Authenticated, AdminRequired, Rbac} object :metadata do field :labels, list_of(:label_pair), resolve: fn %{labels: labels}, _, _ -> {:ok, make_labels(labels)} en...
28.489177
120
0.691688
5a49d967b55d0ecee5f6c666cfa1fb96b68317ff
87
ex
Elixir
lib/devcontainer_example_web/views/layout_view.ex
bruce/phoenix-devcontainer-example
1f4ec42c0c59f309057123dbb394a3ec233174f2
[ "MIT" ]
4
2021-02-24T06:14:11.000Z
2021-05-01T09:20:16.000Z
lib/devcontainer_example_web/views/layout_view.ex
bruce/phoenix-devcontainer-example
1f4ec42c0c59f309057123dbb394a3ec233174f2
[ "MIT" ]
null
null
null
lib/devcontainer_example_web/views/layout_view.ex
bruce/phoenix-devcontainer-example
1f4ec42c0c59f309057123dbb394a3ec233174f2
[ "MIT" ]
3
2021-02-24T20:11:56.000Z
2022-02-05T01:36:38.000Z
defmodule DevcontainerExampleWeb.LayoutView do use DevcontainerExampleWeb, :view end
21.75
46
0.862069
5a49e49e666ea1990534cc9acd8a82db1273c7ea
143
ex
Elixir
insights/lib/insights_web/controllers/page_controller.ex
MillionIntegrals/elixir-mongodb-driver
96c4cc3f21c4043323b8a9b33ad3a374760864c6
[ "Apache-2.0" ]
null
null
null
insights/lib/insights_web/controllers/page_controller.ex
MillionIntegrals/elixir-mongodb-driver
96c4cc3f21c4043323b8a9b33ad3a374760864c6
[ "Apache-2.0" ]
null
null
null
insights/lib/insights_web/controllers/page_controller.ex
MillionIntegrals/elixir-mongodb-driver
96c4cc3f21c4043323b8a9b33ad3a374760864c6
[ "Apache-2.0" ]
null
null
null
defmodule InsightsWeb.PageController do use InsightsWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.875
39
0.741259
5a49ee27282d1990a3ba77749f627d08846af62b
12,928
exs
Elixir
test/datomic_gen_server/db_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
23
2016-02-16T16:55:05.000Z
2021-07-23T17:06:29.000Z
test/datomic_gen_server/db_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
1
2017-01-20T20:55:56.000Z
2017-01-20T20:55:56.000Z
test/datomic_gen_server/db_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
6
2017-01-17T16:12:23.000Z
2020-09-19T15:30:59.000Z
defmodule DatomicGenServer.DbTest do use ExUnit.Case, async: false alias DatomicGenServer.Db, as: Db setup_all do # Need long timeouts to let the JVM start. DatomicGenServer.start_link( "datomic:mem://test", true, [{:timeout, 20_000}, {:default_message_timeout, 20_000}, {:name, Dato...
35.811634
118
0.598236
5a4a0aab8ee1be76781d460959412bbed3c2485a
354
exs
Elixir
programming_elixir/chapter14/link2.exs
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
programming_elixir/chapter14/link2.exs
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
programming_elixir/chapter14/link2.exs
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
defmodule Link2 do import :timer, only: [ sleep: 1 ] def sad_function do sleep 500 exit(:boom) end def run do spawn_link(Link2, :sad_function, []) receive do msg -> IO.puts "MESSAGE RECEIVED: #{inspect msg}" after 1000 -> IO.puts "Nothing happened as far as I am concer...
17.7
59
0.612994
5a4a227659ce493223a048095e197cfac6febcd3
4,990
ex
Elixir
lib/logger/lib/logger/error_handler.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
1
2019-06-11T20:22:20.000Z
2019-06-11T20:22:20.000Z
lib/logger/lib/logger/error_handler.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/logger/lib/logger/error_handler.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
defmodule Logger.ErrorHandler do @moduledoc false use GenEvent require Logger def init({otp?, sasl?, threshold}) do # We store the logger PID in the state because when we are shutting # down the Logger application, the Logger process may be terminated # and then trying to reach it will lead to cr...
36.691176
95
0.63988
5a4a44b89ee737feb9b3d5d99a51ca7cd74b6f9d
30,223
exs
Elixir
test/ecto/query_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
1
2019-07-25T17:42:33.000Z
2019-07-25T17:42:33.000Z
test/ecto/query_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
null
null
null
test/ecto/query_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
null
null
null
Code.require_file "../support/eval_helpers.exs", __DIR__ defmodule Ecto.QueryTest do use ExUnit.Case, async: true import Support.EvalHelpers import Ecto.Query alias Ecto.Query defmacrop macro_equal(column, value) do quote do unquote(column) == unquote(value) end end defmacro macro_map(ke...
35.431419
149
0.60219
5a4a87d0f4e3c6710c105676d41d6f92282899d5
954
ex
Elixir
test/support/channel_case.ex
chargio/phoenix-container-buildah
929e4c9bf0ea53ce00c3e23262a130d47facef91
[ "Apache-2.0" ]
null
null
null
test/support/channel_case.ex
chargio/phoenix-container-buildah
929e4c9bf0ea53ce00c3e23262a130d47facef91
[ "Apache-2.0" ]
null
null
null
test/support/channel_case.ex
chargio/phoenix-container-buildah
929e4c9bf0ea53ce00c3e23262a130d47facef91
[ "Apache-2.0" ]
null
null
null
defmodule ContainerWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts...
27.257143
66
0.74109
5a4a9943160b9c1152daee7966c9e6cc8d88e617
1,414
ex
Elixir
apps/grenadier/test/support/data_case.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/grenadier/test/support/data_case.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/grenadier/test/support/data_case.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
defmodule Grenadier.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 te...
26.185185
77
0.681754
5a4a9e13550944100615a4b36e99f7cd0afb7d2a
308
ex
Elixir
lib/simple_implementation.ex
findmypast/behaviour-introspection
680cbb9602f7c3234ad6a4b7afa63afbbd1ebb65
[ "Apache-2.0" ]
null
null
null
lib/simple_implementation.ex
findmypast/behaviour-introspection
680cbb9602f7c3234ad6a4b7afa63afbbd1ebb65
[ "Apache-2.0" ]
null
null
null
lib/simple_implementation.ex
findmypast/behaviour-introspection
680cbb9602f7c3234ad6a4b7afa63afbbd1ebb65
[ "Apache-2.0" ]
1
2020-07-24T15:27:22.000Z
2020-07-24T15:27:22.000Z
defmodule Test.SimpleImplementation1 do @behaviour Test.SimpleBehaviour def description do "This is the first simple implementation" end end defmodule Test.SimpleImplementation2 do @behaviour Test.SimpleBehaviour def description do "This is the second simple implementation" end end
17.111111
46
0.782468
5a4aab19a35ca950194d1c4ad0c0493fc86d5f39
9,879
exs
Elixir
apps/core/test/services/recipes_test.exs
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
null
null
null
apps/core/test/services/recipes_test.exs
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
2
2019-12-13T23:55:50.000Z
2019-12-17T05:49:58.000Z
apps/core/test/services/recipes_test.exs
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
null
null
null
defmodule Core.Services.RecipesTest do use Core.SchemaCase, async: true alias Core.Services.Recipes alias Core.Services.{Charts, Terraform} describe "#create" do test "It can create a multi-section recipe" do %{publisher: %{owner: user}} = repo = insert(:repository) chart = insert(:chart, repos...
37.562738
114
0.597834
5a4ac3ac8af8bfc8fac4b37dfed20d9762f71cca
42
exs
Elixir
test/fixtures/umbrella_test/apps/app2/config/test.exs
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
test/fixtures/umbrella_test/apps/app2/config/test.exs
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
test/fixtures/umbrella_test/apps/app2/config/test.exs
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
use Mix.Config config :app2, foo: :quz
8.4
14
0.666667
5a4ad0a29f93653d21e00a134c205847a0ffa473
4,982
ex
Elixir
lib/pigeon/apns.ex
stefanzvkvc/pigeon
3de4179db924e0f003edb0a480a60e616699739e
[ "MIT" ]
1
2021-09-05T13:34:21.000Z
2021-09-05T13:34:21.000Z
lib/pigeon/apns.ex
stefanzvkvc/pigeon
3de4179db924e0f003edb0a480a60e616699739e
[ "MIT" ]
null
null
null
lib/pigeon/apns.ex
stefanzvkvc/pigeon
3de4179db924e0f003edb0a480a60e616699739e
[ "MIT" ]
null
null
null
defmodule Pigeon.APNS do @moduledoc """ Apple Push Notification Service (APNS) """ alias Pigeon.APNS.{Config, Notification} alias Pigeon.Worker require Logger @typedoc ~S""" Can be either a single notification or a list. """ @type notification :: Notification.t() | [Notification.t(), ...] @type...
29.305882
78
0.625251
5a4ad670b23a9015efc62c8f732636ad184c487b
1,478
ex
Elixir
apps/language_server/lib/language_server/providers/execute_command/expand_macro.ex
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
865
2018-10-31T20:29:13.000Z
2022-03-29T11:13:39.000Z
apps/language_server/lib/language_server/providers/execute_command/expand_macro.ex
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
441
2019-01-05T02:33:52.000Z
2022-03-30T20:56:50.000Z
apps/language_server/lib/language_server/providers/execute_command/expand_macro.ex
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
126
2018-11-12T19:16:53.000Z
2022-03-26T13:27:50.000Z
defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.ExpandMacro do @moduledoc """ This module implements a custom command expanding an elixir macro. Returns a formatted source fragment. """ alias ElixirLS.LanguageServer.Server @behaviour ElixirLS.LanguageServer.Providers.ExecuteCommand @impl Eli...
30.791667
108
0.612314
5a4b1af1f3154bfcdf566a2d3493d76d4cbffea6
1,365
ex
Elixir
lib/cli.ex
girorme/elscrap
43f5ee5fecb3862e842b87fe9aa3783a8850a214
[ "MIT" ]
4
2020-11-08T20:47:07.000Z
2022-01-28T14:01:02.000Z
lib/cli.ex
girorme/elscrap
43f5ee5fecb3862e842b87fe9aa3783a8850a214
[ "MIT" ]
null
null
null
lib/cli.ex
girorme/elscrap
43f5ee5fecb3862e842b87fe9aa3783a8850a214
[ "MIT" ]
null
null
null
defmodule Elscrap.Cli do def main (args \\ []) do args |> parse_args |> scrap end defp parse_args(args) do {opts, _value, _} = args |> OptionParser.parse(switches: [extract_links: :boolean]) opts end defp scrap(opts) do url = opts[:url] || nil unless url do # validação ...
20.373134
68
0.589744
5a4b3a4fecd9d31548ab08025bbdb5de0dcd266a
1,300
exs
Elixir
ELIXIR/discuss/config/dev.exs
lcr0815/iex
0fc5eadd5a28e7ba2fb225b6117f6d540937ff78
[ "MIT" ]
1
2020-07-16T11:28:44.000Z
2020-07-16T11:28:44.000Z
ELIXIR/discuss/config/dev.exs
lcr0815/iex
0fc5eadd5a28e7ba2fb225b6117f6d540937ff78
[ "MIT" ]
1
2021-05-09T03:13:17.000Z
2021-05-09T03:13:17.000Z
ELIXIR/discuss/config/dev.exs
lcr0815/iex
0fc5eadd5a28e7ba2fb225b6117f6d540937ff78
[ "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 :discuss, Discuss.Endpoint, http: [port: 4000]...
29.545455
73
0.693846
5a4b3fad8e94482b16e851ae07560a24781faafe
214
ex
Elixir
lib/cloudevents/format/v_1_0/encoder/json.ex
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
7
2020-03-17T22:54:51.000Z
2021-09-10T17:33:03.000Z
lib/cloudevents/format/v_1_0/encoder/json.ex
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
2
2020-07-13T23:01:52.000Z
2020-07-16T17:05:56.000Z
lib/cloudevents/format/v_1_0/encoder/json.ex
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
1
2020-07-07T19:49:25.000Z
2020-07-07T19:49:25.000Z
defimpl Cloudevents.Format.Encoder.JSON, for: Cloudevents.Format.V_1_0.Event do @moduledoc false def encode(event) do event |> Cloudevents.Format.Encoder.Map.convert() |> Jason.encode!() end end
21.4
79
0.714953
5a4b5b587440c12da0fdd23e9b222fa917898dc5
140
exs
Elixir
test/line_bot_api/sending_message/content/text_test.exs
niku/line_bot_api
f45bdfaa0cbbe732407b259e0efca9101ff9535b
[ "MIT" ]
2
2016-04-21T10:12:04.000Z
2018-10-05T10:55:24.000Z
test/line_bot_api/sending_message/content/text_test.exs
niku/line_bot_api
f45bdfaa0cbbe732407b259e0efca9101ff9535b
[ "MIT" ]
null
null
null
test/line_bot_api/sending_message/content/text_test.exs
niku/line_bot_api
f45bdfaa0cbbe732407b259e0efca9101ff9535b
[ "MIT" ]
null
null
null
defmodule LineBotApi.SendingMessage.Content.TextTest do use ExUnit.Case, async: true doctest LineBotApi.SendingMessage.Content.Text end
28
55
0.835714
5a4b613c341268fd1461bd8f3d8505d40ac1d08d
248
ex
Elixir
lib/dissolver/html/theme.ex
ivanpetrovic/dissolver
e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a
[ "MIT" ]
21
2020-04-11T14:02:50.000Z
2022-03-20T21:49:38.000Z
lib/dissolver/html/theme.ex
ivanpetrovic/dissolver
e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a
[ "MIT" ]
5
2020-04-12T18:16:57.000Z
2020-11-07T01:28:08.000Z
lib/dissolver/html/theme.ex
ivanpetrovic/dissolver
e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a
[ "MIT" ]
2
2020-11-07T01:16:52.000Z
2022-02-22T10:30:03.000Z
defmodule Dissolver.HTML.Theme do @moduledoc """ This is a behavior for implementing a custom Dissolver.HTML.Theme """ @callback generate_links(any, String.t()) :: {:safe, [binary | maybe_improper_list(any, binary | [])]} end
31
71
0.669355
5a4b825aad13ab5b61442d8a8411b39df7f12589
794
ex
Elixir
clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/truststore_items.ex
hoomaan-kh/swagger-aem
0b19225bb6e071df761d176cbc13565891fe895f
[ "Apache-2.0" ]
null
null
null
clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/truststore_items.ex
hoomaan-kh/swagger-aem
0b19225bb6e071df761d176cbc13565891fe895f
[ "Apache-2.0" ]
null
null
null
clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/truststore_items.ex
hoomaan-kh/swagger-aem
0b19225bb6e071df761d176cbc13565891fe895f
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule AdobeExperienceManager(AEM)API.Model.TruststoreItems do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"alias", :"entryT...
20.894737
91
0.634761
5a4ba02c99ace490d41719b8a209a6df1db4e07a
15,498
exs
Elixir
test/teslamate/import_test.exs
ograff/teslamate
677891833623df115c5d4fc8278c298697c45a61
[ "MIT" ]
1
2021-10-31T13:22:49.000Z
2021-10-31T13:22:49.000Z
test/teslamate/import_test.exs
ograff/teslamate
677891833623df115c5d4fc8278c298697c45a61
[ "MIT" ]
null
null
null
test/teslamate/import_test.exs
ograff/teslamate
677891833623df115c5d4fc8278c298697c45a61
[ "MIT" ]
null
null
null
defmodule TeslaMate.ImportTest do use TeslaMate.DataCase alias TeslaMate.Log.{Car, Drive, ChargingProcess, State, Update} alias TeslaMate.{Repo, Log, Repair} alias TeslaMate.Import.Status alias TeslaMate.Import import Mock @dir "./test/fixtures/import" setup do {:ok, _pid} = start_supervised({P...
33.257511
98
0.506904
5a4babb8cef864218ecf19ff5cbbb9bef10786fe
2,392
ex
Elixir
apps/aecore/lib/aecore/sync/jobs.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
131
2018-03-10T01:35:56.000Z
2021-12-27T13:44:41.000Z
apps/aecore/lib/aecore/sync/jobs.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
445
2018-03-12T09:46:17.000Z
2018-12-12T09:52:07.000Z
apps/aecore/lib/aecore/sync/jobs.ex
gspasov/dogs-blockchain
884c14cfc98de2c3793a204da069630d090bbc90
[ "0BSD" ]
23
2018-03-12T12:01:28.000Z
2022-03-06T09:22:17.000Z
defmodule Aecore.Sync.Jobs do @moduledoc """ Handles the functionality of scheduling the required jobs for the sync to be done. This implementations uses the `job` library, where each job is regulated to a specific queue. We have 3 main queues: - `:sync_ping_workers` -> Handles the ping between nodes - `:s...
32.324324
97
0.654682
5a4bacfccd48f5d8fbbf5dc5555e9c7a968fa03e
789
ex
Elixir
template/$PROJECT_NAME$/lib/$PROJECT_NAME$_web/router.ex
infinitered/firebird
679ca2f21eb0a5dc4bfc15c90f2c3c2abd2fe49b
[ "MIT" ]
72
2017-04-30T05:45:22.000Z
2021-05-20T21:00:31.000Z
template/$PROJECT_NAME$/lib/$PROJECT_NAME$_web/router.ex
infinitered/firebird
679ca2f21eb0a5dc4bfc15c90f2c3c2abd2fe49b
[ "MIT" ]
13
2017-04-30T07:03:59.000Z
2017-12-15T08:19:16.000Z
template/$PROJECT_NAME$/lib/$PROJECT_NAME$_web/router.ex
infinitered/firebird
679ca2f21eb0a5dc4bfc15c90f2c3c2abd2fe49b
[ "MIT" ]
4
2017-09-05T14:21:29.000Z
2018-09-30T11:11:38.000Z
defmodule <%= @project_name_camel_case %>Web.Router do use <%= @project_name_camel_case %>Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["js...
22.542857
81
0.662864
5a4bb0c83c3a71293844828b6e84534429574346
1,977
ex
Elixir
src/lib/changelog_web/views/admin/news/news_sponsorship_view.ex
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
null
null
null
src/lib/changelog_web/views/admin/news/news_sponsorship_view.ex
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
null
null
null
src/lib/changelog_web/views/admin/news/news_sponsorship_view.ex
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.Admin.NewsSponsorshipView do use ChangelogWeb, :admin_view alias Changelog.{NewsSponsorship, Sponsor} alias ChangelogWeb.{Endpoint, TimeView} alias ChangelogWeb.Admin.{NewsAdView} def active_ads(sponsorship), do: Enum.filter(sponsorship.ads, &(&1.active)) def inactive_ads(sponsorshi...
31.380952
108
0.702074
5a4be67c2e1e859818d73bdc68f0c7b5af2fee0e
1,096
ex
Elixir
clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_impl.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_impl.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_impl.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule SwaggyJenkins.Model.PipelineImpl do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"_class", :"displayName", :"estim...
24.909091
91
0.645073
5a4bf5ade3e96ede6deecb67a873003b84ef4221
2,260
ex
Elixir
lib/prom_ex/metrics_server/plug.ex
treble37/prom_ex
f5bb45279cf9576b1c4533de0ad555d3b2987f76
[ "MIT" ]
null
null
null
lib/prom_ex/metrics_server/plug.ex
treble37/prom_ex
f5bb45279cf9576b1c4533de0ad555d3b2987f76
[ "MIT" ]
null
null
null
lib/prom_ex/metrics_server/plug.ex
treble37/prom_ex
f5bb45279cf9576b1c4533de0ad555d3b2987f76
[ "MIT" ]
null
null
null
defmodule PromEx.MetricsServer.Plug do @moduledoc """ This plug is used to serve metrics when PromEx is run in a standalone server configuration. This plug supports the following options: * `:path` - The route that should expose the metrics (default is "/metrics") * `:prom_ex_module` - The PromEx module th...
28.25
113
0.628761
5a4bf76f2700d8e65c8bcc75087c43071c439d29
391
ex
Elixir
lib/web/views/admin/race_view.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/web/views/admin/race_view.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/web/views/admin/race_view.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Web.Admin.RaceView do use Web, :view alias Data.Stats alias Game.Config import Ecto.Changeset def starting_stats(changeset) do case get_field(changeset, :starting_stats) do nil -> Config.basic_stats() |> Poison.encode!(pretty: true) starting_stats -> starting_stat...
20.578947
73
0.675192
5a4c1f63de0b2f2ef8c39720f5cd5ccb9e0549aa
3,581
ex
Elixir
clients/container/lib/google_api/container/v1/model/network_config.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/container/lib/google_api/container/v1/model/network_config.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/network_config.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "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...
55.092308
370
0.735828
5a4c2c490df0ad6337daceb8528d8d37ae199feb
6,098
ex
Elixir
farmbot_ext/lib/farmbot_ext/amqp/connection_worker.ex
EarthEngineering/facetop_os
c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb
[ "MIT" ]
1
2021-04-22T10:18:50.000Z
2021-04-22T10:18:50.000Z
farmbot_ext/lib/farmbot_ext/amqp/connection_worker.ex
bluewaysw/farmbot_os
3449864bc5c17a688ec2fe75e4a5cf247da57806
[ "MIT" ]
null
null
null
farmbot_ext/lib/farmbot_ext/amqp/connection_worker.ex
bluewaysw/farmbot_os
3449864bc5c17a688ec2fe75e4a5cf247da57806
[ "MIT" ]
null
null
null
defmodule FarmbotExt.AMQP.ConnectionWorker do @moduledoc """ Manages the AMQP socket lifecycle. """ use GenServer require Logger require FarmbotCore.Logger require FarmbotTelemetry alias AMQP.{Basic, Channel, Queue} alias FarmbotExt.{JWT, AMQP.ConnectionWorker} alias FarmbotCore.{Project, JSON} ...
30.643216
96
0.650705
5a4c314707b1a58f0b06f2516ef950230757a68b
449
exs
Elixir
test/test_helper.exs
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
if ExUnit.configuration() |> Keyword.fetch!(:include) |> Enum.member?(:integration) do {:ok, _} = Application.ensure_all_started(:wallaby) Application.put_env(:wallaby, :base_url, "http://localhost:4001") Application.put_env(:wallaby, :screenshot_on_failure, true) Application.put_env(:wallaby, :chromedriver, he...
40.818182
86
0.743875
5a4c4a5a2f971bbec828a93b9a1bf1c297bd8e39
3,120
exs
Elixir
test/ex_vmstats_test.exs
postmates/ex_vmstats
2cd1486569f668bf52b52661434112c7564a5676
[ "Apache-2.0" ]
null
null
null
test/ex_vmstats_test.exs
postmates/ex_vmstats
2cd1486569f668bf52b52661434112c7564a5676
[ "Apache-2.0" ]
null
null
null
test/ex_vmstats_test.exs
postmates/ex_vmstats
2cd1486569f668bf52b52661434112c7564a5676
[ "Apache-2.0" ]
null
null
null
defmodule ExVmstatsTest do use ExUnit.Case import ExUnit.CaptureLog @metric_regexes [ ~r/proc_count/, ~r/proc_limit/, ~r/messages_in_queues/, ~r/modules/, ~r/run_queue/, ~r/io.bytes_in/, ~r/io.bytes_out/, ~r/gc.count/, ~r/gc.words_reclaimed/, ~r/reductions/, ~r/memory...
23.816794
87
0.669231
5a4c4baa3c4e8de65710ee4972e9d0b80a0b20dc
2,469
ex
Elixir
apps/snitch_core/priv/repo/seed/users.ex
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
1
2021-04-08T22:29:19.000Z
2021-04-08T22:29:19.000Z
apps/snitch_core/priv/repo/seed/users.ex
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
apps/snitch_core/priv/repo/seed/users.ex
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
defmodule Snitch.Seed.Users do @moduledoc false alias Snitch.Data.Model.{Country, State} alias Snitch.Data.Schema.{Address, User, Role} alias Snitch.Core.Tools.MultiTenancy.Repo require Logger @user_passwd Argon2.hash_pwd_salt("avenger") @admin_passwd Argon2.hash_pwd_salt("wizard123") def seed_users...
25.989474
95
0.575942
5a4c4d695af669bc88cfac4ce5f4e9d22569ba33
2,831
ex
Elixir
clients/container/lib/google_api/container/v1/model/upgrade_settings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/upgrade_settings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/upgrade_settings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.746667
138
0.749205
5a4c5c409363a89a41c8c2825ab878b9bcd045ee
285
ex
Elixir
test/shared_examples/shared_examples.ex
LostKobrakai/cubdb
457ac8b94320b26d851f1a36d75001dbba2edc5a
[ "Apache-2.0" ]
null
null
null
test/shared_examples/shared_examples.ex
LostKobrakai/cubdb
457ac8b94320b26d851f1a36d75001dbba2edc5a
[ "Apache-2.0" ]
null
null
null
test/shared_examples/shared_examples.ex
LostKobrakai/cubdb
457ac8b94320b26d851f1a36d75001dbba2edc5a
[ "Apache-2.0" ]
null
null
null
defmodule SharedExamples do defmacro shared_examples(do: block) do quote do defmacro __using__(options) do block = unquote(Macro.escape(block)) quote do @moduletag unquote(options) unquote(block) end end end end end
19
44
0.614035
5a4c67c532b0c999411c1a1229890e956e5f5b4b
2,261
exs
Elixir
test/mango/administration/administration_test.exs
nittin-shankar/mango
3d988a494f57b26bddaad9a25e63eb4e7f6f9c12
[ "MIT" ]
121
2017-06-24T10:33:38.000Z
2022-03-17T16:02:16.000Z
test/mango/administration/administration_test.exs
nittin-shankar/mango
3d988a494f57b26bddaad9a25e63eb4e7f6f9c12
[ "MIT" ]
6
2017-06-24T22:48:21.000Z
2018-03-17T01:20:32.000Z
test/mango/administration/administration_test.exs
nittin-shankar/mango
3d988a494f57b26bddaad9a25e63eb4e7f6f9c12
[ "MIT" ]
29
2017-07-03T04:09:15.000Z
2022-03-02T15:45:49.000Z
defmodule Mango.AdministrationTest do use Mango.DataCase alias Mango.Administration describe "users" do alias Mango.Administration.User @valid_attrs %{email: "some email", name: "some name", phone: "some phone"} @update_attrs %{email: "some updated email", name: "some updated name", phone: "some up...
32.3
104
0.661654
5a4ca3c0011fc9ff51808c73d46f5bd3f89bc993
17,901
ex
Elixir
lib/exop/validation_checks.ex
kor-and-m/exop
774d14a5c680b98481b333d75d8e2918aa2a9341
[ "MIT" ]
null
null
null
lib/exop/validation_checks.ex
kor-and-m/exop
774d14a5c680b98481b333d75d8e2918aa2a9341
[ "MIT" ]
null
null
null
lib/exop/validation_checks.ex
kor-and-m/exop
774d14a5c680b98481b333d75d8e2918aa2a9341
[ "MIT" ]
null
null
null
defmodule Exop.ValidationChecks do @moduledoc """ Provides low-level validation functions: * check_type/3 * check_required/3 * check_numericality/3 * check_in/3 * check_not_in/3 * check_format/3 * check_length/3 * check_struct/3 * check_func/3 * check_equals/3 * check_ex...
32.666058
147
0.654544
5a4cdc73102ade76774c3ae7ab6081fe78a92490
2,404
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/type.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/type.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/type.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
37.5625
120
0.709651
5a4ce97273b1579071ff2de3061727fa8afed454
1,113
ex
Elixir
test/support/conn_case.ex
karabiner-inc/materia_file_transfer
d72f11d97a4ac87362225558aaf88909c9a10c64
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
karabiner-inc/materia_file_transfer
d72f11d97a4ac87362225558aaf88909c9a10c64
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
karabiner-inc/materia_file_transfer
d72f11d97a4ac87362225558aaf88909c9a10c64
[ "Apache-2.0" ]
null
null
null
defmodule MateriaFileTransferWeb.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 datastructures and query the data layer. Fin...
28.538462
86
0.735849
5a4d3db28cf4c7c0fb62776c9a06aa931c3147fb
424
ex
Elixir
web/views/error_view.ex
cdale77/bart_scrape
8696b303f1111a29cfdbea80f15823da3ea5747d
[ "MIT" ]
null
null
null
web/views/error_view.ex
cdale77/bart_scrape
8696b303f1111a29cfdbea80f15823da3ea5747d
[ "MIT" ]
null
null
null
web/views/error_view.ex
cdale77/bart_scrape
8696b303f1111a29cfdbea80f15823da3ea5747d
[ "MIT" ]
null
null
null
defmodule BartScrape.ErrorView do use BartScrape.Web, :view def render("404.json", _assigns) do %{errors: %{detail: "Page not found"}} end def render("500.json", _assigns) do %{errors: %{detail: "Internal server error"}} end # In case no render clause matches or no # template is found, let's re...
23.555556
49
0.686321
5a4d6d69febbd45b72e4d3176212e39ed7b4790f
2,774
ex
Elixir
lib/glimesh_web.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
1
2021-06-08T00:07:39.000Z
2021-06-08T00:07:39.000Z
lib/glimesh_web.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
null
null
null
lib/glimesh_web.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
null
null
null
defmodule GlimeshWeb 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 GlimeshWeb, :controller use GlimeshWeb, :view The definitions below will be executed for every view, controller, ...
21.671875
78
0.657534
5a4d7351155b8c0007584ac327ea1fdbb500cc91
4,223
exs
Elixir
test/delx/test_assertions_test.exs
tlux/delx
8510f5ae2a6d9ec3886a3feed050ffcfd795937d
[ "MIT" ]
2
2021-02-26T05:46:07.000Z
2021-04-01T16:43:03.000Z
test/delx/test_assertions_test.exs
tlux/delx
8510f5ae2a6d9ec3886a3feed050ffcfd795937d
[ "MIT" ]
1
2019-07-28T21:15:47.000Z
2019-07-28T21:15:47.000Z
test/delx/test_assertions_test.exs
tlux/delx
8510f5ae2a6d9ec3886a3feed050ffcfd795937d
[ "MIT" ]
null
null
null
defmodule DelxTest.TestAssertionsTest do use ExUnit.Case, async: true import Delx.TestAssertions alias ExUnit.AssertionError describe "assert_delegate/1" do test "success" do assert_delegate( {SourceModuleB, :my_other_fun, 0}, to: TargetModule ) assert_delegate( ...
31.514925
150
0.538953
5a4d7a2a9971fa6bd316225ba2f0cc7ad80efe22
326
ex
Elixir
exercises/concept/top-secret/lib/top_secret.ex
jaimeiniesta/elixir-1
e8ddafeb313822645e0cd76743955a5c728a84c5
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/concept/top-secret/lib/top_secret.ex
jaimeiniesta/elixir-1
e8ddafeb313822645e0cd76743955a5c728a84c5
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/concept/top-secret/lib/top_secret.ex
jaimeiniesta/elixir-1
e8ddafeb313822645e0cd76743955a5c728a84c5
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule TopSecret do def to_ast(string) do # Please implement the to_ast/1 function end def decode_secret_message_part(ast, acc) do # Please implement the decode_secret_message_part/2 function end def decode_secret_message(string) do # Please implement the decode_secret_message/1 function en...
23.285714
64
0.773006
5a4d7c6c785b8b61495a011abb89162339e015fb
16,944
exs
Elixir
test/groupher_server_web/query/cms/paged_articles/paged_meetups_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
test/groupher_server_web/query/cms/paged_articles/paged_meetups_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
test/groupher_server_web/query/cms/paged_articles/paged_meetups_test.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Test.Query.PagedArticles.PagedMeetup do @moduledoc false use GroupherServer.TestTools import Helper.Utils, only: [get_config: 2] import Ecto.Query, warn: false alias GroupherServer.CMS alias GroupherServer.Repo alias CMS.Model.Meetup @page_size get_config(:general, :page_siz...
35.3
97
0.637394
5a4d8309b6ef05c2a25972fe43f13199688a0915
2,917
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/aws_s3_data.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/aws_s3_data.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/aws_s3_data.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "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...
52.089286
434
0.73603
5a4d973569240b5750c05d8aee9525a5e4d42944
1,885
exs
Elixir
mix.exs
Schultzer/cldr_territories
3b62e21dd3bee009cb7d172e68335ba54d0afd6e
[ "MIT", "Unlicense" ]
9
2017-11-14T22:27:50.000Z
2021-05-07T12:33:30.000Z
mix.exs
elixir-cldr/cldr_territories
8b389fa28a97451af90cf5bd53bf20ef3be07386
[ "Unlicense", "MIT" ]
15
2017-10-30T04:23:12.000Z
2022-01-03T08:18:47.000Z
mix.exs
elixir-cldr/cldr_territories
8b389fa28a97451af90cf5bd53bf20ef3be07386
[ "Unlicense", "MIT" ]
4
2017-11-19T08:03:37.000Z
2021-05-10T17:21:00.000Z
defmodule Cldr.Territories.Mixfile do use Mix.Project @version "2.3.0" def project do [ app: :ex_cldr_territories, version: @version, elixir: "~> 1.8", name: "Cldr Territories", source_url: "https://github.com/schultzer/cldr_territories", description: description(), ...
23.860759
99
0.588859
5a4da4be52018ec006b36f27844dc14bbc49fda9
645
exs
Elixir
text_client/mix.exs
CraigTreptow/elixir-for-programmers
b2a96f12b1dd8621d337e7d15c504f12b079cd3e
[ "MIT" ]
1
2018-10-17T15:13:34.000Z
2018-10-17T15:13:34.000Z
text_client/mix.exs
CraigTreptow/elixir-for-programmers
b2a96f12b1dd8621d337e7d15c504f12b079cd3e
[ "MIT" ]
null
null
null
text_client/mix.exs
CraigTreptow/elixir-for-programmers
b2a96f12b1dd8621d337e7d15c504f12b079cd3e
[ "MIT" ]
null
null
null
defmodule TextClient.MixProject do use Mix.Project def project do [ app: :text_client, version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ in...
21.5
82
0.584496
5a4daf0ba5300753c5c6c7b940fd21e4812b810f
1,876
exs
Elixir
mix.exs
TORIFUKUKaiou/ex-r_enum
5fd99b61dae3c7fe8fc3838158af342ff308dff1
[ "Apache-2.0" ]
null
null
null
mix.exs
TORIFUKUKaiou/ex-r_enum
5fd99b61dae3c7fe8fc3838158af342ff308dff1
[ "Apache-2.0" ]
null
null
null
mix.exs
TORIFUKUKaiou/ex-r_enum
5fd99b61dae3c7fe8fc3838158af342ff308dff1
[ "Apache-2.0" ]
null
null
null
defmodule REnum.MixProject do use Mix.Project @versoin "0.4.0" @source_url "https://github.com/tashirosota/ex-r_enum" @description "REnum is Enum extended with convenient functions inspired by Ruby and Rails ActiveSupport." def project do [ app: :r_enum, version: @versoin, elixir: "~> 1....
20.172043
107
0.539446
5a4dce61356dc627bd66011bcf238e996e8f8a3c
26,499
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/http_health_checks.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/api/http_health_checks.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/api/http_health_checks.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
54.75
1,450
0.642741
5a4e719394cfc209fd1857e050d952a971167315
4,340
ex
Elixir
lib/bamboo/adapters/mandrill_adapter.ex
clairton/bamboo
f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01
[ "MIT" ]
null
null
null
lib/bamboo/adapters/mandrill_adapter.ex
clairton/bamboo
f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01
[ "MIT" ]
null
null
null
lib/bamboo/adapters/mandrill_adapter.ex
clairton/bamboo
f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01
[ "MIT" ]
1
2020-04-21T12:36:34.000Z
2020-04-21T12:36:34.000Z
defmodule Bamboo.MandrillAdapter do @moduledoc """ Sends email using Mandrill's JSON API. Use this adapter to send emails through Mandrill's API. Requires that an API key is set in the config. See `Bamboo.MandrillHelper` for extra functions that can be used by `Bamboo.MandrillAdapter` (tagging, merge vars, e...
27.643312
93
0.663364
5a4e730eab4f9aee304be54f1e997defe7543cb9
658
ex
Elixir
lib/iexample.ex
vic/iexample
ab7cf6f5b3ce3c974257fbf9d00fc10c95886062
[ "Apache-2.0" ]
null
null
null
lib/iexample.ex
vic/iexample
ab7cf6f5b3ce3c974257fbf9d00fc10c95886062
[ "Apache-2.0" ]
null
null
null
lib/iexample.ex
vic/iexample
ab7cf6f5b3ce3c974257fbf9d00fc10c95886062
[ "Apache-2.0" ]
null
null
null
defmodule IExample do @readme Path.expand("../README.md", __DIR__) @external_resource @readme @moduledoc File.read!(@readme) @doc ~S""" Generates a string to be interpolated at a documentation attribute. For actual usage example, see `test/support/example.ex` """ defmacro iexample(result, do: body) d...
21.933333
69
0.600304
5a4edd342e6cf6d07277b6d06f958d972ccb2537
1,276
ex
Elixir
apps/core/lib/core/schema/test.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
null
null
null
apps/core/lib/core/schema/test.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
2
2019-12-13T23:55:50.000Z
2019-12-17T05:49:58.000Z
apps/core/lib/core/schema/test.ex
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
null
null
null
defmodule Core.Schema.Test do use Piazza.Ecto.Schema alias Core.Schema.{Repository, User, TestBinding, TestStep} defenum Status, queued: 0, running: 1, succeeded: 2, failed: 3 schema "tests" do field :name, :string field :source_tag, :string field :promote_tag, :string field :status, ...
26.040816
78
0.670846
5a4eec9f5cd6c32a6ac9a44c8b44be013794cb35
1,745
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.9
190
0.738682
5a4f256bbd98cbeba9de454510be365f7ce6e58d
303
ex
Elixir
lib/remove_emoji.ex
nathanbegbie/elixir_remove_emoji
2140aef33a4325bf138b6f0d6bd33e224179fd35
[ "MIT" ]
6
2017-12-18T18:05:01.000Z
2021-04-29T16:35:31.000Z
lib/remove_emoji.ex
nathanbegbie/elixir_remove_emoji
2140aef33a4325bf138b6f0d6bd33e224179fd35
[ "MIT" ]
null
null
null
lib/remove_emoji.ex
nathanbegbie/elixir_remove_emoji
2140aef33a4325bf138b6f0d6bd33e224179fd35
[ "MIT" ]
3
2020-03-30T15:28:50.000Z
2021-12-16T00:35:41.000Z
defmodule RemoveEmoji do alias RemoveEmoji.Rules @doc """ Sanitize original string, remove emoji symbol. ## Examples iex> "👦👦🏻🇯🇵😇😈" |> RemoveEmoji.sanitize() "" """ def sanitize(original_string) do Rules.emoji_codepoints |> Regex.replace(original_string, "") end end
17.823529
64
0.650165
5a4f644aa4f04aeb748be39624966eca4d23dd20
3,440
ex
Elixir
lib/codes/codes_c63.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c63.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c63.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_C63 do alias IcdCode.ICDCode def _C6300 do %ICDCode{full_code: "C6300", category_code: "C63", short_code: "00", full_name: "Malignant neoplasm of unspecified epididymis", short_name: "Malignant neoplasm of unspecified epididymis", ...
35.463918
89
0.636919
5a4f7299a1e0bba87c8180b5172d270e1eedc2a0
805
ex
Elixir
lib/absinthe/test.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/test.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/test.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Test do @doc """ Run the introspection query on a schema. In your `test_helper.exs` file add ``` Absinthe.Test.prime(MyApp.Schema) ``` ## Explanation In the test environment mix loads code lazily, which means that it isn't until the first GraphQL query in your test suite runs tha...
30.961538
81
0.732919
5a4f7a5b73203c66c95f175b02664d0d8928bd1c
199
ex
Elixir
lib/google/protobuf/empty.ex
moogle19/protox
b0efbce60efd7c38725b74575f7ff0074efd6c65
[ "MIT" ]
176
2017-02-01T13:09:25.000Z
2022-03-18T02:36:17.000Z
lib/google/protobuf/empty.ex
moogle19/protox
b0efbce60efd7c38725b74575f7ff0074efd6c65
[ "MIT" ]
94
2020-07-20T05:54:51.000Z
2022-03-09T04:13:03.000Z
lib/google/protobuf/empty.ex
moogle19/protox
b0efbce60efd7c38725b74575f7ff0074efd6c65
[ "MIT" ]
19
2017-02-13T09:17:14.000Z
2022-02-22T09:29:18.000Z
defmodule Protox.Google.Protobuf.Empty do @moduledoc false use Protox.Define, enums: [], messages: [ { Google.Protobuf.Empty, :proto3, [] } ] end
14.214286
41
0.532663
5a4f7c9499ecdcee55025931a8f0a47c6713448b
8,519
ex
Elixir
lib/chat_api/customers.ex
flmel/papercups
447fc585efc17c373652d47c475f068334bc73e4
[ "MIT" ]
null
null
null
lib/chat_api/customers.ex
flmel/papercups
447fc585efc17c373652d47c475f068334bc73e4
[ "MIT" ]
null
null
null
lib/chat_api/customers.ex
flmel/papercups
447fc585efc17c373652d47c475f068334bc73e4
[ "MIT" ]
null
null
null
defmodule ChatApi.Customers do @moduledoc """ The Customers context. """ import Ecto.Query, warn: false alias ChatApi.Repo alias ChatApi.Customers.Customer alias ChatApi.Tags.CustomerTag @spec list_customers(binary(), map()) :: [Customer.t()] def list_customers(account_id, filters \\ %{}) do Cu...
31.669145
96
0.637868
5a4f8d4f23ce9a55402275d777daf6841d9c7360
2,741
ex
Elixir
test/support/compiler_tester.ex
LostKobrakai/boundary
5249693995b8f2e00a72417b151d8f4acdc5963f
[ "MIT" ]
null
null
null
test/support/compiler_tester.ex
LostKobrakai/boundary
5249693995b8f2e00a72417b151d8f4acdc5963f
[ "MIT" ]
null
null
null
test/support/compiler_tester.ex
LostKobrakai/boundary
5249693995b8f2e00a72417b151d8f4acdc5963f
[ "MIT" ]
null
null
null
defmodule Boundary.CompilerTester do @moduledoc """ This is a special helper made for the purpose of compiler tests. The challenge of compiler test is that we want to perform many mix compilations, which makes the tests very slow. To address this, this module provides a special `module_test` macro which allows...
31.505747
119
0.6556
5a4fa4ff93586b3c4204032770e244d05356704d
2,452
ex
Elixir
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/model/download_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/model/download_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/model/download_request.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...
43.785714
282
0.721044
5a4fc0dedaaabe749ebbfac1cdaf1d90c346021a
92
exs
Elixir
test/punting_server_web/views/page_view_test.exs
codingmelee/punting_server
81c5423b556951beb7412bea5b3610b9e37ba9aa
[ "Apache-2.0" ]
null
null
null
test/punting_server_web/views/page_view_test.exs
codingmelee/punting_server
81c5423b556951beb7412bea5b3610b9e37ba9aa
[ "Apache-2.0" ]
null
null
null
test/punting_server_web/views/page_view_test.exs
codingmelee/punting_server
81c5423b556951beb7412bea5b3610b9e37ba9aa
[ "Apache-2.0" ]
null
null
null
defmodule PuntingServerWeb.PageViewTest do use PuntingServerWeb.ConnCase, async: true end
23
44
0.847826
5a4ffe5be0b7b8b7f9627a0c16b25696cd4e367a
140
ex
Elixir
test/support/function_map.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
16
2016-02-12T15:15:58.000Z
2021-08-24T21:48:34.000Z
test/support/function_map.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
1
2016-02-17T04:58:38.000Z
2016-02-17T04:58:38.000Z
test/support/function_map.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
2
2016-02-17T03:21:23.000Z
2016-03-08T09:23:27.000Z
defmodule TestFunctionMap do def hello() do IO.inspect(%{a: 1, b: 2, c: 3}) IO.inspect(%{"a" => 1, "b" => 2, "c" => 3}) end end
20
47
0.514286
5a501335792b7fd8a298de3e4106fa934baf24c8
7,049
ex
Elixir
apps/naive/lib/naive/leader.ex
frathon/hedgehog
3ed1469919ba819280709a8f26def761003a99df
[ "Unlicense" ]
65
2020-07-07T01:51:27.000Z
2021-09-27T00:13:59.000Z
apps/naive/lib/naive/leader.ex
Cinderella-Man/hedgehog
3ed1469919ba819280709a8f26def761003a99df
[ "Unlicense" ]
5
2021-02-12T08:21:15.000Z
2021-09-01T21:17:27.000Z
apps/naive/lib/naive/leader.ex
frathon/hedgehog
3ed1469919ba819280709a8f26def761003a99df
[ "Unlicense" ]
10
2020-08-13T13:39:31.000Z
2021-09-14T12:46:51.000Z
defmodule Naive.Leader do use GenServer alias Decimal, as: D alias Naive.Repo alias Naive.Schema.Settings alias Naive.Trader require Logger @binance_client Application.get_env(:naive, :binance_client) defmodule State do defstruct symbol: nil, settings: nil, traders: []...
26.5
98
0.59739
5a5016ac8c52055c74e1a913f025de3d3bc2f2db
1,115
ex
Elixir
test/support/channel_case.ex
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
null
null
null
test/support/channel_case.ex
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
6
2021-01-22T15:23:04.000Z
2021-01-28T07:56:01.000Z
test/support/channel_case.ex
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
null
null
null
defmodule OrderApiWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts ...
26.547619
65
0.727354
5a5023ea89c9ae20d5c6621fac2d685fa32baabb
396
ex
Elixir
lib/dgraph_ex/core/expr/math.ex
sunny-g/dgraph_ex
fab9f1fd684538758ed211537c3b0869233e7ce4
[ "MIT" ]
1
2019-05-01T15:18:41.000Z
2019-05-01T15:18:41.000Z
lib/dgraph_ex/core/expr/math.ex
sunny-g/dgraph_ex
fab9f1fd684538758ed211537c3b0869233e7ce4
[ "MIT" ]
null
null
null
lib/dgraph_ex/core/expr/math.ex
sunny-g/dgraph_ex
fab9f1fd684538758ed211537c3b0869233e7ce4
[ "MIT" ]
1
2019-05-01T15:18:48.000Z
2019-05-01T15:18:48.000Z
defmodule DgraphEx.Core.Expr.Math do @moduledoc false defstruct expr: nil defmacro math(block) do expr = block |> Macro.to_string() |> String.replace(":", "") quote do %unquote(__MODULE__){expr: unquote(expr)} end end def new(expr) when is_binary(expr), do: %__MODULE__{...
18.857143
65
0.626263