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
914859b3e963872865078f040e7da5a8e0b90b18
383
exs
Elixir
test/channel_test.exs
lainor/amqpx
a1327978ba000eeba9d9badb354833ebe23f2a36
[ "MIT" ]
null
null
null
test/channel_test.exs
lainor/amqpx
a1327978ba000eeba9d9badb354833ebe23f2a36
[ "MIT" ]
null
null
null
test/channel_test.exs
lainor/amqpx
a1327978ba000eeba9d9badb354833ebe23f2a36
[ "MIT" ]
null
null
null
defmodule ChannelTest do use ExUnit.Case alias Amqpx.{Channel, Connection} setup do {:ok, conn} = Connection.open(Application.get_env(:amqpx, :amqp_connection)) on_exit(fn -> :ok = Connection.close(conn) end) {:ok, conn: conn} end test "open channel", meta do assert {:ok, chan} = Channel.op...
22.529412
80
0.665796
9148849cd21205c2d150c747e18c1c1baddbf2a3
977
exs
Elixir
test/banchan_web/live/denizen_live/show_test.exs
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
test/banchan_web/live/denizen_live/show_test.exs
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
test/banchan_web/live/denizen_live/show_test.exs
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule BanchanWeb.DenizenLive.ShowTest do @moduledoc """ Tests for the user profile page. """ use BanchanWeb.ConnCase import Banchan.AccountsFixtures import Phoenix.LiveViewTest alias BanchanWeb.Router.Helpers, as: Routes setup do %{user: user_fixture()} end describe "view profile page" d...
26.405405
94
0.679632
914887acd0ab68b5a2ffc61121c013b2280b5972
1,791
ex
Elixir
lib/sengo_web/controllers/user_reset_password_controller.ex
henrikcoll/sengo
d5ef840843bffbc858dc18d331e4ebc74e6837cb
[ "MIT" ]
null
null
null
lib/sengo_web/controllers/user_reset_password_controller.ex
henrikcoll/sengo
d5ef840843bffbc858dc18d331e4ebc74e6837cb
[ "MIT" ]
null
null
null
lib/sengo_web/controllers/user_reset_password_controller.ex
henrikcoll/sengo
d5ef840843bffbc858dc18d331e4ebc74e6837cb
[ "MIT" ]
null
null
null
defmodule SengoWeb.UserResetPasswordController do use SengoWeb, :controller alias Sengo.Accounts plug :get_user_by_reset_password_token when action in [:edit, :update] def new(conn, _params) do render(conn, "new.html") end def create(conn, %{"user" => %{"email" => email}}) do if user = Accounts....
29.85
119
0.663875
9148929995af91dccaff3f26534fb3287dd2bc07
3,112
ex
Elixir
lib/hangman.ex
swedgwood/hangman-elixir
ced9736fc7b1f29a87f5d57d0a0d5999b4325935
[ "MIT" ]
1
2018-02-21T21:35:33.000Z
2018-02-21T21:35:33.000Z
lib/hangman.ex
shadycake/hangman-elixir
ced9736fc7b1f29a87f5d57d0a0d5999b4325935
[ "MIT" ]
null
null
null
lib/hangman.ex
shadycake/hangman-elixir
ced9736fc7b1f29a87f5d57d0a0d5999b4325935
[ "MIT" ]
null
null
null
defmodule HangMan do def create_state(word \\ "Enter word: " |> IO.gets |> String.trim("\n")) do [ alphabet: for(x <- 97..122, into: %{}, do: {<<x>>, 0}), word: word |> String.graphemes, lives: 5 ] end def guess(state, letter) do if Keyword.get(state, :alphabet) |> Map.get(letter) =...
23.051852
109
0.383997
9148939aa3dd8dc6e6a44bcdf818aa9d6da23d27
1,055
ex
Elixir
lib/phoenix_live_view/socket.ex
simonprev/phoenix_live_view
55a54726650e53ac68c30fc9b49d2a5895ce2053
[ "MIT" ]
1
2021-03-24T15:13:06.000Z
2021-03-24T15:13:06.000Z
lib/phoenix_live_view/socket.ex
simonprev/phoenix_live_view
55a54726650e53ac68c30fc9b49d2a5895ce2053
[ "MIT" ]
null
null
null
lib/phoenix_live_view/socket.ex
simonprev/phoenix_live_view
55a54726650e53ac68c30fc9b49d2a5895ce2053
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.Socket do @moduledoc """ The LiveView socket for Phoenix Endpoints. """ use Phoenix.Socket if Version.match?(System.version(), ">= 1.8.0") do @derive {Inspect, only: [:id, :endpoint, :view, :parent_pid, :root_id, :assigns, :changed]} end defstruct id: nil, endp...
24.534884
95
0.598104
9148953c17f80b832bb9602a10817599632077d4
1,521
exs
Elixir
mix.exs
veverkap/coherence_social
45752db88b5c7c8220c96c4828adf58acf0a98d8
[ "MIT" ]
null
null
null
mix.exs
veverkap/coherence_social
45752db88b5c7c8220c96c4828adf58acf0a98d8
[ "MIT" ]
null
null
null
mix.exs
veverkap/coherence_social
45752db88b5c7c8220c96c4828adf58acf0a98d8
[ "MIT" ]
null
null
null
defmodule CoherenceSocial.Mixfile do use Mix.Project @version "0.0.1" def project do [app: :coherence_social, version: @version, elixir: "~> 1.3", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, start_permanent: Mix.env == :prod, build_e...
28.166667
77
0.60092
9148a6d222d801850017516bf1012b2ce6d66e14
122
exs
Elixir
test/nidavellir_test.exs
GabrielMalakias/nidavellir
9e786f6813aa3e014f44bdedbf88a7c8259fe1f9
[ "MIT" ]
1
2021-01-20T04:15:01.000Z
2021-01-20T04:15:01.000Z
test/nidavellir_test.exs
GabrielMalakias/nidavellir
9e786f6813aa3e014f44bdedbf88a7c8259fe1f9
[ "MIT" ]
null
null
null
test/nidavellir_test.exs
GabrielMalakias/nidavellir
9e786f6813aa3e014f44bdedbf88a7c8259fe1f9
[ "MIT" ]
null
null
null
defmodule NidavellirTest do use ExUnit.Case doctest Nidavellir test "the truth" do assert 1 + 1 == 2 end end
13.555556
27
0.688525
9148cdf593d1c4aff2518b2da2b81ded09e011d4
6,333
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_build_options.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_build_options.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_build_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...
59.186916
572
0.727459
9148e9142836eb8af72ef17c927bdb2591215fdb
658
ex
Elixir
lib/flamelex/utils/runtime_tools.ex
JediLuke/flamelex
b38d1171b8f93375d8dc59f1710442860b6c8580
[ "Apache-2.0" ]
10
2021-03-02T20:05:13.000Z
2022-03-14T21:10:39.000Z
lib/flamelex/utils/runtime_tools.ex
JediLuke/franklin
8eb77a342547de3eb43d28dcf9f835ff443ad489
[ "Apache-2.0" ]
2
2021-12-14T18:29:44.000Z
2021-12-23T20:38:27.000Z
lib/flamelex/utils/runtime_tools.ex
JediLuke/franklin
8eb77a342547de3eb43d28dcf9f835ff443ad489
[ "Apache-2.0" ]
2
2021-12-05T20:41:26.000Z
2021-12-26T01:46:42.000Z
defmodule Flamelex.Utils.RuntimeTools do @moduledoc """ Some convenience functions for handling some situations during run-time. """ @doc """ Return the root """ def project_root_dir do readme_filepath = File.cwd! <> "/README.md" #NOTE: this only works from the root directory of the Flamelex project....
34.631579
155
0.715805
914902a6254af5dbeb917cc3912be54e476f9bd5
2,435
ex
Elixir
clients/os_config/lib/google_api/os_config/v1/model/vulnerability_report.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/os_config/lib/google_api/os_config/v1/model/vulnerability_report.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/vulnerability_report.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...
41.982759
288
0.73963
914945816cb530a249276f92a52db192356b2cd3
383
ex
Elixir
lib/mango/catalog/catalog.ex
jacruzca/mango
9978dc609ed1fc86aa40386e35fae06cb95f80fc
[ "MIT" ]
null
null
null
lib/mango/catalog/catalog.ex
jacruzca/mango
9978dc609ed1fc86aa40386e35fae06cb95f80fc
[ "MIT" ]
null
null
null
lib/mango/catalog/catalog.ex
jacruzca/mango
9978dc609ed1fc86aa40386e35fae06cb95f80fc
[ "MIT" ]
null
null
null
defmodule Mango.Catalog do alias Mango.Catalog.Product alias Mango.Repo def list_products do Product |> Repo.all end def list_seasonal_products do list_products() |> Enum.filter(fn product -> product.is_seasonal end) end def get_category_products(name) do list_products() |> Enu...
18.238095
62
0.70235
91497099bdd8faa1c781b74456871a044cba6f50
13,466
ex
Elixir
lib/zstream/protocol.ex
subsetpark/zstream
80924ce3563d1c4906abd7ff643e46b21d741062
[ "MIT" ]
null
null
null
lib/zstream/protocol.ex
subsetpark/zstream
80924ce3563d1c4906abd7ff643e46b21d741062
[ "MIT" ]
null
null
null
lib/zstream/protocol.ex
subsetpark/zstream
80924ce3563d1c4906abd7ff643e46b21d741062
[ "MIT" ]
1
2021-12-14T22:54:05.000Z
2021-12-14T22:54:05.000Z
defmodule Zstream.Protocol do @moduledoc """ ZIP file format module, including support for Zip64. Adapted from the gist at https://gist.github.com/izelnakri/54361617af44b75895205f2a6c87cf27 """ use Bitwise @four_byte_max_uint 0xFFFFFFFF @two_byte_max_uint 0xFFFF @reader_version 20 @writer_version...
33.167488
98
0.583172
9149915fa1d51f3f2feab59e08f7de49d6802038
7,650
ex
Elixir
web/controllers/shopping_list_controller.ex
blacksph3re/alastair2
51fcd8fe666ae768dd8371b2c7835dd294eeddaf
[ "Apache-2.0" ]
null
null
null
web/controllers/shopping_list_controller.ex
blacksph3re/alastair2
51fcd8fe666ae768dd8371b2c7835dd294eeddaf
[ "Apache-2.0" ]
null
null
null
web/controllers/shopping_list_controller.ex
blacksph3re/alastair2
51fcd8fe666ae768dd8371b2c7835dd294eeddaf
[ "Apache-2.0" ]
1
2017-12-15T15:49:16.000Z
2017-12-15T15:49:16.000Z
defmodule Alastair.ShoppingListController do use Alastair.Web, :controller alias Alastair.Meal alias Alastair.ShoppingListNote defp multiply_person_count(recipe) do factor = recipe.real_person_count / recipe.person_count %{recipe | recipes_ingredients: Enum.map(recipe.recipes_ingredients, fn(ri) -> Ma...
38.832487
178
0.617516
9149989903ffeb094d4dbe9c72ba107f209bc7b7
34
ex
Elixir
lib/vex/validators.ex
jtmoulia/vex
78161e174777cb2d0d808326afe619fb893da8d1
[ "MIT" ]
null
null
null
lib/vex/validators.ex
jtmoulia/vex
78161e174777cb2d0d808326afe619fb893da8d1
[ "MIT" ]
null
null
null
lib/vex/validators.ex
jtmoulia/vex
78161e174777cb2d0d808326afe619fb893da8d1
[ "MIT" ]
null
null
null
defmodule Vex.Validators do end
11.333333
27
0.794118
9149dcd4ea086d559824a0a9f0a66f04978b6219
28
ex
Elixir
lib/refraction.ex
asgan/refraction
6955222797afb00798c8d63639795880ad695c93
[ "Unlicense" ]
1
2021-01-18T02:21:01.000Z
2021-01-18T02:21:01.000Z
lib/refraction.ex
asgan/refraction
6955222797afb00798c8d63639795880ad695c93
[ "Unlicense" ]
1
2020-12-31T16:44:45.000Z
2020-12-31T16:44:45.000Z
lib/refraction.ex
asgan/refraction
6955222797afb00798c8d63639795880ad695c93
[ "Unlicense" ]
1
2021-02-08T16:01:41.000Z
2021-02-08T16:01:41.000Z
defmodule Refraction do end
9.333333
23
0.857143
914a0d1efce4eba487db8709a5bce6f60d3e2b39
2,052
ex
Elixir
clients/content/lib/google_api/content/v21/model/orderreports_list_disbursements_response.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/content/lib/google_api/content/v21/model/orderreports_list_disbursements_response.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/orderreports_list_disbursements_response.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...
38.716981
168
0.739279
914a121a63572175cb21542a8ab07aa670d43fcb
2,195
ex
Elixir
apps/xomg_tasks/lib/utils.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/xomg_tasks/lib/utils.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/xomg_tasks/lib/utils.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 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 ...
25.823529
83
0.666059
914a3fe8d2f451e4c2fe0be7554942dddd0732a0
882
ex
Elixir
clients/indexing/lib/google_api/indexing/v3/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/indexing/lib/google_api/indexing/v3/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/indexing/lib/google_api/indexing/v3/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...
32.666667
74
0.758503
914a4d7d6f412c809672682facbc6447ec6c0642
2,125
exs
Elixir
test/lib/code_corps/stripe_service/adapters/stripe_event_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/stripe_service/adapters/stripe_event_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/stripe_service/adapters/stripe_event_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.StripeService.Adapters.StripeEventTest do use CodeCorps.ModelCase import CodeCorps.StripeService.Adapters.StripeEventAdapter, only: [to_params: 2] @stripe_event %Stripe.Event{ api_version: nil, created: nil, data: %{ object: %Stripe.Customer{ id: "cus_123", ...
26.234568
82
0.621647
914a4ff4b0e1ea84cc7ef8d05c975a1913143f12
944
exs
Elixir
config/test.exs
inaka/credo_server
fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa
[ "Apache-2.0" ]
12
2016-05-27T23:37:37.000Z
2019-11-09T04:03:03.000Z
config/test.exs
inaka/credo_server
fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa
[ "Apache-2.0" ]
18
2016-05-27T14:57:30.000Z
2016-09-20T17:05:22.000Z
config/test.exs
inaka/credo_server
fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa
[ "Apache-2.0" ]
1
2019-11-09T04:03:06.000Z
2019-11-09T04:03:06.000Z
use Mix.Config # Configure your database config :credo_server, CredoServer.Repo, adapter: Ecto.Adapters.Postgres, username: "postgres", password: "postgres", database: "credo_server_test", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox config :credo_server, :github_scope, "repo,user:email" config ...
41.043478
106
0.805085
914a649dcf67e7423ebeb1c7a3be398474fc5920
1,846
ex
Elixir
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/search_groups_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/search_groups_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/search_groups_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...
36.92
170
0.738895
914a67a8150420f420eb04356e65ade56be7108f
327
exs
Elixir
lib/nap/ets_test.exs
mindreframer/nap
ea1951c830061b6aa880a6ed00a80b7e8870c5fa
[ "MIT" ]
null
null
null
lib/nap/ets_test.exs
mindreframer/nap
ea1951c830061b6aa880a6ed00a80b7e8870c5fa
[ "MIT" ]
null
null
null
lib/nap/ets_test.exs
mindreframer/nap
ea1951c830061b6aa880a6ed00a80b7e8870c5fa
[ "MIT" ]
null
null
null
defmodule Nap.EtsTest do use ExUnit.Case describe "all" do test "all" do table = :mytest Nap.Ets.reset_table(table) Nap.Ets.put(table, {:first, 1}, "value") assert Nap.Ets.get(table, {:first, 1}) == {:ok, "value"} assert Nap.Ets.get(table, {:first, 2}) == {:error, nil} end e...
23.357143
62
0.58104
914aa92d81f5f5db415737d71733ccd1bfb34814
1,790
ex
Elixir
lib/bitpal_web/live/invoice_live.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
5
2021-05-04T21:28:00.000Z
2021-12-01T11:19:48.000Z
lib/bitpal_web/live/invoice_live.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
71
2021-04-21T05:48:49.000Z
2022-03-23T06:30:37.000Z
lib/bitpal_web/live/invoice_live.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
1
2021-04-25T10:35:41.000Z
2021-04-25T10:35:41.000Z
defmodule BitPalWeb.InvoiceLive do use BitPalWeb, :live_view alias BitPal.Accounts.Users alias BitPal.InvoiceEvents alias BitPal.InvoiceManager alias BitPal.Invoices alias BitPal.Repo alias BitPal.Stores require Logger on_mount(BitPalWeb.UserLiveAuth) @impl true def mount(%{"id" => invoice_id}, ...
28.412698
72
0.684916
914ab804e882e5d660244ada72368f015c2825e5
1,546
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/get_customer_user_stats_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/get_customer_user_stats_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/get_customer_user_stats_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...
32.893617
103
0.752911
914ac93c915ac823272dfa59c2da900f4f1165d9
353
exs
Elixir
priv/repo/seeds.exs
longnd/elixir-gscraper
894570afd89e54b80ca591a56a182da55ac6ee61
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
longnd/elixir-gscraper
894570afd89e54b80ca591a56a182da55ac6ee61
[ "MIT" ]
25
2021-03-23T07:27:21.000Z
2021-10-31T15:09:52.000Z
priv/repo/seeds.exs
longnd/elixir-gscraper
894570afd89e54b80ca591a56a182da55ac6ee61
[ "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: # # Gscraper.Repo.insert!(%Gscraper.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they wi...
29.416667
61
0.708215
914ad1db585b5f2d8c90c3470b08fb717983bc69
553
ex
Elixir
lib/rambla/application.ex
am-kantox/rambla
961e7213da43cba7ce9d2f5f5010f3a647ea5adc
[ "MIT" ]
4
2020-05-25T05:46:05.000Z
2020-06-22T15:23:51.000Z
lib/rambla/application.ex
am-kantox/rambla
961e7213da43cba7ce9d2f5f5010f3a647ea5adc
[ "MIT" ]
3
2020-10-08T05:41:47.000Z
2021-05-13T05:53:30.000Z
lib/rambla/application.ex
am-kantox/rambla
961e7213da43cba7ce9d2f5f5010f3a647ea5adc
[ "MIT" ]
1
2020-05-07T15:05:33.000Z
2020-05-07T15:05:33.000Z
defmodule Rambla.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do Application.ensure_all_started(:telemetry) :logger.add_primary_filter( :ignore_rabbitmq_progress_reports, ...
23.041667
63
0.705244
914ae6e1c835dc595230ec0f7c10e33995ead347
768
ex
Elixir
lib/ielixir/supervisor.ex
Ljzn/IElixir
af10a9e412823e6b0a2bb073667ee9c8cd6d3197
[ "Apache-2.0" ]
363
2015-07-12T07:36:38.000Z
2022-03-23T22:48:41.000Z
lib/ielixir/supervisor.ex
Ljzn/IElixir
af10a9e412823e6b0a2bb073667ee9c8cd6d3197
[ "Apache-2.0" ]
51
2015-07-30T08:40:46.000Z
2021-12-03T09:18:58.000Z
lib/ielixir/supervisor.ex
Ljzn/IElixir
af10a9e412823e6b0a2bb073667ee9c8cd6d3197
[ "Apache-2.0" ]
50
2015-07-30T05:31:58.000Z
2021-12-03T09:15:58.000Z
defmodule IElixir.Supervisor do @moduledoc """ This is supervisor module. Takes care if everything is working. """ alias IElixir use Supervisor require Logger @doc false def start_link(opts) do Supervisor.start_link(__MODULE__, opts, name: Supervisor) end @doc false def init(opts) do ch...
23.272727
65
0.65625
914b196053797dcd725af6194829ea8136e68f21
2,537
ex
Elixir
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/unclaim_device_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/unclaim_device_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/unclaim_device_request.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...
43
191
0.735514
914b1c705462470346d60b22eca83c074939304a
2,331
ex
Elixir
clients/content/lib/google_api/content/v21/model/returnpolicy_custom_batch_request_entry.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/returnpolicy_custom_batch_request_entry.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/returnpolicy_custom_batch_request_entry.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.508475
175
0.707422
914b1fffe3e4de0ad62fc383486d57b649b39d31
5,161
ex
Elixir
kousa/lib/onion/room_chat.ex
CodeRustyPro/dogehouse
aec2f6a49588502f09afe17926f8a9cbcc323d81
[ "MIT" ]
1
2021-04-05T05:28:19.000Z
2021-04-05T05:28:19.000Z
kousa/lib/onion/room_chat.ex
CodeRustyPro/dogehouse
aec2f6a49588502f09afe17926f8a9cbcc323d81
[ "MIT" ]
null
null
null
kousa/lib/onion/room_chat.ex
CodeRustyPro/dogehouse
aec2f6a49588502f09afe17926f8a9cbcc323d81
[ "MIT" ]
null
null
null
defmodule Onion.RoomChat do use GenServer, restart: :temporary require Logger defmodule State do @type t :: %__MODULE__{ room_id: String.t(), users: [String.t()], ban_map: map(), last_message_map: map() } defstruct room_id: "", users: [], ban_ma...
28.357143
97
0.601046
914b24310d455247c759f2f2ed9c04e5d6517d03
432
ex
Elixir
web/controllers/product_category_controller.ex
anndream/phoenix-commerce
5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296
[ "MIT" ]
229
2016-09-21T09:24:46.000Z
2020-05-16T22:41:31.000Z
web/controllers/product_category_controller.ex
sadiqmmm/ex-shop
5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296
[ "MIT" ]
3
2016-09-21T10:26:50.000Z
2016-10-19T07:25:12.000Z
web/controllers/product_category_controller.ex
sadiqmmm/ex-shop
5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296
[ "MIT" ]
32
2016-09-22T05:19:05.000Z
2019-11-01T04:07:13.000Z
defmodule Ap.ProductCategoryController do use Ap.Web, :controller alias Ap.Product alias Ap.ProductCategory alias Ap.ProductImage def show(conn, %{"slug" => slug}) do category = Repo.get_by!(ProductCategory, slug: slug) |> Repo.preload(products: Product.default_order( [product_ima...
21.6
54
0.673611
914b34a7724f333187ceb97ec3d48d9d9154232b
817
ex
Elixir
lib/scrape.ex
SophisticaSean/scrape
3177c915af6672caa4710a961d0ea21ca5cf4bb7
[ "MIT" ]
2
2016-02-14T01:22:24.000Z
2016-08-22T16:52:01.000Z
lib/scrape.ex
SophisticaSean/scrape
3177c915af6672caa4710a961d0ea21ca5cf4bb7
[ "MIT" ]
null
null
null
lib/scrape.ex
SophisticaSean/scrape
3177c915af6672caa4710a961d0ea21ca5cf4bb7
[ "MIT" ]
1
2018-10-14T21:04:40.000Z
2018-10-14T21:04:40.000Z
defmodule Scrape do end defmodule Scrape.CLI do def main(args) do args |> parse_args |> execute end def parse_args(args) do IO.puts(args) options = OptionParser.parse(args, switches: []) case options do {[chan: chan], _, _} -> {:chan, chan} {[dir: dir], _, _} -> {:dir, dir} _ ...
20.948718
59
0.554468
914b822236c4f104c194d4f42a80181ed780228e
537
ex
Elixir
lib/membrane/event/discontinuity.ex
vKxni/membrane_core
d14a67304b63706d6df520fa306dd2fda147c07c
[ "Apache-2.0" ]
515
2018-06-18T11:09:44.000Z
2020-07-31T07:54:35.000Z
lib/membrane/event/discontinuity.ex
vKxni/membrane_core
d14a67304b63706d6df520fa306dd2fda147c07c
[ "Apache-2.0" ]
120
2018-06-07T08:34:06.000Z
2020-07-30T07:09:50.000Z
lib/membrane/event/discontinuity.ex
vKxni/membrane_core
d14a67304b63706d6df520fa306dd2fda147c07c
[ "Apache-2.0" ]
13
2018-07-27T11:58:15.000Z
2020-05-06T15:19:55.000Z
defmodule Membrane.Event.Discontinuity do @moduledoc """ Generic discontinuity event. This event means that flow of buffers in the stream was interrupted, but stream itself is not done. Frequent reasons for this are soundcards drops while capturing sound, network data loss etc. If duration of the disco...
25.571429
81
0.746741
914b88f3d203c1f90257de8a8b6f6c4e021f116a
2,305
exs
Elixir
mix.exs
rclex/rclex
978095d43c7bd18f20ab9e2ad2646a8201085db5
[ "Apache-2.0" ]
42
2021-05-05T09:11:33.000Z
2022-02-12T11:57:12.000Z
mix.exs
rclex/rclex
978095d43c7bd18f20ab9e2ad2646a8201085db5
[ "Apache-2.0" ]
49
2021-05-05T08:31:38.000Z
2022-03-22T10:39:57.000Z
mix.exs
rclex/rclex
978095d43c7bd18f20ab9e2ad2646a8201085db5
[ "Apache-2.0" ]
1
2021-05-31T09:28:37.000Z
2021-05-31T09:28:37.000Z
defmodule Rclex.MixProject do use Mix.Project @description """ ROS 2 Client Library for Elixir. """ @version "0.5.1" @source_url "https://github.com/rclex/rclex" def project do [ app: :rclex, version: @version, elixir: "~> 1.9", description: @description, package: pack...
24.010417
69
0.550542
914b8a6c4eb5dff958f3078c5145d9f47b6bb9d3
180
exs
Elixir
day_1.1.exs
yggie/advent-of-code-2015
414d8910714a592e0811a70ff35a2dc4ec4c73f5
[ "MIT" ]
null
null
null
day_1.1.exs
yggie/advent-of-code-2015
414d8910714a592e0811a70ff35a2dc4ec4c73f5
[ "MIT" ]
null
null
null
day_1.1.exs
yggie/advent-of-code-2015
414d8910714a592e0811a70ff35a2dc4ec4c73f5
[ "MIT" ]
null
null
null
input = Interface.read_input answer = input |> String.to_char_list |> Enum.reduce(0, fn (?(, total) -> total + 1 (?), total) -> total - 1 end) Interface.print_output(answer)
20
58
0.655556
914b9105188d90e56eed75197b2e6384b5ee2f5c
690
ex
Elixir
lib/plug/verify_request.ex
doomspork/concoction
54929f7228c099dcca48ab311ccae7236dd718c9
[ "MIT" ]
null
null
null
lib/plug/verify_request.ex
doomspork/concoction
54929f7228c099dcca48ab311ccae7236dd718c9
[ "MIT" ]
null
null
null
lib/plug/verify_request.ex
doomspork/concoction
54929f7228c099dcca48ab311ccae7236dd718c9
[ "MIT" ]
null
null
null
defmodule Concoction.Plug.VerifyRequest do defmodule IncompleteRequestError do @moduledoc """ Error raised when a required field is missing. """ defexception message: "", plug_status: 400 end def init(options), do: options def call(%Plug.Conn{request_path: path} = conn, opts) do if path i...
26.538462
81
0.676812
914b9c22df34050cb0f2959e34ec541d7d990bae
2,175
exs
Elixir
config/dev.exs
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
config/dev.exs
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
config/dev.exs
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Configure your database config :buy_the_food, BuyTheFood.Repo, username: "postgres", password: "postgres", database: "buy_the_food_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and c...
28.246753
68
0.696092
914bda0c11aec34d8911e347c34d1062380352f5
804
exs
Elixir
priv/repo/migrations/20190624081130_create_plans_and_products_in_stripe.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
priv/repo/migrations/20190624081130_create_plans_and_products_in_stripe.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
priv/repo/migrations/20190624081130_create_plans_and_products_in_stripe.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Repo.Migrations.CreatePlansAndProductsInStripe do use Ecto.Migration require Sanbase.Utils.Config alias Sanbase.Utils.Config alias Sanbase.Billing.{Product, Plan} alias Sanbase.Repo def up do Application.ensure_all_started(:tzdata) Application.ensure_all_started(:prometheus_ecto...
22.971429
82
0.717662
914bf49f3871eb00e9126fdd28f6f1d312c14c6c
86
ex
Elixir
lib/impl/lower_caser/any.ex
Ventup-IT/digger
60e4cf70ac5f4ab712d45448f8c7971a1db929b2
[ "MIT" ]
null
null
null
lib/impl/lower_caser/any.ex
Ventup-IT/digger
60e4cf70ac5f4ab712d45448f8c7971a1db929b2
[ "MIT" ]
null
null
null
lib/impl/lower_caser/any.ex
Ventup-IT/digger
60e4cf70ac5f4ab712d45448f8c7971a1db929b2
[ "MIT" ]
1
2021-11-09T14:20:08.000Z
2021-11-09T14:20:08.000Z
defimpl Digger.LowerCaser, for: Any do def lowercase_first(any, _opts), do: any end
21.5
42
0.755814
914c03a004cb177e4544cf984f247082d72b393e
706
ex
Elixir
MixProject/mssql_umbrella/apps/mssql_web/lib/mssql_web/gettext.ex
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
MixProject/mssql_umbrella/apps/mssql_web/lib/mssql_web/gettext.ex
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
MixProject/mssql_umbrella/apps/mssql_web/lib/mssql_web/gettext.ex
Dmdv/ElixirPlayground
02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1
[ "Apache-2.0" ]
null
null
null
defmodule MssqlWeb.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 MssqlWeb.Gettext # Simple translation gettext "Here is the s...
28.24
72
0.679887
914c0537d35101ba6e2621b25d005a5ea0211dad
1,744
ex
Elixir
lib/discord/discord.ex
zekroTJA/lookupex
547a275e087b1999e254d000234c21bb2dfe8a46
[ "MIT" ]
7
2021-05-20T12:30:45.000Z
2021-09-26T13:40:29.000Z
lib/discord/discord.ex
zekroTJA/lookupex
547a275e087b1999e254d000234c21bb2dfe8a46
[ "MIT" ]
null
null
null
lib/discord/discord.ex
zekroTJA/lookupex
547a275e087b1999e254d000234c21bb2dfe8a46
[ "MIT" ]
null
null
null
defmodule Lookupex.Discord do require Logger import Lookupex.Discord.Util def lookup(id, timeout \\ 10_000) do Task.Supervisor.async( Lookupex.Discord.Supervisor, fn -> lookup_blocking(id) end ) |> Task.await(timeout) end defp client do token = Application.get_env(:lookupex, Dis...
25.647059
93
0.588303
914c1333423b5746b705f52ab8485caad7a3843f
330
ex
Elixir
lib/elixero/core_api/models/common/error.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
84
2016-11-09T01:15:17.000Z
2022-01-06T02:55:35.000Z
lib/elixero/core_api/models/common/error.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
14
2017-03-10T04:16:07.000Z
2021-11-10T16:39:19.000Z
lib/elixero/core_api/models/common/error.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
18
2017-03-11T21:12:15.000Z
2022-02-22T20:07:10.000Z
defmodule EliXero.CoreApi.Models.Common.Error do use Ecto.Schema import Ecto.Changeset @derive {Poison.Encoder, except: [:__meta__, :id]} schema "errors" do field :Message, :string end def changeset(struct, data) do struct |> cast(data, [:Message]) ...
22
55
0.590909
914c2aa61d8a82803cc386ca405fc4cc0dfdca64
94
ex
Elixir
template/lib/application_name/views/pages.ex
brightroll/phoenix
b93022086322bcc1d797214a28e0c9710f537c22
[ "MIT" ]
null
null
null
template/lib/application_name/views/pages.ex
brightroll/phoenix
b93022086322bcc1d797214a28e0c9710f537c22
[ "MIT" ]
null
null
null
template/lib/application_name/views/pages.ex
brightroll/phoenix
b93022086322bcc1d797214a28e0c9710f537c22
[ "MIT" ]
null
null
null
defmodule <%= application_module %>.Views.Pages do use <%= application_module %>.Views end
18.8
50
0.723404
914c45504fdeac0896af1e6e03775de69c788b94
2,039
ex
Elixir
lib/tabi/accounts.ex
jeepers3327/tabi
b8b63b00231f1a0f3b274c57215436cc90a73561
[ "MIT" ]
1
2021-07-06T00:32:19.000Z
2021-07-06T00:32:19.000Z
lib/tabi/accounts.ex
jeepers3327/tabi
b8b63b00231f1a0f3b274c57215436cc90a73561
[ "MIT" ]
null
null
null
lib/tabi/accounts.ex
jeepers3327/tabi
b8b63b00231f1a0f3b274c57215436cc90a73561
[ "MIT" ]
null
null
null
defmodule Tabi.Accounts do @moduledoc """ The Accounts context. """ import Ecto.Query, warn: false alias Tabi.Repo alias Tabi.Accounts.User @doc """ Returns the list of users. ## Examples iex> list_users() [%User{}, ...] """ def list_users do Repo.all(User) end @doc """ ...
16.18254
59
0.545856
914c4b437c9d93143c178da438f2e8f0bc7b33af
4,769
ex
Elixir
apps/esperanto/lib/trybe/esperanto/walker.ex
betrybe/esperanto
65e40c28914397ef77f5d2c4c29001330beba19f
[ "Apache-2.0" ]
6
2021-07-19T20:00:22.000Z
2021-11-03T03:27:40.000Z
apps/esperanto/lib/trybe/esperanto/walker.ex
betrybe/esperanto
65e40c28914397ef77f5d2c4c29001330beba19f
[ "Apache-2.0" ]
null
null
null
apps/esperanto/lib/trybe/esperanto/walker.ex
betrybe/esperanto
65e40c28914397ef77f5d2c4c29001330beba19f
[ "Apache-2.0" ]
null
null
null
defmodule Esperanto.Walker do @moduledoc """ Walker is used to go through input couting line and columns. Every parser is responsible to walk and leave the walker in the state he can continue """ alias Esperanto.Barriers.NeverMatchBarrier require Logger defstruct [:input, rest: "", line: 1, column: 1, b...
25.232804
96
0.615643
914c705d34d51b032bb489f0ade2b453dfafcbf9
148
exs
Elixir
apps/tai/test/test_helper.exs
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/test/test_helper.exs
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/test/test_helper.exs
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
ExUnit.configure(formatters: [ExUnit.CLIFormatter, ExUnitNotifier]) Ecto.Adapters.SQL.Sandbox.mode(Tai.NewOrders.OrderRepo, :manual) ExUnit.start()
37
67
0.817568
914c87f1a8a92f7d58bd54c3399c185c1ad705c8
52,424
ex
Elixir
lib/cadet/assessments/assessments.ex
source-academy/backend
0074e1ab846a091ba3bbfbfb76660498b3e4b4be
[ "Apache-2.0" ]
3
2021-08-15T23:57:32.000Z
2022-02-02T06:50:55.000Z
lib/cadet/assessments/assessments.ex
source-academy/backend
0074e1ab846a091ba3bbfbfb76660498b3e4b4be
[ "Apache-2.0" ]
76
2021-07-05T07:13:52.000Z
2022-03-28T07:23:11.000Z
lib/cadet/assessments/assessments.ex
source-academy/backend
0074e1ab846a091ba3bbfbfb76660498b3e4b4be
[ "Apache-2.0" ]
1
2022-03-26T14:27:51.000Z
2022-03-26T14:27:51.000Z
defmodule Cadet.Assessments do @moduledoc """ Assessments context contains domain logic for assessments management such as missions, sidequests, paths, etc. """ use Cadet, [:context, :display] import Ecto.Query alias Cadet.Accounts.{Notification, Notifications, User, CourseRegistration} alias Cadet.Ass...
32.280788
163
0.596692
914d0475c8cb6aa39097f757350c34ea00882f76
84
ex
Elixir
lib/ecs/registry.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
lib/ecs/registry.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
lib/ecs/registry.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
defmodule ECS.Registry do @moduledoc """ A behaviour for registries. """ end
14
30
0.678571
914d5603381c4d14697db93420db6e5baca3359e
1,799
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/flight.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/flight.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/flight.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "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...
31.561404
78
0.709839
914d83704e0c0a46cc99ae46e425c842b9672b05
693
exs
Elixir
mix.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
912
2017-06-08T03:58:03.000Z
2021-09-06T03:42:07.000Z
mix.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
196
2017-06-09T23:32:16.000Z
2021-10-15T15:38:43.000Z
mix.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
78
2017-07-06T18:35:34.000Z
2020-04-12T08:10:45.000Z
defmodule ElixirLS.Mixfile do use Mix.Project def project do [ apps_path: "apps", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, build_per_environment: false, deps: deps(), elixir: ">= 1.7.0" ] end # Dependencies can be Hex packages: # ...
22.354839
79
0.616162
914d8f2376e985d17e39ffa0406f9ef0c5ad6bc8
1,074
ex
Elixir
lib/exq/adapters/queue.ex
JamesFerguson/exq
4457ea50ad4c8a6a7e127da5acafc130960822bb
[ "Apache-2.0" ]
null
null
null
lib/exq/adapters/queue.ex
JamesFerguson/exq
4457ea50ad4c8a6a7e127da5acafc130960822bb
[ "Apache-2.0" ]
null
null
null
lib/exq/adapters/queue.ex
JamesFerguson/exq
4457ea50ad4c8a6a7e127da5acafc130960822bb
[ "Apache-2.0" ]
null
null
null
defmodule Exq.Adapters.Queue do @moduledoc ~S""" Behaviour for creating Exq queue adapters ## Example defmodule Exq.Adapters.Queue.CustomAdapter do @behaviour Exq.Adapters.Queue def enqueue(pid, queue, worker, args, options) do {:ok, apply(worker, :perform, args)} end ...
33.5625
93
0.628492
914da5aa6df0035da9d2b9da5f55d0897a07b671
17,949
exs
Elixir
lib/mix/test/mix/umbrella_test.exs
howleysv/elixir
40f0f680160fe6cf8622eaceff3f67d617aac050
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/umbrella_test.exs
howleysv/elixir
40f0f680160fe6cf8622eaceff3f67d617aac050
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/umbrella_test.exs
howleysv/elixir
40f0f680160fe6cf8622eaceff3f67d617aac050
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Mix.UmbrellaTest do use MixTest.Case @moduletag apps: [:foo, :bar] test "apps_paths" do in_fixture("umbrella_dep/deps/umbrella", fn -> assert Mix.Project.apps_paths() == nil Mix.Project.in_project(:umbrella, ".", fn _ -> assert...
32.282374
97
0.580924
914dbea76be7e1729ec238b8112ed621c63ec510
1,004
exs
Elixir
config/test.exs
joakimk/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
27
2016-09-21T09:11:25.000Z
2020-12-16T04:04:50.000Z
config/test.exs
barsoom/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
2
2016-12-02T08:05:13.000Z
2020-03-27T08:07:59.000Z
config/test.exs
barsoom/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
4
2016-09-25T09:58:17.000Z
2020-04-27T15:07:36.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :review, Review.Endpoint, http: [port: 4001], server: true # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :review, auth_key: "sec...
25.74359
79
0.694223
914dd23b2460c84fbdaf467a727417e76f69e2de
69
exs
Elixir
test/test_helper.exs
ClubNix/familix
acedc6487e0b462ad5747fc3eb0acd6441a4b91c
[ "MIT" ]
1
2017-03-02T08:45:43.000Z
2017-03-02T08:45:43.000Z
test/test_helper.exs
minijackson/familix
acedc6487e0b462ad5747fc3eb0acd6441a4b91c
[ "MIT" ]
null
null
null
test/test_helper.exs
minijackson/familix
acedc6487e0b462ad5747fc3eb0acd6441a4b91c
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(Familix.Repo, :manual)
13.8
53
0.782609
914e15d91c4f15ff6bfca40384c5a1d55c0eebe7
7,438
exs
Elixir
test/xgit/repository/on_disk/ref_test.exs
scouten/xgit
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
94
2019-05-28T05:29:54.000Z
2022-02-18T20:03:20.000Z
test/xgit/repository/on_disk/ref_test.exs
scouten/xgit
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
156
2019-05-26T03:27:24.000Z
2020-10-08T05:44:26.000Z
test/xgit/repository/on_disk/ref_test.exs
scouten/redo
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
5
2019-05-28T16:35:55.000Z
2021-06-16T14:25:17.000Z
defmodule Xgit.Repository.OnDisk.RefTest do use Xgit.Repository.Test.RefTest, async: true alias Xgit.Object alias Xgit.Ref alias Xgit.Repository.Plumbing alias Xgit.Repository.Storage alias Xgit.Test.OnDiskRepoTestCase import FolderDiff setup do %{xgit_repo: repo, xgit_path: path} = OnDiskRepoTes...
30.991667
97
0.580532
914e506c2152518b446f13e023a20941513358a9
751
exs
Elixir
config/test.exs
jmnsf/exist_extras
1cb8a28908e1f0b35ba923be4471473bd7307238
[ "MIT" ]
3
2017-08-02T13:06:31.000Z
2020-01-20T19:53:30.000Z
config/test.exs
jmnsf/exist_extras
1cb8a28908e1f0b35ba923be4471473bd7307238
[ "MIT" ]
null
null
null
config/test.exs
jmnsf/exist_extras
1cb8a28908e1f0b35ba923be4471473bd7307238
[ "MIT" ]
null
null
null
use Mix.Config config :logger, compile_time_purge_level: :error config :maru, test: true config :maru, ExistExtras.Api, http: [port: 8888] config :exvcr, [ filter_sensitive_data: [ [pattern: "Bearer \\w+", placeholder: "Bearer ACCESS_TOKEN"] ] ] config :exist_extras, ExistExtras.Redis, endpoint: "red...
23.46875
64
0.748336
914e5de3b05c5ec968163e5718ccd2e43da18b99
1,807
ex
Elixir
lib/protox/define_enum.ex
xinz/protox
0baa4acd0ab6694fdb3d52fd875832c377028833
[ "MIT" ]
18
2017-03-02T16:46:10.000Z
2019-12-07T03:31:16.000Z
lib/protox/define_enum.ex
xinz/protox
0baa4acd0ab6694fdb3d52fd875832c377028833
[ "MIT" ]
8
2017-09-21T21:45:33.000Z
2020-05-13T18:54:01.000Z
lib/protox/define_enum.ex
xinz/protox
0baa4acd0ab6694fdb3d52fd875832c377028833
[ "MIT" ]
2
2018-02-26T13:13:08.000Z
2020-05-12T07:01:36.000Z
defmodule Protox.DefineEnum do @moduledoc false def define(enums) do for {enum_name, constants} <- enums do default_fun = make_enum_default(constants) encode_constants_funs = make_encode_enum_constants(constants) decode_constants_funs = make_decode_enum_constants(constants) module_ast ...
26.970149
94
0.646929
914e7fa774f949bf75caa50621b00c0f420ecae3
445
exs
Elixir
installer/templates/phx_single/config/test.exs
rafaelbiten/phoenix
d1cc7c0fd06c0a2484197a49c36cc27085c0c2e6
[ "MIT" ]
null
null
null
installer/templates/phx_single/config/test.exs
rafaelbiten/phoenix
d1cc7c0fd06c0a2484197a49c36cc27085c0c2e6
[ "MIT" ]
null
null
null
installer/templates/phx_single/config/test.exs
rafaelbiten/phoenix
d1cc7c0fd06c0a2484197a49c36cc27085c0c2e6
[ "MIT" ]
null
null
null
import Config # We don't run a server during test. If one is required, # you can enable the server option below. config :<%= @app_name %>, <%= @endpoint_module %>, http: [ip: {127, 0, 0, 1}, port: 4002], server: false<%= if @mailer do %> # In test we don't send emails. config :<%= @app_name %>, <%= @app_module %>...
29.666667
56
0.65618
914e9805442510b3f9faad5e73a93024f0ee0b1f
84
exs
Elixir
config/config.exs
ityonemo/multiverses_pubsub
3eb60d1c963f493d97ea960074bdd6f31477895f
[ "MIT" ]
1
2020-10-23T13:37:05.000Z
2020-10-23T13:37:05.000Z
config/config.exs
annatel/phoenix_helpers
90fa077c6ae10482edf219e886fdafd8ee77811d
[ "MIT" ]
null
null
null
config/config.exs
annatel/phoenix_helpers
90fa077c6ae10482edf219e886fdafd8ee77811d
[ "MIT" ]
null
null
null
import Config if Mix.env() == :test do config :phoenix, :json_library, Jason end
14
39
0.702381
914ef7dc68ab0a2bab6c9b957b560d0feb682cfa
564
ex
Elixir
lib/idService_web/views/changeset_view.ex
dougalcorn/id-server
a699cdc05a484faf498846d7d428921dfaecb978
[ "MIT" ]
null
null
null
lib/idService_web/views/changeset_view.ex
dougalcorn/id-server
a699cdc05a484faf498846d7d428921dfaecb978
[ "MIT" ]
null
null
null
lib/idService_web/views/changeset_view.ex
dougalcorn/id-server
a699cdc05a484faf498846d7d428921dfaecb978
[ "MIT" ]
null
null
null
defmodule IdServiceWeb.ChangesetView do use IdServiceWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `IdServiceWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changes...
28.2
65
0.741135
914f066adfc1899a6b26101c905d89b6f5199362
5,824
ex
Elixir
server/lib/protocol/transaction.ex
bitfeed-project/bitfeed
48b346ec18fa1be2e09a9e1f36ac10db9c0fab62
[ "MIT" ]
27
2022-01-01T14:58:22.000Z
2022-03-22T06:11:18.000Z
server/lib/protocol/transaction.ex
bitfeed-project/bitfeed
48b346ec18fa1be2e09a9e1f36ac10db9c0fab62
[ "MIT" ]
22
2022-01-01T04:26:10.000Z
2022-03-22T00:02:31.000Z
server/lib/protocol/transaction.ex
bitfeed-project/bitfeed
48b346ec18fa1be2e09a9e1f36ac10db9c0fab62
[ "MIT" ]
9
2022-01-03T07:34:36.000Z
2022-03-14T23:19:56.000Z
Application.ensure_all_started(BitcoinStream.RPC) require Logger defmodule BitcoinStream.Protocol.Transaction do @moduledoc """ Extended bitcoin transaction struct """ require Protocol Protocol.derive(Jason.Encoder, Bitcoinex.Transaction) Protocol.derive(Jason.Encoder, Bitcoinex.Transaction.In) Proto...
27.866029
178
0.602163
914f73a311fab05b63d1b6fb1d766e8111dd8f3c
44,857
ex
Elixir
lib/elixir/lib/gen_server.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2020-01-14T18:44:56.000Z
2020-01-14T18:44:56.000Z
lib/elixir/lib/gen_server.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/gen_server.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
defmodule GenServer do @moduledoc """ A behaviour module for implementing the server of a client-server relation. A GenServer is a process like any other Elixir process and it can be used to keep state, execute code asynchronously and so on. The advantage of using a generic server process (GenServer) impleme...
36.43948
129
0.664177
914f94bedc6b11796caf8035d4178cd10fff5c0e
290
exs
Elixir
exercism/elixir/acronym/acronym.exs
lowks/levelup
805e48cbf33d48616f55ef1b3740bb15b548054d
[ "MIT" ]
null
null
null
exercism/elixir/acronym/acronym.exs
lowks/levelup
805e48cbf33d48616f55ef1b3740bb15b548054d
[ "MIT" ]
39
2018-04-15T12:36:36.000Z
2018-09-16T15:31:50.000Z
exercism/elixir/acronym/acronym.exs
lowks/levelup
805e48cbf33d48616f55ef1b3740bb15b548054d
[ "MIT" ]
null
null
null
defmodule Acronym do @doc """ Generate an acronym from a string. "This is a string" => "TIAS" """ @spec abbreviate(String.t()) :: String.t() def abbreviate(string) do string |> (&(Regex.scan(~r/\b[a-z]|[A-Z]/, &1))).() |> Enum.join |> String.upcase end end
22.307692
52
0.562069
914f977cb1774448461f95afc408a048f937d7d3
505
ex
Elixir
lib/battle_box/game_bot.ex
GrantJamesPowell/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
2
2020-10-17T05:48:49.000Z
2020-11-11T02:34:15.000Z
lib/battle_box/game_bot.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
3
2020-05-18T05:52:21.000Z
2020-06-09T07:24:14.000Z
lib/battle_box/game_bot.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
null
null
null
defmodule BattleBox.GameBot do use Ecto.Schema import Ecto.Changeset alias BattleBox.{Game, Bot} @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "game_bots" do field :score, :integer, default: 0 field :player, :integer field :winner, :boolean, default: fa...
21.956522
52
0.671287
914fe876519aa30faf27bf78eec3eb8c28859cef
3,685
exs
Elixir
apps/rig_tests/test/proxy/response_from/kafka_test.exs
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_tests/test/proxy/response_from/kafka_test.exs
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_tests/test/proxy/response_from/kafka_test.exs
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
defmodule RigTests.Proxy.ResponseFrom.KafkaTest do @moduledoc """ With `response_from` set to Kafka, the response is taken from a Kafka topic. In production, this may be used to hide asynchronous processing by one or more backend services with a synchronous interface. Note that `test_with_server` sets up an...
30.966387
172
0.640706
9150008fea41a7c7d49d9e1ba9d322a7b82a2ade
51
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/MatchedMatchOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/MatchedMatchOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/MatchedMatchOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
one = two <- three = four one = two \\ three = four
25.5
25
0.588235
91500152309f66b4b1b0622c6e9c47f6d4c6e838
3,086
ex
Elixir
lib/phoenix/endpoint/handler.ex
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
lib/phoenix/endpoint/handler.ex
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
lib/phoenix/endpoint/handler.ex
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
defmodule Phoenix.Endpoint.Handler do @moduledoc """ API for exporting a webserver. A handler will need to implement a `child_spec/3` function which takes: * the scheme of the endpoint :http or :https * phoenix top-most endpoint module * phoenix app configuration for the specified scheme It has t...
32.484211
114
0.707064
915008f711f585b650ddf2491e2dc507b63dfc1d
94
exs
Elixir
test/msf_test.exs
rockerBOO/master-slave-failover
7db82af3a5a4f1ee83c7bdbe13982958c385ab39
[ "MIT" ]
null
null
null
test/msf_test.exs
rockerBOO/master-slave-failover
7db82af3a5a4f1ee83c7bdbe13982958c385ab39
[ "MIT" ]
null
null
null
test/msf_test.exs
rockerBOO/master-slave-failover
7db82af3a5a4f1ee83c7bdbe13982958c385ab39
[ "MIT" ]
null
null
null
defmodule MsfTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
11.75
21
0.638298
915013a7c1ecf16065d5104077c56e6020023253
1,157
exs
Elixir
mix.exs
nathanjohnson320/httpdigest
4a674f68f0ed2dc523349d86e4f046c884097b58
[ "MIT" ]
2
2018-06-26T13:38:57.000Z
2020-03-26T20:00:11.000Z
mix.exs
nathanjohnson320/httpdigest
4a674f68f0ed2dc523349d86e4f046c884097b58
[ "MIT" ]
5
2017-09-06T17:51:18.000Z
2020-12-10T13:14:23.000Z
mix.exs
nathanjohnson320/httpdigest
4a674f68f0ed2dc523349d86e4f046c884097b58
[ "MIT" ]
3
2018-06-26T16:24:42.000Z
2020-12-10T11:47:34.000Z
defmodule Httpdigest.Mixfile do use Mix.Project def project() do [ app: :httpdigest, version: "0.0.4", elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), description: description(), package: package() ] end ...
21.830189
77
0.582541
9150190e455045328a8b97dbea211216f151b232
2,026
exs
Elixir
test/bincode/varint_test.exs
LeonardBesson/bincode
0e2950e6d09eaf9e9cea439e33cad5397747e331
[ "MIT" ]
null
null
null
test/bincode/varint_test.exs
LeonardBesson/bincode
0e2950e6d09eaf9e9cea439e33cad5397747e331
[ "MIT" ]
null
null
null
test/bincode/varint_test.exs
LeonardBesson/bincode
0e2950e6d09eaf9e9cea439e33cad5397747e331
[ "MIT" ]
null
null
null
defmodule Bincode.VarintTest do use Bincode.BaseCase, async: true # u16 test_serialization(0, <<0::size(8)>>, :u16, varint: true) test_serialization(43, <<43::size(8)>>, :u16, varint: true) test_serialization(34561, <<251, 34561::little-integer-size(16)>>, :u16, varint: true) test_serialization_fail("", "...
35.54386
98
0.694472
9150363272bcaee821714af07d99e25b2712d8cd
16
ex
Elixir
testData/org/elixir_lang/parser_definition/list_parsing_test_case/AdditionKeywordValue.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/list_parsing_test_case/AdditionKeywordValue.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/list_parsing_test_case/AdditionKeywordValue.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
[key: one + two]
16
16
0.5625
91504728da3438381fdfebae526aa57606071170
1,693
ex
Elixir
clients/games/lib/google_api/games/v1/model/image_asset.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/image_asset.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/image_asset.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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...
31.351852
137
0.722386
915072eabc4a2094e2f35abc2818283c7b8a3d62
179
ex
Elixir
lib/cog/repo.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/cog/repo.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/cog/repo.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Repo do use Ecto.Repo, otp_app: :cog def exists?(model, id) do case get(model, id) do nil -> false _ -> true end end end
12.785714
30
0.530726
9150a2d0f16c8427179fec73704fb8f269aa0559
20,978
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v3/api/inappproducts.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/api/inappproducts.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_publisher/lib/google_api/android_publisher/v3/api/inappproducts.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.634043
274
0.616312
9150a8589a2c58c86f37cd5408f960b37a83d8c4
11,230
ex
Elixir
lib/chat_api_web/controllers/conversation_controller.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/conversation_controller.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/conversation_controller.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.ConversationController do use ChatApiWeb, :controller use PhoenixSwagger alias ChatApi.{Conversations, Messages} alias ChatApi.Conversations.{Conversation, Helpers} action_fallback(ChatApiWeb.FallbackController) plug(:authorize when action in [:show, :update, :delete]) defp author...
35.878594
100
0.65797
915122273ec52b83268c13e2c4d1ef5a71b3f1d5
74
exs
Elixir
sdr-web/test/views/layout_view_test.exs
korczis/hackrf-rust
73c76c23eb58ddfaa484f40e4b800f12b31d0a50
[ "MIT" ]
1
2022-02-15T23:17:51.000Z
2022-02-15T23:17:51.000Z
sdr-web/test/views/layout_view_test.exs
korczis/hackrf-rust
73c76c23eb58ddfaa484f40e4b800f12b31d0a50
[ "MIT" ]
null
null
null
sdr-web/test/views/layout_view_test.exs
korczis/hackrf-rust
73c76c23eb58ddfaa484f40e4b800f12b31d0a50
[ "MIT" ]
3
2020-05-09T10:08:07.000Z
2021-02-22T11:42:00.000Z
defmodule SdrWeb.LayoutViewTest do use SdrWeb.ConnCase, async: true end
18.5
34
0.810811
91512dc0c84e868b87fa206434e67c6df56d373f
2,690
ex
Elixir
lib/stripe_mock/api/payment_intent.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
4
2019-06-04T20:35:21.000Z
2021-09-02T04:04:21.000Z
lib/stripe_mock/api/payment_intent.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
2
2020-02-04T17:38:12.000Z
2021-04-29T06:59:06.000Z
lib/stripe_mock/api/payment_intent.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
null
null
null
defmodule StripeMock.API.PaymentIntent do use StripeMock.Schema schema "payment_intents" do field :amount, :integer field :capture_method, :string, default: "automatic" field :confirm, :boolean, virtual: true, default: false field :confirmation_method, :string, default: "automatic" field :curre...
27.44898
88
0.671004
91515d25c39d33a7875b8148b7b28fbb83fe7590
141
exs
Elixir
firmware/test/firmware_test.exs
Jwsonic/cliff_swallow
6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8
[ "MIT" ]
25
2018-11-03T19:36:12.000Z
2021-11-17T13:09:06.000Z
firmware/test/firmware_test.exs
Jwsonic/cliff_swallow
6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8
[ "MIT" ]
4
2019-01-16T14:06:47.000Z
2021-09-01T18:59:02.000Z
firmware/test/firmware_test.exs
Jwsonic/cliff_swallow
6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8
[ "MIT" ]
8
2018-12-25T23:00:51.000Z
2020-12-22T15:10:21.000Z
defmodule FirmwareTest do use ExUnit.Case doctest Firmware test "greets the world" do assert Firmware.hello() == :world end end
15.666667
37
0.716312
915164a79f1135cbd1a677401c9c9047b8a02908
1,803
ex
Elixir
clients/content/lib/google_api/content/v21/model/account_status_statistics.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/account_status_statistics.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/account_status_statistics.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...
32.196429
90
0.699945
9151a19b5dd97a519df5486c8910426c0472b119
2,000
ex
Elixir
clients/games_management/lib/google_api/games_management/v1management/model/player_score_reset_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games_management/lib/google_api/games_management/v1management/model/player_score_reset_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games_management/lib/google_api/games_management/v1management/model/player_score_reset_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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...
40
287
0.7575
9151b513ade59711f722de1d419f181da063fe0b
132
ex
Elixir
lib/documentation.ex
Ajwah/ex_debugger
44cd5b99c0b7751db052887b7a0bc3ce52a2972e
[ "Apache-2.0" ]
3
2020-07-07T20:41:23.000Z
2020-07-17T09:05:37.000Z
lib/documentation.ex
Ajwah/ex_debugger
44cd5b99c0b7751db052887b7a0bc3ce52a2972e
[ "Apache-2.0" ]
1
2020-07-08T00:04:38.000Z
2020-07-08T00:04:38.000Z
lib/documentation.ex
Ajwah/ex_debugger
44cd5b99c0b7751db052887b7a0bc3ce52a2972e
[ "Apache-2.0" ]
null
null
null
defmodule Documentation do @moduledoc false @doc false def debug_options_path, do: "your_project_path/debug_options.exs" end
18.857143
67
0.795455
9151d153747415d933e066dc290f99439c098d3e
1,225
ex
Elixir
test/struct_modules/lib/recipient.ex
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
101
2020-06-11T23:51:50.000Z
2022-03-30T16:29:18.000Z
test/struct_modules/lib/recipient.ex
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
11
2020-10-11T11:50:24.000Z
2022-02-12T08:54:50.000Z
test/struct_modules/lib/recipient.ex
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
4
2020-07-02T08:54:22.000Z
2021-12-26T09:59:15.000Z
# credo:disable-for-this-file defmodule Recipient do use Domo, ensure_struct_defaults: false @enforce_keys [:title, :name] defstruct [:title, :name, age: 0] @type title :: :mr | :ms | :dr @type name :: String.t() @type age :: integer @type t :: %__MODULE__{title: title(), name: name(), age: age()} end ...
26.06383
82
0.672653
9151ea6a73f2d8e1678b6e9d79a214cfcfb3a22d
2,428
exs
Elixir
test/plausible/ingest/fingerprint_session_test.exs
lizlam/plausible
886ba62cd814e5ca2d05c51a375bccc753c7c6ff
[ "MIT" ]
null
null
null
test/plausible/ingest/fingerprint_session_test.exs
lizlam/plausible
886ba62cd814e5ca2d05c51a375bccc753c7c6ff
[ "MIT" ]
null
null
null
test/plausible/ingest/fingerprint_session_test.exs
lizlam/plausible
886ba62cd814e5ca2d05c51a375bccc753c7c6ff
[ "MIT" ]
null
null
null
defmodule Plausible.Ingest.FingerprintSessionTest do use Plausible.DataCase alias Plausible.Ingest defp capture_session(fingerprint) do session_pid = :global.whereis_name(fingerprint) Process.monitor(session_pid) assert_receive({:DOWN, session_pid, :process, _, :normal}) Repo.one(Plausible.Fing...
29.975309
92
0.730231
9151f667442d78699734696a4745b5b8e5d79270
238
exs
Elixir
priv/repo/migrations/20210626015807_create_items.exs
showwin/phx_todo_app
3608f120cb149019219add4ca63e711698a56aab
[ "MIT" ]
null
null
null
priv/repo/migrations/20210626015807_create_items.exs
showwin/phx_todo_app
3608f120cb149019219add4ca63e711698a56aab
[ "MIT" ]
null
null
null
priv/repo/migrations/20210626015807_create_items.exs
showwin/phx_todo_app
3608f120cb149019219add4ca63e711698a56aab
[ "MIT" ]
null
null
null
defmodule PhxTodoApp.Repo.Migrations.CreateItems do use Ecto.Migration def change do create table(:items) do add :title, :string add :done, :boolean, default: false, null: false timestamps() end end end
17
54
0.668067
915205d1544762538b31d423648f0cbe448006f3
1,850
ex
Elixir
lib/groupher_server/statistics/delegates/status.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
2
2018-03-26T08:56:21.000Z
2018-07-02T22:34:51.000Z
lib/groupher_server/statistics/delegates/status.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2018-03-21T03:40:50.000Z
2018-07-10T06:33:10.000Z
lib/groupher_server/statistics/delegates/status.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
null
null
null
defmodule GroupherServer.Statistics.Delegate.Status do @moduledoc """ badic count info of the whole site, used in admin panel sidebar """ import Ecto.Query, warn: false import ShortMaps alias GroupherServer.CMS alias CMS.Model.{ Post, Job, Guide, Meetup, Drink, Blog, Radar, ...
29.83871
178
0.695676
915235d12640bd7054153c37b077c96ede251d0c
67
ex
Elixir
lib/crius_chat_web/views/layout_view.ex
AmadorZcv/crius_chat
2ed002414f207536a0d2ab6e53e7d99da9fa920d
[ "MIT" ]
null
null
null
lib/crius_chat_web/views/layout_view.ex
AmadorZcv/crius_chat
2ed002414f207536a0d2ab6e53e7d99da9fa920d
[ "MIT" ]
3
2021-03-09T17:37:23.000Z
2021-09-01T22:28:38.000Z
lib/crius_chat_web/views/layout_view.ex
AmadorZcv/crius_chat
2ed002414f207536a0d2ab6e53e7d99da9fa920d
[ "MIT" ]
null
null
null
defmodule CriusChatWeb.LayoutView do use CriusChatWeb, :view end
16.75
36
0.820896
915256571172cfca640e708f0eca2086c5b42990
908
ex
Elixir
lib/live_view_collection_web/views/collection_view.ex
sandeshsoni/phoenix-liveview-collection
6a3ae19f9aec1d2776a38edca2ff8497fc371257
[ "MIT" ]
32
2019-04-01T02:39:49.000Z
2020-12-04T02:57:01.000Z
lib/live_view_collection_web/views/collection_view.ex
sandeshsoni/phoenix-liveview-collection
6a3ae19f9aec1d2776a38edca2ff8497fc371257
[ "MIT" ]
13
2020-03-29T19:40:34.000Z
2021-12-06T22:18:02.000Z
lib/live_view_collection_web/views/collection_view.ex
sandeshsoni/phoenix-liveview-collection
6a3ae19f9aec1d2776a38edca2ff8497fc371257
[ "MIT" ]
4
2019-08-01T16:21:16.000Z
2020-04-01T17:39:10.000Z
defmodule LiveViewCollectionWeb.CollectionView do require Logger use LiveViewCollectionWeb, :view alias LiveViewCollection.Collection def number_of_pages(%{query: query, page_size: page_size}) do collection_length = query |> Collection.filter() |> length() pages = (collection_length / page_size) |> Flo...
28.375
71
0.651982
91527a4280551816fdc811e57e5163e329051ab2
5,576
ex
Elixir
clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_recommendation.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_recommendation.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_recommendation.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...
49.785714
527
0.733859
91528ec043c4074bd890bfc8abb6076bc0f601a0
1,097
ex
Elixir
phoenix158/my-phoenix-json-api/lib/my_app_web/controllers/gift_controller.ex
salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4
294b8668dc4940c07d6dde198f02b38100a1dc00
[ "MIT" ]
null
null
null
phoenix158/my-phoenix-json-api/lib/my_app_web/controllers/gift_controller.ex
salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4
294b8668dc4940c07d6dde198f02b38100a1dc00
[ "MIT" ]
null
null
null
phoenix158/my-phoenix-json-api/lib/my_app_web/controllers/gift_controller.ex
salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4
294b8668dc4940c07d6dde198f02b38100a1dc00
[ "MIT" ]
null
null
null
defmodule MyAppWeb.GiftController do use MyAppWeb, :controller alias MyApp.Account alias MyApp.Account.Gift action_fallback MyAppWeb.FallbackController def index(conn, _params) do gifts = Account.list_gifts() render(conn, "index.json", gifts: gifts) end def create(conn, %{"gift" => gift_params...
24.931818
75
0.6299
915292c75061ca037e280df8d94d633dee65005f
1,838
exs
Elixir
mix.exs
GoCorus/taglet
eddc781f1ddff16e43ddbc97d94fe8976a135923
[ "Apache-2.0" ]
null
null
null
mix.exs
GoCorus/taglet
eddc781f1ddff16e43ddbc97d94fe8976a135923
[ "Apache-2.0" ]
null
null
null
mix.exs
GoCorus/taglet
eddc781f1ddff16e43ddbc97d94fe8976a135923
[ "Apache-2.0" ]
null
null
null
defmodule Taglet.Mixfile do use Mix.Project def project do [ app: :taglet, version: "1.0.0-dev", elixir: "~> 1.10", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), package: package(), deps: deps(),...
24.837838
79
0.577802
9152cb44a41f4332cb59cfceab4c932b044f104c
203
ex
Elixir
geom.ex
dcarneiro/etudes-for-elixir
807d21942747817d84fc2890806582b59921bd59
[ "MIT" ]
null
null
null
geom.ex
dcarneiro/etudes-for-elixir
807d21942747817d84fc2890806582b59921bd59
[ "MIT" ]
null
null
null
geom.ex
dcarneiro/etudes-for-elixir
807d21942747817d84fc2890806582b59921bd59
[ "MIT" ]
null
null
null
defmodule Geom do def area(shape, x, y) when x >= 0 and y >= 0 do case shape do :rectangle -> x * y :triangle -> x * y / 2.0 :ellipse -> :math.pi * x * y end end end
18.454545
49
0.492611
9152d73ded012034a8c1d5b76a85edf473ee2abd
5,465
ex
Elixir
builder/lib/quenya_builder/generators/api_router.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
143
2020-12-01T06:53:36.000Z
2022-03-24T02:33:01.000Z
builder/lib/quenya_builder/generators/api_router.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
2
2020-11-30T05:30:42.000Z
2020-12-17T06:33:17.000Z
builder/lib/quenya_builder/generators/api_router.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
12
2020-12-07T01:22:17.000Z
2020-12-27T12:49:39.000Z
defmodule QuenyaBuilder.Generator.ApiRouter do @moduledoc """ Generate Plug router based on OAPIv3 spec """ require DynamicModule alias QuenyaBuilder.Generator.{ Config, RequestValidator, ResponseValidator, FakeHandler, UnitTest } alias QuenyaBuilder.{Security, Util} def gen(root,...
27.462312
97
0.636597
915324a6b32f9b685378fbad9653ad6d7dc38c85
15,710
exs
Elixir
lib/elixir/test/elixir/kernel/expansion_test.exs
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/expansion_test.exs
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/expansion_test.exs
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule Kernel.ExpansionTarget do defmacro seventeen, do: 17 end defmodule Kernel.ExpansionTest do use ExUnit.Case, async: true ## __block__ test "__block__: expands to nil when empty" do assert expand(quote do: __block__()) == nil end test "__block...
32.391753
121
0.586951
9153346d9165ea1d1b2d0e97a60dc4ebb5e9a51c
3,472
exs
Elixir
test/hexpm_web/controllers/password_controller_test.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
test/hexpm_web/controllers/password_controller_test.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
test/hexpm_web/controllers/password_controller_test.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule HexpmWeb.PasswordControllerTest do use HexpmWeb.ConnCase alias Hexpm.Accounts.{Auth, User, Users} alias Hexpm.Repo setup do mock_pwned() user = insert(:user, password: Auth.gen_password("hunter42")) %{user: user} end describe "GET /password/new" do test "show select new password ...
30.45614
98
0.586118
9153458fd7abd17af5f3f72f946dd72237d8898f
1,845
exs
Elixir
test/workflow_definitions/workflow_definitions_test.exs
nipierre/ex_step_flow
4345ee57bd4e5eb79138df68d10579ba1b9ec6a1
[ "MIT" ]
null
null
null
test/workflow_definitions/workflow_definitions_test.exs
nipierre/ex_step_flow
4345ee57bd4e5eb79138df68d10579ba1b9ec6a1
[ "MIT" ]
null
null
null
test/workflow_definitions/workflow_definitions_test.exs
nipierre/ex_step_flow
4345ee57bd4e5eb79138df68d10579ba1b9ec6a1
[ "MIT" ]
null
null
null
defmodule StepFlow.WorkflowDefinitionsTest do use ExUnit.Case, async: true alias Ecto.Adapters.SQL.Sandbox alias StepFlow.WorkflowDefinitions doctest StepFlow.WorkflowDefinitions setup do Sandbox.checkout(StepFlow.Repo) end describe "workflow_definitions" do test "list_workflow_definitions/0 r...
27.954545
99
0.590786
915349fb89c2b24b2392579657e42527d1d2a36f
3,189
ex
Elixir
lib/2021/3.ex
ballpointcarrot/advent-of-code-2021
a1adde8a13069efedfc7c190d6c71b06c2d15173
[ "MIT" ]
null
null
null
lib/2021/3.ex
ballpointcarrot/advent-of-code-2021
a1adde8a13069efedfc7c190d6c71b06c2d15173
[ "MIT" ]
null
null
null
lib/2021/3.ex
ballpointcarrot/advent-of-code-2021
a1adde8a13069efedfc7c190d6c71b06c2d15173
[ "MIT" ]
null
null
null
import AOC aoc 2021, 3 do def gamma_rate([col1 | _rest], acc) when length(col1) == 0, do: acc def gamma_rate(columns, acc) do gamma_score = Enum.map(columns, &List.first/1) |> Enum.frequencies() gamma = Enum.max_by(gamma_score, fn tuple -> elem(tuple, 1) end) |> elem(0) colum...
25.717742
97
0.606146
915382b7948ad3ff455911be4020752eb524183a
646
exs
Elixir
test/grizzly/zwave/commands/schedule_entry_lock_time_offset_get_test.exs
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
test/grizzly/zwave/commands/schedule_entry_lock_time_offset_get_test.exs
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
test/grizzly/zwave/commands/schedule_entry_lock_time_offset_get_test.exs
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.ScheduleEntryLockTimeOffsetGetTest do use ExUnit.Case, async: true alias Grizzly.ZWave.Commands.ScheduleEntryLockTimeOffsetGet test "creates the command and validates params" do {:ok, _command} = ScheduleEntryLockTimeOffsetGet.new() end test "encodes params correctly" d...
30.761905
83
0.763158
9153a3d1bf78152ca9dc11164c88ed749e8aa45d
310
ex
Elixir
lib/radiator_web/views/shared_partials_view.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator_web/views/shared_partials_view.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator_web/views/shared_partials_view.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule RadiatorWeb.SharedPartialsView do use RadiatorWeb, :view import RadiatorWeb.ContentHelpers use Radiator.Constants, :permissions def permission_select_values do @permission_values |> Enum.map(fn perm -> {format_permission(perm), perm} end) |> Enum.to_list() end end
19.375
43
0.722581
9153b159f64409e41ac0fb627b0ee08581c1a128
52
exs
Elixir
.dialyzer_ignore.exs
jshmrtn/phoenix-client-ssl
60055f6b7a54d38d006732ad72a48f7aa55c5c08
[ "MIT" ]
17
2017-12-01T09:12:41.000Z
2021-04-16T07:53:37.000Z
.dialyzer_ignore.exs
jshmrtn/phoenix-client-ssl
60055f6b7a54d38d006732ad72a48f7aa55c5c08
[ "MIT" ]
2
2018-01-29T13:04:26.000Z
2018-05-24T11:03:55.000Z
.dialyzer_ignore.exs
jshmrtn/phoenix-client-ssl
60055f6b7a54d38d006732ad72a48f7aa55c5c08
[ "MIT" ]
6
2018-05-24T07:42:22.000Z
2020-11-14T17:41:35.000Z
[ {"lib/public_key_subject.ex", :guard_fail, 41} ]
17.333333
48
0.673077
9153bcec2adc2d7a4de1214b9a67cbd8e7c8d9ee
1,860
exs
Elixir
mix.exs
rai200890/blog_api
e42cdc609b351baccb7b9214a0dff5365579d04d
[ "MIT" ]
null
null
null
mix.exs
rai200890/blog_api
e42cdc609b351baccb7b9214a0dff5365579d04d
[ "MIT" ]
null
null
null
mix.exs
rai200890/blog_api
e42cdc609b351baccb7b9214a0dff5365579d04d
[ "MIT" ]
null
null
null
defmodule Blog.MixProject do use Mix.Project def project do [ app: :blog, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), dep...
28.181818
120
0.577957