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
730769004054ba6451c1ea902adb667392f58e40
1,623
exs
Elixir
test/power_assert_case_template_test.exs
ma2gedev/power_assert_ex
e0131555e272a37dc41bda7df6ea544918034fcc
[ "Apache-2.0" ]
228
2015-10-01T03:21:12.000Z
2021-11-12T03:32:19.000Z
test/power_assert_case_template_test.exs
ma2gedev/power_assert_ex
e0131555e272a37dc41bda7df6ea544918034fcc
[ "Apache-2.0" ]
28
2015-10-13T13:03:38.000Z
2020-12-26T08:25:11.000Z
test/power_assert_case_template_test.exs
ma2gedev/power_assert_ex
e0131555e272a37dc41bda7df6ea544918034fcc
[ "Apache-2.0" ]
9
2015-11-14T03:16:56.000Z
2020-12-04T05:23:29.000Z
defmodule MyCase do use ExUnit.CaseTemplate using do quote do use PowerAssert end end setup do {:ok, executed: "setup func"} end end defmodule MyTest do use MyCase, async: true test "executed setup function", context do assert context[:executed] == "setup func" end test "rais...
19.792683
61
0.532964
7307884e179bf8271899aadb6af1059c62b2d8de
390
ex
Elixir
lib/phoenix_website_web/views/error_view.ex
epic-creative/phoenix_website
60cf15d86e3a55724bef41986db07b3d0ee108aa
[ "MIT" ]
null
null
null
lib/phoenix_website_web/views/error_view.ex
epic-creative/phoenix_website
60cf15d86e3a55724bef41986db07b3d0ee108aa
[ "MIT" ]
null
null
null
lib/phoenix_website_web/views/error_view.ex
epic-creative/phoenix_website
60cf15d86e3a55724bef41986db07b3d0ee108aa
[ "MIT" ]
null
null
null
defmodule PhoenixWebsiteWeb.ErrorView do use PhoenixWebsiteWeb, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_...
21.666667
47
0.712821
7307e258a37c6bd5083f2832d7361d4b35ff9536
4,980
ex
Elixir
clients/home_graph/lib/google_api/home_graph/v1/api/agent_users.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/home_graph/lib/google_api/home_graph/v1/api/agent_users.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/home_graph/lib/google_api/home_graph/v1/api/agent_users.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...
44.070796
196
0.667671
7307f3847d3fa52a4aaee91033713999f6f8ae3c
2,518
ex
Elixir
clients/logging/lib/google_api/logging/v2/model/monitored_resource.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/logging/lib/google_api/logging/v2/model/monitored_resource.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/logging/lib/google_api/logging/v2/model/monitored_resource.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...
50.36
697
0.749007
7308006844168c21d13913707bce4abdf0e58003
2,681
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/model/reference.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/reference.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/reference.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...
46.224138
422
0.747855
730803f2958408d28ee72d6eaf3d71617e42f2c1
8,982
ex
Elixir
lib/phoenix/live_dashboard/live/os_mon_live.ex
Blond11516/phoenix_live_dashboard
9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/live/os_mon_live.ex
Blond11516/phoenix_live_dashboard
9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/live/os_mon_live.ex
Blond11516/phoenix_live_dashboard
9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveDashboard.OSMonLive do use Phoenix.LiveDashboard.Web, :live_view alias Phoenix.LiveDashboard.{ SystemInfo, BarComponent, ColorBarComponent, ColorBarLegendComponent } @temporary_assigns [os_mon: nil, memory_usage: nil, cpu_total: nil, cpu_count: 0] @cpu_usage_sections [...
35.501976
149
0.533289
730826046db6259becd685ececb884c10c9f6499
10,756
ex
Elixir
lib/mock.ex
Francisco-Castro/mock
84abb395d7d3848008124c33f0642b5306331016
[ "MIT" ]
null
null
null
lib/mock.ex
Francisco-Castro/mock
84abb395d7d3848008124c33f0642b5306331016
[ "MIT" ]
null
null
null
lib/mock.ex
Francisco-Castro/mock
84abb395d7d3848008124c33f0642b5306331016
[ "MIT" ]
null
null
null
defmodule Mock do @moduledoc """ Mock modules for testing purposes. Usually inside a unit test. Please see the README file on github for a tutorial ## Example defmodule MyTest do use ExUnit.Case import Mock test "get" do with_mock HTTPotion, [get: fn("ht...
28.759358
143
0.617981
7308361b5a13718081f00195c70ca034a4e7292f
936
ex
Elixir
lib/falcon_plus_api/api.ex
sawater/falcon-plus-api
a41b1cc04cc0d71b72341e803de88d16b4bba77d
[ "Apache-2.0" ]
2
2018-05-03T14:35:37.000Z
2018-07-30T09:32:38.000Z
lib/falcon_plus_api/api.ex
mon-suit/falcon-plus-api
a41b1cc04cc0d71b72341e803de88d16b4bba77d
[ "Apache-2.0" ]
null
null
null
lib/falcon_plus_api/api.ex
mon-suit/falcon-plus-api
a41b1cc04cc0d71b72341e803de88d16b4bba77d
[ "Apache-2.0" ]
null
null
null
defmodule FalconPlusApi.Api do use Maxwell.Builder middleware Maxwell.Middleware.Opts, connect_timeout: 10_000 middleware Maxwell.Middleware.Retry middleware Maxwell.Middleware.Json middleware Maxwell.Middleware.Compress middleware Maxwell.Middleware.Logger adapter Maxwell.Adapter.Httpc def set_opts...
25.297297
83
0.690171
7308585e9878e2d2c7b33d125691146332f738b0
1,931
exs
Elixir
test/grpc/integration/connection_test.exs
falood/grpc-elixir
7353aa04cbf4cd982183aacd54d645fe6b4571dd
[ "Apache-2.0" ]
null
null
null
test/grpc/integration/connection_test.exs
falood/grpc-elixir
7353aa04cbf4cd982183aacd54d645fe6b4571dd
[ "Apache-2.0" ]
null
null
null
test/grpc/integration/connection_test.exs
falood/grpc-elixir
7353aa04cbf4cd982183aacd54d645fe6b4571dd
[ "Apache-2.0" ]
null
null
null
defmodule GRPC.Integration.ConnectionTest do use GRPC.Integration.TestCase, async: true @cert_path Path.expand("./tls/server1.pem", :code.priv_dir(:grpc)) @key_path Path.expand("./tls/server1.key", :code.priv_dir(:grpc)) @ca_path Path.expand("./tls/ca.pem", :code.priv_dir(:grpc)) defmodule FeatureServer do ...
33.877193
95
0.656655
73085b979827836dec63530e119bc01272bfa9cb
472
exs
Elixir
apps/api/test/api/views/error_view_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
4
2020-11-30T17:38:57.000Z
2021-01-23T21:29:41.000Z
apps/api/test/api/views/error_view_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
24
2020-11-30T17:32:48.000Z
2021-02-22T06:25:22.000Z
apps/api/test/api/views/error_view_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
null
null
null
defmodule API.View.ErrorTest do @moduledoc """ """ use ExUnit.Case, async: true alias API.View.Error describe "serialize/3" do test "serializes a code and description" do assert Error.serialize(:code, "description", "1.0") == %{ data: %{code: :code, description: "description", obje...
23.6
81
0.561441
73085c95a63dafc7bc10eff6414791817544a19e
108
exs
Elixir
hub/test/hub_test.exs
judas-christ/love-potions
39a43dca4c66b5e8028759c8a81d97a8c0562956
[ "MIT" ]
null
null
null
hub/test/hub_test.exs
judas-christ/love-potions
39a43dca4c66b5e8028759c8a81d97a8c0562956
[ "MIT" ]
null
null
null
hub/test/hub_test.exs
judas-christ/love-potions
39a43dca4c66b5e8028759c8a81d97a8c0562956
[ "MIT" ]
null
null
null
defmodule HubTest do use ExUnit.Case doctest Hub test "the truth" do assert 1 + 1 == 2 end end
12
21
0.648148
730862650d848ede022a6b4b58395ccf090ac1c2
10,270
ex
Elixir
lib/postgrex/messages.ex
enter-haken/postgrex
fb3438d4e6a56db81ddd0d578cdfc0484909c233
[ "Apache-2.0" ]
681
2016-06-16T12:28:22.000Z
2022-03-30T08:48:42.000Z
deps/postgrex/lib/postgrex/messages.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
383
2016-06-17T14:49:41.000Z
2022-03-21T18:13:19.000Z
deps/postgrex/lib/postgrex/messages.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
234
2016-06-16T16:14:47.000Z
2022-03-03T00:43:59.000Z
defmodule Postgrex.Messages do @moduledoc false import Postgrex.BinaryUtils import Record, only: [defrecord: 2] @protocol_vsn_major 3 @protocol_vsn_minor 0 @auth_types [ ok: 0, kerberos: 2, cleartext: 3, md5: 5, scm: 6, gss: 7, gss_cont: 8, sspi: 9, sasl: 10, sasl_...
22.671082
95
0.616553
7308802221692d9e75ef67fdec1c6605c49ca386
694
ex
Elixir
web/gettext.ex
code-mancers/exray
f37a089c98ae3117063865c8d2583fec6d112af5
[ "MIT" ]
1
2016-03-20T05:30:28.000Z
2016-03-20T05:30:28.000Z
web/gettext.ex
code-mancers/exray
f37a089c98ae3117063865c8d2583fec6d112af5
[ "MIT" ]
null
null
null
web/gettext.ex
code-mancers/exray
f37a089c98ae3117063865c8d2583fec6d112af5
[ "MIT" ]
null
null
null
defmodule Exray.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import Exray.Gettext # Simple translation gettext "Here is the string t...
27.76
71
0.674352
73089983451f8b3dad1f43440dfeabc17a3c6985
2,321
ex
Elixir
lib/cadastre/country.ex
Recruitee/ambassador
309e70f679b83609ba17fee5f43e8e69e0f66fa3
[ "MIT" ]
1
2020-10-29T11:28:32.000Z
2020-10-29T11:28:32.000Z
lib/cadastre/country.ex
Recruitee/ambassador
309e70f679b83609ba17fee5f43e8e69e0f66fa3
[ "MIT" ]
2
2020-10-23T22:27:34.000Z
2021-12-29T06:00:52.000Z
lib/cadastre/country.ex
Recruitee/ambassador
309e70f679b83609ba17fee5f43e8e69e0f66fa3
[ "MIT" ]
2
2020-10-15T17:48:11.000Z
2021-08-04T12:59:38.000Z
defmodule Cadastre.Country do @moduledoc """ Country implementation. """ alias Cadastre.Language @external_resource Application.app_dir(:cadastre, "priv/data/countries.etf") @enforce_keys [:id] defstruct [:id] @type id :: <<_::16>> @type t :: %__MODULE__{id: id} external_data = @external_resourc...
21.490741
80
0.581215
7308abe917a1f829c84deafce0f90a9ffbb74871
2,500
ex
Elixir
lib/sonda/sink/memory.ex
Fire-Dragon-DoL/sonda
6565ff3a0a8303a120a3e6637fa2616614837cf3
[ "MIT" ]
null
null
null
lib/sonda/sink/memory.ex
Fire-Dragon-DoL/sonda
6565ff3a0a8303a120a3e6637fa2616614837cf3
[ "MIT" ]
null
null
null
lib/sonda/sink/memory.ex
Fire-Dragon-DoL/sonda
6565ff3a0a8303a120a3e6637fa2616614837cf3
[ "MIT" ]
null
null
null
defmodule Sonda.Sink.Memory do defmodule Defaults do def signals, do: :any end defstruct signals: Defaults.signals(), records: [] @type message :: {Sonda.Sink.signal(), Sonda.Sink.timestamp(), any()} @type accepted_signals :: :any | [Sonda.Sink.signal()] @type config_opts :: [ {:signals, acc...
26.041667
79
0.5836
7308c1b2a702ab37760a273f05d8e241b7fa016f
1,087
exs
Elixir
firmware/rel/config.exs
iboard/pocketweb
e1d370e5f446fd4f9914966364af662194c43e04
[ "MIT" ]
2
2018-09-05T00:13:39.000Z
2019-07-14T20:03:59.000Z
firmware/rel/config.exs
iboard/pocketweb
e1d370e5f446fd4f9914966364af662194c43e04
[ "MIT" ]
null
null
null
firmware/rel/config.exs
iboard/pocketweb
e1d370e5f446fd4f9914966364af662194c43e04
[ "MIT" ]
3
2018-08-27T15:40:57.000Z
2021-01-15T12:21:13.000Z
use Mix.Releases.Config, # This sets the default release built by `mix release` default_release: :default, # This sets the default environment used by `mix release` default_environment: :dev # For a full list of config options for both releases # and environments, visit https://hexdocs.pm/distillery/co...
31.057143
81
0.75989
7308da8a02267cd5f98ad7ac8271960f08db7504
3,070
ex
Elixir
lib/web/views/reports_view.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
lib/web/views/reports_view.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
lib/web/views/reports_view.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
NimbleCSV.define(ChallengeGov.Reports.CSV, separator: ",", escape: "\"") defmodule Web.ReportsView do use Web, :view alias ChallengeGov.Reports.CSV alias Web.FormView alias Web.SharedView def render_security_log("security-log-header.csv", _assigns) do headers = [ "ID", "Action", "Deta...
21.928571
75
0.576547
730911b2f4a1bcddeff711c05139742651624a94
563
ex
Elixir
lib/central_web/channels/notification_channel.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/central_web/channels/notification_channel.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/central_web/channels/notification_channel.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule CentralWeb.Communication.NotificationChannel do @moduledoc false use Phoenix.Channel def join("communication_notification:" <> user_id, _params, socket) do if socket.assigns[:current_user].id == user_id |> String.to_integer() do {:ok, socket} else {:error, "Permission denied"} e...
28.15
76
0.699822
730924c64c4b69b204f0968abbe160e96abf967e
247
ex
Elixir
lib/bitty.ex
doomspork/tiny
fab5bb717fb7247b7a9daa1ed0058ad052005a5f
[ "Apache-2.0" ]
1
2021-06-17T21:49:04.000Z
2021-06-17T21:49:04.000Z
lib/bitty.ex
doomspork/tiny
fab5bb717fb7247b7a9daa1ed0058ad052005a5f
[ "Apache-2.0" ]
null
null
null
lib/bitty.ex
doomspork/tiny
fab5bb717fb7247b7a9daa1ed0058ad052005a5f
[ "Apache-2.0" ]
null
null
null
defmodule Bitty do @moduledoc """ Bitty keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.7
66
0.748988
73093624c1661ef28f79bb66124b282ee6796703
128
exs
Elixir
examples/foo_umbrella/apps/foo/test/foo/my_area/my_area_test.exs
katafrakt/modular
d8bd94b91e20a51b13b28b71d1602e3877518688
[ "MIT" ]
7
2019-11-21T19:51:50.000Z
2021-12-23T02:42:14.000Z
examples/foo_umbrella/apps/foo/test/foo/my_area/my_area_test.exs
katafrakt/modular
d8bd94b91e20a51b13b28b71d1602e3877518688
[ "MIT" ]
1
2021-03-08T00:39:55.000Z
2021-03-08T00:39:55.000Z
examples/foo_umbrella/apps/foo/test/foo/my_area/my_area_test.exs
katafrakt/modular
d8bd94b91e20a51b13b28b71d1602e3877518688
[ "MIT" ]
2
2020-09-17T17:46:26.000Z
2021-03-05T12:28:47.000Z
defmodule Foo.MyAreaTest do use Foo.TestCase test "a/0" do assert Foo.MyArea.Impl.a() == :hello_from_my_area end end
16
53
0.703125
730995624da4a746da969eff47bda56326c8822b
747
ex
Elixir
lib/crawly/pipelines/experimental/send_to_ui.ex
aymanosman/crawly
9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5
[ "Apache-2.0" ]
null
null
null
lib/crawly/pipelines/experimental/send_to_ui.ex
aymanosman/crawly
9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5
[ "Apache-2.0" ]
null
null
null
lib/crawly/pipelines/experimental/send_to_ui.ex
aymanosman/crawly
9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5
[ "Apache-2.0" ]
null
null
null
defmodule Crawly.Pipelines.Experimental.SendToUI do @moduledoc """ """ @behaviour Crawly.Pipeline require Logger @impl Crawly.Pipeline def run(item, state, opts \\ []) do job_tag = Map.get(state, :job_tag, UUID.uuid1()) spider_name = state.spider_name |> Atom.to_string() case Keyword.get(opts...
23.34375
72
0.579652
7309cc5e8bc968e1c8bfe318552ab7a768725bcc
217
ex
Elixir
test/support/room/error_room.ex
membraneframework/webrtc-server
10603a3f85e2d197ce7cf10ccb79c5c71d57f346
[ "Apache-2.0" ]
10
2020-03-27T04:58:56.000Z
2022-03-12T21:39:49.000Z
test/support/room/error_room.ex
KalvadTech/webrtc-server
a9fbf41f83a644702946541342411f19e2806447
[ "Apache-2.0" ]
3
2021-01-25T08:47:45.000Z
2021-02-08T12:58:42.000Z
test/support/room/error_room.ex
KalvadTech/webrtc-server
a9fbf41f83a644702946541342411f19e2806447
[ "Apache-2.0" ]
1
2021-01-24T17:36:57.000Z
2021-01-24T17:36:57.000Z
defmodule Membrane.WebRTC.Server.Support.ErrorRoom do @moduledoc false use Membrane.WebRTC.Server.Room @impl true def on_join(_auth_data, state) do {{:error, :this_is_supposed_to_fail}, state} end end
19.727273
53
0.751152
7309ebd80fbf5f386fffd0a7b664c1406adb7960
3,111
ex
Elixir
lib/central/helpers/structure_helper.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central/helpers/structure_helper.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/central/helpers/structure_helper.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Central.Helpers.StructureHelper do @moduledoc """ A module to make import/export of JSON objects easier. Currently only tested with a single parent object and multiple sets of child objects. Designed to not take the IDs with it as they are liable to change based on the database they go into. """ ali...
27.289474
142
0.64063
7309f0ef59732428f3c7a51d689527dd70fc1f49
675
exs
Elixir
Elixir/mix.exs
shunjilin/DataStructuresAndAlgorithms
093d0a82b82e65986e9f45d90cbf3dd2808aedce
[ "MIT" ]
1
2021-12-14T09:39:20.000Z
2021-12-14T09:39:20.000Z
Elixir/mix.exs
shunjilin/DataStructuresAndAlgorithms
093d0a82b82e65986e9f45d90cbf3dd2808aedce
[ "MIT" ]
4
2019-08-08T15:36:10.000Z
2020-10-06T16:22:56.000Z
Elixir/mix.exs
shunjilin/DataStructuresAndAlgorithms
093d0a82b82e65986e9f45d90cbf3dd2808aedce
[ "MIT" ]
null
null
null
defmodule DataStructuresAndAlgorithms.MixProject do use Mix.Project def project do [ app: :elixir, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), test_paths: ["lib"] ] end # Run "mix help compile.app" to learn about applicatio...
21.774194
87
0.577778
730a077b95572da28bc5834c9834eaebc11cf382
1,535
ex
Elixir
clients/qpx_express/lib/google_api/qpx_express/v1/model/tax_data.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/qpx_express/lib/google_api/qpx_express/v1/model/tax_data.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/qpx_express/lib/google_api/qpx_express/v1/model/tax_data.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...
30.7
144
0.734853
730a080a880e8b062c1f5eff44e8036741e7acc0
165
exs
Elixir
braccino_firmware/test/braccino_firmware_test.exs
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
braccino_firmware/test/braccino_firmware_test.exs
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
braccino_firmware/test/braccino_firmware_test.exs
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
defmodule BraccinoFirmwareTest do use ExUnit.Case doctest BraccinoFirmware test "greets the world" do assert BraccinoFirmware.hello() == :world end end
18.333333
45
0.757576
730a0ede1f1f3368ad96012a98644c65fd60199c
482
exs
Elixir
lesson_09/demo/4_phx/a_webpack_demo_umbrella/config/test.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
1
2021-09-22T09:56:35.000Z
2021-09-22T09:56:35.000Z
lesson_09/demo/4_phx/a_webpack_demo_umbrella/config/test.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
7
2020-03-14T19:30:29.000Z
2022-02-27T01:20:40.000Z
lesson_09/demo/4_phx/a_webpack_demo_umbrella/config/test.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
11
2020-02-13T14:52:45.000Z
2020-08-03T12:18:56.000Z
use Mix.Config # Configure your database config :a_webpack_demo, AWebpackDemo.Repo, username: "root", password: "", database: "a_webpack_demo_test", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox # We don't run a server during test. If one is required, # you can enable the server option below. confi...
25.368421
56
0.744813
730a1e1104d5f8043de315c701859125daf92a41
5,961
ex
Elixir
lib/oban/telemetry.ex
bglusman/oban
980b17e1235979e261c6b70723d45c09d3098e9d
[ "Apache-2.0" ]
null
null
null
lib/oban/telemetry.ex
bglusman/oban
980b17e1235979e261c6b70723d45c09d3098e9d
[ "Apache-2.0" ]
null
null
null
lib/oban/telemetry.ex
bglusman/oban
980b17e1235979e261c6b70723d45c09d3098e9d
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Telemetry do @moduledoc """ Telemetry integration for event metrics, logging and error reporting. ### Job Events Oban emits the following telemetry events for each job: * `[:oban, :job, :start]` — at the point a job is fetched from the database and will execute * `[:oban, :job, :stop]` — a...
37.727848
119
0.622882
730a2420327fd7c30f1870054b704ae5723a1d4c
7,014
exs
Elixir
e2e/test/bors_tests.exs
Simspace/bors-n
a8e8358d3a5e1e5056745e1811eef35d770b13d1
[ "Apache-2.0" ]
null
null
null
e2e/test/bors_tests.exs
Simspace/bors-n
a8e8358d3a5e1e5056745e1811eef35d770b13d1
[ "Apache-2.0" ]
56
2021-06-16T19:23:06.000Z
2022-03-28T15:11:50.000Z
e2e/test/bors_tests.exs
Simspace/bors-n
a8e8358d3a5e1e5056745e1811eef35d770b13d1
[ "Apache-2.0" ]
5
2020-11-18T23:38:29.000Z
2021-09-30T17:45:56.000Z
defmodule BorsTests do use ExUnit.Case, async: false @moduletag timeout: 10 * 60 * 1_000 @staging "staging" @into "testing/into" @base_into "testing/base-into" @base_hook_into "testing/base-hook-into" @base_squash_into "testing/base-squash-into" @normal_pr_1 "testing/normal-pr-1" @normal_pr_2 "testin...
36.722513
112
0.661677
730a25e8422f525ec93c0eaa0d448808f40cccc3
119
ex
Elixir
lib/oauth2_example/repo.ex
plank-tools/oauth2_example
22e9ad9d41676bd161ee854511babf814bf701e7
[ "MIT" ]
null
null
null
lib/oauth2_example/repo.ex
plank-tools/oauth2_example
22e9ad9d41676bd161ee854511babf814bf701e7
[ "MIT" ]
null
null
null
lib/oauth2_example/repo.ex
plank-tools/oauth2_example
22e9ad9d41676bd161ee854511babf814bf701e7
[ "MIT" ]
null
null
null
defmodule OAuth2Example.Repo do use Ecto.Repo, otp_app: :oauth2_example, adapter: Ecto.Adapters.Postgres end
19.833333
35
0.756303
730a3d041f471d75312658a7690cfe3a18aff442
1,091
ex
Elixir
lib/weaver/builder_v2/thread.ex
secretworry/weaver
93f30f2d651fa47da2589fa871b58a2097815e10
[ "MIT" ]
5
2016-11-07T09:44:12.000Z
2021-12-21T14:41:35.000Z
lib/weaver/builder_v2/thread.ex
secretworry/weaver
93f30f2d651fa47da2589fa871b58a2097815e10
[ "MIT" ]
null
null
null
lib/weaver/builder_v2/thread.ex
secretworry/weaver
93f30f2d651fa47da2589fa871b58a2097815e10
[ "MIT" ]
null
null
null
defmodule Weaver.BuilderV2.Thread do @type knot :: atom | binary | integer @type t :: [knot] def valid?(weft) do do_valid?(weft) end def get(_simple_weft, nil) do nil end def get(simple_weft, item) do do_get(simple_weft, item) end defp do_get([knot_id|tail], item) when is_atom(knot_id...
19.482143
102
0.640697
730a3e51e5a8f29fdad1640a681e61cdc149b412
1,410
ex
Elixir
lib/phoenix/router/console_formatter.ex
brightroll/phoenix
b93022086322bcc1d797214a28e0c9710f537c22
[ "MIT" ]
null
null
null
lib/phoenix/router/console_formatter.ex
brightroll/phoenix
b93022086322bcc1d797214a28e0c9710f537c22
[ "MIT" ]
null
null
null
lib/phoenix/router/console_formatter.ex
brightroll/phoenix
b93022086322bcc1d797214a28e0c9710f537c22
[ "MIT" ]
null
null
null
defmodule Phoenix.Router.ConsoleFormatter do alias Phoenix.Project def default_router do Project.module_root.Router end def format(router) do routes = router.__routes__ Enum.join(format_routes(routes), "\n") end def format_routes(routes) do column_widths = calculate_column_widths(routes)...
30
73
0.682979
730a43b1469f7be873741bbe766cf62a64b91b36
300
ex
Elixir
lib/mix/tasks/changelog.ex
maxdrift/realleasy
f12121b67475a95d6862adb21153bb068fd0e49b
[ "MIT" ]
null
null
null
lib/mix/tasks/changelog.ex
maxdrift/realleasy
f12121b67475a95d6862adb21153bb068fd0e49b
[ "MIT" ]
null
null
null
lib/mix/tasks/changelog.ex
maxdrift/realleasy
f12121b67475a95d6862adb21153bb068fd0e49b
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Changelog do @moduledoc """ Generate a log of changes before releasing a new version of an application. """ @shortdoc "Generates a changelog" @requirements ["app.start"] use Mix.Task @impl Mix.Task def run(argv), do: Realleasy.CLI.main(["changelog" | argv]) end
23.076923
77
0.703333
730a969bd1c08ba7d229ca1f8046633e969257d4
139
ex
Elixir
lib/log/level_filter/none.ex
Carburetor/log
120d535a090a41f52c141c5e08be294bb78e3a6c
[ "MIT" ]
null
null
null
lib/log/level_filter/none.ex
Carburetor/log
120d535a090a41f52c141c5e08be294bb78e3a6c
[ "MIT" ]
null
null
null
lib/log/level_filter/none.ex
Carburetor/log
120d535a090a41f52c141c5e08be294bb78e3a6c
[ "MIT" ]
null
null
null
defmodule Log.LevelFilter.None do @moduledoc """ Identifier for None level filter """ defstruct [] @type t :: %__MODULE__{} end
15.444444
34
0.669065
730aa12050c6a6b4ab35664fade814f0393bce57
889
ex
Elixir
lib/panglao/tasks/remove.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
1
2017-02-18T21:20:17.000Z
2017-02-18T21:20:17.000Z
lib/panglao/tasks/remove.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
null
null
null
lib/panglao/tasks/remove.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
null
null
null
defmodule Panglao.Tasks.Remove do # import Panglao.Tasks.Base import Ecto.Query alias Panglao.{Repo, RepoReader, Object, Client.Cheapcdn} def perform do Object.with_removable |> RepoReader.all |> remove() end def perform(:disksize) do Enum.each Cheapcdn.abledisk, fn {client, resp} -> ...
24.694444
88
0.608549
730abd17f864c591cc24de75cdbc1fb074109d57
5,654
ex
Elixir
lib/document.ex
arikai/toml-elixir
a0c3b83cdad0d5d0d0249a4f303d1e9449591472
[ "Apache-2.0" ]
176
2018-07-29T08:29:40.000Z
2022-03-30T06:20:39.000Z
lib/document.ex
arikai/toml-elixir
a0c3b83cdad0d5d0d0249a4f303d1e9449591472
[ "Apache-2.0" ]
26
2018-08-02T19:00:56.000Z
2022-03-18T21:29:05.000Z
lib/document.ex
arikai/toml-elixir
a0c3b83cdad0d5d0d0249a4f303d1e9449591472
[ "Apache-2.0" ]
22
2018-08-02T18:39:52.000Z
2021-12-25T09:53:58.000Z
defmodule Toml.Document do @moduledoc false # Represents a TOML document, and handles conversion to a plain map # See `Toml.Builder` for the actual logic for constructing the document. defstruct [:keys, :comments, :open_table, :comment_stack, :keyfun, :transforms] # A key is either binary or atom depending...
30.896175
86
0.631588
730b14b62c7b2be6b66d52e427bfee8e43c9970c
13,525
ex
Elixir
lib/ex_dbus/service.ex
diodechain/ex_dbus
14d0da9a1b9eb756b0435bec63ad470877d96abf
[ "Apache-2.0" ]
null
null
null
lib/ex_dbus/service.ex
diodechain/ex_dbus
14d0da9a1b9eb756b0435bec63ad470877d96abf
[ "Apache-2.0" ]
null
null
null
lib/ex_dbus/service.ex
diodechain/ex_dbus
14d0da9a1b9eb756b0435bec63ad470877d96abf
[ "Apache-2.0" ]
null
null
null
defmodule ExDBus.Service do require Logger use GenServer alias ExDBus.Tree alias ExDBus.Spec alias ErlangDBus.Message def start_link(opts, gen_opts \\ []) do GenServer.start_link( __MODULE__, opts, gen_opts ) end @impl true def init([_ | _] = opts) do service_name = Key...
26.835317
97
0.60525
730b2fcc9a1c98bcab81c5160d546b2e2b1928ec
4,048
ex
Elixir
lib/quantum/normalizer.ex
elixir-twister/quantum-elixir
c13cd11fbb1791e9161413810373914df0dbf11f
[ "Apache-2.0" ]
null
null
null
lib/quantum/normalizer.ex
elixir-twister/quantum-elixir
c13cd11fbb1791e9161413810373914df0dbf11f
[ "Apache-2.0" ]
null
null
null
lib/quantum/normalizer.ex
elixir-twister/quantum-elixir
c13cd11fbb1791e9161413810373914df0dbf11f
[ "Apache-2.0" ]
null
null
null
defmodule Quantum.Normalizer do @moduledoc false def normalize(j) do nj = normalize_job(j) {nj.name, nj} end def default_nodes do Application.get_env(:quantum, :default_nodes, [node()]) end # Creates named Quantum.Job # Input: # [ # newsletter: [ # schedule: "* * * * *", # ...
32.384
114
0.623024
730b4147ffc4aee5c42b81a40bd8b0bcf56e4c33
2,409
ex
Elixir
lib/hedwig_slack/connection.ex
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
45
2016-03-24T00:37:55.000Z
2020-11-28T01:26:18.000Z
lib/hedwig_slack/connection.ex
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
16
2016-03-24T02:41:49.000Z
2022-03-17T02:21:48.000Z
lib/hedwig_slack/connection.ex
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
37
2016-03-18T22:11:43.000Z
2022-03-06T10:51:51.000Z
defmodule HedwigSlack.Connection do @behaviour :websocket_client alias HedwigSlack.{Connection, ConnectionSupervisor} require Logger @keepalive 30_000 defstruct next_id: 1, owner: nil, ref: nil ### PUBLIC API ### def start(url) do {:ok, pid} = Supervisor.start_child(ConnectionSupervisor, [url, s...
22.514019
100
0.631797
730b43895eb6c6fbec142ad45ab782efe26cd168
417
ex
Elixir
lib/remote_retro_web/plugs/forbid_non_striders.ex
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
523
2017-03-15T15:21:11.000Z
2022-03-14T03:04:18.000Z
lib/remote_retro_web/plugs/forbid_non_striders.ex
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
524
2017-03-16T18:31:09.000Z
2022-02-26T10:02:06.000Z
lib/remote_retro_web/plugs/forbid_non_striders.ex
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
60
2017-05-01T18:02:28.000Z
2022-03-04T21:04:56.000Z
defmodule RemoteRetroWeb.Plugs.ForbidNonStriders do import Plug.Conn def init(options), do: options def call(conn, _opts) do %{current_user: current_user} = conn.assigns case current_user.email =~ ~r/@stridenyc\.com$/ do true -> conn false -> conn |> put_resp_content...
20.85
54
0.616307
730b4c57389c5277d1b11d0480e3c281916d3468
1,584
exs
Elixir
test/errors_test.exs
Badiapp/bolt_sips
ea5e1ae3295700a9f9b0324d26d953845da17050
[ "Apache-2.0" ]
null
null
null
test/errors_test.exs
Badiapp/bolt_sips
ea5e1ae3295700a9f9b0324d26d953845da17050
[ "Apache-2.0" ]
null
null
null
test/errors_test.exs
Badiapp/bolt_sips
ea5e1ae3295700a9f9b0324d26d953845da17050
[ "Apache-2.0" ]
null
null
null
defmodule ErrorsTest do @moduledoc """ every new error, and related tests """ use ExUnit.Case, async: true @simple_map %{foo: "bar", bolt_sips: true} @nested_map %{ foo: "bar", bolt_sips: true, a_map: %{unu: 1, doi: 2, baz: "foo"}, a_list: [1, 2, 3.14] } test "create a node using SET p...
31.058824
102
0.500631
730b5845f12f21bec0f6a469d4d3defa18f8546b
5,253
exs
Elixir
test/mbanking_web/controllers/user_controller_test.exs
kadmohardy/mbanking
42a45f78956eac95597e72ade10cb0291ed5aa76
[ "MIT" ]
null
null
null
test/mbanking_web/controllers/user_controller_test.exs
kadmohardy/mbanking
42a45f78956eac95597e72ade10cb0291ed5aa76
[ "MIT" ]
null
null
null
test/mbanking_web/controllers/user_controller_test.exs
kadmohardy/mbanking
42a45f78956eac95597e72ade10cb0291ed5aa76
[ "MIT" ]
null
null
null
defmodule MbankingWeb.UserControllerTest do use MbankingWeb.ConnCase alias Mbanking.Accounts.Entities.User alias Mbanking.Accounts.Repositories.AccountRepository alias Mbanking.UserFixture require Logger def fixture(:user) do {:ok, user} = AccountRepository.create_user(UserFixture.valid_user_pending_ap...
34.559211
135
0.642871
730b5c84d9da851ecee8b4ecd939942c676bff67
623
exs
Elixir
test/track_user_agents_web/views/error_view_test.exs
SparkPost/elixir-webhook-sample
22d367b63f4995eb0ddb4b0aaf484790987b8491
[ "Apache-2.0" ]
1
2021-12-08T18:15:33.000Z
2021-12-08T18:15:33.000Z
test/track_user_agents_web/views/error_view_test.exs
SparkPost/elixir-webhook-sample
22d367b63f4995eb0ddb4b0aaf484790987b8491
[ "Apache-2.0" ]
null
null
null
test/track_user_agents_web/views/error_view_test.exs
SparkPost/elixir-webhook-sample
22d367b63f4995eb0ddb4b0aaf484790987b8491
[ "Apache-2.0" ]
null
null
null
defmodule TrackUserAgentsWeb.ErrorViewTest do use TrackUserAgentsWeb.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(TrackUserAgentsWeb.ErrorView, "404.html", []) == "Page not found" ...
28.318182
76
0.704655
730b5da86b9e96c096450d27dde1c3f669c2357b
7,344
exs
Elixir
fogex/.credo.exs
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
1
2021-09-27T06:15:08.000Z
2021-09-27T06:15:08.000Z
fogex/.credo.exs
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
null
null
null
fogex/.credo.exs
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
1
2021-12-21T12:47:59.000Z
2021-12-21T12:47:59.000Z
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
38.652632
97
0.612881
730b741b1eeaa46d0930b97e25f7f9c9e32ab118
1,677
ex
Elixir
apps/andi/lib/andi_web/live/user_live_view/edit_user_live_view_table.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/lib/andi_web/live/user_live_view/edit_user_live_view_table.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/lib/andi_web/live/user_live_view/edit_user_live_view_table.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule AndiWeb.EditUserLiveView.EditUserLiveViewTable do @moduledoc """ LiveComponent for organization table """ use Phoenix.LiveComponent alias Phoenix.HTML.Link def render(assigns) do ~L""" <div id="<%= @id %>" class="organizations-index__table"> <table class="organizations-table"> ...
39.928571
169
0.607633
730b786424e80efa4f9618917e0eaf9c85227034
139
ex
Elixir
lib/jeeves_web/controllers/home_controller.ex
rtvu/jeeves
254c987426adcb939763429cae9c9653e8d30304
[ "MIT" ]
null
null
null
lib/jeeves_web/controllers/home_controller.ex
rtvu/jeeves
254c987426adcb939763429cae9c9653e8d30304
[ "MIT" ]
1
2021-03-09T09:29:43.000Z
2021-03-09T09:29:43.000Z
lib/jeeves_web/controllers/home_controller.ex
rtvu/jeeves
254c987426adcb939763429cae9c9653e8d30304
[ "MIT" ]
null
null
null
defmodule JeevesWeb.HomeController do use JeevesWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.375
37
0.733813
730b8311ed25ed2822dab8be9f29babfc9aeea7d
256
exs
Elixir
priv/repo/migrations/20161204165454_create_role.exs
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
1
2018-03-07T17:21:58.000Z
2018-03-07T17:21:58.000Z
priv/repo/migrations/20161204165454_create_role.exs
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
priv/repo/migrations/20161204165454_create_role.exs
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
defmodule PhoenixAdmin.Repo.Migrations.CreateRole do use Ecto.Migration def change do create table(:roles) do add :name, :string add :description, :string timestamps() end create unique_index(:roles, [:name]) end end
17.066667
52
0.667969
730bf4e38d7daa3c444ec62b4a5c7736d2b09393
1,688
exs
Elixir
apps/ewallet_api/test/ewallet_api/v1/views/wallet_view_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_api/test/ewallet_api/v1/views/wallet_view_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_api/test/ewallet_api/v1/views/wallet_view_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 OmiseGO Pte Ltd # # 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 ...
30.142857
81
0.687796
730c31e71816ec7cc1fc7b3e84ce8f852a06dd9f
165
exs
Elixir
test/nerves_grove_test.exs
Manolets/nerves_grove
7a67a34ab9d897214ce78814aebb56b346edc726
[ "Unlicense" ]
18
2016-08-14T19:17:42.000Z
2018-06-09T08:11:22.000Z
test/nerves_grove_test.exs
Manolets/nerves_grove
7a67a34ab9d897214ce78814aebb56b346edc726
[ "Unlicense" ]
3
2016-10-09T13:57:07.000Z
2017-04-15T09:19:48.000Z
test/nerves_grove_test.exs
Manolets/nerves_grove
7a67a34ab9d897214ce78814aebb56b346edc726
[ "Unlicense" ]
4
2016-09-11T12:37:30.000Z
2018-08-30T19:47:24.000Z
# This is free and unencumbered software released into the public domain. defmodule Nerves.Grove.Test do use ExUnit.Case, async: true doctest Nerves.Grove end
20.625
73
0.781818
730c456a11f75c67949d0e0fc894d4d5ed82a5c8
118
exs
Elixir
test/jorel_mix_test.exs
G-Corp/jorel_mix
d3bea2e19a5b725bbc90532d74613e0fd5441461
[ "Unlicense" ]
null
null
null
test/jorel_mix_test.exs
G-Corp/jorel_mix
d3bea2e19a5b725bbc90532d74613e0fd5441461
[ "Unlicense" ]
1
2019-02-13T14:28:48.000Z
2019-02-13T17:02:49.000Z
test/jorel_mix_test.exs
G-Corp/jorel_mix
d3bea2e19a5b725bbc90532d74613e0fd5441461
[ "Unlicense" ]
null
null
null
defmodule JorelMixTest do use ExUnit.Case doctest JorelMix test "the truth" do assert 1 + 1 == 2 end end
13.111111
25
0.677966
730c4668990b546df8125ccedbc1fd545ba4b98d
515
exs
Elixir
test/integration/room_management_integration_test.exs
debonair/mogo-chat
108c611177363a04d278221aabc03dcd2b66597c
[ "MIT" ]
210
2015-01-01T04:17:56.000Z
2022-02-26T23:54:56.000Z
test/integration/room_management_integration_test.exs
debonair/mogo-chat
108c611177363a04d278221aabc03dcd2b66597c
[ "MIT" ]
1
2015-05-08T21:44:36.000Z
2015-05-08T21:44:36.000Z
test/integration/room_management_integration_test.exs
debonair/mogo-chat
108c611177363a04d278221aabc03dcd2b66597c
[ "MIT" ]
40
2015-01-06T08:48:40.000Z
2020-05-26T18:03:07.000Z
defmodule RoomManagementIntegrationTest do use MogoChat.TestCase use Hound.Helpers import TestUtils hound_session truncate_db_after_test test "admin should be able to view rooms" do end test "admin should be able to add rooms" do end test "admin should be able to remove rooms" do end te...
15.147059
68
0.726214
730c4c21d4726ab8128ff78c730da4303d31c711
6,331
exs
Elixir
.credo.exs
hrzndhrn/knigge
72e4f7bd14f6b79fde2abdeaa996958984cab3e5
[ "MIT" ]
null
null
null
.credo.exs
hrzndhrn/knigge
72e4f7bd14f6b79fde2abdeaa996958984cab3e5
[ "MIT" ]
null
null
null
.credo.exs
hrzndhrn/knigge
72e4f7bd14f6b79fde2abdeaa996958984cab3e5
[ "MIT" ]
null
null
null
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
39.322981
88
0.616016
730c80ecbe2b98bdbbeb7f597905053bf7a1a891
410
ex
Elixir
lib/file_summary.ex
akoutmos/ex_todo
f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa
[ "MIT" ]
14
2019-06-18T04:56:18.000Z
2021-03-22T07:59:43.000Z
lib/file_summary.ex
akoutmos/ex_todo
f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa
[ "MIT" ]
null
null
null
lib/file_summary.ex
akoutmos/ex_todo
f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa
[ "MIT" ]
null
null
null
defmodule ExTodo.FileSummary do @moduledoc """ This module defines a struct which is used to encapsulate all the information for a file that contains code tags """ alias __MODULE__ defstruct file_path: nil, todo_entries: [] @doc "Build a file summary sruct" def build(file_path, todo_entries) do %...
21.578947
79
0.714634
730c84fc2ef85e0a37adde85e2f13ebad799ed04
2,459
ex
Elixir
lib/travis.ex
kddeisz/travis.ex
5d54cf61342f1b470d363c10b608a28ce97ee580
[ "MIT" ]
null
null
null
lib/travis.ex
kddeisz/travis.ex
5d54cf61342f1b470d363c10b608a28ce97ee580
[ "MIT" ]
null
null
null
lib/travis.ex
kddeisz/travis.ex
5d54cf61342f1b470d363c10b608a28ce97ee580
[ "MIT" ]
null
null
null
defmodule Travis do alias Travis.Client @headers [{"User-Agent", "Travis.ex/0.0.1"}, {"Accept", "application/vnd.travis-ci.2+json"}] @type response :: {integer, String.t} | :jsx.json_term @spec delete(binary, Client.t) :: response def delete(path, client, params \\ []), do: :delete |> request(path, client,...
40.311475
117
0.663684
730c86d7ee6324133871a438b3d0a3e337ef27de
1,982
ex
Elixir
clients/os_login/lib/google_api/os_login/v1alpha/model/ssh_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/os_login/lib/google_api/os_login/v1alpha/model/ssh_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/os_login/lib/google_api/os_login/v1alpha/model/ssh_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...
35.392857
120
0.70333
730c9178533e90ed05b413d8dbc0f85742208f3e
1,114
exs
Elixir
mix.exs
warmwaffles/auth0_ex
d0d7ad895c4db79d366c9c55e289a944c891936c
[ "Apache-2.0" ]
null
null
null
mix.exs
warmwaffles/auth0_ex
d0d7ad895c4db79d366c9c55e289a944c891936c
[ "Apache-2.0" ]
null
null
null
mix.exs
warmwaffles/auth0_ex
d0d7ad895c4db79d366c9c55e289a944c891936c
[ "Apache-2.0" ]
null
null
null
defmodule Auth0Ex.Mixfile do use Mix.Project def project do [ app: :auth0_ex, version: "0.7.0", elixir: "~> 1.7", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, preferred_cli_env: [ vcr: :test, "vcr.delete": :test, "vcr.check...
21.423077
66
0.505386
730cc63f80faca1d5e3662861684dcce0ab16090
1,095
ex
Elixir
lib/strichliste_elixir_web/channels/user_socket.ex
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
null
null
null
lib/strichliste_elixir_web/channels/user_socket.ex
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
null
null
null
lib/strichliste_elixir_web/channels/user_socket.ex
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
1
2019-05-24T18:18:24.000Z
2019-05-24T18:18:24.000Z
defmodule StrichlisteElixirWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", StrichlisteElixirWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will b...
32.205882
92
0.705023
730cd109a66ab14e21163511c07412b1c13f60a0
94
exs
Elixir
test/steamex/steam_id_test.exs
csgo-pug-system/steamex
6b01ec48ba0945450dfa41c03efa562aba7bf747
[ "Apache-2.0" ]
null
null
null
test/steamex/steam_id_test.exs
csgo-pug-system/steamex
6b01ec48ba0945450dfa41c03efa562aba7bf747
[ "Apache-2.0" ]
null
null
null
test/steamex/steam_id_test.exs
csgo-pug-system/steamex
6b01ec48ba0945450dfa41c03efa562aba7bf747
[ "Apache-2.0" ]
null
null
null
defmodule Steamex.SteamIDTest do use ExUnit.Case, async: true doctest Steamex.SteamID end
18.8
32
0.797872
730cd1e0529d08fb181743e175f17970cca5394f
623
exs
Elixir
test/tic_tac_toe_test.exs
mike-works/elixir-fundamentals
7505a61adcedbe2da5f3c59dc765e2bfb7364c3c
[ "BSD-3-Clause" ]
14
2018-04-18T12:58:54.000Z
2020-09-14T16:40:07.000Z
test/tic_tac_toe_test.exs
mike-north/elixir-fundamentals
2bad545e1eba966956ae929b3fa3c5cbd55db227
[ "BSD-3-Clause" ]
6
2018-02-27T18:25:57.000Z
2021-10-19T02:40:08.000Z
test/tic_tac_toe_test.exs
mike-north/elixir-fundamentals
2bad545e1eba966956ae929b3fa3c5cbd55db227
[ "BSD-3-Clause" ]
5
2018-02-28T16:10:53.000Z
2019-04-18T11:18:05.000Z
defmodule TicTacToeTest do use ExUnit.Case @moduletag :exercise14 test "Starting a game should return a PID" do game = TicTacToe.new assert is_pid(game) === true end test "Board is full of nils before game starts" do game = TicTacToe.new board_before = game |> TicTacToe.get_board assert...
21.482759
52
0.669342
730cd82a784409677ed729a77cbcdaa4fb702c9c
6,160
ex
Elixir
lib/swoosh/adapters/postmark.ex
joshnuss/swoosh
47e7b46fd7635de90618c1320f6ab90880ec5418
[ "MIT" ]
null
null
null
lib/swoosh/adapters/postmark.ex
joshnuss/swoosh
47e7b46fd7635de90618c1320f6ab90880ec5418
[ "MIT" ]
21
2021-03-08T10:04:20.000Z
2022-03-23T10:20:17.000Z
lib/swoosh/adapters/postmark.ex
joshnuss/swoosh
47e7b46fd7635de90618c1320f6ab90880ec5418
[ "MIT" ]
null
null
null
defmodule Swoosh.Adapters.Postmark do @moduledoc ~S""" An adapter that sends email using the Postmark API. For reference: [Postmark API docs](http://developer.postmarkapp.com/developer-send-api.html) ## Example # config/config.exs config :sample, Sample.Mailer, adapter: Swoosh.Adapters.Po...
31.589744
97
0.652435
730ceefc0561eebe62b180afd65d657ec21e3fff
1,803
exs
Elixir
test/monocle_helpers_tests/lookahead/still_inline_code_test.exs
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
2
2018-02-11T01:18:24.000Z
2020-01-12T17:19:22.000Z
test/monocle_helpers_tests/lookahead/still_inline_code_test.exs
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
null
null
null
test/monocle_helpers_tests/lookahead/still_inline_code_test.exs
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
null
null
null
defmodule Helpers.InlineCodeTest.StillInlineCodeTest do use ExUnit.Case import Monocle.Helpers.LookaheadHelpers, only: [still_inline_code: 2] [ { "empty line -> not closing for single backquote" , "`" , "" , {"`", 24} }, { "empty line -> not closing for double backquote" , "``" , "" , {"``", 24} },...
66.777778
110
0.494731
730d99f134296642594609b9bf0874710a6551d6
6,993
ex
Elixir
deps/distillery/lib/mix/lib/releases/plugins/plugin.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/distillery/lib/mix/lib/releases/plugins/plugin.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/distillery/lib/mix/lib/releases/plugins/plugin.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Releases.Plugin do @moduledoc """ This module provides a simple way to add additional processing to phases of the release assembly and archival. ## Implementing your own plugin To create a Distillery plugin, create a new module in which you `use Mix.Releases.Plugin`. Then write implentations...
32.67757
96
0.658945
730dcfbe8d3202fedc5b220aad42633e75da0543
590
ex
Elixir
lib/langue/formatter/rails/serializer.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/langue/formatter/rails/serializer.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/langue/formatter/rails/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.Rails.Serializer do @behaviour Langue.Formatter.Serializer alias Langue.Utils.NestedSerializerHelper @white_space_regex ~r/(:|-) \n/ def serialize(%{entries: entries, language: language}) do render = %{language.slug => entries} |> Enum.with_index(-1) |> Enum.m...
28.095238
78
0.659322
730dd40b502e323dd140f6f956baedf6e6e19d34
3,399
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_return_refund_line_item.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_return_refund_line_item.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_return_refund_line_item.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.988235
244
0.692851
730dd64298c9a2277fcbebecaf6e5cdb4f31b5d8
141
ex
Elixir
lib/blog_new_web/controllers/page_controller.ex
wagncarv/blog_new
bcfde533df5109cfa68b33362db56ef728090b02
[ "MIT" ]
null
null
null
lib/blog_new_web/controllers/page_controller.ex
wagncarv/blog_new
bcfde533df5109cfa68b33362db56ef728090b02
[ "MIT" ]
null
null
null
lib/blog_new_web/controllers/page_controller.ex
wagncarv/blog_new
bcfde533df5109cfa68b33362db56ef728090b02
[ "MIT" ]
null
null
null
defmodule BlogNewWeb.PageController do use BlogNewWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.625
38
0.737589
730df51ca5f2eb8fc1a197c597bbc533950e7742
4,823
ex
Elixir
apps/aecore/lib/aecore/sync/chain.ex
aeternity/epoch-elixir
d35613f5541a9bbebe61f90b8503a9b3416fe8b4
[ "0BSD" ]
131
2018-03-10T01:35:56.000Z
2021-12-27T13:44:41.000Z
apps/aecore/lib/aecore/sync/chain.ex
aeternity/elixir-node
d35613f5541a9bbebe61f90b8503a9b3416fe8b4
[ "0BSD" ]
445
2018-03-12T09:46:17.000Z
2018-12-12T09:52:07.000Z
apps/aecore/lib/aecore/sync/chain.ex
aeternity/epoch-elixir
d35613f5541a9bbebe61f90b8503a9b3416fe8b4
[ "0BSD" ]
23
2018-03-12T12:01:28.000Z
2022-03-06T09:22:17.000Z
defmodule Aecore.Sync.Chain do @moduledoc """ Implements all the functions regarding the Chain structure of the SyncTask """ alias __MODULE__ alias Aecore.Chain.Header alias Aecore.Sync.{Task, Sync} @type peer_id :: pid() @type chain_id :: reference() @type height :: non_neg_integer() @type header_...
29.054217
92
0.620775
730dfa4423c69ff26c0f0178e8ae1cb7744139b3
7,283
ex
Elixir
lib/aws/autoscaling.ex
ttyerl/aws-elixir
48f6360fccee5dd587fab7a6efb109a399ff9a46
[ "Apache-2.0" ]
223
2015-05-29T17:45:35.000Z
2021-06-29T08:37:14.000Z
lib/aws/autoscaling.ex
ttyerl/aws-elixir
48f6360fccee5dd587fab7a6efb109a399ff9a46
[ "Apache-2.0" ]
33
2015-11-20T20:56:43.000Z
2021-07-09T20:13:34.000Z
lib/aws/autoscaling.ex
ttyerl/aws-elixir
48f6360fccee5dd587fab7a6efb109a399ff9a46
[ "Apache-2.0" ]
62
2015-06-14T20:53:24.000Z
2021-12-13T07:20:15.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/jkakar/aws-codegen for more details. defmodule AWS.AutoScaling do @moduledoc """ With Application Auto Scaling, you can automatically scale your AWS resources. The experience similar to that of [Auto Scaling](https://aws.amazon.com/autoscali...
38.331579
101
0.724015
730e0bc5fa350ba4853d563998f54da42adfe571
51,634
ex
Elixir
lib/elixir/lib/code.ex
bessbd/elixir
2b8de986238ce0e9593ed5b5d182994a562c1c30
[ "Apache-2.0" ]
1
2021-02-22T14:21:02.000Z
2021-02-22T14:21:02.000Z
lib/elixir/lib/code.ex
bessbd/elixir
2b8de986238ce0e9593ed5b5d182994a562c1c30
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code.ex
bessbd/elixir
2b8de986238ce0e9593ed5b5d182994a562c1c30
[ "Apache-2.0" ]
null
null
null
defmodule Code do @moduledoc ~S""" Utilities for managing code compilation, code evaluation, and code loading. This module complements Erlang's [`:code` module](`:code`) to add behaviour which is specific to Elixir. Almost all of the functions in this module have global side effects on the behaviour of Elixi...
35.197001
145
0.686621
730e0bc8ea3634e00698a1644ba4b5015c603db2
1,125
exs
Elixir
config/config.exs
lorenzosinisi/extop
64d6408709224a6daf2db6b233d47d78c37ba0bb
[ "Apache-2.0" ]
2
2020-01-14T05:10:41.000Z
2020-03-02T10:43:38.000Z
config/config.exs
lorenzosinisi/extop
64d6408709224a6daf2db6b233d47d78c37ba0bb
[ "Apache-2.0" ]
1
2019-08-24T08:59:40.000Z
2019-08-24T08:59:40.000Z
config/config.exs
lorenzosinisi/extop
64d6408709224a6daf2db6b233d47d78c37ba0bb
[ "Apache-2.0" ]
1
2019-08-23T20:53:38.000Z
2019-08-23T20:53:38.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...
36.290323
73
0.750222
730e22162a4f3272dc1792e9485d60ffb5b2e930
5,025
exs
Elixir
test/distance_test.exs
carsdotcom/google_maps
64c10e5936d957d9249b86df5b25398bb5eda004
[ "MIT" ]
null
null
null
test/distance_test.exs
carsdotcom/google_maps
64c10e5936d957d9249b86df5b25398bb5eda004
[ "MIT" ]
null
null
null
test/distance_test.exs
carsdotcom/google_maps
64c10e5936d957d9249b86df5b25398bb5eda004
[ "MIT" ]
2
2020-06-20T18:15:37.000Z
2021-03-30T20:22:02.000Z
defmodule DistanceTest do use ExUnit.Case, async: true alias GoogleMaps, as: Maps test "distance between two addresses" do origin = "Cột mốc Quốc Gia, Đất Mũi, Ca Mau, Vietnam" destination = "Cột cờ Lũng Cú, Đường lên Cột Cờ, Lũng Cú, Ha Giang, Vietnam" {:ok, result} = Maps.distance(origin, destinat...
35.387324
123
0.692139
730e51d23e597faf7edb9d74a4829b648e85f724
6,082
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/api/referencesets.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/genomics/lib/google_api/genomics/v1/api/referencesets.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/api/referencesets.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
43.755396
209
0.688096
730e572756a70e70bfbc6fe95e370ea92d62d0e9
6,440
ex
Elixir
lib/ecto/embedded.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
lib/ecto/embedded.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
lib/ecto/embedded.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Embedded do @moduledoc false alias __MODULE__ alias Ecto.Changeset @type t :: %Embedded{cardinality: :one | :many, on_replace: :raise | :mark_as_invalid | :delete, field: atom, owner: atom, on_cast: nil |...
35.977654
110
0.652174
730e6e2165d88a2225331ae8cda4684a08557325
620
exs
Elixir
exercises/pascals-triangle/example.exs
darktef/elixir-exercism
bcaae351486b1405f0a01cd33b4d39555546298e
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/pascals-triangle/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/pascals-triangle/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule PascalsTriangle do @doc """ Calculates the rows of a pascal triangle with the given height """ @spec rows(integer) :: [[integer]] def rows(num) do do_rows(num - 1, [[1]]) end defp do_rows(0, rows), do: Enum.reverse rows defp do_rows(n, rows = [h | _]) do do_rows(n - 1, [next_row(h) ...
19.375
46
0.570968
730e90d279eb2eff3767d7ce953df53ffd4dfbfb
218
exs
Elixir
chapter-6/math.exs
CuriousCurmudgeon/programming-elixir-exercises
ba112f498f7cb7fefaa1359c928ff1b385d1add1
[ "MIT" ]
null
null
null
chapter-6/math.exs
CuriousCurmudgeon/programming-elixir-exercises
ba112f498f7cb7fefaa1359c928ff1b385d1add1
[ "MIT" ]
null
null
null
chapter-6/math.exs
CuriousCurmudgeon/programming-elixir-exercises
ba112f498f7cb7fefaa1359c928ff1b385d1add1
[ "MIT" ]
null
null
null
defmodule Math do # Exercise: ModulesAndFunctions-4 def sum(0), do: 0 def sum(n), do: n + sum(n-1) # Exercise: ModulesAndFunctions-5 def gcd(x, 0), do: x def gcd(x, y), do: gcd(y, rem(x,y)) end
24.222222
39
0.591743
730e91b8173cd50c8f63c12a387a948f29f790d3
2,476
exs
Elixir
test/behaviour/with_already_existing_implementation_test.exs
samuel-uniris/knigge
fd7c6e735a1840211a02733c628167a1831d9c92
[ "MIT" ]
83
2019-07-26T14:51:19.000Z
2022-03-27T08:05:15.000Z
test/behaviour/with_already_existing_implementation_test.exs
samuel-uniris/knigge
fd7c6e735a1840211a02733c628167a1831d9c92
[ "MIT" ]
21
2019-08-06T08:35:44.000Z
2021-10-17T19:55:46.000Z
test/behaviour/with_already_existing_implementation_test.exs
samuel-uniris/knigge
fd7c6e735a1840211a02733c628167a1831d9c92
[ "MIT" ]
10
2019-07-31T09:56:26.000Z
2022-01-03T12:03:33.000Z
defmodule Behaviour.WithAlreadyExistingImplementationTest do use ExUnit.Case, async: false import ExUnit.CaptureIO import Knigge.Test.SaltedModule require Mox defmacrop define_facade(knigge_options \\ []) do behaviour = salt_atom(Behaviour) implementation = salt_atom(Implementation) options = K...
30.567901
163
0.678918
730eb25fa1dfe9c1b978be37a9600a5302640b31
469
exs
Elixir
priv/repo/migrations/20170702160756_add_permissions_to_keys.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
priv/repo/migrations/20170702160756_add_permissions_to_keys.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
priv/repo/migrations/20170702160756_add_permissions_to_keys.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule Hexpm.Repo.Migrations.AddPermissionsToKeys do use Ecto.Migration def up() do alter table(:keys) do add( :permissions, {:array, :jsonb}, null: false, default: fragment("ARRAY[json_build_object('id', uuid_generate_v4(), 'domain', 'api')]") ) end exec...
20.391304
96
0.620469
730ecb77984448209af3b670689ac5d37c5f2175
424
exs
Elixir
priv/repo/migrations/20210316052639_create_legal_entytis.exs
gissandrogama/contracts_api
13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1
[ "MIT" ]
null
null
null
priv/repo/migrations/20210316052639_create_legal_entytis.exs
gissandrogama/contracts_api
13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1
[ "MIT" ]
2
2021-03-16T06:43:04.000Z
2021-03-16T06:54:55.000Z
priv/repo/migrations/20210316052639_create_legal_entytis.exs
gissandrogama/contracts_api
13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1
[ "MIT" ]
null
null
null
defmodule ContractsApi.Repo.Migrations.CreateLegalEntytis do use Ecto.Migration def change do create table(:legal_entytis, primary_key: false) do add :id, :binary_id, primary_key: true add :name, :string add :cnpj, :string add :contract_id, references(:contracts, on_delete: :nothing, ty...
24.941176
85
0.695755
730ee972602cd526f2c3f2e8a16364c19f97ce2f
2,269
exs
Elixir
config/prod.exs
Harmful-Alchemist/FunRetro
6b53c16adb2c233e5338799732a5a5c2fe10acaf
[ "MIT" ]
null
null
null
config/prod.exs
Harmful-Alchemist/FunRetro
6b53c16adb2c233e5338799732a5a5c2fe10acaf
[ "MIT" ]
null
null
null
config/prod.exs
Harmful-Alchemist/FunRetro
6b53c16adb2c233e5338799732a5a5c2fe10acaf
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
35.453125
66
0.711327
730eec4534d4e39b3f9c397103a55e3b21c794c0
614
ex
Elixir
lib/probe/function.ex
scohen/instruments
6162bd3280795b544d052fce871acd9975aee542
[ "MIT" ]
167
2017-11-09T08:25:21.000Z
2020-03-05T12:26:20.000Z
lib/probe/function.ex
Seanpm2001-Discord/instruments
4e8a34655d5b469567be69ccf3cf2dcdeba798f6
[ "MIT" ]
7
2020-05-13T15:16:08.000Z
2022-03-03T01:39:56.000Z
lib/probe/function.ex
Seanpm2001-Discord/instruments
4e8a34655d5b469567be69ccf3cf2dcdeba798f6
[ "MIT" ]
16
2017-11-10T10:35:37.000Z
2020-02-25T09:54:53.000Z
defmodule Instruments.Probe.Function do @moduledoc false @behaviour Instruments.Probe def probe_init(_name, _probe_type, options) do probe_fn = Keyword.fetch!(options, :function) {:ok, {probe_fn, nil}} end def probe_get_value({_, last_value}) do {:ok, last_value} end def probe_reset({probe...
19.806452
54
0.640065
730efbea1a3b747dc4a91aa6b2b0a951483d6d4a
4,437
exs
Elixir
test/adaptable_costs_evaluator/formulas_test.exs
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
null
null
null
test/adaptable_costs_evaluator/formulas_test.exs
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
4
2021-12-07T12:26:50.000Z
2021-12-30T14:17:25.000Z
test/adaptable_costs_evaluator/formulas_test.exs
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
null
null
null
defmodule AdaptableCostsEvaluator.FormulasTest do use AdaptableCostsEvaluator.DataCase use AdaptableCostsEvaluator.Fixtures.{ UserFixture, ComputationFixture, FormulaFixture, InputFixture, OutputFixture, FieldSchemaFixture, EvaluatorFixture } alias AdaptableCostsEvaluator.Formulas ...
32.152174
98
0.678612
730f02e76d37b1d6532fcb88810064094cbd4a1b
6,972
ex
Elixir
lib/dwarlixir/controllers/human_old.ex
Trevoke/dwarlixir
e0a7ae39d3687d8e649fba67ce3dee413f00307e
[ "MIT" ]
54
2017-03-09T20:43:11.000Z
2022-03-29T16:59:20.000Z
lib/dwarlixir/controllers/human_old.ex
Trevoke/dwarlixir
e0a7ae39d3687d8e649fba67ce3dee413f00307e
[ "MIT" ]
17
2017-03-12T18:16:21.000Z
2017-05-30T03:34:57.000Z
lib/dwarlixir/controllers/human_old.ex
Trevoke/dwarlixir
e0a7ae39d3687d8e649fba67ce3dee413f00307e
[ "MIT" ]
2
2017-04-23T23:47:41.000Z
2017-11-19T13:38:25.000Z
defmodule Dwarlixir.Controllers.HumanOld do alias Dwarlixir.Controllers alias Dwarlixir.World defstruct [ :socket, :id, :location_id, exits: [], messages: [] ] use GenServer def start_link(args \\ %__MODULE__{}) do GenServer.start_link(__MODULE__, args, name: via_tuple(args.id)) end def init(a...
29.922747
121
0.606139
730f100a560ea2087a5fb5b970244a19a5879521
2,526
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_gcs_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_gcs_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_gcs_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.744681
1,102
0.770784
730f4693f2f504f34f990064041f5ae3b3200039
14,874
exs
Elixir
apps/site/test/site_web/views/helpers_test.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
apps/site/test/site_web/views/helpers_test.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
apps/site/test/site_web/views/helpers_test.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
defmodule SiteWeb.ViewHelpersTest do @moduledoc false use SiteWeb.ConnCase, async: true import SiteWeb.ViewHelpers import Phoenix.HTML.Tag, only: [tag: 2, content_tag: 3] import Phoenix.HTML, only: [safe_to_string: 1, html_escape: 1] alias Routes.{Repo, Route} describe "break_text_at_slash/1" do tes...
30.604938
103
0.584712
730f544f2deaa84f263cfcdf5c802001e8359b08
163
ex
Elixir
lib/ex_polygon/historic_forex.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
lib/ex_polygon/historic_forex.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
lib/ex_polygon/historic_forex.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
defmodule ExPolygon.HistoricForex do @type t :: %ExPolygon.HistoricForex{} defstruct ~w( day map msLatency status pair ticks )a end
12.538462
39
0.638037
730f77316cca246fca3cad45aab7fc612d278c76
52
ex
Elixir
lib/alchemy.ex
shutangyu/alchemy
07d7f99d5e206819ffb9001ef8248c76a2201fa5
[ "MIT" ]
53
2016-02-17T13:09:59.000Z
2021-08-09T11:43:29.000Z
lib/alchemy.ex
shutangyu/alchemy
07d7f99d5e206819ffb9001ef8248c76a2201fa5
[ "MIT" ]
18
2016-02-19T16:55:46.000Z
2021-11-01T10:11:26.000Z
lib/alchemy.ex
shutangyu/alchemy
07d7f99d5e206819ffb9001ef8248c76a2201fa5
[ "MIT" ]
1
2016-12-07T17:10:59.000Z
2016-12-07T17:10:59.000Z
defmodule Alchemy do @moduledoc ~S""" """ end
7.428571
20
0.596154
730fcf5d596c8c0cc022b9e82989ce5c27e9a760
2,015
exs
Elixir
apps/database/priv/repo/abc_seeds.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
3
2018-07-20T22:14:36.000Z
2018-12-21T19:54:48.000Z
apps/database/priv/repo/abc_seeds.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
36
2018-09-15T21:46:54.000Z
2020-03-28T16:10:18.000Z
apps/database/priv/repo/abc_seeds.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
2
2018-07-22T08:47:07.000Z
2021-12-11T01:39:19.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: # # Website.Repo.insert!(%Website.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will...
25.1875
71
0.658561
730fd6ef03b8292c021d6b6da2c2d0bca378ace2
6,462
ex
Elixir
lib/terminus.ex
libitx/terminus
f394aea4ced49aec216203b19c33f53578eac7ec
[ "Apache-2.0" ]
16
2020-04-15T14:45:15.000Z
2022-02-28T03:28:22.000Z
lib/terminus.ex
libitx/terminus
f394aea4ced49aec216203b19c33f53578eac7ec
[ "Apache-2.0" ]
1
2020-07-28T21:39:41.000Z
2020-07-29T13:05:45.000Z
lib/terminus.ex
libitx/terminus
f394aea4ced49aec216203b19c33f53578eac7ec
[ "Apache-2.0" ]
3
2021-01-10T22:39:43.000Z
2022-03-15T07:39:22.000Z
defmodule Terminus do @moduledoc """ ![Terminus - Crawl and subscribe to Bitcoin transaction events using Bitbus, Bitsocket and BitFS.](https://github.com/libitx/terminus/raw/master/media/poster.png) Terminus allows you to crawl and subscribe to Bitcoin transaction events and download binary data from transact...
39.644172
164
0.682761
730fe41c653bccd40fff59ebb491d2a6a65334b7
1,075
ex
Elixir
lib/chat_api_web/controllers/widget_settings_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/widget_settings_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/widget_settings_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.WidgetSettingsController do use ChatApiWeb, :controller alias ChatApi.WidgetSettings alias ChatApi.WidgetSettings.WidgetSetting action_fallback ChatApiWeb.FallbackController def show(conn, %{"account_id" => account_id}) do widget_settings = WidgetSettings.get_settings_by_account(ac...
33.59375
98
0.752558
731081df37162c9da77854b938ba05549f144e11
1,098
ex
Elixir
test/support/conn_case.ex
jdesilvio/pin-bin-api
3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
jdesilvio/pin-bin-api
3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7
[ "Apache-2.0" ]
5
2018-11-22T01:01:29.000Z
2019-03-15T01:02:43.000Z
test/support/conn_case.ex
jdesilvio/pin_bin
3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7
[ "Apache-2.0" ]
null
null
null
defmodule PinBinWeb.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 d...
23.361702
56
0.703097
7310aaaa2fb67117dbad43ecd52c8551a9fe9049
2,334
ex
Elixir
lib/changelog/schema/topic.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
lib/changelog/schema/topic.ex
codexn/changelog.com
25ce501ee62eef76731c38d590667e8132096ba8
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
lib/changelog/schema/topic.ex
codexn/changelog.com
25ce501ee62eef76731c38d590667e8132096ba8
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule Changelog.Topic do use Changelog.Schema alias Changelog.{EpisodeTopic, Files, NewsItemTopic, PostTopic, Regexp} schema "topics" do field :name, :string field :slug, :string field :description, :string field :website, :string field :twitter_handle, :string field :icon, Files.Ic...
29.544304
93
0.673522
7310b5cea020120c849724e4906bba0c1bd978cc
636
ex
Elixir
lib/pulsar_ex/producer_supervisor.ex
blueshift-labs/pulsar_ex
8fd5b6b7fa98b172645bce56dd3a46395935e2e0
[ "MIT" ]
3
2021-04-16T01:54:20.000Z
2022-01-09T23:26:56.000Z
lib/pulsar_ex/producer_supervisor.ex
blueshift-labs/pulsar_ex
8fd5b6b7fa98b172645bce56dd3a46395935e2e0
[ "MIT" ]
null
null
null
lib/pulsar_ex/producer_supervisor.ex
blueshift-labs/pulsar_ex
8fd5b6b7fa98b172645bce56dd3a46395935e2e0
[ "MIT" ]
null
null
null
defmodule PulsarEx.ProducerSupervisor do use Supervisor alias PulsarEx.{ProducerRegistry, Producers, ProducerManager} def start_link(_) do Supervisor.start_link(__MODULE__, :init, name: __MODULE__) end @impl true def init(:init) do producer_opts = Application.get_env(:pulsar_ex, :producer_opts, [...
26.5
71
0.720126
7310e46352eedb3f1541b0c5b876f487fa76ed99
6,646
ex
Elixir
lib/spotify/models/audio_features.ex
chippers/spotify_web_api
221a197dbac4971f87e9917d02cb335e6a42b726
[ "MIT" ]
null
null
null
lib/spotify/models/audio_features.ex
chippers/spotify_web_api
221a197dbac4971f87e9917d02cb335e6a42b726
[ "MIT" ]
null
null
null
lib/spotify/models/audio_features.ex
chippers/spotify_web_api
221a197dbac4971f87e9917d02cb335e6a42b726
[ "MIT" ]
null
null
null
defmodule Spotify.AudioFeatures do @moduledoc """ A complete audio features object. [Spotify Docs](https://beta.developer.spotify.com/documentation/web-api/reference/object-model/#audio-features-object) """ @behaviour Spotify.ObjectModel @typedoc """ A float measurement of Acousticness. A co...
32.419512
122
0.676648
7310e5be2abd7ea46da422b93460e3c3511443d1
4,438
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
62.507042
700
0.723073
731125418abe38b69c02a1722ddcbbe7e34ed282
353
exs
Elixir
test/absinthe/integration/execution/aliases/all_caps_alias_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/aliases/all_caps_alias_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/aliases/all_caps_alias_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
1
2018-11-16T02:34:40.000Z
2018-11-16T02:34:40.000Z
defmodule Elixir.Absinthe.Integration.Execution.Aliases.AllCapsAliasTest do use ExUnit.Case, async: true @query """ query { thing(id: "foo") { FOO: name } } """ test "scenario #1" do assert {:ok, %{data: %{"thing" => %{"FOO" => "Foo"}}}} == Absinthe.run(@query, Absinthe.Fixt...
20.764706
75
0.580737
7311375a0cf6e0b15a7f2229d0045c3724425b26
3,726
ex
Elixir
lib/socializer/demo_manager.ex
adam-h/socializer
22bbb34a6e707af9cf608c5eeb6189d1f067a95b
[ "MIT" ]
311
2019-04-21T22:15:08.000Z
2022-01-23T14:07:03.000Z
lib/socializer/demo_manager.ex
adam-h/socializer
22bbb34a6e707af9cf608c5eeb6189d1f067a95b
[ "MIT" ]
9
2020-09-07T09:38:58.000Z
2022-02-26T18:07:44.000Z
lib/socializer/demo_manager.ex
adam-h/socializer
22bbb34a6e707af9cf608c5eeb6189d1f067a95b
[ "MIT" ]
49
2019-04-22T01:29:50.000Z
2022-03-23T04:34:35.000Z
defmodule Socializer.DemoManager do import Ecto.Query alias Socializer.{ DemoManager, Repo, Comment, Conversation, ConversationUser, Message, Post, User } def reset_and_seed_database!(force \\ false) do if force || System.get_env("CLEAR_DB_WEEKLY") do DemoManager.rese...
34.183486
310
0.589372
731144fbadef1ad5edec9f90265769b226d65f4a
1,413
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/playlist_content_details.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/playlist_content_details.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/playlist_content_details.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 ...
30.06383
97
0.739561
73115f96ef31ce65cf53895cead23931338ed034
370
ex
Elixir
apps/nerves_hub_www/lib/nerves_hub_www_web/views/org_key_view.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_www/lib/nerves_hub_www_web/views/org_key_view.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_www/lib/nerves_hub_www_web/views/org_key_view.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubWWWWeb.OrgKeyView do use NervesHubWWWWeb, :view def top_level_error_message(%Ecto.Changeset{errors: errors}) do if Keyword.has_key?(errors, :firmwares) do "Key is in use. You must delete any firmwares signed by the corresponding private key" else "Oops, something went wrong! ...
30.833333
92
0.737838
73119e5a3c43002a1f32144348e2c75c6d94d1d0
1,164
ex
Elixir
lib/grapevine/statistics/player_statistic.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/grapevine/statistics/player_statistic.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/grapevine/statistics/player_statistic.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Grapevine.Statistics.PlayerStatistic do @moduledoc """ Player Statistic Schema """ use Ecto.Schema import Ecto.Changeset alias Grapevine.Games.Game @type t :: %__MODULE__{} schema "player_statistics" do field(:type, :string) field(:player_count, :integer) field(:player_names, ...
25.866667
74
0.685567
7311ac6828a303ae635ec8947baebb7cd0f78be9
776
exs
Elixir
elixir_http_server_starter/test/HttpServerStarter_test.exs
andrea-prearo/http_server_starter_collection
229f2221ed941193e5a85486c662ea70b2267151
[ "MIT" ]
null
null
null
elixir_http_server_starter/test/HttpServerStarter_test.exs
andrea-prearo/http_server_starter_collection
229f2221ed941193e5a85486c662ea70b2267151
[ "MIT" ]
null
null
null
elixir_http_server_starter/test/HttpServerStarter_test.exs
andrea-prearo/http_server_starter_collection
229f2221ed941193e5a85486c662ea70b2267151
[ "MIT" ]
null
null
null
defmodule HttpServerStarter.Test do use ExUnit.Case, async: true use Plug.Test @opts HttpServerStarter.Router.init([]) test "returns Hello World!" do conn = conn(:get, "/") conn = HttpServerStarter.Router.call(conn, @opts) assert conn.state == :sent assert conn.status == 200 assert Enum....
26.758621
95
0.673969
7311d7aec1085a9642c9809711f284f04fc0ef66
568
exs
Elixir
test/tp_link/local/message_test.exs
balexand/tp_link
1005822b7b2a4d4194a8d166b808d99c0542b987
[ "MIT" ]
null
null
null
test/tp_link/local/message_test.exs
balexand/tp_link
1005822b7b2a4d4194a8d166b808d99c0542b987
[ "MIT" ]
3
2022-02-12T19:08:50.000Z
2022-03-23T13:21:39.000Z
test/tp_link/local/message_test.exs
balexand/tp_link
1005822b7b2a4d4194a8d166b808d99c0542b987
[ "MIT" ]
null
null
null
defmodule TpLink.Local.MessageTest do use ExUnit.Case, async: true alias TpLink.Local.Message test "decode" do assert %{"system" => %{"set_relay_state" => %{"state" => 1}}} == "0PKB+Iv/mvfV75S2xaDUi/mc8JHot8Sw0aXA4tijgfKG55P21O7fot+i" |> Base.decode64!() |> Message.dec...
28.4
72
0.582746