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
ab49949f901d076560c5670dac627e371b9bce10
541
ex
Elixir
phoenix_webpack/web/router.ex
davejmac/phoenix-webpack
b7d0076069529311abfa6d4b6eda332bb970a24b
[ "MIT" ]
null
null
null
phoenix_webpack/web/router.ex
davejmac/phoenix-webpack
b7d0076069529311abfa6d4b6eda332bb970a24b
[ "MIT" ]
null
null
null
phoenix_webpack/web/router.ex
davejmac/phoenix-webpack
b7d0076069529311abfa6d4b6eda332bb970a24b
[ "MIT" ]
null
null
null
defmodule PhoenixWebpack.Router do use PhoenixWebpack.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", PhoenixWebp...
20.037037
57
0.689464
ab499fc7b489d3f4f8cd2e54cbc720cde6c9305d
1,450
exs
Elixir
test/lib/timber/integrations/session_context_plug_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/integrations/session_context_plug_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/integrations/session_context_plug_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
if Code.ensure_loaded?(Plug) do defmodule TImber.Integrations.SessionContextPlugTest do use Timber.TestCase alias Timber.Integrations.SessionContextPlug setup do conn = :get |> Plug.Test.conn("/") |> Plug.Test.init_test_session(%{}) {:ok, conn: conn} end des...
26.851852
93
0.664828
ab49e9968708a8b7b02ad7b194a0694e30f9734e
1,200
exs
Elixir
clients/ad_experience_report/mix.exs
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/ad_experience_report/mix.exs
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/ad_experience_report/mix.exs
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
defmodule GoogleApi.AdExperienceReport.V1.Mixfile do use Mix.Project @version "0.1.0" def project do [app: :google_api_ad_experience_report, version: @version, elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), pac...
25
120
0.620833
ab49f3be48e089fe7dcf99a9e7b339ec4c7aa95f
90
exs
Elixir
phx_csvchart/test/phx_csvchart_web/views/layout_view_test.exs
NervesJP/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
13
2018-06-22T10:41:17.000Z
2018-09-01T02:34:33.000Z
phx_csvchart/test/phx_csvchart_web/views/layout_view_test.exs
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
null
null
null
phx_csvchart/test/phx_csvchart_web/views/layout_view_test.exs
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
1
2022-01-20T13:12:18.000Z
2022-01-20T13:12:18.000Z
defmodule PhxCsvchartWeb.LayoutViewTest do use PhxCsvchartWeb.ConnCase, async: true end
22.5
42
0.844444
ab4a0b903b350e610a4cf200a373f6bc00f97a1f
2,382
ex
Elixir
lib/espec/allow_to.ex
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
807
2015-03-25T14:00:19.000Z
2022-03-24T08:08:15.000Z
lib/espec/allow_to.ex
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
254
2015-03-27T10:12:25.000Z
2021-07-12T01:40:15.000Z
lib/espec/allow_to.ex
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
85
2015-04-02T10:25:19.000Z
2021-01-30T21:30:43.000Z
defmodule ESpec.AllowTo do @moduledoc """ Defines `to/2` function which makes the mock. """ alias ESpec.Mock @doc "Makes specific mock with ESpec.Mock.expect/3." def to({:accept, name, function}, {__MODULE__, module}) when is_atom(name) and is_atom(module) do Mock.expect(module, name, function, ...
34.028571
89
0.671285
ab4a10eed3499456d742d22dff7ee9d7c3e3b434
98
ex
Elixir
lib/explorer/polars_backend.ex
srowley/explorer
f17dd01d0b60f7d00718c94a8b0779befb1c8e82
[ "MIT" ]
287
2021-08-20T15:06:19.000Z
2022-03-30T05:24:27.000Z
lib/explorer/polars_backend.ex
srowley/explorer
f17dd01d0b60f7d00718c94a8b0779befb1c8e82
[ "MIT" ]
77
2021-08-20T02:32:51.000Z
2022-03-31T23:51:19.000Z
lib/explorer/polars_backend.ex
srowley/explorer
f17dd01d0b60f7d00718c94a8b0779befb1c8e82
[ "MIT" ]
27
2021-08-21T11:16:18.000Z
2022-03-20T23:12:20.000Z
defmodule Explorer.PolarsBackend do @moduledoc """ The Explorer backend for Polars. """ end
16.333333
35
0.72449
ab4a2c3199ba187bdcc3010c9fe6349ba4fac4bd
297
exs
Elixir
day06/el_a.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
1
2019-12-13T22:44:09.000Z
2019-12-13T22:44:09.000Z
day06/el_a.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
null
null
null
day06/el_a.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
1
2019-12-05T21:06:06.000Z
2019-12-05T21:06:06.000Z
Code.require_file("el.ex", __DIR__) File.stream!("day06/input.txt", [encoding: :utf8], :line) |> Stream.map(&Day06.parse_orbit/1) |> Enum.reduce(%{}, &Day06.insert_orbit(&2, &1)) |> Day06.objects_set_orbit_depth |> Map.values |> Stream.map(fn o -> o.depth end) |> Enum.sum |> IO.inspect # 234446
27
57
0.676768
ab4a2c8227d739792107ad5579ff0ff0a87c2405
1,967
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/google_devtools_containeranalysis_v1alpha1_operation_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/google_devtools_containeranalysis_v1alpha1_operation_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/google_devtools_containeranalysis_v1alpha1_operation_metadata.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...
34.508772
132
0.75089
ab4a52ce006ec9b7d32eae04d2837240aa34c047
382
ex
Elixir
lib/sayuri/modules/status.ex
Takasakiii/sayuri_bot
2c3fbf46f360b3bdfda72db8b6e9d5da00e7db7a
[ "Unlicense" ]
2
2021-12-05T21:18:19.000Z
2021-12-05T21:34:44.000Z
lib/sayuri/modules/status.ex
Takasakiii/sayuri_bot
2c3fbf46f360b3bdfda72db8b6e9d5da00e7db7a
[ "Unlicense" ]
null
null
null
lib/sayuri/modules/status.ex
Takasakiii/sayuri_bot
2c3fbf46f360b3bdfda72db8b6e9d5da00e7db7a
[ "Unlicense" ]
null
null
null
defmodule Sayuri.Modules.Status do require Logger alias Nostrum.Api @status ["grande dia", "dia", "tarde", "noite"] def status_task(position \\ 0) do item = Enum.at(@status, position) Api.update_status(:online, item, 1) Process.sleep(10000) if position >= length(@status) do status_task(...
20.105263
49
0.649215
ab4a6aa3b167d0a0a6e693a83c8faab66ff17557
781
exs
Elixir
test/forum/test_test.exs
myskoach/events
84e270b9f4546a32a033cc2cba3e3961b9a86a75
[ "MIT" ]
null
null
null
test/forum/test_test.exs
myskoach/events
84e270b9f4546a32a033cc2cba3e3961b9a86a75
[ "MIT" ]
null
null
null
test/forum/test_test.exs
myskoach/events
84e270b9f4546a32a033cc2cba3e3961b9a86a75
[ "MIT" ]
null
null
null
defmodule Forum.TestTest do use ExUnit.Case, async: true describe "publish/2" do test "simulates the given event on the given consumer module" do assert Forum.Test.publish(%Forum.TestEventOne{life: 42}, Forum.TestConsumer) == :ok end test "returns an error when the consumer cannot handle...
33.956522
97
0.679898
ab4a76a4957983c85d756bdf59a7f02a83a7028a
376
exs
Elixir
test/google_civic_test.exs
andjosh/google_civic
e990d290a6760ab7bc2a2980cb8c9ac9fba431a9
[ "MIT" ]
null
null
null
test/google_civic_test.exs
andjosh/google_civic
e990d290a6760ab7bc2a2980cb8c9ac9fba431a9
[ "MIT" ]
1
2019-12-01T18:44:44.000Z
2019-12-01T18:44:44.000Z
test/google_civic_test.exs
andjosh/google_civic
e990d290a6760ab7bc2a2980cb8c9ac9fba431a9
[ "MIT" ]
null
null
null
defmodule GoogleCivicTest do use ExUnit.Case doctest GoogleCivic test "representatives" do case GoogleCivic.representatives "60601" do {:ok, %HTTPoison.Response{status_code: status, body: body}} -> assert status == 200 assert is_map body {:error, %HTTPoison.Error{reason: reason}} ...
25.066667
68
0.675532
ab4a91bf2c667db4b0d0be9e220fe991edd36333
1,332
ex
Elixir
clients/data_migration/lib/google_api/data_migration/v1beta1/model/start_migration_job_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_migration/lib/google_api/data_migration/v1beta1/model/start_migration_job_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_migration/lib/google_api/data_migration/v1beta1/model/start_migration_job_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.714286
94
0.774024
ab4a92e56602981e54e5fd9ac5514c6c34618103
2,601
ex
Elixir
clients/testing/lib/google_api/testing/v1/model/android_matrix.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/testing/lib/google_api/testing/v1/model/android_matrix.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/testing/lib/google_api/testing/v1/model/android_matrix.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 "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...
45.631579
313
0.744714
ab4a9b6d1fcc168ef46cbb27ef8090a176e04db3
1,417
ex
Elixir
plugins/one_chat/lib/one_chat_web/controllers/avatar_controller.ex
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
plugins/one_chat/lib/one_chat_web/controllers/avatar_controller.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
plugins/one_chat/lib/one_chat_web/controllers/avatar_controller.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule OneChatWeb.AvatarController do @moduledoc """ Handles Avatar related web requests. """ use OneChatWeb, :controller import OneChat.AvatarService alias InfinityOne.Accounts require Logger @doc """ Gets the users default initials based svg avatar. """ def show(conn, %{"username" => use...
28.34
80
0.700071
ab4ac3036fd700f7d65e4ad793c788d8b3d11bd3
348
ex
Elixir
lib/flickrex/decoder.ex
christopheradams/flickrex
67e3a507e128c55969aeda3802f6dacd94bb03c5
[ "MIT" ]
13
2017-04-02T10:55:10.000Z
2022-03-02T02:55:40.000Z
lib/flickrex/decoder.ex
christopheradams/flickrex
67e3a507e128c55969aeda3802f6dacd94bb03c5
[ "MIT" ]
null
null
null
lib/flickrex/decoder.ex
christopheradams/flickrex
67e3a507e128c55969aeda3802f6dacd94bb03c5
[ "MIT" ]
1
2021-01-31T17:47:27.000Z
2021-01-31T17:47:27.000Z
defmodule Flickrex.Decoder do @moduledoc """ Defines the specification for a REST decoder. """ @type data :: String.t() @type result :: map() @type success_t :: {:ok, result()} @type error_t :: {:error, result()} @type parse_error_t :: {:error, :badarg} @callback decode(data()) :: success_t() | erro...
24.857143
71
0.637931
ab4adc7113d57823a55b6e0a35b446a49883943a
2,373
ex
Elixir
clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_resource.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_resource.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_resource.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.897059
120
0.709229
ab4ae590a76060dc255fd87ee6197e72aff3534a
801
ex
Elixir
lib/espec/assertions/list/have_tl.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
807
2015-03-25T14:00:19.000Z
2022-03-24T08:08:15.000Z
lib/espec/assertions/list/have_tl.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
254
2015-03-27T10:12:25.000Z
2021-07-12T01:40:15.000Z
lib/espec/assertions/list/have_tl.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
85
2015-04-02T10:25:19.000Z
2021-01-30T21:30:43.000Z
defmodule ESpec.Assertions.List.HaveTl do @moduledoc """ Defines 'have_tl' assertion. it do: expect(list).to have_tl(value) """ use ESpec.Assertions.Interface defp match(list, val) do result = tl(list) {result == val, result} end defp success_message(list, val, _result, positive) do to = ...
23.558824
83
0.595506
ab4aff3018cdebf6347122ba2cd1c21c0399fcd6
1,049
ex
Elixir
lib/cryptofolio.ex
andreihod/cryptofolio-api
063bfcf39a0b334204e6b6ef01990622a1f316af
[ "MIT" ]
2
2017-07-19T17:03:41.000Z
2017-09-18T12:58:42.000Z
lib/cryptofolio.ex
mateusfs/cryptofolio-api
063bfcf39a0b334204e6b6ef01990622a1f316af
[ "MIT" ]
7
2017-07-18T23:32:45.000Z
2017-08-18T01:09:11.000Z
lib/cryptofolio.ex
mateusfs/cryptofolio-api
063bfcf39a0b334204e6b6ef01990622a1f316af
[ "MIT" ]
2
2017-08-03T19:55:21.000Z
2018-07-01T19:54:22.000Z
defmodule Cryptofolio do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the Ecto reposit...
32.78125
89
0.72164
ab4b062e0dbc4288b75ce8158dbfd2dfa6c84306
2,110
ex
Elixir
lib/google_api/storage/v1/model/bucket_iam_configuration.ex
DinaWork/google-api-storage
4ad1e5716e4f2a4e85b91dc1aaf93ac13096c9a2
[ "Apache-2.0" ]
null
null
null
lib/google_api/storage/v1/model/bucket_iam_configuration.ex
DinaWork/google-api-storage
4ad1e5716e4f2a4e85b91dc1aaf93ac13096c9a2
[ "Apache-2.0" ]
null
null
null
lib/google_api/storage/v1/model/bucket_iam_configuration.ex
DinaWork/google-api-storage
4ad1e5716e4f2a4e85b91dc1aaf93ac13096c9a2
[ "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...
37.678571
196
0.761137
ab4b0e9b520ed621f7fc23a5f3fa6c91eb418187
1,470
ex
Elixir
apps/core/lib/core/api/behaviours/media_storage_behaviour.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/lib/core/api/behaviours/media_storage_behaviour.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/lib/core/api/behaviours/media_storage_behaviour.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.API.MediaStorageBehaviour do @moduledoc false @callback verify_uploaded_file(url :: binary, resource_name :: binary) :: {:ok, result :: term} | {:error, reason :: term} @callback create_signed_url( action :: binary, bucket :: binary, resourc...
39.72973
101
0.542177
ab4b3692c2e3051bd799c8719d39839e11a1d95c
1,760
ex
Elixir
apps/mcam_server_web/lib/mcam_server_web/controllers/user_reset_password_controller.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
apps/mcam_server_web/lib/mcam_server_web/controllers/user_reset_password_controller.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
8
2020-11-16T09:59:12.000Z
2020-11-16T10:13:07.000Z
apps/mcam_server_web/lib/mcam_server_web/controllers/user_reset_password_controller.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
defmodule McamServerWeb.UserResetPasswordController do use McamServerWeb, :controller alias McamServer.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 u...
29.333333
101
0.6625
ab4b3bab0481f6009925a55de8c91af508675b62
366
ex
Elixir
priv/catalogue/surface/components/form/textarea/example01.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
1
2021-04-30T14:28:08.000Z
2021-04-30T14:28:08.000Z
priv/catalogue/surface/components/form/textarea/example01.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
priv/catalogue/surface/components/form/textarea/example01.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.TextArea.Example01 do use Surface.Catalogue.Example, catalogue: Surface.Components.Catalogue, subject: Surface.Components.Form.TextArea, height: "170px" def render(assigns) do ~H""" <TextArea rows="4" class="textarea" opts={{ placeholder: "4 l...
21.529412
55
0.653005
ab4b3c634b8e0a13c70a38049c69891514b0ae1d
1,765
ex
Elixir
lib/currencies.ex
mithereal/ex_softbank
8e64143e0056861c84ed71001929bbb5a10a55bf
[ "MIT" ]
1
2020-01-26T23:28:44.000Z
2020-01-26T23:28:44.000Z
lib/currencies.ex
mithereal/ex_softbank
8e64143e0056861c84ed71001929bbb5a10a55bf
[ "MIT" ]
1
2018-12-02T05:35:28.000Z
2019-03-14T22:42:30.000Z
lib/currencies.ex
mithereal/elixir-softbank
2e63b72c4f25d651f4aee654ee41c25ac938fda3
[ "MIT" ]
null
null
null
defmodule SoftBank.Currencies do alias SoftBank.Currency alias SoftBank.Config require Logger def init(pid, table) do currencies = Config.repo().all(Currency) Enum.map(currencies, fn x -> Cldr.Currency.new(x.symbol, cash_digits: x.cash_digits, cash_rounding: x.cash_rounding, ...
23.533333
73
0.585269
ab4b3f49a79de58ea8e5159513e63e64d16402f0
21,885
ex
Elixir
deps/phoenix/lib/phoenix/channel.ex
thaisfiori/blog_da_tha
e860e64e5251dae03b95fdf1e339ec0a3d789a29
[ "Apache-2.0" ]
2
2020-05-06T14:51:56.000Z
2020-05-06T14:52:21.000Z
deps/phoenix/lib/phoenix/channel.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/phoenix/lib/phoenix/channel.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
1
2021-03-24T23:04:57.000Z
2021-03-24T23:04:57.000Z
defmodule Phoenix.Channel do @moduledoc ~S""" Defines a Phoenix Channel. Channels provide a means for bidirectional communication from clients that integrate with the `Phoenix.PubSub` layer for soft-realtime functionality. ## Topics & Callbacks Every time you join a channel, you need to choose which part...
33.930233
107
0.653004
ab4b5228c5a85227e54583652e7798cd4612d91f
584
ex
Elixir
lib/hl7/2.4/segments/bhs.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/bhs.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/bhs.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.Segments.BHS do @moduledoc false require Logger alias HL7.V2_4.{DataTypes} use HL7.Segment, fields: [ segment: nil, batch_field_separator: nil, batch_encoding_characters: nil, batch_sending_application: nil, batch_sending_facility: nil, batch_receivin...
24.333333
45
0.69863
ab4b60040e25c3d166c5f051265dcef442a4faac
1,577
exs
Elixir
test/tirexs/env_test.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
384
2015-03-09T05:03:42.000Z
2022-02-27T00:45:58.000Z
test/tirexs/env_test.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
144
2015-03-06T11:19:49.000Z
2021-06-11T11:26:39.000Z
test/tirexs/env_test.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
97
2015-03-21T13:58:38.000Z
2022-01-07T14:40:49.000Z
defmodule Tirexs.ENVTest do use ExUnit.Case alias Tirexs.ENV @expected ENV.default_uri_env setup do on_exit fn -> :ok = Application.put_env(:tirexs, :uri, @expected) :ok = System.delete_env("ES_URI") end end test "get_all_env/0" do actual = ENV.get_all_env() assert(length(a...
25.852459
124
0.653773
ab4b73a0e391c49420f57addfed0fc88c7642a33
228
ex
Elixir
lib/slurp/explorer_adapter.ex
AwaitFuture/slurp
f1d0fe5feb21f3135727c1516908e89130ea5801
[ "MIT" ]
20
2021-01-02T07:45:04.000Z
2022-03-29T07:34:42.000Z
lib/slurp/explorer_adapter.ex
AwaitFuture/slurp
f1d0fe5feb21f3135727c1516908e89130ea5801
[ "MIT" ]
11
2021-01-25T13:10:34.000Z
2021-09-23T05:34:08.000Z
lib/slurp/explorer_adapter.ex
AwaitFuture/slurp
f1d0fe5feb21f3135727c1516908e89130ea5801
[ "MIT" ]
1
2021-03-12T07:27:05.000Z
2021-03-12T07:27:05.000Z
defmodule Slurp.ExplorerAdapter do @type endpoint :: String.t() @type address :: Slurp.Adapter.address() @type url :: String.t() @callback home_url(endpoint) :: url @callback address_url(endpoint, address) :: url end
25.333333
49
0.70614
ab4b8441d14cd13118c5c3d2007d67e98a0551a1
179
exs
Elixir
elixir/samples/json-api/config/prod.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
2
2015-12-09T02:16:51.000Z
2021-07-26T22:53:43.000Z
elixir/samples/json-api/config/prod.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
null
null
null
elixir/samples/json-api/config/prod.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
1
2016-05-08T18:40:31.000Z
2016-05-08T18:40:31.000Z
use Mix.Config config :json_api, JsonApi.Endpoint, http: [port: {:system, "PORT"}], url: [host: "example.com"] config :logger, level: :info import_config "prod.secret.exs"
17.9
35
0.687151
ab4b95574cf6f87cad0209931c62c709a871f381
12,533
ex
Elixir
lib/exsh_repl_eval.ex
stollcri/exsh
cf4ef222d4be3698253b53e4c68be7a8602cd616
[ "BSD-3-Clause" ]
null
null
null
lib/exsh_repl_eval.ex
stollcri/exsh
cf4ef222d4be3698253b53e4c68be7a8602cd616
[ "BSD-3-Clause" ]
null
null
null
lib/exsh_repl_eval.ex
stollcri/exsh
cf4ef222d4be3698253b53e4c68be7a8602cd616
[ "BSD-3-Clause" ]
null
null
null
defmodule Exsh.Repl.Eval do use Exsh.Messages defmacro __using__(_) do quote do import Exsh.Repl.Eval end end @doc """ Evaluate user input given the `command_string` using the `symbols` and considering `options` Returns `{stdout, stderr, exitcode}` ## Examples iex> Exsh.Repl.Eval.eva...
30.346247
122
0.624671
ab4bae812a8c07aadadd8c8e537137db2fac5625
395
ex
Elixir
lib/lunatube/guardian_serializer.ex
Poniverse/LunaTube-API
433473f32ec04a636f6de60642e445fd2e478f98
[ "Apache-2.0" ]
null
null
null
lib/lunatube/guardian_serializer.ex
Poniverse/LunaTube-API
433473f32ec04a636f6de60642e445fd2e478f98
[ "Apache-2.0" ]
null
null
null
lib/lunatube/guardian_serializer.ex
Poniverse/LunaTube-API
433473f32ec04a636f6de60642e445fd2e478f98
[ "Apache-2.0" ]
null
null
null
defmodule Lunatube.GuardianSerializer do @behaviour Guardian.Serializer alias Lunatube.Repo alias Lunatube.User def for_token(user = %User{}), do: { :ok, "User:#{user.id}" } def for_token(_), do: { :error, "Unknown resource type" } def from_token("User:" <> id), do: { :ok, Repo.get(User, String.to_intege...
28.214286
83
0.673418
ab4bb205a418e8a14f6558c1b1acc875b2806d53
7,139
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/conversions.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/conversions.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/conversions.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...
43.006024
196
0.636083
ab4bf5a343112ef7cfe0f2681463a7d732c62dc1
1,165
ex
Elixir
apps/ewallet/lib/ewallet/policies/activity_log_policy.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet/lib/ewallet/policies/activity_log_policy.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet/lib/ewallet/policies/activity_log_policy.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 writi...
34.264706
78
0.745923
ab4c0e6c40fa8a74dbb4fac716c567bc73fd07e4
722
ex
Elixir
test/support/event_handler_test_helpers.ex
MValle21/faktory_worker
47a2224778f7ff45800bff3cb2dd3de283f9cbd9
[ "MIT" ]
17
2019-04-14T21:35:33.000Z
2019-10-26T10:36:35.000Z
test/support/event_handler_test_helpers.ex
MValle21/faktory_worker
47a2224778f7ff45800bff3cb2dd3de283f9cbd9
[ "MIT" ]
75
2019-03-12T12:09:34.000Z
2020-01-04T14:19:11.000Z
test/support/event_handler_test_helpers.ex
MValle21/faktory_worker
47a2224778f7ff45800bff3cb2dd3de283f9cbd9
[ "MIT" ]
4
2020-10-26T17:21:59.000Z
2021-04-17T18:05:10.000Z
defmodule FaktoryWorker.EventHandlerTestHelpers do @moduledoc false alias FaktoryWorker.Random defmacro attach_event_handler(events) do quote do handler_id = Random.string() test_events = Enum.map(unquote(events), &[:faktory_worker, &1]) :telemetry.attach_many( handler_id, ...
21.878788
69
0.68144
ab4c0ec92c57f242b3f447409fccc93fe6f4c909
1,524
ex
Elixir
lib/aws/generated/sagemaker_edge.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
341
2018-04-04T19:06:19.000Z
2022-03-25T21:34:23.000Z
lib/aws/generated/sagemaker_edge.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
82
2018-04-04T17:32:33.000Z
2022-03-24T15:12:04.000Z
lib/aws/generated/sagemaker_edge.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
76
2018-04-10T20:19:44.000Z
2022-03-15T13:49:19.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.SagemakerEdge do @moduledoc """ SageMaker Edge Manager dataplane service for communicating with active agents. """ alias AWS.Client alias AWS.Request def metadata do %AWS.Service...
21.771429
80
0.619423
ab4c1b237847fc6be0546b156f90f5e177c57447
2,055
exs
Elixir
test/sftp_client/operations/rename_test.exs
zoten/sftp_client
814d06e36915f60bf98149d790051d03bee189f5
[ "MIT" ]
21
2019-08-06T01:39:15.000Z
2021-04-15T20:08:04.000Z
test/sftp_client/operations/rename_test.exs
zoten/sftp_client
814d06e36915f60bf98149d790051d03bee189f5
[ "MIT" ]
19
2019-07-10T17:10:34.000Z
2021-04-18T11:16:58.000Z
test/sftp_client/operations/rename_test.exs
zoten/sftp_client
814d06e36915f60bf98149d790051d03bee189f5
[ "MIT" ]
11
2019-07-04T14:56:37.000Z
2021-04-26T19:09:22.000Z
defmodule SFTPClient.Operations.RenameTest do use ExUnit.Case, async: true import Mox import SFTPClient.ConnHelper alias SFTPClient.Adapter.SFTP.Mock, as: SFTPMock alias SFTPClient.OperationError alias SFTPClient.Operations.Rename setup :verify_on_exit! @conn build_conn() describe "rename/2" do ...
25.060976
71
0.438443
ab4c22f81a91053474852a45da4ab4c542c18775
2,361
ex
Elixir
test/support/tesla_helper.ex
duzzifelipe/ex-stone-openbank
5a0faa547c3aa3d7f3842739e50cca6b14337124
[ "Apache-2.0" ]
null
null
null
test/support/tesla_helper.ex
duzzifelipe/ex-stone-openbank
5a0faa547c3aa3d7f3842739e50cca6b14337124
[ "Apache-2.0" ]
null
null
null
test/support/tesla_helper.ex
duzzifelipe/ex-stone-openbank
5a0faa547c3aa3d7f3842739e50cca6b14337124
[ "Apache-2.0" ]
null
null
null
defmodule ExStoneOpenbank.TeslaHelper do @moduledoc """ Group of functions that helps in the utilization of Mox in Tesla Adapters """ import Mox import Tesla.Mock, only: [json: 2] import ExUnit.Assertions alias ExStoneOpenbank.TeslaMock defmodule RequestMatchError do defexception [:message] de...
30.662338
101
0.650572
ab4c2ac61d8a9ed1c2aebad48ed70d1b08adbba5
7,401
exs
Elixir
test/sparql_client/query/construct_test.exs
kianmeng/sparql_client
f754bb042e865f54bd2f7be276f241434df902b3
[ "MIT" ]
18
2018-03-19T22:51:00.000Z
2020-05-17T12:51:03.000Z
test/sparql_client/query/construct_test.exs
kianmeng/sparql_client
f754bb042e865f54bd2f7be276f241434df902b3
[ "MIT" ]
3
2018-08-16T13:51:45.000Z
2020-05-17T15:18:16.000Z
test/sparql_client/query/construct_test.exs
kianmeng/sparql_client
f754bb042e865f54bd2f7be276f241434df902b3
[ "MIT" ]
2
2018-08-16T13:27:31.000Z
2020-05-01T11:13:37.000Z
defmodule SPARQL.Client.Query.ConstructTest do use SPARQL.Client.Test.Case @example_endpoint "http://example.org/sparql" @default_accept_header SPARQL.Client.Query.default_accept_header(:construct) @example_query """ CONSTRUCT { <#{IRI.to_string(EX.S)}> ?p ?o } WHERE { <#{IRI.to_string(EX.S)}> ?p ?o ...
30.8375
178
0.591271
ab4c3146cbdcc187db5a3b881f6007eba51949de
1,059
ex
Elixir
phoenix_tutorial/lib/phoenix_tutorial/endpoint.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
phoenix_tutorial/lib/phoenix_tutorial/endpoint.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
phoenix_tutorial/lib/phoenix_tutorial/endpoint.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
defmodule PhoenixTutorial.Endpoint do use Phoenix.Endpoint, otp_app: :phoenix_tutorial socket "/socket", PhoenixTutorial.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in producti...
26.475
69
0.72238
ab4c45da64a00df876aeaa5e03edc00486a4f070
3,782
ex
Elixir
lib/algae/reader.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
null
null
null
lib/algae/reader.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
null
null
null
lib/algae/reader.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
null
null
null
defmodule Algae.Reader do @moduledoc ~S""" `Algae.Reader` allows you to pass some readable context around through actions. This is useful in a number of situations, but the most common case is to weave access to environment variables monadically. For an illustrated guide to `Reader`s, see [Thee Useful Mon...
23.936709
128
0.515336
ab4c46b13a5a9a4b6016cef29c671c08dcc13128
5,408
ex
Elixir
deps/plug/lib/plug/adapters/test/conn.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/plug/lib/plug/adapters/test/conn.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/plug/lib/plug/adapters/test/conn.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Plug.Adapters.Test.Conn do @behaviour Plug.Conn.Adapter @moduledoc false ## Test helpers def conn(conn, method, uri, body_or_params) do maybe_flush() uri = URI.parse(uri) method = method |> to_string |> String.upcase() query = uri.query || "" owner = self() {b...
29.551913
92
0.605214
ab4c4c2f443d02cd1081c58ec3014fe8a6776d26
755
exs
Elixir
test/endpoints/helpers_test.exs
davidsulc/scraping_hub_ex
78fbf8f4c18f8f3650148b9c8861f22856dbb8b1
[ "Apache-2.0" ]
2
2021-03-30T07:59:54.000Z
2021-04-06T12:32:40.000Z
test/endpoints/helpers_test.exs
davidsulc/scrapy_cloud_ex
78fbf8f4c18f8f3650148b9c8861f22856dbb8b1
[ "Apache-2.0" ]
null
null
null
test/endpoints/helpers_test.exs
davidsulc/scrapy_cloud_ex
78fbf8f4c18f8f3650148b9c8861f22856dbb8b1
[ "Apache-2.0" ]
null
null
null
defmodule ScrapyCloudEx.Endpoints.HelpersTest do use ExUnit.Case, async: true alias ScrapyCloudEx.Endpoints.Helpers alias ScrapyCloudEx.HttpAdapter.{RequestConfig, Response} defmodule Adapter do @behaviour ScrapyCloudEx.HttpAdapter @impl ScrapyCloudEx.HttpAdapter def request(_), do: {:ok, %Respon...
26.964286
74
0.721854
ab4c80f0dbdb6fc39161541bf4f58b162cbfb006
19,714
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/api/first_and_third_party_audiences.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/api/first_and_third_party_audiences.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/api/first_and_third_party_audiences.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
47.849515
549
0.639901
ab4ca88901b5a6dd35f86e283bb4d7caa9e176d3
93
ex
Elixir
lib/mailgun_logger_web/views/setup_view.ex
jackjoe/mailgun_logger
7d5a1989afdeb215bcd3753671c61bc25ed4e522
[ "MIT" ]
64
2020-02-10T20:42:46.000Z
2021-11-16T10:47:50.000Z
lib/mailgun_logger_web/views/setup_view.ex
jackjoe/mailgun_logger
7d5a1989afdeb215bcd3753671c61bc25ed4e522
[ "MIT" ]
16
2020-02-10T20:45:57.000Z
2022-03-04T12:53:34.000Z
lib/mailgun_logger_web/views/setup_view.ex
jackjoe/mailgun_logger
7d5a1989afdeb215bcd3753671c61bc25ed4e522
[ "MIT" ]
4
2020-04-03T17:13:19.000Z
2020-07-17T12:56:31.000Z
defmodule MailgunLoggerWeb.SetupView do use MailgunLoggerWeb, :view @moduledoc false end
18.6
39
0.817204
ab4d05cecfd97e0c0f0b9c5cd0d23bec0e0c9df9
43,498
exs
Elixir
test/ecto/adapters/postgres_test.exs
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
test/ecto/adapters/postgres_test.exs
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
test/ecto/adapters/postgres_test.exs
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../../integration_test/support/types.exs", __DIR__ defmodule Ecto.Adapters.PostgresTest do use ExUnit.Case, async: true import Ecto.Query alias Ecto.Queryable alias Ecto.Adapters.Postgres.Connection, as: SQL defmodule Schema do use Ecto.Schema schema "schema" do field ...
44.070922
156
0.588096
ab4d4ca36ee972ce48bcac99c80ccd24960a5e86
1,287
exs
Elixir
config/dev.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
3
2017-10-16T14:35:46.000Z
2017-12-13T22:35:43.000Z
config/dev.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
config/dev.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :bank, BankWeb.Endpoint, http: [port: 4000], ...
33.868421
170
0.735043
ab4d519422195e750a481a1b8c868cd5cd27c2a7
277,948
exs
Elixir
test/cfg_test.exs
vsajip/ex-cfg-lib
8fcef6ef3f33f55071ef31d5a4b63b298ed21ce1
[ "BSD-3-Clause" ]
null
null
null
test/cfg_test.exs
vsajip/ex-cfg-lib
8fcef6ef3f33f55071ef31d5a4b63b298ed21ce1
[ "BSD-3-Clause" ]
null
null
null
test/cfg_test.exs
vsajip/ex-cfg-lib
8fcef6ef3f33f55071ef31d5a4b63b298ed21ce1
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (C) 2021 Vinay Sajip <vinay_sajip@yahoo.co.uk> # # See LICENSE file for usage rights. # # defmodule CFGTest do # use ExUnit.Case # # doctest CFG # end defmodule Utils do @moduledoc false alias CFG.Location def data_path(s) do Path.join("resources", s) end def loc(l, c) do Location...
27.332874
102
0.412915
ab4d6487d13971c8a16836c67201d18a308c7aa9
1,464
exs
Elixir
apps/snitch_core/priv/repo/seed/seeds.exs
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
1
2018-12-01T18:13:55.000Z
2018-12-01T18:13:55.000Z
apps/snitch_core/priv/repo/seed/seeds.exs
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
apps/snitch_core/priv/repo/seed/seeds.exs
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "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: # # Snitch.Core.Tools.MultiTenancy.Repo.insert!(%Snitch.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # a...
17.853659
71
0.727459
ab4d705eeef86bbc2ae3deb7defe7e09fc70d0eb
2,018
ex
Elixir
clients/cloud_build/lib/google_api/cloud_build/v1/model/pull_request_filter.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/lib/google_api/cloud_build/v1/model/pull_request_filter.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/lib/google_api/cloud_build/v1/model/pull_request_filter.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.793103
138
0.721506
ab4d7fd7eb58df6d64b4694e6c143768273ec372
651
exs
Elixir
test/ivcu/collection_traverser/async_traverser_test.exs
elixir-ivcu/ivcu
aaf83e6fcb1bd7bc8e44eec9171afff8f9707d25
[ "Apache-2.0" ]
3
2022-03-01T04:32:53.000Z
2022-03-04T08:17:57.000Z
test/ivcu/collection_traverser/async_traverser_test.exs
elixir-ivcu/ivcu
aaf83e6fcb1bd7bc8e44eec9171afff8f9707d25
[ "Apache-2.0" ]
4
2022-03-01T05:04:41.000Z
2022-03-03T16:29:50.000Z
test/ivcu/collection_traverser/async_traverser_test.exs
elixir-ivcu/ivcu
aaf83e6fcb1bd7bc8e44eec9171afff8f9707d25
[ "Apache-2.0" ]
null
null
null
defmodule IVCU.CollectionTraverser.AsyncTraverserTest do use ExUnit.Case, async: true alias IVCU.CollectionTraverser.AsyncTraverser describe "traverse/2" do test "successfully applies actions to collection items" do assert AsyncTraverser.traverse([1, 2, 3], fn x -> {:ok, x + 1} end) == ...
28.304348
76
0.540707
ab4d9110d8a4676d1d409f1f586c55b25866470d
205
ex
Elixir
lib/lapin/pattern/rpc.ex
expert360/lapin
81f63910178523af6658412a6730632bad08d143
[ "MIT" ]
null
null
null
lib/lapin/pattern/rpc.ex
expert360/lapin
81f63910178523af6658412a6730632bad08d143
[ "MIT" ]
null
null
null
lib/lapin/pattern/rpc.ex
expert360/lapin
81f63910178523af6658412a6730632bad08d143
[ "MIT" ]
null
null
null
defmodule Lapin.Pattern.RPC do @moduledoc """ Lapin.Pattern implementation for the [RPC](http://www.rabbitmq.com/tutorials/tutorial-six-elixir.html) RabbitMQ pattern. """ use Lapin.Pattern end
22.777778
67
0.736585
ab4db408d2620a7ed594d914fe76a7091cb46e3b
904
ex
Elixir
lib/contento_web/helpers/theme_helpers.ex
reubenbrown13/website
75d5d6bbf8f75d9837a3427c22060096604f5070
[ "MIT" ]
null
null
null
lib/contento_web/helpers/theme_helpers.ex
reubenbrown13/website
75d5d6bbf8f75d9837a3427c22060096604f5070
[ "MIT" ]
null
null
null
lib/contento_web/helpers/theme_helpers.ex
reubenbrown13/website
75d5d6bbf8f75d9837a3427c22060096604f5070
[ "MIT" ]
1
2020-11-21T20:12:01.000Z
2020-11-21T20:12:01.000Z
defmodule ContentoWeb.ThemeHelpers do import Phoenix.HTML, only: [raw: 1] import Phoenix.Controller, only: [view_module: 1, action_name: 1] def page_title(%{assigns: assigns} = conn, sep \\ "-") do website_title = assigns[:settings].website_title try do page_title = apply(view_module(conn), :page_...
26.588235
86
0.665929
ab4dbc1af29e976db810f34d768e3d9e2315f88c
854
ex
Elixir
lib/membrane/rtcp/app_packet.ex
geometerio/membrane_rtp_plugin
ac6191bf7dcf2b00e880aeb475faa6de688ff5cb
[ "Apache-2.0" ]
15
2020-12-12T01:30:19.000Z
2022-02-28T22:48:08.000Z
lib/membrane/rtcp/app_packet.ex
geometerio/membrane_rtp_plugin
ac6191bf7dcf2b00e880aeb475faa6de688ff5cb
[ "Apache-2.0" ]
39
2020-07-31T09:16:41.000Z
2022-03-17T09:40:50.000Z
lib/membrane/rtcp/app_packet.ex
membraneframework/membrane_rtp
1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa
[ "Apache-2.0" ]
3
2021-05-12T21:27:28.000Z
2021-11-03T19:27:34.000Z
defmodule Membrane.RTCP.AppPacket do @moduledoc """ Parses RTCP Application-defined (APP) packets defined in [RFC3550](https://tools.ietf.org/html/rfc3550#section-6.7) """ @behaviour Membrane.RTCP.Packet defstruct [:subtype, :ssrc, :name, :data] @type t :: %__MODULE__{ subtype: non_neg_intege...
21.897436
78
0.577283
ab4dd557c7f8a22d486c93bc7adf452c9df1e46b
2,638
ex
Elixir
farmbot_core/lib/farmbot_core/asset_workers/firmware_config_worker.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_workers/firmware_config_worker.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_workers/firmware_config_worker.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.FirmwareConfig do @moduledoc """ This asset worker does not get restarted. It instead responds to GenServer calls. """ use GenServer require FarmbotCore.Logger alias FarmbotFirmware alias FarmbotFirmware.Param alias FarmbotCore.{Asset.FirmwareCo...
37.685714
125
0.687642
ab4ddb9b389b284babfba52f75dd8c0300f3eaa8
7,078
exs
Elixir
test/lib/bamboo/postmark_adapter_test.exs
hoangvn2404/bamboo_postmark
9b9dc788877773b058c452252b21ef8a95a8ebec
[ "MIT" ]
null
null
null
test/lib/bamboo/postmark_adapter_test.exs
hoangvn2404/bamboo_postmark
9b9dc788877773b058c452252b21ef8a95a8ebec
[ "MIT" ]
null
null
null
test/lib/bamboo/postmark_adapter_test.exs
hoangvn2404/bamboo_postmark
9b9dc788877773b058c452252b21ef8a95a8ebec
[ "MIT" ]
null
null
null
defmodule Bamboo.PostmarkAdapterTest do use ExUnit.Case alias Bamboo.Email alias Bamboo.PostmarkAdapter alias Bamboo.PostmarkHelper @config %{adapter: PostmarkAdapter, api_key: "123_abc"} @config_with_env_var_key %{adapter: PostmarkAdapter, api_key: {:system, "POSTMARK_API_KEY"}} @config_with_bad_key %{a...
28.540323
97
0.630263
ab4ddbb4ded0bfbe6b7e2475eb2b099112fb6120
841
ex
Elixir
lib/bolt/schema/usw_punishment_config.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
lib/bolt/schema/usw_punishment_config.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
lib/bolt/schema/usw_punishment_config.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.Schema.USWPunishmentConfig do @moduledoc "Configuration for the punishment executed by USW." import Ecto.Changeset use Ecto.Schema @primary_key false schema "usw_punishment_config" do field(:guild_id, :id, primary_key: true) field(:duration, :integer) field(:punishment, :string) ...
27.129032
74
0.681332
ab4e24e7383847957c1f518fdb4b32ea0efc2c3f
7,206
exs
Elixir
elixir/twelve-days/twelve_days_test.exs
nayed/exercism
effee8c79b21b9a58049d863646d341c069aa835
[ "MIT" ]
null
null
null
elixir/twelve-days/twelve_days_test.exs
nayed/exercism
effee8c79b21b9a58049d863646d341c069aa835
[ "MIT" ]
null
null
null
elixir/twelve-days/twelve_days_test.exs
nayed/exercism
effee8c79b21b9a58049d863646d341c069aa835
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("twelve_days.exs", __DIR__) end ExUnit.start ExUnit.configure trace: true, exclude: :pending defmodule TwelveDaysTest do use ExUnit.Case describe "verse" do test "first verse" do assert TwelveDays.verse(1) == "On the first day of Christma...
90.075
358
0.730641
ab4e253a888e38bc38e6ed85171d9a53af1a4191
1,338
ex
Elixir
lib/leather_web/controllers/auth.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
67
2016-10-24T04:11:40.000Z
2021-11-25T16:46:51.000Z
lib/leather_web/controllers/auth.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
6
2017-08-17T21:43:50.000Z
2021-11-03T13:13:49.000Z
lib/leather_web/controllers/auth.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
7
2017-08-13T01:43:37.000Z
2022-01-11T04:38:27.000Z
defmodule Leather.Auth do @moduledoc false alias Leather.User import Comeonin.Bcrypt, only: [checkpw: 2, dummy_checkpw: 0] import Plug.Conn def init(opts) do Keyword.fetch!(opts, :repo) end def call(conn, repo) do user_id = get_session(conn, :user_id) cond do user = conn.assigns[:cu...
20.90625
63
0.627803
ab4e3deda26ef3826f4a19e9e6f074b526bcb359
58
ex
Elixir
lib/oli_web/views/ui_palette_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/views/ui_palette_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/views/ui_palette_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.UIPaletteView do use OliWeb, :view end
14.5
33
0.793103
ab4e49e6d805ed1e218c8c4af9ae62a3ccd537ed
552
ex
Elixir
samples/client/petstore/elixir/lib/openapi_petstore/model/cat.ex
GitHub30/openapi-generator
790f3d46aa5e6510d6f3701022d224f5f38fc73c
[ "Apache-2.0" ]
1
2021-05-06T18:52:46.000Z
2021-05-06T18:52:46.000Z
samples/client/petstore/elixir/lib/openapi_petstore/model/cat.ex
GitHub30/openapi-generator
790f3d46aa5e6510d6f3701022d224f5f38fc73c
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/elixir/lib/openapi_petstore/model/cat.ex
GitHub30/openapi-generator
790f3d46aa5e6510d6f3701022d224f5f38fc73c
[ "Apache-2.0" ]
3
2018-10-18T17:55:30.000Z
2020-05-14T16:57:01.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 OpenapiPetstore.Model.Cat do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"className", :"color", :"declawed" ] ...
18.4
91
0.648551
ab4e63286fa072d4ced29cee6f5822a16ee30bde
736
exs
Elixir
test/models/role_test.exs
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
test/models/role_test.exs
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
test/models/role_test.exs
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
defmodule CodeCorps.RoleTest do use CodeCorps.ModelCase alias CodeCorps.Role @valid_attrs %{ability: "Backend Development", kind: "technology", name: "Backend Developer"} @invalid_attrs %{ability: "Juggling", kind: "circus", name: "Juggler"} @empty_attrs %{} test "changeset with valid attributes" do ...
28.307692
95
0.706522
ab4e6be00fee53fe35709b288b67c2cb2bfb34ec
925
ex
Elixir
wc3/validator-suite/debian/debian/postrm.ex
Uvacoder/html-demo-code-and-experiments
1bd2ab50afe8f331396c37822301afa8e4903bcd
[ "Apache-2.0" ]
3
2021-11-15T07:54:37.000Z
2021-11-29T03:09:12.000Z
wc3/validator-suite/debian/debian/postrm.ex
Uvacoder/html-demo-code-and-experiments
1bd2ab50afe8f331396c37822301afa8e4903bcd
[ "Apache-2.0" ]
26
2021-11-15T04:26:39.000Z
2021-11-17T00:17:06.000Z
wc3/validator-suite/debian/debian/postrm.ex
Uvacoder/html-demo-code-and-experiments
1bd2ab50afe8f331396c37822301afa8e4903bcd
[ "Apache-2.0" ]
null
null
null
#!/bin/sh # postrm script for vs # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install' # ...
24.342105
78
0.625946
ab4e84cc58361caf32aae16b200779c9f7bfa494
129
exs
Elixir
apps/massa_proxy/test/massa_proxy_test.exs
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
20
2021-06-28T12:03:49.000Z
2022-03-28T22:35:56.000Z
apps/massa_proxy/test/massa_proxy_test.exs
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
48
2021-03-19T12:01:38.000Z
2022-03-29T21:19:26.000Z
apps/massa_proxy/test/massa_proxy_test.exs
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
5
2021-03-18T21:46:10.000Z
2021-10-01T17:39:05.000Z
defmodule MassaProxyTest do use ExUnit.Case doctest MassaProxy test "greets the world" do assert 1 + 1 == 2 end end
14.333333
28
0.697674
ab4e8e2a33706b59e46d7e1ce4152e6bb5f705e2
1,410
ex
Elixir
clients/o_auth2/lib/google_api/o_auth2/v2/connection.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/o_auth2/lib/google_api/o_auth2/v2/connection.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/o_auth2/lib/google_api/o_auth2/v2/connection.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 &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.105263
77
0.723404
ab4e98182ed9db8efed5d740d7b9129ec30346b5
3,394
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1/model/cvss.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/cvss.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/cvss.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.425
349
0.673836
ab4eaf456453fad3e45db5e4cbacbefb9c19efb5
73
ex
Elixir
web/views/layout_view.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
17
2017-01-02T10:38:28.000Z
2021-02-28T22:16:54.000Z
web/views/layout_view.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
null
null
null
web/views/layout_view.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
2
2017-01-09T13:02:13.000Z
2018-06-16T22:01:53.000Z
defmodule SocialNetwork.LayoutView do use SocialNetwork.Web, :view end
18.25
37
0.821918
ab4eb4fb4a9949d5f066c834e8c0a03eac939cec
1,160
ex
Elixir
lib/database/status_state.ex
UnofficialJuliaMirror/bors-ng-bors-ng
fcec51b5f6e5a691d3e310bd35ba7b74e55b667f
[ "Apache-2.0" ]
null
null
null
lib/database/status_state.ex
UnofficialJuliaMirror/bors-ng-bors-ng
fcec51b5f6e5a691d3e310bd35ba7b74e55b667f
[ "Apache-2.0" ]
1
2020-03-07T08:28:14.000Z
2020-03-07T08:28:14.000Z
lib/database/status_state.ex
UnofficialJuliaMirror/bors-ng-bors-ng
fcec51b5f6e5a691d3e310bd35ba7b74e55b667f
[ "Apache-2.0" ]
3
2020-11-15T16:17:58.000Z
2021-06-04T11:26:42.000Z
defmodule BorsNG.Database.StatusState do @behaviour Ecto.Type @moduledoc """ A type to represent the status state. """ # Underlying storage is an integer. def type, do: :integer # Accept the integer state values for easier translation of existing code. def cast(state) when is_integer(state) do cas...
20.350877
76
0.515517
ab4ef1c014059c904cd8fb36bdb5b73cb14f9b92
3,016
exs
Elixir
apps/state/test/state/vehicle_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/state/test/state/vehicle_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/state/test/state/vehicle_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule State.VehicleTest do @moduledoc false use ExUnit.Case alias Model.{Route, Trip, Vehicle} import State.Vehicle setup _ do State.Trip.new_state([]) new_state([]) :ok end test "returns nil for unknown vehicles" do assert by_id("1") == nil assert by_trip_id("1") == [] asse...
29.861386
96
0.619032
ab4f425a9ac3b707e4b115b1c6d7f40872a4ab9d
1,796
ex
Elixir
lib/as_nested_set/model.ex
Obighbyd/as_nested_set
dc8e47cedc416a423d3b45062a56650aed1d6eed
[ "MIT" ]
35
2016-06-13T13:39:13.000Z
2021-12-21T14:39:46.000Z
lib/as_nested_set/model.ex
Obighbyd/as_nested_set
dc8e47cedc416a423d3b45062a56650aed1d6eed
[ "MIT" ]
14
2016-11-30T14:58:00.000Z
2022-03-31T09:19:46.000Z
lib/as_nested_set/model.ex
Obighbyd/as_nested_set
dc8e47cedc416a423d3b45062a56650aed1d6eed
[ "MIT" ]
11
2017-01-09T05:41:07.000Z
2021-12-21T14:39:51.000Z
defmodule AsNestedSet.Model do defmacro __using__(_) do quote do @node_id_column :id @left_column :lft @right_column :rgt @parent_id_column :parent_id @before_compile AsNestedSet.Model end end defmacro __before_compile__(env) do [ define_accessors([:node_id, :left...
27.630769
101
0.629176
ab4f9140b5f8460327f2b8512cb40b75e8ba4fed
896
ex
Elixir
lib/ttc_core.ex
alakra/ticket-to-ride-core
7886e1937d4f41b472e0bb3e2cc20ea4ef350085
[ "MIT" ]
6
2018-09-23T21:04:50.000Z
2021-03-13T02:56:23.000Z
lib/ttc_core.ex
alakra/ticket-to-ride-core
7886e1937d4f41b472e0bb3e2cc20ea4ef350085
[ "MIT" ]
23
2018-08-24T17:09:18.000Z
2021-08-02T12:15:23.000Z
lib/ttc_core.ex
alakra/ticket-to-ride-core
7886e1937d4f41b472e0bb3e2cc20ea4ef350085
[ "MIT" ]
1
2018-08-24T16:59:45.000Z
2018-08-24T16:59:45.000Z
defmodule TtrCore do @moduledoc """ Implementation of Ticket to Ride Game, State Management and Player Sessions """ use Application alias TtrCore.{ Games, Players } alias TtrCore.Games.{ Index, Ticker, Turns } # API @doc """ Starts the Ticket to Ride game state management a...
21.333333
142
0.625
ab4fd5bed971ea5e03de16d3a84bd81979a44dc4
252
exs
Elixir
config/dev.exs
elixir-cldr/cldr_units
d3d51f80e304868567a7a21e9916fa17fe6ffdd1
[ "Apache-2.0" ]
11
2019-07-31T19:33:07.000Z
2021-11-15T13:11:19.000Z
config/dev.exs
elixir-cldr/cldr_units
d3d51f80e304868567a7a21e9916fa17fe6ffdd1
[ "Apache-2.0" ]
19
2019-06-09T02:41:44.000Z
2022-03-03T14:54:40.000Z
config/dev.exs
elixir-cldr/cldr_units
d3d51f80e304868567a7a21e9916fa17fe6ffdd1
[ "Apache-2.0" ]
3
2020-06-29T13:21:41.000Z
2022-03-02T15:30:08.000Z
use Mix.Config # config :ex_cldr, # default_backend: MyApp.Cldr config :ex_cldr_units, :additional_units, vehicle: [base_unit: :unit, factor: 1, offset: 0, sort_before: :all], person: [base_unit: :unit, factor: 1, offset: 0, sort_before: :all]
28
71
0.710317
ab4fda149970872e2723c01d9bc947e8a01345ed
4,815
ex
Elixir
lib/new_relic/harvest/collector/metric/harvester.ex
marocchino/elixir_agent
3c63715b130cf5997868c3a59097da256bf65102
[ "Apache-2.0" ]
null
null
null
lib/new_relic/harvest/collector/metric/harvester.ex
marocchino/elixir_agent
3c63715b130cf5997868c3a59097da256bf65102
[ "Apache-2.0" ]
null
null
null
lib/new_relic/harvest/collector/metric/harvester.ex
marocchino/elixir_agent
3c63715b130cf5997868c3a59097da256bf65102
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic.Harvest.Collector.Metric.Harvester do use GenServer @moduledoc false alias NewRelic.Harvest alias NewRelic.Harvest.Collector alias NewRelic.Metric.MetricData def start_link(_) do GenServer.start_link(__MODULE__, []) end def init(_) do {:ok, %{ start_time: Syste...
29.906832
87
0.680789
ab4ff7dc951d019a8ea37a1c98c7b8f1631d0496
998
ex
Elixir
fw/phoenix/todo_api/test/support/channel_case.ex
alexgarzao/learning_elixir
f1b06f26898be35803591245d033d30dd4bd1e1a
[ "MIT" ]
null
null
null
fw/phoenix/todo_api/test/support/channel_case.ex
alexgarzao/learning_elixir
f1b06f26898be35803591245d033d30dd4bd1e1a
[ "MIT" ]
null
null
null
fw/phoenix/todo_api/test/support/channel_case.ex
alexgarzao/learning_elixir
f1b06f26898be35803591245d033d30dd4bd1e1a
[ "MIT" ]
null
null
null
defmodule TodoApi.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
ab50072abbca3d98f462d865ccc436dd6f087bae
280
ex
Elixir
test/support/factory.ex
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
null
null
null
test/support/factory.ex
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
null
null
null
test/support/factory.ex
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
null
null
null
defmodule Hierbautberlin.Factory do use ExMachina.Ecto, repo: Hierbautberlin.Repo def source_factory do %Hierbautberlin.GeoData.Source{ short_name: "TEST", name: "City Source", url: "https://city.example.com", copyright: "Example" } end end
21.538462
47
0.671429
ab5027f6f340c5a61553fcc1e94667a47a7950af
1,727
exs
Elixir
test/algorithms/partial_match_test.exs
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
null
null
null
test/algorithms/partial_match_test.exs
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
null
null
null
test/algorithms/partial_match_test.exs
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
1
2021-04-10T15:12:12.000Z
2021-04-10T15:12:12.000Z
defmodule ExFuzzywuzzy.PartialMatch.Test do use ExUnit.Case alias ExFuzzywuzzy.Algorithms.PartialMatch test "extract matching blocks" do assert PartialMatch.matching_blocks("abcd", "abxcd") == [ %PartialMatch{ left_block: "abcd", right_block: "ab...
30.298246
105
0.486972
ab5092527b812b99210eaaa098ea015665c33a98
280
exs
Elixir
test/transferdrop_web/views/layout_view_test.exs
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
test/transferdrop_web/views/layout_view_test.exs
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
test/transferdrop_web/views/layout_view_test.exs
sheosi/transferdrop
9021fd1c0d2d28dddc141264ce95a4e8d896c3ee
[ "MIT" ]
null
null
null
defmodule TransferdropWeb.LayoutViewTest do use TransferdropWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
31.111111
65
0.775
ab50af27b7ea616827ef1ae6935888e355daace4
1,133
exs
Elixir
elixir-class/advanced/executables/config/config.exs
ikhlas-firlana/learning-class
58c2db1e8121eaec47190105dffa47d6db84bb55
[ "Apache-2.0" ]
null
null
null
elixir-class/advanced/executables/config/config.exs
ikhlas-firlana/learning-class
58c2db1e8121eaec47190105dffa47d6db84bb55
[ "Apache-2.0" ]
null
null
null
elixir-class/advanced/executables/config/config.exs
ikhlas-firlana/learning-class
58c2db1e8121eaec47190105dffa47d6db84bb55
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.548387
73
0.751986
ab50d8d4c82df58e878f4abaf66a53e0806bc1e1
1,037
ex
Elixir
lib/zionMetrics.ex
victorspringer/zionMetrics
13ae2f362d8a7e7af97a0487af53f4595c7c73fd
[ "MIT" ]
null
null
null
lib/zionMetrics.ex
victorspringer/zionMetrics
13ae2f362d8a7e7af97a0487af53f4595c7c73fd
[ "MIT" ]
null
null
null
lib/zionMetrics.ex
victorspringer/zionMetrics
13ae2f362d8a7e7af97a0487af53f4595c7c73fd
[ "MIT" ]
null
null
null
defmodule Metrics do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the Ecto repository ...
32.40625
85
0.712633
ab50d9b1cdfef10bcfbbdb3707092bee989c1263
11,848
exs
Elixir
test/transaction_trace_test.exs
VitorTrin/elixir_agent
03b1261eeafef6c016550ad51d939e75d59deda9
[ "Apache-2.0" ]
null
null
null
test/transaction_trace_test.exs
VitorTrin/elixir_agent
03b1261eeafef6c016550ad51d939e75d59deda9
[ "Apache-2.0" ]
null
null
null
test/transaction_trace_test.exs
VitorTrin/elixir_agent
03b1261eeafef6c016550ad51d939e75d59deda9
[ "Apache-2.0" ]
null
null
null
defmodule TransactionTraceTest do use ExUnit.Case use Plug.Test alias NewRelic.Harvest.Collector alias NewRelic.Transaction.Trace setup do TestHelper.restart_harvest_cycle(Collector.Metric.HarvestCycle) TestHelper.restart_harvest_cycle(Collector.TransactionTrace.HarvestCycle) TestHelper.restart_...
29.546135
98
0.667539
ab50eb17525c1e4be196581a28c3f5de7e7e2e5d
7,906
ex
Elixir
lib/ecto/migrator.ex
jeregrine/ecto
98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b
[ "Apache-2.0" ]
null
null
null
lib/ecto/migrator.ex
jeregrine/ecto
98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b
[ "Apache-2.0" ]
null
null
null
lib/ecto/migrator.ex
jeregrine/ecto
98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Migrator do @moduledoc """ This module provides the migration API. ## Example defmodule MyApp.MigrationExample do use Ecto.Migration def up do execute "CREATE TABLE users(id serial PRIMARY_KEY, username text)" end def down do execute "DR...
28.644928
119
0.647356
ab50f3eb837d02fbc353f8501fc590dd1e208e63
1,667
ex
Elixir
DL-TBRG/DL-TBRG (resolution=0.1).ELEMENT-IoT.ex
xavierflorensa/decentlab-decoders
09d2f69fa5b85bc60c5d326f0fb36bff903ac0b5
[ "MIT" ]
null
null
null
DL-TBRG/DL-TBRG (resolution=0.1).ELEMENT-IoT.ex
xavierflorensa/decentlab-decoders
09d2f69fa5b85bc60c5d326f0fb36bff903ac0b5
[ "MIT" ]
null
null
null
DL-TBRG/DL-TBRG (resolution=0.1).ELEMENT-IoT.ex
xavierflorensa/decentlab-decoders
09d2f69fa5b85bc60c5d326f0fb36bff903ac0b5
[ "MIT" ]
null
null
null
# https://www.decentlab.com/products/tipping-bucket-rain-gauge-for-lorawan defmodule Parser do use Platform.Parsing.Behaviour # device-specific parameters defp resolution(), do: 0.1 ## test payloads # 0202f8000300040258409a00000c54 # 0202f800020c54 def fields do [ %{field: "precipitatio...
30.309091
106
0.580084
ab50fa7a966f7c43590cda36c4ba34835482bef3
1,969
exs
Elixir
test/pow_last_login/ecto/schema_test.exs
NeoArcanjo/pow_last_login
00225c452bf1e277e64b6ede5a33a6b697991061
[ "MIT" ]
null
null
null
test/pow_last_login/ecto/schema_test.exs
NeoArcanjo/pow_last_login
00225c452bf1e277e64b6ede5a33a6b697991061
[ "MIT" ]
null
null
null
test/pow_last_login/ecto/schema_test.exs
NeoArcanjo/pow_last_login
00225c452bf1e277e64b6ede5a33a6b697991061
[ "MIT" ]
null
null
null
defmodule PowLastLogin.Ecto.SchemaTest do use ExUnit.Case use PowLastLogin.Test.Ecto.TestCase doctest PowLastLogin.Ecto.Schema alias PowLastLogin.Ecto.Schema alias PowLastLogin.Test.{Users.User} @password "secret1234" @user Ecto.put_meta( %User{email: "test@example.com", password: @password, c...
36.462963
119
0.760284
ab511db4ff752e057506481f16d827f234641439
1,744
exs
Elixir
mix.exs
sinorga/phx_template
730a44df362c1e035cb8afd55d2e49d44fa60632
[ "MIT" ]
null
null
null
mix.exs
sinorga/phx_template
730a44df362c1e035cb8afd55d2e49d44fa60632
[ "MIT" ]
null
null
null
mix.exs
sinorga/phx_template
730a44df362c1e035cb8afd55d2e49d44fa60632
[ "MIT" ]
null
null
null
defmodule PhxTemplate.MixProject do use Mix.Project def project do [ app: :phx_template, version: "0.1.4", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: alias...
26.830769
79
0.573968
ab51249f24c931505a3049f17a428a60683681a2
368
ex
Elixir
lib/jalka2021_web/live/leaderboard_live/leaderboard.ex
kriips/jalka2021
f4d968e20cae116fd4056bff2f937cd036421977
[ "MIT" ]
null
null
null
lib/jalka2021_web/live/leaderboard_live/leaderboard.ex
kriips/jalka2021
f4d968e20cae116fd4056bff2f937cd036421977
[ "MIT" ]
null
null
null
lib/jalka2021_web/live/leaderboard_live/leaderboard.ex
kriips/jalka2021
f4d968e20cae116fd4056bff2f937cd036421977
[ "MIT" ]
null
null
null
defmodule Jalka2021Web.LeaderboardLive.Leaderboard do use Phoenix.LiveView alias Jalka2021.Leaderboard @impl true def mount(_params, _session, socket) do {:ok, assign(socket, leaderboard: Leaderboard.get_leaderboard())} end @impl true def render(assigns), do: Phoenix.View.render(Jalka2021Web.Le...
24.533333
86
0.76087
ab512694c066b54308d61d77aabbb5ed8903dcc1
2,475
ex
Elixir
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/discovery_occurrence.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/discovery_occurrence.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/discovery_occurrence.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
41.949153
267
0.72404
ab513e2069289c8d224bc51058f7b3a26b23ddd3
1,183
ex
Elixir
apps/omg_db/lib/omg_db/application.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg_db/lib/omg_db/application.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg_db/lib/omg_db/application.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 ...
30.333333
103
0.712595
ab51b054cca4d190552e1b0cef332f14f2dc583a
883
exs
Elixir
test/vehicle_worker_test.exs
hive-fleet/hive-state
12478d8540cc93863237f6456ade0de68c56501e
[ "Apache-2.0" ]
5
2020-05-05T17:10:44.000Z
2021-03-24T20:37:48.000Z
test/vehicle_worker_test.exs
hive-fleet/hive-state
12478d8540cc93863237f6456ade0de68c56501e
[ "Apache-2.0" ]
10
2020-05-09T22:06:07.000Z
2020-05-09T22:10:14.000Z
test/vehicle_worker_test.exs
hive-fleet/hive-state
12478d8540cc93863237f6456ade0de68c56501e
[ "Apache-2.0" ]
2
2020-05-06T14:47:33.000Z
2021-06-11T21:12:29.000Z
defmodule Hive.VehicleWorkerTest do @moduledoc false use ExUnit.Case alias Hive.{ GeoPosition, Vehicle, VehicleWorker } describe "vehicle worker :: 🚗 " do test "can start vehicle" do {:ok, _pid} = VehicleWorker.start_link(%Vehicle{id: "123"}) {:ok, _pid} = VehicleWorker.start_li...
27.59375
65
0.655719
ab51cede9e744b0d114dc697d1569168dba6c8d6
574
ex
Elixir
parkapp_server/lib/parkapp_web/auth/guardian/error_handler.ex
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
2
2018-11-06T12:21:16.000Z
2018-11-21T10:20:17.000Z
parkapp_server/lib/parkapp_web/auth/guardian/error_handler.ex
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
null
null
null
parkapp_server/lib/parkapp_web/auth/guardian/error_handler.ex
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
null
null
null
defmodule ParkappWeb.Auth.Guardian.ErrorHandler do import Plug.Conn @doc """ Handler when a connection is invalid (e.g. token is invalid). """ def auth_error(conn, {type, _reason}, _opts) do body = Poison.encode!(%{error: to_string(type)}) send_resp(conn, :unauthorized, body) end end defmodule P...
26.090909
65
0.721254
ab522215fdda5b62426a20f4e2458957bd5790f2
8,422
exs
Elixir
test/integration_test.exs
kianmeng/combine
f3a16b56efab388abe2608188d519291549b7eb5
[ "MIT" ]
199
2015-07-27T11:42:38.000Z
2022-01-16T13:42:32.000Z
test/integration_test.exs
kianmeng/combine
f3a16b56efab388abe2608188d519291549b7eb5
[ "MIT" ]
45
2015-07-27T00:16:26.000Z
2018-03-02T23:27:04.000Z
test/integration_test.exs
kianmeng/combine
f3a16b56efab388abe2608188d519291549b7eb5
[ "MIT" ]
24
2015-07-26T23:52:14.000Z
2021-09-12T01:35:14.000Z
defmodule Combine.Test do use ExUnit.Case, async: true use Combine @datetime "2014-07-22T12:30:05.0002Z" @datetime_zoned "2014-07-22T12:30:05.0002+0200" @zoneinfo_path Path.join([__DIR__, "fixtures", "zoneinfo", "America", "New_York"]) @http_requests_path Path.join([__DIR__, "fixtures", "http-requests-sma...
34.235772
133
0.551769
ab5231e9fc9dd014c454fa491d2dee218ae41e62
261
ex
Elixir
lib/verk_stats/sink.ex
edgurgel/verk-stats
a4c64c724174c0cde577c367fff13093e21e9d63
[ "MIT" ]
3
2019-03-17T02:18:22.000Z
2022-03-29T07:30:18.000Z
lib/verk_stats/sink.ex
edgurgel/verk-stats
a4c64c724174c0cde577c367fff13093e21e9d63
[ "MIT" ]
null
null
null
lib/verk_stats/sink.ex
edgurgel/verk-stats
a4c64c724174c0cde577c367fff13093e21e9d63
[ "MIT" ]
null
null
null
defmodule VerkStats.Sink do @moduledoc """ Examples: sink.collect(:counter, "jobs.start", 1, worker: "Example", queue: "default") """ @type collect_type :: :counter | :timing @callback collect(collect_type, iodata, term, [String.t()]) :: :ok end
21.75
78
0.659004
ab5239482d35d56ae26ca09ebc9ef438eb28cf38
2,124
exs
Elixir
mix.exs
ramonsmits/teslamate
be751ee804d64900821632ad06ab207c19b1ca91
[ "MIT" ]
1
2020-05-06T11:37:20.000Z
2020-05-06T11:37:20.000Z
mix.exs
ramonsmits/teslamate
be751ee804d64900821632ad06ab207c19b1ca91
[ "MIT" ]
null
null
null
mix.exs
ramonsmits/teslamate
be751ee804d64900821632ad06ab207c19b1ca91
[ "MIT" ]
null
null
null
defmodule TeslaMate.MixProject do use Mix.Project def project do [ app: :teslamate, version: "1.19.3", elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(...
24.988235
71
0.48823
ab527fd48fa0fbb84fb3f869d8fb80429ba92299
1,131
exs
Elixir
config/config.exs
DoggettCK/deep_get
b9ff1e4f92b3bfa9d06c7dcdb663ddcc27544aa3
[ "MIT" ]
null
null
null
config/config.exs
DoggettCK/deep_get
b9ff1e4f92b3bfa9d06c7dcdb663ddcc27544aa3
[ "MIT" ]
null
null
null
config/config.exs
DoggettCK/deep_get
b9ff1e4f92b3bfa9d06c7dcdb663ddcc27544aa3
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.483871
73
0.751547
ab5296b6b9ec18b8126d7bac485c387b330011b2
1,805
ex
Elixir
lib/sutur_web/telemetry.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
1
2021-11-16T02:18:31.000Z
2021-11-16T02:18:31.000Z
lib/sutur_web/telemetry.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
lib/sutur_web/telemetry.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
defmodule SuturWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn mo...
32.232143
86
0.669252
ab531dd426aa6f0507caee54bc0807659e5f2cdc
2,896
ex
Elixir
clients/games/lib/google_api/games/v1/model/room_status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/room_status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/room_status.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...
49.084746
539
0.745856
ab533d60d81d0dd23a45f54deb6a6a02641bd449
2,207
exs
Elixir
test/abit/counter_test.exs
preciz/abit
46a68764e0fd107c49c989ceaaa471073f38d76b
[ "MIT" ]
9
2019-10-30T21:01:44.000Z
2021-12-03T14:37:22.000Z
test/abit/counter_test.exs
preciz/abit
46a68764e0fd107c49c989ceaaa471073f38d76b
[ "MIT" ]
8
2020-09-17T04:56:27.000Z
2022-02-24T04:12:34.000Z
test/abit/counter_test.exs
preciz/abit
46a68764e0fd107c49c989ceaaa471073f38d76b
[ "MIT" ]
1
2020-02-23T04:41:25.000Z
2020-02-23T04:41:25.000Z
defmodule Abit.CounterTest do use ExUnit.Case doctest Abit.Counter alias Abit.Counter test "creates new %Abit.Counter{} struct" do %Counter{ atomics_ref: atomics_ref, signed: false, size: 80, counters_bit_size: 8, min: 0, max: 255 } = Counter.new(80, 8, signed: fal...
23.478723
73
0.594925
ab5354569c13e8a5dea849d4db06cb9c9f9295a7
3,121
ex
Elixir
lib/injector.ex
mcrumm/ex_dash
4e81259763678c4281615db9ae50a5b87bbba232
[ "MIT" ]
26
2017-06-20T12:05:50.000Z
2021-01-02T16:08:15.000Z
lib/injector.ex
mcrumm/ex_dash
4e81259763678c4281615db9ae50a5b87bbba232
[ "MIT" ]
1
2017-03-19T19:44:30.000Z
2017-04-01T02:51:28.000Z
lib/injector.ex
russmatney/ex_dash
4e81259763678c4281615db9ae50a5b87bbba232
[ "MIT" ]
5
2018-07-06T04:54:26.000Z
2020-02-12T19:18:43.000Z
defmodule ExDash.Injector do @moduledoc """ Injector sets Dash Anchors and makes style tweaks to passed ExDoc HTML files. Dash Anchors are used within Dash to build the Table of Contents per page. Currently supported: - Types - Functions - Macros - Callbacks Style tweaks include hiding the...
28.117117
111
0.677667
ab538401735cc61c0fdee4a70abe89ca539ebd4b
507
ex
Elixir
lib/workers/sync_gmail_inboxes.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
1
2021-06-17T03:17:24.000Z
2021-06-17T03:17:24.000Z
lib/workers/sync_gmail_inboxes.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
null
null
null
lib/workers/sync_gmail_inboxes.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
null
null
null
defmodule ChatApi.Workers.SyncGmailInboxes do use Oban.Worker, queue: :default require Logger @impl Oban.Worker @spec perform(Oban.Job.t()) :: :ok def perform(%Oban.Job{} = job) do Logger.debug("Syncing Gmail inboxes: #{inspect(job)}") %{client: "gmail"} |> ChatApi.Google.list_google_authorizat...
23.045455
58
0.658777
ab539969b1ef56208e56c74b0d714b94050d575f
3,517
exs
Elixir
test/exometer/datapoints_test.exs
panoramix360/alchemetrics
7aa973bf951d5b892311831d46285a45cda0cee4
[ "MIT" ]
32
2017-07-06T13:40:00.000Z
2021-10-17T23:56:17.000Z
test/exometer/datapoints_test.exs
panoramix360/alchemetrics
7aa973bf951d5b892311831d46285a45cda0cee4
[ "MIT" ]
20
2017-07-06T14:05:33.000Z
2021-12-02T01:04:31.000Z
test/exometer/datapoints_test.exs
panoramix360/alchemetrics
7aa973bf951d5b892311831d46285a45cda0cee4
[ "MIT" ]
6
2017-07-06T14:45:38.000Z
2021-10-08T12:27:49.000Z
defmodule Alchemetrics.Exometer.DatapointsTest do use ExUnit.Case alias Alchemetrics.Exometer.Datapoints test "spiral returns the list of spiral datapoints" do assert Datapoints.spiral == [:last_interval, :total] end describe "#histogram" do test "returns the list of histogram datapoints" do ...
40.895349
110
0.69292
ab53c0cdb692af1cce8cefdb725627325f2e5f06
1,204
ex
Elixir
lib/schemas/server/subuser_v1.ex
Kintull/elidactyl
9a051ed511ed92fa7578038784baa73288f1312b
[ "MIT" ]
6
2020-04-28T21:38:40.000Z
2022-02-13T01:04:10.000Z
lib/schemas/server/subuser_v1.ex
Kintull/elidactyl
9a051ed511ed92fa7578038784baa73288f1312b
[ "MIT" ]
1
2021-03-16T10:39:32.000Z
2021-03-16T10:39:32.000Z
lib/schemas/server/subuser_v1.ex
Kintull/elidactyl
9a051ed511ed92fa7578038784baa73288f1312b
[ "MIT" ]
null
null
null
defmodule Elidactyl.Schemas.Server.SubuserV1 do @moduledoc false use Ecto.Schema alias Ecto.Changeset alias Elidactyl.Utils @type t :: %__MODULE__{ uuid: Ecto.UUID.t | nil, username: binary | nil, email: binary | nil, image: binary | nil, "2fa_enabled": boolean | nil, permissions: [...
26.173913
95
0.662791
ab53c4304508334412a4ad2c01c65f469e2915a7
2,488
ex
Elixir
apps/api_accounts/lib/api_accounts/notifications.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/api_accounts/lib/api_accounts/notifications.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/api_accounts/lib/api_accounts/notifications.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
1
2019-09-09T20:40:13.000Z
2019-09-09T20:40:13.000Z
defmodule ApiAccounts.Notifications do @moduledoc """ Sends account-related notifications to users. """ alias ApiAccounts.{Key, Mailer, User} import Bamboo.Email def send_key_requested(administrators, %User{} = user, url) do text = """ A user has requested a new API key. ID: #{user.id} Ema...
26.468085
111
0.647106
ab53e9be92d23383c408c850c2c27e3d87f62e17
703
ex
Elixir
lib/topic_supervisor.ex
lafka/cicadabus
d40a9d8456dff80f81706a4425833b877abdcf36
[ "BSD-3-Clause" ]
null
null
null
lib/topic_supervisor.ex
lafka/cicadabus
d40a9d8456dff80f81706a4425833b877abdcf36
[ "BSD-3-Clause" ]
null
null
null
lib/topic_supervisor.ex
lafka/cicadabus
d40a9d8456dff80f81706a4425833b877abdcf36
[ "BSD-3-Clause" ]
null
null
null
defmodule CicadaBus.TopicSupervisor do @moduledoc """ Supervises all the topics """ require Logger use DynamicSupervisor def start_link(opts \\ []) do DynamicSupervisor.start_link(__MODULE__, [], opts) end @impl true def init(_) do DynamicSupervisor.init(strategy: :one_for_one) end ...
21.30303
68
0.662873