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
e911e00529aba49739a3070819c2c99155d1727b
4,115
exs
Elixir
test/chat_api_web/controllers/message_controller_test.exs
jalford14/papercups
fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/message_controller_test.exs
jalford14/papercups
fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/message_controller_test.exs
jalford14/papercups
fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.MessageControllerTest do use ChatApiWeb.ConnCase, async: true import ChatApi.Factory alias ChatApi.Messages.Message @update_attrs %{ body: "some updated body" } setup %{conn: conn} do account = insert(:account) user = insert(:user, account: account) conversation = ins...
30.036496
95
0.629648
e912154c07c9f38f486e64b9f95e6bcf476422a9
259
ex
Elixir
lib/movement/context.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/movement/context.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/movement/context.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Movement.Context do defstruct entries: [], operations: [], assigns: %{options: []}, render: "" @type t :: %__MODULE__{} def assign(context, key, value) do Map.put(context, :assigns, Map.merge(context.assigns, %{key => value})) end end
25.9
76
0.65251
e9124b82ce98636db87ed8cb8c049acd533dc3d1
2,038
ex
Elixir
lib/annex/utils.ex
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
1
2020-10-23T13:41:07.000Z
2020-10-23T13:41:07.000Z
lib/annex/utils.ex
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
null
null
null
lib/annex/utils.ex
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
null
null
null
defmodule Annex.Utils do @moduledoc """ This module holds functions that are not necessarily specific to one of Annex's other modules. """ defguard is_pos_integer(x) when is_integer(x) and x > 0 @doc """ Generates a float between -1.0 and 1.0 """ @spec random_float() :: float() def random_float do...
22.644444
97
0.559863
e9127cb521727a7f6483ad63f5e3442c7decc4bc
1,847
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/model/unexpected_exit_status_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/unexpected_exit_status_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/unexpected_exit_status_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "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 ...
34.849057
115
0.736871
e912c09257b31c5aee89f63a5e2a4c19cb5a8c73
973
exs
Elixir
test/extatus/sandbox/metric_test.exs
gmtprime/extatus
e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03
[ "MIT" ]
17
2017-03-01T07:19:46.000Z
2021-11-25T21:57:38.000Z
test/extatus/sandbox/metric_test.exs
gmtprime/extatus
e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03
[ "MIT" ]
1
2018-04-02T11:09:28.000Z
2018-04-02T14:33:30.000Z
test/extatus/sandbox/metric_test.exs
gmtprime/extatus
e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03
[ "MIT" ]
1
2021-12-14T20:49:02.000Z
2021-12-14T20:49:02.000Z
defmodule Extatus.Sandbox.MetricTest do use ExUnit.Case, async: true alias Extatus.Sandbox.Metric test "subscribe/1" do assert :ok = Metric.subscribe(self()) %{subscribers: subscribers} = :sys.get_state(Metric) receivers = Map.get(subscribers, self()) assert Enum.member?(receivers, self()) end...
29.484848
72
0.643371
e912e9de22fbd3b9875a9da7130c15f7423a1bf6
1,277
ex
Elixir
lib/blue_jet_web/controllers/balance_settings_controller.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
lib/blue_jet_web/controllers/balance_settings_controller.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
lib/blue_jet_web/controllers/balance_settings_controller.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJetWeb.BalanceSettingsController do use BlueJetWeb, :controller alias BlueJet.Balance alias JaSerializer.Params action_fallback BlueJetWeb.FallbackController plug :scrub_params, "data" when action in [:create, :update] def show(conn = %{ assigns: assigns }, _) do request = %ContextRequ...
29.022727
108
0.647612
e912f4724dceecb0654eda849de388e171ca6a4f
18,237
ex
Elixir
lib/fontais/codi/state/state.ex
ianrumford/plymio_fontais
828d6726223d2fa038f2c1374fcd2f4b67371544
[ "MIT" ]
null
null
null
lib/fontais/codi/state/state.ex
ianrumford/plymio_fontais
828d6726223d2fa038f2c1374fcd2f4b67371544
[ "MIT" ]
null
null
null
lib/fontais/codi/state/state.ex
ianrumford/plymio_fontais
828d6726223d2fa038f2c1374fcd2f4b67371544
[ "MIT" ]
null
null
null
defmodule Plymio.Fontais.Codi.State do @moduledoc false # note: all the keys are prefixed with 'state_' @vekil %{ state_def_new_doc: quote do @doc ~S""" `new/1` creates a new instance of the module's `struct` and, if the optional *opts* were given, calls `update/2` with the ins...
31.716522
96
0.498163
e912fbc028c4bababe9c3706d95743c9e5f6861c
315
ex
Elixir
lib/pexels/video/user.ex
factor18/pexels
c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01
[ "MIT" ]
5
2021-05-10T12:10:02.000Z
2021-05-24T08:15:42.000Z
lib/pexels/video/user.ex
factor18/pexels
c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01
[ "MIT" ]
null
null
null
lib/pexels/video/user.ex
factor18/pexels
c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01
[ "MIT" ]
1
2021-05-13T16:49:17.000Z
2021-05-13T16:49:17.000Z
defmodule Pexels.Video.User do @moduledoc ~S""" %Pexels.Video.User { id: 3798027, name: "KoolShooters", url: "https://www.pexels.com/@kool-shooters" } """ use Accessible use Construct do field :id, :integer field :name, :string field :url, :string end end
18.529412
52
0.584127
e91319a48529b16e6cdd57b156458b02818225da
1,846
exs
Elixir
clients/health_care/mix.exs
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/health_care/mix.exs
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/health_care/mix.exs
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "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...
27.552239
108
0.656555
e9132dc62ca5909e73b7ad7c6d8cd7d0322d218c
1,822
ex
Elixir
lib/esp_ex/raw_event.ex
Carburetor/esp_ex
0a0ab02c71945e521b213befc0421a4642c9e07b
[ "MIT" ]
null
null
null
lib/esp_ex/raw_event.ex
Carburetor/esp_ex
0a0ab02c71945e521b213befc0421a4642c9e07b
[ "MIT" ]
1
2018-05-11T04:27:54.000Z
2018-05-11T04:27:54.000Z
lib/esp_ex/raw_event.ex
Carburetor/esp_ex
0a0ab02c71945e521b213befc0421a4642c9e07b
[ "MIT" ]
1
2018-10-30T06:08:02.000Z
2018-10-30T06:08:02.000Z
defmodule EspEx.RawEvent do @moduledoc """ Representation of an event in memory """ @typedoc """ - `:data` must be a map, not a struct """ @type t :: %EspEx.RawEvent{ id: String.t(), stream_name: EspEx.StreamName.t(), type: String.t(), position: non_neg_integer | n...
31.413793
79
0.664654
e913389779cf9e7e29a250779a9174d8be9e9926
203
ex
Elixir
lib/error_reporting_backend.ex
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
13
2015-03-24T04:49:39.000Z
2020-01-13T20:04:17.000Z
lib/error_reporting_backend.ex
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
1
2015-11-23T15:06:59.000Z
2015-11-23T15:11:30.000Z
lib/error_reporting_backend.ex
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
2
2019-02-18T12:59:12.000Z
2021-05-28T12:40:37.000Z
defmodule ErrorReportingBackend do # Honeybadger.io still links here. This has moved to https://github.com/joakimk/honeybadger, though that library is now deprecated in favour of the official one. end
50.75
163
0.807882
e913824fb523140621c89a165d2b0205af0090ab
54,270
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/api/accounts.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/api/accounts.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/api/accounts.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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...
45.836149
465
0.627695
e913a9f05afe57fcbbc5e40e46c8123ca336ec6d
834
ex
Elixir
lib/nomad_client/model/cpu_stats.ex
mrmstn/nomad_client
a586022e5eb4d166acba08b55b198ec079d4b118
[ "Apache-2.0" ]
8
2021-09-04T21:22:53.000Z
2022-02-22T22:48:38.000Z
lib/nomad_client/model/cpu_stats.ex
mrmstn/nomad_client
a586022e5eb4d166acba08b55b198ec079d4b118
[ "Apache-2.0" ]
null
null
null
lib/nomad_client/model/cpu_stats.ex
mrmstn/nomad_client
a586022e5eb4d166acba08b55b198ec079d4b118
[ "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 NomadClient.Model.CpuStats do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :SystemMode, :UserMode, :TotalTicks, :...
22.540541
91
0.600719
e913b852debeba7fbfc27a4f715942fecea8f988
940
ex
Elixir
apps/enchat_web/lib/enchat_web/application.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
apps/enchat_web/lib/enchat_web/application.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
apps/enchat_web/lib/enchat_web/application.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
defmodule EnchatWeb.Application do use Application def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the endpoint when the application starts supervisor(EnchatWeb.Endpoint, []), # Start your own worker by ca...
31.333333
87
0.709574
e913d5fa6608503bc5ee09a327563a6f032dfea2
11,742
ex
Elixir
lib/github/github.ex
dmorina/bors-ng
833a3685747c441d13068a140849d759c05fe5c5
[ "Apache-2.0" ]
1,223
2017-01-11T19:25:08.000Z
2022-03-21T12:31:28.000Z
lib/github/github.ex
dmorina/bors-ng
833a3685747c441d13068a140849d759c05fe5c5
[ "Apache-2.0" ]
1,428
2017-01-09T16:36:18.000Z
2022-03-28T14:19:40.000Z
lib/github/github.ex
dmorina/bors-ng
833a3685747c441d13068a140849d759c05fe5c5
[ "Apache-2.0" ]
184
2017-01-10T18:08:06.000Z
2022-03-14T18:53:24.000Z
require Logger defmodule BorsNG.GitHub do @moduledoc """ Wrappers around the GitHub REST API. """ @typedoc """ An authentication token; this may be a raw token (as on oAuth) or an installation xref (in which case the server will look it up). """ @type ttoken :: {:installation, number} | {:raw, binar...
25.470716
92
0.609436
e9140cfa5cf588f928a7141cd156b6780d5c6f8b
1,543
ex
Elixir
lib/kirby_web/views/error_helpers.ex
prefeitura-municipal-campos/kirby
290835751a28cd7e39be2e721de243e495273be7
[ "BSD-3-Clause" ]
null
null
null
lib/kirby_web/views/error_helpers.ex
prefeitura-municipal-campos/kirby
290835751a28cd7e39be2e721de243e495273be7
[ "BSD-3-Clause" ]
null
null
null
lib/kirby_web/views/error_helpers.ex
prefeitura-municipal-campos/kirby
290835751a28cd7e39be2e721de243e495273be7
[ "BSD-3-Clause" ]
null
null
null
defmodule KirbyWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:s...
32.145833
74
0.66429
e91418d27f2c7f5fae1f9a1c581947324b1b7749
932
ex
Elixir
tests/syntax_test_surface.ex
elixir-sublime/elixir-sublime-syntax
5f8aae15bfe5f12e31ec7a3509bc5619aa74babd
[ "MIT" ]
3
2021-12-25T23:42:54.000Z
2022-03-20T22:50:08.000Z
tests/syntax_test_surface.ex
elixir-sublime/elixir-sublime-syntax
5f8aae15bfe5f12e31ec7a3509bc5619aa74babd
[ "MIT" ]
9
2021-10-12T01:01:00.000Z
2022-02-26T03:57:14.000Z
tests/syntax_test_surface.ex
elixir-sublime/elixir-sublime-syntax
5f8aae15bfe5f12e31ec7a3509bc5619aa74babd
[ "MIT" ]
null
null
null
# SYNTAX TEST "Elixir.sublime-syntax" ## Surface templates ~F""" #^^ meta.string.elixir storage.type.string.elixir # ^^^ meta.string.elixir punctuation.definition.string.begin.elixir <Some.App.Component x={y}> # ^ punctuation.section.embedded.end.elixir - source.elixir.embedded # ...
38.833333
92
0.627682
e9141bf32c6dafd5948621275183e93ab4b770b2
391
ex
Elixir
apps/montreal_elixir_web/lib/montreal_elixir_web/views/error_view.ex
noircir/website-1
bfe43f5a7b022dfc009802d9d068d438e83e73f9
[ "MIT" ]
13
2017-05-09T15:15:19.000Z
2020-12-17T08:16:59.000Z
apps/montreal_elixir_web/lib/montreal_elixir_web/views/error_view.ex
noircir/website-1
bfe43f5a7b022dfc009802d9d068d438e83e73f9
[ "MIT" ]
65
2017-05-29T12:59:12.000Z
2022-02-20T16:02:15.000Z
apps/montreal_elixir_web/lib/montreal_elixir_web/views/error_view.ex
noircir/website-1
bfe43f5a7b022dfc009802d9d068d438e83e73f9
[ "MIT" ]
13
2017-05-27T16:17:44.000Z
2020-10-01T05:50:57.000Z
defmodule MontrealElixirWeb.ErrorView do use MontrealElixirWeb, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_...
21.722222
47
0.710997
e914910672d04a6a6cdcaff19b7d1467afcb9946
906
exs
Elixir
test/ptr/cellars/vessel_repo_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
test/ptr/cellars/vessel_repo_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
2
2021-03-09T01:59:47.000Z
2022-02-10T17:08:54.000Z
test/ptr/cellars/vessel_repo_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
defmodule Ptr.Cellars.VesselRepoTest do use Ptr.DataCase describe "vessel" do alias Ptr.Cellars.Vessel @valid_attrs %{ capacity: "120.5000", cooling: "some cooling", identifier: "some identifier", notes: "some notes", material_id: "1", cellar_id: "1" } test "co...
28.3125
90
0.644592
e914a1ee7a1a464af617c79b541dba77c07012ad
111
exs
Elixir
lib/mix/test/fixtures/deps_status/deps/ok/mix.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/mix/test/fixtures/deps_status/deps/ok/mix.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/mix/test/fixtures/deps_status/deps/ok/mix.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2020-12-07T08:04:16.000Z
2020-12-07T08:04:16.000Z
defmodule Ok.Mixfile do use Mix.Project def project do [ app: :ok, version: "0.1.0" ] end end
12.333333
24
0.594595
e914ad140879c6528ba8ae3f0cb19f8511048782
1,786
exs
Elixir
apps/idp/test/idp/projects/projects_test.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/test/idp/projects/projects_test.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/test/idp/projects/projects_test.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
defmodule Idp.ProjectsTest do use Idp.DataCase use Idp.Base.Query alias Idp.Projects describe "projects 🌊 ::" do test "find all works as expected" do assert Projects.all() |> length() > 0 end test "find_by_id works as expected" do one = Projects.all() |> List.first() assert Proj...
26.656716
79
0.6243
e914cbcb02dd35979937255ced09734f6198429e
957
ex
Elixir
lib/absinthe_trace_reporter/reporter/apollo_engine.ex
evuez/absinthe_trace_reporter
2747ec11b63d21a2911c30c6fb20154df0b2ead8
[ "MIT" ]
11
2018-12-13T08:40:48.000Z
2020-11-10T00:06:18.000Z
lib/absinthe_trace_reporter/reporter/apollo_engine.ex
evuez/absinthe_trace_reporter
2747ec11b63d21a2911c30c6fb20154df0b2ead8
[ "MIT" ]
14
2019-02-27T04:25:35.000Z
2021-12-20T04:02:05.000Z
lib/absinthe_trace_reporter/reporter/apollo_engine.ex
evuez/absinthe_trace_reporter
2747ec11b63d21a2911c30c6fb20154df0b2ead8
[ "MIT" ]
2
2019-03-23T18:44:11.000Z
2020-05-27T14:07:41.000Z
defmodule AbsintheTraceReporter.Reporter.ApolloEngine do @engine_endpoint "https://engine-report.apollodata.com/api/ingress/traces" require Logger alias AbsintheTraceReporter.TraceProvider.Engine use Tesla plug(Tesla.Middleware.Headers, [ {"user-agent", "apollo-engine-reporting"} ]) plug(Tesla.Mid...
29
88
0.691745
e914e058d18c1d64f3d8cab249f59c10350f263b
2,606
exs
Elixir
mix.exs
pkinney/nerves
beb6c98eab78cdb277a1d82e89762779078fd86f
[ "Apache-2.0" ]
null
null
null
mix.exs
pkinney/nerves
beb6c98eab78cdb277a1d82e89762779078fd86f
[ "Apache-2.0" ]
18
2021-08-02T02:11:24.000Z
2022-03-24T02:15:40.000Z
mix.exs
pkinney/nerves
beb6c98eab78cdb277a1d82e89762779078fd86f
[ "Apache-2.0" ]
null
null
null
defmodule Nerves.MixProject do use Mix.Project @version "1.7.6" @source_url "https://github.com/nerves-project/nerves" def project do [ app: :nerves, version: @version, elixir: "~> 1.9.4 or ~> 1.10.0 or ~> 1.11.2 or ~> 1.12.0", elixirc_paths: elixirc_paths(Mix.env()), deps: d...
25.80198
89
0.55142
e914ef28e8ac8c51aef5d79522b77d95082d92fa
3,017
exs
Elixir
test/json_schema_test_suite/draft6/optional/format/uri_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/optional/format/uri_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/optional/format/uri_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
null
null
null
defmodule JsonSchemaTestSuite.Draft6.Optional.Format.UriTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|validation of URIs| do setup do %{ schema: Xema.from_json_schema( %{"format" => "uri"}, draft: "draft6", atom: :force ...
30.474747
82
0.613523
e914f0a45dc46c73843c0b648578111172280f6e
1,169
ex
Elixir
lib/serum/build/file_processor/template.ex
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
302
2016-08-01T05:16:06.000Z
2022-03-26T07:20:46.000Z
lib/serum/build/file_processor/template.ex
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
206
2016-08-04T15:18:35.000Z
2022-03-01T03:07:57.000Z
lib/serum/build/file_processor/template.ex
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
35
2016-10-29T13:59:34.000Z
2022-03-01T01:50:31.000Z
defmodule Serum.Build.FileProcessor.Template do @moduledoc false import Serum.IOProxy, only: [put_msg: 2] alias Serum.Result alias Serum.Template alias Serum.Template.Compiler, as: TC alias Serum.Template.Storage, as: TS @spec compile_templates(map()) :: Result.t() def compile_templates(%{templates: t...
28.512195
87
0.650984
e914f18aeeac7a4525a540cf15573d87ef320423
1,308
ex
Elixir
lib/x/template.ex
omohokcoj/x_component
0f51d78b80b7d54d238b7d0c2c3c2f93b9320108
[ "MIT" ]
53
2020-02-09T16:34:46.000Z
2021-04-01T17:48:26.000Z
lib/x/template.ex
omohokcoj/x_component
0f51d78b80b7d54d238b7d0c2c3c2f93b9320108
[ "MIT" ]
1
2020-03-11T03:22:52.000Z
2020-03-11T03:22:52.000Z
lib/x/template.ex
omohokcoj/x_component
0f51d78b80b7d54d238b7d0c2c3c2f93b9320108
[ "MIT" ]
1
2020-02-09T16:34:49.000Z
2020-02-09T16:34:49.000Z
defmodule X.Template do @moduledoc """ Extends module with `~X` sigil to compile templates. use X.Template """ defmacro __using__(_) do quote do import unquote(__MODULE__) end end @doc ~S""" Handles sigil `~X` for the X templates. It returns Elixir AST which can be injected into t...
24.222222
88
0.590214
e915097bb44ba7ed886d1e73a571e3760cf9f8f7
1,020
ex
Elixir
clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_impl.ex
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
23
2017-08-01T12:25:26.000Z
2022-01-25T03:44:11.000Z
clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_impl.ex
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
35
2017-06-14T03:28:15.000Z
2022-02-14T10:25:54.000Z
clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_impl.ex
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
11
2017-08-31T19:00:20.000Z
2021-12-19T12:04:12.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 SwaggyJenkins.Model.PipelineImpl do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"_class", :"displayName", :"estim...
23.181818
91
0.648039
e9150f4a16a0a258082a01922ad60eeaa6d11aa9
3,246
ex
Elixir
day_04/lib/day04/validator.ex
simon-wolf/advent-of-code-2019
571d30f156a2beeeb49a52a2f0223fff5051e7b3
[ "MIT" ]
null
null
null
day_04/lib/day04/validator.ex
simon-wolf/advent-of-code-2019
571d30f156a2beeeb49a52a2f0223fff5051e7b3
[ "MIT" ]
null
null
null
day_04/lib/day04/validator.ex
simon-wolf/advent-of-code-2019
571d30f156a2beeeb49a52a2f0223fff5051e7b3
[ "MIT" ]
null
null
null
defmodule Day04.Validator do @moduledoc """ Functions to validate passwords. """ @doc """ Checks that a string is made up of six characters. If the first element in the tuple is false then the inputs are passed out as the results. ## Examples iex> Day04.Validator.is_six_characters?({true, "123...
28.982143
93
0.630314
e91545e7ce7b96b865cda40720a2a600b00e9b49
1,523
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_hybrid_inspect_response.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_hybrid_inspect_response.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_hybrid_inspect_response.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...
33.844444
94
0.77413
e9156c30b84bf39a62aa271a131298bb6b364f05
1,260
exs
Elixir
config/prod.secret.exs
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
config/prod.secret.exs
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
config/prod.secret.exs
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config database_url = System.get_env("DATABASE_URL") || raise """ envi...
30
67
0.722222
e9158d8a9af8c0950583d2324ae9f941f8089ab9
1,420
ex
Elixir
clients/health_care/lib/google_api/health_care/v1/model/import_messages_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/health_care/lib/google_api/health_care/v1/model/import_messages_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/health_care/lib/google_api/health_care/v1/model/import_messages_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.809524
178
0.773239
e91595c3e0da02384e2390a0e810708cd7d623ca
2,408
ex
Elixir
lib/ok_then/result/pipe.ex
flexibility-org/ok_then
151f981033034f313a8f004491260c04f71c9ee3
[ "0BSD" ]
8
2021-05-25T17:12:16.000Z
2021-12-01T10:01:44.000Z
lib/ok_then/result/pipe.ex
flexibility-org/ok_then
151f981033034f313a8f004491260c04f71c9ee3
[ "0BSD" ]
4
2021-07-23T15:27:41.000Z
2022-01-07T09:39:14.000Z
lib/ok_then/result/pipe.ex
flexibility-org/ok_then
151f981033034f313a8f004491260c04f71c9ee3
[ "0BSD" ]
null
null
null
defmodule OkThen.Result.Pipe do @moduledoc """ Convenience operators for handling of tagged results in pipelines. """ alias OkThen.Result # We don't want `Elixir.` at the start of the module name. @result_module Result |> Module.split() |> Enum.join(".") @doc """ Equ...
21.693694
98
0.495847
e9159af97ee5369b31b7198b528dc6895b83bcb3
328
exs
Elixir
test/integration/version_test.exs
egze/credo
59ee836e9ee07c478421df3078a56230a86c3860
[ "MIT" ]
null
null
null
test/integration/version_test.exs
egze/credo
59ee836e9ee07c478421df3078a56230a86c3860
[ "MIT" ]
null
null
null
test/integration/version_test.exs
egze/credo
59ee836e9ee07c478421df3078a56230a86c3860
[ "MIT" ]
1
2020-06-28T00:36:07.000Z
2020-06-28T00:36:07.000Z
defmodule Credo.VersionTest do use Credo.Test.Case @moduletag slow: :integration test "it should NOT report issues on integration_test_config fixture" do exec = Credo.run(["--version"]) issues = Credo.Execution.get_issues(exec) assert exec.cli_options.command == "version" assert issues == [] ...
23.428571
74
0.713415
e9159c2d579a2e1ccbf89f428962fe5931057032
1,417
ex
Elixir
lib/brando/supervisor.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
lib/brando/supervisor.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
lib/brando/supervisor.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule Brando.Supervisor do @moduledoc """ Main Brando supervisor. Looks after our cache. """ use Supervisor @spec start_link(any) :: :ignore | {:error, any} | {:ok, pid} def start_link(_) do Supervisor.start_link(__MODULE__, [], name: __MODULE__) end def init([]) do children = [ %...
28.34
72
0.56669
e915a497f89a1dded9daf6c1196b1a526d97f556
17,814
exs
Elixir
test/telemetry_metrics_test.exs
LostKobrakai/telemetry_metrics
0dcf0b8e0efba6b1cf3d4a9054bdd88236cd1cd8
[ "Apache-2.0" ]
null
null
null
test/telemetry_metrics_test.exs
LostKobrakai/telemetry_metrics
0dcf0b8e0efba6b1cf3d4a9054bdd88236cd1cd8
[ "Apache-2.0" ]
null
null
null
test/telemetry_metrics_test.exs
LostKobrakai/telemetry_metrics
0dcf0b8e0efba6b1cf3d4a9054bdd88236cd1cd8
[ "Apache-2.0" ]
null
null
null
defmodule Telemetry.MetricsTest do use ExUnit.Case alias Telemetry.Metrics # Tests common to all metric types. for {metric_type, extra_options} <- [ counter: [], sum: [], last_value: [], summary: [], distribution: [buckets: [0, 100, 200]] ] do describe "#{metr...
34.523256
110
0.5892
e915a6404fcf9eb4c06321ff1c8c7d03e545a8dd
2,199
ex
Elixir
clients/content/lib/google_api/content/v2/model/orderinvoices_custom_batch_request_entry_create_refund_invoice_return_option.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orderinvoices_custom_batch_request_entry_create_refund_invoice_return_option.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orderinvoices_custom_batch_request_entry_create_refund_invoice_return_option.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...
30.541667
107
0.716235
e915e0d2aeb479d03061db34e29fb98941c86bf0
4,097
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/probe.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/probe.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/probe.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
60.25
321
0.733708
e91602f3be1ca778292c5a9d2b2eb8cde11fb8ab
1,958
exs
Elixir
app/config/prod.exs
finalclass/ubg5
237c51f4a54668cc8164382a3895d9dcf07ae6e0
[ "MIT" ]
null
null
null
app/config/prod.exs
finalclass/ubg5
237c51f4a54668cc8164382a3895d9dcf07ae6e0
[ "MIT" ]
2
2021-03-09T13:44:12.000Z
2021-05-10T05:02:52.000Z
app/config/prod.exs
finalclass/ubg5
237c51f4a54668cc8164382a3895d9dcf07ae6e0
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
34.964286
66
0.71093
e916171d6a7bd9a79f4eda24e55e38ebf31186bd
2,182
exs
Elixir
mix.exs
kianmeng/cocktail
11c84da3dd55111e1ee3110cbbe1d5889272c82b
[ "MIT" ]
null
null
null
mix.exs
kianmeng/cocktail
11c84da3dd55111e1ee3110cbbe1d5889272c82b
[ "MIT" ]
null
null
null
mix.exs
kianmeng/cocktail
11c84da3dd55111e1ee3110cbbe1d5889272c82b
[ "MIT" ]
null
null
null
defmodule Cocktail.Mixfile do use Mix.Project @source_url "https://github.com/peek-travel/cocktail" @version "0.10.0" def project do [ app: :cocktail, name: "Cocktail", version: @version, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), package: package(), ...
24.244444
82
0.552704
e9161a28ce3fc82e5daa130a2df627e9e2a00c6d
2,760
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/firewall_rule.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/firewall_rule.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/firewall_rule.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...
49.285714
592
0.725
e9162d64f877edea91dcc76b7a2261914387df1e
199
ex
Elixir
lib/phone/ua.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/ua.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/ua.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
defmodule Phone.UA do @moduledoc false use Helper.Country def regex, do: ~r/^(380)()(.{9})/ def country, do: "Ukraine" def a2, do: "UA" def a3, do: "UKR" matcher :regex, ["380"] end
15.307692
35
0.59799
e9164c3401d5c0b674e0057d24ee6152c324db8a
104
exs
Elixir
test/checkins_test.exs
NSFD/slacktapped
b4dc6317e4dff5a1550e10f8fcbc51079db03bcc
[ "MIT" ]
12
2016-09-12T21:51:03.000Z
2020-01-12T18:05:51.000Z
test/checkins_test.exs
NSFD/slacktapped
b4dc6317e4dff5a1550e10f8fcbc51079db03bcc
[ "MIT" ]
2
2017-02-13T08:17:13.000Z
2017-04-21T15:01:36.000Z
test/checkins_test.exs
NSFD/slacktapped
b4dc6317e4dff5a1550e10f8fcbc51079db03bcc
[ "MIT" ]
4
2016-10-22T19:38:05.000Z
2018-12-20T17:18:47.000Z
defmodule SlacktappedCheckinsTest do use ExUnit.Case, async: true doctest Slacktapped.Checkins end
17.333333
36
0.817308
e91666ef77558c6615d8ba9d53e78e928b2a2b18
275
ex
Elixir
charts/lib/charts/bar_chart/bar_chart.ex
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
charts/lib/charts/bar_chart/bar_chart.ex
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
charts/lib/charts/bar_chart/bar_chart.ex
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
defprotocol Charts.BarChart do @spec bars(Charts.chart() | Charts.BarChart.Dataset.t()) :: list(Charts.BarChart.Bar.t()) @doc """ Returns a list of the `Charts.BarChart.Bar.t()` that should be rendered by the chart display adapter """ def bars(chart) end
30.555556
102
0.68
e9166795996fb1f27e91a4cd2305c3a63f17c9e8
1,152
ex
Elixir
lib/check/module_alias.ex
smaximov/credo_contrib
dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8
[ "ISC" ]
9
2019-12-29T05:10:48.000Z
2022-03-14T17:12:23.000Z
lib/check/module_alias.ex
smaximov/credo_contrib
dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8
[ "ISC" ]
6
2019-05-09T13:32:26.000Z
2021-03-31T15:36:35.000Z
lib/check/module_alias.ex
smaximov/credo_contrib
dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8
[ "ISC" ]
5
2019-03-16T17:09:42.000Z
2021-03-09T14:23:24.000Z
defmodule CredoContrib.Check.ModuleAlias do @moduledoc """ `alias __MODULE__` and `@foo __MODULE__` are not allowed https://github.com/christopheradams/elixir_style_guide#module-pseudo-variable """ @explanation [ check: @moduledoc ] use Credo.Check, base_priority: :high, category: :readability d...
27.428571
94
0.671875
e916abfa67274f12af6e74fd840fc7e73835488a
1,976
exs
Elixir
test/math/math_power_test.exs
kianmeng/cldr_utils
e8353e473709c74fe3362a987cd615a4cd30f55c
[ "Apache-2.0" ]
6
2019-07-19T17:49:11.000Z
2021-03-20T14:38:28.000Z
test/math/math_power_test.exs
kianmeng/cldr_utils
e8353e473709c74fe3362a987cd615a4cd30f55c
[ "Apache-2.0" ]
5
2020-01-28T06:11:50.000Z
2022-03-22T01:31:16.000Z
test/math/math_power_test.exs
kianmeng/cldr_utils
e8353e473709c74fe3362a987cd615a4cd30f55c
[ "Apache-2.0" ]
3
2020-01-28T06:08:42.000Z
2020-10-20T13:40:19.000Z
defmodule Math.Power.Test do use ExUnit.Case, async: true @significance 15 # On my machine, iterations over 12 bring bad karma @iterations 12 Enum.each(-10..@iterations, fn n -> test "Confirm Cldr.Math.power(5, n) for #{inspect(n)} returns the same result as :math.pow" do p = Cldr.Math.po...
29.058824
114
0.624494
e916fda801903a6cf15b9b16963eeffafd6fe160
938
ex
Elixir
lib/absinthe/phase/schema/validation/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/phase/schema/validation/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/phase/schema/validation/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Phase.Schema.Validation.Result do @moduledoc false alias Absinthe.{Blueprint, Phase} use Absinthe.Phase @doc """ Run the validation. """ @spec run(Blueprint.t(), Keyword.t()) :: Phase.result_t() def run(input, _opts) do {input, errors} = Blueprint.prewalk(input, [], &handle_nod...
24.051282
66
0.621535
e9170165c10bd4573bbc2f3f13110642089dfe4d
1,674
ex
Elixir
lib/parsers/jwt.ex
heyorbit/elixir-server-utils
32643ecf4042a110495ffb2eaee3016aa5276d5a
[ "MIT" ]
null
null
null
lib/parsers/jwt.ex
heyorbit/elixir-server-utils
32643ecf4042a110495ffb2eaee3016aa5276d5a
[ "MIT" ]
null
null
null
lib/parsers/jwt.ex
heyorbit/elixir-server-utils
32643ecf4042a110495ffb2eaee3016aa5276d5a
[ "MIT" ]
null
null
null
defmodule ServerUtils.Parsers.Jwt do @moduledoc """ JWT parser to get claim values. """ import Joken @doc """ Gets a claim value using the claim key from a JWT. Optional this call can fail if `error_if_blank` is provided. ## Examples iex> #{__MODULE__}.get_claim("example_jwt", "username") ...
24.26087
113
0.587216
e91705c97d55020cebec83d7e120bb55e5c26229
2,028
exs
Elixir
config/prod.exs
davidgrupp/Bucket-Island
674bf0f8029a22b56fc245d8927561dca2d3cd0a
[ "Apache-2.0" ]
1
2017-09-03T17:41:28.000Z
2017-09-03T17:41:28.000Z
config/prod.exs
davidgrupp/Bucket-Island
674bf0f8029a22b56fc245d8927561dca2d3cd0a
[ "Apache-2.0" ]
null
null
null
config/prod.exs
davidgrupp/Bucket-Island
674bf0f8029a22b56fc245d8927561dca2d3cd0a
[ "Apache-2.0" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
32.709677
67
0.718935
e9174a617fe32457b37498a0d9c5939b3d08c24f
1,748
ex
Elixir
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_error.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_error.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_error.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 &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...
36.416667
136
0.762014
e9175c918fe634268be30f58ee0653d174dc1bde
11,004
exs
Elixir
apps/engine/test/engine/ethereum/event/coordinator/core_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
4
2020-11-30T17:38:57.000Z
2021-01-23T21:29:41.000Z
apps/engine/test/engine/ethereum/event/coordinator/core_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
24
2020-11-30T17:32:48.000Z
2021-02-22T06:25:22.000Z
apps/engine/test/engine/ethereum/event/coordinator/core_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
null
null
null
defmodule Engine.Ethereum.Event.Coordinator.CoreTest do use ExUnit.Case, async: true alias Engine.Ethereum.Event.Coordinator.Core @pid %{ depositor: :c.pid(0, 1, 0), exiter: :c.pid(0, 2, 0), depositor_finality: :c.pid(0, 3, 0), exiter_finality: :c.pid(0, 4, 0), getter: :c.pid(0, 5, 0), f...
46.235294
119
0.685205
e9178eb0ba476b124039e9fe6c087038aea6006a
4,740
exs
Elixir
test/updater/routes_test.exs
ityonemo/Exaggerate
9ae2ec85de0c1e7e7e5baed6d880fc139d87b255
[ "MIT" ]
null
null
null
test/updater/routes_test.exs
ityonemo/Exaggerate
9ae2ec85de0c1e7e7e5baed6d880fc139d87b255
[ "MIT" ]
3
2019-09-10T01:44:19.000Z
2019-10-24T16:42:03.000Z
test/updater/routes_test.exs
ityonemo/Exaggerate
9ae2ec85de0c1e7e7e5baed6d880fc139d87b255
[ "MIT" ]
null
null
null
defmodule ExaggerateTest.Updater.RoutesTest do use ExUnit.Case @moduletag :updater @updated_routes Jason.decode!(""" { "openapi": "3.0", "info": { "title": "api", "version": "0.1.0" }, "consumes": [ "application/json" ], "basePath": "/", "produces": [ "appli...
20.25641
109
0.569831
e91794040e589de4d46cc9953764c04f6f7a8d57
447
exs
Elixir
test/websheets_web/views/error_view_test.exs
mpope9/Websheets
9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc
[ "Apache-2.0" ]
null
null
null
test/websheets_web/views/error_view_test.exs
mpope9/Websheets
9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc
[ "Apache-2.0" ]
2
2018-12-23T03:51:26.000Z
2018-12-23T04:53:18.000Z
test/websheets_web/views/error_view_test.exs
mpope9/Websheets
9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc
[ "Apache-2.0" ]
null
null
null
defmodule WebsheetsWeb.ErrorViewTest do use WebsheetsWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(WebsheetsWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 50...
26.294118
70
0.702461
e9179dd4b117ef8384a6d41d414759944bf81c1b
5,894
exs
Elixir
test/groupher_server_web/query/accounts/achievement_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/accounts/achievement_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/accounts/achievement_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.Account.Achievement do use GroupherServer.TestTools import Helper.Utils, only: [get_config: 2] alias GroupherServer.{Accounts, CMS} alias CMS.Model.Post alias Helper.ORM @follow_weight get_config(:general, :user_achieve_follow_weight) @collect_weight get_config(:gene...
30.53886
98
0.617238
e917c55b609ccdcf6ee4e434bbad0810fed2e48a
7,563
ex
Elixir
lib/ex_admin/themes/admin_lte2/index.ex
landonwilkins/ex_admin
bc6fa5c5e82add16b90e92f9abf388f5b04f67ec
[ "MIT" ]
1
2017-11-09T13:17:19.000Z
2017-11-09T13:17:19.000Z
lib/ex_admin/themes/admin_lte2/index.ex
landonwilkins/ex_admin
bc6fa5c5e82add16b90e92f9abf388f5b04f67ec
[ "MIT" ]
1
2021-07-08T17:24:01.000Z
2021-11-02T09:49:33.000Z
lib/ex_admin/themes/admin_lte2/index.ex
landonwilkins/ex_admin
bc6fa5c5e82add16b90e92f9abf388f5b04f67ec
[ "MIT" ]
2
2020-01-14T21:10:46.000Z
2021-07-07T16:36:49.000Z
defmodule ExAdmin.Theme.AdminLte2.Index do @moduledoc false import Kernel, except: [div: 2] import Xain import ExAdmin.Utils import ExAdmin.Index require Integer import ExAdmin.Helpers import ExAdmin.Gettext alias ExAdmin.Schema def wrap_index_grid(fun) do div ".box", style: "min-height: 400px"...
27.402174
98
0.519503
e918052d4d460bd15600e14bc8c2565723d987ad
210
ex
Elixir
lib/hl7/2.3.1/datatypes/vh.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/datatypes/vh.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/datatypes/vh.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_3_1.DataTypes.Vh do @moduledoc false use HL7.DataType, fields: [ start_day_range: nil, end_day_range: nil, start_hour_range: nil, end_hour_range: nil ] end
17.5
36
0.657143
e91853be61df12b5273d17a9985bd47a6b098b0f
13,895
ex
Elixir
lib/chart/gantt.ex
zdenal/contex
6dfa0507ffd79573e5308a83bc6c9d025b6c23ad
[ "MIT" ]
455
2020-01-15T22:21:40.000Z
2022-03-29T23:20:45.000Z
lib/chart/gantt.ex
zdenal/contex
6dfa0507ffd79573e5308a83bc6c9d025b6c23ad
[ "MIT" ]
48
2020-02-10T06:19:17.000Z
2022-03-29T03:02:52.000Z
lib/chart/gantt.ex
zdenal/contex
6dfa0507ffd79573e5308a83bc6c9d025b6c23ad
[ "MIT" ]
30
2020-01-15T22:21:35.000Z
2022-03-10T18:11:51.000Z
defmodule Contex.GanttChart do @moduledoc """ Generates a Gantt Chart. Bars are drawn for each task covering the start and end time for each task. In addition, tasks can be grouped into categories which have a different coloured background - this is useful for showing projects that are in major phases. Th...
33.162291
137
0.672256
e9186d945462f9545f1976b6991d96799f980d0d
1,068
ex
Elixir
example/ex_config_simple/lib/ex_config_simple.ex
sega-yarkin/ex_config
bcb160c2414b08a59a5a5253bee0a8fee296cc3e
[ "MIT" ]
null
null
null
example/ex_config_simple/lib/ex_config_simple.ex
sega-yarkin/ex_config
bcb160c2414b08a59a5a5253bee0a8fee296cc3e
[ "MIT" ]
null
null
null
example/ex_config_simple/lib/ex_config_simple.ex
sega-yarkin/ex_config
bcb160c2414b08a59a5a5253bee0a8fee296cc3e
[ "MIT" ]
null
null
null
defmodule ExConfigSimple do use Application alias ExConfigSimple.Config def start(_type, _args) do Supervisor.start_link([], strategy: :one_for_one, name: __MODULE__) end # Get various parameters def test() do [ Config.auth_enabled, Config.session_prefix, ...
22.723404
59
0.639513
e918920f6429a6c70a83146e9b2660aa02749544
212
exs
Elixir
test/grizzly/zwave/commands/no_operation_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
test/grizzly/zwave/commands/no_operation_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
test/grizzly/zwave/commands/no_operation_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.NoOperationTest do use ExUnit.Case, async: true alias Grizzly.ZWave.Commands.NoOperation test "creates the command" do {:ok, _command} = NoOperation.new([]) end end
21.2
51
0.740566
e918b3cfefc702c54eadb1bf223c33affb07f3d0
713
exs
Elixir
example/config/dev.exs
axelson/phoenix_gen_socket_client
4a9aa4e7d36777e157f0156f8081aab50d5b5c14
[ "MIT" ]
169
2016-04-08T10:47:43.000Z
2021-01-19T15:37:34.000Z
example/config/dev.exs
axelson/phoenix_gen_socket_client
4a9aa4e7d36777e157f0156f8081aab50d5b5c14
[ "MIT" ]
36
2016-04-07T13:28:02.000Z
2021-01-27T08:16:35.000Z
example/config/dev.exs
axelson/phoenix_gen_socket_client
4a9aa4e7d36777e157f0156f8081aab50d5b5c14
[ "MIT" ]
42
2016-04-08T14:31:33.000Z
2021-01-21T09:24:51.000Z
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 :example, ExampleWeb.Endpoint, http: [port: 40...
31
60
0.760168
e918c92d08e6c0c28eb43200abfc290a60976d3d
6,791
ex
Elixir
lib/gen_registry.ex
LaudateCorpus1/gen_registry
74246ae4e4d9b3c330bacc529c9dd32851378446
[ "MIT" ]
39
2020-04-11T07:21:23.000Z
2022-02-03T13:17:59.000Z
lib/gen_registry.ex
LaudateCorpus1/gen_registry
74246ae4e4d9b3c330bacc529c9dd32851378446
[ "MIT" ]
2
2019-06-21T17:47:11.000Z
2019-06-21T19:10:35.000Z
lib/gen_registry.ex
LaudateCorpus1/gen_registry
74246ae4e4d9b3c330bacc529c9dd32851378446
[ "MIT" ]
7
2021-01-19T00:00:10.000Z
2022-03-17T09:51:10.000Z
defmodule GenRegistry do @moduledoc """ GenRegistry provides a `Registry` like interface for managing processes. """ @behaviour GenRegistry.Behaviour use GenServer alias :ets, as: ETS alias GenRegistry.Types defstruct [:worker_module, :worker_type, :workers] @typedoc """ GenRegistry State. -...
26.527344
111
0.623325
e918e1bdea29a56f814cda37455452e0f18a4c07
1,238
exs
Elixir
config/dev.exs
dukhniav/plausible
dfcbf9cc98637721698b2046eee205b66b204acb
[ "MIT" ]
null
null
null
config/dev.exs
dukhniav/plausible
dfcbf9cc98637721698b2046eee205b66b204acb
[ "MIT" ]
null
null
null
config/dev.exs
dukhniav/plausible
dfcbf9cc98637721698b2046eee205b66b204acb
[ "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 webpack to recompile .js and .css sources. config :plausible, PlausibleWeb.Endpoint, http: [port: ...
25.265306
56
0.67609
e918eb2c5fea2f4afbf98a1187d916402466448e
1,286
exs
Elixir
bench/witchcraft/ord/float_bench.exs
doma-engineering/witchcraft
c84fa6b2146e7de745105e21f672ed413df93ad3
[ "MIT" ]
454
2019-06-05T22:56:45.000Z
2022-03-27T23:03:02.000Z
bench/witchcraft/ord/float_bench.exs
doma-engineering/witchcraft
c84fa6b2146e7de745105e21f672ed413df93ad3
[ "MIT" ]
26
2019-07-08T09:29:08.000Z
2022-02-04T02:40:48.000Z
bench/witchcraft/ord/float_bench.exs
doma-engineering/witchcraft
c84fa6b2146e7de745105e21f672ed413df93ad3
[ "MIT" ]
36
2019-06-25T17:45:27.000Z
2022-03-21T01:53:42.000Z
defmodule Witchcraft.Ord.FloatBench do use Benchfella use Witchcraft.Ord ######### # Setup # ######### # ---------- # # Data Types # # ---------- # @float_a 10.7218 @float_b -45.09271 ########## # Kernel # ########## bench "Kernel.>/2", do: Kernel.>(@float_a, @float_b) bench "Kernel....
21.79661
66
0.532659
e918f0c57a917b2e003c54f358dc7f65512414ae
13,085
ex
Elixir
lib/aws/generated/synthetics.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/synthetics.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/synthetics.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Synthetics do @moduledoc """ Amazon CloudWatch Synthetics You can use Amazon CloudWatch Synthetics to continually monitor your services. You can create and manage *canaries*, which are m...
30.501166
196
0.684677
e9194a090633e31c64cbc4adc03f06bcba29a149
1,270
exs
Elixir
mix.exs
juanpabloaj/binance.ex
69e66f3560f4bc93ea36cdcd5869fc04d17d7ab2
[ "MIT" ]
null
null
null
mix.exs
juanpabloaj/binance.ex
69e66f3560f4bc93ea36cdcd5869fc04d17d7ab2
[ "MIT" ]
null
null
null
mix.exs
juanpabloaj/binance.ex
69e66f3560f4bc93ea36cdcd5869fc04d17d7ab2
[ "MIT" ]
null
null
null
defmodule Binance.MixProject do use Mix.Project def project do [ app: :binance, version: "1.0.1", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), preferred_cli_env: [ vcr: :test, ...
21.896552
65
0.524409
e919543c689b8cb677ae8b9b8ab5f4dd96446943
135
ex
Elixir
lib/absinthe_subscriptions/repo.ex
egjimenezg/absinthe_subscriptions
49d05d9ce141c9de5d1cfabe21452d2bde8c49d9
[ "Apache-2.0" ]
null
null
null
lib/absinthe_subscriptions/repo.ex
egjimenezg/absinthe_subscriptions
49d05d9ce141c9de5d1cfabe21452d2bde8c49d9
[ "Apache-2.0" ]
null
null
null
lib/absinthe_subscriptions/repo.ex
egjimenezg/absinthe_subscriptions
49d05d9ce141c9de5d1cfabe21452d2bde8c49d9
[ "Apache-2.0" ]
null
null
null
defmodule AbsintheSubscriptions.Repo do use Ecto.Repo, otp_app: :absinthe_subscriptions, adapter: Ecto.Adapters.Postgres end
22.5
39
0.785185
e91968f302b6e89432161668beb6fe4d5f8f3677
511
exs
Elixir
arena/phoenix_elixir/test/models/fighter_test.exs
Jesterovskiy/api-fight
2f23859eb7d0aa77e93bfe33aa9d05dd3c875854
[ "MIT" ]
null
null
null
arena/phoenix_elixir/test/models/fighter_test.exs
Jesterovskiy/api-fight
2f23859eb7d0aa77e93bfe33aa9d05dd3c875854
[ "MIT" ]
null
null
null
arena/phoenix_elixir/test/models/fighter_test.exs
Jesterovskiy/api-fight
2f23859eb7d0aa77e93bfe33aa9d05dd3c875854
[ "MIT" ]
null
null
null
defmodule PhoenixElixir.FighterTest do use PhoenixElixir.ModelCase alias PhoenixElixir.Fighter @valid_attrs %{klass: "some content", lvl: 42, name: "some content", race: "some content", wins: 42} @invalid_attrs %{} test "changeset with valid attributes" do changeset = Fighter.changeset(%Fighter{}, @val...
26.894737
102
0.729941
e919862b82b0ffb2fc1bab1eaf813a77f5980d5c
1,440
ex
Elixir
lib/report.ex
thomasvolk/stressman
7c1b62d262ea8f2c38854ce053fe2888aaacd5b6
[ "Apache-2.0" ]
null
null
null
lib/report.ex
thomasvolk/stressman
7c1b62d262ea8f2c38854ce053fe2888aaacd5b6
[ "Apache-2.0" ]
null
null
null
lib/report.ex
thomasvolk/stressman
7c1b62d262ea8f2c38854ce053fe2888aaacd5b6
[ "Apache-2.0" ]
null
null
null
defmodule StressMan.Report do def create([head|rest]) do create(rest, head) end def create({success_count, error_count, duration}) do total_count = success_count + error_count average_request_duration = case total_count do 0 -> 0 _ -> duration / success_count end throughput = case...
27.169811
94
0.638889
e9199df288f727d979f1da8d96310bb0fbd507c0
3,257
ex
Elixir
lib/xml/decoder.ex
goravbhootra/braintree-elixir
53c10216125c13c05a19edf1dc1c98a818c46e09
[ "MIT" ]
null
null
null
lib/xml/decoder.ex
goravbhootra/braintree-elixir
53c10216125c13c05a19edf1dc1c98a818c46e09
[ "MIT" ]
null
null
null
lib/xml/decoder.ex
goravbhootra/braintree-elixir
53c10216125c13c05a19edf1dc1c98a818c46e09
[ "MIT" ]
null
null
null
defmodule Braintree.XML.Decoder do @moduledoc """ XML dumping tailored to encoding params sent by Braintree. """ @type xml :: binary import Braintree.Util, only: [underscorize: 1] import Braintree.XML.Entity, only: [decode: 1] @doc ~S""" Converts an XML document, or fragment, into a map. Type annotat...
29.080357
91
0.583666
e919a435180cca25df0af0c022e155caa1c0009f
65,476
ex
Elixir
lib/codes/codes_o31.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_o31.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_o31.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_O31 do alias IcdCode.ICDCode def _O3100X0 do %ICDCode{full_code: "O3100X0", category_code: "O31", short_code: "00X0", full_name: "Papyraceous fetus, unspecified trimester, not applicable or unspecified", short_name: "Papyraceous fetus, unspe...
51.677979
153
0.684938
e919b69dff1ee19e672b758c8d8c0333b495a018
843
exs
Elixir
priv/repo/migrations/20201201041132_add_case_investigation_status_generated_column.exs
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
priv/repo/migrations/20201201041132_add_case_investigation_status_generated_column.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
priv/repo/migrations/20201201041132_add_case_investigation_status_generated_column.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule Epicenter.Repo.Migrations.AddCaseInvestigationStatusGeneratedColumn do use Ecto.Migration def up do execute(""" ALTER TABLE case_investigations ADD COLUMN interview_status TEXT GENERATED ALWAYS AS ( CASE WHEN interview_started_at IS NULL AND interview_completed_at IS NULL AND interv...
35.125
137
0.771056
e91a1278ace50f1947a9fbedeb1e4e456cdc7f09
233
ex
Elixir
lib/parseus/parsers/date_parser.ex
surgeventures/parseus
3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2
[ "MIT" ]
2
2017-10-18T17:53:43.000Z
2020-05-01T23:31:36.000Z
lib/parseus/parsers/date_parser.ex
surgeventures/parseus
3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2
[ "MIT" ]
null
null
null
lib/parseus/parsers/date_parser.ex
surgeventures/parseus
3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2
[ "MIT" ]
null
null
null
defmodule Parseus.DateParser do @moduledoc false def call(input) when is_binary(input) do case Date.from_iso8601(input) do {:ok, date} -> {:ok, date} {:error, _reason} -> :error end end end
17.923077
42
0.596567
e91a1349ca43e0b74cdaa3d9887e511a48698c51
7,051
exs
Elixir
test/hangman/strategy_test.exs
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
1
2016-12-19T00:10:34.000Z
2016-12-19T00:10:34.000Z
test/hangman/strategy_test.exs
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
test/hangman/strategy_test.exs
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
defmodule Hangman.Letter.Strategy.Test do use ExUnit.Case, async: true alias Hangman.{Letter.Strategy, Pass, Counter} describe "Strategy retrieval common for a large pass" do setup :setup_large_pass test "self-selecting auto mode", %{letter: letter, pass: pass} do # Choose guess strategy = ...
27.015326
110
0.515955
e91a13a9f7e0f80e1a82eaaa08d642fc82970c24
119
ex
Elixir
lib/open_pantry/admin/facility.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
41
2017-10-04T00:33:46.000Z
2021-04-09T01:33:34.000Z
lib/open_pantry/admin/facility.ex
openpantry/open_pantry
27d898a65dd6f44b325f48d41bc448bb486d9c6f
[ "MIT" ]
74
2017-09-20T03:36:17.000Z
2018-11-20T20:46:16.000Z
lib/open_pantry/admin/facility.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
12
2017-10-04T10:02:49.000Z
2021-12-28T22:57:20.000Z
defmodule OpenPantry.ExAdmin.Facility do use ExAdmin.Register register_resource OpenPantry.Facility do end end
14.875
42
0.815126
e91a294f918f36d70dda06b59c4db68d67471bc2
2,019
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/list_negative_keywords_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/list_negative_keywords_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/display_video/lib/google_api/display_video/v1/model/list_negative_keywords_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.38
242
0.75681
e91a3e2bbd8316be1466da978a6ccdeee72e8008
493
ex
Elixir
lib/maru/entity/utils.ex
hundio/maru_entity
077654182222d17ea587a94db29bb00ae0cfc8a8
[ "WTFPL" ]
18
2017-01-06T14:26:16.000Z
2020-04-02T09:11:09.000Z
lib/maru/entity/utils.ex
hundio/maru_entity
077654182222d17ea587a94db29bb00ae0cfc8a8
[ "WTFPL" ]
21
2017-02-03T20:31:32.000Z
2021-12-07T07:39:44.000Z
lib/maru/entity/utils.ex
hundio/maru_entity
077654182222d17ea587a94db29bb00ae0cfc8a8
[ "WTFPL" ]
9
2017-02-03T19:32:50.000Z
2021-11-19T23:07:48.000Z
defmodule Maru.Entity.Utils do @moduledoc false @doc """ Check whether the given attribute match for extended. """ @spec attr_match?(list(atom), Keyword.t()) :: boolean def attr_match?([], _), do: false def attr_match?([h | _], [h | _]), do: true def attr_match?([h], [{h, _} | _]), do: true def attr_...
32.866667
73
0.622718
e91a781e9838bbbc94afd3bda9fa079a5c109038
3,422
exs
Elixir
test/readability_http_test.exs
willrax/readability
46752056deaf2544a067d9ae536c097a8f218bdb
[ "Apache-2.0" ]
null
null
null
test/readability_http_test.exs
willrax/readability
46752056deaf2544a067d9ae536c097a8f218bdb
[ "Apache-2.0" ]
null
null
null
test/readability_http_test.exs
willrax/readability
46752056deaf2544a067d9ae536c097a8f218bdb
[ "Apache-2.0" ]
null
null
null
defmodule ReadabilityHttpTest do use ExUnit.Case import Mock require IEx test "blank response is parsed as plain text" do url = "https://tools.ietf.org/rfc/rfc2616.txt" content = TestHelper.read_fixture("rfc2616.txt") response = {:ok, %HTTPoison.Response{status_code: 200, headers: [], body: content...
31.685185
91
0.637054
e91a7c9d0239d5972a2a333cc3d0ab01af456fa2
5,964
ex
Elixir
harbor/lib/harbor/room.ex
miapolis/port7
7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74
[ "MIT" ]
null
null
null
harbor/lib/harbor/room.ex
miapolis/port7
7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74
[ "MIT" ]
null
null
null
harbor/lib/harbor/room.ex
miapolis/port7
7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74
[ "MIT" ]
null
null
null
defmodule Harbor.Room do alias Anchorage.PubSub alias Harbor.Peer @max_room_size 100 def max_room_size, do: @max_room_size def create_room( room_name, is_private, game ) do id = Ecto.UUID.generate() code = gen_unique_code() room = %Jetty.Room{ id: id, n...
25.818182
85
0.61452
e91aebe8e122f306022b77cea656da9209f07cea
4,943
ex
Elixir
lib/hammox/type_match_error.ex
surgeventures/hammox
932005384ede5a4f13db050965ee5d2c95f9a3b5
[ "Apache-2.0" ]
null
null
null
lib/hammox/type_match_error.ex
surgeventures/hammox
932005384ede5a4f13db050965ee5d2c95f9a3b5
[ "Apache-2.0" ]
null
null
null
lib/hammox/type_match_error.ex
surgeventures/hammox
932005384ede5a4f13db050965ee5d2c95f9a3b5
[ "Apache-2.0" ]
null
null
null
defmodule Hammox.TypeMatchError do @moduledoc false defexception [:message] alias Hammox.Utils @impl true def exception({:error, reasons}) do %__MODULE__{ message: "\n" <> message_string(reasons) } end defp human_reason({:arg_type_mismatch, index, value, type}) do "#{Ordinal.ordinaliz...
32.097403
109
0.6842
e91b36f9f03c7e10221ed1dc26ebbc44f7354cdd
24,192
exs
Elixir
lib/elixir/test/elixir/task_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
1
2019-04-29T12:35:51.000Z
2019-04-29T12:35:51.000Z
lib/elixir/test/elixir/task_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/elixir/test/elixir/task_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule TaskTest do use ExUnit.Case doctest Task @moduletag :capture_log def wait_and_send(caller, atom) do send(caller, :ready) receive do: (true -> true) send(caller, atom) end defp create_task_in_other_process do caller = self() spawn...
31.957728
100
0.581969
e91b43e0f89d2f528dea3a049b6010b6ea4db6ee
3,919
exs
Elixir
mix.exs
rands0n/credo
c787a726ac7a521e21da5a098bd966af8862beb6
[ "MIT" ]
1
2021-12-27T01:30:05.000Z
2021-12-27T01:30:05.000Z
mix.exs
rands0n/credo
c787a726ac7a521e21da5a098bd966af8862beb6
[ "MIT" ]
null
null
null
mix.exs
rands0n/credo
c787a726ac7a521e21da5a098bd966af8862beb6
[ "MIT" ]
null
null
null
defmodule Credo.Mixfile do use Mix.Project @version "1.6.1" def project do [ app: :credo, version: @version, elixir: ">= 1.7.0", escript: [main_module: Credo.CLI], build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), test_cove...
26.47973
97
0.578209
e91b573522700b3ae270994300443c4d511003eb
1,498
ex
Elixir
lib/user_service_web/endpoint.ex
sb8244/pow_starter_pack
82e16c3e4139ecc85295078b54024f58f95ab794
[ "MIT" ]
13
2020-03-31T21:45:40.000Z
2021-02-13T12:17:22.000Z
lib/user_service_web/endpoint.ex
sb8244/pow_starter_pack
82e16c3e4139ecc85295078b54024f58f95ab794
[ "MIT" ]
1
2021-03-10T12:57:21.000Z
2021-03-10T12:57:21.000Z
lib/user_service_web/endpoint.ex
sb8244/pow_starter_pack
82e16c3e4139ecc85295078b54024f58f95ab794
[ "MIT" ]
1
2020-04-28T15:41:56.000Z
2020-04-28T15:41:56.000Z
defmodule UserServiceWeb.Endpoint do use Phoenix.Endpoint, otp_app: :user_service # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_...
28.264151
69
0.721629
e91b6f65f2cfd49cf058d42368753f07f38465a5
6,409
ex
Elixir
lib/militerm/services/verbs.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
6
2017-06-16T10:26:35.000Z
2021-04-07T15:01:00.000Z
lib/militerm/services/verbs.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
2
2020-04-14T02:17:46.000Z
2021-03-10T11:09:05.000Z
lib/militerm/services/verbs.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
null
null
null
defmodule Militerm.Services.Verbs do @moduledoc """ The verb service tracks syntaxes for verbs. """ use GenServer alias Militerm.Config def start_link(_) do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def child_spec(opts \\ []) do %{ id: __MODULE__, start: {__MODUL...
25.842742
81
0.520518
e91b9ec50c81890718cf866407c88890686d9d8a
1,747
ex
Elixir
test/support/storage_case.ex
kaikuchn/eventstore
cfe77cb22860526ef3591ba43649ceffc3175259
[ "MIT" ]
null
null
null
test/support/storage_case.ex
kaikuchn/eventstore
cfe77cb22860526ef3591ba43649ceffc3175259
[ "MIT" ]
null
null
null
test/support/storage_case.ex
kaikuchn/eventstore
cfe77cb22860526ef3591ba43649ceffc3175259
[ "MIT" ]
null
null
null
defmodule EventStore.StorageCase do use ExUnit.CaseTemplate alias EventStore.Config alias EventStore.Registration alias EventStore.Serializer alias EventStore.Storage @event_store TestEventStore setup_all do config = Config.parsed(@event_store, :eventstore) registry = Registration.registry(@eve...
25.318841
88
0.722381
e91bae325de8ce3f9ed1519e56ea5c6f844b43b0
7,326
ex
Elixir
lib/challenge_gov/gov_delivery/implementation.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
lib/challenge_gov/gov_delivery/implementation.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
lib/challenge_gov/gov_delivery/implementation.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule ChallengeGov.GovDelivery.Implementation do @moduledoc """ Implementation details for GovDelivery We never actually care about the return values Everything is best effort to maintain the GovDelivery state """ @behaviour ChallengeGov.GovDelivery import SweetXml import Phoenix.View alias C...
22.2
87
0.566749
e91bc0fa6ee16cc34f44c2524b5b3fbfeb12fae2
4,129
ex
Elixir
lib/mix/ecto.ex
DavidAlphaFox/ecto
a3eae38d1d05c440893f724c2f04a8332e32d7ac
[ "Apache-2.0" ]
1
2019-05-07T15:05:52.000Z
2019-05-07T15:05:52.000Z
lib/mix/ecto.ex
DavidAlphaFox/ecto
a3eae38d1d05c440893f724c2f04a8332e32d7ac
[ "Apache-2.0" ]
null
null
null
lib/mix/ecto.ex
DavidAlphaFox/ecto
a3eae38d1d05c440893f724c2f04a8332e32d7ac
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Ecto do # Conveniences for writing Mix.Tasks in Ecto. @moduledoc false @doc """ Parses the repository option from the given list. If no repo option is given, we get one from the environment. """ @spec parse_repo([term]) :: [Ecto.Repo.t] def parse_repo(args) do parse_repo(args, []) ...
26.986928
91
0.620489
e91bfb466a56ef6558eda2f60d9c75fa83c9f2b2
1,281
exs
Elixir
mix.exs
zven21/footprint
ebbc4ba6c7b95cdfab28ea406146f2de90e58211
[ "MIT" ]
2
2018-08-23T08:30:01.000Z
2019-06-17T08:09:19.000Z
mix.exs
zven21/footprint
ebbc4ba6c7b95cdfab28ea406146f2de90e58211
[ "MIT" ]
3
2020-07-17T07:15:56.000Z
2021-05-09T04:18:19.000Z
mix.exs
zven21/footprint
ebbc4ba6c7b95cdfab28ea406146f2de90e58211
[ "MIT" ]
null
null
null
defmodule Footprint.MixProject do use Mix.Project @version "0.3.1" @github "https://github.com/zven21/footprint" def project do [ app: :footprint, version: @version, description: "Track changes to your database with Ecto.", elixir: "~> 1.8", package: package(), elixirc_...
21
64
0.543326
e91c19718e65a4b525f4cf51b8db28bcddee90ee
1,100
exs
Elixir
test/recurly/add_on_test.exs
calibr/recurly-client-elixir
a1160a10f90e0919adacf39bd95df3784e11fdcc
[ "MIT" ]
8
2016-08-11T00:45:46.000Z
2020-05-04T18:55:48.000Z
test/recurly/add_on_test.exs
calibr/recurly-client-elixir
a1160a10f90e0919adacf39bd95df3784e11fdcc
[ "MIT" ]
10
2016-08-15T20:01:56.000Z
2019-05-10T02:09:35.000Z
test/recurly/add_on_test.exs
calibr/recurly-client-elixir
a1160a10f90e0919adacf39bd95df3784e11fdcc
[ "MIT" ]
4
2017-10-16T14:29:58.000Z
2019-05-09T23:20:56.000Z
defmodule Recurly.AddOnTest do use ExUnit.Case, async: true alias Recurly.AddOn import Utils @readable_fields ~w( accounting_code add_on_code add_on_type created_at default_quantity display_quantity_on_hosted_page measured_unit_id name optional plan revenue_schedule_...
20.37037
65
0.731818
e91c2caf134c5c5f78952ee5d6327c5c94bfe013
507
ex
Elixir
lib/aspekt/config/param.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
lib/aspekt/config/param.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
lib/aspekt/config/param.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
defmodule Aspekt.Config.Param do use Ecto.Schema import Ecto.Changeset alias Aspekt.Config.Param schema "param" do field :effective_at, :utc_datetime field :expires_at, :utc_datetime field :subject_id, :integer field :value, :string timestamps() end @doc false def changeset(%Param{...
22.043478
75
0.690335
e91c418959f2e06c333ae0f76f8fe6c18c14658e
1,082
ex
Elixir
lib/arangox_ecto/types/geojson.ex
rxndxm/arangox_ecto
78ee4cbdff38efdacc0e29049caa799c85bd08e0
[ "Apache-2.0" ]
null
null
null
lib/arangox_ecto/types/geojson.ex
rxndxm/arangox_ecto
78ee4cbdff38efdacc0e29049caa799c85bd08e0
[ "Apache-2.0" ]
null
null
null
lib/arangox_ecto/types/geojson.ex
rxndxm/arangox_ecto
78ee4cbdff38efdacc0e29049caa799c85bd08e0
[ "Apache-2.0" ]
null
null
null
defmodule ArangoXEcto.Types.GeoJSON do @moduledoc """ Defines a GeoJSON type for use in ecto schemas This will handle conversion of a Geo struct into a map for storage in the database. Use as the type of a field in an Ecto schema. For example: schema "users" do field :location, ArangoXEcto.Type...
23.521739
85
0.641405
e91c502362f3da1dacfce0a87d8e14ad33c7d574
248
ex
Elixir
lib/swarm/logger.ex
ileamo/swarm
04353ff27fec3a24753e3c1f3b03d589fce78907
[ "MIT" ]
1,111
2016-07-30T05:50:23.000Z
2022-03-31T07:50:15.000Z
lib/swarm/logger.ex
ileamo/swarm
04353ff27fec3a24753e3c1f3b03d589fce78907
[ "MIT" ]
128
2016-08-07T22:40:18.000Z
2021-12-15T05:47:01.000Z
lib/swarm/logger.ex
ileamo/swarm
04353ff27fec3a24753e3c1f3b03d589fce78907
[ "MIT" ]
115
2016-08-17T12:43:02.000Z
2022-03-29T22:47:22.000Z
defmodule Swarm.Logger do @moduledoc false @doc """ Formats a log message to include info on which node swarm is running on """ @spec format(String.t()) :: String.t() def format(message), do: "[swarm on #{Node.self()}] #{message}" end
24.8
73
0.66129
e91c6e5e4fac83eddcb160b65c1ed901517256cc
7,175
ex
Elixir
clients/memcache/lib/google_api/memcache/v1/model/google_cloud_saasaccelerator_management_providers_v1_instance.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/memcache/lib/google_api/memcache/v1/model/google_cloud_saasaccelerator_management_providers_v1_instance.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/memcache/lib/google_api/memcache/v1/model/google_cloud_saasaccelerator_management_providers_v1_instance.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...
56.496063
373
0.726969
e91c78006de476d5c13ff428d818e91f79898e72
737
exs
Elixir
test/livebook_web/live/explore_live_test.exs
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
1,846
2021-04-13T14:46:36.000Z
2021-07-14T20:37:40.000Z
test/livebook_web/live/explore_live_test.exs
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
411
2021-07-15T07:41:54.000Z
2022-03-31T21:34:22.000Z
test/livebook_web/live/explore_live_test.exs
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
130
2021-04-13T15:43:55.000Z
2021-07-12T16:57:46.000Z
defmodule LivebookWeb.ExploreLiveTest do use LivebookWeb.ConnCase import Phoenix.LiveViewTest test "link to introductory notebook correctly creates a new session", %{conn: conn} do {:ok, view, _} = live(conn, "/explore") assert {:error, {:live_redirect, %{to: to}}} = view |> e...
25.413793
88
0.603799
e91ca01b9a59e2e31e594c87268ec2fd26a97640
350
ex
Elixir
lib/credo/cli/command/diff/task/filter_issues_for_exit_status.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
lib/credo/cli/command/diff/task/filter_issues_for_exit_status.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
lib/credo/cli/command/diff/task/filter_issues_for_exit_status.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.CLI.Command.Diff.Task.FilterIssuesForExitStatus do @moduledoc false use Credo.Execution.Task def call(exec, _opts) do issues = exec |> Execution.get_issues() |> Enum.filter(fn %Credo.Issue{diff_marker: :new} -> true _ -> false end) Execution.put_i...
19.444444
66
0.642857
e91cb5b038fec4f2f2b75ef58168151aed442dc3
2,513
ex
Elixir
lib/mnemonix/behaviour/definition/params.ex
christhekeele/mnemonix
41c81b00b89562250ea451035fd34bf775173e50
[ "MIT" ]
36
2016-10-30T21:40:19.000Z
2021-05-03T10:51:50.000Z
lib/mnemonix/behaviour/definition/params.ex
christhekeele/mnemonix
41c81b00b89562250ea451035fd34bf775173e50
[ "MIT" ]
52
2016-10-30T20:57:35.000Z
2017-12-28T03:39:57.000Z
lib/mnemonix/behaviour/definition/params.ex
christhekeele/mnemonix
41c81b00b89562250ea451035fd34bf775173e50
[ "MIT" ]
5
2017-01-25T22:02:58.000Z
2018-01-30T14:27:55.000Z
defmodule Mnemonix.Behaviour.Definition.Params do @moduledoc false def arities(params) do {arity, defaults} = Enum.reduce(params, {0, 0}, fn {:\\, _, [_arg, _default]}, {arity, defaults} -> {arity, defaults + 1} _ast, {arity, defaults} -> {arity + 1, defaults} end) Range.new...
28.556818
113
0.643454
e91cfecbad1a6af5770ebb7b2c45cbdf47c31366
3,162
exs
Elixir
test/type/fetch_spec/etc_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
test/type/fetch_spec/etc_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
test/type/fetch_spec/etc_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
defmodule TypeTest.Type.FetchSpec.EtcTest do use ExUnit.Case, async: true import Type, only: :macros import Type.Operators import TypeTest.SpecCase alias Type.Function @moduletag :fetch @unions TypeTest.SpecExample.Unions @remote TypeTest.SpecExample.Remote @example TypeTest.SpecExample test "u...
27.025641
96
0.64611
e91d11531d12dd04c9c2d811f32483ed03dfff06
520
ex
Elixir
lib/lapin/utils.ex
expert360/lapin
81f63910178523af6658412a6730632bad08d143
[ "MIT" ]
null
null
null
lib/lapin/utils.ex
expert360/lapin
81f63910178523af6658412a6730632bad08d143
[ "MIT" ]
null
null
null
lib/lapin/utils.ex
expert360/lapin
81f63910178523af6658412a6730632bad08d143
[ "MIT" ]
null
null
null
defmodule Lapin.Utils do @moduledoc """ Misc utility functions """ @doc """ Checks the cconfiguration contains some keys """ @spec check_mandatory_params(Keyword.t(), [atom]) :: :ok | {:error, :missing_params, [atom]} def check_mandatory_params(configuration, params) do if Enum.all?(params, &Keywor...
27.368421
94
0.676923
e91d38c9968076ea1bc35088fc90802764a00c6f
1,409
ex
Elixir
lib/auth/services/user/change_password.ex
nathanfaucett/ex-auth
52569522e7ee43dd2a713042a86971164cd57ccb
[ "MIT" ]
null
null
null
lib/auth/services/user/change_password.ex
nathanfaucett/ex-auth
52569522e7ee43dd2a713042a86971164cd57ccb
[ "MIT" ]
null
null
null
lib/auth/services/user/change_password.ex
nathanfaucett/ex-auth
52569522e7ee43dd2a713042a86971164cd57ccb
[ "MIT" ]
null
null
null
defmodule Auth.Services.User.ChangePassword do import Auth.Gettext def prop_types do %{ "locale" => PropTypes.required(PropTypes.string), "id" => PropTypes.required(PropTypes.string), "old_password" => PropTypes.required(PropTypes.string), "new_password" => PropTypes.required(PropTypes...
32.767442
111
0.613911
e91d54377c92e34983c94db1fea45112420d5ad8
2,604
exs
Elixir
test/query_test.exs
zloyrusskiy/ecto_adapters_dynamodb
c2e462ce4b9e9a54d8a9f97920b2397952146a7d
[ "Apache-2.0" ]
null
null
null
test/query_test.exs
zloyrusskiy/ecto_adapters_dynamodb
c2e462ce4b9e9a54d8a9f97920b2397952146a7d
[ "Apache-2.0" ]
null
null
null
test/query_test.exs
zloyrusskiy/ecto_adapters_dynamodb
c2e462ce4b9e9a54d8a9f97920b2397952146a7d
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Adapters.DynamoDB.Query.Test do @moduledoc """ Unit tests for the query module. """ use ExUnit.Case import Ecto.Adapters.DynamoDB.Query, only: [ get_matching_secondary_index: 3 ] setup_all do on_exit fn -> TestHelper.on_exit() end end # When we have a hash-only key that al...
60.55814
188
0.703149
e91d58aa1f212bce0cce863b10171c4d5990faf8
1,257
ex
Elixir
clients/people/lib/google_api/people/v1/model/relationship_status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/people/lib/google_api/people/v1/model/relationship_status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/people/lib/google_api/people/v1/model/relationship_status.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...
30.658537
90
0.743835
e91d5abab624ecc36178520482d76e15dbc1add4
138
exs
Elixir
genetic/genetic/test/genetic_test.exs
JamesPMColeman/Genetic-Algorithms
5eaa4b5933dc91d597c848509cb26116f567d222
[ "MIT" ]
null
null
null
genetic/genetic/test/genetic_test.exs
JamesPMColeman/Genetic-Algorithms
5eaa4b5933dc91d597c848509cb26116f567d222
[ "MIT" ]
null
null
null
genetic/genetic/test/genetic_test.exs
JamesPMColeman/Genetic-Algorithms
5eaa4b5933dc91d597c848509cb26116f567d222
[ "MIT" ]
null
null
null
defmodule GeneticTest do use ExUnit.Case doctest Genetic test "greets the world" do assert Genetic.hello() == :world end end
15.333333
36
0.710145