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
f759dcd972aa30208a673664b0b4b384f1a7047a
1,362
ex
Elixir
lib/mix/k8s/swagger.ex
coryodaniel/k8s_client
88fb9490db72e947b2d216637769134bc4ebdfbd
[ "MIT" ]
5
2019-01-12T16:56:05.000Z
2021-04-10T04:06:13.000Z
lib/mix/k8s/swagger.ex
coryodaniel/k8s_client
88fb9490db72e947b2d216637769134bc4ebdfbd
[ "MIT" ]
12
2019-01-08T23:42:56.000Z
2019-01-26T19:07:50.000Z
lib/mix/k8s/swagger.ex
coryodaniel/k8s_client
88fb9490db72e947b2d216637769134bc4ebdfbd
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.K8s.Swagger do @moduledoc """ Download a kubernetes swagger spec. """ use Mix.Task @switches [version: :string] @aliases [v: :version] @defaults [version: "master"] @shortdoc "Downloads a k8s swagger spec" @spec run([binary()]) :: nil | :ok def run(args) do {:ok, _started} ...
25.222222
114
0.654919
f759e203b6aad5a1df48ced28ceb2c1c9a04f1d0
66,083
ex
Elixir
lib/elixir/lib/enum.ex
Gazler/elixir
e934e3c92edbc9c83da7795ec3a028ff86218c4b
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
Gazler/elixir
e934e3c92edbc9c83da7795ec3a028ff86218c4b
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
Gazler/elixir
e934e3c92edbc9c83da7795ec3a028ff86218c4b
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression Enum.map([1, 2, 3], &(&1 * 2)) invokes underne...
25.623497
129
0.599927
f759fdcea46a64b8d9dc5f8f58c9978226d2095a
217
exs
Elixir
apps/activity_logger/config/test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/activity_logger/config/test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/activity_logger/config/test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
use Mix.Config config :activity_logger, ActivityLogger.Repo, pool: Ecto.Adapters.SQL.Sandbox, url: {:system, "DATABASE_URL", "postgres://localhost/ewallet_test"}, queue_target: 10_000, queue_interval: 60_000
27.125
70
0.760369
f75a297a3082fccbeea8b67ce1a7274b8963db21
21,770
ex
Elixir
lib/console_web/controllers/label_controller.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
lib/console_web/controllers/label_controller.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
1
2021-04-03T09:29:31.000Z
2021-04-03T09:29:31.000Z
lib/console_web/controllers/label_controller.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
defmodule ConsoleWeb.LabelController do use ConsoleWeb, :controller alias Console.Repo alias Console.Labels alias Console.Devices alias Console.Channels alias Console.Functions alias Console.Labels.Label plug ConsoleWeb.Plug.AuthorizeAction action_fallback(ConsoleWeb.FallbackController) def crea...
47.741228
162
0.705145
f75a30cf15da571d42d1ef943c46efb10c016f52
2,034
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/import_dicom_data_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/model/import_dicom_data_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/import_dicom_data_request.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...
40.68
314
0.77237
f75a66b13f2bcb6268c834e66911001d369492e2
2,756
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/lifecycle.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/lifecycle.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/lifecycle.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
55.12
525
0.771771
f75a67a021e53c3561036000a1886cae030819b7
3,375
ex
Elixir
lib/vutuv_web/controllers/work_experience_controller.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
309
2016-05-03T17:16:23.000Z
2022-03-01T09:30:22.000Z
lib/vutuv_web/controllers/work_experience_controller.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
662
2016-04-27T07:45:18.000Z
2022-01-05T07:29:19.000Z
lib/vutuv_web/controllers/work_experience_controller.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
40
2016-04-27T07:46:22.000Z
2021-12-31T05:54:34.000Z
defmodule VutuvWeb.WorkExperienceController do use VutuvWeb, :controller import VutuvWeb.Authorize alias Vutuv.{Biographies, Biographies.WorkExperience, UserProfiles, UserProfiles.User} @dialyzer {:nowarn_function, new: 3} def action(conn, _), do: auth_action_slug(conn, __MODULE__, [:index, :show]) def...
40.178571
95
0.712
f75a8f98006ea33db78e1fe2e3bf37fed818054e
2,137
exs
Elixir
youtube/elixir_casts/chat/test/chat/chats_test.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
youtube/elixir_casts/chat/test/chat/chats_test.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
1
2021-03-28T13:57:15.000Z
2021-03-29T12:42:21.000Z
youtube/elixir_casts/chat/test/chat/chats_test.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
defmodule Chat.ChatsTest do use Chat.DataCase alias Chat.Chats describe "messages" do alias Chat.Chats.Message @valid_attrs %{body: "some body", name: "some name"} @update_attrs %{body: "some updated body", name: "some updated name"} @invalid_attrs %{body: nil, name: nil} def message_fixtu...
31.895522
88
0.670098
f75a93ece3aa1857e89eb0e0c6753387ed836257
89
exs
Elixir
test/views/layout_view_test.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
defmodule PhoenixJsonApi.LayoutViewTest do use PhoenixJsonApi.ConnCase, async: true end
29.666667
42
0.853933
f75acb37b47a0bf0ff5b40c721b7fa88290d870a
546
ex
Elixir
examples/ecto_poll_queue/lib/ecto_poll_queue_example/classify_photo.ex
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
717
2015-06-15T19:30:54.000Z
2022-03-22T06:10:09.000Z
examples/ecto_poll_queue/lib/ecto_poll_queue_example/classify_photo.ex
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
106
2015-06-25T05:38:05.000Z
2021-12-08T23:17:19.000Z
examples/ecto_poll_queue/lib/ecto_poll_queue_example/classify_photo.ex
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
60
2015-06-07T00:48:37.000Z
2022-03-06T08:20:23.000Z
defmodule EctoPollQueueExample.ClassifyPhoto do alias EctoPollQueueExample.Photo alias EctoPollQueueExample.Repo def run(id) do photo = Repo.get(Photo, id) if photo.sleep do Process.sleep(photo.sleep) end if photo.from do send(photo.from, {:classify_job_ran, id}) end if pho...
20.222222
65
0.657509
f75af09de4a38d72274c3459f29104fa0191605a
1,906
exs
Elixir
rel/config.exs
ndac-todoroki/DiscordSplatoonBot
6a082b0352684cb64d36fe9116e7f060691cba37
[ "MIT" ]
6
2017-08-10T13:57:06.000Z
2019-01-17T08:48:40.000Z
rel/config.exs
ndac-todoroki/DiscordSplatoonBot
6a082b0352684cb64d36fe9116e7f060691cba37
[ "MIT" ]
14
2017-08-08T13:07:00.000Z
2019-02-28T15:10:18.000Z
rel/config.exs
ndac-todoroki/DiscordSplatoonBot
6a082b0352684cb64d36fe9116e7f060691cba37
[ "MIT" ]
null
null
null
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. ~w(rel plugins *.exs) |> Path.join() |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # This ...
31.766667
82
0.723505
f75b3d317f574ec9dd04618ff59d78fde0ba782e
200
ex
Elixir
lib/mail_in_a_box/miab_imap.ex
ourway/mail_in_a_box
6c0123fb842dcd98dee970ad5501f2a18afd5a91
[ "MIT" ]
null
null
null
lib/mail_in_a_box/miab_imap.ex
ourway/mail_in_a_box
6c0123fb842dcd98dee970ad5501f2a18afd5a91
[ "MIT" ]
null
null
null
lib/mail_in_a_box/miab_imap.ex
ourway/mail_in_a_box
6c0123fb842dcd98dee970ad5501f2a18afd5a91
[ "MIT" ]
null
null
null
defmodule MIAB.IMAP do @moduledoc false @settings Application.get_env(:mail_in_a_box, __MODULE__) for {_k, _v} <- @settings do :pass # :ok = Application.put_env(:eximap, k, v) end end
22.222222
59
0.685
f75b4812edf6fe3c1d43eaedc6eadd0d46ebbaef
218
ex
Elixir
lib/team_budget_graphql/resolvers/types.ex
AkioCode/elxpro4-teambudget
a7e67d5e1ec538df6cc369cc4f385d005bf60eda
[ "MIT" ]
null
null
null
lib/team_budget_graphql/resolvers/types.ex
AkioCode/elxpro4-teambudget
a7e67d5e1ec538df6cc369cc4f385d005bf60eda
[ "MIT" ]
null
null
null
lib/team_budget_graphql/resolvers/types.ex
AkioCode/elxpro4-teambudget
a7e67d5e1ec538df6cc369cc4f385d005bf60eda
[ "MIT" ]
null
null
null
defmodule TeamBudgetGraphql.Types do use Absinthe.Schema.Notation alias TeamBudgetGraphql.Types import_types(Types.Session) import_types(Types.User) import_types(Types.Team) import_types(Types.Invite) end
21.8
36
0.811927
f75b7d815fe5ae5c3e3df54755eafae6385942ba
906
ex
Elixir
lib/asn.ex
ephe-meral/asn
4772d1c44a85acd9e110a866d8f7561fedf07fc4
[ "WTFPL" ]
12
2016-07-06T11:29:31.000Z
2022-03-11T01:01:41.000Z
lib/asn.ex
ephe-meral/asn
4772d1c44a85acd9e110a866d8f7561fedf07fc4
[ "WTFPL" ]
null
null
null
lib/asn.ex
ephe-meral/asn
4772d1c44a85acd9e110a866d8f7561fedf07fc4
[ "WTFPL" ]
2
2017-03-19T03:24:47.000Z
2019-11-12T14:12:14.000Z
defmodule ASN do use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(ASN.Matcher, [[name: __MODULE__]]) ] opts = [strategy: :one_for_one, name: ASN.Supervisor] Supervisor.start_link(children, opts) end @doc """ Returns the associated...
27.454545
75
0.663355
f75b7e8b38e9051560d257127d3dd4c1f4bd9a64
1,003
exs
Elixir
03-input-output.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
03-input-output.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
03-input-output.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
# http://elixir-lang.org/docs/stable/IO.html # http://elixir-lang.org/docs/stable/File.html defmodule CowInterrogator do def get_name do String.strip IO.gets("What is your name? ") end def get_cow_lover do IO.getn("Do you like cows? ", 1) end def interrogate do name = get_name case String....
20.06
76
0.623131
f75ba736b6e0d448d5b4655646282e5db3704920
25,408
exs
Elixir
test/remote_ip/headers/forwarded_test.exs
devstopfix/remote_ip
c52084369a0da2f7700679b35085dca0eed5ff0d
[ "MIT" ]
null
null
null
test/remote_ip/headers/forwarded_test.exs
devstopfix/remote_ip
c52084369a0da2f7700679b35085dca0eed5ff0d
[ "MIT" ]
null
null
null
test/remote_ip/headers/forwarded_test.exs
devstopfix/remote_ip
c52084369a0da2f7700679b35085dca0eed5ff0d
[ "MIT" ]
null
null
null
defmodule RemoteIp.Headers.ForwardedTest do use ExUnit.Case, async: true alias RemoteIp.Headers.Forwarded doctest Forwarded describe "parsing" do test "RFC 7239 examples" do parsed = Forwarded.parse(~S'for="_gazonk"') assert parsed == [] parsed = Forwarded.parse(~S'For="[2001:db8:cafe::...
50.412698
163
0.536052
f75bcb658e85b3db9753b13ae7f9691abad53a2e
267
ex
Elixir
lib/brook/legacy.ex
bbalser/brook
b628605efd753a7c1cfe26bf3c4e4dc6fab4709b
[ "Apache-2.0" ]
14
2019-08-15T05:44:24.000Z
2020-05-28T23:13:59.000Z
lib/brook/legacy.ex
bbalser/brook
b628605efd753a7c1cfe26bf3c4e4dc6fab4709b
[ "Apache-2.0" ]
2
2019-08-24T20:11:28.000Z
2019-09-23T20:35:42.000Z
lib/brook/legacy.ex
bbalser/brook
b628605efd753a7c1cfe26bf3c4e4dc6fab4709b
[ "Apache-2.0" ]
3
2019-08-13T15:23:32.000Z
2020-02-19T19:46:10.000Z
defmodule Brook.Legacy do defdelegate serialize(term), to: JsonSerde def deserialize(string) do case String.contains?(string, "__brook_struct__") do true -> Brook.Serde.deserialize(string) false -> JsonSerde.deserialize(string) end end end
24.272727
56
0.719101
f75be17f7c81baa3d20393ba2d9c14d117cbb39b
1,108
ex
Elixir
lib/mango_pay/event.ex
Eweev/mangopay-elixir
7a4ff7b47c31bfa9a77d944803158f8297d51505
[ "MIT" ]
1
2020-04-07T22:17:25.000Z
2020-04-07T22:17:25.000Z
lib/mango_pay/event.ex
Eweev/mangopay-elixir
7a4ff7b47c31bfa9a77d944803158f8297d51505
[ "MIT" ]
17
2018-04-11T12:07:07.000Z
2019-03-18T21:33:18.000Z
lib/mango_pay/event.ex
Eweev/mangopay-elixir
7a4ff7b47c31bfa9a77d944803158f8297d51505
[ "MIT" ]
2
2018-05-15T12:41:46.000Z
2019-04-08T14:19:15.000Z
defmodule MangoPay.Event do @moduledoc """ Functions for MangoPay [event](https://docs.mangopay.com/endpoints/v2.01/events#e251_the-event-object). """ use MangoPay.Query.Base set_path "events" @doc """ List all disputes. ## Examples query = %{ "Page": 1, ...
24.086957
105
0.481047
f75befc5cdc4396313e20167dc71e1e52f27d2c8
2,319
ex
Elixir
verify/geolix/lib/mix/tasks/geolix/verify.ex
coladarci/geolix
0a0508db410732fa8a24cbcd28e44f89b1b30afa
[ "Apache-2.0" ]
null
null
null
verify/geolix/lib/mix/tasks/geolix/verify.ex
coladarci/geolix
0a0508db410732fa8a24cbcd28e44f89b1b30afa
[ "Apache-2.0" ]
null
null
null
verify/geolix/lib/mix/tasks/geolix/verify.ex
coladarci/geolix
0a0508db410732fa8a24cbcd28e44f89b1b30afa
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Geolix.Verify do @moduledoc """ Verifies Geolix results. """ alias Geolix.Database.Loader use Mix.Task @shortdoc "Verifies parser results" @data_path Path.expand("../../../../..", __DIR__) @ip_set Path.join(@data_path, "ip_set.txt") @results Path.join(@data_path, "geolix_result...
24.670213
74
0.655024
f75c112beb2f631e887efc8c380ade5d4dedcb9e
700
ex
Elixir
lib/genstage_importer/parser.ex
kloeckner-i/genstage_importer
a8d8242fa0bc79d83d05212dea667c93990685c7
[ "MIT" ]
4
2019-07-27T13:11:54.000Z
2020-06-19T14:00:21.000Z
lib/genstage_importer/parser.ex
altmer/genstage_importer
a8d8242fa0bc79d83d05212dea667c93990685c7
[ "MIT" ]
null
null
null
lib/genstage_importer/parser.ex
altmer/genstage_importer
a8d8242fa0bc79d83d05212dea667c93990685c7
[ "MIT" ]
2
2018-08-02T11:01:15.000Z
2019-11-15T12:35:40.000Z
defmodule GenstageImporter.Parser do @moduledoc """ Contains functions to parse some raw data from CSV files """ require Logger def parse_decimal(decimal_string) do case Decimal.parse(decimal_string) do :error -> Logger.debug(fn -> "[GenstageImporter] bad decimal value: [#{decima...
19.444444
69
0.6
f75c2ecac8f0e5ced192eb4e6a9a977b8df9bdb2
2,850
exs
Elixir
mix.exs
verypossible/nerves_system_onlogic_cl210
cb220ae352d9e14af7efa1f4bfb989bdfed69f04
[ "Apache-2.0" ]
8
2020-01-08T18:01:06.000Z
2020-02-13T04:43:30.000Z
mix.exs
verypossible/nerves_system_onlogic_cl210
cb220ae352d9e14af7efa1f4bfb989bdfed69f04
[ "Apache-2.0" ]
1
2020-03-17T17:54:41.000Z
2020-03-17T17:54:41.000Z
mix.exs
verypossible/nerves_system_onlogic_cl210
cb220ae352d9e14af7efa1f4bfb989bdfed69f04
[ "Apache-2.0" ]
2
2020-01-29T18:08:42.000Z
2021-01-06T15:20:05.000Z
defmodule NervesSystemOnLogicCL210.MixProject do use Mix.Project @github_organization "verypossible" @app :nerves_system_onlogic_cl210 @version Path.join(__DIR__, "VERSION") |> File.read!() |> String.trim() def project do [ app: @app, version: @version, elixir: "~...
23.94958
80
0.585614
f75c65838f5594ada23a4918f4c08f4727427c7b
2,766
ex
Elixir
apps/exth_crypto/lib/exth_crypto/hash/keccak.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/exth_crypto/lib/exth_crypto/hash/keccak.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/exth_crypto/lib/exth_crypto/hash/keccak.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule ExthCrypto.Hash.Keccak do @moduledoc """ Simple wrapper for Keccak function for Ethereum. Note: This module defines KECCAK as defined by Ethereum, which differs slightly than that assigned as the new SHA-3 variant. For SHA-3, a few constants have been changed prior to adoption by NIST, but after ad...
29.115789
85
0.627621
f75ca6f0e3ddb1066eafe0151b470f8975debfbd
2,631
ex
Elixir
lib/maru/params/type_builder.ex
elixir-maru/maru_params
4bc1d05008e881136aff87667791ed4da1c12bd4
[ "WTFPL" ]
4
2021-12-29T06:45:02.000Z
2022-02-10T12:48:57.000Z
lib/maru/params/type_builder.ex
elixir-maru/maru_params
4bc1d05008e881136aff87667791ed4da1c12bd4
[ "WTFPL" ]
null
null
null
lib/maru/params/type_builder.ex
elixir-maru/maru_params
4bc1d05008e881136aff87667791ed4da1c12bd4
[ "WTFPL" ]
1
2021-12-29T06:45:03.000Z
2021-12-29T06:45:03.000Z
defmodule Maru.Params.TypeBuilder do defmacro __using__(options) do derive = Keyword.get(options, :derive, []) quote do require Protocol use Maru.Params.Builder Module.register_attribute(__MODULE__, :types, accumulate: true) import unquote(__MODULE__) @struct_derive unquote(deri...
29.561798
94
0.603573
f75cd3605af1e11c37e1861b6592fedf7e5c1f94
1,235
ex
Elixir
apps/service_aggregate/lib/aggregate/feed/consumer.ex
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
12
2020-01-27T19:43:02.000Z
2021-07-28T19:46:29.000Z
apps/service_aggregate/lib/aggregate/feed/consumer.ex
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
81
2020-01-28T18:07:23.000Z
2021-11-22T02:12:13.000Z
apps/service_aggregate/lib/aggregate/feed/consumer.ex
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defmodule Aggregate.Feed.Consumer do @moduledoc """ Process for handling `GenStage` messages during profiling, sending a `aggregate_update` event. """ use GenStage require Logger @type init_opts :: [ dataset_id: String.t(), subset_id: String.t() ] @instance Aggregate.Applic...
24.215686
99
0.635628
f75cf79d23f012dc7e226e5c290a4b117b923914
760
ex
Elixir
lib/pay_nl/bank.ex
smeevil/pay_nl
8b62ed5c01405aba432e56e8c2b6c5774da1470a
[ "WTFPL" ]
3
2017-10-03T12:30:57.000Z
2020-01-06T00:23:59.000Z
lib/pay_nl/bank.ex
smeevil/pay_nl
8b62ed5c01405aba432e56e8c2b6c5774da1470a
[ "WTFPL" ]
null
null
null
lib/pay_nl/bank.ex
smeevil/pay_nl
8b62ed5c01405aba432e56e8c2b6c5774da1470a
[ "WTFPL" ]
1
2019-02-11T11:12:17.000Z
2019-02-11T11:12:17.000Z
defmodule PayNL.Bank do @moduledoc """ This module provides a simple struct for the available banks of iDeal """ defstruct [:available, :image, :id, :issuer_id, :name, :swift] @spec json_to_struct({:ok, json :: map}) :: {:ok, list(%PayNL.Bank{})} | {:error, String.t} def json_to_struct({:ok, json}), do: {...
34.545455
93
0.627632
f75cf9bc8a2207070fa79e9c58aec2c6887da016
685
ex
Elixir
backend/lib/functional_vote_web/router.ex
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
10
2020-03-13T12:56:06.000Z
2021-06-28T22:13:27.000Z
backend/lib/functional_vote_web/router.ex
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
132
2020-02-08T02:01:03.000Z
2022-02-18T20:38:38.000Z
backend/lib/functional_vote_web/router.ex
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
1
2021-03-17T06:22:55.000Z
2021-03-17T06:22:55.000Z
defmodule FunctionalVoteWeb.Router do use FunctionalVoteWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash # plug :protect_from_forgery plug :put_secure_browser_headers plug RemoteIp end pipeline :api do plug CORSPlug, origin: "http://lo...
21.40625
50
0.686131
f75d02870d4220cb8a138ed3d82a09687bd8f0de
1,102
ex
Elixir
episode-025/test/support/conn_case.ex
thaterikperson/elmseeds
72b09358926287ab4ea79893196d1ba002f190b3
[ "MIT" ]
84
2016-07-02T05:21:36.000Z
2021-02-12T22:45:45.000Z
episode-036/test/support/conn_case.ex
thaterikperson/elmseeds
72b09358926287ab4ea79893196d1ba002f190b3
[ "MIT" ]
3
2016-07-02T06:03:47.000Z
2017-06-03T14:11:06.000Z
episode-014/elm_is_fun/test/support/conn_case.ex
thaterikperson/elmseeds
72b09358926287ab4ea79893196d1ba002f190b3
[ "MIT" ]
6
2017-02-16T19:33:49.000Z
2019-04-05T19:27:17.000Z
defmodule ElmIsFun.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the da...
24.488889
70
0.705989
f75d079b6a69df03f5d63bad853b599fd178ef6c
7,398
exs
Elixir
test/cforum_web/controllers/events/attendee_controller_test.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
test/cforum_web/controllers/events/attendee_controller_test.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
test/cforum_web/controllers/events/attendee_controller_test.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule CforumWeb.Events.AttendeeControllerTest do use CforumWeb.ConnCase alias Cforum.Events.Event describe "new attendee" do setup [:setup_tests] test "renders form", %{conn: conn, event: event, user: user} do conn = conn |> login(user) |> get(Path.event_attendee_path(...
35.73913
123
0.632603
f75d0f93d84914fef6aedd0cef310dd5dace5cd8
139
ex
Elixir
dingen/lib/dingen_web/controllers/page_controller.ex
rmoorman/dingen-2018011-tenants
02f3fa618b9a266340d4a4993420dc5641cec08e
[ "MIT" ]
null
null
null
dingen/lib/dingen_web/controllers/page_controller.ex
rmoorman/dingen-2018011-tenants
02f3fa618b9a266340d4a4993420dc5641cec08e
[ "MIT" ]
null
null
null
dingen/lib/dingen_web/controllers/page_controller.ex
rmoorman/dingen-2018011-tenants
02f3fa618b9a266340d4a4993420dc5641cec08e
[ "MIT" ]
null
null
null
defmodule DingenWeb.PageController do use DingenWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.375
37
0.733813
f75d282cf75084f06be8a14a5ed16cfc96757f53
129
ex
Elixir
apps/ewallet_api/lib/ewallet_api/v1/sockets/endpoint.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet_api/lib/ewallet_api/v1/sockets/endpoint.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/v1/sockets/endpoint.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule EWalletAPI.V1.Endpoint do use Phoenix.Endpoint, otp_app: :ewallet_api socket("/socket", EWalletAPI.V1.Socket) end
21.5
45
0.775194
f75d4c7aef80d5e98e28bb416960f565ea4d8d81
1,760
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/wrapping_public_key.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/wrapping_public_key.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/wrapping_public_key.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...
37.446809
354
0.742045
f75d62f59bcb716184e4363f4097c1876663c2fa
259
exs
Elixir
apps/emporium_api/priv/repo/migrations/20150822101958_create_category.exs
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/emporium_api/priv/repo/migrations/20150822101958_create_category.exs
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/emporium_api/priv/repo/migrations/20150822101958_create_category.exs
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
defmodule EmporiumApi.Repo.Migrations.CreateCategory do use Ecto.Migration def change do create table(:emporium_categories) do add :name, :string add :permalink, :string add :parent_id, :integer timestamps end end end
17.266667
55
0.687259
f75d7e576b8a4a73b9d63b3ea88c4e094f8ab362
1,047
exs
Elixir
mix.exs
jeffgrunewald/divo_postgres
6a38670a8086dcbde8c98d18e5876812951727e0
[ "Apache-2.0" ]
2
2019-09-22T04:35:26.000Z
2020-12-15T02:56:47.000Z
mix.exs
jeffgrunewald/divo_postgres
6a38670a8086dcbde8c98d18e5876812951727e0
[ "Apache-2.0" ]
null
null
null
mix.exs
jeffgrunewald/divo_postgres
6a38670a8086dcbde8c98d18e5876812951727e0
[ "Apache-2.0" ]
1
2020-10-12T20:12:46.000Z
2020-10-12T20:12:46.000Z
defmodule DivoPostgres.MixProject do use Mix.Project @github "https://github.com/jeffgrunewald/divo_postgres" def project do [ app: :divo_postgres, version: "0.2.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), package: package(...
19.036364
67
0.574021
f75d8f36622d1966e90158f3f8ac2c615b9eeca8
6,666
ex
Elixir
lib/ueberauth/strategy/qq.ex
dev800/ueberauth_qq
991260147ff2848b0efb88cff374db17b747b291
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/qq.ex
dev800/ueberauth_qq
991260147ff2848b0efb88cff374db17b747b291
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/qq.ex
dev800/ueberauth_qq
991260147ff2848b0efb88cff374db17b747b291
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.QQ do @moduledoc """ Provides an Ueberauth strategy for authenticating with QQ. ### Setup Include the provider in your configuration for Ueberauth config :ueberauth, Ueberauth, providers: [ qq: { Ueberauth.Strategy.QQ, [] } ] Then include the co...
27.097561
116
0.637414
f75da3d4f6717180834ca6387ba98811b2e02516
330
exs
Elixir
test/linreg_web/live/page_live_test.exs
Tmw/linreg
b4dd10006ec875da1250cd5d2d7d21b551ed15e5
[ "MIT" ]
9
2020-05-25T19:54:41.000Z
2022-03-09T09:57:04.000Z
test/linreg_web/live/page_live_test.exs
Tmw/linreg
b4dd10006ec875da1250cd5d2d7d21b551ed15e5
[ "MIT" ]
2
2020-06-04T13:25:11.000Z
2020-06-07T14:31:30.000Z
test/linreg_web/live/page_live_test.exs
Tmw/linreg
b4dd10006ec875da1250cd5d2d7d21b551ed15e5
[ "MIT" ]
2
2021-01-14T17:03:01.000Z
2021-04-27T05:22:29.000Z
defmodule LinregWeb.PageLiveTest do use LinregWeb.ConnCase import Phoenix.LiveViewTest test "disconnected and connected render", %{conn: conn} do {:ok, page_live, disconnected_html} = live(conn, "/") assert disconnected_html =~ "Welcome to Phoenix!" assert render(page_live) =~ "Welcome to Phoenix!" ...
27.5
60
0.724242
f75da49c3abc325c56d326efe0a0c0620989fc63
533
exs
Elixir
test/log_results_test.exs
rawdamedia/quoil
8d7be55d15442e2f0cf8743d5ceb1dd5761e9356
[ "MIT" ]
1
2015-07-17T13:42:12.000Z
2015-07-17T13:42:12.000Z
test/log_results_test.exs
rawdamedia/quoil
8d7be55d15442e2f0cf8743d5ceb1dd5761e9356
[ "MIT" ]
3
2015-07-17T07:52:30.000Z
2016-03-16T11:34:48.000Z
test/log_results_test.exs
rawdamedia/quoil
8d7be55d15442e2f0cf8743d5ceb1dd5761e9356
[ "MIT" ]
1
2015-07-17T11:50:44.000Z
2015-07-17T11:50:44.000Z
defmodule LogResultsTest do use ExUnit.Case import Quoil.LogResults, only: [write_log: 1] import Quoil.ParseResults, only: [parse_result: 1] @test_ping1 "PING google.com (216.58.220.110): 56 data bytes\n\n--- google.com ping statistics ---\n5 packets transmitted, 5 packets received, 0.0% packet loss\nround-tr...
41
227
0.707317
f75dab5da6f566e3e3fe161c425161407e777595
1,296
exs
Elixir
mix.exs
workplacearcade/ex_force
0e4b3ebb8b74214402d86264cb31fbf5c7a6a195
[ "MIT" ]
null
null
null
mix.exs
workplacearcade/ex_force
0e4b3ebb8b74214402d86264cb31fbf5c7a6a195
[ "MIT" ]
1
2021-03-25T03:35:37.000Z
2021-03-25T03:35:37.000Z
mix.exs
workplacearcade/ex_force
0e4b3ebb8b74214402d86264cb31fbf5c7a6a195
[ "MIT" ]
null
null
null
defmodule ExForce.Mixfile do use Mix.Project @version "0.4.1-dev" def project do [ app: :ex_force, version: @version, elixir: "~> 1.5", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), # hex description: "Simple Elixir wrapper for Salesf...
22.736842
85
0.531636
f75ddc0d8a8f21a30843db54bd8149e985caf658
1,886
exs
Elixir
clients/groups_settings/mix.exs
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/groups_settings/mix.exs
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/groups_settings/mix.exs
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.149254
106
0.663309
f75de8184b57620d6f366c9185a481b975c78a52
649
exs
Elixir
base/fc_base/mix.exs
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
base/fc_base/mix.exs
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
base/fc_base/mix.exs
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
defmodule FCBase.MixProject do use Mix.Project def project do [ app: :fc_base, version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_appl...
20.28125
59
0.565485
f75dea4bb5c3872f3851f628341362772eb0c247
2,122
ex
Elixir
lib/segment/sender.ex
pierrefourgeaud/analytics-elixir
c05f2236263bddad905a770ff91ad4d2ee86d63d
[ "MIT" ]
null
null
null
lib/segment/sender.ex
pierrefourgeaud/analytics-elixir
c05f2236263bddad905a770ff91ad4d2ee86d63d
[ "MIT" ]
null
null
null
lib/segment/sender.ex
pierrefourgeaud/analytics-elixir
c05f2236263bddad905a770ff91ad4d2ee86d63d
[ "MIT" ]
null
null
null
defmodule Segment.Analytics.Sender do @moduledoc """ The `Segment.Analytics.Sender` service implementation is an alternative to the default Batcher to send every event as it is called. The HTTP call is made with an async `Task` to not block the GenServer. This will not guarantee ordering. The `Segment.An...
36.586207
144
0.708294
f75df8f7482e8fb59bfbdbecb2f1c84f55ed2707
801
exs
Elixir
test/controllers/ph_controller_test.exs
OpenFermentor/Local-Monitor
4b356e8ac3f154ec72bdd23b3a501d5f1645241c
[ "MIT" ]
null
null
null
test/controllers/ph_controller_test.exs
OpenFermentor/Local-Monitor
4b356e8ac3f154ec72bdd23b3a501d5f1645241c
[ "MIT" ]
null
null
null
test/controllers/ph_controller_test.exs
OpenFermentor/Local-Monitor
4b356e8ac3f154ec72bdd23b3a501d5f1645241c
[ "MIT" ]
null
null
null
defmodule BioMonitor.PhControllerTest do use BioMonitor.ConnCase @moduledoc """ Test cases for PhController The commented tests won't pass unless the board is connected. """ setup %{conn: conn} do {:ok, conn: put_req_header(conn, "accept", "application/json")} end # test "returns current ph v...
28.607143
71
0.652934
f75e0d7917570b77639947927c52ecf4d04aacce
174
exs
Elixir
priv/repo/migrations/20191204032058_add_email_to_users.exs
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
4
2020-05-05T18:37:28.000Z
2022-01-05T00:56:19.000Z
priv/repo/migrations/20191204032058_add_email_to_users.exs
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
21
2019-12-01T15:32:02.000Z
2019-12-19T13:10:36.000Z
priv/repo/migrations/20191204032058_add_email_to_users.exs
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
2
2020-09-12T16:07:11.000Z
2020-12-11T06:46:45.000Z
defmodule Bank.Repo.Migrations.AddEmailToUsers do use Ecto.Migration def change do alter table(:clients) do add :email, :string, null: false end end end
17.4
49
0.701149
f75e166bcfec1eef92f8c996d9ac93cf316d437e
6,988
ex
Elixir
apps/rig_cloud_events/lib/rig_cloud_events/parser/partial_parser.ex
arana3/reactive-interaction-gateway
793648bcc5b8b05fc53df1f5f97818fb40ca84be
[ "Apache-2.0" ]
518
2017-11-09T13:10:49.000Z
2022-03-28T14:29:50.000Z
apps/rig_cloud_events/lib/rig_cloud_events/parser/partial_parser.ex
arana3/reactive-interaction-gateway
793648bcc5b8b05fc53df1f5f97818fb40ca84be
[ "Apache-2.0" ]
270
2017-11-10T00:11:34.000Z
2022-02-27T13:08:16.000Z
apps/rig_cloud_events/lib/rig_cloud_events/parser/partial_parser.ex
arana3/reactive-interaction-gateway
793648bcc5b8b05fc53df1f5f97818fb40ca84be
[ "Apache-2.0" ]
67
2017-12-19T20:16:37.000Z
2022-03-31T10:43:04.000Z
defmodule RigCloudEvents.Parser.PartialParser do @moduledoc """ Error-tolerant reader for JSON encoded CloudEvents. Interprets the passed data structure as little as possible. The idea comes from the CloudEvents spec that states that JSON payloads ("data") are encoded along with the envelope ("context attrib...
34.94
98
0.651689
f75e33fe39c6cf112ee96c0e164e62276fc6096f
1,153
ex
Elixir
test/support/channel_case.ex
newaperio/phoenix_starter
02f2f5550a94b940bb4e9c61042b032f54af8b72
[ "MIT" ]
3
2021-03-19T10:39:02.000Z
2021-07-25T19:54:09.000Z
test/support/channel_case.ex
newaperio/phoenix_starter
02f2f5550a94b940bb4e9c61042b032f54af8b72
[ "MIT" ]
204
2020-11-27T06:00:31.000Z
2022-03-25T08:08:16.000Z
test/support/channel_case.ex
newaperio/phoenix_starter
02f2f5550a94b940bb4e9c61042b032f54af8b72
[ "MIT" ]
null
null
null
defmodule PhoenixStarterWeb.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 inte...
28.121951
76
0.737207
f75ec3d97b1770cd66856be23f7c73b821b75775
353
exs
Elixir
priv/repo/seeds.exs
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
# 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: # # Topshelf.Repo.insert!(%Topshelf.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they wi...
29.416667
61
0.708215
f75ed46368667f0a818c01729b4127fb51a6ea52
675
exs
Elixir
examples/mm/factorial1.exs
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
8
2018-08-26T08:10:08.000Z
2021-04-05T16:05:05.000Z
examples/mm/factorial1.exs
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
null
null
null
examples/mm/factorial1.exs
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
1
2019-10-08T09:56:43.000Z
2019-10-08T09:56:43.000Z
defmodule Factorial do def of(0), do: 1 def of(n) when n > 0, do: n * of(n-1) end defmodule Sum do def of(0), do: 0 def of(n), do: n + of(n-1) end defmodule Length do def of([]), do: 0 def of([_|tail]), do: 1 + of(tail) end IO.puts(Factorial.of(0) == 1) IO.puts(Factorial.of(1) == 1) IO.puts(Factorial.of(...
20.454545
39
0.568889
f75edc2aefb8a4a7447b05cf59d5238b6d3824fc
478
exs
Elixir
config/config.exs
FritzFlorian/flickr_client
b749e5e126e1a4f5d05d8822c13f7568644674c2
[ "MIT" ]
null
null
null
config/config.exs
FritzFlorian/flickr_client
b749e5e126e1a4f5d05d8822c13f7568644674c2
[ "MIT" ]
null
null
null
config/config.exs
FritzFlorian/flickr_client
b749e5e126e1a4f5d05d8822c13f7568644674c2
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :logger, level: :info case Mix.env do :test -> config :flickr_client, flickr_key: "FLICKR_KEY", flickr_endpoint: FlickrMockEndpoint :dev -> config ...
22.761905
69
0.717573
f75ee7b4bc61a43855613a36ad5e25ffe7a2b505
353
exs
Elixir
test/blog_linter_test.exs
buys-fran/blog_linter_ex
bf0debb5b66b196d06b3c29e612ad416d720c971
[ "MIT" ]
2
2021-04-30T04:15:25.000Z
2021-05-13T17:31:17.000Z
test/blog_linter_test.exs
buys-fran/blog_linter_ex
bf0debb5b66b196d06b3c29e612ad416d720c971
[ "MIT" ]
null
null
null
test/blog_linter_test.exs
buys-fran/blog_linter_ex
bf0debb5b66b196d06b3c29e612ad416d720c971
[ "MIT" ]
2
2021-04-30T04:15:29.000Z
2021-06-08T13:08:23.000Z
defmodule BlogLinterTest do use ExUnit.Case doctest BlogLinter test "reads the files in a given path" do assert BlogLinter.file_names("./blogposts") == ["post1.markdown", "post2.markdown"] end test "reads the content of a file" do content = BlogLinter.process_file("./blogposts", "post1.markdown") ...
25.214286
87
0.70255
f75ef4b5df615236043fad79cdeed2c132f0af60
6,086
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/student_submission.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/student_submission.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/student_submission.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.859155
190
0.694545
f75f26e950972f7d53771693ba36ca14bd4d6757
5,144
ex
Elixir
lib/iex/lib/iex/config.ex
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
2
2020-06-02T18:00:28.000Z
2021-12-10T03:21:42.000Z
lib/iex/lib/iex/config.ex
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/iex/lib/iex/config.ex
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
null
null
null
defmodule IEx.Config do @moduledoc false use Agent @table __MODULE__ @agent __MODULE__ @keys [ :colors, :inspect, :history_size, :default_prompt, :continuation_prompt, :alive_prompt, :alive_continuation_prompt, :width ] # Read API def configuration() do Application...
24.850242
92
0.664075
f75f6bea77346f99db08afabfe67ab00d49f27ff
7,852
ex
Elixir
deps/makeup/lib/makeup/registry.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup/lib/makeup/registry.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup/lib/makeup/registry.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
defmodule Makeup.Registry do @moduledoc """ A registry that allows users to dynamically register new makeup lexers. Lexers should register themselves on application start. That way, you can add support for new programming languages by depending on the relevant lexers. This is useful for projects such a...
34.13913
108
0.643021
f75f7ffab3eda98a2478e4e82b2df44ab4d26d09
5,531
exs
Elixir
test/ex_oauth2_provider/oauth2/token/strategy/refresh_token_test.exs
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/oauth2/token/strategy/refresh_token_test.exs
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/oauth2/token/strategy/refresh_token_test.exs
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
defmodule ExOauth2Provider.Token.Strategy.RefreshTokenTest do use ExOauth2Provider.TestCase alias ExOauth2Provider.{Config, AccessTokens, Token, Token.RefreshToken} alias ExOauth2Provider.Test.{Fixtures, QueryHelpers} alias Dummy.{OauthAccessTokens.OauthAccessToken, Repo} @client_id "Jf5rM8hQBc" @client_s...
35.683871
132
0.715061
f75f9b364190030a8972f29c2a74ec2d4cc056d6
1,445
exs
Elixir
mix.exs
matthewlehner/ueberauth_shopify
6f38569034bee0e4b393ba49351d215092c9c4eb
[ "MIT" ]
3
2016-11-07T19:04:50.000Z
2017-02-04T01:38:45.000Z
mix.exs
matthewlehner/ueberauth_shopify
6f38569034bee0e4b393ba49351d215092c9c4eb
[ "MIT" ]
2
2017-04-03T18:43:55.000Z
2020-01-16T16:53:58.000Z
mix.exs
matthewlehner/ueberauth_shopify
6f38569034bee0e4b393ba49351d215092c9c4eb
[ "MIT" ]
8
2017-09-19T10:38:27.000Z
2022-01-27T01:35:26.000Z
defmodule UeberauthShopify.Mixfile do use Mix.Project @version "0.1.2" @url "https://github.com/alistairstead/ueberauth_shopify" def project do [app: :ueberauth_shopify, version: @version, elixir: "~> 1.3", package: package(), build_embedded: Mix.env == :prod, start_permanent: Mi...
21.893939
77
0.595848
f75fa0d036a7b14a12d2121ad54f5586bf3aa81f
1,309
ex
Elixir
lib/langue/formatter/json/serializer.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/langue/formatter/json/serializer.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/langue/formatter/json/serializer.ex
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Langue.Formatter.Json.Serializer do @behaviour Langue.Formatter.Serializer alias Langue.Utils.NestedSerializerHelper def serialize(%{entries: entries}) do render = entries |> serialize_json |> Kernel.<>("\n") %Langue.Formatter.SerializerResult{render: render} end def se...
29.75
131
0.624141
f75fe00267bcc61b0b05973aa914ba3eb07b2683
1,518
ex
Elixir
test/support/data_case.ex
wagncarv/blog_new
bcfde533df5109cfa68b33362db56ef728090b02
[ "MIT" ]
null
null
null
test/support/data_case.ex
wagncarv/blog_new
bcfde533df5109cfa68b33362db56ef728090b02
[ "MIT" ]
null
null
null
test/support/data_case.ex
wagncarv/blog_new
bcfde533df5109cfa68b33362db56ef728090b02
[ "MIT" ]
null
null
null
defmodule BlogNew.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 t...
28.641509
77
0.694335
f7600ce10a69b88aaa7743d1e490aaad0732785e
667
exs
Elixir
mix.exs
Highjhacker/Ark-Elixir-Example
7daec76e839cb291ebc191b840845f17342be617
[ "MIT" ]
1
2018-04-22T05:15:59.000Z
2018-04-22T05:15:59.000Z
mix.exs
Highjhacker/Ark-Elixir-Example
7daec76e839cb291ebc191b840845f17342be617
[ "MIT" ]
null
null
null
mix.exs
Highjhacker/Ark-Elixir-Example
7daec76e839cb291ebc191b840845f17342be617
[ "MIT" ]
null
null
null
defmodule ArkElixirExample.Mixfile do use Mix.Project def project do [ app: :ark_elixir_example, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, escript: [main_module: ArkElixirExample], deps: deps() ] end # Run "mix help compile.app" to learn...
21.516129
88
0.589205
f7602c5864d4d7acecd628eb5207d93e9b509372
2,885
ex
Elixir
clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.426471
166
0.689428
f76033daf66b1cda87edee946645e41e710681ce
1,738
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_group_managers_list_managed_instances_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/instance_group_managers_list_managed_instances_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_group_managers_list_managed_instances_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 ...
33.423077
174
0.757768
f7606c6ca67e5fb2e5b45a59b600375c20767bd2
893
exs
Elixir
spec/generated_examples_spec.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
spec/generated_examples_spec.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
spec/generated_examples_spec.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
defmodule GeneratedExamplesSpec do use ESpec, async: true subject 1..5 Enum.map(1..3, fn n -> it do: is_expected().to(have(unquote(n))) end) context "with description" do subject(24) Enum.map(2..4, fn n -> it "is divisible by #{n}" do expect(rem(subject(), unquote(n))).to(be(0)) ...
20.767442
60
0.555431
f76089a1aa2f3b6015df275b9b84b4fb4e97b200
1,380
ex
Elixir
lib/rfx/util/source.ex
pcorey/rfx
db5be95d93b7aba0cf9799db273d8583c21bfc26
[ "MIT" ]
31
2021-05-29T22:57:04.000Z
2022-03-13T16:24:57.000Z
lib/rfx/util/source.ex
pcorey/rfx
db5be95d93b7aba0cf9799db273d8583c21bfc26
[ "MIT" ]
4
2021-06-04T23:34:38.000Z
2021-07-16T16:01:20.000Z
lib/rfx/util/source.ex
pcorey/rfx
db5be95d93b7aba0cf9799db273d8583c21bfc26
[ "MIT" ]
4
2021-06-11T13:10:04.000Z
2022-02-11T13:33:16.000Z
defmodule Rfx.Util.Source do @moduledoc """ A utility module for source code manipulation. """ alias Rfx.Util.Str @base_diff "/tmp/rfx_base_diff" @doc """ Returns updated text, edited according to the Sourceror edit function. """ def edit(code, efun) do code |> Sourceror.parse_string() ...
23.793103
72
0.621014
f760aec8141d586c17733cb213e6e8090d905db5
944
exs
Elixir
test/webmonitor/checker_test.exs
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
5
2016-07-05T20:31:46.000Z
2021-03-20T20:11:48.000Z
test/webmonitor/checker_test.exs
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
null
null
null
test/webmonitor/checker_test.exs
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
1
2016-07-18T23:00:46.000Z
2016-07-18T23:00:46.000Z
defmodule Webmonitor.CheckerTest do use Webmonitor.ModelCase import Webmonitor.Checker alias Webmonitor.Checker.Stats test "ping returns :ok when website is up" do assert {:ok, %Stats{}} = ping("http://httpstat.us/200") end test "ping returns the response time in milliseconds" do {:ok, %Stats{res...
28.606061
86
0.691737
f760e54b9a391cfed20ee7c7cb67c2e62d385352
1,126
ex
Elixir
web_finngen_r8/lib/risteys/mortality_stats.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r8/lib/risteys/mortality_stats.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r8/lib/risteys/mortality_stats.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
defmodule Risteys.MortalityStats do use Ecto.Schema import Ecto.Changeset schema "mortality_stats" do field :phenocode_id, :id field :lagged_hr_cut_year, :integer field :hr, :float field :hr_ci_min, :float field :hr_ci_max, :float field :pvalue, :float field :n_individuals, :integer ...
35.1875
132
0.719361
f76114038872d38587b557c04902f4d573b74909
139
exs
Elixir
test/test_helper.exs
flaviogrossi/horde
89059a28db7f5c23c8f4d044024a738a379a80cb
[ "MIT" ]
3
2019-11-11T17:00:04.000Z
2019-11-20T22:01:06.000Z
test/test_helper.exs
flaviogrossi/horde
89059a28db7f5c23c8f4d044024a738a379a80cb
[ "MIT" ]
null
null
null
test/test_helper.exs
flaviogrossi/horde
89059a28db7f5c23c8f4d044024a738a379a80cb
[ "MIT" ]
null
null
null
# Disable until we can get this working on CircleCI # :ok = LocalCluster.start() # Application.ensure_all_started(:horde) ExUnit.start()
19.857143
51
0.755396
f761291a9b0456a6c0583d5a87936d44b457aa15
105
ex
Elixir
lib/rescueImages.ex
szTheory/elixir-leaseweb
98be9c7cc496b52d7b12d4986078d1b68fca1e71
[ "MIT" ]
1
2018-09-07T15:56:14.000Z
2018-09-07T15:56:14.000Z
lib/rescueImages.ex
szTheory/elixir-leaseweb
98be9c7cc496b52d7b12d4986078d1b68fca1e71
[ "MIT" ]
null
null
null
lib/rescueImages.ex
szTheory/elixir-leaseweb
98be9c7cc496b52d7b12d4986078d1b68fca1e71
[ "MIT" ]
2
2017-02-11T03:00:58.000Z
2020-03-03T21:21:42.000Z
defmodule LeaseWeb.RescueImages do def list() do LeaseWeb.Client.get("rescueImages") end end
15
40
0.714286
f76133da6d0431259cef44a5d5b8d4b2388bcda7
1,292
exs
Elixir
test/macro_expansion_test.exs
ijcd/taggart
603aac1bea00f17ad2eebdb40e3720d4f42fc5a7
[ "Apache-2.0" ]
36
2017-10-27T10:08:37.000Z
2021-12-26T07:54:05.000Z
test/macro_expansion_test.exs
ijcd/taggart
603aac1bea00f17ad2eebdb40e3720d4f42fc5a7
[ "Apache-2.0" ]
null
null
null
test/macro_expansion_test.exs
ijcd/taggart
603aac1bea00f17ad2eebdb40e3720d4f42fc5a7
[ "Apache-2.0" ]
4
2017-11-08T15:58:15.000Z
2020-04-21T21:34:13.000Z
defmodule MacroExpansionTest do use Taggart.ConnCase use Taggart.HTML test "basic ast" do expanded = quote location: :keep do div(class: "foo", id: "bar") do "content" end end assert {:div, _, [[class: "foo", id: "bar"], [do: "content"]]} = expanded end test "d...
22.275862
77
0.549536
f76141a2e72ca7a8605f47df2278804ea3064a8d
2,599
exs
Elixir
test/index/compiler_test.exs
fanuniverse/elasticfusion
fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e
[ "CC0-1.0" ]
null
null
null
test/index/compiler_test.exs
fanuniverse/elasticfusion
fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e
[ "CC0-1.0" ]
null
null
null
test/index/compiler_test.exs
fanuniverse/elasticfusion
fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e
[ "CC0-1.0" ]
null
null
null
defmodule Elasticfusion.Index.CompilerTest do use ExUnit.Case defmodule CompilerTestIndex do use Elasticfusion.Index index_name "compiler_test_index" document_type "compiler_test_type" index_settings %{number_of_shards: 1} mapping %{ tags: %{type: :keyword}, stars: %{type: :intege...
30.940476
82
0.630627
f76195ae533709d984434f7e0567c00f8eaf74fc
193
exs
Elixir
test/adel_web/controllers/page_controller_test.exs
zentetsukenz/adel
08854ec56fb6dfe6912abe79ab8aa25ecc3d541a
[ "MIT" ]
null
null
null
test/adel_web/controllers/page_controller_test.exs
zentetsukenz/adel
08854ec56fb6dfe6912abe79ab8aa25ecc3d541a
[ "MIT" ]
null
null
null
test/adel_web/controllers/page_controller_test.exs
zentetsukenz/adel
08854ec56fb6dfe6912abe79ab8aa25ecc3d541a
[ "MIT" ]
null
null
null
defmodule AdelWeb.PageControllerTest do use AdelWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.444444
60
0.673575
f761b9678398901766079bfcc021581b4f1c6c0d
83
exs
Elixir
test/test_helper.exs
fremantle-capital/ex_bitfinex
9de76632ce54f6f1ed0d93ec45f17fbc5095b7ab
[ "MIT" ]
560
2018-06-18T20:56:54.000Z
2022-03-23T00:30:50.000Z
test/test_helper.exs
fremantle-capital/ex_bitfinex
9de76632ce54f6f1ed0d93ec45f17fbc5095b7ab
[ "MIT" ]
133
2019-09-13T17:46:59.000Z
2022-03-01T13:37:10.000Z
test/test_helper.exs
fremantle-capital/ex_bitfinex
9de76632ce54f6f1ed0d93ec45f17fbc5095b7ab
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
ExUnit.configure(formatters: [ExUnit.CLIFormatter, ExUnitNotifier]) ExUnit.start()
27.666667
67
0.819277
f761cd28544afe08c0e53ea8220d382912f2792d
5,055
exs
Elixir
priv/templates/ptr.gen.html/controller_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
priv/templates/ptr.gen.html/controller_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
2
2021-03-09T01:59:47.000Z
2022-02-10T17:08:54.000Z
priv/templates/ptr.gen.html/controller_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>ControllerTest do use <%= inspect context.web_module %>.ConnCase use <%= inspect context.base_module %>.Support.LoginHelper import <%= inspect context.base_module %>.Support.FixtureHelper @create_attrs ...
41.434426
140
0.622156
f76201577607d160c4048741a8062ff212dd175e
2,078
exs
Elixir
priv/merge_tags.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
priv/merge_tags.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
priv/merge_tags.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
alias Cforum.Repo alias Cforum.Tags.Synonym import Ecto.Query defmodule Tag do use CforumWeb, :model alias Ecto.Changeset @primary_key {:tag_id, :id, autogenerate: true} schema "tags" do field(:tag_name, :string) field(:slug, :string) field(:num_messages, :integer) field(:suggest, :boolean)...
26.641026
104
0.615977
f76268be9539f23ca0a095e85ed6eae12598e57b
876
ex
Elixir
lib/polaris/application.ex
mayel/polaris
9b610f83883d009847a72452635d18427f1c7872
[ "Apache-2.0" ]
2
2020-05-02T00:16:35.000Z
2020-06-18T11:43:17.000Z
lib/polaris/application.ex
mayel/polaris
9b610f83883d009847a72452635d18427f1c7872
[ "Apache-2.0" ]
2
2021-03-10T10:35:32.000Z
2021-05-11T06:13:28.000Z
lib/polaris/application.ex
mayel/polaris
9b610f83883d009847a72452635d18427f1c7872
[ "Apache-2.0" ]
2
2020-12-03T10:41:14.000Z
2022-01-17T20:22:50.000Z
defmodule Polaris.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the endpoint when the application starts ...
29.2
66
0.72032
f7626a5920643706b8e453e8efc3db38b0bda143
1,113
ex
Elixir
lib/example_profile_read.ex
FelixW0lf/element-parsers
cced91b2299a3c9e9dbe8cd7b9863d4f64adaf19
[ "MIT" ]
1
2021-11-10T18:06:59.000Z
2021-11-10T18:06:59.000Z
lib/example_profile_read.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
lib/example_profile_read.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour require Logger # Example parser for reading values from device profile # # A profile has a "technical name" and each field has its own "technical name". # These are needed here, NOT the display name! # # Changelog: # 2019-09-30 [jb]: Initial implem...
27.146341
123
0.605571
f7628904045e1be456dea59c22f8d90b6364223d
20,860
exs
Elixir
apps/api_web/test/api_web/controllers/stop_controller_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/api_web/test/api_web/controllers/stop_controller_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/api_web/test/api_web/controllers/stop_controller_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
defmodule ApiWeb.StopControllerTest do use ApiWeb.ConnCase alias Model.{Facility, Stop, Transfer} setup %{conn: conn} do State.Stop.new_state([]) {:ok, conn: put_req_header(conn, "accept", "application/json")} end describe "index" do test "lists all entries", %{conn: conn} do conn = get(co...
33.483146
99
0.557143
f762af800aefd9fb0f40e3d6d0b5a0e20dec6ed3
30,702
ex
Elixir
lib/trash/repo.ex
newaperio/trash
ad7f82dab736c8b4e926888f8f09fce078b289ac
[ "MIT" ]
1
2022-03-18T15:26:07.000Z
2022-03-18T15:26:07.000Z
lib/trash/repo.ex
newaperio/trash
ad7f82dab736c8b4e926888f8f09fce078b289ac
[ "MIT" ]
null
null
null
lib/trash/repo.ex
newaperio/trash
ad7f82dab736c8b4e926888f8f09fce078b289ac
[ "MIT" ]
null
null
null
defmodule Trash.Repo do @moduledoc """ Provides functions for discarding and keeping records and querying for them via `Ecto.Repo` functions. """ require Ecto.Query alias Ecto.Query alias Ecto.Queryable alias Ecto.Changeset alias Trash.Query, as: TrashQuery @doc """ Imports functions from `Trash...
27.709386
83
0.589734
f762ba8343f833019af1fe7934fd4247538a1ff4
1,123
exs
Elixir
first-last-character/config/config.exs
crsanti/codewars-elixir
7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0
[ "MIT" ]
2
2021-08-18T11:31:31.000Z
2021-08-24T00:25:08.000Z
first-last-character/config/config.exs
crsanti/codewars-elixir
7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0
[ "MIT" ]
null
null
null
first-last-character/config/config.exs
crsanti/codewars-elixir
7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.225806
73
0.751558
f762e4c4e14c16b44cd197a5a9053372cbf05ea4
711
ex
Elixir
lib/chatroom_web/gettext.ex
hotpyn/phoenix-chat-demo
0726e6d4dc9482230a1e4d2b3edbe83b19924521
[ "MIT" ]
null
null
null
lib/chatroom_web/gettext.ex
hotpyn/phoenix-chat-demo
0726e6d4dc9482230a1e4d2b3edbe83b19924521
[ "MIT" ]
2
2021-03-09T12:17:18.000Z
2021-05-10T02:09:33.000Z
lib/chatroom_web/gettext.ex
hotpyn/phoenix-chat-demo
0726e6d4dc9482230a1e4d2b3edbe83b19924521
[ "MIT" ]
null
null
null
defmodule ChatroomWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import ChatroomWeb.Gettext # Simple translation gettext "Here is...
28.44
72
0.682138
f7630ccefbdf7f1dd88266ea75b2ea48d58a93c9
932
exs
Elixir
issues/mix.exs
valevalorin/learning-elixir
cb7121b808341160ff225ea1ba61af1438c1b9b1
[ "MIT" ]
null
null
null
issues/mix.exs
valevalorin/learning-elixir
cb7121b808341160ff225ea1ba61af1438c1b9b1
[ "MIT" ]
null
null
null
issues/mix.exs
valevalorin/learning-elixir
cb7121b808341160ff225ea1ba61af1438c1b9b1
[ "MIT" ]
null
null
null
defmodule Issues.Mixfile do use Mix.Project def project do [app: :issues, version: "0.0.1", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, escript: escript_config, deps: deps] end # Configuration for the OTP application # # Type `mi...
20.711111
77
0.572961
f76348e0f768ad7789c83cedc5b3a5e3cab44d7c
358
exs
Elixir
test/pummpcomm/history/clear_alarm_test.exs
infinity-aps/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
15
2017-08-31T00:58:47.000Z
2020-01-12T03:53:13.000Z
test/pummpcomm/history/clear_alarm_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
1
2017-09-15T02:09:31.000Z
2017-09-15T02:09:31.000Z
test/pummpcomm/history/clear_alarm_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
3
2017-09-10T17:24:59.000Z
2019-09-10T19:41:49.000Z
defmodule Pummpcomm.History.ClearAlarmTest do use ExUnit.Case test "Clear Alarm" do {:ok, history_page} = Base.decode16("0C3D760F0C050F") decoded_events = Pummpcomm.History.decode_records(history_page, %{}) assert {:clear_alarm, %{timestamp: ~N[2015-04-05 12:15:54], raw: ^history_page}} = ...
29.833333
86
0.695531
f7634f410ebed7489f59fff1727daf02ca3be09a
3,467
exs
Elixir
test/file_utils_test.exs
akoutmos/ex_todo
f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa
[ "MIT" ]
14
2019-06-18T04:56:18.000Z
2021-03-22T07:59:43.000Z
test/file_utils_test.exs
akoutmos/ex_todo
f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa
[ "MIT" ]
null
null
null
test/file_utils_test.exs
akoutmos/ex_todo
f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa
[ "MIT" ]
null
null
null
defmodule FilUtilsTest do use ExUnit.Case alias ExTodo.{Config, FileUtils} describe "get_all_files/2" do test "should return a list of all the files that match the catch all glob" do files = get_all_sample_files() assert files == [ "test/sample_files/c_sample.c", "...
28.652893
88
0.626478
f763627173d2f844022e64d6cf37a1ee693d6832
4,486
ex
Elixir
clients/cloud_support/lib/google_api/cloud_support/v2beta/api/case_classifications.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_support/lib/google_api/cloud_support/v2beta/api/case_classifications.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_support/lib/google_api/cloud_support/v2beta/api/case_classifications.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
48.236559
252
0.667856
f7636efcf63ea0028ab11ba3b0a4a7180978f8bb
1,811
exs
Elixir
apps/banking_account_manager/mix.exs
danielscosta/banking_account_manager
8acec8f4fa774c85401e67b4aa39c97a0ca9d149
[ "MIT" ]
null
null
null
apps/banking_account_manager/mix.exs
danielscosta/banking_account_manager
8acec8f4fa774c85401e67b4aa39c97a0ca9d149
[ "MIT" ]
null
null
null
apps/banking_account_manager/mix.exs
danielscosta/banking_account_manager
8acec8f4fa774c85401e67b4aa39c97a0ca9d149
[ "MIT" ]
null
null
null
defmodule BankingAccountManager.MixProject do use Mix.Project def project do [ app: :banking_account_manager, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.5", ...
26.632353
79
0.586969
f76374eddaf0e99dcbe4a76f619a7359e6dbf3e2
512
ex
Elixir
lib/yacto.ex
gumi/yacto
b346e879775e974057ff25d5aae63688df7d4d07
[ "Apache-2.0" ]
56
2017-11-30T02:07:07.000Z
2022-02-16T17:38:42.000Z
lib/yacto.ex
gumi/yacto
b346e879775e974057ff25d5aae63688df7d4d07
[ "Apache-2.0" ]
22
2018-01-04T00:34:51.000Z
2021-08-01T06:52:10.000Z
lib/yacto.ex
gumi/yacto
b346e879775e974057ff25d5aae63688df7d4d07
[ "Apache-2.0" ]
13
2018-08-08T05:32:42.000Z
2021-07-30T14:57:35.000Z
defmodule Yacto do @external_resource "README.md" @moduledoc File.read!("README.md") |> String.split(~r/<!-- MDOC !-->/) |> Enum.fetch!(1) def transaction(databases, fun, opts \\ []) do dbopts = Keyword.get(opts, :databases) f = fn {dbname, dbkey} -> Yacto.DB.repo(dbname,...
26.947368
83
0.609375
f7637a6251054a4ebda9440d18b6e424cdaf91de
2,332
ex
Elixir
packages/templates/src/project/potionx/lib/{{ appName }}_web/telemetry.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
31
2021-02-16T20:50:46.000Z
2022-02-03T10:38:07.000Z
packages/templates/src/project/potionx/lib/{{ appName }}_web/telemetry.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
6
2021-04-07T21:50:20.000Z
2022-02-06T21:54:04.000Z
packages/templates/src/project/potionx/lib/{{ appName }}_web/telemetry.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
4
2021-03-25T17:59:44.000Z
2021-04-25T16:28:22.000Z
defmodule <%= webNamespace %>.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000m...
32.388889
88
0.640223
f76405551cf8057d07f4692b6d10c1e1719fd621
753
exs
Elixir
test/features/developer_sees_navigation_bar_test.exs
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
460
2016-12-28T21:50:05.000Z
2022-03-16T14:34:08.000Z
test/features/developer_sees_navigation_bar_test.exs
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
412
2016-12-27T17:32:01.000Z
2021-09-17T23:51:47.000Z
test/features/developer_sees_navigation_bar_test.exs
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
140
2017-01-06T06:55:58.000Z
2022-02-04T13:35:21.000Z
defmodule DeveloperSeesNavigationBarTest do use Tilex.IntegrationCase, async: true alias Tilex.Integration.Pages.Navigation describe "when developer is not authenticated" do test "there is no link on admin navbar", %{session: session} do link_texts = session |> visit("/") |> ge...
25.1
78
0.649402
f76408fde10223e4fa258cc13493d386652d4f57
4,346
ex
Elixir
lib/oli_web/live/sections/edit_view.ex
Simon-Initiative/oli-torus
7f3eaeaa18ca8837e5afbff3e8899ae13b49de8b
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/live/sections/edit_view.ex
Simon-Initiative/oli-torus
7f3eaeaa18ca8837e5afbff3e8899ae13b49de8b
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/live/sections/edit_view.ex
Simon-Initiative/oli-torus
7f3eaeaa18ca8837e5afbff3e8899ae13b49de8b
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.Sections.EditView do use Surface.LiveView alias OliWeb.Common.{Breadcrumb} alias OliWeb.Common.Properties.{Groups, Group} alias OliWeb.Router.Helpers, as: Routes alias Oli.Delivery.Sections alias OliWeb.Sections.{MainDetails, OpenFreeSettings, LtiSettings, PaywallSettings} alias Surface.C...
29.972414
112
0.64174
f7643229b31c098a2bdf5bc38d6f029e39c97842
4,302
exs
Elixir
test/console_web/controllers/invitation_controller_test.exs
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
test/console_web/controllers/invitation_controller_test.exs
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
1
2021-04-03T09:29:31.000Z
2021-04-03T09:29:31.000Z
test/console_web/controllers/invitation_controller_test.exs
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
defmodule ConsoleWeb.InvitationControllerTest do use ConsoleWeb.ConnCase import Plug.Conn import Phoenix.ConnTest import Console.Factory alias Console.Organizations describe "invitations" do setup [:authenticate_user] test "creates invitations properly", %{conn: conn} do current_organizati...
32.590909
127
0.592283
f76440c4775677eb536944e693375d2880174f6b
42,695
ex
Elixir
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/partners.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/partners.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/partners.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
43.700102
196
0.62293
f76445ae2732dddda6d9f50a118ed2540a826117
535
ex
Elixir
nfc/lib/nfc/nif.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
7
2020-11-18T11:29:20.000Z
2022-01-16T03:16:14.000Z
nfc/lib/nfc/nif.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
null
null
null
nfc/lib/nfc/nif.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
1
2021-01-06T15:40:46.000Z
2021-01-06T15:40:46.000Z
defmodule NFC.Nif do @on_load {:load_nif, 0} @compile {:autoload, false} @moduledoc false def load_nif() do nif_binary = Application.app_dir(:nfc, "priv/nfc_nif") libnfc_install_dir = Application.app_dir(:nfc, "priv/lib") IO.inspect(File.ls!(libnfc_install_dir)) System.put_env("LD_LIBRARY_PATH...
23.26087
62
0.71028
f7645ba3df4cf72fd3a7787d56bfaa02e7723fe2
2,411
exs
Elixir
test/automated/esp_ex/message_store_test.exs
Carburetor/esp_ex
0a0ab02c71945e521b213befc0421a4642c9e07b
[ "MIT" ]
null
null
null
test/automated/esp_ex/message_store_test.exs
Carburetor/esp_ex
0a0ab02c71945e521b213befc0421a4642c9e07b
[ "MIT" ]
1
2018-05-11T04:27:54.000Z
2018-05-11T04:27:54.000Z
test/automated/esp_ex/message_store_test.exs
Carburetor/esp_ex
0a0ab02c71945e521b213befc0421a4642c9e07b
[ "MIT" ]
1
2018-10-30T06:08:02.000Z
2018-10-30T06:08:02.000Z
defmodule EspEx.MessageStoreTest do use ExUnit.Case, async: true alias EspEx.MessageStore.Static, as: MessageStore alias EspEx.RawEvent alias EspEx.StreamName @stream_name %StreamName{category: "campaign", identifier: "123", types: []} @empty_stream %StreamName{category: "empty", identifier: nil, types: [...
25.924731
78
0.683119
f7645c71a73a45c84653e45e8160b4769955ed92
145
exs
Elixir
config/prod.exs
mijailr/alertas.ec
f33f0c0236675e4749b327f13612a0f67aaf9a77
[ "MIT" ]
8
2020-03-15T19:07:58.000Z
2022-03-10T19:06:55.000Z
config/prod.exs
mijailr/alertas.ec
f33f0c0236675e4749b327f13612a0f67aaf9a77
[ "MIT" ]
223
2020-04-14T10:43:50.000Z
2021-06-21T11:40:34.000Z
config/prod.exs
mijailr/alertas.ec
f33f0c0236675e4749b327f13612a0f67aaf9a77
[ "MIT" ]
null
null
null
import Config config :alertas_ec, AlertasEc.Repo, url: System.get_env("DATABASE_URL"), migration_primary_key: [name: :id, type: :binary_id]
24.166667
54
0.751724
f76464f5ede1a9edfcdfddc8b8e0f96a5c79f0a3
5,270
exs
Elixir
test/elixir/test/config_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
null
null
null
test/elixir/test/config_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
1
2018-02-08T23:08:43.000Z
2018-02-08T23:08:43.000Z
test/elixir/test/config_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
null
null
null
defmodule ConfigTest do use CouchTestCase @moduletag :config @moduletag kind: :single_node @moduledoc """ Test CouchDB config API This is a port of the config.js suite """ setup do config_url = "/_node/_local/_config" resp = Couch.get(config_url) assert resp.status_code == 200 {:ok, c...
29.606742
121
0.651233
f7646abbe00324e6a9a847ff76df599f88fea3b7
4,597
ex
Elixir
lib/graphql/encoder.ex
TheRealReal/graphql_client
18b5b93f06a5cac218f8727eb0f7863081b7becf
[ "Apache-2.0" ]
9
2022-03-11T21:14:13.000Z
2022-03-31T14:13:38.000Z
lib/graphql/encoder.ex
TheRealReal/graphql_client
18b5b93f06a5cac218f8727eb0f7863081b7becf
[ "Apache-2.0" ]
null
null
null
lib/graphql/encoder.ex
TheRealReal/graphql_client
18b5b93f06a5cac218f8727eb0f7863081b7becf
[ "Apache-2.0" ]
null
null
null
defmodule GraphQL.Encoder do @moduledoc """ Functions to encode `GraphQL.Query` struct into a string """ alias GraphQL.{Node, Query, Variable} @doc """ Encodes a `GraphQL.Query` struct into a GraphQL query body """ @spec encode(Query.t()) :: String.t() def encode(%Query{} = query) do has_fragment...
22.64532
86
0.567762
f7649a6260b0ef982eef4d57d9b6d214d15e5448
327
ex
Elixir
test/support/test_util.ex
slievr/kcl_ex
c1620ba68b56da1802e6e9fafdb3da14155b90d7
[ "Apache-2.0" ]
4
2017-12-19T15:27:54.000Z
2021-06-04T13:04:49.000Z
test/support/test_util.ex
slievr/kcl_ex
c1620ba68b56da1802e6e9fafdb3da14155b90d7
[ "Apache-2.0" ]
2
2021-03-05T12:01:24.000Z
2021-12-03T22:34:24.000Z
test/support/test_util.ex
slievr/kcl_ex
c1620ba68b56da1802e6e9fafdb3da14155b90d7
[ "Apache-2.0" ]
3
2021-02-17T16:14:11.000Z
2021-12-10T05:26:25.000Z
defmodule KinesisClient.TestUtil do def random_string do min = String.to_integer("10000000", 36) max = String.to_integer("ZZZZZZZZ", 36) max |> Kernel.-(min) |> :rand.uniform() |> Kernel.+(min) |> Integer.to_string(36) end def worker_ref() do "worker-#{:rand.uniform(10_000)}" e...
19.235294
43
0.626911
f764b11c068f9a563481816199a2c5415e54ce44
276
ex
Elixir
lib/jingle.ex
x4121/jingle
2e034b1f936b59d3ae2b29355c8a6d7c3fb435d1
[ "MIT" ]
null
null
null
lib/jingle.ex
x4121/jingle
2e034b1f936b59d3ae2b29355c8a6d7c3fb435d1
[ "MIT" ]
null
null
null
lib/jingle.ex
x4121/jingle
2e034b1f936b59d3ae2b29355c8a6d7c3fb435d1
[ "MIT" ]
null
null
null
defmodule Jingle do use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(Jingle.Repo, []) ] opts = [strategy: :one_for_one, name: Jingle.Supervisor] Supervisor.start_link(children, opts) end end
18.4
60
0.67029
f764c1e76c2fcceab1db42e3a90827d053ce6759
696
exs
Elixir
test/elixir_latex/latex_helpers_test.exs
moroz/elixir_latex
a7cd0ee5b1e82951dde8926cdaabd39551997f0c
[ "BSD-3-Clause" ]
1
2021-12-21T10:38:35.000Z
2021-12-21T10:38:35.000Z
test/elixir_latex/latex_helpers_test.exs
moroz/elixir_latex
a7cd0ee5b1e82951dde8926cdaabd39551997f0c
[ "BSD-3-Clause" ]
null
null
null
test/elixir_latex/latex_helpers_test.exs
moroz/elixir_latex
a7cd0ee5b1e82951dde8926cdaabd39551997f0c
[ "BSD-3-Clause" ]
null
null
null
defmodule ElixirLatex.LatexHelpersTest do use ExUnit.Case alias ElixirLatex.LatexHelpers @sample_text "\\documentclass[a4paper]{article}" test "escape_latex/1 replaces special LaTeX chars with escape sequences" do actual = LatexHelpers.escape_latex(@sample_text) assert actual == "\\textbackslash{}docu...
26.769231
77
0.727011
f764c41e2bb6f481bbf565ec0337b24d37fa36ec
204
ex
Elixir
lib/sec_edgar.ex
david-christensen/sec_edgar
fd129d127a1b9e454cc5d215fd95b3eb37dcc70c
[ "MIT" ]
null
null
null
lib/sec_edgar.ex
david-christensen/sec_edgar
fd129d127a1b9e454cc5d215fd95b3eb37dcc70c
[ "MIT" ]
null
null
null
lib/sec_edgar.ex
david-christensen/sec_edgar
fd129d127a1b9e454cc5d215fd95b3eb37dcc70c
[ "MIT" ]
null
null
null
defmodule SecEdgar do @moduledoc """ Documentation for `SecEdgar`. """ @doc """ Hello world. ## Examples iex> SecEdgar.hello() :world """ def hello do :world end end
10.736842
31
0.563725
f764d328877b8663548ca646a01da3898b487808
267
exs
Elixir
priv/repo/migrations/20190426094325_create_users.exs
ritavaz02/Produtos
b29ed74e428eb9391ccd12460d1dcb005d040400
[ "MIT" ]
2
2019-10-10T11:57:29.000Z
2019-12-17T18:04:10.000Z
priv/repo/migrations/20190426094325_create_users.exs
ritavaz02/Produtos
b29ed74e428eb9391ccd12460d1dcb005d040400
[ "MIT" ]
86
2019-04-27T16:18:58.000Z
2021-05-28T23:13:36.000Z
priv/repo/migrations/20190426094325_create_users.exs
ritavaz02/Produtos
b29ed74e428eb9391ccd12460d1dcb005d040400
[ "MIT" ]
1
2020-07-16T04:52:47.000Z
2020-07-16T04:52:47.000Z
defmodule Chirper.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add :username, :string add :encrypted_password, :string timestamps() end create unique_index(:users, [:username]) end end
17.8
48
0.681648
f7652c0473a5d5193f05a6cf67b3564fae316cad
73
exs
Elixir
countdown/test/test_helper.exs
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
null
null
null
countdown/test/test_helper.exs
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
3
2021-03-09T20:36:45.000Z
2021-05-10T17:47:02.000Z
countdown/test/test_helper.exs
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Countdown.Repo, :manual)
14.6
55
0.767123
f765696879584684f42bcd289307834b78449748
1,081
exs
Elixir
test/ex_guard/notifier/tmux_test.exs
NOLAnuffsaid/ex_guard
513855563d10e3b93abdd29bf46f38ba310e21ea
[ "MIT" ]
80
2016-03-19T18:50:55.000Z
2021-07-15T11:05:47.000Z
test/ex_guard/notifier/tmux_test.exs
NOLAnuffsaid/ex_guard
513855563d10e3b93abdd29bf46f38ba310e21ea
[ "MIT" ]
33
2016-03-15T19:26:04.000Z
2022-01-24T16:01:44.000Z
test/ex_guard/notifier/tmux_test.exs
NOLAnuffsaid/ex_guard
513855563d10e3b93abdd29bf46f38ba310e21ea
[ "MIT" ]
14
2016-08-24T13:57:48.000Z
2020-12-15T11:58:52.000Z
defmodule ExGuard.Notifier.TMuxTest do use ExUnit.Case alias ExGuard.Notifier.TMux test "prepare TerminalNotifier command" do command = TMux.prepare_cmd(title: "unit test", message: "boo", status: :ok) assert command == ~s(tmux set -q status-left-bg green) command = TMux.prepare_cmd(title: "unit te...
33.78125
84
0.683626
f7658a893b15a491d85b567049134aecf903711a
779
ex
Elixir
lib/channel_store.ex
MMore/slack-saved-items-export
d7d470c11a2927949f84fa5637968455f9319923
[ "MIT" ]
5
2021-07-16T05:27:52.000Z
2022-01-18T08:05:32.000Z
lib/channel_store.ex
MMore/slack-saved-items-export
d7d470c11a2927949f84fa5637968455f9319923
[ "MIT" ]
null
null
null
lib/channel_store.ex
MMore/slack-saved-items-export
d7d470c11a2927949f84fa5637968455f9319923
[ "MIT" ]
null
null
null
defmodule SSIExport.ChannelStore do alias SSIExport.DataAdapter use GenServer # Client def start_link(_args) do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def get_channel_name(channel_id) do GenServer.call(__MODULE__, {:get_channel_name, channel_id}, :infinity) end # Server ...
22.911765
92
0.689345