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
7a89c2beaf32c2e7fb3422bfcc126c4fa5e33c71
4,156
ex
Elixir
lib/norm/core/schema.ex
QuinnWilton/norm
5ddce1b1ed2c8cb246a54b4aa0a1db5033541407
[ "MIT" ]
585
2019-06-25T15:41:45.000Z
2021-10-13T16:12:42.000Z
lib/norm/core/schema.ex
QuinnWilton/norm
5ddce1b1ed2c8cb246a54b4aa0a1db5033541407
[ "MIT" ]
77
2019-06-25T14:58:47.000Z
2021-09-22T10:12:37.000Z
lib/norm/core/schema.ex
QuinnWilton/norm
5ddce1b1ed2c8cb246a54b4aa0a1db5033541407
[ "MIT" ]
28
2019-07-18T04:54:13.000Z
2021-06-21T15:43:59.000Z
defmodule Norm.Core.Schema do @moduledoc false # Provides the definition for schemas alias __MODULE__ defstruct specs: %{}, struct: nil def build(%{__struct__: name} = struct) do # If we're building a schema from a struct then we need to reject any keys with # values that don't implement the confor...
25.975
92
0.570741
7a89c3a66bddaf74ad036235a36bc59d04f92e71
2,615
ex
Elixir
lib/level_web/controllers/open_invitation_controller.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
928
2018-04-03T16:18:11.000Z
2019-09-09T17:59:55.000Z
lib/level_web/controllers/open_invitation_controller.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
74
2018-04-03T00:46:50.000Z
2019-03-10T18:57:27.000Z
lib/level_web/controllers/open_invitation_controller.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
89
2018-04-03T17:33:20.000Z
2019-08-19T03:40:20.000Z
defmodule LevelWeb.OpenInvitationController do @moduledoc false use LevelWeb, :controller alias Level.Repo alias Level.Schemas.Space alias Level.Schemas.User alias Level.Spaces alias Level.Users alias LevelWeb.ErrorView plug :fetch_invitation plug :fetch_current_user_by_session plug :redirect_e...
28.11828
94
0.616444
7a89f2140dc30cb5974c8ec8c992d9a183817140
3,962
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/detail.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/detail.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/detail.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.540541
277
0.722362
7a8a1c70807cf884f8641cd05143c08adaffddfe
108
ex
Elixir
web/commands/order_billing_address.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
356
2016-03-16T12:37:28.000Z
2021-12-18T03:22:39.000Z
web/commands/order_billing_address.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
30
2016-03-16T09:19:10.000Z
2021-01-12T08:10:52.000Z
web/commands/order_billing_address.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
72
2016-03-16T13:32:14.000Z
2021-03-23T11:27:43.000Z
defmodule Nectar.Command.OrderBillingAddress do use Nectar.Command, model: Nectar.OrderBillingAddress end
27
55
0.851852
7a8a258cfdb4248e9eb6f7cdbde5f6081293f597
4,795
ex
Elixir
lib/nostrum/api/ratelimiter.ex
PurgePJ/nostrum
9ca0b3816416a2bd25d077bccd76d42a6b5dffa6
[ "MIT" ]
null
null
null
lib/nostrum/api/ratelimiter.ex
PurgePJ/nostrum
9ca0b3816416a2bd25d077bccd76d42a6b5dffa6
[ "MIT" ]
null
null
null
lib/nostrum/api/ratelimiter.ex
PurgePJ/nostrum
9ca0b3816416a2bd25d077bccd76d42a6b5dffa6
[ "MIT" ]
null
null
null
defmodule Nostrum.Api.Ratelimiter do @moduledoc """ Ratelimit implimentation specific to Discord's API. Only to be used when starting in a rest-only manner. """ use GenServer alias Nostrum.Api.{Base, Bucket} alias Nostrum.Util require Logger @typedoc """ Return values of start functions. """ ...
27.877907
89
0.654432
7a8a5ad025eabfef6bb0cbbb2e7feea4fcfee041
1,477
ex
Elixir
lib/parsers/content_line.ex
thestakeholdercompany/icalendar
1e36af22a9ea07917f08a6350636e9cfcbf98f29
[ "MIT" ]
1
2020-06-09T10:42:58.000Z
2020-06-09T10:42:58.000Z
lib/parsers/content_line.ex
thestakeholdercompany/icalendar
1e36af22a9ea07917f08a6350636e9cfcbf98f29
[ "MIT" ]
null
null
null
lib/parsers/content_line.ex
thestakeholdercompany/icalendar
1e36af22a9ea07917f08a6350636e9cfcbf98f29
[ "MIT" ]
null
null
null
defmodule ICalex.Parsers.ContentLine do @moduledoc false alias ICalex.Props.{Parameters, VText} def parts(line) when is_bitstring(line) do [name_parameters, value] = String.split(line, ":", parts: 2) [name | parameters] = String.split(name_parameters, ";") parameters = Enum.reduce(parameters,...
29.54
90
0.634394
7a8a6c8b1550205153fd29e4666c036606317a49
922
ex
Elixir
lib/phoenix_react_playground_web/router.ex
vinej/tpr
4377a6cbe2b1105731296ad7630a905c40acd2de
[ "Unlicense" ]
null
null
null
lib/phoenix_react_playground_web/router.ex
vinej/tpr
4377a6cbe2b1105731296ad7630a905c40acd2de
[ "Unlicense" ]
null
null
null
lib/phoenix_react_playground_web/router.ex
vinej/tpr
4377a6cbe2b1105731296ad7630a905c40acd2de
[ "Unlicense" ]
null
null
null
defmodule PhoenixReactPlaygroundWeb.Router do use PhoenixReactPlaygroundWeb, :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, ["json"] end scop...
22.487805
69
0.722343
7a8a9d7b7dea76db7d3002baddc7f4433158e3d4
2,248
ex
Elixir
clients/content/lib/google_api/content/v2/model/test_order_customer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/test_order_customer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/test_order_customer.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.258065
159
0.717527
7a8aa42bccbfb4a5cce010b2da37dc33cfac57da
937
ex
Elixir
lib/nerves_snmp_example.ex
martijn/nerves_snmp_example
dae9b8ce3765b01a90bf184b00ab9b4e0c3dbde4
[ "Unlicense" ]
1
2017-11-01T19:57:14.000Z
2017-11-01T19:57:14.000Z
lib/nerves_snmp_example.ex
martijn/nerves_snmp_example
dae9b8ce3765b01a90bf184b00ab9b4e0c3dbde4
[ "Unlicense" ]
null
null
null
lib/nerves_snmp_example.ex
martijn/nerves_snmp_example
dae9b8ce3765b01a90bf184b00ab9b4e0c3dbde4
[ "Unlicense" ]
null
null
null
defmodule NervesSnmpExample do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def my_name(:get) do {:value, 'Martijn'} end def gpio_value(:get) do {:value, Agent.get(:gpio_state, &(&1[1] || 0))} end def start(_type, ...
29.28125
80
0.670224
7a8aa97c8bf304574ed3af7cf4394148344ee83e
3,219
ex
Elixir
lib/vec.ex
ckampfe/vec
5e3a6800882ada480a1d05ba338b3974e08b1bd3
[ "BSD-3-Clause" ]
null
null
null
lib/vec.ex
ckampfe/vec
5e3a6800882ada480a1d05ba338b3974e08b1bd3
[ "BSD-3-Clause" ]
null
null
null
lib/vec.ex
ckampfe/vec
5e3a6800882ada480a1d05ba338b3974e08b1bd3
[ "BSD-3-Clause" ]
null
null
null
defmodule Vec do use Rustler, otp_app: :vec, crate: :vec defstruct [:repr] defmacrop nif_error() do quote do :erlang.nif_error(:nif_not_loaded) end end # public API def new(), do: %__MODULE__{repr: new_impl()} def with_capacity(capacity), do: %__MODULE__{repr: with_capacity_impl(capacity)...
30.951923
97
0.664181
7a8abe45a12430a79ef18013ec0e5129da32cf3d
1,298
exs
Elixir
test/test_helper.exs
taxfix/grakn-elixir
23d094bad69cfbd1c021cf782fd8aff1bff38140
[ "MIT" ]
16
2018-10-10T09:29:19.000Z
2021-07-17T03:37:03.000Z
test/test_helper.exs
taxfix/grakn-elixir
23d094bad69cfbd1c021cf782fd8aff1bff38140
[ "MIT" ]
8
2019-01-12T19:35:17.000Z
2020-02-20T16:02:52.000Z
test/test_helper.exs
taxfix/grakn-elixir
23d094bad69cfbd1c021cf782fd8aff1bff38140
[ "MIT" ]
6
2018-12-11T08:12:10.000Z
2020-04-27T02:52:53.000Z
ExUnit.start(exclude: [:skip]) defmodule TestHelper do alias Grakn.{Command, Query} def exit_test(message) do IO.puts(message) System.halt(1) end def extract_grakn_status(output) do output |> String.split("\n") |> Enum.at(-2) |> String.split(":") |> Enum.at(1) |> String.trim()...
24.490566
93
0.657935
7a8af7ece0892d5bb547e92f34d42d60fc56bc22
27,530
ex
Elixir
lib/dataloader/ecto.ex
kianmeng/dataloader
64c7be3eabf7685ab2d7f364b95ae386cfcc6245
[ "MIT" ]
null
null
null
lib/dataloader/ecto.ex
kianmeng/dataloader
64c7be3eabf7685ab2d7f364b95ae386cfcc6245
[ "MIT" ]
null
null
null
lib/dataloader/ecto.ex
kianmeng/dataloader
64c7be3eabf7685ab2d7f364b95ae386cfcc6245
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Ecto) do defmodule Dataloader.Ecto do @moduledoc """ Ecto source for Dataloader This defines a schema and an implementation of the `Dataloader.Source` protocol for handling Ecto related batching. A simple Ecto source only needs to know about your application's Repo. #...
30.725446
98
0.583836
7a8afbc9d1c49845e3df6a480bbe7f4c67434c8b
17,836
ex
Elixir
lib/ex_unit/lib/ex_unit/doc_test.ex
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/doc_test.ex
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/doc_test.ex
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.DocTest do @moduledoc """ ExUnit.DocTest implements functionality similar to [Python's doctest](http://docs.python.org/2/library/doctest.html). In a nutshell, it allows us to generate tests from the code examples existing in a module/function/macro's documentation. In order to do that, one...
33.214153
171
0.637643
7a8b034e396537e839bd4d9035074267fd44ae52
1,023
ex
Elixir
lib/phx_oembed/endpoint.ex
coshx/phoenix_tutorial
5c9859e537ea8383f35fa05d97df453decc333d8
[ "MIT" ]
2
2016-10-07T07:18:59.000Z
2019-01-12T20:51:09.000Z
lib/phx_oembed/endpoint.ex
coshx/phoenix_tutorial
5c9859e537ea8383f35fa05d97df453decc333d8
[ "MIT" ]
null
null
null
lib/phx_oembed/endpoint.ex
coshx/phoenix_tutorial
5c9859e537ea8383f35fa05d97df453decc333d8
[ "MIT" ]
null
null
null
defmodule PhxOembed.Endpoint do use Phoenix.Endpoint, otp_app: :phx_oembed socket "/socket", PhxOembed.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug.St...
25.575
69
0.713587
7a8b26d8c12b74d880168b1a75f7c50974f38d15
1,971
ex
Elixir
lib/slackin_ex/web/endpoint.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
lib/slackin_ex/web/endpoint.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
lib/slackin_ex/web/endpoint.ex
deadtrickster/slackin_ex
a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab
[ "MIT" ]
null
null
null
defmodule SlackinEx.Web.Endpoint do use Phoenix.Endpoint, otp_app: :slackin_ex socket "/socket", SlackinEx.Web.UserSocket plug SlackinEx.Metrics.Exporter plug SlackinEx.Metrics.PipelineInstrumenter # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are...
28.985294
95
0.710807
7a8b3ce084f362c74ed5b95aa5b1b46da118a659
1,040
exs
Elixir
test/shoppings_test.exs
gissandrogama/-shopping
fe6e669bdd075a3b2780715c3b78ac06142d3671
[ "MIT" ]
null
null
null
test/shoppings_test.exs
gissandrogama/-shopping
fe6e669bdd075a3b2780715c3b78ac06142d3671
[ "MIT" ]
3
2021-01-21T04:37:42.000Z
2021-01-21T17:52:42.000Z
test/shoppings_test.exs
gissandrogama/-shopping
fe6e669bdd075a3b2780715c3b78ac06142d3671
[ "MIT" ]
null
null
null
defmodule ShoppingsTest do use ExUnit.Case doctest Shoppings describe "buy/0" do test "taking values ​​from the macros defined in the Shopping module" do result = Shoppings.buy() assert result == [ %{email: "teste1@gmail.com", value: "R$ 0.33"}, %{email: "teste2@gma...
28.888889
76
0.532692
7a8b8c1878a36270f6743b90d7e81e5923ffc918
401
ex
Elixir
lib/exo_redis/server/storage_serializer.ex
tckb/exo_redis
b774ef1dc52c843866369e5d5f96fd6358d2e9d4
[ "MIT" ]
null
null
null
lib/exo_redis/server/storage_serializer.ex
tckb/exo_redis
b774ef1dc52c843866369e5d5f96fd6358d2e9d4
[ "MIT" ]
null
null
null
lib/exo_redis/server/storage_serializer.ex
tckb/exo_redis
b774ef1dc52c843866369e5d5f96fd6358d2e9d4
[ "MIT" ]
null
null
null
defmodule ExoRedis.Storage.RDB do defmodule Encoder do end defmodule Decoder do # 10 byte metadata # 5 bytes @redis_signature <<"REDIS"::utf8>> # 4 bytes - big endian @version <<3::big-size(24)>> # 1 byte @db_selector <<254::size(8)>> def read_metadata( <<@redis_signatu...
20.05
75
0.600998
7a8b984eb72ead4c9ca70efccae4150a420ae2cf
584
ex
Elixir
lib/app/user_manager/pipeline.ex
kenforthewin/mentat
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
88
2018-06-17T17:36:56.000Z
2021-11-20T20:29:27.000Z
lib/app/user_manager/pipeline.ex
kenforthewin/scalar
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
47
2018-05-12T00:12:37.000Z
2018-06-16T19:52:52.000Z
lib/app/user_manager/pipeline.ex
kenforthewin/scalar
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
6
2018-06-17T17:37:11.000Z
2020-04-12T04:05:49.000Z
defmodule App.UserManager.Pipeline do use Guardian.Plug.Pipeline, otp_app: :app, error_handler: App.UserManager.ErrorHandler, module: App.UserManager.Guardian # If there is a session token, restrict it to an access token and validate it plug Guardian.Plug.VerifySession, claims: %{"typ" => "access"} ...
41.714286
87
0.748288
7a8bac0bf876d9d8709ae7c73adb94d2bc8d4421
1,062
exs
Elixir
test/makeup_test.exs
tmbb/makeup
8bdc3b3de49e06a23fa6977e4c84c3be0f0d1d32
[ "BSD-2-Clause" ]
115
2017-08-01T15:13:13.000Z
2020-08-20T13:29:38.000Z
test/makeup_test.exs
tmbb/makeup
8bdc3b3de49e06a23fa6977e4c84c3be0f0d1d32
[ "BSD-2-Clause" ]
24
2017-08-01T13:33:47.000Z
2020-09-25T10:12:58.000Z
test/makeup_test.exs
tmbb/makeup
8bdc3b3de49e06a23fa6977e4c84c3be0f0d1d32
[ "BSD-2-Clause" ]
18
2017-10-05T17:14:13.000Z
2020-09-01T10:46:54.000Z
defmodule MakeupTest do use ExUnit.Case doctest Makeup defmodule FakeLexer do @behaviour Makeup.Lexer @impl true def root_element(_), do: raise("Not implemented") @impl true def root(_), do: raise("Not implemented") @impl true def postprocess(_, _), do: raise("Not implemented") ...
25.902439
84
0.624294
7a8bacc2d6e5b6c895072c04a8cfa78b1e4efb68
1,324
ex
Elixir
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_workspace_source_context.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_workspace_source_context.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_workspace_source_context.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...
33.1
103
0.763595
7a8bc85d825be8aff26b6bfc47cb77b822217fb8
466
exs
Elixir
test/postoffice_web/views/error_view_test.exs
IgorRodriguez/postoffice
9012193e0780f2403bd3db90b8f6258656780fee
[ "Apache-2.0" ]
15
2020-01-24T10:33:57.000Z
2020-10-24T07:57:14.000Z
test/postoffice_web/views/error_view_test.exs
IgorRodriguez/postoffice
9012193e0780f2403bd3db90b8f6258656780fee
[ "Apache-2.0" ]
24
2020-01-24T09:52:56.000Z
2021-02-19T09:15:12.000Z
test/postoffice_web/views/error_view_test.exs
IgorRodriguez/postoffice
9012193e0780f2403bd3db90b8f6258656780fee
[ "Apache-2.0" ]
5
2020-01-25T18:03:44.000Z
2021-02-23T10:07:03.000Z
defmodule PostofficeWeb.ErrorViewTest do use PostofficeWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(PostofficeWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end test "render...
29.125
95
0.690987
7a8bd083c2223e46bb56552ecf8a553b85cddc92
1,022
ex
Elixir
phoenix_rest_example/web/views/error_helpers.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
1
2019-04-22T13:39:19.000Z
2019-04-22T13:39:19.000Z
phoenix_rest_example/web/views/error_helpers.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
1
2017-10-06T11:54:24.000Z
2017-10-09T09:29:04.000Z
phoenix_rest_example/web/views/error_helpers.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
null
null
null
defmodule PhoenixRestExample.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # Because error messages were defined within Ecto, we must # call the Gettext modul...
34.066667
84
0.680039
7a8bd8e3405e6ea9661c09de87c9afda5b749338
382
ex
Elixir
test/support/test_schema/person.ex
studio-elsa/ecto_resource
4501971f60f48e842f73dde46626b957a481db42
[ "Apache-2.0" ]
19
2019-11-05T22:22:27.000Z
2022-01-29T08:35:35.000Z
test/support/test_schema/person.ex
studio-elsa/ecto_resource
4501971f60f48e842f73dde46626b957a481db42
[ "Apache-2.0" ]
3
2021-02-06T05:49:43.000Z
2021-07-07T18:22:43.000Z
test/support/test_schema/person.ex
studio-elsa/ecto_resource
4501971f60f48e842f73dde46626b957a481db42
[ "Apache-2.0" ]
4
2020-03-20T02:12:27.000Z
2022-03-20T21:01:12.000Z
defmodule EctoResource.TestSchema.Person do use Ecto.Schema import Ecto.Changeset schema "people" do field(:first_name, :string) field(:last_name, :string) field(:age, :integer) end @doc false def changeset(person, attrs) do person |> cast(attrs, [:first_name, :last_name, :age]) |>...
21.222222
57
0.67801
7a8bde8d66d114f1a026ff2ad542c8b20ba39cec
133
exs
Elixir
priv/repo/migrations/20190809200845_indices_3.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
11
2019-05-27T23:43:46.000Z
2021-08-24T06:37:23.000Z
priv/repo/migrations/20190809200845_indices_3.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
1
2020-05-17T04:51:52.000Z
2021-03-25T15:38:33.000Z
priv/repo/migrations/20190809200845_indices_3.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
2
2019-05-27T23:43:52.000Z
2020-10-15T09:09:58.000Z
defmodule Zam.Repo.Migrations.Indices3 do use Ecto.Migration def change do create index(:bookmarks, [:domain_id]) end end
16.625
42
0.736842
7a8be21049de417e8c497c97cf70d64c4f01165c
375
ex
Elixir
lib/srp/key_pair.ex
thiamsantos/spr
c1db6c338543ecb9ec4d855d05a125a490c1606b
[ "Apache-2.0" ]
15
2018-11-03T18:39:21.000Z
2022-02-21T22:17:50.000Z
lib/srp/key_pair.ex
thiamsantos/spr
c1db6c338543ecb9ec4d855d05a125a490c1606b
[ "Apache-2.0" ]
7
2018-10-27T00:13:08.000Z
2019-05-14T16:43:36.000Z
lib/srp/key_pair.ex
thiamsantos/spr
c1db6c338543ecb9ec4d855d05a125a490c1606b
[ "Apache-2.0" ]
3
2019-05-14T16:24:04.000Z
2019-07-06T21:47:40.000Z
defmodule SRP.KeyPair do @moduledoc """ A pair of ephemeral keys, one public and one private. The private key is random and the public is derived from the private. This keys are exchanged during the process of authentication. """ @enforce_keys [:private, :public] defstruct [:private, :public] @type t :...
31.25
71
0.72
7a8bf8ae880a2726c2de10a6eff1afd07a757f70
1,709
exs
Elixir
test/random_words_test.exs
kianmeng/random_words
d36af8c0fe6f5bc0496b49b470fb0b18bc02ec61
[ "MIT" ]
7
2018-07-30T13:36:52.000Z
2020-07-08T19:24:40.000Z
test/random_words_test.exs
kianmeng/random_words
d36af8c0fe6f5bc0496b49b470fb0b18bc02ec61
[ "MIT" ]
5
2020-05-24T09:23:18.000Z
2021-12-15T01:27:16.000Z
test/random_words_test.exs
kianmeng/random_words
d36af8c0fe6f5bc0496b49b470fb0b18bc02ec61
[ "MIT" ]
2
2020-09-05T21:28:51.000Z
2020-11-02T13:37:13.000Z
defmodule RandomWordsTest do use ExUnit.Case doctest RandomWords test "give me a word" do word = RandomWords.word() verify_word(word) end test "give me five words" do words = RandomWords.words(5) assert is_list(words) assert length(words) == 5 Enum.each(words, &verify_word/1) end ...
26.292308
92
0.648332
7a8c0dbe65507975b0fe27e176300543532906a6
1,504
ex
Elixir
test/support/data_case.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
null
null
null
test/support/data_case.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
4
2021-03-04T13:00:52.000Z
2021-03-12T12:42:09.000Z
test/support/data_case.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
null
null
null
defmodule Blog.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, we enable the SQL sandbox, so changes done to the ...
27.851852
77
0.690824
7a8c10708bae2921231479897f4fe248990b911b
704
ex
Elixir
lib/wabanex/users/get.ex
luigiMinardi/nlw-06
8863a994536129c17a70a642b3ac201000aed9ce
[ "MIT" ]
null
null
null
lib/wabanex/users/get.ex
luigiMinardi/nlw-06
8863a994536129c17a70a642b3ac201000aed9ce
[ "MIT" ]
null
null
null
lib/wabanex/users/get.ex
luigiMinardi/nlw-06
8863a994536129c17a70a642b3ac201000aed9ce
[ "MIT" ]
null
null
null
defmodule Wabanex.Users.Get do import Ecto.Query alias Wabanex.{User, Repo, Training} alias Ecto.UUID def call(id) do id |> UUID.cast() |> IO.inspect() |> handle_response() end defp handle_response(:error) do {:error, "Invalid UUID"} end defp handle_response({:ok, uuid}) do c...
20.114286
75
0.629261
7a8c2edd39f5d04086c3b833dcb212b2d112c850
1,952
ex
Elixir
lib/dornach_web.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
lib/dornach_web.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
4
2020-01-28T10:12:25.000Z
2021-05-10T23:05:12.000Z
lib/dornach_web.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
defmodule DornachWeb 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 DornachWeb, :controller use DornachWeb, :view The definitions below will be executed for every view, controller, ...
23.518072
83
0.663422
7a8c3cf54baa0df384e03f0d50e1b427c642420a
1,906
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_revision_human_review.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_revision_human_review.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_revision_human_review.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.654545
197
0.741868
7a8c828d58d698915ddb7b4c2fdffa561b23b97a
366
ex
Elixir
lib/legacy/supervisor.ex
en30/goth
5d94abf4408dca2d100d2d30ae7e37dc1e05f0cd
[ "MIT" ]
null
null
null
lib/legacy/supervisor.ex
en30/goth
5d94abf4408dca2d100d2d30ae7e37dc1e05f0cd
[ "MIT" ]
null
null
null
lib/legacy/supervisor.ex
en30/goth
5d94abf4408dca2d100d2d30ae7e37dc1e05f0cd
[ "MIT" ]
null
null
null
defmodule Goth.Supervisor do @moduledoc false use Supervisor alias Goth.Config alias Goth.TokenStore def start_link(envs) do Supervisor.start_link(__MODULE__, envs, name: __MODULE__) end @impl true def init(envs) do children = [ {Config, envs}, TokenStore ] Supervisor.ini...
16.636364
61
0.688525
7a8ceb7234059154d2886c342af123dd7962a369
1,243
ex
Elixir
lib/brando/supervisor.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
lib/brando/supervisor.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
lib/brando/supervisor.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
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 = [ %...
27.622222
70
0.561545
7a8d32237725f13517d447bbef18b74681ad4aa9
234
exs
Elixir
.formatter.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
4
2020-11-30T17:38:57.000Z
2021-01-23T21:29:41.000Z
.formatter.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
24
2020-11-30T17:32:48.000Z
2021-02-22T06:25:22.000Z
.formatter.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
null
null
null
# Used by "mix format" [ inputs: ["mix.exs", "config/*.exs", "apps/*/mix.exs", "apps/*/*.ex", "apps/*/{lib,test,config}/**/*.{ex,exs}", "apps/*/priv/repo/migrations/*.exs"], subdirectories: ["apps/*"], line_length: 120, ]
29.25
83
0.559829
7a8d379ee28e05e3cbd38761aa0349854a3da399
6,459
ex
Elixir
clients/data_migration/lib/google_api/data_migration/v1beta1/model/migration_job.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_migration/lib/google_api/data_migration/v1beta1/model/migration_job.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_migration/lib/google_api/data_migration/v1beta1/model/migration_job.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...
62.105769
287
0.69856
7a8d43c66d279bd885b51b38f59f1067440ea472
1,321
exs
Elixir
test/pummpcomm/history/temp_basal_test.exs
infinity-aps/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
15
2017-08-31T00:58:47.000Z
2020-01-12T03:53:13.000Z
test/pummpcomm/history/temp_basal_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
1
2017-09-15T02:09:31.000Z
2017-09-15T02:09:31.000Z
test/pummpcomm/history/temp_basal_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
3
2017-09-10T17:24:59.000Z
2019-09-10T19:41:49.000Z
defmodule Pummpcomm.History.TempBasalTest do use ExUnit.Case test "Temp Basal with absolute rate type - 1" do {:ok, history_page} = Base.decode16("33360C9A144D1100") decoded_events = Pummpcomm.History.decode_records(history_page, %{}) assert {:temp_basal, %{ rate_type: :absol...
30.72093
72
0.576836
7a8d5739c6cc74542a9be8985130e99bffee7b89
1,807
ex
Elixir
.template.check.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
.template.check.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
.template.check.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
defmodule <%= @check_name %> do @moduledoc """ Checks all lines for a given Regex. This is fun! """ @explanation [ check: @moduledoc, params: [ regex: "All lines matching this Regex will yield an issue.", ] ] @default_params [ regex: ~r/Creeeedo/, # our check will find this lin...
32.854545
80
0.676259
7a8d5bf89a32db57d8515bc8f9c2be96905c56b7
9,094
ex
Elixir
clients/cloud_shell/lib/google_api/cloud_shell/v1/api/operations.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_shell/lib/google_api/cloud_shell/v1/api/operations.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_shell/lib/google_api/cloud_shell/v1/api/operations.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
45.47
614
0.67781
7a8d73b993d8779d038bc13edf367135d72b3cb6
878
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.518519
74
0.757403
7a8d97421ec013355d54428e14664d1699ad213b
533
ex
Elixir
lib/surface_bulma/card/header.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
null
null
null
lib/surface_bulma/card/header.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
null
null
null
lib/surface_bulma/card/header.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
null
null
null
defmodule SurfaceBulma.Card.Header do use Surface.Component @moduledoc """ A horizontal bar with a shadow """ @doc "A left-aligned bold text" slot(title) @doc "A container for an icon" slot(icon) def render(assigns) do ~F""" <header class="card-header"> <p :if={slot_assigned?(:title)}...
19.740741
65
0.587242
7a8d97b8498a107899227f7ad0d86f94ee7400ce
1,432
ex
Elixir
lib/checker_mal_web/controllers/unapproved_api.ex
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
null
null
null
lib/checker_mal_web/controllers/unapproved_api.ex
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
null
null
null
lib/checker_mal_web/controllers/unapproved_api.ex
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
null
null
null
defmodule CheckerMalWeb.UnapprovedAPIController do use CheckerMalWeb, :controller alias CheckerMalWeb.UnapprovedController defp parse_limit(nil), do: nil defp parse_limit({limit, _}) when is_integer(limit), do: limit defp parse_limit(:error), do: nil defp parse_limit(limit) when is_bitstring(limit), do...
26.036364
89
0.64176
7a8d97f0fc69d3fc036aad85f7c2506b5af3149b
507
exs
Elixir
test/elixir_search_extractor_web/features/authentication_page/login_page_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
null
null
null
test/elixir_search_extractor_web/features/authentication_page/login_page_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
32
2021-05-24T06:52:33.000Z
2021-07-19T05:04:40.000Z
test/elixir_search_extractor_web/features/authentication_page/login_page_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
null
null
null
defmodule ElixirSearchExtractorWeb.AuthenticationPage.LoginPageTest do use ElixirSearchExtractorWeb.FeatureCase, async: true feature "view log in page", %{session: session} do session |> visit(Routes.user_session_path(ElixirSearchExtractorWeb.Endpoint, :new)) |> assert_has(Query.text("Log in to Extract...
31.6875
79
0.741617
7a8e12a1e7351e3e57f27cc7dbcf10b43380ee9a
23,937
ex
Elixir
lib/blockchain_api/committer.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
17
2019-11-03T03:02:41.000Z
2022-01-13T17:03:32.000Z
lib/blockchain_api/committer.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
5
2019-11-07T23:26:53.000Z
2020-11-24T21:45:35.000Z
lib/blockchain_api/committer.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
11
2019-12-04T07:03:16.000Z
2022-01-13T17:03:50.000Z
defmodule BlockchainAPI.Committer do @moduledoc false alias BlockchainAPI.{ Committer, Batcher, Query, Repo, Schema.Account, Schema.AccountBalance, Schema.AccountTransaction, Schema.Block, Schema.CoinbaseTransaction, Schema.ConsensusMember, Schema.DataCreditTransaction, ...
31.873502
112
0.616493
7a8e349dea7a2fa58f38101d7a047a7c05fd12cc
1,097
ex
Elixir
lib/plug/crypto/message_verifier.ex
scrogson/plug
576c04c2cba778f1ac9ca28aa71c50efa1046b50
[ "Apache-2.0" ]
1
2015-08-24T06:01:51.000Z
2015-08-24T06:01:51.000Z
lib/plug/crypto/message_verifier.ex
scrogson/plug
576c04c2cba778f1ac9ca28aa71c50efa1046b50
[ "Apache-2.0" ]
null
null
null
lib/plug/crypto/message_verifier.ex
scrogson/plug
576c04c2cba778f1ac9ca28aa71c50efa1046b50
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Crypto.MessageVerifier do @moduledoc """ `MessageVerifier` makes it easy to generate and verify messages which are signed to prevent tampering. For example, the cookie store uses this verifier to send data to the client. The data can be read by the client, but cannot be tampered with. """ ...
28.128205
76
0.65907
7a8e904b3f1f5f0ad37cc30d87df85898dd0a620
203
ex
Elixir
othello/lib/othello_web/views/helpers.ex
Wycode-fish/WEBDEV-PROJECT-1
fad6870c97225ce206ed6b90645bb626b76f598c
[ "MIT" ]
null
null
null
othello/lib/othello_web/views/helpers.ex
Wycode-fish/WEBDEV-PROJECT-1
fad6870c97225ce206ed6b90645bb626b76f598c
[ "MIT" ]
null
null
null
othello/lib/othello_web/views/helpers.ex
Wycode-fish/WEBDEV-PROJECT-1
fad6870c97225ce206ed6b90645bb626b76f598c
[ "MIT" ]
null
null
null
defmodule OthelloWeb.Helpers do def page_name(mm, tt) do modu = String.replace(to_string(mm), ~r/^.*\./, "") tmpl = String.replace(to_string(tt), ~r/\..*$/, "") "#{modu}/#{tmpl}" end end
25.375
55
0.581281
7a8ec4838592a9f758a9d407efc7baaaf8938808
21,282
exs
Elixir
lib/mix/test/mix/dep_test.exs
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
1
2021-05-20T13:08:37.000Z
2021-05-20T13:08:37.000Z
lib/mix/test/mix/dep_test.exs
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/dep_test.exs
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule Mix.DepTest do use MixTest.Case defmodule DepsApp do def project do [ deps: [ {:ok, "0.1.0", path: "deps/ok"}, {:invalidvsn, "0.2.0", path: "deps/invalidvsn"}, {:invalidapp, "0.1.0", path: "deps/invalidapp"}...
30.978166
102
0.590734
7a8ec536bd1d5ded2f2becb081f43653969a20a5
612
ex
Elixir
lib/mao/wall.ex
levijcl/mao
aae70589605ada84ca571a51f5ee4377091e0eb3
[ "MIT" ]
null
null
null
lib/mao/wall.ex
levijcl/mao
aae70589605ada84ca571a51f5ee4377091e0eb3
[ "MIT" ]
null
null
null
lib/mao/wall.ex
levijcl/mao
aae70589605ada84ca571a51f5ee4377091e0eb3
[ "MIT" ]
null
null
null
defmodule MAO.Wall do @moduledoc false import Ecto.Query alias MAO.Repo alias MAO.Wall.Post def create_post(attrs) do %Post{} |> Post.changeset(attrs) |> Repo.insert() end def list_posts do Repo.all(Post) end def posts_query(args), do: posts_query(Post, args) def posts_query(qu...
15.692308
56
0.619281
7a8ed6bb114c18521eaf7c54a9ef84f4da786402
1,590
ex
Elixir
lib/gamma_nif.ex
zacky1972/gamma
e2e8c4d4c78c41ea3e9de9eebaaca7bb899cba4c
[ "Apache-2.0" ]
null
null
null
lib/gamma_nif.ex
zacky1972/gamma
e2e8c4d4c78c41ea3e9de9eebaaca7bb899cba4c
[ "Apache-2.0" ]
null
null
null
lib/gamma_nif.ex
zacky1972/gamma
e2e8c4d4c78c41ea3e9de9eebaaca7bb899cba4c
[ "Apache-2.0" ]
null
null
null
defmodule GammaNif do require Logger @moduledoc """ Documentation for GammaNif. """ @on_load :load_nif def load_nif do nif_file = '#{Application.app_dir(:gamma, "priv/libnif")}' case :erlang.load_nif(nif_file, 0) do :ok -> :ok {:error, {:reload, _}} -> :ok {:error, reason} -> L...
22.714286
86
0.598742
7a8edcab920a25881aeaab703b44e08277177863
3,022
ex
Elixir
lib/html_date/meta.ex
preciz/html_date
cea4863ae237d7fb111caf5c0527c3a5e7d10e08
[ "MIT" ]
null
null
null
lib/html_date/meta.ex
preciz/html_date
cea4863ae237d7fb111caf5c0527c3a5e7d10e08
[ "MIT" ]
null
null
null
lib/html_date/meta.ex
preciz/html_date
cea4863ae237d7fb111caf5c0527c3a5e7d10e08
[ "MIT" ]
null
null
null
defmodule HTMLDate.Meta do @moduledoc false # <meta name="<name>" content="<date/datetime>" @meta_names [ "article.created", "article.published", "article_date_original", "citation_date", "citation_publication_date", "cxenseparse:recs:publishtime", "date", "date_published", "d...
23.609375
97
0.619126
7a8f4236d51581e906730dde6477aa302dcac7d1
132
exs
Elixir
test/filix_test.exs
MrDoops/filix
8be676e7733df5ea6a5ed78c7cb50f9e0fd76fd3
[ "MIT" ]
null
null
null
test/filix_test.exs
MrDoops/filix
8be676e7733df5ea6a5ed78c7cb50f9e0fd76fd3
[ "MIT" ]
null
null
null
test/filix_test.exs
MrDoops/filix
8be676e7733df5ea6a5ed78c7cb50f9e0fd76fd3
[ "MIT" ]
null
null
null
defmodule FilixTest do use ExUnit.Case doctest Filix test "greets the world" do assert Filix.hello() == :world end end
14.666667
34
0.69697
7a8f4580c1b97602f9d45c56fceeff1f30d46c2e
2,161
exs
Elixir
apps/montreal_elixir_web/config/prod.exs
noircir/website-1
bfe43f5a7b022dfc009802d9d068d438e83e73f9
[ "MIT" ]
null
null
null
apps/montreal_elixir_web/config/prod.exs
noircir/website-1
bfe43f5a7b022dfc009802d9d068d438e83e73f9
[ "MIT" ]
null
null
null
apps/montreal_elixir_web/config/prod.exs
noircir/website-1
bfe43f5a7b022dfc009802d9d068d438e83e73f9
[ "MIT" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # MontrealElixirWeb.Endpoint.load_from_system_env/1 dynamically. # Any dynamic configuration should be moved to such fun...
36.627119
75
0.726516
7a8f4c8c70ebac85fc71173caf182d7819560445
2,123
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/data_source_index_stats.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/data_source_index_stats.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/data_source_index_stats.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.46
350
0.751766
7a8f562bf742e5e7b8130400d4a2f55208220a40
425
exs
Elixir
machine_translation/MorpHIN/Learned/Resources/TrainingInstances/28.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/TrainingInstances/28.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/TrainingInstances/28.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
**EXAMPLE FILE** noun * verb noun * SYM * adjective; noun * neg demonstrative * verb * adjective; cm * neg noun * verb * adjective; noun * verb cm * cm * adjective; cm * verb noun a84 verb_aux * adjective; noun a13 verb verb_aux a57 verb_aux * adjective; verb * verb noun * SYM * adjective; verb * verb noun * c...
32.692308
49
0.684706
7a8f8259526fa15a0325e25f88b694b6dd339c25
913
exs
Elixir
config/dev.exs
nihonjinrxs/peep-stack-tutorial-app
8c10b2b589d645ba5a3e31f86754828579e139c9
[ "MIT" ]
null
null
null
config/dev.exs
nihonjinrxs/peep-stack-tutorial-app
8c10b2b589d645ba5a3e31f86754828579e139c9
[ "MIT" ]
null
null
null
config/dev.exs
nihonjinrxs/peep-stack-tutorial-app
8c10b2b589d645ba5a3e31f86754828579e139c9
[ "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 :peepchat, Peepchat.Endpoint, http: [port: 400...
28.53125
68
0.750274
7a8fe2baada01437adba33dbba1a27eaca197321
1,975
exs
Elixir
mix.exs
jmnsf/ex_microsoftbot
c1c2185f1414b1cbb03999b2195745e35936c2d9
[ "MIT" ]
null
null
null
mix.exs
jmnsf/ex_microsoftbot
c1c2185f1414b1cbb03999b2195745e35936c2d9
[ "MIT" ]
null
null
null
mix.exs
jmnsf/ex_microsoftbot
c1c2185f1414b1cbb03999b2195745e35936c2d9
[ "MIT" ]
null
null
null
defmodule ExMicrosoftbot.Mixfile do use Mix.Project def project do [ app: :ex_microsoftbot, version: "3.0.0", elixir: "~> 1.8", description: description(), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, package: package(), deps: deps(), ...
25.986842
83
0.563544
7a90082eb481595c11f01f6b16d4cbe1e4345bff
1,117
ex
Elixir
lib/mail/encoder.ex
sam701/elixir-mail
5771a8b8808c26f7d6adc3a44859f2c140c994e1
[ "MIT" ]
387
2016-02-09T23:17:51.000Z
2022-03-31T13:57:05.000Z
lib/mail/encoder.ex
sam701/elixir-mail
5771a8b8808c26f7d6adc3a44859f2c140c994e1
[ "MIT" ]
84
2016-02-09T21:20:11.000Z
2022-03-10T09:58:43.000Z
lib/mail/encoder.ex
sam701/elixir-mail
5771a8b8808c26f7d6adc3a44859f2c140c994e1
[ "MIT" ]
70
2016-02-10T15:21:44.000Z
2021-12-08T18:20:25.000Z
defmodule Mail.Encoder do @moduledoc """ Primary encoding/decoding bottleneck for the library. Will delegate to the proper encoding/decoding functions based upon name """ @spec encoder_for(encoding :: String.t() | atom) :: atom def encoder_for(encoding) when is_atom(encoding) do encoding |> normal...
32.852941
79
0.697404
7a9062cfa5295c3480773516a17fface942e6bb8
5,574
ex
Elixir
lib/norm/spec/selection.ex
wojtekmach/norm
651266a07e947d1057d31744e9eab459dcc4afe7
[ "MIT" ]
1
2019-12-27T18:28:14.000Z
2019-12-27T18:28:14.000Z
lib/norm/spec/selection.ex
wojtekmach/norm
651266a07e947d1057d31744e9eab459dcc4afe7
[ "MIT" ]
null
null
null
lib/norm/spec/selection.ex
wojtekmach/norm
651266a07e947d1057d31744e9eab459dcc4afe7
[ "MIT" ]
null
null
null
defmodule Norm.Spec.Selection do @moduledoc false # Provides the definition for selections defstruct required: [], schema: nil alias Norm.Schema alias Norm.SpecError def new(schema, selectors) do # We're going to front load some work so that we can ensure that people are # requiring keys that act...
31.670455
122
0.624327
7a906ac40c9f3d7e0c882000f383c40b23fef03f
2,578
ex
Elixir
lib/services/event_service.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
11
2016-08-18T23:18:57.000Z
2019-05-03T17:46:55.000Z
lib/services/event_service.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
105
2016-08-17T23:36:07.000Z
2019-09-26T18:14:24.000Z
lib/services/event_service.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
14
2016-08-17T17:23:45.000Z
2019-09-16T16:14:59.000Z
defmodule Aprb.Service.EventService do import Ecto.Query alias Aprb.{Repo, Topic, Subscriber, Subscription, Service.SummaryService, SubscriptionHelper} def receive_event(event, topic, routing_key) do event |> Poison.decode! |> slack_message(topic, routing_key) |> post_message(topic, routing...
36.828571
155
0.659038
7a9071d1e4b7b3759ae6c3f51f1af2aabde6d397
1,021
ex
Elixir
rocketpay/lib/rocketpay/user.ex
victorabarros/rocketpay
6bc1fbcd0240c44d720a6c86ab4c45249a6c1230
[ "MIT" ]
null
null
null
rocketpay/lib/rocketpay/user.ex
victorabarros/rocketpay
6bc1fbcd0240c44d720a6c86ab4c45249a6c1230
[ "MIT" ]
null
null
null
rocketpay/lib/rocketpay/user.ex
victorabarros/rocketpay
6bc1fbcd0240c44d720a6c86ab4c45249a6c1230
[ "MIT" ]
null
null
null
defmodule Rocketpay.User do use Ecto.Schema import Ecto.Changeset alias Ecto.Changeset @primary_key {:id, :binary_id, autogenerate: true} @required_params [:name, :age, :email, :password, :nickname] schema "users" do field :name, :string field :age, :integer field :email, :string field :pa...
28.361111
97
0.685602
7a90d10208c790c1f11f82b07d2baff775740d0a
1,295
exs
Elixir
modulesfunctions/namedfunctions.exs
ezkemboi/elixir
5641c8c9cc24b5e51546328b7fbba04d3b28e3b2
[ "Apache-2.0" ]
1
2020-01-21T19:58:41.000Z
2020-01-21T19:58:41.000Z
modulesfunctions/namedfunctions.exs
ezkemboi/elixir
5641c8c9cc24b5e51546328b7fbba04d3b28e3b2
[ "Apache-2.0" ]
null
null
null
modulesfunctions/namedfunctions.exs
ezkemboi/elixir
5641c8c9cc24b5e51546328b7fbba04d3b28e3b2
[ "Apache-2.0" ]
null
null
null
~S""" inside module, def/2 define functions while defp/2 defines private functions def/2 can be invoked from any other module but defp/2 can be invoked locally """ defmodule MathCal do def sum(a, b) do do_sum(a, b) end defp do_sum(a, b) do a + b end end IO.puts MathCal.sum(1, 2) # ret...
24.903846
75
0.705019
7a90df9ca090fa8f1ac7a1d093d07f351cdd90f8
2,309
exs
Elixir
test/pca_predict/address_validation_test.exs
sauce-consultants/pca_predict
e49fb08d6dcbf013342b2c796e8ca0fa14f3a01d
[ "CC0-1.0" ]
null
null
null
test/pca_predict/address_validation_test.exs
sauce-consultants/pca_predict
e49fb08d6dcbf013342b2c796e8ca0fa14f3a01d
[ "CC0-1.0" ]
null
null
null
test/pca_predict/address_validation_test.exs
sauce-consultants/pca_predict
e49fb08d6dcbf013342b2c796e8ca0fa14f3a01d
[ "CC0-1.0" ]
null
null
null
defmodule PCAPredict.AddressValidationTest do use ExUnit.Case doctest PCAPredict alias PCAPredict.Support.CaptureJsonResponse setup do bypass = PCAPredict.Support.Bypass.setup_and_open {:ok, bypass: bypass} end test "request with a valid postcode returns a valid response", %{bypass: bypass} do ...
37.241935
101
0.706799
7a90dfc52f6555e9856d8e4076c33923e2ebd616
1,883
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.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...
35.528302
298
0.768986
7a91249743021cf94314d48d96d03656a74c8154
719
ex
Elixir
apps/astarte_realm_management_api/lib/astarte_realm_management_api_web/metrics/prometheus_exporter.ex
Spidey20202022/astarte
3950855c592b34363af0cf7f8a921762ce64e512
[ "Apache-2.0" ]
1
2020-02-04T13:15:22.000Z
2020-02-04T13:15:22.000Z
apps/astarte_realm_management_api/lib/astarte_realm_management_api_web/metrics/prometheus_exporter.ex
Spidey20202022/astarte
3950855c592b34363af0cf7f8a921762ce64e512
[ "Apache-2.0" ]
1
2020-01-20T09:52:48.000Z
2020-01-20T09:52:48.000Z
apps/astarte_realm_management_api/lib/astarte_realm_management_api_web/metrics/prometheus_exporter.ex
Spidey20202022/astarte
3950855c592b34363af0cf7f8a921762ce64e512
[ "Apache-2.0" ]
1
2020-02-04T13:15:50.000Z
2020-02-04T13:15:50.000Z
# # This file is part of Astarte. # # Copyright 2020 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.681818
74
0.771905
7a913c3e3e85fd936635f0da769859616abe6be1
1,096
exs
Elixir
mix.exs
hpopp/kurpo-bot
cefc8772c0f5c404c139677bffd54b3da46ba430
[ "MIT" ]
null
null
null
mix.exs
hpopp/kurpo-bot
cefc8772c0f5c404c139677bffd54b3da46ba430
[ "MIT" ]
null
null
null
mix.exs
hpopp/kurpo-bot
cefc8772c0f5c404c139677bffd54b3da46ba430
[ "MIT" ]
null
null
null
defmodule KurpoBot.MixProject do use Mix.Project @version String.trim(File.read!("VERSION")) def project do [ app: :kurpo_bot, deps: deps(), elixir: "~> 1.10", elixirc_options: [warnings_as_errors: true], elixirc_paths: elixirc_paths(Mix.env()), releases: releases(), ...
21.076923
59
0.576642
7a9140ae33d0e2310b017e784d7c699febf5f00a
599
exs
Elixir
api/priv/repo/seeds.exs
civica-digital/api-estados
dd1a338e4409c01994e931c29e5cc2f328e7e3f4
[ "Apache-2.0" ]
11
2017-01-20T15:54:54.000Z
2020-03-24T19:12:34.000Z
api/priv/repo/seeds.exs
civica-digital/api-estados
dd1a338e4409c01994e931c29e5cc2f328e7e3f4
[ "Apache-2.0" ]
13
2017-02-07T21:45:36.000Z
2017-04-13T17:38:08.000Z
api/priv/repo/seeds.exs
civica-digital/api-estados
dd1a338e4409c01994e931c29e5cc2f328e7e3f4
[ "Apache-2.0" ]
9
2017-03-13T19:49:04.000Z
2021-01-16T00:24:55.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Api.Repo.insert!(%Api.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail if ...
22.185185
61
0.742905
7a9197acdc126985f973c248d5959290d4936960
654
ex
Elixir
www/lib/krihelinator/github/language.ex
Nagasaki45/krihelinator
243bfe476b8128dc2f0fcd913bebd8cf20b7deb6
[ "MIT" ]
47
2016-07-17T08:49:36.000Z
2020-11-06T14:12:15.000Z
www/lib/krihelinator/github/language.ex
Nagasaki45/krihelinator
243bfe476b8128dc2f0fcd913bebd8cf20b7deb6
[ "MIT" ]
181
2016-07-11T13:20:40.000Z
2019-10-22T14:43:40.000Z
www/lib/krihelinator/github/language.ex
Nagasaki45/krihelinator
243bfe476b8128dc2f0fcd913bebd8cf20b7deb6
[ "MIT" ]
2
2017-02-25T16:19:09.000Z
2017-12-24T20:22:32.000Z
defmodule Krihelinator.Github.Language do use Krihelinator.Web, :model @moduledoc """ A programming language found on Github. """ @derive {Poison.Encoder, only: ~w(id name krihelimeter)a} schema "languages" do field :name, :string field :krihelimeter, :integer has_many :repos, Krihelinator.Git...
23.357143
59
0.674312
7a919db4373f63282f3f4c84f4bc6e28f0480c92
156
ex
Elixir
lib/playwright/frame.ex
Proporus/playwright-elixir
639fea3c7076657a9104e6fd742b0c2f4e2f167f
[ "MIT" ]
null
null
null
lib/playwright/frame.ex
Proporus/playwright-elixir
639fea3c7076657a9104e6fd742b0c2f4e2f167f
[ "MIT" ]
null
null
null
lib/playwright/frame.ex
Proporus/playwright-elixir
639fea3c7076657a9104e6fd742b0c2f4e2f167f
[ "MIT" ]
null
null
null
defmodule Playwright.Frame do @moduledoc false use Playwright.Runner.ChannelOwner def new(parent, args) do channel_owner(parent, args) end end
17.333333
36
0.75641
7a91b0e6ce2909a1d3df58592bf161db52c17fed
1,109
ex
Elixir
test/support/channel_case.ex
pzingg/phoenix_16_example
7f4160de837229101e18a4e1cc97a00f4af5aaa7
[ "MIT" ]
null
null
null
test/support/channel_case.ex
pzingg/phoenix_16_example
7f4160de837229101e18a4e1cc97a00f4af5aaa7
[ "MIT" ]
null
null
null
test/support/channel_case.ex
pzingg/phoenix_16_example
7f4160de837229101e18a4e1cc97a00f4af5aaa7
[ "MIT" ]
null
null
null
defmodule Example16Web.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...
29.972973
90
0.739405
7a91caf323c43843983f05d23bc08a638192db68
41,920
ex
Elixir
lib/elixir/lib/gen_server.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/gen_server.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/gen_server.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
defmodule GenServer do @moduledoc """ A behaviour module for implementing the server of a client-server relation. A GenServer is a process like any other Elixir process and it can be used to keep state, execute code asynchronously and so on. The advantage of using a generic server process (GenServer) impleme...
37.163121
129
0.666341
7a920c935376ee0d642f9a2105a940024b31bae3
123
exs
Elixir
sources/Chapter10/pipeline.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
sources/Chapter10/pipeline.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
sources/Chapter10/pipeline.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
[1, 2, 3, 4, 5] |> Enum.map(&(&1*&1)) |> Enum.with_index |> Enum.map(fn {value, index} -> value - index end) |> IO.inspect
20.5
51
0.560976
7a9217d21d986eac039a7afc482f4d86d88ec9e4
130
exs
Elixir
test/hedwig_irc_test.exs
joshproehl/hedwig_irc_adapter
01650c42e2a6e237c866604ecef1d7d6597853b2
[ "MIT" ]
15
2016-03-26T13:17:26.000Z
2021-04-30T17:02:05.000Z
test/hedwig_irc_test.exs
joshproehl/hedwig_irc_adapter
01650c42e2a6e237c866604ecef1d7d6597853b2
[ "MIT" ]
6
2017-06-25T21:16:59.000Z
2020-07-26T05:06:36.000Z
test/hedwig_irc_test.exs
joshproehl/hedwig_irc_adapter
01650c42e2a6e237c866604ecef1d7d6597853b2
[ "MIT" ]
12
2016-11-15T14:14:15.000Z
2021-03-10T15:30:50.000Z
defmodule HedwigIrcTest do use ExUnit.Case doctest Hedwig.Adapters.IRC test "the truth" do assert 1 + 1 == 2 end end
14.444444
29
0.692308
7a923303551da01f56b369ebfee604426424a1cc
2,474
ex
Elixir
lib/desk_clock/faces/basic.ex
mtrudel/desk_clock
9e6ea5ea58bbab12a7188b3c00237f2a8bf066a6
[ "MIT" ]
7
2020-07-30T23:58:52.000Z
2022-01-24T19:10:11.000Z
lib/desk_clock/faces/basic.ex
mtrudel/desk_clock
9e6ea5ea58bbab12a7188b3c00237f2a8bf066a6
[ "MIT" ]
null
null
null
lib/desk_clock/faces/basic.ex
mtrudel/desk_clock
9e6ea5ea58bbab12a7188b3c00237f2a8bf066a6
[ "MIT" ]
1
2020-12-22T15:28:16.000Z
2020-12-22T15:28:16.000Z
defmodule DeskClock.Faces.Basic do @moduledoc """ A simple face that doesn't try to be at all clever about drawing, doing the whole screen on every pass """ @behaviour DeskClock.Face alias ExPaint.{Color, Font} @impl DeskClock.Face def create(upper_zone, lower_zone) do %{ label_font: Font.l...
25.244898
83
0.650768
7a924a230480d00e1b5df48565a55359964e4a0a
1,373
ex
Elixir
elixir/test/support/data_case.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
1
2019-04-29T17:46:44.000Z
2019-04-29T17:46:44.000Z
elixir/test/support/data_case.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
elixir/test/support/data_case.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
defmodule Junks.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test r...
25.425926
77
0.677349
7a9273b0388ad28731c5a988d06af677d97536db
3,253
ex
Elixir
lib/chat_api/accounts/account.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api/accounts/account.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api/accounts/account.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Accounts.Account do use Ecto.Schema import Ecto.Changeset alias ChatApi.Accounts.{Settings, WorkingHours} alias ChatApi.Customers.Customer alias ChatApi.Conversations.Conversation alias ChatApi.Messages.Message alias ChatApi.Users.User alias ChatApi.WidgetSettings.WidgetSetting alia...
30.401869
70
0.670458
7a927b2e6209a7af722593c0a30d7edeefc3539e
198
ex
Elixir
lib/phone/zw.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/zw.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/zw.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
defmodule Phone.ZW do @moduledoc false use Helper.Country def regex, do: ~r/^(263)()(.+)/ def country, do: "Zimbabwe" def a2, do: "ZW" def a3, do: "ZWE" matcher :regex, ["263"] end
15.230769
33
0.60101
7a927bccf429713f9450d1fb66d0fabba9d9f1bd
2,256
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/optimization_activity.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/optimization_activity.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/optimization_activity.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
41.777778
255
0.74867
7a92b4c44661e2016d9dac75b36b4800cc79f1dd
1,313
ex
Elixir
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__list_models_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__list_models_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__list_models_response.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.825
104
0.763899
7a92c0d05c1efa51318a183939bbef4db50de16f
1,270
exs
Elixir
test/storeHall/chats_test.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
null
null
null
test/storeHall/chats_test.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
4
2019-07-16T06:24:42.000Z
2021-05-07T22:26:14.000Z
test/storeHall/chats_test.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
1
2018-11-23T21:13:31.000Z
2018-11-23T21:13:31.000Z
defmodule StoreHall.ChatsTest do use StoreHall.DataCase use ExUnitProperties alias StoreHall.Fixture alias StoreHall.Chats describe "item chats" do test "for_item/1 returns all chats" do user = Fixture.generate_user() item = Fixture.generate_item(user) check all author <- Fixture.user...
27.608696
79
0.593701
7a92cd98c16b184ae6431b392f7f23bf7a7599f6
438
exs
Elixir
config/test.exs
edenlabllc/pkcs7_verify.api
ec2cfcd4892babae345ac485b833455773f1222b
[ "MIT" ]
1
2020-09-25T10:10:16.000Z
2020-09-25T10:10:16.000Z
config/test.exs
Nebo15/pkcs7_verify.api
ec2cfcd4892babae345ac485b833455773f1222b
[ "MIT" ]
null
null
null
config/test.exs
Nebo15/pkcs7_verify.api
ec2cfcd4892babae345ac485b833455773f1222b
[ "MIT" ]
1
2018-01-16T14:37:16.000Z
2018-01-16T14:37:16.000Z
use Mix.Config # Configuration for test environment config :ex_unit, capture_log: true # We don't run a server during test. If one is required, # you can enable the server option below. config :pkcs7_verify_api, PKCS7Verify.Web.Endpoint, http: [port: 4001], server: true # Print only warnings and errors during te...
25.764706
56
0.769406
7a92cea9ab52d9887102633e0a0978a570b2c4c6
84
exs
Elixir
test/servantex_web/views/page_view_test.exs
alisinabh/servantex
03bd4b7c1c47fc926a37b52670394f827c2d97ad
[ "Apache-2.0" ]
null
null
null
test/servantex_web/views/page_view_test.exs
alisinabh/servantex
03bd4b7c1c47fc926a37b52670394f827c2d97ad
[ "Apache-2.0" ]
null
null
null
test/servantex_web/views/page_view_test.exs
alisinabh/servantex
03bd4b7c1c47fc926a37b52670394f827c2d97ad
[ "Apache-2.0" ]
null
null
null
defmodule ServantexWeb.PageViewTest do use ServantexWeb.ConnCase, async: true end
21
40
0.833333
7a92d68ef999ab4419bc6cb54e2bf93bc9b62e5b
957
ex
Elixir
apps/crm_web/lib/crm_web/controllers/contact_controller.ex
jdambron/phoenix_crm
6d17280e3a6655990840f4714a338f58b7d0c756
[ "MIT" ]
null
null
null
apps/crm_web/lib/crm_web/controllers/contact_controller.ex
jdambron/phoenix_crm
6d17280e3a6655990840f4714a338f58b7d0c756
[ "MIT" ]
1
2020-04-06T07:42:36.000Z
2020-04-06T07:42:36.000Z
apps/crm_web/lib/crm_web/controllers/contact_controller.ex
jdambron/phoenix_crm
6d17280e3a6655990840f4714a338f58b7d0c756
[ "MIT" ]
null
null
null
defmodule CrmWeb.ContactController do use CrmWeb, :controller def index(conn, _params) do contacts = Crm.list_contacts() render(conn, "index.html", contacts: contacts) end def show(conn, %{"id" => id}) do contact = Crm.get_contact_with_preloads(id) render(conn, "show.html", contact: contact) ...
29
96
0.670846
7a92f477ead66e023b52036a2700c77d772a7ceb
6,699
ex
Elixir
lib/livebook_web/helpers.ex
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/helpers.ex
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/helpers.ex
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.Helpers do use Phoenix.Component alias LivebookWeb.Router.Helpers, as: Routes @doc """ Renders a component inside the `Livebook.ModalComponent` component. The rendered modal receives a `:return_to` option to properly update the URL when the modal is closed. """ def live_modal(co...
26.796
123
0.607255
7a93359c3fee9762b8885ee90ced9ad921dbe35b
5,917
ex
Elixir
lib/absinthe/phase/schema/validation/object_must_implement_interfaces.ex
zoldar/absinthe
72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c
[ "MIT" ]
2
2021-04-22T23:45:04.000Z
2021-05-07T01:01:15.000Z
lib/absinthe/phase/schema/validation/object_must_implement_interfaces.ex
zoldar/absinthe
72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c
[ "MIT" ]
1
2020-04-07T23:46:38.000Z
2020-04-07T23:46:38.000Z
lib/absinthe/phase/schema/validation/object_must_implement_interfaces.ex
zoldar/absinthe
72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c
[ "MIT" ]
null
null
null
defmodule Absinthe.Phase.Schema.Validation.ObjectMustImplementInterfaces do use Absinthe.Phase alias Absinthe.Blueprint def run(bp, _) do bp = Blueprint.prewalk(bp, &handle_schemas/1) {:ok, bp} end defp handle_schemas(%Blueprint.Schema.SchemaDefinition{} = schema) do ifaces = schema.type_d...
30.035533
124
0.659456
7a9339a1f28b8d4f6299821b4e2b94c0d2dab72c
4,951
ex
Elixir
lib/nosedrum/predicates.ex
Bentheburrito/nosedrum
944fd69a640473c4fb8fe3b3bdefc3522c5757a0
[ "0BSD" ]
25
2019-02-10T01:22:02.000Z
2022-03-16T08:34:04.000Z
lib/nosedrum/predicates.ex
Bentheburrito/nosedrum
944fd69a640473c4fb8fe3b3bdefc3522c5757a0
[ "0BSD" ]
19
2019-04-11T19:02:18.000Z
2022-02-18T18:32:13.000Z
lib/nosedrum/predicates.ex
Bentheburrito/nosedrum
944fd69a640473c4fb8fe3b3bdefc3522c5757a0
[ "0BSD" ]
6
2020-09-22T09:06:24.000Z
2022-02-05T03:26:42.000Z
defmodule Nosedrum.Predicates do @moduledoc """ Built-in command predicates and predicate evaluation. `c:Nosedrum.Command.predicates/0` allows commands to specify a set of conditions that must be met before a command is invoked, effectively allowing you to deny access to certain access. For instance, allowin...
33.910959
98
0.668754
7a93ad49585fda9264cae13bd6bfd9a5ce14668d
1,718
ex
Elixir
clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_trigger_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_trigger_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_trigger_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...
36.553191
287
0.75553
7a93ad9e648ad16b273505ee594a6a99c59e762a
4,994
ex
Elixir
web/models/user.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/models/user.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/models/user.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
defmodule CodeCorps.User do @moduledoc """ This module defines a user of the Code Corps app. """ use Arc.Ecto.Schema use CodeCorps.Web, :model import CodeCorps.Base64ImageUploader import CodeCorps.Validators.SlugValidator import CodeCorps.ModelHelpers alias CodeCorps.SluggedRoute alias Comeonin.Bcr...
29.034884
127
0.668803
7a93c53ec5d9a6fbee3630cc429b565e8654ed65
620
ex
Elixir
apps/artemis/lib/artemis/contexts/role/create_role.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis/lib/artemis/contexts/role/create_role.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/lib/artemis/contexts/role/create_role.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule Artemis.CreateRole do use Artemis.Context use Assoc.Updater, repo: Artemis.Repo alias Artemis.Repo alias Artemis.Role def call!(params, user) do case call(params, user) do {:error, _} -> raise(Artemis.Context.Error, "Error creating role") {:ok, result} -> result end end de...
20.666667
72
0.643548
7a93e1ebaeb302610a4b3b967746b37a72a18be1
1,746
ex
Elixir
lib/brando/blueprint/constraints.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
lib/brando/blueprint/constraints.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
lib/brando/blueprint/constraints.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule Brando.Blueprint.Constraints do import Ecto.Changeset def run_validations(changeset, _module, attributes) do attributes |> Enum.filter(&Map.get(&1.opts, :constraints, false)) |> Enum.reduce(changeset, fn %{opts: %{constraints: constraints}} = attr, new_changeset -> constraints_m...
38.8
89
0.726804
7a943597a59bb58be248c3f6df9c7294cf2a161b
129
ex
Elixir
lib/conekta_ex/discount_line.ex
Neovirxp/conekta_ex
61556a33b8f7f494aa71ce8ab419ffc12369ef31
[ "MIT" ]
1
2018-09-23T14:38:33.000Z
2018-09-23T14:38:33.000Z
lib/conekta_ex/discount_line.ex
Neovirxp/conekta_ex
61556a33b8f7f494aa71ce8ab419ffc12369ef31
[ "MIT" ]
null
null
null
lib/conekta_ex/discount_line.ex
Neovirxp/conekta_ex
61556a33b8f7f494aa71ce8ab419ffc12369ef31
[ "MIT" ]
1
2019-08-02T12:14:58.000Z
2019-08-02T12:14:58.000Z
defmodule ConektaEx.DiscountLine do @type t :: %__MODULE__{} defstruct [ :id, :code, :type, :amount ] end
11.727273
35
0.581395
7a944db05692f9f9fae64c8737647034dd149ee4
112
exs
Elixir
config/dev.exs
Cameron-Kurth/elixir-alpha_vantage
b1c489211090b98726db536bdea4ddd20eee8bc5
[ "MIT" ]
null
null
null
config/dev.exs
Cameron-Kurth/elixir-alpha_vantage
b1c489211090b98726db536bdea4ddd20eee8bc5
[ "MIT" ]
null
null
null
config/dev.exs
Cameron-Kurth/elixir-alpha_vantage
b1c489211090b98726db536bdea4ddd20eee8bc5
[ "MIT" ]
null
null
null
use Mix.Config if File.exists?(Path.join([__DIR__, "dev.secret.exs"])) do import_config "dev.secret.exs" end
18.666667
58
0.723214
7a94522c7b801ff5ce424e4164e31d7d7ba07e4a
2,361
exs
Elixir
test/phoenix_react_playground/examples/examples_test.exs
vinej/tpr
4377a6cbe2b1105731296ad7630a905c40acd2de
[ "Unlicense" ]
null
null
null
test/phoenix_react_playground/examples/examples_test.exs
vinej/tpr
4377a6cbe2b1105731296ad7630a905c40acd2de
[ "Unlicense" ]
null
null
null
test/phoenix_react_playground/examples/examples_test.exs
vinej/tpr
4377a6cbe2b1105731296ad7630a905c40acd2de
[ "Unlicense" ]
null
null
null
defmodule PhoenixReactPlayground.ExamplesTest do use PhoenixReactPlayground.DataCase alias PhoenixReactPlayground.Examples describe "languages" do alias PhoenixReactPlayground.Examples.Language @valid_attrs %{name: "some name", proverb: "some proverb"} @update_attrs %{name: "some updated name", pro...
34.720588
93
0.698009
7a945e05684afe37052221186d7bb6d39e782558
1,416
exs
Elixir
phoenix_sideque_poc/config/config.exs
waferelectronics/rails_phoenix_sidekiq_communication
e9cee8fc6b39106e9acdf306140e840e0c286722
[ "MIT" ]
null
null
null
phoenix_sideque_poc/config/config.exs
waferelectronics/rails_phoenix_sidekiq_communication
e9cee8fc6b39106e9acdf306140e840e0c286722
[ "MIT" ]
null
null
null
phoenix_sideque_poc/config/config.exs
waferelectronics/rails_phoenix_sidekiq_communication
e9cee8fc6b39106e9acdf306140e840e0c286722
[ "MIT" ]
1
2020-06-05T12:39:23.000Z
2020-06-05T12:39:23.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config # Configures the endpoint config :phoenix_sidequ...
28.897959
90
0.751412
7a947fb8f5406bade23dba5b70192b28a5c74601
5,496
ex
Elixir
clients/fact_check_tools/lib/google_api/fact_check_tools/v1alpha1/api/claims.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/fact_check_tools/lib/google_api/fact_check_tools/v1alpha1/api/claims.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/fact_check_tools/lib/google_api/fact_check_tools/v1alpha1/api/claims.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...
47.791304
196
0.656659
7a94856f4378dc62dcfdff22669cdba964cb8285
4,481
ex
Elixir
aoc-2020/day4/lib/day4.ex
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day4/lib/day4.ex
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day4/lib/day4.ex
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
defmodule Day4 do def run_part1() do AOCHelper.read_input() |> PassportValidator.validate_batch(false) end def run_part2() do AOCHelper.read_input() |> PassportValidator.validate_batch(true) end def debug_sample() do [ "ecl:gry pid:860033327 eyr:2020 hcl:#fffffd", "byr:1937 i...
30.482993
141
0.598304
7a94a510d5f998e38438e44caee2f04c46387537
1,322
ex
Elixir
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/extended_source_context.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/extended_source_context.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/extended_source_context.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...
33.05
102
0.760968
7a94a59dc3e7ee65b4fa8fd032629e009c814351
1,101
ex
Elixir
lib/google_api/you_tube/v3/model/guide_category_snippet.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
lib/google_api/you_tube/v3/model/guide_category_snippet.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
lib/google_api/you_tube/v3/model/guide_category_snippet.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
28.973684
79
0.746594
7a94c33e35d2ca4f76e6c3b79f276b74291570df
20,782
exs
Elixir
apps/reaper/test/integration/reaper/reaper_full_test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
1
2020-03-18T21:14:39.000Z
2020-03-18T21:14:39.000Z
apps/reaper/test/integration/reaper/reaper_full_test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
apps/reaper/test/integration/reaper/reaper_full_test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
defmodule Reaper.FullTest do use ExUnit.Case use Divo use Tesla use Placebo import Checkov require Logger alias SmartCity.TestDataGenerator, as: TDG import SmartCity.TestHelper import SmartCity.Event, only: [ dataset_update: 0, dataset_disable: 0, dataset_delete: 0, data_...
30.516887
123
0.58618
7a94cc9161c4e352d894214210b30c24bbac9ad8
605
ex
Elixir
lib/militerm/command/plugs/commands.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
6
2017-06-16T10:26:35.000Z
2021-04-07T15:01:00.000Z
lib/militerm/command/plugs/commands.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
2
2020-04-14T02:17:46.000Z
2021-03-10T11:09:05.000Z
lib/militerm/command/plugs/commands.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
null
null
null
defmodule Militerm.Command.Plugs.Commands do def run(%{entity: entity, input: <<"@", input::binary>>, context: context} = info, _) do {command, rest} = case String.split(input, " ", parts: 2) do [command] -> {command, ""} [command, rest] -> {command, rest} end case Militerm.Servic...
28.809524
90
0.571901
7a94e8a839df6fe76eb7e1b9ce1b9f4720a7c1cc
820
ex
Elixir
nucleotide-count/lib/nucleotide_count.ex
koladilip/elixir-examples
49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3
[ "MIT" ]
null
null
null
nucleotide-count/lib/nucleotide_count.ex
koladilip/elixir-examples
49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3
[ "MIT" ]
null
null
null
nucleotide-count/lib/nucleotide_count.ex
koladilip/elixir-examples
49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3
[ "MIT" ]
null
null
null
defmodule NucleotideCount do @doc """ Counts individual nucleotides in a DNA strand. ## Examples iex> NucleotideCount.count('AATAA', ?A) 4 iex> NucleotideCount.count('AATAA', ?T) 1 """ @spec count(charlist(), char()) :: non_neg_integer() def count(strand, nucleotide) do List.foldl(strand, 0, ...
21.025641
82
0.570732
7a953a7b0ec997112acb354389aa4ea29bb698ee
341
ex
Elixir
06-chapter/03_example.ex
herminiotorres/programming-elixir
70add5ec9fe7f91129da0a4e39ab329afb9be598
[ "MIT" ]
null
null
null
06-chapter/03_example.ex
herminiotorres/programming-elixir
70add5ec9fe7f91129da0a4e39ab329afb9be598
[ "MIT" ]
null
null
null
06-chapter/03_example.ex
herminiotorres/programming-elixir
70add5ec9fe7f91129da0a4e39ab329afb9be598
[ "MIT" ]
null
null
null
defmodule Factorial do def of(0), do: 1 def of(n), do: n * of(n - 1) end "Factorial.of(3)" |> IO.puts() Factorial.of(3) |> IO.inspect() "Factorial.of(7)" |> IO.puts() Factorial.of(7) |> IO.inspect() "Factorial.of(10)" |> IO.puts() Factorial.of(10) |> IO.inspect() "Factorial.of(1000)" |> IO.puts() Factorial.of(1...
20.058824
34
0.612903
7a9542873ff269f7c29636823b099ad66f544aee
2,264
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filtered_bid_requests_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filtered_bid_requests_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filtered_bid_requests_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.375
195
0.746466