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
5af63fb712f0bd3d93b865c59e0aeb1e019a1bc2
2,925
exs
Elixir
test/mix/tasks/ecto.migrate_test.exs
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.migrate_test.exs
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.migrate_test.exs
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Ecto.MigrateTest do use ExUnit.Case import Mix.Tasks.Ecto.Migrate, only: [run: 2] import Support.FileHelpers migrations_path = Path.join([tmp_path, inspect(Ecto.Migrate), "migrations"]) setup do File.mkdir_p!(unquote(migrations_path)) :ok end defmodule Repo do def start...
24.788136
96
0.616752
5af658a78aaa9260f001037c52a738cfbe8c5f50
594
ex
Elixir
apps/archives/lib/archives.ex
dcbartlett/exFACI
ab8ba1c9490dbe22960d4241434452ba0f55f4ef
[ "MIT" ]
null
null
null
apps/archives/lib/archives.ex
dcbartlett/exFACI
ab8ba1c9490dbe22960d4241434452ba0f55f4ef
[ "MIT" ]
null
null
null
apps/archives/lib/archives.ex
dcbartlett/exFACI
ab8ba1c9490dbe22960d4241434452ba0f55f4ef
[ "MIT" ]
null
null
null
defmodule Archives do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Define workers and child supervisors to be supervised # worker(Arc...
29.7
67
0.713805
5af6635657f204cd65ad2ec6863ac0b4d3c7049e
459
ex
Elixir
lib/blue_bird.ex
Bleachr/blue_bird
5ea1d1f047ce379bc73b6d7892fdd44392b09569
[ "MIT" ]
52
2017-05-29T11:18:43.000Z
2021-09-17T07:55:14.000Z
lib/blue_bird.ex
Bleachr/blue_bird
5ea1d1f047ce379bc73b6d7892fdd44392b09569
[ "MIT" ]
50
2017-05-30T13:21:00.000Z
2019-12-24T00:17:02.000Z
lib/blue_bird.ex
Bleachr/blue_bird
5ea1d1f047ce379bc73b6d7892fdd44392b09569
[ "MIT" ]
13
2017-07-06T20:52:08.000Z
2020-04-27T06:28:34.000Z
defmodule BlueBird do @moduledoc false use Application import Supervisor.Spec def start(_type, []) do children = [ worker(BlueBird.ConnLogger, []) ] opts = [strategy: :one_for_one, name: BlueBird.Supervisor] Supervisor.start_link(children, opts) end def start(options \\ []) do ...
17.653846
62
0.642702
5af6ebe8d7038e7d8c482f3ed079a58f092d0280
1,119
exs
Elixir
config/config.exs
roberto-slopez/standard-deviation
e8a7b705fc30cf7886c45e4f55e37599ca9d16d1
[ "MIT" ]
null
null
null
config/config.exs
roberto-slopez/standard-deviation
e8a7b705fc30cf7886c45e4f55e37599ca9d16d1
[ "MIT" ]
null
null
null
config/config.exs
roberto-slopez/standard-deviation
e8a7b705fc30cf7886c45e4f55e37599ca9d16d1
[ "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.096774
73
0.748883
5af70a25036dd0b415f2f321408eab83631443ad
792
ex
Elixir
lib/telemetry_metrics/distribution.ex
akoutmos/telemetry_metrics
842b7c8113540bc0825c3a91908624df00ea8222
[ "Apache-2.0" ]
164
2018-11-07T14:20:19.000Z
2022-03-18T14:28:11.000Z
deps/telemetry_metrics/lib/telemetry_metrics/distribution.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
67
2018-12-23T16:41:47.000Z
2022-01-25T11:48:00.000Z
deps/telemetry_metrics/lib/telemetry_metrics/distribution.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
27
2019-01-09T20:46:10.000Z
2021-09-13T21:34:26.000Z
defmodule Telemetry.Metrics.Distribution do @moduledoc """ Defines a specification of distribution metric. """ alias Telemetry.Metrics defstruct [ :name, :event_name, :measurement, :tags, :tag_values, :keep, :description, :unit, :reporter_options ] @type t :: %__MODU...
24.75
83
0.618687
5af71edc49c7aec6032cbc3a6c62c53fa6671d0b
2,337
ex
Elixir
lib/ecto_enum/postgres/use.ex
Packlane/ecto_enum
4431a2f6e0762b67e75b47d17004c6ac0c256352
[ "MIT" ]
1
2019-08-31T04:07:54.000Z
2019-08-31T04:07:54.000Z
lib/ecto_enum/postgres/use.ex
Packlane/ecto_enum
4431a2f6e0762b67e75b47d17004c6ac0c256352
[ "MIT" ]
null
null
null
lib/ecto_enum/postgres/use.ex
Packlane/ecto_enum
4431a2f6e0762b67e75b47d17004c6ac0c256352
[ "MIT" ]
3
2019-08-29T22:10:03.000Z
2020-06-16T09:10:27.000Z
defmodule EctoEnum.Postgres.Use do @moduledoc false alias EctoEnum.Typespec defmacro __using__(input) do quote bind_quoted: [input: input] do typespec = Typespec.make(input[:enums]) @behaviour Ecto.Type @type t :: unquote(typespec) enums = input[:enums] valid_values = enums ...
26.862069
90
0.595208
5af7417890ccf54f71b85a2c68ad03ad61cd934a
1,737
ex
Elixir
clients/content/lib/google_api/content/v21/model/returnpolicy_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/returnpolicy_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/returnpolicy_list_response.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...
34.74
184
0.737478
5af778b963818a52e66c83fbdda84789580f47ca
4,244
ex
Elixir
lib/hpack/table.ex
lucacorti/elixir-hpack
0f88d5be96b616148c63d2ec6c6b00e159c308db
[ "Unlicense", "MIT" ]
31
2016-03-11T08:45:08.000Z
2017-08-05T13:33:59.000Z
lib/hpack/table.ex
lucacorti/elixir-hpack
0f88d5be96b616148c63d2ec6c6b00e159c308db
[ "Unlicense", "MIT" ]
8
2018-12-03T19:36:58.000Z
2021-09-22T20:39:16.000Z
lib/hpack/table.ex
OleMchls/elixir-hpack
0f88d5be96b616148c63d2ec6c6b00e159c308db
[ "Unlicense", "MIT" ]
8
2016-05-05T11:59:38.000Z
2017-08-04T15:08:19.000Z
defmodule HPack.Table do @moduledoc """ Functions to maintain the (de)compression context. Contains the static tables as well as all menagement of the dynamic table. """ @static [ {":authority", nil}, {":method", "GET"}, {":method", "POST"}, {":path", "/"}, {":path", "/index.html"}, ...
27.205128
99
0.560556
5af77b848777c6147bcf2a696d8a06413d89b644
74
exs
Elixir
test/diff_web/views/page_view_test.exs
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
59
2020-01-20T20:32:31.000Z
2022-02-11T07:25:45.000Z
test/diff_web/views/page_view_test.exs
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
33
2020-01-20T19:38:09.000Z
2021-11-19T10:08:25.000Z
test/diff_web/views/page_view_test.exs
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
12
2020-01-20T21:11:14.000Z
2021-05-10T19:56:47.000Z
defmodule DiffWeb.PageViewTest do use DiffWeb.ConnCase, async: true end
18.5
35
0.810811
5af7868f51cf0d04ac6f031d2b3ec6ea9785bdf5
1,641
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_unit_content_ads_settings_backup_option.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_unit_content_ads_settings_backup_option.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_unit_content_ads_settings_backup_option.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 "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...
32.82
108
0.745887
5af787ed0ed0446689d7b9f35414b6a1c5dbefc7
1,055
ex
Elixir
lib/leaderboards/application.ex
jordyvanvorselen/leaderboards
0087c756a157f0e9ccbee3ec02a21d0c813e40a9
[ "MIT" ]
null
null
null
lib/leaderboards/application.ex
jordyvanvorselen/leaderboards
0087c756a157f0e9ccbee3ec02a21d0c813e40a9
[ "MIT" ]
null
null
null
lib/leaderboards/application.ex
jordyvanvorselen/leaderboards
0087c756a157f0e9ccbee3ec02a21d0c813e40a9
[ "MIT" ]
null
null
null
defmodule Leaderboards.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository Leaderboards.Repo, # Start the Telemetry supervisor ...
30.142857
70
0.714692
5af7dbdbca431a82f93aed38f9855b8fab3a3685
894
ex
Elixir
backend/test/support/mocks/astarte/device/led_behavior.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
14
2021-12-02T16:31:16.000Z
2022-03-18T17:40:44.000Z
backend/test/support/mocks/astarte/device/led_behavior.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
77
2021-11-03T15:14:41.000Z
2022-03-30T14:13:32.000Z
backend/test/support/mocks/astarte/device/led_behavior.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
7
2021-11-03T10:58:37.000Z
2022-02-28T14:00:03.000Z
# # This file is part of Edgehog. # # Copyright 2022 SECO Mind 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 app...
28.83871
74
0.755034
5af7f35b25d5d8d2099331ab143d4e56e3b5961e
4,187
exs
Elixir
test/components/form/range_input_test.exs
jprincipe/surface
011ff48401f6b3659f03fbd6a92e7028b0173547
[ "MIT" ]
null
null
null
test/components/form/range_input_test.exs
jprincipe/surface
011ff48401f6b3659f03fbd6a92e7028b0173547
[ "MIT" ]
null
null
null
test/components/form/range_input_test.exs
jprincipe/surface
011ff48401f6b3659f03fbd6a92e7028b0173547
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.RangeInputTest do use ExUnit.Case, async: true import ComponentTestHelper alias Surface.Components.Form.RangeInput, warn: false test "empty input" do code = quote do ~H""" <RangeInput form="volume" field="percent"/> """ end assert...
25.071856
107
0.554096
5af80667e4fbb935cae88e23a3dd6fcdd30f878f
2,151
exs
Elixir
tests/server/config/prod.exs
Webtrekk/Webtrekk-Smart-Pixel
8ac5e5132d600ccd486573f88be84908b614530b
[ "MIT" ]
6
2019-05-10T00:01:17.000Z
2022-03-03T12:52:51.000Z
tests/server/config/prod.exs
Webtrekk/Webtrekk-Smart-Pixel
8ac5e5132d600ccd486573f88be84908b614530b
[ "MIT" ]
4
2020-01-20T13:19:30.000Z
2021-10-15T07:46:59.000Z
tests/server/config/prod.exs
Webtrekk/Webtrekk-Smart-Pixel
8ac5e5132d600ccd486573f88be84908b614530b
[ "MIT" ]
2
2020-05-02T15:59:43.000Z
2020-10-21T09:00:38.000Z
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
34.142857
66
0.709902
5af81031feefafb3bc765092d04162aa9703152e
1,168
exs
Elixir
config/config.exs
mazz/beepbop
9d5930a870904fd84c317d3c2865d6b1c9a1080c
[ "MIT" ]
3
2018-03-26T14:04:26.000Z
2018-12-09T11:53:18.000Z
config/config.exs
mazz/beepbop
9d5930a870904fd84c317d3c2865d6b1c9a1080c
[ "MIT" ]
6
2018-04-16T13:07:18.000Z
2018-06-25T09:54:47.000Z
config/config.exs
mazz/beepbop
9d5930a870904fd84c317d3c2865d6b1c9a1080c
[ "MIT" ]
6
2019-04-01T07:58:56.000Z
2022-03-13T16:08:05.000Z
# 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...
35.393939
73
0.755137
5af84526782f4109eedc152ae211c620faf1ac09
55
ex
Elixir
lib/phat_web/views/user_view.ex
tajchumber/live-view-chat
d98d445b145a197eadc4381e264f3d1918f0b90f
[ "Apache-2.0" ]
50
2019-05-23T11:59:30.000Z
2022-03-11T04:12:36.000Z
lib/phat_web/views/user_view.ex
tajchumber/live-view-chat
d98d445b145a197eadc4381e264f3d1918f0b90f
[ "Apache-2.0" ]
6
2019-05-18T09:53:46.000Z
2021-01-27T11:26:15.000Z
lib/phat_web/views/user_view.ex
tajchumber/live-view-chat
d98d445b145a197eadc4381e264f3d1918f0b90f
[ "Apache-2.0" ]
18
2019-05-18T08:13:51.000Z
2021-11-23T13:57:33.000Z
defmodule PhatWeb.UserView do use PhatWeb, :view end
13.75
29
0.781818
5af84c856a31d3f082e0e1682c942977368c78b3
70
ex
Elixir
web/views/hello_view.ex
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
web/views/hello_view.ex
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
web/views/hello_view.ex
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
defmodule MysteryNight.HelloView do use MysteryNight.Web, :view end
17.5
35
0.814286
5af86d162a9c46370cd27b377004c3ec7ea86bcc
3,158
ex
Elixir
lib/zaryn/mining/standalone_workflow.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
1
2021-07-06T19:47:14.000Z
2021-07-06T19:47:14.000Z
lib/zaryn/mining/standalone_workflow.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
lib/zaryn/mining/standalone_workflow.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
defmodule Zaryn.Mining.StandaloneWorkflow do @moduledoc """ Transaction validation is performed in a single node processing. This workflow should be executed only when the network is bootstrapping (only 1 validation node) The single node will auto validate the transaction """ use Task alias Zaryn.Crypto...
28.972477
163
0.70456
5af873af9bf601c1b6ab11fc9313e59dda25b7ae
1,595
ex
Elixir
test/support/model_case.ex
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
test/support/model_case.ex
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
test/support/model_case.ex
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
defmodule BasicPhoenixApp.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be asy...
26.583333
84
0.69279
5af87e81a3868a981cd1d02a168d4853225c139d
1,300
exs
Elixir
test/farmbot_ext/bootstrap/drop_password_task_test.exs
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
843
2016-10-05T23:46:05.000Z
2022-03-14T04:31:55.000Z
test/farmbot_ext/bootstrap/drop_password_task_test.exs
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
455
2016-10-15T08:49:16.000Z
2022-03-15T12:23:04.000Z
test/farmbot_ext/bootstrap/drop_password_task_test.exs
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
261
2016-10-10T04:37:06.000Z
2022-03-13T21:07:38.000Z
defmodule FarmbotExt.Bootstrap.DropPasswordTaskTest do require Helpers use ExUnit.Case use Mimic setup :verify_on_exit! setup :set_mimic_global alias FarmbotExt.Bootstrap.{ DropPasswordTask, Authorization, DropPasswordSupport } @fake_params %{email: "email", password: "password", server:...
26
72
0.609231
5af88500e843397d0bf4bdfa8e3b75a8f2fdbf3f
7,026
ex
Elixir
clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/energy_efficiency.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/energy_efficiency.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/energy_efficiency.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...
81.697674
737
0.763735
5af896837197fad3129642e67a3f01d5219d3d4e
896
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
33.185185
74
0.762277
5af8d3248c7ee4580340cdf76241dc1393cff05e
3,754
exs
Elixir
test/serum/project_test.exs
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
302
2016-08-01T05:16:06.000Z
2022-03-26T07:20:46.000Z
test/serum/project_test.exs
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
206
2016-08-04T15:18:35.000Z
2022-03-01T03:07:57.000Z
test/serum/project_test.exs
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
35
2016-10-29T13:59:34.000Z
2022-03-01T01:50:31.000Z
defmodule Serum.ProjecTest do use ExUnit.Case, async: true import ExUnit.CaptureIO alias Serum.IOProxy alias Serum.Project setup_all do {:ok, io_opts} = IOProxy.config() IOProxy.config(mute_err: false) on_exit(fn -> IOProxy.config(Keyword.new(io_opts)) end) end describe "fallback string for...
30.770492
74
0.626265
5af8e75dba58b8405b7ee5f84f6c3e2117548a01
1,079
ex
Elixir
lib/corex_web/controllers/session_controller.ex
eahanson/corex
550020c5cbfc7dc828bc74e1edf0223c1cbffef1
[ "MIT" ]
null
null
null
lib/corex_web/controllers/session_controller.ex
eahanson/corex
550020c5cbfc7dc828bc74e1edf0223c1cbffef1
[ "MIT" ]
null
null
null
lib/corex_web/controllers/session_controller.ex
eahanson/corex
550020c5cbfc7dc828bc74e1edf0223c1cbffef1
[ "MIT" ]
null
null
null
defmodule CorexWeb.SessionController do use CorexWeb, :controller import CorexWeb.AuthGuards alias Corex.Accounts alias Corex.Accounts.User alias CorexWeb.Session def action(conn, _) do apply(__MODULE__, action_name(conn), [conn, conn.params, Session.get_current_user_role(conn)]) end def new(con...
28.394737
98
0.672845
5af8e7f4658d7c27639b7cc996336ef74306e935
1,203
ex
Elixir
test/support/test_producer.ex
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
11
2020-01-30T17:44:35.000Z
2022-01-13T19:17:21.000Z
test/support/test_producer.ex
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
100
2020-02-11T10:01:35.000Z
2022-02-17T10:39:35.000Z
test/support/test_producer.ex
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
7
2020-01-30T11:33:20.000Z
2021-05-03T09:48:41.000Z
# # This file is part of Astarte. # # Copyright 2019 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...
26.152174
76
0.719036
5af90fd2e7c1b4eda502a13307a49b496adfd19d
1,255
ex
Elixir
lib/oli/rendering/elements/html.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
1
2022-03-17T20:35:47.000Z
2022-03-17T20:35:47.000Z
lib/oli/rendering/elements/html.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
lib/oli/rendering/elements/html.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule Oli.Rendering.Elements.Html do @moduledoc """ Implements the Html writer for rendering errors """ @behaviour Oli.Rendering.Elements alias Oli.Rendering.Context alias Oli.Rendering.Content alias Oli.Rendering.Activity alias Oli.Rendering.Group alias Oli.Rendering.Break alias Oli.Rendering....
24.134615
80
0.668526
5af918619cdca218efa379f7411c3c251999d5a7
2,126
exs
Elixir
test/boolean_test.exs
MajAhd/elx_validation
4146a86bf16ea1154d391bde1aa847fe5cc79c4e
[ "MIT" ]
3
2021-07-03T08:27:46.000Z
2021-08-18T06:00:38.000Z
test/boolean_test.exs
MajAhd/elx_validation
4146a86bf16ea1154d391bde1aa847fe5cc79c4e
[ "MIT" ]
1
2021-06-21T19:27:35.000Z
2021-06-30T18:24:39.000Z
test/boolean_test.exs
MajAhd/elx_validation
4146a86bf16ea1154d391bde1aa847fe5cc79c4e
[ "MIT" ]
1
2021-08-13T16:14:13.000Z
2021-08-13T16:14:13.000Z
defmodule ElxValidation.BooleanTest do use ExUnit.Case doctest ElxValidation.Boolean test "validate_boolean" do assert ElxValidation.Boolean.validate_boolean("true") == true assert ElxValidation.Boolean.validate_boolean("false") == true assert ElxValidation.Boolean.validate_boolean("0") == true ...
25.011765
83
0.549389
5af91d735cc569ff1469c06778b1410d5112d6bf
732
ex
Elixir
lib/docusign/model/settings_metadata.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
4
2020-12-21T12:50:13.000Z
2022-01-12T16:50:43.000Z
lib/docusign/model/settings_metadata.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
12
2018-09-18T15:26:34.000Z
2019-09-28T15:29:39.000Z
lib/docusign/model/settings_metadata.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
15
2020-04-29T21:50:16.000Z
2022-02-11T18:01:51.000Z
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule DocuSign.Model.SettingsMetadata do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :is21CFRPart11, :options, :rights...
20.914286
75
0.603825
5af942d24183d0699d2e31aa696e3177bdd973cb
37,059
ex
Elixir
lib/scenic/cache/base.ex
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
1
2020-09-20T14:07:49.000Z
2020-09-20T14:07:49.000Z
lib/scenic/cache/base.ex
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
null
null
null
lib/scenic/cache/base.ex
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 2019-03-04. # Copyright © 2019 Kry10 Industries. All rights reserved. # defmodule Scenic.Cache.Base do @moduledoc """ Base module for static asset caches. This module is not intended to be used directly. To access items in the static cache, refer to the modules for the type of...
32.737633
101
0.556518
5af957778bdf6236025f82771fa15bc72d370160
1,105
ex
Elixir
test/support/channel_case.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
test/support/channel_case.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
test/support/channel_case.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
defmodule BadgesWeb.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 wi...
26.95122
68
0.725792
5af976644b0b1fc69b16facb05c505ca2f9032cd
95
ex
Elixir
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/live/random_live/component.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
1
2022-02-16T09:00:34.000Z
2022-02-16T09:00:34.000Z
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/live/random_live/component.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
unscheduled/live_view_performance_tips/code/lv_performance/lib/lv_performance_web/live/random_live/component.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
defmodule LvPerformanceWeb.RandomLive.Component do use LvPerformanceWeb, :live_component end
23.75
50
0.863158
5af9896da9bee19b10f4657399d491604231af2c
1,815
ex
Elixir
clients/ad_mob/lib/google_api/ad_mob/v1/model/date_range.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/ad_mob/lib/google_api/ad_mob/v1/model/date_range.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/ad_mob/lib/google_api/ad_mob/v1/model/date_range.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.3
167
0.723416
5af9995cdbf9f1d6a2b4b52ff6bb11f349e46c13
208
exs
Elixir
priv/repo/migrations/20180416115537_create_community_thread.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/repo/migrations/20180416115537_create_community_thread.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20180416115537_create_community_thread.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Repo.Migrations.CreateCommunityThread do use Ecto.Migration def change do create table(:community_threads) do add(:title, :string) timestamps() end end end
17.333333
64
0.716346
5af9ad2fedbfb123d7eb59ff82293c4d717367c8
1,363
exs
Elixir
test/bank_stone/auth_test.exs
theguuholi/bank_stone
150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5
[ "MIT" ]
3
2020-04-25T11:35:06.000Z
2021-10-06T19:59:47.000Z
test/bank_stone/auth_test.exs
theguuholi/bank_stone
150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5
[ "MIT" ]
12
2019-11-04T11:06:37.000Z
2019-11-21T11:03:57.000Z
test/bank_stone/auth_test.exs
theguuholi/bank_stone
150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5
[ "MIT" ]
1
2020-12-11T07:05:04.000Z
2020-12-11T07:05:04.000Z
defmodule BankStone.AuthTest do use BankStone.DataCase alias BankStone.Accounts describe "users" do alias BankStone.Accounts.User @valid_attrs %{ email: "teste@teste.com", first_name: "Teste", last_name: "Oliveira", password: "teste@1234", password_confirmation: "teste@123...
29
87
0.657373
5af9c623458a20d368104f68d48bb3e650a5add3
396
exs
Elixir
script/slave.exs
tulip/modbus
dab29a158033b50cda2e0fa574c022d01976622d
[ "Apache-2.0" ]
11
2016-11-24T18:48:57.000Z
2020-10-26T07:30:34.000Z
script/slave.exs
tulip/modbus
dab29a158033b50cda2e0fa574c022d01976622d
[ "Apache-2.0" ]
5
2016-11-28T19:33:39.000Z
2022-03-07T18:40:34.000Z
script/slave.exs
tulip/modbus
dab29a158033b50cda2e0fa574c022d01976622d
[ "Apache-2.0" ]
13
2016-12-14T15:42:23.000Z
2021-11-02T19:46:16.000Z
#run with: mix slave alias Modbus.Tcp.Slave alias Modbus.Tcp.Master #start your slave with a shared model model = %{ 0x50=>%{ {:c, 0x5152}=>0 } } {:ok, spid} = Slave.start_link([model: model]) #get the assigned tcp port {:ok, %{port: port}} = Slave.id(spid) #interact with it {:ok, mpid} = Master.start_link([ip: {127,...
28.285714
62
0.646465
5af9c8fc940cfbb4d517911104bf8ce297c80bbf
2,208
ex
Elixir
lib/excheck/predicate.ex
sebastian/excheck
1a13bb582e6df9fcdec8dd2073f46d46cac255df
[ "MIT" ]
318
2015-01-19T16:45:51.000Z
2022-03-18T21:28:16.000Z
lib/excheck/predicate.ex
sebastian/excheck
1a13bb582e6df9fcdec8dd2073f46d46cac255df
[ "MIT" ]
44
2015-01-04T13:02:20.000Z
2019-08-08T19:35:21.000Z
lib/excheck/predicate.ex
sebastian/excheck
1a13bb582e6df9fcdec8dd2073f46d46cac255df
[ "MIT" ]
35
2015-01-30T02:48:37.000Z
2019-08-06T14:37:48.000Z
defmodule ExCheck.Predicate do @moduledoc """ Provides macros for predicates. """ @doc """ Verify the property is hold for all the generated samples. > for_all x in int, do: x * x >= 0 """ defmacro for_all({:in, _, [x, generator]}, [do: property]) do quote do { :"prop:forall", unquote(gener...
25.976471
79
0.62183
5af9db3f59673be3ca10eb5319c27166e1071778
3,984
exs
Elixir
test/rubber_band/client/utils_test.exs
tlux/rubberband
bece85cf8049ba487bba1d5df0906f6fbfa146eb
[ "MIT" ]
null
null
null
test/rubber_band/client/utils_test.exs
tlux/rubberband
bece85cf8049ba487bba1d5df0906f6fbfa146eb
[ "MIT" ]
null
null
null
test/rubber_band/client/utils_test.exs
tlux/rubberband
bece85cf8049ba487bba1d5df0906f6fbfa146eb
[ "MIT" ]
null
null
null
defmodule RubberBand.Client.UtilsTest do use ExUnit.Case, async: true alias RubberBand.Client.Config alias RubberBand.Client.Utils describe "build_url/1" do test "get URL when path nil" do base_url = "http://localhost:9200/root" config = %Config{base_url: base_url} assert Utils.build_ur...
33.2
87
0.587851
5af9f50385c5f89eb146c07967b22a04d6194c35
975
ex
Elixir
test/support/conn_case.ex
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
test/support/conn_case.ex
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
test/support/conn_case.ex
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
defmodule Chat.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 imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the datab...
23.214286
63
0.701538
5afa5805382ae0fbd1aac9db6bf79fc296c6e909
1,514
ex
Elixir
lib/console/organizations/organization_resolver.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
lib/console/organizations/organization_resolver.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
lib/console/organizations/organization_resolver.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
defmodule Console.Organizations.OrganizationResolver do alias Console.Repo alias Console.Organizations.Organization alias Console.Organizations def paginate(%{page: page, page_size: page_size}, %{context: %{current_user: current_user, current_membership: current_membership}}) do organizations = case ...
29.115385
137
0.640687
5afad97fac122f85336040ce2148f655c8203371
351
exs
Elixir
priv/repo/seeds.exs
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
61
2021-06-22T00:15:59.000Z
2022-01-31T15:13:51.000Z
priv/repo/seeds.exs
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
1
2021-06-21T18:42:41.000Z
2021-06-21T18:42:41.000Z
priv/repo/seeds.exs
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
56
2021-06-21T17:17:36.000Z
2022-03-15T02:48:59.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: # # Wabanex.Repo.insert!(%Wabanex.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will...
29.25
61
0.706553
5afadd8b61409832e700feae32135fa1c72a3315
1,471
exs
Elixir
test/tesla_oauth2_client_auth_test/client_secret_basic_test.exs
tanguilp/tesla_oauth2_client_auth
4a702fae1ba814607949babaa257df7cfd61a495
[ "Apache-2.0" ]
null
null
null
test/tesla_oauth2_client_auth_test/client_secret_basic_test.exs
tanguilp/tesla_oauth2_client_auth
4a702fae1ba814607949babaa257df7cfd61a495
[ "Apache-2.0" ]
1
2020-05-30T11:33:44.000Z
2020-05-30T11:33:44.000Z
test/tesla_oauth2_client_auth_test/client_secret_basic_test.exs
tanguilp/tesla_oauth2_client_auth
4a702fae1ba814607949babaa257df7cfd61a495
[ "Apache-2.0" ]
null
null
null
defmodule TeslaOAuth2ClientAuthTest.ClientSecretBasic do use ExUnit.Case alias TeslaOAuth2ClientAuth.ClientSecretBasic test "send request with valid credentials" do client = Tesla.client( [{ClientSecretBasic, %{client_config: client_config()}}], TeslaOAuth2ClientAuthTest.Adapter ...
23.349206
90
0.640381
5afb01587c834171b1c28946cce1b9c6a4777130
6,164
exs
Elixir
test/phoenix/logger_test.exs
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
test/phoenix/logger_test.exs
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
test/phoenix/logger_test.exs
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
defmodule Phoenix.LoggerTest do use ExUnit.Case, async: true use RouterHelper import ExUnit.CaptureLog Application.put_env( :phoenix, __MODULE__.Endpoint, server: false, secret_key_base: String.duplicate("abcdefgh", 8) ) defmodule Endpoint do use Phoenix.Endpoint, otp_app: :phoenix e...
29.492823
91
0.556295
5afb40252d9a45b43d0bda6fea9a3dbe852c4539
122
ex
Elixir
lib/infinity_one/settings/accounts.ex
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
lib/infinity_one/settings/accounts.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
lib/infinity_one/settings/accounts.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule InfinityOne.Settings.Accounts do use OneSettings.Settings, schema: InfinityOne.Settings.Schema.Accounts end
20.333333
72
0.836066
5afb4e8430cdfcced7642ddd40ece19522d5e015
1,429
ex
Elixir
code/tooling/webapp/lib/webapp.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
null
null
null
code/tooling/webapp/lib/webapp.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
programming-elixir-book/code/tooling/webapp/lib/webapp.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
#--- # Excerpted from "Programming Elixir ≥ 1.6", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http...
35.725
85
0.721484
5afb88d553fb22b59ca21c0c0bd2555dab864116
7,243
ex
Elixir
lib/epicenter_web/views/form.ex
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
lib/epicenter_web/views/form.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
lib/epicenter_web/views/form.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule EpicenterWeb.Form do use Phoenix.HTML import EpicenterWeb.ErrorHelpers alias Epicenter.Extra alias EpicenterWeb.Form alias EpicenterWeb.FormHelpers alias EpicenterWeb.IconView alias EpicenterWeb.Multiselect defstruct ~w{f safe}a defmodule Line do defstruct ~w{column f safe}a end ...
34.822115
137
0.629021
5afbbe9d227d0fe2534c78778829107e733bb42e
929
ex
Elixir
lib/protobuf/message_props.ex
redink/protobuf
9f3e443ba2f0e808aae8ae075ffb7abeeca75483
[ "MIT" ]
null
null
null
lib/protobuf/message_props.ex
redink/protobuf
9f3e443ba2f0e808aae8ae075ffb7abeeca75483
[ "MIT" ]
null
null
null
lib/protobuf/message_props.ex
redink/protobuf
9f3e443ba2f0e808aae8ae075ffb7abeeca75483
[ "MIT" ]
null
null
null
defmodule Protobuf.MessageProps do @moduledoc false alias Protobuf.FieldProps @type t :: %__MODULE__{ ordered_tags: [integer], tags_map: %{integer => integer}, field_props: %{integer => FieldProps.T}, field_tags: %{atom => integer}, repeated_fields: [atom], ...
28.151515
63
0.512379
5afbf6400d572c55b6121f9635d5465a15392a8c
218
ex
Elixir
web/controllers/api_format_controller.ex
allen-garvey/artour
fce27b234d11a3e434c897b5fa3178b7c126245f
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/artour/web/controllers/api_format_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/artour/web/controllers/api_format_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
defmodule Artour.ApiFormatController do use Artour.Web, :controller alias Artour.Admin def index(conn, _params) do formats = Admin.list_formats() render(conn, "index.json", formats: formats) end end
18.166667
48
0.724771
5afc02ebd17ae99ba4a706eca55a4712302f49fd
538
exs
Elixir
test/browsers/firefox_test.exs
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
test/browsers/firefox_test.exs
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
test/browsers/firefox_test.exs
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
defmodule Hound.Browser.FirefoxTest do use ExUnit.Case alias Hound.Browser.Firefox test "default_user_agent" do assert Firefox.default_user_agent() == :firefox end test "default_capabilities" do ua = Hound.Browser.user_agent(:iphone) assert %{firefox_profile: profile} = Firefox.default_capabili...
29.888889
78
0.710037
5afc13f6f1c6c33250ebe491e2217e10e9a5b85e
1,965
exs
Elixir
exercises/custom-set/example.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/custom-set/example.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/custom-set/example.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule CustomSet do defstruct map: Map.new() @opaque t :: %__MODULE__{map: map} @spec new(Enum.t()) :: t def new(enumerable) do %CustomSet{map: Map.new(enumerable, fn x -> {x, true} end)} end @spec empty?(t) :: boolean def empty?(%CustomSet{map: map}) do Map.keys(map) |> Enum.empty?() end ...
25.855263
87
0.63257
5afc4bc4b5737c4d37d7b7239c3356bfd966b9ec
1,419
ex
Elixir
lib/sanbase/kafka/in_memory_kafka/in_memory_kafka_producer.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
1
2022-01-30T19:51:39.000Z
2022-01-30T19:51:39.000Z
lib/sanbase/kafka/in_memory_kafka/in_memory_kafka_producer.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
lib/sanbase/kafka/in_memory_kafka/in_memory_kafka_producer.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
defmodule Sanbase.InMemoryKafka.Producer do @moduledoc ~s""" In-memory implementation of the SanExporterEx.ProducerBehaviour used in dev and test environments. This modulue is used by default in dev and test environments so there is no need for a Kafka node to be connected. It is implemented as an Agent that...
27.823529
79
0.706836
5afc4d49fdd19ceea0121ce08e527ac5b464736d
866
exs
Elixir
mix.exs
rdk08/otp-game-of-life
142740af57f9d49a05b1cf159fe00474956b696f
[ "MIT" ]
null
null
null
mix.exs
rdk08/otp-game-of-life
142740af57f9d49a05b1cf159fe00474956b696f
[ "MIT" ]
null
null
null
mix.exs
rdk08/otp-game-of-life
142740af57f9d49a05b1cf159fe00474956b696f
[ "MIT" ]
null
null
null
defmodule GameOfLife.Mixfile do use Mix.Project def project do [ app: :game_of_life, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], preferred_cli_env: ...
22.789474
58
0.553118
5afc6aedcad9643975694b3b740d890015f22752
598
ex
Elixir
web/router.ex
gabriel-letarte/functional-todo-list
06d292a66219c7a0114059be8b268d4fec4de95f
[ "MIT" ]
null
null
null
web/router.ex
gabriel-letarte/functional-todo-list
06d292a66219c7a0114059be8b268d4fec4de95f
[ "MIT" ]
null
null
null
web/router.ex
gabriel-letarte/functional-todo-list
06d292a66219c7a0114059be8b268d4fec4de95f
[ "MIT" ]
null
null
null
defmodule FunctionalTodoList.Router do use FunctionalTodoList.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", Fun...
21.357143
57
0.695652
5afc6c1b7ca03ccd4f68392ea65d10c9a51fbbb0
3,626
exs
Elixir
test/services/coto_service_test.exs
Phelerox/cotoami
cad795b6f5e7940eebced2af89ac25d0ea083298
[ "Apache-2.0" ]
1
2022-01-24T11:48:16.000Z
2022-01-24T11:48:16.000Z
test/services/coto_service_test.exs
Phelerox/cotoami
cad795b6f5e7940eebced2af89ac25d0ea083298
[ "Apache-2.0" ]
null
null
null
test/services/coto_service_test.exs
Phelerox/cotoami
cad795b6f5e7940eebced2af89ac25d0ea083298
[ "Apache-2.0" ]
null
null
null
defmodule Cotoami.CotoServiceTest do use Cotoami.DataCase import ShorterMaps alias Cotoami.{ EmailUser, Coto, AmishiService, CotoService, CotonomaService, CotoGraphService } setup do amishi = AmishiService.insert_or_update!(%EmailUser{email: "amishi@example.com"}) %{conn: Bol...
31.530435
97
0.606178
5afc6f54312c8d4de4376a5fbc6157d5311ad6ec
2,075
ex
Elixir
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "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...
41.5
312
0.741687
5afc9a790b9129546b7fe15c9cb0f5ee1f847248
1,038
ex
Elixir
web/api/lib/worker/enricher/gazetteer.ex
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
web/api/lib/worker/enricher/gazetteer.ex
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
web/api/lib/worker/enricher/gazetteer.ex
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
defmodule Api.Worker.Enricher.Gazetteer do require Logger alias Api.Worker.Adapter.Gazetteer alias Api.Core.Utils def add_coordinates(change = %{ doc: %{ resource: %{ gazId: gazId, category: "Project" }}}) do coordinates = get_coordinates_from_gazetteer(gazId) add_geometry(change, coordinates) en...
32.4375
101
0.73025
5afcba3a0a5914c769755ebcbd40b3ff37a4a027
1,805
ex
Elixir
clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/model/amp_url_error.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/model/amp_url_error.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/model/amp_url_error.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.056604
100
0.717452
5afccbf79ea9a663a4b9649ca9ef042646f68648
474
ex
Elixir
test/registration/support/registered_supervisor.ex
jwilger/commanded
2d9950fd3ce76a23a3c410c99857b812f5705d66
[ "MIT" ]
1
2020-02-19T01:07:32.000Z
2020-02-19T01:07:32.000Z
test/registration/support/registered_supervisor.ex
jwilger/commanded
2d9950fd3ce76a23a3c410c99857b812f5705d66
[ "MIT" ]
null
null
null
test/registration/support/registered_supervisor.ex
jwilger/commanded
2d9950fd3ce76a23a3c410c99857b812f5705d66
[ "MIT" ]
1
2020-02-18T20:53:39.000Z
2020-02-18T20:53:39.000Z
defmodule Commanded.Registration.RegisteredSupervisor do use DynamicSupervisor alias Commanded.Registration alias Commanded.Registration.RegisteredServer def start_link(arg) do DynamicSupervisor.start_link(__MODULE__, arg, name: __MODULE__) end def start_child(application, name) do Registration.s...
24.947368
83
0.78481
5afcd104634b2c8035815a6df7829a644268c054
83
exs
Elixir
test/lib/encodable_test.exs
apellizzn/rxp-hpp-elixir
dfb405adce22fa7811210e9f3f4da84627e2fbc0
[ "MIT" ]
1
2018-04-06T15:49:56.000Z
2018-04-06T15:49:56.000Z
test/lib/encodable_test.exs
mikamai/rxp-hpp-elixir
dfb405adce22fa7811210e9f3f4da84627e2fbc0
[ "MIT" ]
null
null
null
test/lib/encodable_test.exs
mikamai/rxp-hpp-elixir
dfb405adce22fa7811210e9f3f4da84627e2fbc0
[ "MIT" ]
null
null
null
defmodule RxpHpp.EncodableTest do use ExUnit.Case doctest RxpHpp.Encodable end
16.6
33
0.819277
5afcea11b505431855fc1dbc8838cbe148906520
526
ex
Elixir
lib/dogma/util/cyclomatic_complexity.ex
lpil/dogma
e0f55c27ec3053be0313ac93f3d036437ee590a1
[ "MIT" ]
558
2015-06-21T18:20:59.000Z
2021-12-30T16:25:47.000Z
lib/dogma/util/cyclomatic_complexity.ex
lpil/dogma
e0f55c27ec3053be0313ac93f3d036437ee590a1
[ "MIT" ]
252
2015-06-19T13:00:47.000Z
2021-04-21T08:04:16.000Z
lib/dogma/util/cyclomatic_complexity.ex
lpil/dogma
e0f55c27ec3053be0313ac93f3d036437ee590a1
[ "MIT" ]
79
2015-06-21T14:18:30.000Z
2021-12-30T16:26:09.000Z
defmodule Dogma.Util.CyclomaticComplexity do @moduledoc """ A module for calculating the cyclomatic complexity for an AST. """ @branching_asts ~w(if unless case cond && and || or)a @doc """ Returns the cyclomatic complexity of a given AST. """ def count(ast) do {_, size} = Macro.prewalk( ast, 1, &...
20.230769
64
0.617871
5afd2625b5597056f833dc881e5ca4138cebe253
15,472
exs
Elixir
test/mix/tasks/phx.gen.live_test.exs
jesseshieh/phoenix
1776e9df0a71de67374ed488b3f00ccb434045b3
[ "MIT" ]
1
2020-07-23T18:03:42.000Z
2020-07-23T18:03:42.000Z
test/mix/tasks/phx.gen.live_test.exs
jesseshieh/phoenix
1776e9df0a71de67374ed488b3f00ccb434045b3
[ "MIT" ]
1
2020-05-26T19:38:18.000Z
2020-05-26T19:38:18.000Z
test/mix/tasks/phx.gen.live_test.exs
jesseshieh/phoenix
1776e9df0a71de67374ed488b3f00ccb434045b3
[ "MIT" ]
1
2020-08-31T15:29:31.000Z
2020-08-31T15:29:31.000Z
Code.require_file "../../../installer/test/mix_helper.exs", __DIR__ defmodule Mix.Tasks.Phx.Gen.LiveTest do use ExUnit.Case import MixHelper alias Mix.Tasks.Phx.Gen setup do Mix.Task.clear() :ok end defp in_tmp_live_project(test, func) do in_tmp_project(test, fn -> File.mkdir_p!("lib") ...
38.487562
106
0.647428
5afd2d096ba5dd74d964cc06d73f25e73ba31c08
71
ex
Elixir
lib/statix.ex
tyrchen/ex-datadog-plug
09b3a2e6ef3c4e5748039df934fa6148cbc4e7c5
[ "MIT" ]
22
2018-05-10T06:35:15.000Z
2021-11-24T08:34:12.000Z
lib/statix.ex
tyrchen/ex-datadog-plug
09b3a2e6ef3c4e5748039df934fa6148cbc4e7c5
[ "MIT" ]
1
2018-01-15T09:59:10.000Z
2018-01-15T09:59:10.000Z
lib/statix.ex
tyrchen/ex-datadog-plug
09b3a2e6ef3c4e5748039df934fa6148cbc4e7c5
[ "MIT" ]
null
null
null
defmodule ExDatadog.Plug.Statix do @moduledoc false use Statix end
14.2
34
0.788732
5afd8a1faf28d2059cd79c993c20790536d9c5fe
762
ex
Elixir
apps/tai/lib/tai/orders/transitions/cancel_error.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/lib/tai/orders/transitions/cancel_error.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/orders/transitions/cancel_error.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.Orders.Transitions.CancelError do @moduledoc """ There was an error canceling the order on the venue """ @type client_id :: Tai.Orders.Order.client_id() @type t :: %__MODULE__{ client_id: client_id, reason: term, last_received_at: integer } @enforce_keys...
25.4
92
0.67979
5afd94380dff2886ae737d810c7384b265c06ff5
1,870
exs
Elixir
test/operate/adapter/terminus_test.exs
operate-bsv/agent
4f3d69b7eb33f3afe5c880c10e39485b18b27ec5
[ "Apache-2.0" ]
13
2019-02-14T05:27:03.000Z
2019-08-14T03:35:52.000Z
test/operate/adapter/terminus_test.exs
operate-bsv/agent
4f3d69b7eb33f3afe5c880c10e39485b18b27ec5
[ "Apache-2.0" ]
3
2019-11-28T11:38:39.000Z
2021-12-15T01:23:09.000Z
test/operate/adapter/terminus_test.exs
operate-bsv/agent
4f3d69b7eb33f3afe5c880c10e39485b18b27ec5
[ "Apache-2.0" ]
2
2019-12-16T10:46:51.000Z
2020-10-10T11:23:46.000Z
defmodule Operate.Adapter.TerminusTest do use ExUnit.Case alias Operate.Adapter.Terminus @host "http://localhost:8088" @token "test" describe "Operate.Adapter.Terminus.fetch_tx/1" do test "must fetch tx" do {:ok, tx} = Terminus.fetch_tx("98be5010028302399999bfba0612ee51ea272e7a0eb3b45b4b8bef85f53...
33.392857
131
0.660963
5afdbdc6925cf0a57acb3e4ae85cd5ae213b4ff3
5,535
ex
Elixir
implementations/elixir/lib/ockam/transport/udp.ex
hollyfeld/ockam
10a618b60b5b913821bfa8df3ad9693a70913ace
[ "Apache-2.0" ]
1
2021-01-02T11:42:16.000Z
2021-01-02T11:42:16.000Z
implementations/elixir/lib/ockam/transport/udp.ex
ercanersoy/ockam
b537a4951770d223f5493bcff5358d0677865a0f
[ "Apache-2.0" ]
null
null
null
implementations/elixir/lib/ockam/transport/udp.ex
ercanersoy/ockam
b537a4951770d223f5493bcff5358d0677865a0f
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Transport.UDP do @moduledoc """ Defines an Ockam UDP Transport """ @doc false use GenServer alias Ockam.Message alias Ockam.Router require Logger @default_ip {127, 0, 0, 1} @default_port 4002 # Set the name of the supervisor that will be used to start workers. # The supervis...
27.537313
98
0.643722
5afddbd7050b1a1d2e80f2da78920cfc8ac02ddd
285
exs
Elixir
api/priv/repo/migrations/20211130013623_add_user_id_column_to_quizzes.exs
mendes13/responda.me
42facc3de1c5cc503459457b2bb452f0ad6fac37
[ "MIT" ]
null
null
null
api/priv/repo/migrations/20211130013623_add_user_id_column_to_quizzes.exs
mendes13/responda.me
42facc3de1c5cc503459457b2bb452f0ad6fac37
[ "MIT" ]
null
null
null
api/priv/repo/migrations/20211130013623_add_user_id_column_to_quizzes.exs
mendes13/responda.me
42facc3de1c5cc503459457b2bb452f0ad6fac37
[ "MIT" ]
null
null
null
defmodule Responda.Me.Repo.Migrations.AddUserIdColumnToQuizzes do use Ecto.Migration def change do alter table(:quizzes) do add :user_id, references(:users, on_delete: :delete_all, type: :binary_id), null: false end create index(:quizzes, [:user_id]) end end
23.75
93
0.719298
5afddd3abdb7f7b80f85acf8bca5d89b470a4a4d
2,112
ex
Elixir
lib/mint/types.ex
elridion/mint
7b75459ea08ba1eeeb90f1103eb5216a6c297315
[ "Apache-2.0" ]
null
null
null
lib/mint/types.ex
elridion/mint
7b75459ea08ba1eeeb90f1103eb5216a6c297315
[ "Apache-2.0" ]
null
null
null
lib/mint/types.ex
elridion/mint
7b75459ea08ba1eeeb90f1103eb5216a6c297315
[ "Apache-2.0" ]
null
null
null
defmodule Mint.Types do @moduledoc """ HTTP-related types. """ @typedoc """ A hostname, IP address, Unix domain socket path, `:loopback`, or any other term representing an internet address. """ @type address() :: :inet.socket_address() | String.t() @typedoc """ A request reference that uniquely id...
28.16
92
0.641572
5afdf024ecfcbb7e6caee106250e941994bbf2d1
103
ex
Elixir
lib/dwarlixir/components/mortal.ex
Trevoke/dwarlixir
e0a7ae39d3687d8e649fba67ce3dee413f00307e
[ "MIT" ]
54
2017-03-09T20:43:11.000Z
2022-03-29T16:59:20.000Z
lib/dwarlixir/components/mortal.ex
Trevoke/dwarlixir
e0a7ae39d3687d8e649fba67ce3dee413f00307e
[ "MIT" ]
17
2017-03-12T18:16:21.000Z
2017-05-30T03:34:57.000Z
lib/dwarlixir/components/mortal.ex
Trevoke/dwarlixir
e0a7ae39d3687d8e649fba67ce3dee413f00307e
[ "MIT" ]
2
2017-04-23T23:47:41.000Z
2017-11-19T13:38:25.000Z
defmodule Dwarlixir.Components.Mortal do use Ecstatic.Component @default_value %{mortal: true} end
20.6
40
0.796117
5afe1ad141a2d40b22838759bdd3f4c5080bc9d2
623
ex
Elixir
lib/igdb/resource.ex
facto/igdb
9662e9ffd41e0925c22b1d3cd4774ae49b68e89e
[ "MIT" ]
2
2018-04-09T07:34:37.000Z
2020-03-08T06:50:03.000Z
lib/igdb/resource.ex
tomasz-tomczyk/igdb
98d777798503f427e6c302da0251e819b9583c65
[ "MIT" ]
null
null
null
lib/igdb/resource.ex
tomasz-tomczyk/igdb
98d777798503f427e6c302da0251e819b9583c65
[ "MIT" ]
null
null
null
defmodule Igdb.Resource do @moduledoc """ Representation of resource inside the API """ defmacro __using__(_options) do quote do alias Igdb.Api @spec search(list) :: {:ok, list} | {:error, String.t()} def search(options \\ []), do: Api.search(__MODULE__, options) def resource_coll...
22.25
68
0.568218
5afe1bf7326c0ce1091b29056def3b7ff04dfda4
1,570
ex
Elixir
lib/watcher/port.ex
jtmoulia/spawndir
e1d34ff57a4de211cdf798e64a16205c5b9487d0
[ "BSD-3-Clause" ]
1
2015-06-16T20:06:22.000Z
2015-06-16T20:06:22.000Z
lib/watcher/port.ex
jtmoulia/spawndir
e1d34ff57a4de211cdf798e64a16205c5b9487d0
[ "BSD-3-Clause" ]
null
null
null
lib/watcher/port.ex
jtmoulia/spawndir
e1d34ff57a4de211cdf798e64a16205c5b9487d0
[ "BSD-3-Clause" ]
null
null
null
defmodule Watcher.Port do use GenServer @default_options [:binary, :exit_status, {:line, 800}] ## Client API @doc """ Starts the port command watcher standalone. """ def start(cmd, port_opts) do GenServer.start __MODULE__, {cmd, port_opts} end @doc """ Starts the port command watcher as par...
20.657895
80
0.642675
5afe28314ef3cc577b8bb01c48f79b0283117be3
73
ex
Elixir
backend/apps/students_crm_v2_web/lib/students_crm_v2_web/views/page_view.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
backend/apps/students_crm_v2_web/lib/students_crm_v2_web/views/page_view.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
50
2018-07-29T09:17:35.000Z
2019-02-26T05:23:34.000Z
backend/apps/students_crm_v2_web/lib/students_crm_v2_web/views/page_view.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
defmodule StudentsCrmV2Web.PageView do use StudentsCrmV2Web, :view end
18.25
38
0.835616
5afe7def678cb222aa6a5ab812d3f03101858881
1,096
ex
Elixir
lib/http_client.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
10
2018-01-12T18:52:53.000Z
2022-02-17T06:00:21.000Z
lib/http_client.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
12
2018-02-14T23:08:08.000Z
2021-11-22T15:55:41.000Z
lib/http_client.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
8
2018-05-08T14:02:21.000Z
2021-12-15T08:19:55.000Z
defmodule Prismic.HTTPClient do #TODO: define response struct, the requests # are still coupled to poison responses # ( status_code, and body keys ) @type headers :: [{binary, binary}] | %{binary => binary} @type data :: %{binary => any} @callback get(binary, headers, Keyword.t) :: {:ok, Map.t} | {:error,...
30.444444
84
0.687956
5afe80fb281fd3131ff21802e148f23fba113ccf
267
exs
Elixir
ex_chain/config/test.exs
L-Serodio/sip-of-elixir
7c6cf0d9e00f95a51ffa98d5d16baaa6b3f131b2
[ "MIT" ]
null
null
null
ex_chain/config/test.exs
L-Serodio/sip-of-elixir
7c6cf0d9e00f95a51ffa98d5d16baaa6b3f131b2
[ "MIT" ]
null
null
null
ex_chain/config/test.exs
L-Serodio/sip-of-elixir
7c6cf0d9e00f95a51ffa98d5d16baaa6b3f131b2
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :ex_chain, ExChainWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
24.272727
56
0.737828
5afea530e98c46d9e615928c99b19de92483daf0
6,068
exs
Elixir
test/extensions/email_confirmation/ecto/schema_test.exs
thejones/pow
217d3d915ce6832a5b138535a54fa2c39b2d9be5
[ "MIT" ]
null
null
null
test/extensions/email_confirmation/ecto/schema_test.exs
thejones/pow
217d3d915ce6832a5b138535a54fa2c39b2d9be5
[ "MIT" ]
null
null
null
test/extensions/email_confirmation/ecto/schema_test.exs
thejones/pow
217d3d915ce6832a5b138535a54fa2c39b2d9be5
[ "MIT" ]
null
null
null
defmodule PowEmailConfirmation.Ecto.SchemaTest do use ExUnit.Case doctest PowEmailConfirmation.Ecto.Schema alias PowEmailConfirmation.Ecto.Schema alias PowEmailConfirmation.Test.{RepoMock, Users.User} @password "secret1234" @valid_params %{email: "test@example.com", password: @password, passw...
35.27907
132
0.677488
5afeb124eb2398c618426046cc3c29381d57d69d
447
ex
Elixir
lib/google/rpc/status.pb.ex
SoftwareMansion/elixir-gcloud-speech-to-text
a2ee57e3961395b80fa35fc07ad9537b0086d984
[ "Apache-2.0" ]
1
2021-05-06T20:19:36.000Z
2021-05-06T20:19:36.000Z
lib/google/rpc/status.pb.ex
SoftwareMansion/elixir-gcloud-speech-to-text
a2ee57e3961395b80fa35fc07ad9537b0086d984
[ "Apache-2.0" ]
null
null
null
lib/google/rpc/status.pb.ex
SoftwareMansion/elixir-gcloud-speech-to-text
a2ee57e3961395b80fa35fc07ad9537b0086d984
[ "Apache-2.0" ]
2
2021-04-22T20:49:16.000Z
2021-04-27T14:14:35.000Z
defmodule Google.Rpc.Status do @moduledoc "Auto-generated from `googleapis/google/rpc/status.proto`" use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ code: integer, message: String.t(), details: [Google.Protobuf.Any.t()] } defstruct [:code, :message, :details] fiel...
27.9375
71
0.644295
5afec72e036a75e68bdc45296e5dd1c72d10c515
550
exs
Elixir
test/lib/riot/adapters/api/get_masteries_test.exs
ktornwall/elixir_conf_2016_demo
5a0adf832773714ba7743c049964623262ee7a13
[ "MIT" ]
27
2016-09-02T19:26:16.000Z
2017-11-30T02:27:16.000Z
test/lib/riot/adapters/api/get_masteries_test.exs
katzenbar/elixir_conf_2016_demo
5a0adf832773714ba7743c049964623262ee7a13
[ "MIT" ]
1
2016-10-23T18:24:59.000Z
2016-10-23T18:24:59.000Z
test/lib/riot/adapters/api/get_masteries_test.exs
ktornwall/elixir_conf_2016_demo
5a0adf832773714ba7743c049964623262ee7a13
[ "MIT" ]
4
2016-10-08T02:51:41.000Z
2017-12-05T02:02:40.000Z
defmodule ExConf.Lib.Riot.Adapters.Api.GetMasteriesTest do use ExUnit.Case @moduletag :integration test "get_masteries: retrieves all details about masteries" do masteries = Riot.ApiAdapter.get_masteries assert masteries recovery = Enum.find(masteries, fn(mastery) -> Map.get(mastery, :name) == "Rec...
28.947368
93
0.718182
5afeca56a02462d759812cb5487244c0af44167f
144
ex
Elixir
backend/lib/keeb_web/controllers/health_check_controller.ex
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
backend/lib/keeb_web/controllers/health_check_controller.ex
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
backend/lib/keeb_web/controllers/health_check_controller.ex
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
defmodule KeebWeb.HealthCheckController do use KeebWeb, :controller def index(conn, _params) do json conn, %{ status: "ok" } end end
18
42
0.708333
5afecccea7a7ece5536c41fc272233c2ce0cb9d2
6,261
ex
Elixir
lib/ambry_web/live/search_live/results/components.ex
doughsay/ambry
c04e855bf06a6b00b8053c6eacb2eac14a56a37c
[ "MIT" ]
12
2021-09-30T20:51:49.000Z
2022-01-27T04:09:32.000Z
lib/ambry_web/live/search_live/results/components.ex
doughsay/ambry
c04e855bf06a6b00b8053c6eacb2eac14a56a37c
[ "MIT" ]
76
2021-10-01T05:45:11.000Z
2022-03-28T04:12:39.000Z
lib/ambry_web/live/search_live/results/components.ex
doughsay/ambry
c04e855bf06a6b00b8053c6eacb2eac14a56a37c
[ "MIT" ]
2
2021-10-04T19:27:28.000Z
2022-01-13T22:36:38.000Z
defmodule AmbryWeb.SearchLive.Results.Components do @moduledoc """ Components for the search results live page. """ use AmbryWeb, :component alias AmbryWeb.Endpoint def author_results(assigns) do ~H""" <div> <h1 class="text-2xl mb-4 sm:text-3xl sm:mb-6 md:text-4xl md:mb-8 lg:text-5xl lg:mb-...
29.257009
136
0.575148
5afed7d0bd4ef7b146dc0378dd452bfdb266e80e
1,525
ex
Elixir
lib/hangman/handler_accumulator.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
1
2016-12-19T00:10:34.000Z
2016-12-19T00:10:34.000Z
lib/hangman/handler_accumulator.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
lib/hangman/handler_accumulator.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
defmodule Hangman.Handler.Accumulator do @moduledoc """ Module implements an accumulator which builds up a sequence list in the context of a game client handler. Hides the details of the functional reduce-while-cycle trickery """ @doc """ Repeatedly builds up an accumulator sequence using next(value) u...
27.232143
85
0.577705
5afedc0dd65217792bd7e8d34a6b6a0cb82de6b4
354
ex
Elixir
lib/facade/helpers.ex
devilcoders/facade
6aca8aaaf643b83ec275344436049c162d3a3b9a
[ "MIT" ]
null
null
null
lib/facade/helpers.ex
devilcoders/facade
6aca8aaaf643b83ec275344436049c162d3a3b9a
[ "MIT" ]
null
null
null
lib/facade/helpers.ex
devilcoders/facade
6aca8aaaf643b83ec275344436049c162d3a3b9a
[ "MIT" ]
null
null
null
defmodule Facade.Helpers do def get_attrs(attributes, assigns) do data = assigns[:data] aria = assigns[:aria] base_assigns = assigns |> Map.drop([:data, :aria, :class]) attributes |> Enum.map(&Keyword.new([{&1, base_assigns[&1]}])) |> List.flatten() |> Enum.into([]) |> Keyword.merge(...
23.6
62
0.615819
5aff10c4f0339ccc0f5c422871f3fec520497b3f
1,241
ex
Elixir
lib/benchee/suite.ex
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
lib/benchee/suite.ex
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
lib/benchee/suite.ex
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
defmodule Benchee.Suite do @moduledoc """ Main benchee data structure that aggregates the results from every step. Different layers of the benchmarking rely on different data being present here. For instance for `Benchee.Statistics.statistics/1` to work the `run_times` key needs to be filled with the results...
28.860465
75
0.68332
5aff3eb8c2339cfc38a467ffafae35a1c180670e
433
exs
Elixir
test/changix_demo_web/views/error_view_test.exs
cblavier/changix-demo
89bbbeb26ccdf362cdd82065e46ac25c30794a7f
[ "MIT" ]
1
2019-11-16T21:14:43.000Z
2019-11-16T21:14:43.000Z
test/changix_demo_web/views/error_view_test.exs
cblavier/changix-demo
89bbbeb26ccdf362cdd82065e46ac25c30794a7f
[ "MIT" ]
2
2021-03-09T23:25:26.000Z
2021-05-10T19:19:32.000Z
test/changix_demo_web/views/error_view_test.exs
cblavier/changix-demo
89bbbeb26ccdf362cdd82065e46ac25c30794a7f
[ "MIT" ]
null
null
null
defmodule ChangixDemoWeb.ErrorViewTest do use ChangixDemoWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(ChangixDemoWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.htm...
28.866667
96
0.743649
5aff6875f51b683fc7fd9ef5fc3bba66df170a4f
6,775
ex
Elixir
lib/plug/conn/utils.ex
chrismccord/plug
5f2f3ee6496a98f966a8e48fd89bbb6739090d72
[ "Apache-2.0" ]
1
2018-04-09T16:40:02.000Z
2018-04-09T16:40:02.000Z
lib/plug/conn/utils.ex
chrismccord/plug
5f2f3ee6496a98f966a8e48fd89bbb6739090d72
[ "Apache-2.0" ]
null
null
null
lib/plug/conn/utils.ex
chrismccord/plug
5f2f3ee6496a98f966a8e48fd89bbb6739090d72
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Conn.Utils do @moduledoc """ Utilities for working with connection data """ @type params :: [{binary, binary}] @upper ?A..?Z @lower ?a..?z @alpha ?0..?9 @other [?., ?-, ?+] @space [?\s, ?\t] @specials [?(, ?), ?<, ?>, ?@, ?,, ?;, ?:, ?\\, ?", ?/, ?[, ?], ??, ?=, ?{, ?}] @doc ~S""...
25.374532
104
0.53107
5aff9cb8945c8fcb3f71af843c72427adc83fa01
987
ex
Elixir
lib/mix/tasks/current.ex
kianmeng/version_tasks
9b07113ce5155bcadae47c49a0ecaec22b1d7c68
[ "MIT" ]
18
2017-07-09T23:47:38.000Z
2021-09-30T09:24:37.000Z
lib/mix/tasks/current.ex
kianmeng/version_tasks
9b07113ce5155bcadae47c49a0ecaec22b1d7c68
[ "MIT" ]
1
2022-01-29T08:48:10.000Z
2022-01-29T08:48:10.000Z
lib/mix/tasks/current.ex
kianmeng/version_tasks
9b07113ce5155bcadae47c49a0ecaec22b1d7c68
[ "MIT" ]
2
2019-09-24T11:09:28.000Z
2021-11-02T00:40:05.000Z
defmodule Mix.Tasks.Version.Current do use Mix.Task use VersionTasks.FnExpr @shortdoc "The current version of your project (e.g v0.9.1)" def run(args) do args |> calc |> IO.puts() end @shortdoc "Calculate the current version" def calc(_ \\ nil) do "mix.exs" |> File.read() |> invo...
20.5625
64
0.5846
5affa2255239729b4d2c7923b8ca6865ec223160
1,940
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_text_annotation_detected_language.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_text_annotation_detected_language.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_text_annotation_detected_language.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...
34.642857
219
0.748969
850018a094cc6f00a4ecb1454a13696d29d76943
1,008
ex
Elixir
lib/lilictocat/github/api.ex
volcov/lilictocat
5e9073933ad1e97748d1ff915ea76d82b37ce057
[ "MIT" ]
7
2020-08-14T14:38:33.000Z
2021-08-31T03:02:02.000Z
lib/lilictocat/github/api.ex
volcov/lilictocat
5e9073933ad1e97748d1ff915ea76d82b37ce057
[ "MIT" ]
3
2020-08-13T19:05:49.000Z
2020-09-16T04:39:44.000Z
lib/lilictocat/github/api.ex
volcov/lilictocat
5e9073933ad1e97748d1ff915ea76d82b37ce057
[ "MIT" ]
1
2020-08-14T14:38:20.000Z
2020-08-14T14:38:20.000Z
defmodule Lilictocat.Github.API do @behaviour Lilictocat.GithubBehaviour @moduledoc false def get_organizations do {200, orgs, _} = Tentacat.Organizations.list_mine(client()) orgs end def get_organization_repos(organization_name) do {200, org_repos, _} = Tentacat.Repositories.list_orgs(client()...
25.2
92
0.693452
8500eaa72731db0c26e09a0b62de647f0b9e6ad9
186
ex
Elixir
lib/ex_taxjar/transaction/update.ex
cas27/ex_taxjar
507d474dbd7e72a21b2e14194b39170b535913bc
[ "MIT" ]
6
2018-04-13T17:50:57.000Z
2019-09-08T01:25:56.000Z
lib/ex_taxjar/transaction/update.ex
cas27/ex_taxjar
507d474dbd7e72a21b2e14194b39170b535913bc
[ "MIT" ]
null
null
null
lib/ex_taxjar/transaction/update.ex
cas27/ex_taxjar
507d474dbd7e72a21b2e14194b39170b535913bc
[ "MIT" ]
1
2021-06-24T20:11:16.000Z
2021-06-24T20:11:16.000Z
defmodule ExTaxjar.Transaction.Update do @enforce_keys [ :transaction_id ] use ExTaxjar.Order.Base, transaction_id: nil, transaction_date: nil, sales_tax: nil end
16.909091
40
0.715054
8500f99ab5db8f2be1d703b75b4acafc3f68403e
863
exs
Elixir
test/day00_test.exs
nnnolan/aoc2021
9831e298fae67f1107d9583a07ecbf1c925f977e
[ "Apache-2.0" ]
null
null
null
test/day00_test.exs
nnnolan/aoc2021
9831e298fae67f1107d9583a07ecbf1c925f977e
[ "Apache-2.0" ]
null
null
null
test/day00_test.exs
nnnolan/aoc2021
9831e298fae67f1107d9583a07ecbf1c925f977e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
26.96875
74
0.695249
85011640d031c7999a7beb13fd13c1699a5c04a8
1,838
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/list_announcements_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/list_announcements_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/list_announcements_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.039216
146
0.741567
8501238ee1f57317af3d5b6c8dad02289309434f
1,246
ex
Elixir
web/controllers/api/v2/message_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
38
2016-10-21T08:26:15.000Z
2021-03-19T23:10:40.000Z
web/controllers/api/v2/message_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
32
2017-02-19T08:57:35.000Z
2020-02-05T13:15:11.000Z
web/controllers/api/v2/message_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
6
2017-11-24T16:02:20.000Z
2022-02-22T07:44:36.000Z
defmodule Kastlex.API.V2.MessageController do require Logger require Record use Kastlex.Web, :controller import Record, only: [defrecord: 2, extract: 2] defrecord :kafka_message, extract(:kafka_message, from_lib: "kafka_protocol/include/kpro_public.hrl") defrecord :kpro_rsp, extract(:kpro_rsp, from_lib: ...
29.666667
103
0.690209
8501417d2dadfa76c3475ef9465e9201438d86ea
429
exs
Elixir
priv/repo/migrations/20161114000005_create_cachegroup.exs
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
2
2016-11-16T17:24:21.000Z
2019-02-15T05:38:27.000Z
priv/repo/migrations/20161114000005_create_cachegroup.exs
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20161114000005_create_cachegroup.exs
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
null
null
null
defmodule Tox.Repo.Migrations.CreateCachegroup do use Ecto.Migration def change do create table(:cachegroups, primary_key: false) do add :name, :text, primary_key: true add :short_name, :text add :latitude, :float add :longitude, :float add :type, references(:cachegroup_types, col...
26.8125
74
0.675991
85016c81d0b30f0b1ce34b2e2cb93c3e5ed8f049
2,404
ex
Elixir
clients/plus/lib/google_api/plus/v1/model/comment_actor.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/plus/lib/google_api/plus/v1/model/comment_actor.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/plus/lib/google_api/plus/v1/model/comment_actor.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.352941
94
0.72213
85017ae1d934ea5d0c9b89a7dba49c65581d74d4
311
exs
Elixir
brainiac/test/brainiac_test.exs
sullivanse13/otp_p2
4af73170c9ad7b42ec5469cd279a3ce3b73c5e86
[ "MIT" ]
null
null
null
brainiac/test/brainiac_test.exs
sullivanse13/otp_p2
4af73170c9ad7b42ec5469cd279a3ce3b73c5e86
[ "MIT" ]
null
null
null
brainiac/test/brainiac_test.exs
sullivanse13/otp_p2
4af73170c9ad7b42ec5469cd279a3ce3b73c5e86
[ "MIT" ]
5
2021-07-08T19:04:14.000Z
2021-07-13T15:03:19.000Z
defmodule BrainiacTest do use ExUnit.Case alias Brainiac.Game doctest Brainiac test "game_loss" do assert :lost == 1..10 |> Enum.map(fn _ -> [1, 2, 3, 4] end) |> Enum.reduce(Game.new([1, 2, 3, 5]), &Game.guess(&2, &1)) |> Game.status() end end
22.214286
72
0.517685
8501822ea2d4f59c870bf21e4801b331c8cf0178
925
ex
Elixir
lib/cforum_web/plug/authorize_access.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum_web/plug/authorize_access.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum_web/plug/authorize_access.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
defmodule CforumWeb.Plug.AuthorizeAccess do @moduledoc """ This plug is pluggable in controllers for authorizing actions based on our Abilities module. It constructs a path by the controller name and then calls `Abilities.may?(mod, action)` ## Examples # Authorize access to all actions plug Auth...
27.205882
82
0.692973
850184e938142d904844afd82bbcf84cb4e129aa
3,729
exs
Elixir
mix.exs
jarroput/ecto_sql
f0c8ae14c1c64116e652879d48c0c874fa832160
[ "Apache-2.0" ]
null
null
null
mix.exs
jarroput/ecto_sql
f0c8ae14c1c64116e652879d48c0c874fa832160
[ "Apache-2.0" ]
null
null
null
mix.exs
jarroput/ecto_sql
f0c8ae14c1c64116e652879d48c0c874fa832160
[ "Apache-2.0" ]
null
null
null
defmodule EctoSQL.MixProject do use Mix.Project @version "3.3.0-dev" @adapters ~w(pg myxql) def project do [ app: :ecto_sql, version: @version, elixir: "~> 1.6", deps: deps(), test_paths: test_paths(System.get_env("ECTO_ADAPTER")), xref: [ exclude: [ M...
24.058065
90
0.561545
8501c861d5cac833017e15c4be86ba74e10d6ba6
2,945
exs
Elixir
apps/service_aggregate/test/aggregate/feed/flow_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
12
2020-01-27T19:43:02.000Z
2021-07-28T19:46:29.000Z
apps/service_aggregate/test/aggregate/feed/flow_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
81
2020-01-28T18:07:23.000Z
2021-11-22T02:12:13.000Z
apps/service_aggregate/test/aggregate/feed/flow_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defmodule Aggregate.Feed.FlowTest do use ExUnit.Case require Temp.Env import Definition, only: [identifier: 1] @instance Aggregate.Application.instance() Temp.Env.modify([ %{ app: :service_aggregate, key: Aggregate.Feed.Flow, set: [ window_limit: 2, window_unit: :secon...
25.608696
88
0.558574
8501ccd8fbd9eebb6ba1feb30813f667fccf7d50
12,465
exs
Elixir
test/honeylixir_tracing_test.exs
epinault/honeylixir_tracing
42d0bb5f55ab791ad9d44f1aa7d31f0c122f45d4
[ "Apache-2.0" ]
null
null
null
test/honeylixir_tracing_test.exs
epinault/honeylixir_tracing
42d0bb5f55ab791ad9d44f1aa7d31f0c122f45d4
[ "Apache-2.0" ]
5
2021-04-26T01:12:39.000Z
2021-10-06T18:35:14.000Z
test/honeylixir_tracing_test.exs
epinault/honeylixir_tracing
42d0bb5f55ab791ad9d44f1aa7d31f0c122f45d4
[ "Apache-2.0" ]
1
2021-10-06T17:40:29.000Z
2021-10-06T17:40:29.000Z
defmodule HoneylixirTracingTest do use ExUnit.Case doctest HoneylixirTracing setup do teardown() start_supervised!(HoneylixirTestListener) :ok end describe "span/2" do test "returns the result of the function given" do func = fn -> :my_cool_atom end assert HoneylixirTracing.spa...
34.244505
98
0.637545
8501fe80cbf2f37eeb6ee87bc8067af9bd530c5b
2,372
ex
Elixir
apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/category/delete_error_component.ex
mishka-group/mishka-cms
4e34ed646f807687f4ae809e862acb6f2c5aacef
[ "Apache-2.0" ]
35
2021-06-26T09:05:50.000Z
2022-03-30T15:41:22.000Z
apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/category/delete_error_component.ex
mishka-group/mishka-cms
4e34ed646f807687f4ae809e862acb6f2c5aacef
[ "Apache-2.0" ]
101
2021-01-01T09:54:07.000Z
2022-03-28T10:02:24.000Z
apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/category/delete_error_component.ex
mishka-group/mishka-cms
4e34ed646f807687f4ae809e862acb6f2c5aacef
[ "Apache-2.0" ]
8
2021-01-17T17:08:07.000Z
2022-03-11T16:12:06.000Z
defmodule MishkaHtmlWeb.Admin.Blog.Category.DeleteErrorComponent do use MishkaHtmlWeb, :live_component def render(assigns) do ~L""" <div class="error-card-modal col"> <div class="alert alert-danger vazir rtl" role="alert"> <div class="col-sm-6 svg-div-error-modal"> <svg xmlns="h...
57.853659
270
0.632799
85020fe9d7439ca71117f438a5e5ef2e10bd4df5
365
exs
Elixir
apps/magnetissimo/config/prod.exs
Hashim-mansoor/magnetissimo
44be76ca646f5ebe62be72c618ab2216a44ac9b3
[ "MIT" ]
2,849
2016-07-22T15:48:08.000Z
2022-03-30T12:01:22.000Z
apps/magnetissimo/config/prod.exs
Hashim-mansoor/magnetissimo
44be76ca646f5ebe62be72c618ab2216a44ac9b3
[ "MIT" ]
119
2016-08-06T06:55:12.000Z
2020-08-24T23:31:35.000Z
apps/magnetissimo/config/prod.exs
Hashim-mansoor/magnetissimo
44be76ca646f5ebe62be72c618ab2216a44ac9b3
[ "MIT" ]
234
2016-07-27T11:03:56.000Z
2022-03-14T11:32:36.000Z
# Since configuration is shared in umbrella projects, this file # should only configure the :magnetissimo application itself # and only for organization purposes. All other config goes to # the umbrella root. use Mix.Config # Configure your database config :magnetissimo, Magnetissimo.Repo, database: "magnetissimo_de...
30.416667
63
0.786301
850210cf9c97ffc52b4175b2990c472941c16280
334
exs
Elixir
test/stranger_web/live/page_live_test.exs
Arp-G/stranger
1c7c804b0ab4dbee4c77f1c5adf0d9d5a09aaf41
[ "MIT" ]
11
2021-01-27T17:21:00.000Z
2021-12-07T13:02:59.000Z
test/stranger_web/live/page_live_test.exs
Arp-G/stranger
1c7c804b0ab4dbee4c77f1c5adf0d9d5a09aaf41
[ "MIT" ]
null
null
null
test/stranger_web/live/page_live_test.exs
Arp-G/stranger
1c7c804b0ab4dbee4c77f1c5adf0d9d5a09aaf41
[ "MIT" ]
null
null
null
defmodule StrangerWeb.PageLiveTest do use StrangerWeb.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 Phoeni...
27.833333
60
0.727545
850224d18a2ec98008eb101231056d9767838894
633
exs
Elixir
test/varint_test.exs
gballet/windtrap
6661c7929adac28dda361d73cf7a01e652070c19
[ "MIT" ]
15
2019-02-01T19:08:48.000Z
2021-11-04T01:34:48.000Z
test/varint_test.exs
gballet/windtrap
6661c7929adac28dda361d73cf7a01e652070c19
[ "MIT" ]
4
2018-12-16T09:11:30.000Z
2018-12-16T09:15:29.000Z
test/varint_test.exs
gballet/windtrap
6661c7929adac28dda361d73cf7a01e652070c19
[ "MIT" ]
1
2020-09-09T21:29:37.000Z
2020-09-09T21:29:37.000Z
defmodule VarintTest do use ExUnit.Case doctest Windtrap test "single-byte varint" do {val, <<extra :: big-size(32)>>} = Windtrap.Varint.varint(<<0x72, 0xde, 0xad, 0xbe, 0xef>>) assert val == 0x72 assert extra == 0xdeadbeef end test "multi-byte varint" do {val, <<extra :: big-size(32)>>} = Windtrap.Va...
27.521739
99
0.661927