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
b23bfec0e3c72e3eb152a6885f27f4944de1fafc
5,964
ex
Elixir
lib/slugy.ex
renanvy/slugy
ca29045965cc37ffa43381e715ef6988f62bc47d
[ "MIT" ]
null
null
null
lib/slugy.ex
renanvy/slugy
ca29045965cc37ffa43381e715ef6988f62bc47d
[ "MIT" ]
null
null
null
lib/slugy.ex
renanvy/slugy
ca29045965cc37ffa43381e715ef6988f62bc47d
[ "MIT" ]
null
null
null
defmodule Slugy do @moduledoc ~S""" A Phoenix library to generate slug for your schema fields ## Examples Let's suppose we have a `Post` schema and we want to generate a slug from `title` field and save it to the `slug` field. To achieve that we need to call `slugify/2` following the changeset pipeline passin...
28.951456
289
0.640174
b23c01f2f67c1a07fb351dcd0f2a8199687d5c81
6,807
ex
Elixir
apps/castles_game/lib/castles_game/game.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
apps/castles_game/lib/castles_game/game.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
apps/castles_game/lib/castles_game/game.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
defmodule CastlesGame.Game do use GenServer require Logger def start_link(game_id) do GenServer.start_link(__MODULE__, [game_id]) end def connect(game, data) do GenServer.call(game, {:connect, data}) end def player_defence_ready(game, defences) do GenServer.call(game, {:player_defence_ready...
25.686792
98
0.637285
b23c4b160d284ecc943cc521ae10f919dd32016b
1,554
ex
Elixir
lib/ex_money_web/controllers/callbacks/interactive_callback_controller.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
184
2015-11-23T20:51:50.000Z
2022-03-30T01:01:39.000Z
lib/ex_money_web/controllers/callbacks/interactive_callback_controller.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
15
2015-11-26T16:00:20.000Z
2018-05-25T20:13:39.000Z
lib/ex_money_web/controllers/callbacks/interactive_callback_controller.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
21
2015-11-26T21:34:40.000Z
2022-03-26T02:56:42.000Z
defmodule ExMoney.Web.Callbacks.InteractiveCallbackController do use ExMoney.Web, :controller require Logger alias ExMoney.{Repo, Login, Web.Plugs} plug Plugs.SetUser plug Plugs.SetLogin def interactive(conn, params) do stage = params["data"]["stage"] html = params["data"]["html"] interactiv...
29.320755
99
0.702059
b23c803ed6268b206dc8db4d173129effeb1cb3f
2,324
exs
Elixir
integration_test/cases/browser/fill_in_test.exs
carl-al/wallaby
a4c9811902370b15db17fc62d451035ee7464eea
[ "MIT" ]
1
2019-01-30T12:08:17.000Z
2019-01-30T12:08:17.000Z
integration_test/cases/browser/fill_in_test.exs
carl-al/wallaby
a4c9811902370b15db17fc62d451035ee7464eea
[ "MIT" ]
2
2019-04-10T08:23:27.000Z
2021-01-25T16:37:23.000Z
integration_test/cases/browser/fill_in_test.exs
carl-al/wallaby
a4c9811902370b15db17fc62d451035ee7464eea
[ "MIT" ]
1
2019-01-29T16:03:55.000Z
2019-01-29T16:03:55.000Z
defmodule Wallaby.Integration.Browser.FillInTest do use Wallaby.Integration.SessionCase, async: true setup %{session: session} do page = session |> visit("forms.html") {:ok, %{page: page}} end test "fill_in/2 accepts a query", %{page: page} do page |> fill_in(Query.text_field("nam...
29.05
81
0.626506
b23c9f32a11dca94a2a8b4206174f1c2ce8ebd15
892
ex
Elixir
clients/firebase/lib/google_api/firebase/v1beta1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/firebase/lib/google_api/firebase/v1beta1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/firebase/lib/google_api/firebase/v1beta1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.037037
74
0.761211
b23ca832fe2f41bbad9c0ea83a639b4ae8c4897d
1,465
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/string_list.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/string_list.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/string_list.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "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 "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.520833
77
0.737884
b23cbcde006b0db3c3580504b84d384266acce57
487
ex
Elixir
lib/halex/link.ex
azukiapp/halex
9e3f197df05fa92e10948b14a2a864e5d7351727
[ "Apache-2.0" ]
1
2015-06-13T03:33:57.000Z
2015-06-13T03:33:57.000Z
lib/halex/link.ex
azukiapp/halex
9e3f197df05fa92e10948b14a2a864e5d7351727
[ "Apache-2.0" ]
null
null
null
lib/halex/link.ex
azukiapp/halex
9e3f197df05fa92e10948b14a2a864e5d7351727
[ "Apache-2.0" ]
null
null
null
defmodule Halex.Link do # Record fields and default values @fields [ href: nil, templated: true, type: nil, deprecation: nil, name: nil, profile: nil, title: nil, hreflang: nil ] # Record def Record.deffunctions(@fields, __ENV__) Record.import __MODULE__, as: :link @type t :: __MODULE__ @...
22.136364
54
0.652977
b23ccb04fcc526a1ba72d29176b9861b8025fd8f
2,135
exs
Elixir
mix.exs
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
1
2021-03-28T17:41:37.000Z
2021-03-28T17:41:37.000Z
mix.exs
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
null
null
null
mix.exs
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
null
null
null
defmodule ExAppointment.MixProject do use Mix.Project def project do [ app: :ex_appointment, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: a...
29.652778
84
0.571429
b23ce0c3564a8d213e4719c35b2f4745e3561513
422
ex
Elixir
lib/honeydew/sources/ecto/erlang_term.ex
janpieper/honeydew
3a8762cd3e9c986de2d50bbc46a390b383e65435
[ "MIT" ]
null
null
null
lib/honeydew/sources/ecto/erlang_term.ex
janpieper/honeydew
3a8762cd3e9c986de2d50bbc46a390b383e65435
[ "MIT" ]
null
null
null
lib/honeydew/sources/ecto/erlang_term.ex
janpieper/honeydew
3a8762cd3e9c986de2d50bbc46a390b383e65435
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Ecto) do defmodule Honeydew.EctoSource.ErlangTerm do @behaviour Ecto.Type @impl true def type, do: :binary @impl true def cast(term) do {:ok, term} end @impl true def load(binary) when is_binary(binary) do {:ok, :erlang.binary_to_term(binary)} ...
17.583333
46
0.623223
b23cf496e166f85f5d2fbd578b99738fb59651f4
345
exs
Elixir
priv/repo/seeds.exs
AlShu/recycling.itsavesplanet.org
dd26944e39b250f3b0d12cbb99abb91e8f8ff49e
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
AlShu/recycling.itsavesplanet.org
dd26944e39b250f3b0d12cbb99abb91e8f8ff49e
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
AlShu/recycling.itsavesplanet.org
dd26944e39b250f3b0d12cbb99abb91e8f8ff49e
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # RISP.Repo.insert!(%RISP.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail ...
28.75
61
0.701449
b23d1465c972b81556c4833be547b33d279a3e3b
2,057
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/unmerge_table_cells_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/slides/lib/google_api/slides/v1/model/unmerge_table_cells_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/unmerge_table_cells_request.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 "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 ...
36.732143
153
0.729703
b23d204671a50f110e7d6d3d39d45dceab87e754
1,700
ex
Elixir
lib/lingvo/client.ex
kortirso/lingvo
cdbf4e2d78ee0fa4cd59cb20abd66b01ee0d2707
[ "MIT" ]
null
null
null
lib/lingvo/client.ex
kortirso/lingvo
cdbf4e2d78ee0fa4cd59cb20abd66b01ee0d2707
[ "MIT" ]
null
null
null
lib/lingvo/client.ex
kortirso/lingvo
cdbf4e2d78ee0fa4cd59cb20abd66b01ee0d2707
[ "MIT" ]
null
null
null
defmodule Lingvo.Client do @moduledoc """ Client requests """ @type api_key :: {:api_key, String.t()} @type path :: String.t() @doc """ Performs a GET request ## Examples iex> Lingvo.Client.get("/v1/Translation", access_token) {:ok, %HTTPoison.Response{}} """ @spec get(path, String....
29.824561
171
0.621765
b23d3bae8096266edc4a71f47c2c59cb04d4b402
135
ex
Elixir
lib/msir_web/controllers/page_controller.ex
atilla777/msir
602df87890c2d49b4a19ce490f271b503484b618
[ "BSD-2-Clause" ]
null
null
null
lib/msir_web/controllers/page_controller.ex
atilla777/msir
602df87890c2d49b4a19ce490f271b503484b618
[ "BSD-2-Clause" ]
null
null
null
lib/msir_web/controllers/page_controller.ex
atilla777/msir
602df87890c2d49b4a19ce490f271b503484b618
[ "BSD-2-Clause" ]
null
null
null
defmodule MsirWeb.PageController do use MsirWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
16.875
35
0.725926
b23d40fb852cb8b3dd0b366b1a3adbafd43792ef
3,334
exs
Elixir
charts_live/test/views/column_view_test.exs
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
charts_live/test/views/column_view_test.exs
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
charts_live/test/views/column_view_test.exs
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
defmodule ChartsLive.ColumnViewTest do @moduledoc false use ExUnit.Case import Phoenix.HTML, only: [safe_to_string: 1] import ChartsLive.ColumnView alias Charts.{BaseChart, Gradient, ColumnChart.Column} describe "color_to_fill/2" do test "should return color value" do assert color_to_fill(%{re...
40.168675
781
0.578884
b23d43b900d6687af8903e9bd10d31394abca7a4
7,054
ex
Elixir
lib/mail/renderers/rfc_2822.ex
sam701/elixir-mail
5771a8b8808c26f7d6adc3a44859f2c140c994e1
[ "MIT" ]
null
null
null
lib/mail/renderers/rfc_2822.ex
sam701/elixir-mail
5771a8b8808c26f7d6adc3a44859f2c140c994e1
[ "MIT" ]
29
2020-06-07T11:50:37.000Z
2022-03-24T19:02:05.000Z
lib/mail/renderers/rfc_2822.ex
sam701/elixir-mail
5771a8b8808c26f7d6adc3a44859f2c140c994e1
[ "MIT" ]
1
2020-07-24T00:10:39.000Z
2020-07-24T00:10:39.000Z
defmodule Mail.Renderers.RFC2822 do import Mail.Message, only: [match_content_type?: 2] @days ~w(Mon Tue Wed Thu Fri Sat Sun) @months ~w(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec) @moduledoc """ RFC2822 Parser Will attempt to render a valid RFC2822 message from a `%Mail.Message{}` data model. ...
30.145299
94
0.64871
b23d6a2b30e1c3ec4e216ad90878ed3bb17be271
8,575
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/interconnect.ex
MechimCook/elixir-google-api
0240ede69ec77115076724d223f9d1f849ff1d6b
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/interconnect.ex
MechimCook/elixir-google-api
0240ede69ec77115076724d223f9d1f849ff1d6b
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/interconnect.ex
MechimCook/elixir-google-api
0240ede69ec77115076724d223f9d1f849ff1d6b
[ "Apache-2.0" ]
null
null
null
# 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...
70.867769
575
0.740175
b23d6e223f9a2a6b07a5556ac6726adf1e947bdf
5,274
exs
Elixir
test/workflows/workflows_test.exs
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
null
null
null
test/workflows/workflows_test.exs
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
null
null
null
test/workflows/workflows_test.exs
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
null
null
null
defmodule StepFlow.WorkflowsTest do use ExUnit.Case use Plug.Test alias Ecto.Adapters.SQL.Sandbox alias StepFlow.Artifacts alias StepFlow.Repo alias StepFlow.Workflows alias StepFlow.Workflows.Workflow doctest StepFlow setup do # Explicitly get a connection before each test :ok = Sandbox.ch...
26.771574
97
0.607129
b23d8a93052b6532a0f38576b0351d739736e213
906
ex
Elixir
clients/access_context_manager/lib/google_api/access_context_manager/v1/metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/access_context_manager/lib/google_api/access_context_manager/v1/metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/access_context_manager/lib/google_api/access_context_manager/v1/metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.555556
74
0.764901
b23da1bf831fe83ed43f9d46a8e054fc1f5f6fa2
2,885
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_field.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_field.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_field.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...
44.384615
206
0.707106
b23dc3eea0ad0bebe5c5678b98ac059ce14c6810
37,435
ex
Elixir
lib/worker/batcher.ex
richardstephens/bors-ng
a006dbbe05fe89c56e6fe9f8f71e61ae1175d91d
[ "Apache-2.0" ]
1
2021-05-06T11:20:43.000Z
2021-05-06T11:20:43.000Z
lib/worker/batcher.ex
richardstephens/bors-ng
a006dbbe05fe89c56e6fe9f8f71e61ae1175d91d
[ "Apache-2.0" ]
null
null
null
lib/worker/batcher.ex
richardstephens/bors-ng
a006dbbe05fe89c56e6fe9f8f71e61ae1175d91d
[ "Apache-2.0" ]
null
null
null
require Logger defmodule BorsNG.Worker.Batcher do @moduledoc """ A "Batcher" manages the backlog of batches a project has. It implements this set of rules: * When a patch is reviewed ("r+'ed"), it gets added to the project's non-running batch. If no such batch exists, it creates it. * After ...
28.729854
136
0.60983
b23ded82c88846959f0e2d35dc0ba40b450850ef
7,674
ex
Elixir
lib/phoenix_full_stack/modify/phoenix.ex
naymspace/phoenix-fullstack
289246584a9247d33b4fd3d28bea405d696a5270
[ "MIT" ]
2
2021-05-07T08:17:49.000Z
2021-05-07T08:39:39.000Z
lib/phoenix_full_stack/modify/phoenix.ex
naymspace/phoenix-fullstack
289246584a9247d33b4fd3d28bea405d696a5270
[ "MIT" ]
null
null
null
lib/phoenix_full_stack/modify/phoenix.ex
naymspace/phoenix-fullstack
289246584a9247d33b4fd3d28bea405d696a5270
[ "MIT" ]
1
2021-05-19T16:20:38.000Z
2021-05-19T16:20:38.000Z
defmodule PhoenixFullStack.Modify.Phoenix do @moduledoc false import PhoenixFullStack.Templates alias PhoenixFullStack.Util @source_prefix "backend/phoenix" @target_prefix "phoenix_api" def modify(path, template_bindings) do path = Path.join(path, @target_prefix) rewrite_mix_file(path, template_bi...
30.452381
106
0.583138
b23deec9dcb1f064862924270ba12ada1424e71b
2,372
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/promoted_item_id.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/promoted_item_id.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/promoted_item_id.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "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 "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...
40.896552
249
0.735245
b23e0f3c5c9c45dbba6df0ef825605f124721552
4,849
exs
Elixir
test/online_editor_web/controllers/folder_controller_test.exs
zzats/online-editor
2532315b40c974fe766e960e0b0933773907906d
[ "MIT" ]
null
null
null
test/online_editor_web/controllers/folder_controller_test.exs
zzats/online-editor
2532315b40c974fe766e960e0b0933773907906d
[ "MIT" ]
null
null
null
test/online_editor_web/controllers/folder_controller_test.exs
zzats/online-editor
2532315b40c974fe766e960e0b0933773907906d
[ "MIT" ]
null
null
null
defmodule OnlineEditorWeb.FolderControllerTest do use OnlineEditorWeb.ConnCase import OnlineEditor.Factory alias OnlineEditor.Folder alias OnlineEditorWeb.ErrorView @no_relations %{children: [], documents: []} defp render_json(template, assigns) do assigns = Map.new(assigns) OnlineEditorWeb.Folder...
29.748466
105
0.611673
b23e23cdd7742b275dd32ec1ce3f5b93dc5618cf
1,826
ex
Elixir
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/list_operations_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/list_operations_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/list_operations_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.52
174
0.745893
b23e3ec20744dcfd0875d6043492ec77c9eb77ad
953
ex
Elixir
lib/restfully/ets.ex
marcsugiyama/restfully
8352bc5718c1298c836ed72fc9d7b5cd4a9695bb
[ "Apache-2.0" ]
1
2018-03-14T23:48:57.000Z
2018-03-14T23:48:57.000Z
lib/restfully/ets.ex
marcsugiyama/restfully
8352bc5718c1298c836ed72fc9d7b5cd4a9695bb
[ "Apache-2.0" ]
null
null
null
lib/restfully/ets.ex
marcsugiyama/restfully
8352bc5718c1298c836ed72fc9d7b5cd4a9695bb
[ "Apache-2.0" ]
2
2018-06-04T12:37:32.000Z
2021-06-15T11:45:05.000Z
defmodule Restfully.Ets do use GenServer def start_link do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def bomb() do GenServer.cast(__MODULE__, :bomb) end def defuse() do GenServer.cast(__MODULE__, :defuse) end def init _args do {:ok, []...
20.717391
72
0.589717
b23e5624b5ee922d12a4629ebdc0d8d619377cce
2,182
exs
Elixir
config/prod.exs
lucidstack/cinemix
2bda8ce74052b0492c60ddb7682bed810204c593
[ "MIT" ]
null
null
null
config/prod.exs
lucidstack/cinemix
2bda8ce74052b0492c60ddb7682bed810204c593
[ "MIT" ]
null
null
null
config/prod.exs
lucidstack/cinemix
2bda8ce74052b0492c60ddb7682bed810204c593
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
32.567164
67
0.714024
b23eb01cb70aaef842be077154deb10c4f5db6c9
719
exs
Elixir
echo/test/echo/eraser_test.exs
tocteman/liveview_sept_2021
fb22ccbdf269184657a8e7ede3bde08b1a511b3b
[ "MIT" ]
null
null
null
echo/test/echo/eraser_test.exs
tocteman/liveview_sept_2021
fb22ccbdf269184657a8e7ede3bde08b1a511b3b
[ "MIT" ]
null
null
null
echo/test/echo/eraser_test.exs
tocteman/liveview_sept_2021
fb22ccbdf269184657a8e7ede3bde08b1a511b3b
[ "MIT" ]
null
null
null
defmodule Echo.EraserTest do use Echo.DataCase alias Echo.Game.Eraser def eraser_data do %Eraser{ phrase: "abcde", plan: [[0, 1], [2, 3], [4]] } end test "eraser function erases all characters" do erased = eraser_data() |> assert_key(:phrase, "abcde") |> Eraser.e...
18.921053
54
0.585535
b23ec6ff19ec464267db83cb76c2207c8a8e9c9d
1,381
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/export_messages_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/export_messages_response.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/export_messages_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.880952
119
0.773353
b23ed44bf32e69b52f1e0458dae48dcb915018d7
1,995
ex
Elixir
priv/templates/phx.gen.context/access_no_schema.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
8
2019-06-02T05:02:36.000Z
2021-08-11T04:23:10.000Z
priv/templates/phx.gen.context/access_no_schema.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
7
2019-05-15T08:32:51.000Z
2020-06-10T07:46:43.000Z
priv/templates/phx.gen.context/access_no_schema.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
1
2019-06-02T05:02:47.000Z
2019-06-02T05:02:47.000Z
alias <%= inspect schema.module %> @doc """ Returns the list of <%= schema.plural %>. ## Examples iex> list_<%= schema.plural %>() [%<%= inspect schema.alias %>{}, ...] """ def list_<%= schema.plural %> do raise "TODO" end @doc """ Gets a single <%= schema.singular %>. Raises ...
22.166667
102
0.543358
b23ee3ca7a937da2076be8a811b6edae72772d5a
11,132
ex
Elixir
lib/trademark_free_strategic_land_warfare/board.ex
WizardOfOgz/trademark_free_strategic_land_warfare
a14287eab1f60c13d43f70ac2309391c291a6704
[ "MIT" ]
1
2020-06-30T16:37:50.000Z
2020-06-30T16:37:50.000Z
lib/trademark_free_strategic_land_warfare/board.ex
WizardOfOgz/trademark_free_strategic_land_warfare
a14287eab1f60c13d43f70ac2309391c291a6704
[ "MIT" ]
null
null
null
lib/trademark_free_strategic_land_warfare/board.ex
WizardOfOgz/trademark_free_strategic_land_warfare
a14287eab1f60c13d43f70ac2309391c291a6704
[ "MIT" ]
13
2020-06-04T23:10:19.000Z
2020-06-05T01:25:26.000Z
defmodule TrademarkFreeStrategicLandWarfare.Board do @derive Jason.Encoder @enforce_keys [:rows, :lookup] defstruct rows: nil, lookup: nil alias TrademarkFreeStrategicLandWarfare.Piece @empty_board [ [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil, nil, nil, nil, nil, ni...
30.582418
126
0.60124
b23efa5d66f1026672f1f75439e6b09faac30dad
3,105
ex
Elixir
lib/strategy/goodreads.ex
tielur/ueberauth_goodreads
62491e108df70625e87122a19891690ab008277c
[ "MIT" ]
2
2020-02-12T10:11:05.000Z
2021-02-03T20:54:56.000Z
lib/strategy/goodreads.ex
tielur/ueberauth_goodreads
62491e108df70625e87122a19891690ab008277c
[ "MIT" ]
null
null
null
lib/strategy/goodreads.ex
tielur/ueberauth_goodreads
62491e108df70625e87122a19891690ab008277c
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.Goodreads do @moduledoc """ Goodreads Strategy for Überauth. """ use Ueberauth.Strategy, uid_field: :id_str alias Ueberauth.Auth.Info alias Ueberauth.Auth.Credentials alias Ueberauth.Auth.Extra alias Ueberauth.Strategy.Goodreads import SweetXml @doc """ Handles init...
26.313559
88
0.633494
b23f0763546f24b04f0b13585d9a5789e8d26c76
2,571
exs
Elixir
test/config_loader_test.exs
edwardzhou/exvcr
0d1e0ab702c9caca74bcbbe4dd7f4894cb8816cd
[ "MIT" ]
608
2015-01-05T18:44:49.000Z
2022-03-21T19:54:01.000Z
test/config_loader_test.exs
edwardzhou/exvcr
0d1e0ab702c9caca74bcbbe4dd7f4894cb8816cd
[ "MIT" ]
165
2015-01-04T13:01:01.000Z
2022-03-16T08:31:48.000Z
test/config_loader_test.exs
edwardzhou/exvcr
0d1e0ab702c9caca74bcbbe4dd7f4894cb8816cd
[ "MIT" ]
130
2015-01-28T19:33:21.000Z
2022-02-08T22:21:43.000Z
defmodule ExVCR.ConfigLoaderTest do use ExUnit.Case, async: true @dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes" @dummy_custom_dir "tmp/vcr_tmp/vcr_custom" setup_all do File.rm_rf!(@dummy_cassette_dir) :ok end setup do on_exit fn -> File.rm_rf!(@dummy_cassette_dir) :ok end ...
38.954545
91
0.764294
b23f2a9e398a171c7a4026b477fe9a9118ac9ec0
1,368
ex
Elixir
clients/elixir/generated/lib/cloud_manager_api/deserializer.ex
shinesolutions/cloudmanager-api-clients
d73a25878f6cc57af954362ba8dccc90d54e6131
[ "Apache-2.0" ]
3
2020-06-23T05:31:52.000Z
2020-11-26T05:34:57.000Z
clients/elixir/generated/lib/cloud_manager_api/deserializer.ex
shinesolutions/cloudmanager-api-clients
d73a25878f6cc57af954362ba8dccc90d54e6131
[ "Apache-2.0" ]
2
2021-01-21T01:19:54.000Z
2021-12-09T22:30:22.000Z
clients/elixir/generated/lib/cloud_manager_api/deserializer.ex
shinesolutions/cloudmanager-api-clients
d73a25878f6cc57af954362ba8dccc90d54e6131
[ "Apache-2.0" ]
1
2020-11-18T11:48:13.000Z
2020-11-18T11:48:13.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule CloudManagerAPI.Deserializer do @moduledoc """ Helper functions for deserializing responses into models """ @doc """ Update the provided mo...
35.076923
139
0.633041
b23f59fe5e4f0164a1ac966a319a36b7586d61ab
2,437
exs
Elixir
test/bluex/dbus_disovery_test.exs
highmobility/bluex
2ad4b713445734a235fd997fce0f8f4c934179fc
[ "MIT" ]
18
2016-09-28T20:23:41.000Z
2021-03-17T03:36:27.000Z
test/bluex/dbus_disovery_test.exs
highmobility/bluex
2ad4b713445734a235fd997fce0f8f4c934179fc
[ "MIT" ]
1
2016-10-27T08:40:10.000Z
2016-10-27T08:40:10.000Z
test/bluex/dbus_disovery_test.exs
highmobility/bluex
2ad4b713445734a235fd997fce0f8f4c934179fc
[ "MIT" ]
6
2017-09-02T08:03:56.000Z
2020-07-07T19:03:40.000Z
defmodule DBusDiscoveryTest do use Bluex.DBusCase, async: false @moduletag dbus_server: "test/bluem-dbus/bluem-service.py" @behaviour Bluex.Discovery @dbus_name Application.get_env(:bluex, :dbus_name) @mock_dbus_name "org.mock" @dbus_mock_path "/org/mock" @dbus_type Application.get_env(:bluex, :bus_type...
32.065789
141
0.704144
b23f6998804c97e3f1128233085d38a0584f4704
883
exs
Elixir
elixir/space-age/space_age.exs
ArtemGordinsky/exercism
74e91e3b48ca920803474ec435c13eac66351b9f
[ "Unlicense" ]
null
null
null
elixir/space-age/space_age.exs
ArtemGordinsky/exercism
74e91e3b48ca920803474ec435c13eac66351b9f
[ "Unlicense" ]
null
null
null
elixir/space-age/space_age.exs
ArtemGordinsky/exercism
74e91e3b48ca920803474ec435c13eac66351b9f
[ "Unlicense" ]
null
null
null
defmodule SpaceAge do @type planet :: :mercury | :venus | :earth | :mars | :jupiter | :saturn | :uranus | :neptune @earth_orbital_period 31_557_600 @age_relative_to_earth %{ :mercury => 0.2408467, :venus => 0.61519726, :mars => 1.8808158, :jupiter => 11.862615, :saturn => 29.4...
24.527778
77
0.640997
b23f6cbffc18fae3d527d50452166375ea16710c
5,139
ex
Elixir
lib/utility/scene_inspector.ex
CVMEventi/scenic_scrollable
d3b134fb27d15482dde2c26e3409cfc64ab07a5a
[ "MIT" ]
2
2021-11-05T01:31:01.000Z
2022-02-09T19:07:36.000Z
lib/utility/scene_inspector.ex
CVMEventi/scenic_scrollable
d3b134fb27d15482dde2c26e3409cfc64ab07a5a
[ "MIT" ]
null
null
null
lib/utility/scene_inspector.ex
CVMEventi/scenic_scrollable
d3b134fb27d15482dde2c26e3409cfc64ab07a5a
[ "MIT" ]
2
2021-08-03T22:46:24.000Z
2021-08-03T22:47:41.000Z
defmodule Scenic.Scrollable.SceneInspector do alias Scenic.ViewPort.Tables @moduledoc false # This module is meant for testing and debugging purposes only defmacro __using__(opts) do quote do enabled = Enum.member?(unquote(opts)[:env] || [], Mix.env()) if enabled do @doc false ...
31.145455
90
0.528118
b23f75d7afe07ccdec05199158a32582dffe4d30
27,462
exs
Elixir
test/unit/equality_test.exs
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
53
2017-06-25T22:20:44.000Z
2020-04-27T17:27:51.000Z
test/unit/equality_test.exs
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
7
2017-06-25T00:29:11.000Z
2020-03-11T00:23:47.000Z
test/unit/equality_test.exs
rdf-elixir/rdf-ex
7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a
[ "MIT" ]
3
2020-07-03T13:25:36.000Z
2021-04-04T12:33:51.000Z
defmodule RDF.EqualityTest do use RDF.Test.Case alias RDF.TestDatatypes.{ Initials, CustomTime, DateWithoutTz, DateTimeWithTz, Age, DecimalUnitInterval, DoubleUnitInterval, FloatUnitInterval } describe "RDF.IRI and XSD.AnyURI" do @term_equal_iris [ {RDF.iri("http://ex...
43.179245
98
0.641541
b23f8b333f42772bf5c71b011cd0961a840101ac
1,900
ex
Elixir
test/fixtures/v3/domain_object.schema.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
test/fixtures/v3/domain_object.schema.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
test/fixtures/v3/domain_object.schema.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Keith Brings <keith.brings@noizu.com> # Copyright (C) 2021 Noizu Labs Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.AdvancedScaffolding.Test.Fixture.V3...
33.333333
148
0.582632
b23fb8e0b59030af64292e812c0ff98dd9afc47d
2,603
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/liveness_check.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/liveness_check.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/liveness_check.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.046154
150
0.694967
b23fbed8647c45a97f1600a0befc534647ec3059
1,652
ex
Elixir
lib/ellie_web/controllers/result_controller.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
377
2018-04-05T03:36:00.000Z
2022-03-30T19:12:44.000Z
lib/ellie_web/controllers/result_controller.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
91
2018-05-24T21:56:06.000Z
2022-02-26T03:54:04.000Z
lib/ellie_web/controllers/result_controller.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
34
2018-05-29T03:54:35.000Z
2022-01-13T07:12:46.000Z
defmodule EllieWeb.ResultController do use EllieWeb, :controller alias Data.Uuid alias Ellie.Domain.Embed alias Ellie.Domain.Workspace alias Ellie.Domain.Api alias Ellie.Types.PrettyId alias EllieWeb.Token def workspace(conn, params) do with {:ok, token} <- Map.fetch(params, "token"), {:ok...
31.169811
75
0.608959
b23fd6b49da6d8311157278b3fa68fee476c127e
100
ex
Elixir
lib/bolt/repo.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
lib/bolt/repo.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
lib/bolt/repo.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.Repo do use Ecto.Repo, otp_app: :bolt, adapter: Ecto.Adapters.Postgres end
16.666667
35
0.71
b23ffc1e96906bcb7bbbe8a083254900c32ab942
2,009
ex
Elixir
lib/earmark_parser/enum/ext.ex
akash-akya/earmark_parser
de2216ca0622a9d2491ea2295d0be1bedcaf64c6
[ "Apache-2.0" ]
null
null
null
lib/earmark_parser/enum/ext.ex
akash-akya/earmark_parser
de2216ca0622a9d2491ea2295d0be1bedcaf64c6
[ "Apache-2.0" ]
null
null
null
lib/earmark_parser/enum/ext.ex
akash-akya/earmark_parser
de2216ca0622a9d2491ea2295d0be1bedcaf64c6
[ "Apache-2.0" ]
null
null
null
defmodule EarmarkParser.Enum.Ext do @moduledoc ~S""" Some extensions of Enum functions """ @doc ~S""" `reduce_with_end` is like `Enum.reduce` for lists, but the reducer function is called for each element of the list with the tuple `{:element, element}` and the accumulator and once more at the end with...
35.875
99
0.607267
b2401fa63664eb79a3020491778c17c2a9880e12
990
exs
Elixir
src/092/problem092.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
9
2018-05-06T04:43:08.000Z
2020-12-01T20:51:34.000Z
src/092/problem092.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
null
null
null
src/092/problem092.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
null
null
null
#!/usr/bin/env elixir defmodule Problem092 do @moduledoc """ A number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before. For example, 44 → 32 → 13 → 10 → 1 → 1 85 → 89 → 145 → 42 → 20 → 4 → 16 → 37 → 58 → 89 Therefore...
23.023256
118
0.618182
b24022c19023cfc3db9dc253fcff828b7fdbf19a
2,640
ex
Elixir
mix/function_clauses.ex
Zurga/cldr_units
d90ae5987608b741bd0f531fd760f1e142ff9293
[ "Apache-2.0" ]
null
null
null
mix/function_clauses.ex
Zurga/cldr_units
d90ae5987608b741bd0f531fd760f1e142ff9293
[ "Apache-2.0" ]
null
null
null
mix/function_clauses.ex
Zurga/cldr_units
d90ae5987608b741bd0f531fd760f1e142ff9293
[ "Apache-2.0" ]
null
null
null
defmodule FunctionClause do @moduledoc """ Format function clauses using Exception.blame/3 """ @doc """ Given a `module`, `function`, and `args` see if that function clause would match or not match. This is useful for helping diagnose function clause errors when many clauses are generated at compile ...
31.428571
106
0.589015
b2403cd9c9d8eded15b725c9ccfbc7883f97b632
239
ex
Elixir
lib/phone/br/rr.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
97
2016-04-05T13:08:41.000Z
2021-12-25T13:08:34.000Z
lib/phone/br/rr.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
70
2016-06-14T00:56:00.000Z
2022-02-10T19:43:14.000Z
lib/phone/br/rr.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
31
2016-04-21T22:26:12.000Z
2022-01-24T21:40:00.000Z
defmodule Phone.BR.RR do @moduledoc false use Helper.Area def regex, do: ~r/^(55)(95)([2-5|89].{7}|9[89].{7})$/ def area_name, do: "Roraima" def area_type, do: "state" def area_abbreviation, do: "RR" matcher(["5595"]) end
18.384615
55
0.623431
b2403dae4587afb9c548d6bff71b09361b70f652
2,133
ex
Elixir
lib/grizzly/notifications.ex
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
lib/grizzly/notifications.ex
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
lib/grizzly/notifications.ex
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
defmodule Grizzly.Notifications do @moduledoc """ A pubsub module for sending and receiving notifications to and from Grizzly. """ require Logger @registry_name Registry.Grizzly @typedoc """ The topics that are allowed for Grizzly notifications """ @type topic :: :controller_connected ...
24.517241
84
0.632443
b24059d70fe56ac379539291b7d5ab2bb20875b0
42
ex
Elixir
test/fixtures/umbrella/apps/a/lib/module_a.ex
hauleth/mix_unused
778f60773a1c0d10e62b85c5fd39611b71b41e53
[ "MIT" ]
116
2019-01-05T02:08:47.000Z
2022-03-29T08:10:16.000Z
test/fixtures/umbrella/apps/a/lib/module_a.ex
hauleth/mix_unused
778f60773a1c0d10e62b85c5fd39611b71b41e53
[ "MIT" ]
22
2020-04-12T23:29:14.000Z
2022-03-30T17:23:21.000Z
test/fixtures/umbrella/apps/a/lib/module_a.ex
hauleth/mix_unused
778f60773a1c0d10e62b85c5fd39611b71b41e53
[ "MIT" ]
2
2021-09-28T10:35:00.000Z
2022-03-24T14:08:27.000Z
defmodule ModuleA do def foo, do: 1 end
10.5
20
0.714286
b2406a8028672dd072e47883c7c8691167b944e8
155
exs
Elixir
priv/repo/migrations/20170927000218_add_notes_to_npcs.exs
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
priv/repo/migrations/20170927000218_add_notes_to_npcs.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
priv/repo/migrations/20170927000218_add_notes_to_npcs.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Data.Repo.Migrations.AddNotesToNpcs do use Ecto.Migration def change do alter table(:npcs) do add :notes, :text end end end
15.5
48
0.690323
b24083ed16e516eba8382cd6035a79c6f2d1de51
900
ex
Elixir
clients/android_management/lib/google_api/android_management/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/android_management/lib/google_api/android_management/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/android_management/lib/google_api/android_management/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.333333
74
0.763333
b2409934083203af141ceaf7317db5202a1ba390
1,645
ex
Elixir
lib/auto_api/capabilities/race_capability.ex
highmobility/hm-auto-api-elixir
026c3f50871c56877a4acd5f39a8887118a87bb5
[ "MIT" ]
4
2018-01-19T16:11:10.000Z
2019-12-13T16:35:10.000Z
lib/auto_api/capabilities/race_capability.ex
highmobility/auto-api-elixir
026c3f50871c56877a4acd5f39a8887118a87bb5
[ "MIT" ]
5
2020-07-16T07:20:21.000Z
2021-09-22T10:18:04.000Z
lib/auto_api/capabilities/race_capability.ex
highmobility/hm-auto-api-elixir
026c3f50871c56877a4acd5f39a8887118a87bb5
[ "MIT" ]
1
2021-02-17T18:36:13.000Z
2021-02-17T18:36:13.000Z
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
36.555556
79
0.737386
b2409f1b788d3231da494635d5a027567254b55a
147
ex
Elixir
lib/cloudevents/format/encoder/map.ex
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
7
2020-03-17T22:54:51.000Z
2021-09-10T17:33:03.000Z
lib/cloudevents/format/encoder/map.ex
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
2
2020-07-13T23:01:52.000Z
2020-07-16T17:05:56.000Z
lib/cloudevents/format/encoder/map.ex
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
1
2020-07-07T19:49:25.000Z
2020-07-07T19:49:25.000Z
defprotocol Cloudevents.Format.Encoder.Map do @moduledoc false @doc "Converts a Cloudevent into an Elixir map." def convert(cloudevent) end
21
50
0.77551
b240a2edba4db1d9fe12c0c114be2ce5d8cdac08
132
ex
Elixir
lib/bs_web/views/board_config_view.ex
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
3
2018-07-14T22:55:23.000Z
2019-02-25T06:11:55.000Z
lib/bs_web/views/board_config_view.ex
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
7
2020-02-12T03:22:59.000Z
2022-02-10T20:23:52.000Z
lib/bs_web/views/board_config_view.ex
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
12
2018-03-27T05:27:20.000Z
2019-04-02T08:19:04.000Z
defmodule BsWeb.BoardConfigView do use BsWeb, :view def render("show.json", %{game: game}) do %{gameId: game.id} end end
16.5
43
0.666667
b240ae776a843cfa8880978a35e4662560a31629
1,531
ex
Elixir
apps/snitch_core/lib/core/data/schema/zone/state_zone_member.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/lib/core/data/schema/zone/state_zone_member.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/lib/core/data/schema/zone/state_zone_member.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Data.Schema.StateZoneMember do @moduledoc """ Models a StateZone member. """ use Snitch.Data.Schema alias Snitch.Data.Schema.{State, Zone} @typedoc """ StateZoneMember struct. ## Fields * `zone_id` uniquely determines both `Zone` and `StateZone` """ @type t :: %__MODULE__{} ...
27.339286
92
0.709993
b240b0b205811e2b8ae58acb5eceb1331b07230c
998
ex
Elixir
chatter/test/support/channel_case.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chatter/test/support/channel_case.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chatter/test/support/channel_case.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
defmodule Chatter.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot be a...
22.681818
69
0.700401
b240e67857091aacd9ddfb7535fe443e529d79ba
2,049
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/teacher.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/classroom/lib/google_api/classroom/v1/model/teacher.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/teacher.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 ...
32.015625
131
0.702294
b240fa664d833e584c41f97bc4d8a7a62c7faf9d
552
ex
Elixir
lib/opus/pipeline/stage/link.ex
hubertlepicki/opus
e1568bc81f678529e812455534ea663bb1ab4394
[ "MIT" ]
null
null
null
lib/opus/pipeline/stage/link.ex
hubertlepicki/opus
e1568bc81f678529e812455534ea663bb1ab4394
[ "MIT" ]
null
null
null
lib/opus/pipeline/stage/link.ex
hubertlepicki/opus
e1568bc81f678529e812455534ea663bb1ab4394
[ "MIT" ]
null
null
null
defmodule Opus.Pipeline.Stage.Link do @moduledoc ~S""" The link stage calls the specified pipeline module. With a non Opus.Pipeline module, it ignores it. """ alias Opus.Pipeline.Stage alias Opus.Pipeline.Stage.Step @behaviour Stage @doc false def run({module, type, name, opts}, input) do case...
25.090909
89
0.621377
b2410f838e5c2291b5adbd32272cd90d34a1acdd
1,159
ex
Elixir
late.ex
jteresco/LatePenaltyCalculators
23715b06d3a7d142ccdd4d58f7ba913ac5952a7a
[ "MIT" ]
null
null
null
late.ex
jteresco/LatePenaltyCalculators
23715b06d3a7d142ccdd4d58f7ba913ac5952a7a
[ "MIT" ]
2
2020-10-14T17:28:49.000Z
2020-10-14T17:29:55.000Z
late.ex
jteresco/LatePenaltyCalculators
23715b06d3a7d142ccdd4d58f7ba913ac5952a7a
[ "MIT" ]
2
2019-07-02T13:42:47.000Z
2019-11-04T14:41:32.000Z
defmodule Late do @moduledoc """ Late penalty calculator using Elixir 1.9.0 Adolfo Neto, Federal University of Technology - Paraná """ @base 1.08 @precision 2 @doc """ Returns the panalty for an amount of hours """ def late(hours) do :math.pow(@base, hours) |> decimal_precision() end @...
22.288462
75
0.680759
b2412226a70e246e3abe71d9dee3dbb36ca27ad6
2,392
ex
Elixir
clients/sts/lib/google_api/sts/v1/model/google_identity_sts_v1_exchange_token_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/sts/lib/google_api/sts/v1/model/google_identity_sts_v1_exchange_token_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sts/lib/google_api/sts/v1/model/google_identity_sts_v1_exchange_token_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.714286
387
0.729515
b2414f24321128a219b0f19342694fa455e5c295
3,836
ex
Elixir
apps/ewallet/lib/ewallet/gates/mint_gate.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/ewallet/lib/ewallet/gates/mint_gate.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/ewallet/lib/ewallet/gates/mint_gate.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.MintGate do @moduledoc """ Handles the mint creation logic. Since it relies on external applications to handle the transactions (i.e. LocalLedger), a callback needs to be passed. See examples on how to add value to a token. """ alias EWallet.{Helper, GenesisGate} alias EWalletDB.{Repo, A...
31.442623
95
0.586809
b24180d8cded8b687b740c9f47951d00d748f841
5,856
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/event_tag.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/event_tag.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/event_tag.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...
59.755102
328
0.696551
b2419b036cfdda98a9426e7efa1265d79d9e55ad
66
exs
Elixir
test/test_helper.exs
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
3
2018-05-28T15:10:11.000Z
2020-08-02T21:14:25.000Z
test/test_helper.exs
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
null
null
null
test/test_helper.exs
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Rps.Repo, :manual)
16.5
49
0.757576
b241ccbb8c21c6862a838e5819c43c0a1e251640
568
exs
Elixir
aoc-2020/day10/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day10/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day10/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
defmodule Day10.MixProject do use Mix.Project def project do [ app: :day10, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applic...
19.586207
87
0.573944
b241fe582e21673574369a17d9a8874d26aab873
2,301
ex
Elixir
clients/run/lib/google_api/run/v1/model/secret_env_source.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/secret_env_source.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/secret_env_source.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.415094
257
0.737505
b2420b2b734c916a546b6b4a1e6e106cf7cd3d06
1,116
exs
Elixir
mix.exs
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
mix.exs
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
mix.exs
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
defmodule StandingsPoller.MixProject do use Mix.Project def project do [ apps_path: "apps", start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], dialyzer: [ flags: ["-Wunmatched_returns", :error_handling, :underspecs] ], prefer...
26.571429
74
0.556452
b2421e9a4e4c201ca9454beeb5c3416869fba636
3,108
ex
Elixir
lib/atom_tweaks_web/controllers/tweak_controller.ex
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
14
2017-01-08T14:51:25.000Z
2022-03-14T09:23:17.000Z
lib/atom_tweaks_web/controllers/tweak_controller.ex
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
654
2017-05-23T22:55:21.000Z
2022-03-30T09:02:25.000Z
lib/atom_tweaks_web/controllers/tweak_controller.ex
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
4
2019-07-10T23:09:25.000Z
2020-02-09T12:14:00.000Z
defmodule AtomTweaksWeb.TweakController do @moduledoc """ Handles requests for tweak records. """ use AtomTweaksWeb, :controller alias AtomTweaks.Tweaks alias AtomTweaks.Tweaks.Tweak alias AtomTweaksWeb.PageMetadata alias AtomTweaksWeb.WrongUserError require Logger plug(:ensure_authenticated_user...
24.28125
94
0.627413
b242301229a7cbce0fbc7f9a80d120892bed006f
30,005
ex
Elixir
lib/connection.ex
mkaput/connection
248abf152eb7f7ea34d05023a7285272db49cf3d
[ "Apache-2.0" ]
250
2015-05-28T22:02:57.000Z
2020-10-19T22:45:03.000Z
lib/connection.ex
mkaput/connection
248abf152eb7f7ea34d05023a7285272db49cf3d
[ "Apache-2.0" ]
12
2015-05-31T12:16:32.000Z
2020-10-23T11:02:41.000Z
lib/connection.ex
mkaput/connection
248abf152eb7f7ea34d05023a7285272db49cf3d
[ "Apache-2.0" ]
34
2015-05-31T11:51:09.000Z
2020-11-06T19:29:24.000Z
defmodule Connection do @moduledoc """ A behaviour module for implementing connection processes. The `Connection` behaviour is a superset of the `GenServer` behaviour. The additional return values and callbacks are designed to aid building a connection process that can handle a peer being (temporarily) unava...
32.578719
91
0.620863
b2423c081577b9145d43c5996214878187df73ad
253
exs
Elixir
priv/repo/migrations/20210310184502_add_super_user_table.exs
Foxlabsdevelopers/cv_creator
c77d52cdc67180ed369a3dbd298ca2dea5131c60
[ "MIT" ]
null
null
null
priv/repo/migrations/20210310184502_add_super_user_table.exs
Foxlabsdevelopers/cv_creator
c77d52cdc67180ed369a3dbd298ca2dea5131c60
[ "MIT" ]
2
2021-05-24T21:41:25.000Z
2021-05-25T16:02:09.000Z
priv/repo/migrations/20210310184502_add_super_user_table.exs
Foxlabsdevelopers/cv_creator
c77d52cdc67180ed369a3dbd298ca2dea5131c60
[ "MIT" ]
null
null
null
defmodule CvCreator.Repo.Migrations.AddSuperUserTable do use Ecto.Migration def change do create table(:super_users) do add :name, :string add :email, :string add :password_hash, :string timestamps() end end end
16.866667
56
0.671937
b24243f5e24f000f049d07d6a3fdbc4cb98be23a
2,052
exs
Elixir
strain/strain_test.exs
mauricius/exercism-elixir
c6babb343f9f024a84cfa8328c6adf7a8aa504a5
[ "MIT" ]
null
null
null
strain/strain_test.exs
mauricius/exercism-elixir
c6babb343f9f024a84cfa8328c6adf7a8aa504a5
[ "MIT" ]
null
null
null
strain/strain_test.exs
mauricius/exercism-elixir
c6babb343f9f024a84cfa8328c6adf7a8aa504a5
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("strain.exs", __DIR__) end ExUnit.start() ExUnit.configure(trace: true, exclude: :pending) defmodule StrainTest do use ExUnit.Case defp is_odd?(n), do: rem(n, 2) == 1 defp is_even?(n), do: rem(n, 2) == 0 defp noop(_), do: true test "empty ke...
23.05618
93
0.528265
b2426a83d4178cb14e3da94da6bcdb49df2b21ce
13,268
exs
Elixir
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/74.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/74.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/74.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
**EXAMPLE FILE** cm particle pnoun cm demonstrative; pnoun cm noun cm demonstrative; verb conj noun cm demonstrative; pn nst pnoun cm pn; pnoun cm noun cm demonstrative; verb_aux SYM nst pnoun demonstrative; noun adjective nst noun pn; verb_aux conj cm verb pn; cm cm noun verb demonstrative; noun cm noun cm ...
33.087282
48
0.789494
b2427b4897b3afd390bff3ce41433bc499b15c45
383
exs
Elixir
config/dev.exs
ddidwyll/shorty
b02968d1093c2b61ab21e889ee39850244e4748e
[ "MIT" ]
null
null
null
config/dev.exs
ddidwyll/shorty
b02968d1093c2b61ab21e889ee39850244e4748e
[ "MIT" ]
1
2021-05-10T22:27:20.000Z
2021-05-10T22:27:20.000Z
config/dev.exs
ddidwyll/shorty
b02968d1093c2b61ab21e889ee39850244e4748e
[ "MIT" ]
null
null
null
use Mix.Config import System, only: [get_env: 2] config :shorty, Links.Repo, username: get_env("DB_USERNAME", "postgres"), password: get_env("DB_PASSWORD", "postgres"), hostname: get_env("DB_HOST", "localhost"), database: "shorty_repo" config :shorty, :children, [ {Links.Repo, []}, {Garbage, []}, {Plug...
23.9375
67
0.668407
b242aa7adfe4644e6621e67f8a580efe4d07d46a
2,298
ex
Elixir
lib/straw_hat_mailer/partials/partials_use_cases.ex
straw-hat-team/straw_hat_mailer
eddbfe736f43bcea7567b8cc94339d57f5f43b22
[ "MIT" ]
10
2017-12-14T06:09:43.000Z
2019-07-30T19:56:43.000Z
lib/straw_hat_mailer/partials/partials_use_cases.ex
straw-hat-labs/straw_hat_mailer
eddbfe736f43bcea7567b8cc94339d57f5f43b22
[ "MIT" ]
79
2017-10-15T15:45:51.000Z
2019-11-01T11:18:06.000Z
lib/straw_hat_mailer/partials/partials_use_cases.ex
straw-hat-labs/straw_hat_mailer
eddbfe736f43bcea7567b8cc94339d57f5f43b22
[ "MIT" ]
1
2017-12-14T06:09:52.000Z
2017-12-14T06:09:52.000Z
defmodule StrawHat.Mailer.Partials do @moduledoc """ Partials management use cases. A Partial is just a chunk of email content that you could reuse cross multiple emails. This is useful when you want to share sections between email templates. """ import Ecto.Query alias StrawHat.{Error, Response} al...
32.366197
98
0.681897
b242b3ef2572b01afce5def44645e48209ac57ed
99
exs
Elixir
test/views/layout_view_test.exs
amohamedali/bbc_schedulor_phoenix
0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
amohamedali/bbc_schedulor_phoenix
0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
amohamedali/bbc_schedulor_phoenix
0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa
[ "MIT" ]
null
null
null
defmodule BbcSchedulorPhoenix.LayoutViewTest do use BbcSchedulorPhoenix.ConnCase, async: true end
33
47
0.868687
b242d332a7e53dff1e28a3cc5706fc367662b863
2,424
ex
Elixir
lib/ecto_enum/postgres/use.ex
Byzanteam-Labs/ecto_enum
eda0d0d40d5bc57495ada0ecabd3f006485083c0
[ "MIT" ]
null
null
null
lib/ecto_enum/postgres/use.ex
Byzanteam-Labs/ecto_enum
eda0d0d40d5bc57495ada0ecabd3f006485083c0
[ "MIT" ]
null
null
null
lib/ecto_enum/postgres/use.ex
Byzanteam-Labs/ecto_enum
eda0d0d40d5bc57495ada0ecabd3f006485083c0
[ "MIT" ]
null
null
null
defmodule EctoEnum.Postgres.Use do @moduledoc false alias EctoEnum.Typespec defmacro __using__(input) do quote bind_quoted: [input: input] do typespec = Typespec.make(input[:enums]) @behaviour Ecto.Type @type t :: unquote(typespec) enums = input[:enums] valid_values = enums ...
26.347826
90
0.593647
b2433e96792a103e0e52a808b6e6d4418b5ff475
643
ex
Elixir
lib/cadet/env.ex
jiayushe/cadet
66d1ac2a67d891798092c89addbbfe7272de5775
[ "Apache-2.0" ]
null
null
null
lib/cadet/env.ex
jiayushe/cadet
66d1ac2a67d891798092c89addbbfe7272de5775
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
lib/cadet/env.ex
tsiyuk/cadet
66d1ac2a67d891798092c89addbbfe7272de5775
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule Cadet.Env do @moduledoc """ Contains helpers to retrieve certain application-wide runtime configuration. """ @doc """ Returns the current environment. """ @spec env :: atom() def env do Application.get_env(:cadet, :environment) end @doc """ Returns whether this instance is the grou...
24.730769
79
0.702955
b24387e0d9b5c3fcec7f4c02246c2a4d7be8af72
10,597
exs
Elixir
test_fixtures/precompiled/bad-templates.exs
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
302
2016-08-01T05:16:06.000Z
2022-03-26T07:20:46.000Z
test_fixtures/precompiled/bad-templates.exs
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
206
2016-08-04T15:18:35.000Z
2022-03-01T03:07:57.000Z
test_fixtures/precompiled/bad-templates.exs
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
35
2016-10-29T13:59:34.000Z
2022-03-01T01:50:31.000Z
%{"base" => %{__struct__: Serum.Template, ast: {:__block__, [], [{:__block__, [], [{:require, [line: 2], [{:__aliases__, [line: 2], [:Serum, :Template, :Hell]}]}, {:import, [line: 3], [{:__aliases__, [line: 3], [:Serum, :Template, :Helpers]}]}]}, {:=, [], [{:arg0, [], EEx.Engine}, {{:., [], [{:__aliases__, [alias: fals...
5,298.5
10,596
0.475606
b243bf09f69b01d4f057b1af4804bb8a6ddc7e89
2,411
ex
Elixir
clients/ad_experience_report/lib/google_api/ad_experience_report/v1/model/platform_summary.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_experience_report/lib/google_api/ad_experience_report/v1/model/platform_summary.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_experience_report/lib/google_api/ad_experience_report/v1/model/platform_summary.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "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...
38.887097
112
0.73538
b243f5e5b69e58d538a3a0fc0a945bbe9b2fa310
9,765
exs
Elixir
lib/ex_unit/test/ex_unit/formatter_test.exs
alexcastano/elixir
0221ce1f79d1cfd0955a9fa46a6d84d0193ad838
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/test/ex_unit/formatter_test.exs
alexcastano/elixir
0221ce1f79d1cfd0955a9fa46a6d84d0193ad838
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/test/ex_unit/formatter_test.exs
alexcastano/elixir
0221ce1f79d1cfd0955a9fa46a6d84d0193ad838
[ "Apache-2.0" ]
1
2021-09-30T01:21:02.000Z
2021-09-30T01:21:02.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule ExUnit.FormatterTest do use ExUnit.Case, async: true import ExUnit.Formatter doctest ExUnit.Formatter defmacrop catch_assertion(expr) do quote do try do unquote(expr) rescue ex -> ex end end end defp tes...
31.298077
96
0.547977
b24456b456d640250f9d629b27fcd17db5a5a0e2
1,046
ex
Elixir
server/lib/events_app/application.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
null
null
null
server/lib/events_app/application.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
null
null
null
server/lib/events_app/application.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
1
2021-04-10T18:37:30.000Z
2021-04-10T18:37:30.000Z
defmodule CompanyTest.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository CompanyTest.Repo, # Start the Telemetry supervisor ...
29.885714
69
0.712237
b244610e09f6bf9ba8e028b701f59a480a0ad4c8
262
ex
Elixir
lib/ex_type/emoji.ex
gyson/ex_type
73c3f0743f3b59a35a559f11df04c9d39cf86684
[ "MIT" ]
34
2019-04-29T03:19:04.000Z
2022-02-25T21:14:31.000Z
lib/ex_type/emoji.ex
turion/ex_type
32dd10c95da69fa53fab04e224ff551e2da3ba04
[ "MIT" ]
34
2019-04-29T09:26:54.000Z
2022-02-14T15:19:26.000Z
lib/ex_type/emoji.ex
turion/ex_type
32dd10c95da69fa53fab04e224ff551e2da3ba04
[ "MIT" ]
1
2020-12-08T11:57:02.000Z
2020-12-08T11:57:02.000Z
defmodule ExType.Emoji do @moduledoc false def error(), do: "❗" def inspect(), do: "❔" def warning(), do: "⚠️" def one_test_pass(), do: "✅" def one_test_fail(), do: "❌" def all_test_pass(), do: "💜 💜 💜" def any_test_fail(), do: "🔥 🔥 🔥" end
14.555556
34
0.553435
b24481de8a16c06f0084812033338a125d1466fe
2,207
exs
Elixir
2021/day22.exs
princemaple/aoc
325dd12c8b5b827458214846f184e07a6cfbdf34
[ "MIT" ]
1
2021-12-13T00:31:09.000Z
2021-12-13T00:31:09.000Z
2021/day22.exs
princemaple/aoc
325dd12c8b5b827458214846f184e07a6cfbdf34
[ "MIT" ]
null
null
null
2021/day22.exs
princemaple/aoc
325dd12c8b5b827458214846f184e07a6cfbdf34
[ "MIT" ]
null
null
null
# Title: Day22 # ── Untitled ── data = "input" |> IO.getn(1_000_000) |> String.trim() |> String.split(["\r\n", "\n"], trim: true) |> Enum.map(fn line -> line |> String.split() |> then(fn [on_off, coords] -> coords |> String.replace(~r/x=|y=|z=/, "") |> String.spl...
23.231579
91
0.456729
b24484b0437ea4e004466fc94540b2340db376d2
473
ex
Elixir
solomon/web/views/system_view.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
solomon/web/views/system_view.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
solomon/web/views/system_view.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
defmodule Solomon.SystemView do use Solomon.Web, :view alias Solomon.SystemView def render("index.json", %{systems: systems}) do %{systems: render_many(systems, SystemView, "system.json")} end def render("show.json", %{system: system}) do %{system: render_one(system, SystemView, "system.json")} en...
23.65
63
0.668076
b244c4cce321d0624a75eadf396eeb28f5f40fea
1,929
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_stored_type.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_stored_type.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_stored_type.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...
37.823529
236
0.748574
b244fa17b92ebc2980549e546e0b42decb841d75
774
ex
Elixir
lib/la_famiglia_web/controllers/villa_controller.ex
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
5
2016-10-20T10:00:59.000Z
2017-11-19T08:14:18.000Z
lib/la_famiglia_web/controllers/villa_controller.ex
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
39
2020-04-22T05:27:32.000Z
2022-03-13T17:22:26.000Z
lib/la_famiglia_web/controllers/villa_controller.ex
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
null
null
null
defmodule LaFamigliaWeb.VillaController do use LaFamiglia.Web, :controller alias LaFamiglia.Villa def index(conn, _params) do conn |> assign(:villas, assoc(conn.assigns.current_player, :villas) |> Repo.all()) |> render("index.html") end # Matching the id is not necessary here as that is done im...
29.769231
86
0.711886
b245389e1e25fd597a64662976547d9e7d2cbafe
1,546
exs
Elixir
test/libexample/real_github_client_test.exs
paulanthonywilson/libexample
fb58a407fc0095988a29e41176522ea418e74138
[ "MIT" ]
null
null
null
test/libexample/real_github_client_test.exs
paulanthonywilson/libexample
fb58a407fc0095988a29e41176522ea418e74138
[ "MIT" ]
null
null
null
test/libexample/real_github_client_test.exs
paulanthonywilson/libexample
fb58a407fc0095988a29e41176522ea418e74138
[ "MIT" ]
null
null
null
defmodule Libexample.RealGithubClientTest do use ExUnit.Case, async: true alias Libexample.RealGithubClient import Mox setup :verify_on_exit! test "url, parameters, and options sent to Github" do Mox.expect(MockHTTPoison, :get, fn request, _headers, options -> assert request == "https://api.githu...
33.608696
103
0.60608
b2453a765e9d9598584e52a4496b7caa1d79db20
1,738
ex
Elixir
debian/manpage.1.ex
Xento/hmcfgusb
6d7c850828ffc939e2b3861a28d2a8d9d0db2274
[ "MIT" ]
1
2020-04-17T15:02:23.000Z
2020-04-17T15:02:23.000Z
debian/manpage.1.ex
Xento/hmcfgusb
6d7c850828ffc939e2b3861a28d2a8d9d0db2274
[ "MIT" ]
null
null
null
debian/manpage.1.ex
Xento/hmcfgusb
6d7c850828ffc939e2b3861a28d2a8d9d0db2274
[ "MIT" ]
1
2019-11-03T14:15:58.000Z
2019-11-03T14:15:58.000Z
.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH HMCFGUSB SECTION "June 19, 2014" .\" Please adjust this date whenever revising the m...
28.966667
70
0.672037
b24562bac95c2d576028a0d964ff14b8f27f6fa8
355
ex
Elixir
lib/farmbot/logger/supervisor.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
lib/farmbot/logger/supervisor.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
lib/farmbot/logger/supervisor.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
1
2020-12-16T16:39:32.000Z
2020-12-16T16:39:32.000Z
defmodule Farmbot.Logger.Supervisor do @moduledoc false use Supervisor def start_link do Supervisor.start_link(__MODULE__, [], name: __MODULE__) end def init([]) do children = [ worker(Farmbot.Logger, []), worker(Farmbot.Logger.Console, []) ] opts = [strategy: :one_for_one] s...
19.722222
59
0.661972
b245763aea79f5537405bcbb395274d5a1002045
2,721
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/circuit_breakers.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/circuit_breakers.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/circuit_breakers.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...
46.118644
224
0.729144
b2457f82b9b09dc3b7ac49059401b2cd9ab11533
59
ex
Elixir
web/views/user_view.ex
mindsigns/soroban
c56962e1164a51cb5e383bbbfda880f098f181f1
[ "MIT" ]
1
2020-02-09T03:03:04.000Z
2020-02-09T03:03:04.000Z
web/views/user_view.ex
mindsigns/soroban
c56962e1164a51cb5e383bbbfda880f098f181f1
[ "MIT" ]
null
null
null
web/views/user_view.ex
mindsigns/soroban
c56962e1164a51cb5e383bbbfda880f098f181f1
[ "MIT" ]
null
null
null
defmodule Soroban.UserView do use Soroban.Web, :view end
14.75
29
0.779661
b245df5baf6198f0835c1eaed20415b69d3377e3
1,066
ex
Elixir
lib/ingram_marketplace/model/get_customer_details.ex
fbettag/ingram_marketplace.ex
1c63d391707058fb8cf58fdefd54e2ade97acf4b
[ "MIT" ]
null
null
null
lib/ingram_marketplace/model/get_customer_details.ex
fbettag/ingram_marketplace.ex
1c63d391707058fb8cf58fdefd54e2ade97acf4b
[ "MIT" ]
null
null
null
lib/ingram_marketplace/model/get_customer_details.ex
fbettag/ingram_marketplace.ex
1c63d391707058fb8cf58fdefd54e2ade97acf4b
[ "MIT" ]
null
null
null
defmodule Ingram.Marketplace.Model.GetCustomerDetails do @moduledoc """ The extended representation of a specific customer with additional arrays of addresses and contacts, and the preferred language of the customer. """ @derive [Poison.Encoder] defstruct [ :taxRegId, :id, :externalId, :name,...
27.333333
146
0.642589
b245df639eb7237c670e863fba0324ad4aa525b5
5,351
exs
Elixir
api/test/trello_clone_api/project/project_test.exs
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
1
2021-04-17T20:20:59.000Z
2021-04-17T20:20:59.000Z
api/test/trello_clone_api/project/project_test.exs
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
null
null
null
api/test/trello_clone_api/project/project_test.exs
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
null
null
null
defmodule TrelloCloneApi.ProjectTest do use TrelloCloneApi.DataCase alias TrelloCloneApi.Project describe "boards" do alias TrelloCloneApi.Project.Board test "list_boards/1 returns all boards" do board = insert(:board) assert Project.list_boards(board.project_id) == [board] end te...
32.23494
98
0.646234
b246051b736612e46fd89f3163ffa74cf8210164
13,069
ex
Elixir
lib/hexpm_web/router.ex
LoisSotoLopez/hexpm
570558cea855e2928e6f573e7322d0dc63e6f21d
[ "Apache-2.0" ]
2
2020-03-01T18:23:33.000Z
2021-01-15T10:15:45.000Z
lib/hexpm_web/router.ex
LoisSotoLopez/hexpm
570558cea855e2928e6f573e7322d0dc63e6f21d
[ "Apache-2.0" ]
3
2020-06-30T11:24:41.000Z
2020-08-05T15:47:34.000Z
lib/hexpm_web/router.ex
LoisSotoLopez/hexpm
570558cea855e2928e6f573e7322d0dc63e6f21d
[ "Apache-2.0" ]
null
null
null
defmodule HexpmWeb.Router do use HexpmWeb, :router use Plug.ErrorHandler import Phoenix.LiveDashboard.Router alias Hexpm.Accounts.{Organization, User} @accepted_formats ~w(json elixir erlang) pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_f...
35.70765
97
0.692172
b24626ce32ab1523c2c053143fdfa1626906764c
7,818
ex
Elixir
lib/elixir/lib/task.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/elixir/lib/task.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/task.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
defmodule Task do @moduledoc """ Conveniences for spawning and awaiting for tasks. Tasks are processes meant to execute one particular action throughout their life-cycle, often with little or no communication with other processes. The most common use case for tasks is to compute a value asynchronously: ...
30.658824
92
0.666795
b2462d0f4785d2f08c68b88464fff077b6fc9752
511
ex
Elixir
lib/hl7/2.4/segments/tcd.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/tcd.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/tcd.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.Segments.TCD do @moduledoc false require Logger alias HL7.V2_4.{DataTypes} use HL7.Segment, fields: [ segment: nil, universal_service_identifier: DataTypes.Ce, auto_dilution_factor: DataTypes.Sn, rerun_dilution_factor: DataTypes.Sn, pre_dilution_factor: Dat...
25.55
63
0.72407
b24643c59d0b2840a770ea1c32fc26d16959befd
673
exs
Elixir
mix.exs
ironbay/urchin
505f904e2dd3443f647a824c98c6ee373204197e
[ "MIT" ]
null
null
null
mix.exs
ironbay/urchin
505f904e2dd3443f647a824c98c6ee373204197e
[ "MIT" ]
null
null
null
mix.exs
ironbay/urchin
505f904e2dd3443f647a824c98c6ee373204197e
[ "MIT" ]
null
null
null
defmodule Urchin.MixProject do use Mix.Project def project do [ app: :urchin, version: "0.1.0", elixir: "~> 1.6-dev", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_a...
21.709677
88
0.578009
b2467172164dd3a50a5fecd4ca4e9539cd54e80e
418
ex
Elixir
lib/axon/defn.ex
MortadaAK/axon
42fb2f0d49d0e842653bc18951c5e4e0414e6462
[ "Apache-2.0" ]
null
null
null
lib/axon/defn.ex
MortadaAK/axon
42fb2f0d49d0e842653bc18951c5e4e0414e6462
[ "Apache-2.0" ]
null
null
null
lib/axon/defn.ex
MortadaAK/axon
42fb2f0d49d0e842653bc18951c5e4e0414e6462
[ "Apache-2.0" ]
null
null
null
defmodule Axon.Defn do @moduledoc false # A defn identity compiler for yielding an expression # given a numerical definition # # This is useful for implementing `nx` layers because # we need the output shape of the given function @behaviour Nx.Defn.Compiler @impl true def __async__(_, _, _, _), do:...
23.222222
57
0.708134
b246a5fa005026e939d10f168ab7ce0d5b6667dc
773
ex
Elixir
apps/dashboard/lib/dashboard_web/live/config_live.ex
Arp-G/csv2sql
21c7310d768afa38282708120af07bb66c8c3f42
[ "MIT" ]
26
2020-09-13T13:54:59.000Z
2022-03-30T08:12:55.000Z
apps/dashboard/lib/dashboard_web/live/config_live.ex
Arp-G/csv2sql
21c7310d768afa38282708120af07bb66c8c3f42
[ "MIT" ]
11
2020-10-18T14:27:16.000Z
2022-03-19T09:11:31.000Z
apps/dashboard/lib/dashboard_web/live/config_live.ex
Arp-G/csv2sql
21c7310d768afa38282708120af07bb66c8c3f42
[ "MIT" ]
1
2021-12-22T14:10:16.000Z
2021-12-22T14:10:16.000Z
defmodule DashboardWeb.ConfigLive do use DashboardWeb, :live_view alias DashboardWeb.Helper.ConfigHelper @impl true def mount(_params, _session, socket) do inital_config = ConfigHelper.get_config_from_cache() {:ok, assign(socket, config: inital_config )} end @impl true def hand...
20.891892
66
0.61837
b246b00ca9c5cc7f660a9b2c54ebd76a58c03728
2,117
exs
Elixir
mix.exs
versus-systems/shopifex
48b1e7e6b3b5cf31010097ad768325f783168124
[ "Apache-2.0" ]
null
null
null
mix.exs
versus-systems/shopifex
48b1e7e6b3b5cf31010097ad768325f783168124
[ "Apache-2.0" ]
null
null
null
mix.exs
versus-systems/shopifex
48b1e7e6b3b5cf31010097ad768325f783168124
[ "Apache-2.0" ]
null
null
null
defmodule Shopifex.MixProject do use Mix.Project def project do [ app: :shopifex, version: "0.5.4", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, compilers: [:phoenix, :gettext] ++ Mix.compilers(), deps: deps(), aliases: aliases(), elixirc_paths: elixir...
27.493506
132
0.549835
b246b50d10cdbc87cc864ad27cecc004de510f80
1,691
exs
Elixir
test/xandra/type_parser_test.exs
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
318
2017-01-17T13:24:29.000Z
2022-03-17T20:31:39.000Z
test/xandra/type_parser_test.exs
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
117
2017-01-17T14:20:15.000Z
2022-03-30T11:22:32.000Z
test/xandra/type_parser_test.exs
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
49
2017-02-06T19:18:03.000Z
2022-03-22T13:08:46.000Z
defmodule Xandra.TypeParserTest do use ExUnit.Case, async: true import Xandra.TypeParser, only: [parse: 1] test "parse/1 with valid types" do assert parse("uuid") == :uuid assert parse("text") == :text assert parse("list<int>") == {:list, [:int]} assert parse("map<int, text>") == {:map, [:int, :...
30.745455
98
0.544648
b246d37a511da03f501bbf22dde826aab6f9bb96
1,896
exs
Elixir
test/controller/load/report/report_tps_test.exs
da-nikolaev/elm
2012648b0488a424c35b29f6db895446ac902ef4
[ "MIT" ]
null
null
null
test/controller/load/report/report_tps_test.exs
da-nikolaev/elm
2012648b0488a424c35b29f6db895446ac902ef4
[ "MIT" ]
null
null
null
test/controller/load/report/report_tps_test.exs
da-nikolaev/elm
2012648b0488a424c35b29f6db895446ac902ef4
[ "MIT" ]
null
null
null
defmodule ELM.Load.Report.TransPerSecondTest do alias ELM.Load.Report.TransPerSecond, as: Report use ExUnit.Case, async: true doctest Report test "Transactions per second test" do assert Report.get_report_timeline(0, 0) == [] Report.update_report([ {0_500_000, "UserA", "login", :tran_completed, ...
32.689655
89
0.494198
b246d81b950c6cd0b25ba29d2be03e9f98c401a0
1,373
ex
Elixir
lib/changelog_web/controllers/news_issue_controller.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
lib/changelog_web/controllers/news_issue_controller.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
lib/changelog_web/controllers/news_issue_controller.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule ChangelogWeb.NewsIssueController do use ChangelogWeb, :controller alias Changelog.{NewsIssue, NewsItem} plug :put_layout, false def show(conn, %{"id" => slug}) do issue = NewsIssue.published() |> NewsIssue.preload_all() |> Repo.get_by!(slug: slug) conn |> assign(:issu...
25.425926
85
0.662054