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
859fe0938ce6faf35d8fee4185f263292875f23f
253
ex
Elixir
lib/bulmalab.ex
easink/bulmalab
eddd13d4717388fdccaeb97efaa2ac7ce723030a
[ "Apache-2.0" ]
null
null
null
lib/bulmalab.ex
easink/bulmalab
eddd13d4717388fdccaeb97efaa2ac7ce723030a
[ "Apache-2.0" ]
null
null
null
lib/bulmalab.ex
easink/bulmalab
eddd13d4717388fdccaeb97efaa2ac7ce723030a
[ "Apache-2.0" ]
null
null
null
defmodule Bulmalab do @moduledoc """ Bulmalab 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
25.3
66
0.754941
85a005144488070682f8d4cad2ad8c06d0a1aeb4
1,259
ex
Elixir
lib/ex_green_yet_core/server_check.ex
Plangora/ex_green_yet_core
7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f
[ "MIT" ]
null
null
null
lib/ex_green_yet_core/server_check.ex
Plangora/ex_green_yet_core
7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f
[ "MIT" ]
null
null
null
lib/ex_green_yet_core/server_check.ex
Plangora/ex_green_yet_core
7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f
[ "MIT" ]
null
null
null
defmodule ExGreenYetCore.ServerCheck do use GenServer import ExGreenYetCore.ServerCheckApi alias ExGreenYetCore.ServerCheckState def start_link(identifier, url, poll_time) do GenServer.start_link(__MODULE__, {identifier, url, poll_time}, name: via_tuple(identifier)) end def init({identifier, url, poll...
31.475
142
0.717236
85a010440a580e021c43d1b26da3b7d8d17b8a55
52,587
ex
Elixir
lib/plot.ex
sezaru/expyplot
17dedaed998042d96293f5912d007d5ad3d0a4df
[ "MIT" ]
null
null
null
lib/plot.ex
sezaru/expyplot
17dedaed998042d96293f5912d007d5ad3d0a4df
[ "MIT" ]
null
null
null
lib/plot.ex
sezaru/expyplot
17dedaed998042d96293f5912d007d5ad3d0a4df
[ "MIT" ]
null
null
null
defmodule Expyplot.Plot do @moduledoc """ <b>This is the end-user API for pyplot.</b> See the matplotlib.plot docs at: http://matplotlib.org/api/pyplot_api.html <b>Most of these functions are UNTESTED. I know. That's terrible. But you can test them by using them! Then, if they don't work, open an issue on t...
39.24403
164
0.665621
85a02fdfb16a0810e0cfd6eee6fe4977007b2d6c
733
ex
Elixir
phoenix/lib/mehr_schulferien_web/gettext.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/lib/mehr_schulferien_web/gettext.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/lib/mehr_schulferien_web/gettext.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
defmodule MehrSchulferienWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import MehrSchulferienWeb.Gettext # Simple translation ge...
29.32
72
0.691678
85a043167f09abd6475cd249aa95157f08955083
1,626
exs
Elixir
allergies/allergies_test.exs
henrik/xelixir
10ae9265b90dc8042a5fd1f2626d7e0648f4cb29
[ "MIT" ]
null
null
null
allergies/allergies_test.exs
henrik/xelixir
10ae9265b90dc8042a5fd1f2626d7e0648f4cb29
[ "MIT" ]
null
null
null
allergies/allergies_test.exs
henrik/xelixir
10ae9265b90dc8042a5fd1f2626d7e0648f4cb29
[ "MIT" ]
null
null
null
if System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("example.exs") else Code.load_file("allergies.exs") end ExUnit.start defmodule AllergiesTest do use ExUnit.Case, async: true test "no_allergies_at_all" do assert Allergies.list(0) == [] end test "allergic_to_just_eggs" do assert Alle...
25.809524
125
0.704182
85a065902600341af13a8f8230738c32ebc098bf
516
exs
Elixir
test/models/user_test.exs
mule/phoenix-elm-auth
6b7b3019c53673bf3b4b2b41fa3eec8f75d08947
[ "MIT" ]
1
2016-07-06T02:06:31.000Z
2016-07-06T02:06:31.000Z
test/models/user_test.exs
mule/phoenix-elm-auth
6b7b3019c53673bf3b4b2b41fa3eec8f75d08947
[ "MIT" ]
1
2017-04-07T12:58:38.000Z
2017-04-07T12:58:38.000Z
test/models/user_test.exs
mule/phoenix-elm-auth
6b7b3019c53673bf3b4b2b41fa3eec8f75d08947
[ "MIT" ]
null
null
null
defmodule PhoenixAuthKata.UserTest do use PhoenixAuthKata.ModelCase alias PhoenixAuthKata.User @valid_attrs %{password: "some content", email: "some content", crypted_password: "tsfs", display_name: "test user" } @invalid_attrs %{} test "changeset with valid attributes" do changeset = User.changeset(%U...
27.157895
119
0.734496
85a078fbe9e95e21e15da382345642454caf7d93
276
exs
Elixir
test/nickdotcom_web/views/layout_view_test.exs
nickyeager/nickdotcom
e1a0f32c44da2111c9d8b22800edeb831d893b5e
[ "MIT" ]
null
null
null
test/nickdotcom_web/views/layout_view_test.exs
nickyeager/nickdotcom
e1a0f32c44da2111c9d8b22800edeb831d893b5e
[ "MIT" ]
null
null
null
test/nickdotcom_web/views/layout_view_test.exs
nickyeager/nickdotcom
e1a0f32c44da2111c9d8b22800edeb831d893b5e
[ "MIT" ]
null
null
null
defmodule NickdotcomWeb.LayoutViewTest do use NickdotcomWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
30.666667
65
0.771739
85a08090267df2693b87788c4d758c3a0e7eb657
1,136
ex
Elixir
lib/voomex/application.ex
caktus/voomex
d9df2ef20498f0eb01e69da834bb41459784357c
[ "BSD-2-Clause" ]
null
null
null
lib/voomex/application.ex
caktus/voomex
d9df2ef20498f0eb01e69da834bb41459784357c
[ "BSD-2-Clause" ]
18
2019-11-08T19:42:18.000Z
2020-06-09T17:00:16.000Z
lib/voomex/application.ex
caktus/voomex
d9df2ef20498f0eb01e69da834bb41459784357c
[ "BSD-2-Clause" ]
null
null
null
defmodule Voomex.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ Voomex.Telemetry, Voomex.Repo, Voomex.SMP...
25.818182
68
0.68838
85a0aa04ab00134930d16edaecf4579d41338e8c
1,503
ex
Elixir
lib/cat_on_duty/employees/sentry.ex
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
3
2020-11-23T15:30:04.000Z
2020-12-01T17:11:49.000Z
lib/cat_on_duty/employees/sentry.ex
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
1
2020-12-29T09:09:03.000Z
2020-12-29T09:09:03.000Z
lib/cat_on_duty/employees/sentry.ex
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
1
2021-08-11T10:10:16.000Z
2021-08-11T10:10:16.000Z
defmodule CatOnDuty.Employees.Sentry do @moduledoc "Sentry model" use Ecto.Schema import Ecto.Changeset import CatOnDuty.Gettext alias CatOnDuty.Employees.Team @type t :: %__MODULE__{ id: pos_integer | nil, name: String.t() | nil, tg_username: String.t() | nil, on_...
30.673469
97
0.650699
85a0ab122fbcc3d29953204c48906c6683e85a49
189
exs
Elixir
test/broadway_ecto_job/producer_test.exs
lukyanov/broadway_ecto_job
686db1cd97d7fb88ca9dc8a0c4e050390286598c
[ "MIT" ]
null
null
null
test/broadway_ecto_job/producer_test.exs
lukyanov/broadway_ecto_job
686db1cd97d7fb88ca9dc8a0c4e050390286598c
[ "MIT" ]
null
null
null
test/broadway_ecto_job/producer_test.exs
lukyanov/broadway_ecto_job
686db1cd97d7fb88ca9dc8a0c4e050390286598c
[ "MIT" ]
null
null
null
defmodule BroadwayEctoJob.ProducerTest do use ExUnit.Case doctest BroadwayEctoJob.Producer test "greets the world" do assert BroadwayEctoJob.Producer.hello() == :world end end
21
53
0.772487
85a0aec17226610028cc2f587993cd2d9683f2b4
1,016
ex
Elixir
lib/oli/delivery/hierarchy/hierarchy_node.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/delivery/hierarchy/hierarchy_node.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/delivery/hierarchy/hierarchy_node.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Delivery.Hierarchy.HierarchyNode do @moduledoc """ HierarchyNode is a generic in-memory representation of a node within a hierarchy. This struct is shared across authoring and delivery and allows generalized components to work in both. A hierarchy is a single root node which contains children. Th...
42.333333
97
0.728346
85a0bd775ff6c7dc59c13596cdc94107ded208bf
10,805
ex
Elixir
lib/surface/formatter.ex
davydog187/surface_formatter
765d30a1f129aceedac85bbacd50115755869607
[ "MIT" ]
null
null
null
lib/surface/formatter.ex
davydog187/surface_formatter
765d30a1f129aceedac85bbacd50115755869607
[ "MIT" ]
null
null
null
lib/surface/formatter.ex
davydog187/surface_formatter
765d30a1f129aceedac85bbacd50115755869607
[ "MIT" ]
null
null
null
defmodule Surface.Formatter do @moduledoc "Functions for formatting Surface code snippets." alias Surface.Formatter.{Phases, Render} @typedoc """ Options that can be passed to `Surface.Formatter.format_string!/2`. - `:line_length` - Maximum line length before wrapping opening tags - `:indent` - Start...
27.634271
115
0.673207
85a119a5046b384bc8cb7f6aa5af3f5c9a621d1d
1,648
ex
Elixir
api/web/web.ex
panayi/react-phoenix-starter-kit
6615402deeac9b359954cdd8b523f7735b75eec9
[ "MIT" ]
null
null
null
api/web/web.ex
panayi/react-phoenix-starter-kit
6615402deeac9b359954cdd8b523f7735b75eec9
[ "MIT" ]
null
null
null
api/web/web.ex
panayi/react-phoenix-starter-kit
6615402deeac9b359954cdd8b523f7735b75eec9
[ "MIT" ]
null
null
null
defmodule App.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use App.Web, :controller use App.Web, :view The definitions below will be executed for every view, controller, etc, so keep them short and clean...
20.097561
88
0.651092
85a167dd76f62ffe2176b4706db932d154f53ceb
2,818
ex
Elixir
clients/data_pipelines/lib/google_api/data_pipelines/v1/model/google_cloud_datapipelines_v1_launch_template_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_pipelines/lib/google_api/data_pipelines/v1/model/google_cloud_datapipelines_v1_launch_template_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_pipelines/lib/google_api/data_pipelines/v1/model/google_cloud_datapipelines_v1_launch_template_request.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...
40.257143
237
0.724273
85a17db6d44dafc5e3a1d251e66792c3da42ff48
2,928
ex
Elixir
lib/vintage_net/interface/ifup_daemon.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/interface/ifup_daemon.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/interface/ifup_daemon.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
defmodule VintageNet.Interface.IfupDaemon do use GenServer require Logger @moduledoc """ Wrap MuonTrap.Daemon to start and stop a program based on whether the network is up Unlike MuonTrap.Daemon, the arguments are called out in the child_spec so it looks like this: ``` {VintageNet.Interface.IfupDaem...
26.142857
102
0.651981
85a1abc7446dfb1d514213f626f9d3ec980a3c2f
1,571
ex
Elixir
clients/container/lib/google_api/container/v1/model/network_policy_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/network_policy_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/network_policy_config.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...
32.061224
109
0.745385
85a1b48d1c76bee0d6a918272f369a95d6c8dc4b
339
ex
Elixir
lib/arrow_web/controllers/my_token_controller.ex
paulswartz/arrow
c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9
[ "MIT" ]
null
null
null
lib/arrow_web/controllers/my_token_controller.ex
paulswartz/arrow
c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9
[ "MIT" ]
null
null
null
lib/arrow_web/controllers/my_token_controller.ex
paulswartz/arrow
c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9
[ "MIT" ]
null
null
null
defmodule ArrowWeb.MyTokenController do use ArrowWeb, :controller alias Arrow.AuthToken @spec show(Plug.Conn.t(), map()) :: Plug.Conn.t() def show(conn, _params) do token = conn |> Plug.Conn.get_session(:arrow_username) |> AuthToken.get_or_create_token_for_user() render(conn, "index.html", token...
26.076923
96
0.705015
85a1d7bc8a22b5ae0575918334831c057e064b34
1,344
ex
Elixir
platform/target/bootstrap/configurator/captive_portal/captive_portal.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
platform/target/bootstrap/configurator/captive_portal/captive_portal.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
platform/target/bootstrap/configurator/captive_portal/captive_portal.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
1
2020-12-16T16:39:32.000Z
2020-12-16T16:39:32.000Z
defmodule Farmbot.Target.Bootstrap.Configurator.CaptivePortal do use GenServer use Farmbot.Logger @interface Application.get_env(:farmbot, :captive_portal_interface, "wlan0") @address Application.get_env(:farmbot, :captive_portal_address, "192.168.25.1") def start_link() do GenServer.start_link(__MODULE_...
32
81
0.673363
85a20f212960e463dfd292ba40ab204726b3c361
801
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20181001065043_add_full_name_and_calling_name_to_user.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/priv/repo/migrations/20181001065043_add_full_name_and_calling_name_to_user.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/priv/repo/migrations/20181001065043_add_full_name_and_calling_name_to_user.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 ...
32.04
74
0.751561
85a229cb9e42a0987f391075932d2c423acd82a5
1,764
ex
Elixir
lib/schema/helpers/fun_wrapper.ex
fiodorbaczynski/trivial_csv
5d80a260f385bf2cbbd296a5ca359c9865510317
[ "Apache-2.0" ]
20
2019-08-02T08:25:51.000Z
2021-05-18T21:28:47.000Z
lib/schema/helpers/fun_wrapper.ex
fiodorbaczynski/trivial_csv
5d80a260f385bf2cbbd296a5ca359c9865510317
[ "Apache-2.0" ]
null
null
null
lib/schema/helpers/fun_wrapper.ex
fiodorbaczynski/trivial_csv
5d80a260f385bf2cbbd296a5ca359c9865510317
[ "Apache-2.0" ]
null
null
null
defmodule DataQuacker.Schema.FunWrapper do @moduledoc false alias DataQuacker.Schema.WrappedFun alias DataQuacker.SchemaError defmacro wrap_fun(fun, expected_arity \\ nil) do arity = fun_arity(fun) args = fun_args(arity) name = random_name() maybe_assert_arity!(arity, expected_arity) quo...
23.52
96
0.632086
85a23c4a44b3000e466c743b9e05275d7b5b7a9e
1,218
exs
Elixir
config/prod.secret.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
config/prod.secret.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
config/prod.secret.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config database_url = System.get_env("DATABASE_URL") || raise """ envi...
31.230769
76
0.729064
85a2674910476fc235bd331f406d0e806fa51cd9
964
ex
Elixir
priv/perf/apps/load_test/lib/service/sleeper.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
priv/perf/apps/load_test/lib/service/sleeper.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
priv/perf/apps/load_test/lib/service/sleeper.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network 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...
30.125
81
0.736515
85a26abb64e20cc724b012ee8f0d79d0614a7cf7
1,740
ex
Elixir
apps/brain/lib/memory.ex
elicopter/core
7731dc7558dea39bd1c473ab9e512c9db9e1b2c9
[ "MIT" ]
39
2016-11-01T07:21:51.000Z
2021-02-05T20:19:02.000Z
apps/brain/lib/memory.ex
elicopter/core
7731dc7558dea39bd1c473ab9e512c9db9e1b2c9
[ "MIT" ]
null
null
null
apps/brain/lib/memory.ex
elicopter/core
7731dc7558dea39bd1c473ab9e512c9db9e1b2c9
[ "MIT" ]
null
null
null
defmodule Brain.Memory do use GenServer require Logger def init(_) do {:ok, %{}} end def start_link() do Logger.debug "Starting #{__MODULE__}..." GenServer.start_link(__MODULE__, nil, name: __MODULE__) end def handle_call({:store, data}, {from_pid, _from_reference}, state) do {:ok, file...
31.636364
106
0.611494
85a28002a75905ebac1318eb1c8ef8931325e57f
684
exs
Elixir
test/verbalex_test.exs
tylerbarker/verbalex
f0dc0a10897729256e1835ab9e8ae8dff8adac02
[ "Apache-2.0" ]
27
2019-04-25T01:53:54.000Z
2021-08-15T00:50:36.000Z
test/verbalex_test.exs
tylerbarker/verbalex
f0dc0a10897729256e1835ab9e8ae8dff8adac02
[ "Apache-2.0" ]
null
null
null
test/verbalex_test.exs
tylerbarker/verbalex
f0dc0a10897729256e1835ab9e8ae8dff8adac02
[ "Apache-2.0" ]
null
null
null
defmodule VerbalexTest do @moduledoc """ Test coverage is mostly doctests right now. Pull requests to add more are always welcome! """ use ExUnit.Case doctest Verbalex alias Verbalex, as: Vlx test "can compose the expected regex string from required functions" do assert "^(?:foo)(bar)*" == ...
25.333333
73
0.513158
85a2b2f33387b9bd4ecf61b091951caa5f983333
737
ex
Elixir
lib/better_big_canvas_web/gettext.ex
ChristianTovar/better-big-canvas
dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0
[ "MIT" ]
9
2021-02-25T19:58:34.000Z
2022-03-29T22:46:57.000Z
lib/better_big_canvas_web/gettext.ex
ChristianTovar/better-big-canvas
dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0
[ "MIT" ]
3
2021-05-28T17:40:32.000Z
2021-06-07T16:31:58.000Z
lib/better_big_canvas_web/gettext.ex
ChristianTovar/better-big-canvas
dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0
[ "MIT" ]
2
2021-02-25T19:58:39.000Z
2021-08-16T22:55:32.000Z
defmodule BetterBigCanvasWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import BetterBigCanvasWeb.Gettext # Simple translation ge...
29.48
72
0.689281
85a2cf5f9f3b2f419792c6c238ce9aa03eea98f6
1,937
exs
Elixir
test/lib/code_corps/model/stripe_connect_account_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps/model/stripe_connect_account_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps/model/stripe_connect_account_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.StripeConnectAccountTest do @moduledoc false use CodeCorps.ModelCase alias CodeCorps.StripeConnectAccount @valid_attrs %{ id_from_stripe: "abc123", tos_acceptance_date: 1_234_567 } @invalid_attrs %{} describe "create_changeset/2" do test "reports as valid when attribut...
30.746032
96
0.707279
85a2d9c30a7ad35d64ea38d399e9cca1cd6fc347
23,762
ex
Elixir
lib/elixir/lib/map.ex
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
null
null
null
defmodule Map do @moduledoc """ A set of functions for working with maps. Many functions for maps, which implement the `Enumerable` protocol, are found in the `Enum` module. Additionally, the following functions for maps are found in `Kernel`: * `map_size/1` Maps are the "go to" key-value data struct...
25.605603
98
0.576677
85a32387e0e451d0a138e1c5988ac61795231687
1,812
ex
Elixir
server/lib/taskerito_web.ex
jonatanklosko/taskerito
e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1
[ "MIT" ]
5
2020-06-18T20:31:11.000Z
2021-07-23T10:05:56.000Z
server/lib/taskerito_web.ex
jonatanklosko/taskerito
e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1
[ "MIT" ]
null
null
null
server/lib/taskerito_web.ex
jonatanklosko/taskerito
e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1
[ "MIT" ]
null
null
null
defmodule TaskeritoWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use TaskeritoWeb, :controller use TaskeritoWeb, :view The definitions below will be executed for every view, contro...
23.230769
83
0.69426
85a326cde4fb5b48a6e75af1b16df5e32204c522
401
exs
Elixir
test/app_web/views/error_view_test.exs
vsyrovat/trending-repos
b406d205fb5fd79a9207d14a5b849924e6306e07
[ "MIT" ]
2
2019-12-17T11:40:54.000Z
2019-12-22T17:15:29.000Z
test/app_web/views/error_view_test.exs
vsyrovat/trending-repos
b406d205fb5fd79a9207d14a5b849924e6306e07
[ "MIT" ]
86
2020-01-24T14:53:27.000Z
2021-05-18T19:16:30.000Z
test/app_web/views/error_view_test.exs
vsyrovat/trending-repos
b406d205fb5fd79a9207d14a5b849924e6306e07
[ "MIT" ]
1
2020-05-22T19:21:24.000Z
2020-05-22T19:21:24.000Z
defmodule AppWeb.ErrorViewTest do use AppWeb.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(AppWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do assert render_...
26.733333
88
0.723192
85a328f59d2d37dd5a16bdf2e95b33150fcf6ad9
52,363
ex
Elixir
deps/db_connection/lib/db_connection.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/db_connection/lib/db_connection.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/db_connection/lib/db_connection.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
defmodule DBConnection.Stream do defstruct [:conn, :query, :params, :opts] @type t :: %__MODULE__{conn: DBConnection.conn, query: any, params: any, opts: Keyword.t} end defimpl Enumerable, for: DBConnection.Stream do def count(_), do: {:e...
34.046164
87
0.63923
85a333db54dd3ee82609c29b54deec1404e3c0f5
2,120
ex
Elixir
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_warnings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_warnings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_warnings.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...
40
247
0.723585
85a3375bf66d80dbb538fd84e1d9fc4339bf524c
1,166
exs
Elixir
config/dev.exs
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
config/dev.exs
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
config/dev.exs
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :bloom, Bloom.Endpoint, http: [port: 4000], ...
27.116279
68
0.704117
85a3861ac3fc92bf4af5167f97de5c67760c90ee
8,351
ex
Elixir
deps/timex/lib/interval/interval.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
1
2020-01-31T10:23:37.000Z
2020-01-31T10:23:37.000Z
deps/timex/lib/interval/interval.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
null
null
null
deps/timex/lib/interval/interval.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
1
2019-11-23T12:09:14.000Z
2019-11-23T12:09:14.000Z
defmodule Timex.Interval do @moduledoc """ This module is used for creating and manipulating DateTime intervals. """ alias Timex.Duration defmodule FormatError do @moduledoc """ Thrown when an error occurs with formatting an Interval """ defexception message: "Unable to format interval!" ...
36.308696
127
0.602323
85a3868a320a961aa4e416561bcd2008206dbb19
3,888
exs
Elixir
test/mailer_test.exs
HackerExperience/HELF
16b619053eecb02c2488d51f377d2e705ea94cd5
[ "Apache-2.0" ]
6
2017-02-10T15:58:07.000Z
2018-02-25T20:34:39.000Z
test/mailer_test.exs
HackerExperience/HELF
16b619053eecb02c2488d51f377d2e705ea94cd5
[ "Apache-2.0" ]
22
2017-03-17T23:28:44.000Z
2018-02-10T04:05:04.000Z
test/mailer_test.exs
HackerExperience/HELF
16b619053eecb02c2488d51f377d2e705ea94cd5
[ "Apache-2.0" ]
4
2017-03-16T12:42:04.000Z
2020-10-19T03:03:02.000Z
defmodule HELF.MailerTest do use ExUnit.Case use Bamboo.Test alias HELF.Mailer defmodule RaiseMailer do @errors [ Bamboo.MailgunAdapter.ApiError, Bamboo.MandrillAdapter.ApiError, Bamboo.SendgridAdapter.ApiError, Bamboo.SentEmail.DeliveriesError, Bamboo.SentEmail.NoDeliveriesE...
25.246753
75
0.589249
85a3912ac80ed369e11ffc6bf8da0afa62b3e5d6
7,175
ex
Elixir
lib/glimesh/api/schema/chat_types.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
328
2020-07-23T22:13:49.000Z
2022-03-31T21:22:28.000Z
lib/glimesh/api/schema/chat_types.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
362
2020-07-23T22:38:38.000Z
2022-03-24T02:11:16.000Z
lib/glimesh/api/schema/chat_types.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
72
2020-07-23T22:50:46.000Z
2022-02-02T11:59:32.000Z
defmodule Glimesh.Api.ChatTypes do @moduledoc false use Absinthe.Schema.Notation use Absinthe.Relay.Schema.Notation, :modern import Absinthe.Resolution.Helpers alias Glimesh.Api.ChatResolver alias Glimesh.Repo alias Glimesh.Streams input_object :chat_message_input do field :message, :string end...
26.672862
98
0.646829
85a3c2dd0fbc6af264f446bae4e24e61bd6771d4
488
ex
Elixir
lib/yams.ex
rozap/yams
ab87166709af64fc34734e84589fc0d4a4f5a870
[ "MIT" ]
5
2016-11-07T11:32:28.000Z
2022-03-07T00:02:55.000Z
lib/yams.ex
rozap/yams
ab87166709af64fc34734e84589fc0d4a4f5a870
[ "MIT" ]
null
null
null
lib/yams.ex
rozap/yams
ab87166709af64fc34734e84589fc0d4a4f5a870
[ "MIT" ]
null
null
null
defmodule Yams do use Supervisor def start_link do Supervisor.start_link(__MODULE__, []) end def init(_) do children = [] supervise(children, strategy: :one_for_one) end def key do System.os_time(:nanoseconds) end @ms_factor 1000 * 1000 def key_to_ms(k) do k / @ms_factor end ...
15.25
47
0.655738
85a3c4a221a1c7b00dbdc49cf61f8df7fe574038
1,102
exs
Elixir
test/mix/tasks/visualize/funs_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
490
2019-09-07T10:33:15.000Z
2022-03-30T09:50:03.000Z
test/mix/tasks/visualize/funs_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
35
2019-09-07T10:49:25.000Z
2022-03-18T10:02:34.000Z
test/mix/tasks/visualize/funs_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
16
2019-09-08T15:09:16.000Z
2022-02-12T21:40:14.000Z
defmodule Mix.Tasks.Boundary.Visualize.FunsTest do use ExUnit.Case, async: false alias Boundary.TestProject test "produces the expected output" do Mix.shell(Mix.Shell.Quiet) Logger.disable(self()) TestProject.in_project(fn project -> File.write!( Path.join([project.path, "lib", "source...
22.04
80
0.461887
85a3c4a2a1133929caa1fc62e8a262bedd296002
132
exs
Elixir
TheLittleElixir/test/thelittleelixir_test.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
TheLittleElixir/test/thelittleelixir_test.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
TheLittleElixir/test/thelittleelixir_test.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule ThelittleelixirTest do use ExUnit.Case doctest Thelittleelixir test "the truth" do assert 1 + 1 == 2 end end
14.666667
32
0.712121
85a3d417e02b13c172b5e11bfc60f11c253b155d
105
exs
Elixir
test/flowdock_logger_test.exs
tsharju/flowdock_logger
0b35d96322ebaaff075830ff27616ca74591b6d6
[ "MIT" ]
null
null
null
test/flowdock_logger_test.exs
tsharju/flowdock_logger
0b35d96322ebaaff075830ff27616ca74591b6d6
[ "MIT" ]
null
null
null
test/flowdock_logger_test.exs
tsharju/flowdock_logger
0b35d96322ebaaff075830ff27616ca74591b6d6
[ "MIT" ]
null
null
null
defmodule FlowdockLoggerTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
13.125
31
0.67619
85a3e08224aa17910ecb1c555831a6fea42c902a
1,015
exs
Elixir
test/tx/delegate_test.exs
sgessa/dpos-ex
b2b3407fd120224b800fe755e3966556fd609e20
[ "MIT" ]
4
2018-07-10T09:39:01.000Z
2020-09-11T22:46:45.000Z
test/tx/delegate_test.exs
lwfcoin/dpos-ex
b2b3407fd120224b800fe755e3966556fd609e20
[ "MIT" ]
null
null
null
test/tx/delegate_test.exs
lwfcoin/dpos-ex
b2b3407fd120224b800fe755e3966556fd609e20
[ "MIT" ]
null
null
null
defmodule Dpos.Tx.DelegateTest do use ExUnit.Case @delegate_secret "robust swift grocery peasant forget share enable convince deputy road keep cheap" @tx %Dpos.Tx{ type: 2, amount: 0, senderPublicKey: "9d3058175acab969f41ad9b86f7a2926c74258670fe56b37c429c01fca9f2f0f", timestamp: 0, asset: %{...
29
137
0.725123
85a3e204cfe90b796969ff22337d73edb67c4272
24
exs
Elixir
v02/ch09/pipe0.edit0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch09/pipe0.edit0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch09/pipe0.edit0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
str = "ABC" IO.puts str
8
11
0.625
85a40e407ebe97fd6928ea14375d396496439b1e
1,648
ex
Elixir
lib/stormchat_web/controllers/auth_controller.ex
gautambaghel/stormchat
1882467113158e7524d02d273e1f88439cc1f152
[ "MIT" ]
null
null
null
lib/stormchat_web/controllers/auth_controller.ex
gautambaghel/stormchat
1882467113158e7524d02d273e1f88439cc1f152
[ "MIT" ]
7
2019-06-25T17:21:41.000Z
2022-02-10T12:09:08.000Z
lib/stormchat_web/controllers/auth_controller.ex
gautambaghel/stormchat
1882467113158e7524d02d273e1f88439cc1f152
[ "MIT" ]
null
null
null
defmodule StormchatWeb.AuthController do use StormchatWeb, :controller plug Ueberauth alias Stormchat.Accounts alias Stormchat.Accounts.AuthUser def callback(%{assigns: %{ueberauth_auth: auth}} = conn, _params) do auth_user_params = %{auth: auth.credentials.token, name: auth.inf...
28.413793
70
0.606796
85a45faefe13c38b926f26494da0bd4a9969e3da
8,352
ex
Elixir
lib/ring.ex
bitwalker/libring
f1eaaad48f5d1e989590b15856b07ef212a06cc9
[ "MIT" ]
181
2016-09-29T12:57:03.000Z
2022-02-12T12:50:55.000Z
lib/ring.ex
bitwalker/libring
f1eaaad48f5d1e989590b15856b07ef212a06cc9
[ "MIT" ]
26
2016-12-12T22:22:43.000Z
2021-12-15T15:52:06.000Z
lib/ring.ex
bitwalker/libring
f1eaaad48f5d1e989590b15856b07ef212a06cc9
[ "MIT" ]
22
2017-04-28T08:08:44.000Z
2022-01-27T16:18:20.000Z
defmodule HashRing do @moduledoc """ This module defines an API for creating/manipulating a hash ring. The internal data structure for the hash ring is actually a gb_tree, which provides fast lookups for a given key on the ring. - The ring is a continuum of 2^32 "points", or integer values. - Nodes are sha...
29.72242
95
0.607998
85a471313477f40cec7d8d64374409d911717eb3
1,575
ex
Elixir
lib/crew/persons/person_rel.ex
anamba/crew
c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1
[ "BSL-1.0" ]
null
null
null
lib/crew/persons/person_rel.ex
anamba/crew
c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1
[ "BSL-1.0" ]
5
2020-07-20T01:49:01.000Z
2021-09-08T00:17:04.000Z
lib/crew/persons/person_rel.ex
anamba/crew
c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1
[ "BSL-1.0" ]
null
null
null
defmodule Crew.Persons.PersonRel do use Ecto.Schema import Ecto.Changeset alias Crew.Persons.Person @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "person_rels" do belongs_to :src_person, Person field :src_label, :string belongs_to :dest_person, Person ...
23.161765
89
0.624762
85a4836dd9ffd924d5a9046b0f0edb72161bf401
4,308
ex
Elixir
lib/jerboa/client/protocol/allocate.ex
ACollectionOfAtoms/jerboa
16000d450bb60b544b5c91f0fd7540a31b6c90b8
[ "Apache-2.0" ]
14
2016-12-22T10:38:34.000Z
2021-03-11T23:20:26.000Z
lib/jerboa/client/protocol/allocate.ex
ACollectionOfAtoms/jerboa
16000d450bb60b544b5c91f0fd7540a31b6c90b8
[ "Apache-2.0" ]
94
2016-12-22T13:13:29.000Z
2021-02-10T14:22:32.000Z
lib/jerboa/client/protocol/allocate.ex
ACollectionOfAtoms/jerboa
16000d450bb60b544b5c91f0fd7540a31b6c90b8
[ "Apache-2.0" ]
6
2017-04-03T20:23:00.000Z
2022-03-06T10:14:30.000Z
defmodule Jerboa.Client.Protocol.Allocate do @moduledoc false alias Jerboa.Params alias Jerboa.Format.Body.Attribute.XORMappedAddress, as: XMA alias Jerboa.Format.Body.Attribute.XORRelayedAddress, as: XRA alias Jerboa.Format.Body.Attribute.{RequestedTransport, Lifetime, Realm, ...
36.201681
87
0.652739
85a48ee4b3a1ce427b3c4da0e36456b5cada6d62
2,207
ex
Elixir
lib/ex_unit/lib/ex_unit/server.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/ex_unit/lib/ex_unit/server.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/server.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.Server do @moduledoc false @timeout 30_000 use GenServer def start_link() do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end ## Before run API def start_load() do GenServer.cast(__MODULE__, :start_load) end def add_async_case(name) do GenServer.cast(__MODU...
23.478723
85
0.678749
85a4bcb5160ccacbfbe804cbbbff276b8ab1a696
774
ex
Elixir
lib/mastani_server/accounts/user_follower.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
lib/mastani_server/accounts/user_follower.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
lib/mastani_server/accounts/user_follower.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Accounts.UserFollower do @moduledoc false alias __MODULE__ use Ecto.Schema import Ecto.Changeset alias MastaniServer.Accounts.User @required_fields ~w(user_id follower_id)a @type t :: %UserFollower{} schema "users_followers" do belongs_to(:user, User, foreign_key: :user_id...
26.689655
84
0.745478
85a4d4ad54502fba377e12bdc87432f80e0c5617
549
ex
Elixir
token_registry/lib/token_registry_web/live/token_live/token_chart_component.ex
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
1
2021-12-18T16:17:19.000Z
2021-12-18T16:17:19.000Z
token_registry/lib/token_registry_web/live/token_live/token_chart_component.ex
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
token_registry/lib/token_registry_web/live/token_live/token_chart_component.ex
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
defmodule TokenRegistryWeb.TokenLive.TokenChartComponent do use TokenRegistryWeb, :live_component alias TokenRegistry.Registry def update(assigns, socket) do {:ok, socket |> assign(assigns) |> assign_chart } end defp assign_chart(%{assigns: %{token: token}} = socket) do data = ...
19.607143
60
0.642987
85a4eedaed6dd715ff424700d27a76e655b36eb0
137
exs
Elixir
test/example_migrations/20191026103006_rename_table.exs
ryvasquez/excellent_migrations
cc123c6f34293b84cd47b2ac63098a83d5b7ecbe
[ "MIT" ]
64
2021-11-18T17:54:04.000Z
2022-03-10T19:37:46.000Z
test/example_migrations/20191026103006_rename_table.exs
ryvasquez/excellent_migrations
cc123c6f34293b84cd47b2ac63098a83d5b7ecbe
[ "MIT" ]
8
2021-11-18T19:12:56.000Z
2022-02-15T15:03:32.000Z
test/example_migrations/20191026103006_rename_table.exs
ryvasquez/excellent_migrations
cc123c6f34293b84cd47b2ac63098a83d5b7ecbe
[ "MIT" ]
5
2021-11-22T19:04:33.000Z
2021-12-15T05:14:42.000Z
defmodule ExcellentMigrations.RenameDumplingsToNoodles do def change do rename(table("dumplings"), to: table("noodles")) end end
22.833333
57
0.766423
85a5129e6c4344d0a8b1740d235ebd08b7bd3b5a
21,577
exs
Elixir
test/phoenix/channel/channel_test.exs
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
test/phoenix/channel/channel_test.exs
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
test/phoenix/channel/channel_test.exs
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
defmodule Phoenix.Channel.ChannelTest do use ExUnit.Case, async: true alias Phoenix.PubSub alias Phoenix.Channel alias Phoenix.Socket alias Phoenix.Socket.Message alias Phoenix.Channel.Transport alias Phoenix.Transports.WebSocket alias Phoenix.Transports.LongPoller defmodule Endpoint do def __pu...
38.668459
106
0.649859
85a5232cc8b7835f2de37625231268bb6d5c4a02
374
exs
Elixir
priv/repo/migrations/20211020023325_create_supplies_table.exs
erickmp07/inmana
580d050d7d90ba80656a4f999060a25b08f8a763
[ "MIT" ]
null
null
null
priv/repo/migrations/20211020023325_create_supplies_table.exs
erickmp07/inmana
580d050d7d90ba80656a4f999060a25b08f8a763
[ "MIT" ]
null
null
null
priv/repo/migrations/20211020023325_create_supplies_table.exs
erickmp07/inmana
580d050d7d90ba80656a4f999060a25b08f8a763
[ "MIT" ]
null
null
null
defmodule Inmana.Repo.Migrations.CreateSuppliesTable do use Ecto.Migration def change do create table(:supplies) do add :description, :string add :expiration_date, :date add :responsible, :string add :restaurant_id, references(:restaurants, type: :binary_...
24.933333
74
0.612299
85a547462e49d8d5a1d07dec0208165c15ebce1e
6,866
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/flex_template_runtime_environment.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/flex_template_runtime_environment.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/flex_template_runtime_environment.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "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...
66.019231
455
0.698369
85a5518d940fd4a85a921d5bfae3e957440834d6
1,358
ex
Elixir
lib/minecraft_controller/ec2.ex
TenTakano/Minecraft_Controller
a118a6e9694da3c0fdfa9ec93872790d38f093e3
[ "MIT" ]
null
null
null
lib/minecraft_controller/ec2.ex
TenTakano/Minecraft_Controller
a118a6e9694da3c0fdfa9ec93872790d38f093e3
[ "MIT" ]
29
2021-02-13T06:54:56.000Z
2021-06-06T09:55:36.000Z
lib/minecraft_controller/ec2.ex
TenTakano/Minecraft_Controller
a118a6e9694da3c0fdfa9ec93872790d38f093e3
[ "MIT" ]
null
null
null
defmodule MinecraftController.EC2 do alias ExAws.EC2 @spec target_instance_id() :: String.t() def target_instance_id() do Application.get_env(:minecraft_controller, __MODULE__) |> Keyword.fetch!(:target_instance_id) end @spec get_instance() :: {:ok, map} | {:error, :instance_not_found} def get_ins...
25.622642
98
0.612666
85a56cba90931139e8eecfba57d462a195c58a8a
57,297
ex
Elixir
lib/db_connection.ex
tschnibo/db_connection
a0f7a1d4d527335c79a9d4f88fb8c734471b36fa
[ "Apache-2.0" ]
null
null
null
lib/db_connection.ex
tschnibo/db_connection
a0f7a1d4d527335c79a9d4f88fb8c734471b36fa
[ "Apache-2.0" ]
null
null
null
lib/db_connection.ex
tschnibo/db_connection
a0f7a1d4d527335c79a9d4f88fb8c734471b36fa
[ "Apache-2.0" ]
null
null
null
defmodule DBConnection.Stream do defstruct [:conn, :query, :params, :opts] @type t :: %__MODULE__{conn: DBConnection.conn(), query: any, params: any, opts: Keyword.t()} end defimpl Enumerable, for: DBConnection.Stream do def count(_), do: {:error, __MODULE__} def member?(_, _), do: {:error, __MODULE__} de...
33.005184
95
0.6441
85a57f1274e3bb0f812f9b88c91acd6a2bf1210d
1,989
exs
Elixir
zipper/zipper_test.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
null
null
null
zipper/zipper_test.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
null
null
null
zipper/zipper_test.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
null
null
null
if System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("example.exs") else Code.load_file("zipper.exs") end ExUnit.start defmodule ZipperTest do alias BinTree, as: BT import Zipper # A custom inspect instance purely for the tests, this makes error messages # much more readable. # # BT[value: ...
27.625
83
0.573655
85a5864026d2493f56f8403ff123defdb2ae440c
881
ex
Elixir
lib/ex_bitmex/rest/trade/index.ex
yurikoval/ex_bitmex
d9492789fb319fbdf78d90a99f7c0e40c95c1885
[ "MIT" ]
6
2019-02-13T04:05:19.000Z
2020-12-31T07:40:09.000Z
lib/ex_bitmex/rest/trade/index.ex
fremantle-industries/ex_bitmex
a901117d04eaa3d793b57cf1c82fccc12471fd0a
[ "MIT" ]
28
2021-03-29T06:46:42.000Z
2022-03-28T11:03:38.000Z
lib/ex_bitmex/rest/trade/index.ex
yurikoval/ex_bitmex
d9492789fb319fbdf78d90a99f7c0e40c95c1885
[ "MIT" ]
4
2019-05-03T21:27:10.000Z
2021-01-12T09:26:34.000Z
defmodule ExBitmex.Rest.Trade.Index do alias ExBitmex.Rest @type credentials :: ExBitmex.Credentials.t() @type params :: map @type trade :: ExBitmex.Trade.t() @type rate_limit :: ExBitmex.RateLimit.t() @type auth_error_response :: Rest.Request.auth_error_response() @path "/trade" @spec get(params) ::...
23.184211
71
0.645857
85a5877b9492298f1c7a276d358aa34be4e4cf4b
179
ex
Elixir
lib/synapse/account_data/event.ex
Voronchuk/ex_matrix_api
fab0f162c84a7e72f3df257260487a977e4134d5
[ "MIT" ]
2
2020-09-02T23:10:09.000Z
2021-03-29T09:19:15.000Z
lib/synapse/account_data/event.ex
Voronchuk/ex_matrix_api
fab0f162c84a7e72f3df257260487a977e4134d5
[ "MIT" ]
null
null
null
lib/synapse/account_data/event.ex
Voronchuk/ex_matrix_api
fab0f162c84a7e72f3df257260487a977e4134d5
[ "MIT" ]
null
null
null
defmodule ExMatrixApi.Synapse.AccountData.Event do @moduledoc """ Event related to account. """ @enforce_keys [:type] defstruct content: nil, type: nil end
17.9
50
0.670391
85a5a3037b62b43b449efbc368450725e224642e
1,327
exs
Elixir
apps/ae_backend_service/test/backend_session_test.exs
davidyuk/ae-channel-service
bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42
[ "0BSD" ]
9
2019-04-24T17:21:18.000Z
2021-07-19T16:41:33.000Z
apps/ae_backend_service/test/backend_session_test.exs
davidyuk/ae-channel-service
bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42
[ "0BSD" ]
68
2019-08-06T09:25:13.000Z
2021-03-10T11:04:41.000Z
apps/ae_backend_service/test/backend_session_test.exs
isabella232/ae-channel-service
bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42
[ "ISC" ]
6
2019-10-23T18:23:48.000Z
2022-03-06T07:02:45.000Z
defmodule AeBackendServiceTest do use ExUnit.Case doctest BackendSession # test "greets the world" do # assert AeBackendService.hello() == :world # end test "backend dosen't allow restarting running channels" do {:ok, pid} = BackendServiceManager.start_link(%{"name" => :some_name}) unique_id = 1...
39.029412
103
0.73474
85a5b4526f18aff59fd556abe6c476e46709865c
2,172
ex
Elixir
lib/game/command/recall.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/command/recall.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/command/recall.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
defmodule Game.Command.Recall do @moduledoc """ The "recall" command """ use Game.Command use Game.Zone alias Game.Player commands(["recall"], parse: false) @impl Game.Command def help(:topic), do: "Recall" def help(:short), do: "Recall to the zone's graveyard" def help(:full) do """ ...
23.354839
126
0.617403
85a5ecf56c09cd9d9d5b56e717cdd2e3a178378b
127
exs
Elixir
test/test_helper.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
test/test_helper.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
test/test_helper.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(BudgetApp.Repo, :manual) {:ok, _} = Application.ensure_all_started(:ex_machina)
25.4
55
0.771654
85a6030cd9abac03b316c8de63ad431a3ec04644
2,357
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_user_link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_user_link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_user_link.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...
40.637931
479
0.742894
85a61660d29a71c92d0f9ae23c3bd9512e0669f3
205
ex
Elixir
gateway/lib/mnesia/uninstall.ex
xonnect/server-ce
7ec2e689a19098a17dfc5eaf190d56f29fb45263
[ "BSD-2-Clause" ]
null
null
null
gateway/lib/mnesia/uninstall.ex
xonnect/server-ce
7ec2e689a19098a17dfc5eaf190d56f29fb45263
[ "BSD-2-Clause" ]
null
null
null
gateway/lib/mnesia/uninstall.ex
xonnect/server-ce
7ec2e689a19098a17dfc5eaf190d56f29fb45263
[ "BSD-2-Clause" ]
null
null
null
defmodule Mix.Tasks.UninstallMnesia do use Mix.Task alias Mnesia.Cache, as: Cache use Cache def run(_) do Amnesia.start Cache.destroy Amnesia.stop Amnesia.Schema.destroy end end
15.769231
38
0.707317
85a63ce4b30cb3a67fe9dd03787e05d2accfeda7
1,768
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/user_rewarded_content_targeting_option_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/display_video/lib/google_api/display_video/v1/model/user_rewarded_content_targeting_option_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/display_video/lib/google_api/display_video/v1/model/user_rewarded_content_targeting_option_details.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
203
0.762443
85a655e29e10e2de5176dcb189b6671c2eafbe81
829
exs
Elixir
episode16/todo/test/todo/list_test.exs
paulfioravanti/learn_elixir
8424b1a7a89cb9fd1dacb85bcca487601958b8fa
[ "MIT" ]
null
null
null
episode16/todo/test/todo/list_test.exs
paulfioravanti/learn_elixir
8424b1a7a89cb9fd1dacb85bcca487601958b8fa
[ "MIT" ]
null
null
null
episode16/todo/test/todo/list_test.exs
paulfioravanti/learn_elixir
8424b1a7a89cb9fd1dacb85bcca487601958b8fa
[ "MIT" ]
null
null
null
defmodule Todo.ListTest do use ExUnit.Case alias Todo.{List, Item, Cache} setup do {:ok, list} = List.start_link("Home") on_exit fn -> Cache.clear end {:ok, list: list} end test ".items returns the todos on the list", %{list: list} do assert List.items(list) == [] end test ...
21.25641
64
0.626055
85a6601e2cbdeac1b6043c0871fba99a6c17a553
462
ex
Elixir
lib/mole/application.ex
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
1
2020-07-15T14:39:10.000Z
2020-07-15T14:39:10.000Z
lib/mole/application.ex
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
59
2018-11-05T23:09:10.000Z
2020-07-11T20:44:14.000Z
lib/mole/application.ex
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
null
null
null
defmodule Mole.Application do @moduledoc false use Application def start(_type, _args) do children = [ Mole.Repo, MoleWeb.Endpoint, {Mole.GameplayServer, %{}}, {Mole.Content.SurveyServer, %{}} ] opts = [strategy: :one_for_one, name: Mole.Supervisor] Supervisor.start_link...
20.086957
58
0.666667
85a664e3a9bf3bc3fb712f6a4e7fd8a0989ab926
228
exs
Elixir
test/hobot/plugin/adapter/twitter_streaming_test.exs
niku/hobot_plugin_adapter_twitter_streaming
ce73f1ed79497d55b0024a239c1ff181ddd2f4e3
[ "MIT" ]
null
null
null
test/hobot/plugin/adapter/twitter_streaming_test.exs
niku/hobot_plugin_adapter_twitter_streaming
ce73f1ed79497d55b0024a239c1ff181ddd2f4e3
[ "MIT" ]
null
null
null
test/hobot/plugin/adapter/twitter_streaming_test.exs
niku/hobot_plugin_adapter_twitter_streaming
ce73f1ed79497d55b0024a239c1ff181ddd2f4e3
[ "MIT" ]
null
null
null
defmodule Hobot.Plugin.Adapter.TwitterStreamingTest do use ExUnit.Case doctest Hobot.Plugin.Adapter.TwitterStreaming test "greets the world" do assert Hobot.Plugin.Adapter.TwitterStreaming.hello() == :world end end
25.333333
66
0.785088
85a67a6b7500ed2cdda146c849d74a7f11018f90
307
exs
Elixir
test/tesla/mock/global_a_test.exs
brenomaia/tesla
c1e0f2d031eb87a207db33333b8d4afc58384e87
[ "MIT" ]
1
2022-01-22T16:59:48.000Z
2022-01-22T16:59:48.000Z
test/tesla/mock/global_a_test.exs
brenomaia/tesla
c1e0f2d031eb87a207db33333b8d4afc58384e87
[ "MIT" ]
1
2019-10-25T19:27:33.000Z
2019-10-25T19:27:33.000Z
test/tesla/mock/global_a_test.exs
brenomaia/tesla
c1e0f2d031eb87a207db33333b8d4afc58384e87
[ "MIT" ]
1
2020-04-04T03:19:50.000Z
2020-04-04T03:19:50.000Z
defmodule Tesla.Mock.GlobalATest do use ExUnit.Case, async: false setup_all do Tesla.Mock.mock_global(fn _env -> %Tesla.Env{status: 200, body: "AAA"} end) :ok end test "mock get request" do assert {:ok, %Tesla.Env{} = env} = MockClient.get("/") assert env.body == "AAA" end end
20.466667
79
0.641694
85a697fbaa6c1e6f7f7f164713130878c0c93d55
1,790
ex
Elixir
lib/drax/or_set.ex
keathley/drax
a2b37aefcebe694c0dcbd4e059bafddb500314ae
[ "MIT" ]
10
2019-02-28T05:52:15.000Z
2021-11-08T15:19:06.000Z
lib/drax/or_set.ex
keathley/drax
a2b37aefcebe694c0dcbd4e059bafddb500314ae
[ "MIT" ]
null
null
null
lib/drax/or_set.ex
keathley/drax
a2b37aefcebe694c0dcbd4e059bafddb500314ae
[ "MIT" ]
null
null
null
defmodule Drax.OrSet do @moduledoc """ An or-set based CRDT. Adds take precedence over deletions during merges. """ @opaque pair :: {MapSet.t, MapSet.t} @opaque element :: term() @opaque t :: %{optional(element()) => pair()} def new, do: %{} def new(list), do: Enum.reduce(list, new(), fn (e, set) -> a...
22.948718
79
0.622905
85a6f4398514e44b0c64a2971f8c18c3205b8cde
7,049
exs
Elixir
test/lib/deli/controller/systemctl_test.exs
rodrigues/deli
a5bdb3df6eb2a943069fa2e4658493f90730bd90
[ "MIT" ]
4
2019-01-30T11:51:44.000Z
2019-10-14T02:38:26.000Z
test/lib/deli/controller/systemctl_test.exs
rodrigues/deli
a5bdb3df6eb2a943069fa2e4658493f90730bd90
[ "MIT" ]
null
null
null
test/lib/deli/controller/systemctl_test.exs
rodrigues/deli
a5bdb3df6eb2a943069fa2e4658493f90730bd90
[ "MIT" ]
null
null
null
defmodule Deli.Controller.SystemctlTest do use DeliCase, async: true alias Deli.Controller.Systemctl setup do put_config(:__system_handler__, SystemStub) end describe "start_host/2" do property "starts host" do check all app <- app(), env <- env(), host <- host(...
24.306897
67
0.466024
85a7133cabbad13b775d10921b92bbba1488f53f
11,042
ex
Elixir
lib/session/session.ex
verrchu/james
266ad1bc81afe239b962a9f8106fa695b237dcb1
[ "MIT" ]
null
null
null
lib/session/session.ex
verrchu/james
266ad1bc81afe239b962a9f8106fa695b237dcb1
[ "MIT" ]
null
null
null
lib/session/session.ex
verrchu/james
266ad1bc81afe239b962a9f8106fa695b237dcb1
[ "MIT" ]
null
null
null
defmodule James.Session.Context do use TypedStruct alias __MODULE__ alias James.Reminder typedstruct do field(:chat_id, pos_integer(), enforce: true) field(:conn, Mint.Http.t(), enforce: true) field(:reminder, Reminder.t()) field(:timer, reference()) end def new(chat_id, conn) do %Con...
29.843243
118
0.639649
85a719e78ef384deaf5aa8a78e9f9e0f22d847ae
1,719
ex
Elixir
lib/mix/lib/mix/dep/umbrella.ex
elkinsd/elixir
810965e193cb57b82363e7c0c97b719743b7964f
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/umbrella.ex
elkinsd/elixir
810965e193cb57b82363e7c0c97b719743b7964f
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/umbrella.ex
elkinsd/elixir
810965e193cb57b82363e7c0c97b719743b7964f
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Dep.Umbrella do @moduledoc false @doc """ Gets all umbrella dependencies in unloaded format. """ def unloaded do config = Mix.Project.config if apps_path = config[:apps_path] do paths = Path.wildcard(Path.join(apps_path, "*/mix.exs")) |> Enum.map(&Path.dirname/1) build = Mi...
26.045455
91
0.609657
85a730fb1425292e5a83bf9c7c70a8a99472b896
14,986
ex
Elixir
lib/elixir/lib/record/deprecated.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/elixir/lib/record/deprecated.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/record/deprecated.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
defmodule Record.Deprecated do @moduledoc false def defrecord(name, fields, opts) do block = Keyword.get(opts, :do, nil) record_check!(fields) quote do unquoted_fields = unquote(fields) defmodule unquote(name) do import Record.DSL @record_fields [] @record_types ...
28.436433
128
0.618244
85a730fbdee8d055b8d6d5d8ad507cda55998a0f
8,289
ex
Elixir
lib/sanbase_web/graphql/resolvers/clickhouse_resolver.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/resolvers/clickhouse_resolver.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/resolvers/clickhouse_resolver.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.Resolvers.ClickhouseResolver do import Absinthe.Resolution.Helpers, only: [on_load: 2] import Sanbase.DateTimeUtils, only: [round_datetime: 1] import Sanbase.Utils.ErrorHandling, only: [handle_graphql_error: 3] alias Sanbase.Model.Project alias SanbaseWeb.Graphql.SanbaseDataloade...
33.023904
98
0.636868
85a75837d996f1fdf9985f9051c70db1a4745047
3,679
ex
Elixir
clients/civic_info/lib/google_api/civic_info/v2/model/postal_address.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/civic_info/lib/google_api/civic_info/v2/model/postal_address.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/civic_info/lib/google_api/civic_info/v2/model/postal_address.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.038095
77
0.677086
85a758449f5c5cd40168d6d714325c5a0a5ce9eb
1,563
exs
Elixir
test/socket/web/socket_handler_test.exs
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
null
null
null
test/socket/web/socket_handler_test.exs
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
null
null
null
test/socket/web/socket_handler_test.exs
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
null
null
null
defmodule Socket.Web.SocketHandlerTest do use Grapevine.DataCase alias Socket.RateLimit alias Socket.Web.SocketHandler alias Socket.Web.State describe "incoming messages are rate limited globally" do test "records current rate of send" do state = setup_state(%RateLimit{limit: 10}) message =...
30.057692
97
0.646193
85a7753343442721fe0928f98fab96a82a85aaba
431
ex
Elixir
lib/supervisor.ex
wasnotrice/clover
d0e37938bea3ddb8b5ff9d32b8b6d76d461ad64b
[ "Apache-2.0" ]
2
2018-10-17T17:12:33.000Z
2021-02-09T03:23:58.000Z
lib/supervisor.ex
wasnotrice/clover
d0e37938bea3ddb8b5ff9d32b8b6d76d461ad64b
[ "Apache-2.0" ]
8
2018-10-15T19:17:17.000Z
2018-10-23T20:07:07.000Z
lib/supervisor.ex
wasnotrice/clover
d0e37938bea3ddb8b5ff9d32b8b6d76d461ad64b
[ "Apache-2.0" ]
null
null
null
defmodule Clover.Supervisor do @moduledoc false use Supervisor def start_link(robot_supervisor, opts) do Supervisor.start_link(__MODULE__, robot_supervisor, opts) end def init(robot_supervisor) do children = [ {Registry, keys: :unique, name: Clover.Registry}, {DynamicSupervisor, name: ro...
23.944444
73
0.728538
85a7b42cef36b434e1b7ce11d84c39a259ce31b3
201
ex
Elixir
lib/todotin.ex
matin-nayob/todotin
8f356118a7197ef9276ce3fa8437de1d03c356f9
[ "Unlicense" ]
null
null
null
lib/todotin.ex
matin-nayob/todotin
8f356118a7197ef9276ce3fa8437de1d03c356f9
[ "Unlicense" ]
null
null
null
lib/todotin.ex
matin-nayob/todotin
8f356118a7197ef9276ce3fa8437de1d03c356f9
[ "Unlicense" ]
null
null
null
defmodule Todotin do @moduledoc """ Documentation for `Todotin`. """ @doc """ Hello world. ## Examples iex> Todotin.hello() :world """ def hello do :world end end
10.578947
30
0.557214
85a7b8e65f9a6cfe8992583a85cfc582c87acb96
3,221
exs
Elixir
test/messaging_test.exs
workpathco/firebase-admin-ex
83305a4bfcc5b1cc7b692eee9d4c93fa080759f2
[ "MIT" ]
38
2018-05-29T14:22:03.000Z
2021-11-16T11:33:05.000Z
test/messaging_test.exs
workpathco/firebase-admin-ex
83305a4bfcc5b1cc7b692eee9d4c93fa080759f2
[ "MIT" ]
8
2018-12-05T02:41:12.000Z
2020-06-24T18:41:21.000Z
test/messaging_test.exs
workpathco/firebase-admin-ex
83305a4bfcc5b1cc7b692eee9d4c93fa080759f2
[ "MIT" ]
22
2018-11-21T03:10:07.000Z
2022-02-18T01:45:14.000Z
defmodule FirebaseAdminEx.MessagingTest do use ExUnit.Case import Mock alias FirebaseAdminEx.Request alias FirebaseAdminEx.Messaging alias FirebaseAdminEx.RequestMock alias FirebaseAdminEx.Messaging.Message alias FirebaseAdminEx.Messaging.WebMessage.Config, as: WebMessageConfig alias FirebaseAdminEx.Me...
27.767241
93
0.526234
85a7c0b22b521d5e6fa6550c16fc340297558f51
2,213
ex
Elixir
lib/creep/packet/publish.ex
ConnorRigby/creep
91d503187fda50b20788244487ca7d412373893c
[ "ISC" ]
13
2019-09-21T04:48:09.000Z
2022-01-26T13:13:03.000Z
lib/creep/packet/publish.ex
ConnorRigby/creep
91d503187fda50b20788244487ca7d412373893c
[ "ISC" ]
null
null
null
lib/creep/packet/publish.ex
ConnorRigby/creep
91d503187fda50b20788244487ca7d412373893c
[ "ISC" ]
1
2020-03-03T16:50:42.000Z
2020-03-03T16:50:42.000Z
defmodule Creep.Packet.Publish do alias Creep.Packet.Publish @type t() :: %Publish{ dup: boolean(), qos: 0..2, retain: boolean(), topic: String.t(), payload: binary(), packet_id: nil | integer() } defstruct [ :dup, :qos, :retain, ...
21.696078
94
0.52056
85a7c8a3bb6d074d020f9973e1f1b5270e19d55e
3,084
ex
Elixir
clients/os_config/lib/google_api/os_config/v1/model/patch_instance_filter.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/os_config/lib/google_api/os_config/v1/model/patch_instance_filter.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/os_config/lib/google_api/os_config/v1/model/patch_instance_filter.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...
51.4
366
0.723735
85a7d79fb798556751d7d51491f16a8c302a4937
997
exs
Elixir
test/cli_test.exs
thebigredgeek/issuehub
953f8fe36bebf7a2d58d2c387d682446681f06c8
[ "MIT" ]
null
null
null
test/cli_test.exs
thebigredgeek/issuehub
953f8fe36bebf7a2d58d2c387d682446681f06c8
[ "MIT" ]
null
null
null
test/cli_test.exs
thebigredgeek/issuehub
953f8fe36bebf7a2d58d2c387d682446681f06c8
[ "MIT" ]
null
null
null
defmodule Issuehub.CLI.Test do use ExUnit.Case doctest Issuehub import Issuehub.CLI, only: [ parse_args: 1, sort_into_ascending_order: 1 ] test ":help returned by option parsing with -h and --help options" do assert parse_args(["-h", "anything"]) == :help assert p...
31.15625
77
0.627884
85a7fc778378183416d6cb24195ec04aa66974f7
5,825
ex
Elixir
lib/bson/types.ex
reetou/elixir-mongodb-driver
b17b8fa337a3fdea783bbb991984f93a4848b652
[ "Apache-2.0" ]
null
null
null
lib/bson/types.ex
reetou/elixir-mongodb-driver
b17b8fa337a3fdea783bbb991984f93a4848b652
[ "Apache-2.0" ]
null
null
null
lib/bson/types.ex
reetou/elixir-mongodb-driver
b17b8fa337a3fdea783bbb991984f93a4848b652
[ "Apache-2.0" ]
null
null
null
defmodule BSON.Binary do @moduledoc """ Represents BSON binary type """ @type t :: %__MODULE__{ binary: binary, subtype: :generic | :function | :binary_old | :uuid_old | :uuid | :md5 | 0x80..0xFF } defstruct [binary: nil, subtype: :generic] defimpl Inspect do def inspect(%BSON.Binary{binary:...
26.477273
194
0.588326
85a83952ebdd24d2f1cd85bd5d681e3a700eb795
1,363
ex
Elixir
lib/web/controllers/profile_controller.ex
rozerosie/heycake
d080531705c0402fa53696d02307d6c08d25a60a
[ "MIT" ]
1
2020-06-03T07:45:17.000Z
2020-06-03T07:45:17.000Z
lib/web/controllers/profile_controller.ex
rozerosie/heycake
d080531705c0402fa53696d02307d6c08d25a60a
[ "MIT" ]
6
2021-06-17T23:13:19.000Z
2021-08-31T21:15:21.000Z
lib/web/controllers/profile_controller.ex
rozerosie/heycake
d080531705c0402fa53696d02307d6c08d25a60a
[ "MIT" ]
2
2020-06-03T22:08:06.000Z
2022-03-11T22:13:36.000Z
defmodule Web.ProfileController do use Web, :controller alias HeyCake.Users def show(conn, _params) do %{current_user: user} = conn.assigns conn |> assign(:user, user) |> render("show.html") end def edit(conn, _params) do %{current_user: user} = conn.assigns conn |> assign(:us...
23.912281
78
0.582539
85a88eb3ef06eed1aaf3716a025e63a97a83ee53
382
ex
Elixir
lib/request.ex
Harrisonl/rstwitter
8e112dece45747506497a6f3254f6feeb084a6a0
[ "MIT" ]
null
null
null
lib/request.ex
Harrisonl/rstwitter
8e112dece45747506497a6f3254f6feeb084a6a0
[ "MIT" ]
null
null
null
lib/request.ex
Harrisonl/rstwitter
8e112dece45747506497a6f3254f6feeb084a6a0
[ "MIT" ]
null
null
null
defmodule RsTwitter.Request do @moduledoc """ Keeps request data """ @enforce_keys [:endpoint] defstruct endpoint: nil, method: :get, parameters: %{}, credentials: nil, version: "1.1" @type t :: %RsTwitter.Request{ endpoint: String.t(), method: atom, parameters: map(), ...
25.466667
90
0.604712
85a890be36a031b013391d9256c91b7cf5f55e61
8,623
exs
Elixir
test/vintage_net/route/calculator_test.exs
mnishiguchi/vintage_net
b2c9848c15d1e72f142981e00186b314d47647d7
[ "Apache-2.0" ]
null
null
null
test/vintage_net/route/calculator_test.exs
mnishiguchi/vintage_net
b2c9848c15d1e72f142981e00186b314d47647d7
[ "Apache-2.0" ]
null
null
null
test/vintage_net/route/calculator_test.exs
mnishiguchi/vintage_net
b2c9848c15d1e72f142981e00186b314d47647d7
[ "Apache-2.0" ]
null
null
null
defmodule VintageNet.Route.CalculatorTest do use ExUnit.Case alias VintageNet.Interface.Classification alias VintageNet.Route.{Calculator, InterfaceInfo} doctest Calculator test "no interfaces" do prioritization = Classification.default_prioritization() state = Calculator.init() assert {%{}, [...
34.083004
90
0.513278
85a8b4906e055778a6e9714ea3f743f87ec004e6
1,926
exs
Elixir
programming/exercism/elixir/secret-handshake/secret_handshake_test.exs
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
programming/exercism/elixir/secret-handshake/secret_handshake_test.exs
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
programming/exercism/elixir/secret-handshake/secret_handshake_test.exs
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("secret_handshake.exs", __DIR__) end ExUnit.start() ExUnit.configure(trace: true, exclude: :pending) defmodule SecretHandshakeTest do use ExUnit.Case describe "Create a handshake for a number" do # @tag :pending test "wink for 1" do #...
24.379747
96
0.624611
85a8b6c4bd977cf1fe5f40286ffc64bc1416bc18
1,471
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/log_config_data_access_options.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/compute/lib/google_api/compute/v1/model/log_config_data_access_options.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/log_config_data_access_options.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...
31.297872
106
0.738953
85a8b76dfb14108f84c68dbd4c8689196139130a
2,408
exs
Elixir
deps/phoenix/priv/templates/phoenix.gen.json/controller_test.exs
dmitrinesterenko/sample_phoenix_ecs
d6b94f35680163302e372cf30c70d3e409b0c9b1
[ "MIT" ]
1
2019-06-11T20:22:21.000Z
2019-06-11T20:22:21.000Z
deps/phoenix/priv/templates/phoenix.gen.json/controller_test.exs
dmitrinesterenko/sample_phoenix_ecs
d6b94f35680163302e372cf30c70d3e409b0c9b1
[ "MIT" ]
null
null
null
deps/phoenix/priv/templates/phoenix.gen.json/controller_test.exs
dmitrinesterenko/sample_phoenix_ecs
d6b94f35680163302e372cf30c70d3e409b0c9b1
[ "MIT" ]
null
null
null
defmodule <%= module %>ControllerTest do use <%= base %>.ConnCase alias <%= module %> @valid_attrs <%= inspect params %> @invalid_attrs %{} setup %{conn: conn} do {:ok, conn: put_req_header(conn, "accept", "application/json")} end test "lists all entries on index", %{conn: conn} do conn = get c...
39.47541
106
0.60299
85a8ca2a8a4950f2acac7d2b950b7d4bf59211d1
2,225
ex
Elixir
test/support/factory.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
test/support/factory.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
1
2021-04-03T09:29:31.000Z
2021-04-03T09:29:31.000Z
test/support/factory.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
defmodule Console.Factory do import Plug.Conn use ExMachina.Ecto, repo: Console.Repo alias Console.Organizations alias Console.Organizations.Organization alias Console.ApiKeys.ApiKey alias Console.Labels.Label alias Console.Labels.DevicesLabels alias Console.Labels.ChannelsLabels alias Console.Channe...
23.421053
92
0.637753
85a8d8aa87551e915480958d0f12b90446c2860b
15,042
exs
Elixir
test/chat_api/customers_test.exs
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
test/chat_api/customers_test.exs
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
test/chat_api/customers_test.exs
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
defmodule ChatApi.CustomersTest do use ChatApi.DataCase, async: true import ChatApi.Factory alias ChatApi.Customers describe "customers" do alias ChatApi.Customers.Customer @update_attrs %{ first_seen: ~D[2020-01-01], last_seen: ~D[2020-01-02], name: "Test User", email: "user@...
39.07013
461
0.664606
85a913ade9bcea844811d6bda870ed4e967672ac
1,161
exs
Elixir
mix.exs
amalbuquerque/elixir_keeb_ui
d203ccc128547668febd13a35d9472e5b4b3151a
[ "MIT" ]
3
2020-07-07T15:57:55.000Z
2021-08-12T05:09:38.000Z
mix.exs
amalbuquerque/elixir_keeb_ui
d203ccc128547668febd13a35d9472e5b4b3151a
[ "MIT" ]
3
2020-09-28T20:53:30.000Z
2021-08-31T20:41:04.000Z
mix.exs
amalbuquerque/elixir_keeb_ui
d203ccc128547668febd13a35d9472e5b4b3151a
[ "MIT" ]
1
2021-07-16T13:49:09.000Z
2021-07-16T13:49:09.000Z
defmodule ElixirKeeb.UI.MixProject do use Mix.Project def project do [ app: :elixir_keeb_ui, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, deps: deps() ] ...
25.23913
61
0.583979
85a92b5334494259ea4dd56fdcd60916e6fa08ca
1,432
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/resource_annotation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/resource_annotation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/resource_annotation.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...
30.468085
94
0.740922
85a92efdb03ce8e2c94950c2f16d439b8b3353a0
1,827
exs
Elixir
rel/config.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
37
2018-07-13T14:08:16.000Z
2021-04-09T15:00:22.000Z
rel/config.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
9
2018-07-16T15:24:39.000Z
2021-09-01T14:21:20.000Z
rel/config.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
3
2018-10-05T20:19:25.000Z
2019-12-05T00:30:01.000Z
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # T...
32.052632
81
0.726327
85a92fb7ebdc7bb740e2099cdca48831874ec6df
589
ex
Elixir
lib/prm/divisions/division.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
1
2017-07-27T16:03:28.000Z
2017-07-27T16:03:28.000Z
lib/prm/divisions/division.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
lib/prm/divisions/division.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
defmodule PRM.Divisions.Division do @moduledoc false use Ecto.Schema @primary_key {:id, :binary_id, autogenerate: true} schema "divisions" do field :email, :string field :external_id, :string field :mountain_group, :boolean field :name, :string field :addresses, {:array, :map} field :p...
24.541667
71
0.684211
85a9517a2d425c55384526d6c7fe60e1a518de0c
2,001
ex
Elixir
clients/container/lib/google_api/container/v1/model/monitoring_config.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/monitoring_config.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/monitoring_config.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...
39.235294
185
0.75912
85a9522178720e69b64a50ec206bb2b6a8b25d0e
804
ex
Elixir
lib/rocketpay_web/views/accounts_view.ex
RafaelVsc/phx-rocketpay
91435f0539a961691394809058b97a4e1b58fa84
[ "RSA-MD" ]
null
null
null
lib/rocketpay_web/views/accounts_view.ex
RafaelVsc/phx-rocketpay
91435f0539a961691394809058b97a4e1b58fa84
[ "RSA-MD" ]
null
null
null
lib/rocketpay_web/views/accounts_view.ex
RafaelVsc/phx-rocketpay
91435f0539a961691394809058b97a4e1b58fa84
[ "RSA-MD" ]
null
null
null
defmodule RocketpayWeb.AccountsView do alias Rocketpay.Account alias Rocketpay.Accounts.Transaction.Response, as: TransactionResponse def render("update.json", %{account: %Account{id: account_id, balance: balance}}) do %{ message: "Ballance changed successfully", account: %{ id: account_...
25.125
125
0.624378
85a99f85ba42a60c40a6f9901119fde7caa228b1
2,285
ex
Elixir
phoenix/eiga/lib/eiga_web.ex
defndaines/eiga
89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8
[ "Apache-2.0" ]
null
null
null
phoenix/eiga/lib/eiga_web.ex
defndaines/eiga
89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8
[ "Apache-2.0" ]
2
2016-03-10T03:04:11.000Z
2017-02-11T17:43:44.000Z
phoenix/eiga/lib/eiga_web.ex
defndaines/eiga
89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8
[ "Apache-2.0" ]
null
null
null
defmodule EigaWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use EigaWeb, :controller use EigaWeb, :view The definitions below will be executed for every view, controller, etc, so k...
22.184466
81
0.674398
85a9a26799e3583cc570563e496831423190659a
3,621
ex
Elixir
lib/live_beats/github.ex
dsdshcym/live_beats
554c97fde490b75cf1868e152a73f4066d8470b6
[ "MIT" ]
547
2022-02-02T14:11:31.000Z
2022-03-31T12:34:03.000Z
lib/live_beats/github.ex
dsdshcym/live_beats
554c97fde490b75cf1868e152a73f4066d8470b6
[ "MIT" ]
24
2022-02-02T14:11:36.000Z
2022-02-23T20:14:43.000Z
lib/live_beats/github.ex
dsdshcym/live_beats
554c97fde490b75cf1868e152a73f4066d8470b6
[ "MIT" ]
63
2022-02-02T15:59:36.000Z
2022-03-23T05:30:43.000Z
defmodule LiveBeats.Github do def authorize_url() do state = random_string() "https://github.com/login/oauth/authorize?client_id=#{client_id()}&state=#{state}&scope=user:email" end def exchange_access_token(opts) do code = Keyword.fetch!(opts, :code) state = Keyword.fetch!(opts, :state) stat...
27.853846
103
0.554267
85a9b236bbf6fb181fbe2e7775fa2bd198a13de6
2,028
ex
Elixir
spec/output/generator_spec_elixir/enum.x/MyXDR_generated.ex
leighmcculloch/stellar--xdrgen
1366be849ffff6c39054700b2ed4e1fe4a9cd18e
[ "Apache-2.0" ]
null
null
null
spec/output/generator_spec_elixir/enum.x/MyXDR_generated.ex
leighmcculloch/stellar--xdrgen
1366be849ffff6c39054700b2ed4e1fe4a9cd18e
[ "Apache-2.0" ]
null
null
null
spec/output/generator_spec_elixir/enum.x/MyXDR_generated.ex
leighmcculloch/stellar--xdrgen
1366be849ffff6c39054700b2ed4e1fe4a9cd18e
[ "Apache-2.0" ]
null
null
null
defmodule MyXDR do @moduledoc """ Automatically generated by xdrgen DO NOT EDIT or your changes may be overwritten Target implementation: exdr at https://hex.pm/packages/exdr """ use XDR.Base comment ~S""" === xdr source ============================================================ enum Message...
22.043478
78
0.398422
85a9d3868020a9492595ac0be3f7d9831fbbcb42
82
exs
Elixir
test/wong_bejo_web/views/page_view_test.exs
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
test/wong_bejo_web/views/page_view_test.exs
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
test/wong_bejo_web/views/page_view_test.exs
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
defmodule WongBejoWeb.PageViewTest do use WongBejoWeb.ConnCase, async: true end
20.5
39
0.829268