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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
912654b00fce0c5a92bcab1cb19ba163c8b6c00b | 2,526 | exs | Elixir | test/serum/build/file_processor/post_test.exs | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | test/serum/build/file_processor/post_test.exs | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | test/serum/build/file_processor/post_test.exs | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | defmodule Serum.Build.FileProcessor.PostTest do
use ExUnit.Case, async: true
require Serum.TestHelper
import Serum.TestHelper, only: :macros
alias Serum.Build.FileProcessor.Post, as: PostProcessor
alias Serum.Project.Loader, as: ProjectLoader
setup_all do
{:ok, proj} =
mute_stdio do
Proje... | 26.041237 | 73 | 0.538797 |
9126628f2c3d0d007ea2eaea21aa46566d493554 | 8,213 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.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... | 83.806122 | 775 | 0.747961 |
9126de2cbfbc15c7682f42bd1416d29a8ec9a7b2 | 2,951 | ex | Elixir | lib/forthvm/dictionary.ex | alexiob/forthvm | 4dc75790ef98e248ac48a6f4116ad7673cee6287 | [
"MIT"
] | 8 | 2021-11-19T14:02:01.000Z | 2022-03-09T06:29:33.000Z | lib/forthvm/dictionary.ex | alexiob/forthvm | 4dc75790ef98e248ac48a6f4116ad7673cee6287 | [
"MIT"
] | null | null | null | lib/forthvm/dictionary.ex | alexiob/forthvm | 4dc75790ef98e248ac48a6f4116ad7673cee6287 | [
"MIT"
] | 1 | 2021-11-26T18:51:31.000Z | 2021-11-26T18:51:31.000Z | defmodule ForthVM.Dictionary do
@moduledoc """
Dictionary utilities
"""
def get(dictionary, word_name) do
case Map.has_key?(dictionary, word_name) do
true -> dictionary[word_name]
false -> {:unknown_word, word_name}
end
end
def add(dictionary, word_name, word, doc \\ %{stack: "( )", do... | 26.827273 | 109 | 0.617757 |
912700030753496c8b69e2b1af3b07f5ca6c1976 | 631 | ex | Elixir | lib/file_store/utils.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 17 | 2019-10-11T05:50:28.000Z | 2022-01-25T23:28:02.000Z | lib/file_store/utils.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 8 | 2019-10-25T04:19:42.000Z | 2022-01-27T02:32:47.000Z | lib/file_store/utils.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 3 | 2019-10-25T02:30:22.000Z | 2022-01-24T21:24:08.000Z | defmodule FileStore.Utils do
@moduledoc false
def join(nil, nil), do: nil
def join(a, nil), do: a
def join(nil, b), do: b
def join(a, b) do
String.trim_trailing(a, "/") <> "/" <> String.trim_leading(b, "/")
end
def join_absolute(a, b) do
if path = join(a, b) do
"/" <> String.trim_leading(... | 21.758621 | 70 | 0.610143 |
912701e93c9b8e449da053009e2978c15dacbef6 | 1,062 | ex | Elixir | lib/ex_polygon/rest/crypto/snapshot_all.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/rest/crypto/snapshot_all.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/rest/crypto/snapshot_all.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | defmodule ExPolygon.Rest.Crypto.SnapshotAll do
@moduledoc """
Returns a call to Crypto "Snapshot - All Tickers" Polygon.io
"""
@type snap :: ExPolygon.Snapshot.t()
@type api_key :: ExPolygon.Rest.HTTPClient.api_key()
@type shared_error_reasons :: ExPolygon.Rest.HTTPClient.shared_error_reasons()
@path "/... | 28.702703 | 96 | 0.666667 |
912705721fd5c207cf9870890f186c3448fbb4e2 | 1,181 | ex | Elixir | apps/authorizer/lib/rules/commands/public_access.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authorizer/lib/rules/commands/public_access.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authorizer/lib/rules/commands/public_access.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authorizer.Rules.Commands.PublicAccess do
@moduledoc """
Rule for authorizing a subject to do any action on public endpoints.
In order to authorize we have to execute an verification if the subject matches some
requirements as:
- It is status is active;
"""
require Logger
alias Authorizer... | 26.244444 | 88 | 0.653683 |
91271758dd90505d3cb40224557030e7dd63b230 | 24,378 | exs | Elixir | lib/elixir/test/elixir/string_test.exs | pavlos/ruby-flavored-erlang | 9791f0ed62716e076b9659f9784969ccab26d564 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | pavlos/ruby-flavored-erlang | 9791f0ed62716e076b9659f9784969ccab26d564 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | pavlos/ruby-flavored-erlang | 9791f0ed62716e076b9659f9784969ccab26d564 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule StringTest do
use ExUnit.Case, async: true
doctest String
test "next codepoint" do
assert String.next_codepoint("ésoj") == {"é", "soj"}
assert String.next_codepoint(<<255>>) == {<<255>>, ""}
assert String.next_codepoint("") == nil
end
# te... | 41.040404 | 211 | 0.568422 |
91278205754cdc50122b687a5697fdd79905a864 | 98 | ex | Elixir | lib/ellvm.ex | ponyatov/eLLVM | a093e9e084b2e9c92d0ab054f28b1a4c747452f0 | [
"MIT"
] | null | null | null | lib/ellvm.ex | ponyatov/eLLVM | a093e9e084b2e9c92d0ab054f28b1a4c747452f0 | [
"MIT"
] | null | null | null | lib/ellvm.ex | ponyatov/eLLVM | a093e9e084b2e9c92d0ab054f28b1a4c747452f0 | [
"MIT"
] | null | null | null | # powered by metaL: https://github.com/ponyatov/metaL/wiki/metaL-manifest
defmodule Ellvm do
end
| 24.5 | 74 | 0.785714 |
91278f0c3af20c96af6718085b9137afa4bd704a | 307 | exs | Elixir | test/list_filter_test.exs | felipe-jm/ignite-elixir-challenge-02 | 98f250bf9931460c89d4d7af71514eb471f1507a | [
"MIT"
] | null | null | null | test/list_filter_test.exs | felipe-jm/ignite-elixir-challenge-02 | 98f250bf9931460c89d4d7af71514eb471f1507a | [
"MIT"
] | null | null | null | test/list_filter_test.exs | felipe-jm/ignite-elixir-challenge-02 | 98f250bf9931460c89d4d7af71514eb471f1507a | [
"MIT"
] | null | null | null | defmodule ListFilterTest do
use ExUnit.Case
describe "call/1" do
test "returns the even numbers in a list" do
list = ["1", "3", "6", "43", "banana", "6", "abc"]
response = ListFilter.call(list)
expected_response = 3
assert response == expected_response
end
end
end
| 19.1875 | 56 | 0.618893 |
91278f4b801b8e3f5917d85f40f57d57cb262923 | 1,250 | ex | Elixir | lib/application_auth/accounts/user_credential.ex | oscarjg/application_auth | c4f5bb3eb4a29db2e11714829e495c880b2adf28 | [
"MIT"
] | null | null | null | lib/application_auth/accounts/user_credential.ex | oscarjg/application_auth | c4f5bb3eb4a29db2e11714829e495c880b2adf28 | [
"MIT"
] | null | null | null | lib/application_auth/accounts/user_credential.ex | oscarjg/application_auth | c4f5bb3eb4a29db2e11714829e495c880b2adf28 | [
"MIT"
] | null | null | null | defmodule ApplicationAuth.Accounts.UserCredential do
use Ecto.Schema
import Ecto.Changeset
schema "user_credentials" do
field(:email, :string)
field(:password, :string, virtual: true)
field(:password_hash, :string)
belongs_to(:user, ApplicationAuth.Accounts.User)
timestamps()
end
@doc ... | 24.038462 | 88 | 0.62 |
9127ccd168e81e70bf9795b0b471d3c18702fef6 | 86 | exs | Elixir | test/adoptoposs_web/views/auth_view_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | test/adoptoposs_web/views/auth_view_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | test/adoptoposs_web/views/auth_view_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | defmodule AdoptopossWeb.AuthViewTest do
use AdoptopossWeb.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
9127d6be7bfa42685a5a642414c6c2cf9bfc7dfb | 1,998 | ex | Elixir | lib/telescope/matches.ex | Jwsonic/telescope | 8ee8b4c07c3aa3be1752b4902c6fdd819edaf729 | [
"MIT"
] | 2 | 2020-08-25T23:28:18.000Z | 2021-07-13T04:22:54.000Z | lib/telescope/matches.ex | Jwsonic/telescope | 8ee8b4c07c3aa3be1752b4902c6fdd819edaf729 | [
"MIT"
] | null | null | null | lib/telescope/matches.ex | Jwsonic/telescope | 8ee8b4c07c3aa3be1752b4902c6fdd819edaf729 | [
"MIT"
] | null | null | null | defmodule Telescope.Matches do
@moduledoc """
Match domain API.
"""
alias Ecto.Changeset
alias Telescope.Matches.{Datastore, Events, Match}
require Logger
@doc """
Returns the current match_seq_num.
"""
@spec get_match_seq_num() :: non_neg_integer()
def get_match_seq_num do
Datastore.get_mat... | 25.948052 | 101 | 0.695195 |
9127d70050006da2073ec6050fc97cc45a572bd9 | 2,322 | ex | Elixir | clients/fcm_data/lib/google_api/fcm_data/v1beta1/model/google_firebase_fcm_data_v1beta1_list_android_delivery_data_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/fcm_data/lib/google_api/fcm_data/v1beta1/model/google_firebase_fcm_data_v1beta1_list_android_delivery_data_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/fcm_data/lib/google_api/fcm_data/v1beta1/model/google_firebase_fcm_data_v1beta1_list_android_delivery_data_response.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... | 36.857143 | 262 | 0.747201 |
912819dc80cb12d609fb955d4bcaf5e7afeaa7d0 | 675 | ex | Elixir | integration_test/wallaby_example_app/test/support/feature_case.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 1 | 2021-08-16T18:52:45.000Z | 2021-08-16T18:52:45.000Z | integration_test/wallaby_example_app/test/support/feature_case.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 16 | 2021-03-09T19:39:31.000Z | 2022-03-15T15:20:24.000Z | integration_test/wallaby_example_app/test/support/feature_case.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | null | null | null | defmodule WallabyExampleApp.FeatureCase do
use ExUnit.CaseTemplate
using do
quote do
use Wallaby.DSL
alias WallabyExampleApp.Repo
import Ecto
import Ecto.Changeset
import Ecto.Query
import WallabyExampleAppWeb.Router.Helpers
end
end
setup tags do
:ok = Ecto.Ad... | 23.275862 | 84 | 0.705185 |
912848b5288b2c38a81342e94228524d43e908ee | 4,921 | ex | Elixir | lib/core/asset/farmware_installation/manifest.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | lib/core/asset/farmware_installation/manifest.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | lib/core/asset/farmware_installation/manifest.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Asset.FarmwareInstallation.Manifest do
use Ecto.Schema
import Ecto.Changeset
@primary_key false
@acceptable_manifest_version "2.0.0"
@acceptable_farmware_tools_version_requirement "2.0.0"
alias FarmbotCore.Project
embedded_schema do
field(:package, :string)
field(:language,... | 25.497409 | 80 | 0.663077 |
91284ebd7bf61c3e9f5d2046f6bfa4bee9ea0243 | 44,291 | ex | Elixir | lib/axon/loop.ex | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 2 | 2021-04-19T19:38:36.000Z | 2021-04-19T19:38:42.000Z | lib/axon/loop.ex | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | null | null | null | lib/axon/loop.ex | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | null | null | null | defmodule Axon.Loop do
@moduledoc """
Abstraction for modeling a reduction of a dataset with an accumulated
state for a number of epochs.
Inspired heavily by [PyTorch Ignite](https://pytorch.org/ignite/index.html).
The main abstraction is the `%Loop{}` struct, which controls a nested
reduction of the form... | 34.096228 | 97 | 0.635705 |
912870f074028e7f38e5669e4cb3a0b4bb3ae5c8 | 11,762 | ex | Elixir | lib/lang_tags/tag.ex | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | lib/lang_tags/tag.ex | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | lib/lang_tags/tag.ex | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | defmodule LangTags.Tag do
@moduledoc """
Tags registered according to the rules in [RFC3066](https://tools.ietf.org/html/rfc3066)
Please note that this *tags* appears in records whose *type* is either 'grandfathered'
or 'redundant' and contains a tag registered under [RFC3066](https://tools.ietf.org/html/rfc... | 30.710183 | 135 | 0.602023 |
9128777489eee052c91611eb4b366335cde8e2c4 | 378 | exs | Elixir | test/support/database_case.exs | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | null | null | null | test/support/database_case.exs | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | 2 | 2021-03-11T21:23:54.000Z | 2021-03-12T23:34:21.000Z | test/support/database_case.exs | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | null | null | null | defmodule Resourceful.Test.DatabaseCase do
use ExUnit.CaseTemplate
using do
quote do
alias Resourceful.Test.{Album, Fixtures, Repo}
import Resourceful.Test.DatabaseCase
import Resourceful.Test.Helpers
end
end
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Resourceful.Test.Repo... | 22.235294 | 67 | 0.732804 |
9128b42d0547200354659e3b89a53759386ad041 | 2,430 | ex | Elixir | lib/heartcheck/executor.ex | fcapovilla/heartcheck-elixir | b46bc0f8ab46edcf1b14a20de59529868de1ca32 | [
"MIT"
] | 31 | 2018-01-09T14:34:22.000Z | 2022-03-30T18:14:01.000Z | lib/heartcheck/executor.ex | fcapovilla/heartcheck-elixir | b46bc0f8ab46edcf1b14a20de59529868de1ca32 | [
"MIT"
] | 7 | 2018-12-24T01:18:34.000Z | 2021-10-13T03:10:06.000Z | lib/heartcheck/executor.ex | fcapovilla/heartcheck-elixir | b46bc0f8ab46edcf1b14a20de59529868de1ca32 | [
"MIT"
] | 6 | 2018-12-22T19:19:38.000Z | 2021-09-30T17:04:56.000Z | defmodule HeartCheck.Executor do
@moduledoc """
Handles the execution of the checks in a HeartCheck module.
Spawns several `Task`s for the checks, execute and wait for the result.
Handles timeouts for the checks with the `{:error, "TIMEOUT"}` result.
"""
require Logger
@type result ::
{Strin... | 27 | 84 | 0.604527 |
9128e159e997c4b51e0cb8a8163f3ab2103156ac | 1,967 | exs | Elixir | mix.exs | imsearch/joken_jwks | 483677343aa7baf822118499f8ee173bc2ee3d92 | [
"Apache-2.0"
] | null | null | null | mix.exs | imsearch/joken_jwks | 483677343aa7baf822118499f8ee173bc2ee3d92 | [
"Apache-2.0"
] | null | null | null | mix.exs | imsearch/joken_jwks | 483677343aa7baf822118499f8ee173bc2ee3d92 | [
"Apache-2.0"
] | null | null | null | defmodule JokenJwks.MixProject do
use Mix.Project
@version "1.0.0"
def project do
[
app: :joken_jwks,
version: @version,
name: "Joken JWKS",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.en... | 22.352273 | 72 | 0.532791 |
91290078e5a8b08b15f40ba36a665a12a9d1ad5e | 2,888 | exs | Elixir | test/integrations/change_recipe_test.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 122 | 2017-11-24T11:28:17.000Z | 2022-02-25T17:05:20.000Z | test/integrations/change_recipe_test.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 6 | 2018-01-11T22:07:44.000Z | 2021-11-21T15:41:42.000Z | test/integrations/change_recipe_test.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 25 | 2018-04-01T02:43:21.000Z | 2022-02-15T03:22:54.000Z | defmodule YummyWeb.Integrations.ChangeRecipeTest do
use YummyWeb.IntegrationCase, async: false
setup do
user = insert(:user)
{:ok, %{user: user}}
end
describe "when user edit a recipe" do
test "with successful", %{session: session, user: user} do
recipe = insert(:recipe, author: user)
... | 38.506667 | 118 | 0.610111 |
91298abe2147c9fe392a5471ce7bc6ac1ff1c624 | 906 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.555556 | 74 | 0.764901 |
912999651af44072b58453784122cfc7b4033705 | 504 | exs | Elixir | app/priv/repo/migrations/20200522125402_create_recordings.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/priv/repo/migrations/20200522125402_create_recordings.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/priv/repo/migrations/20200522125402_create_recordings.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Repo.Migrations.CreateRecordings do
use Ecto.Migration
def change do
create table(:recordings, primary_key: false) do
add :id, :binary_id, primary_key: true
add :mux_id, :string
add :playback_id, :string
add :session_id, references(:sessions, on_delete: :nothing, type: :... | 24 | 83 | 0.676587 |
9129c1b15e8790db60441f5821afb382a2a97afe | 306 | ex | Elixir | lib/ds_plug.ex | alex-strizhakov/ds | d1279a89f449cd9b6a0475c92ed5e7f2ca2727b1 | [
"MIT"
] | 1 | 2020-04-20T11:56:08.000Z | 2020-04-20T11:56:08.000Z | lib/ds_plug.ex | alex-strizhakov/ds | d1279a89f449cd9b6a0475c92ed5e7f2ca2727b1 | [
"MIT"
] | null | null | null | lib/ds_plug.ex | alex-strizhakov/ds | d1279a89f449cd9b6a0475c92ed5e7f2ca2727b1 | [
"MIT"
] | null | null | null | defmodule DSPlug do
@moduledoc """
Assings device info in the connection.
"""
import Plug.Conn
def init(_opts), do: false
def call(conn, _opts) do
with [ua] <- get_req_header(conn, "user-agent") do
assign(conn, :device_info, DS.parse(ua))
else
_ -> conn
end
end
end
| 18 | 54 | 0.627451 |
9129d7f77d45d063f0e4afcd093181f708aacfa2 | 756 | exs | Elixir | mix.exs | DonHansDampf/elixir-tmdb | 7a79350dfb0eeb5a37384be4ca9fac0570a3020e | [
"MIT"
] | null | null | null | mix.exs | DonHansDampf/elixir-tmdb | 7a79350dfb0eeb5a37384be4ca9fac0570a3020e | [
"MIT"
] | null | null | null | mix.exs | DonHansDampf/elixir-tmdb | 7a79350dfb0eeb5a37384be4ca9fac0570a3020e | [
"MIT"
] | null | null | null | defmodule Tmdb.Mixfile do
use Mix.Project
def project do
[app: :tmdb,
version: "0.1.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more inf... | 21 | 77 | 0.57672 |
912a080a5a55ea88bd1393c363890f3716e1361e | 5,082 | ex | Elixir | lib/customer.ex | revzilla/braintree-elixir | 079b056cf1b08a08e309cdc281a7479c7dfaf53f | [
"MIT"
] | null | null | null | lib/customer.ex | revzilla/braintree-elixir | 079b056cf1b08a08e309cdc281a7479c7dfaf53f | [
"MIT"
] | 1 | 2016-08-23T02:05:46.000Z | 2016-08-23T02:05:46.000Z | lib/customer.ex | revzilla/braintree-elixir | 079b056cf1b08a08e309cdc281a7479c7dfaf53f | [
"MIT"
] | 3 | 2017-06-26T14:40:25.000Z | 2019-09-23T15:19:07.000Z | defmodule Braintree.Customer do
@moduledoc """
You can create a customer by itself, with a payment method, or with a
credit card with a billing address.
For additional reference see:
https://developers.braintreepayments.com/reference/request/customer/create/ruby
"""
use Braintree.Construction
alias B... | 29.375723 | 103 | 0.596616 |
912a082c1010794b8393b0ffd782f4f3c7f26843 | 5,667 | ex | Elixir | lib/astro_ex/unit/hms.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | lib/astro_ex/unit/hms.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | lib/astro_ex/unit/hms.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | defmodule AstroEx.Unit.HMS do
@moduledoc """
Hours:Minutes:Seconds
"""
alias AstroEx.Unit.{Arcmin, Arcsec, Degrees, DMS, Radian}
alias AstroEx.Utils.Math
@enforce_keys [:value]
defstruct [:value]
@typep hours :: 12..23
@typep minutes :: 0..59
@typep seconds :: number()
@typep hms :: {hours(), m... | 23.6125 | 70 | 0.579672 |
912a1f5e31fe50701c77e75f12a8348f23843ea7 | 966 | ex | Elixir | lib/survey.ex | smpallen99/elixir_survey_tutorial | 24aa40d73cd3254d510e484693c7249ebcf93605 | [
"MIT"
] | 48 | 2015-10-02T19:16:02.000Z | 2022-01-18T20:50:00.000Z | lib/survey.ex | smpallen99/elixir_survey_tutorial | 24aa40d73cd3254d510e484693c7249ebcf93605 | [
"MIT"
] | 1 | 2017-01-29T21:46:11.000Z | 2017-05-09T02:47:01.000Z | lib/survey.ex | smpallen99/elixir_survey_tutorial | 24aa40d73cd3254d510e484693c7249ebcf93605 | [
"MIT"
] | 8 | 2015-10-02T19:18:37.000Z | 2019-09-11T06:25:28.000Z | defmodule Survey 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, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Survey.End... | 31.16129 | 71 | 0.708075 |
912a3e195f295179b1ebe1dc27c671fc20a4d6a1 | 9,578 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/regions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/api/regions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/regions.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... | 58.402439 | 1,174 | 0.657653 |
912a4f8cadc74c2f2e3aa95bebb72460609a7a9a | 4,489 | ex | Elixir | lib/credo/check/consistency/exception_names.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/credo/check/consistency/exception_names.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/check/consistency/exception_names.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.ExceptionNames do
@moduledoc """
Exception names should end with a common suffix like "Error".
Try to name your exception modules consistently:
defmodule BadCodeError do
defexception [:message]
end
defmodule ParserError do
defexception [:messa... | 28.05625 | 120 | 0.687235 |
912a65781106755d001ab59d17cc36654bcfae2b | 3,002 | ex | Elixir | lib/macd.ex | GunnarPDX/trade-indicators | e8b78235d556a267ff67cc381f73a2f703b8ca23 | [
"MIT"
] | 2 | 2020-11-22T23:42:52.000Z | 2021-04-11T06:34:15.000Z | lib/macd.ex | GunnarPDX/trade-indicators | e8b78235d556a267ff67cc381f73a2f703b8ca23 | [
"MIT"
] | null | null | null | lib/macd.ex | GunnarPDX/trade-indicators | e8b78235d556a267ff67cc381f73a2f703b8ca23 | [
"MIT"
] | null | null | null | defmodule TradeIndicators.MACD do
use TypedStruct
alias __MODULE__, as: MACD
alias TradeIndicators.MA
alias TradeIndicators.Util, as: U
alias Decimal, as: D
alias Enum, as: E
alias List, as: L
alias Map, as: M
typedstruct do
field :list, List.t(), default: []
field :chart_len, pos_integer(), ... | 28.590476 | 84 | 0.591272 |
912ac84e886c2d95a6d80aa2840ccba4cf31e65f | 809 | ex | Elixir | lib/plausible/goal/schema.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 2 | 2020-05-16T13:48:44.000Z | 2020-05-22T09:52:36.000Z | lib/plausible/goal/schema.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 2 | 2020-07-09T21:44:35.000Z | 2020-07-14T07:06:10.000Z | lib/plausible/goal/schema.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | defmodule Plausible.Goal do
use Ecto.Schema
import Ecto.Changeset
schema "goals" do
field :domain, :string
field :event_name, :string
field :page_path, :string
timestamps()
end
def changeset(goal, attrs \\ %{}) do
goal
|> cast(attrs, [:domain, :event_name, :page_path])
|> valida... | 23.114286 | 77 | 0.663782 |
912ad3b9fd2c252da5acba76fbc939f75d07b5e4 | 17,138 | ex | Elixir | lib/phoenix_live_view/html_tokenizer.ex | optikfluffel/phoenix_live_view | d26aade43e85a58e4647abbc17003118d9488b5c | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_tokenizer.ex | optikfluffel/phoenix_live_view | d26aade43e85a58e4647abbc17003118d9488b5c | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_tokenizer.ex | optikfluffel/phoenix_live_view | d26aade43e85a58e4647abbc17003118d9488b5c | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLTokenizer do
@moduledoc false
@space_chars '\s\t\f'
@name_stop_chars @space_chars ++ '>/=\r\n'
defmodule ParseError do
defexception [:file, :line, :column, :description]
@impl true
def message(exception) do
location =
exception.file
|> Path.rela... | 34.344689 | 101 | 0.653869 |
912ade17997ca375491b23b2d3722b27145d7bbf | 27,301 | exs | Elixir | lib/elixir/test/elixir/kernel/parser_test.exs | pmargreff-opslevel-II/elixir | 5eb2ea0f5f5ed77c6a77d156f23d75d07940d598 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/parser_test.exs | pmargreff-opslevel-II/elixir | 5eb2ea0f5f5ed77c6a77d156f23d75d07940d598 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/parser_test.exs | pmargreff-opslevel-II/elixir | 5eb2ea0f5f5ed77c6a77d156f23d75d07940d598 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ParserTest do
use ExUnit.Case, async: true
describe "unary ops" do
test "in keywords" do
assert parse!("f(!: :ok)") == {:f, [line: 1], [[!: :ok]]}
assert parse!("f @: :ok") == {:f, [line: 1], [[@: :ok]]}
end
test "ambiguous... | 32.892771 | 266 | 0.53694 |
912ae810c72f3eed61c742ab14c6863e34ab53ee | 731 | ex | Elixir | year_2020/lib/day_05.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/lib/day_05.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/lib/day_05.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day05 do
use Bitwise
def part_one do
seat_ids() |> Enum.max()
end
def part_two do
seat_ids()
|> Enum.sort()
|> Enum.chunk_every(3, 1, :discard)
|> Enum.reject(fn [a, b, c] -> a + 1 == b && c - 1 == b end)
end
def seat_ids do
InputFile.contents_of(5, :stream)
|> Enum.... | 26.107143 | 73 | 0.555404 |
912af432f5f302258ddeb9e243d4c23cd9e46e08 | 1,818 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_snapshots_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_snapshots_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_snapshots_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.961538 | 130 | 0.732123 |
912afc06acef852dd045345a4bc7aa4c3b84b3bb | 550 | ex | Elixir | web/router.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | 2 | 2015-05-12T04:00:03.000Z | 2016-05-02T06:05:25.000Z | web/router.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | web/router.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | defmodule DemoChat.Router do
use DemoChat.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", DemoChat do
pipe_through :browser # Use the default brow... | 18.333333 | 57 | 0.66 |
912b30e5c513236da6d312c28fc3cb7dc7980b7f | 73 | ex | Elixir | lib/rostrum2_web/views/user_confirmation_view.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | null | null | null | lib/rostrum2_web/views/user_confirmation_view.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | 3 | 2021-11-25T05:44:03.000Z | 2021-11-26T06:33:53.000Z | lib/rostrum2_web/views/user_confirmation_view.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | null | null | null | defmodule RostrumWeb.UserConfirmationView do
use RostrumWeb, :view
end
| 18.25 | 44 | 0.835616 |
912b47df725ece8b770fe425a4a5395165ddbda4 | 1,221 | ex | Elixir | installer/templates/new/web/channels/user_socket.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 1 | 2019-06-11T20:22:21.000Z | 2019-06-11T20:22:21.000Z | installer/templates/new/web/channels/user_socket.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | installer/templates/new/web/channels/user_socket.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | defmodule <%= application_module %>.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", <%= application_module %>.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and ... | 32.131579 | 98 | 0.697789 |
912b6f413b0702e7eca580dc43afd16c16745f45 | 865 | ex | Elixir | lib/ash/type/utc_datetime_usec.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | lib/ash/type/utc_datetime_usec.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | lib/ash/type/utc_datetime_usec.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | defmodule Ash.Type.UtcDatetimeUsec do
@moduledoc """
Represents a utc datetime with microsecond precision.
A builtin type that can be referenced via `:utc_datetime_usec`
"""
use Ash.Type
@impl true
def storage_type, do: :utc_datetime_usec
@impl true
def cast_input(value, _) do
Ecto.Type.cast(:u... | 20.116279 | 64 | 0.596532 |
912ba8c8c11139af5eaf7c0baf697097cb9e1adc | 124 | exs | Elixir | test/test_helper.exs | execb5/doax3-web-app | fab56d3358629cdbd45c8d11e5e3284e23a95817 | [
"MIT"
] | 1 | 2018-10-04T13:47:14.000Z | 2018-10-04T13:47:14.000Z | test/test_helper.exs | execb5/doax3-web-app | fab56d3358629cdbd45c8d11e5e3284e23a95817 | [
"MIT"
] | 2 | 2017-09-20T04:23:14.000Z | 2017-09-20T14:37:40.000Z | test/test_helper.exs | execb5/doax3-web-app | fab56d3358629cdbd45c8d11e5e3284e23a95817 | [
"MIT"
] | null | null | null | {:ok, _} = Application.ensure_all_started(:ex_machina)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Doax3.Repo, :manual)
| 20.666667 | 54 | 0.758065 |
912baa08b754f746ef8baafb497a6e87c8cda4c2 | 1,952 | ex | Elixir | lib/conduit/accounts/accounts.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 298 | 2017-06-05T14:28:23.000Z | 2022-03-30T16:53:44.000Z | lib/conduit/accounts/accounts.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 28 | 2017-07-21T01:06:47.000Z | 2021-03-07T12:32:56.000Z | lib/conduit/accounts/accounts.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 77 | 2017-08-14T20:12:03.000Z | 2021-12-08T22:24:59.000Z | defmodule Conduit.Accounts do
@moduledoc """
The boundary for the Accounts system.
"""
alias Conduit.Accounts.Commands.{RegisterUser, UpdateUser}
alias Conduit.Accounts.Projections.User
alias Conduit.Accounts.Queries.{UserByUsername, UserByEmail}
alias Conduit.App
alias Conduit.Repo
@doc """
Regis... | 23.804878 | 80 | 0.646516 |
912bc07cef5fd8cfe3b1ff4647378896ce7a4c47 | 150 | ex | Elixir | apps/plant_monitor_web/lib/plant_monitor_web/controllers/page_controller.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | 2 | 2019-01-25T21:21:56.000Z | 2021-02-24T08:18:51.000Z | apps/plant_monitor_web/lib/plant_monitor_web/controllers/page_controller.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | apps/plant_monitor_web/lib/plant_monitor_web/controllers/page_controller.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | defmodule PlantMonitorWeb.PageController do
use PlantMonitorWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.75 | 43 | 0.76 |
912be8958f3ddfde7a4829652421cb779174c66e | 108 | exs | Elixir | apps/omg_eth/config/test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/config/test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/config/test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :ethereumex,
request_timeout: :infinity,
http_options: [recv_timeout: :infinity]
| 18 | 41 | 0.768519 |
912bfa147507c8e41cce305b951554209e269875 | 328 | exs | Elixir | .credo.exs | Phiriq/noisex | 274a7fb9317b05dcf303803664335affa1c92b35 | [
"MIT"
] | 2 | 2021-06-17T21:07:57.000Z | 2021-06-18T15:52:34.000Z | .credo.exs | Phiriq/noisex | 274a7fb9317b05dcf303803664335affa1c92b35 | [
"MIT"
] | null | null | null | .credo.exs | Phiriq/noisex | 274a7fb9317b05dcf303803664335affa1c92b35 | [
"MIT"
] | null | null | null | # .credo.exs or config/.credo.exs
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "tests/"],
excluded: []
},
color: true,
checks: [
{Credo.Check.Design.TagFIXME, priority: :low},
{Credo.Check.Design.TagTODO, priority: :low},
]
... | 18.222222 | 54 | 0.472561 |
912c027c33d915863122f706bd5ddec6f91bdbad | 185 | ex | Elixir | lib/rtl_web/views/admin/user_view.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | lib/rtl_web/views/admin/user_view.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | lib/rtl_web/views/admin/user_view.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTLWeb.Admin.UserView do
use RTLWeb, :view
def id_and_label_for_projects(projects) do
Enum.map(projects, fn project -> {"#{project.name}", project.id} end)
end
end
| 23.125 | 73 | 0.724324 |
912c0b14f9a7a0b76b8a63373cbd5cebbc001107 | 2,180 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/floodlight_activity_groups_list_response.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/floodlight_activity_groups_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/floodlight_activity_groups_list_response.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 "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.333333 | 172 | 0.753211 |
912c0ef006cbd27539152814960c220ec4c3c9f0 | 811 | ex | Elixir | server/lib/domsegserver_web/live/modal_component.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | server/lib/domsegserver_web/live/modal_component.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | 9 | 2021-12-09T18:19:21.000Z | 2022-01-09T03:45:33.000Z | server/lib/domsegserver_web/live/modal_component.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | defmodule DOMSegServerWeb.ModalComponent do
use DOMSegServerWeb, :live_component
@impl true
def render(assigns) do
~H"""
<div id={@id} class="modal fade phx-modal"
phx-hook="BsModal"
phx-target={@myself}
phx-page-loading>
<div class="modal-dialog">
<div class="modal-content">
... | 25.34375 | 102 | 0.594328 |
912c101909d513428cf0325ba137193d88029ef3 | 1,168 | exs | Elixir | examples/subscriptions.exs | krgn/ratatouille | b5ed610c7e8fe64f6be372144c1d3a670b6fabed | [
"MIT"
] | null | null | null | examples/subscriptions.exs | krgn/ratatouille | b5ed610c7e8fe64f6be372144c1d3a670b6fabed | [
"MIT"
] | null | null | null | examples/subscriptions.exs | krgn/ratatouille | b5ed610c7e8fe64f6be372144c1d3a670b6fabed | [
"MIT"
] | null | null | null | # This is an example of how to create subscriptions. The example app below
# subscribes to two different time intervals ("big ticks" and "little ticks") by
# returning a batch subscription in the `subscribe/1` callback.
#
# Run this example with:
#
# mix run --no-halt examples/subscriptions.exs
defmodule Subscriptio... | 23.36 | 80 | 0.670377 |
912c1dce4d87e909a11ccc23cee7ac751a8eb476 | 2,171 | ex | Elixir | lib/hlclock/server.ex | tonic-sys/hlclock | 6721871937ecc2ae3e77444faf29a3da051e30c4 | [
"Apache-2.0"
] | 39 | 2018-02-12T14:28:18.000Z | 2021-09-01T07:40:39.000Z | lib/hlclock/server.ex | elixir-toniq/hlclock | 6721871937ecc2ae3e77444faf29a3da051e30c4 | [
"Apache-2.0"
] | 6 | 2017-08-20T04:19:08.000Z | 2017-09-21T18:27:47.000Z | lib/hlclock/server.ex | keathley/hlclock | 6721871937ecc2ae3e77444faf29a3da051e30c4 | [
"Apache-2.0"
] | 4 | 2018-03-29T14:28:14.000Z | 2021-01-08T11:47:58.000Z | defmodule HLClock.Server do
@moduledoc false
use GenServer
alias HLClock.{NodeId, Timestamp}
@gen_server_opts [
:debug,
:name,
:timeout,
:spawn_opt,
:hibernate_after
]
def start_link(opts \\ []) do
{gen_server_opts, other_opts} = Keyword.split(opts, @gen_server_opts)
hlc_opts... | 22.852632 | 75 | 0.621373 |
912c278a674ed54cdfb3a7f1ddc2760406758612 | 1,102 | ex | Elixir | 2020/elixir/day_05.ex | Prajjwal/advent-of-code | c3de48eee1e9e5b0eaabab31f4037542f0f2b374 | [
"CC0-1.0"
] | null | null | null | 2020/elixir/day_05.ex | Prajjwal/advent-of-code | c3de48eee1e9e5b0eaabab31f4037542f0f2b374 | [
"CC0-1.0"
] | null | null | null | 2020/elixir/day_05.ex | Prajjwal/advent-of-code | c3de48eee1e9e5b0eaabab31f4037542f0f2b374 | [
"CC0-1.0"
] | null | null | null | defmodule BoardingPass do
def converge("F", { low, high }), do: { low, mid(low, high) }
def converge("B", { low, high }), do: { mid(low, high) + 1, high }
def converge("L", { low, high }), do: { low, floor((low + high) / 2) }
def converge("R", { low, high }), do: { (low + high) / 2 + 1, high }
def converge(c... | 28.25641 | 80 | 0.537205 |
912c5cad3e542eab6f88bf2fe0814d16f845aa68 | 1,248 | ex | Elixir | lib/pongo_web/telemetry.ex | cristianberneanu/pongo | c158d32981deebbc09c70bd1568c4e5fca4df226 | [
"MIT"
] | 2 | 2020-09-21T12:13:35.000Z | 2020-09-21T14:58:28.000Z | lib/pongo_web/telemetry.ex | cristianberneanu/pongo | c158d32981deebbc09c70bd1568c4e5fca4df226 | [
"MIT"
] | null | null | null | lib/pongo_web/telemetry.ex | cristianberneanu/pongo | c158d32981deebbc09c70bd1568c4e5fca4df226 | [
"MIT"
] | null | null | null | defmodule PongoWeb.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, measurements: periodic_measurements(), period: 10_000}
# Add reporte... | 26.553191 | 86 | 0.660256 |
912c5fd1feb0d774dc8f83ef298eb84ae1e4d90f | 5,210 | ex | Elixir | lib/ecto/repo/supervisor.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/supervisor.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/supervisor.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | defmodule Ecto.Repo.Supervisor do
@moduledoc false
use Supervisor
@defaults [timeout: 15000, pool_timeout: 5000, pool_size: 10, loggers: [Ecto.LogEntry]]
@integer_url_query_params ["timeout", "pool_size", "pool_timeout"]
@doc """
Starts the repo supervisor.
"""
def start_link(repo, otp_app, adapter, o... | 28.626374 | 94 | 0.605758 |
912c6d1101450c6a5967acf8d64d8abca54d62df | 1,418 | exs | Elixir | test/response_test.exs | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 1 | 2018-04-26T08:40:13.000Z | 2018-04-26T08:40:13.000Z | test/response_test.exs | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 14 | 2018-04-02T09:12:03.000Z | 2019-10-08T04:43:39.000Z | test/response_test.exs | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 2 | 2018-04-26T05:50:06.000Z | 2021-09-01T18:48:43.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
defmodule Testgear.ResponseTest do
use ExUnit.Case
@tag :blackbox
test "should redirect" do
res1 = Req.get("/redirect")
assert res1.status == 302
assert res1.headers["location"] == Testgear.Router.html_path()
external_url = "http://... | 38.324324 | 102 | 0.672073 |
912c8c6824b08da03f4fb62e83e5edf376591a4f | 2,328 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_bounding_poly.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_bounding_poly.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_bounding_poly.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.746269 | 188 | 0.743557 |
912c9eadb8ecce841e76dbdacfc11c4cfcf3fda9 | 158 | ex | Elixir | lib/ex_trails/v1/error.ex | ninoseki/ExTrails | c845b61ea8de61a9d0763cfa52ea12ed6f4e386a | [
"MIT"
] | null | null | null | lib/ex_trails/v1/error.ex | ninoseki/ExTrails | c845b61ea8de61a9d0763cfa52ea12ed6f4e386a | [
"MIT"
] | null | null | null | lib/ex_trails/v1/error.ex | ninoseki/ExTrails | c845b61ea8de61a9d0763cfa52ea12ed6f4e386a | [
"MIT"
] | null | null | null | defmodule ExTrails.V1.Error do
@doc """
Used to wrap the errors that the SecurityTrails API may return.
"""
defstruct [:status, :message, :body]
end
| 19.75 | 65 | 0.696203 |
912ca855f47109a898e7dc3b6176d5f2d6daa442 | 10,738 | ex | Elixir | lib/kaffy/utils.ex | zenbaku/kaffy | b03ab90cb9620232ba55e9977ac153d02186032d | [
"MIT"
] | 3 | 2020-08-18T15:04:10.000Z | 2021-05-10T11:10:44.000Z | lib/kaffy/utils.ex | zenbaku/kaffy | b03ab90cb9620232ba55e9977ac153d02186032d | [
"MIT"
] | 2 | 2020-05-31T18:19:05.000Z | 2020-06-15T13:43:12.000Z | lib/kaffy/utils.ex | zenbaku/kaffy | b03ab90cb9620232ba55e9977ac153d02186032d | [
"MIT"
] | 1 | 2020-09-18T14:25:00.000Z | 2020-09-18T14:25:00.000Z | defmodule Kaffy.Utils do
@moduledoc false
@doc """
Returns the :admin_title config if present, otherwise returns "Kaffy"
"""
@spec title() :: String.t()
def title() do
env(:admin_title, "Kaffy")
end
@doc """
Returns the JSON package used by phoenix configs. If no such config exists, raise an exc... | 26.448276 | 115 | 0.631961 |
912cb69deea9f6cb5a14af6670457a0040ef1d99 | 3,023 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/app_profile.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/app_profile.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/app_profile.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... | 48.758065 | 491 | 0.735693 |
912cc1945df97eee80b64a3e12e721e04aabb79d | 2,106 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/pivot_filter_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/pivot_filter_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_filter_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.735849 | 160 | 0.746439 |
912cc1d238e2504f37e1cb3e9832d9527849d657 | 189 | exs | Elixir | 00-learn/00-basic-types/main.exs | CrispenGari/elixir-startup | 13ef0f693053fc4a1ae740627e0ce3fca7aab375 | [
"Apache-2.0"
] | null | null | null | 00-learn/00-basic-types/main.exs | CrispenGari/elixir-startup | 13ef0f693053fc4a1ae740627e0ce3fca7aab375 | [
"Apache-2.0"
] | null | null | null | 00-learn/00-basic-types/main.exs | CrispenGari/elixir-startup | 13ef0f693053fc4a1ae740627e0ce3fca7aab375 | [
"Apache-2.0"
] | null | null | null |
num1 = 45
num2 = 7.8
IO.puts (fn a, b -> a + b end).(9, 9)
add = fn a, b -> a + b end
sum = add.(num1, num2)
IO.puts("the sum is: #{sum}")
IO.puts("is a function #{is_function(add)}")
| 15.75 | 44 | 0.544974 |
912cd9bcd8a125de42a87e3862b4cfb7792beb92 | 2,273 | ex | Elixir | lib/nebulex/cache/supervisor.ex | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | 1 | 2021-03-04T12:47:10.000Z | 2021-03-04T12:47:10.000Z | lib/nebulex/cache/supervisor.ex | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | null | null | null | lib/nebulex/cache/supervisor.ex | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | null | null | null | defmodule Nebulex.Cache.Supervisor do
@moduledoc false
use Supervisor
@doc """
Starts the cache manager supervisor.
"""
def start_link(cache, otp_app, adapter, opts) do
sup_opts = if name = Keyword.get(opts, :name, cache), do: [name: name], else: []
Supervisor.start_link(__MODULE__, {cache, otp_app... | 28.772152 | 100 | 0.660361 |
912d0f95697f36d587c5ccd2b4d18dcd4872e79d | 1,095 | ex | Elixir | lib/estated/property_request/parsed.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property_request/parsed.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property_request/parsed.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | defmodule Estated.PropertyRequest.Parsed do
@moduledoc "Request a property with an address fully parsed into its elements."
@moduledoc since: "0.2.0"
alias Estated.Property.Address
@enforce_keys [:street_name, :city, :state]
defstruct [
:street_number,
:street_pre_direction,
:street_name,
:s... | 30.416667 | 81 | 0.656621 |
912d136b2885deb42213721adc911865dba6bd1e | 901 | exs | Elixir | test/parse_strftime_test.exs | appcues/timex | 700643279531bbf1711cd721b3851f025cc28a95 | [
"MIT"
] | null | null | null | test/parse_strftime_test.exs | appcues/timex | 700643279531bbf1711cd721b3851f025cc28a95 | [
"MIT"
] | null | null | null | test/parse_strftime_test.exs | appcues/timex | 700643279531bbf1711cd721b3851f025cc28a95 | [
"MIT"
] | null | null | null | defmodule DateFormatTest.ParseStrftime do
use ExUnit.Case, async: true
use Timex
test "parse datetime" do
date = Date.from({{2014, 7, 19}, {14, 20, 34}}, Timezone.get("+7"))
assert {:ok, ^date} = parse("Sat, 19 Jul 2014 14:20:34 +0700", "%a, %d %b %Y %T %z")
end
test "issue #66" do
date = Date.f... | 33.37037 | 112 | 0.568257 |
912d2235f6f8c6eccd911489e2b94e3cfceff14d | 6,296 | exs | Elixir | lib/elixir/test/elixir/config/provider_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/config/provider_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/config/provider_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Config.ProviderTest do
use ExUnit.Case
doctest Config.Provider
alias Config.Provider
import PathHelpers
import ExUnit.CaptureIO
@tmp_path tmp_path("config_provider")
@env_var "ELIXIR_CONFIG_PROVIDER_BOOTED"
@sys_config Path.join(@tmp_path, "s... | 34.404372 | 129 | 0.656607 |
912d241bb86caac7b8d3163cdea9e321f14d6a8e | 10,595 | ex | Elixir | lib/absinthe/middleware.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | lib/absinthe/middleware.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-09-23T21:26:01.000Z | 2019-09-23T21:26:01.000Z | lib/absinthe/middleware.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | null | null | null | defmodule Absinthe.Middleware do
@moduledoc """
Middleware enables custom resolution behaviour on a field.
All resolution happens through middleware. Even `resolve` functions are
middleware, as the `resolve` macro is just
```
quote do
middleware Absinthe.Resolution, unquote(function_ast)
end
```
... | 33.634921 | 133 | 0.713072 |
912d27fabcdb95a3bfde4d1266a9b6bbc54896be | 24,302 | ex | Elixir | clients/access_approval/lib/google_api/access_approval/v1/api/folders.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/api/folders.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/api/folders.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 45.766478 | 544 | 0.62608 |
912d3054e8d0cb68b2141d81fe889305752d8cfb | 5,936 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/mobile_carriers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/mobile_carriers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/mobile_carriers.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... | 40.657534 | 187 | 0.643026 |
912d331d1db6e3cc5606df29d2557ed23949ec04 | 5,175 | ex | Elixir | lib/mix/tasks/sparrow_certs_dev.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 20 | 2019-01-15T10:13:16.000Z | 2021-12-30T09:39:30.000Z | lib/mix/tasks/sparrow_certs_dev.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 45 | 2018-10-02T10:14:57.000Z | 2021-04-30T21:57:28.000Z | lib/mix/tasks/sparrow_certs_dev.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 9 | 2019-05-08T17:25:56.000Z | 2022-03-06T10:16:41.000Z | defmodule Mix.Tasks.Sparrow.Certs.Dev do
@moduledoc """
Generate fake certs (placeholders) for `HTTPS` endpoint and `APNS` service.
Please be aware that `APNS` requires valid Apple Developer certificates, so it
will not accept those fake certificates. Generated certificates may be used
only with mock APNS se... | 27.972973 | 146 | 0.576812 |
912d56bc943b32d16b1f871f09dfa603a8ce4317 | 231 | exs | Elixir | priv/repo/migrations/20180524070826_add_replyid_to_job_comments.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20180524070826_add_replyid_to_job_comments.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180524070826_add_replyid_to_job_comments.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.AddReplyidToJobComments do
use Ecto.Migration
def change do
alter table(:jobs_comments) do
add(:reply_id, references(:jobs_comments, on_delete: :delete_all))
end
end
end
| 23.1 | 72 | 0.757576 |
912d620fb5574bcd8bf5072ac6561b72291cb1cb | 2,036 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/auto_resize_dimensions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/auto_resize_dimensions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/auto_resize_dimensions_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... | 39.921569 | 186 | 0.756385 |
912d671951ce8169f1f5319aed07fead5a56b47a | 512 | ex | Elixir | web/controllers/api/v1/time_entry_controller.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 207 | 2016-02-24T06:43:04.000Z | 2021-03-05T02:26:47.000Z | web/controllers/api/v1/time_entry_controller.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 6 | 2016-02-26T00:13:06.000Z | 2017-06-15T07:49:02.000Z | web/controllers/api/v1/time_entry_controller.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 24 | 2016-02-24T18:02:21.000Z | 2019-11-11T12:47:06.000Z | defmodule PhoenixToggl.TimeEntryController do
use PhoenixToggl.Web, :controller
alias PhoenixToggl.{Repo, TimeEntry}
plug Guardian.Plug.EnsureAuthenticated, handler: PhoenixTrello.SessionController
def index(conn, _params) do
current_user = Guardian.Plug.current_resource(conn)
time_entries = current... | 25.6 | 82 | 0.742188 |
912d757a50fe38057572106a69d756ce70d93dae | 4,751 | ex | Elixir | deps/phoenix/lib/phoenix/endpoint/render_errors.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/endpoint/render_errors.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/endpoint/render_errors.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.RenderErrors do
# This module is used to catch failures and render them using a view.
#
# This module is automatically used in `Phoenix.Endpoint` where it
# overrides `call/2` to provide rendering. Once the error is
# rendered, the error is reraised unless it is a NoRouteError.... | 32.993056 | 121 | 0.641549 |
912d7e172bc3ac29c413ab941ece51c3f80779e9 | 783 | ex | Elixir | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/operation.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/operation.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/operation.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Database.CosmosDb.Model.Operation do
@moduledoc """
REST API operation
"""
@derive [Poison.Encoder]
defstruc... | 26.1 | 117 | 0.727969 |
912d91e3c42b968ee17000a8e7feea5ed40828b4 | 564 | exs | Elixir | apps/gobstopper_service/priv/repo/migrations/20170424175330_create_email_credential.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 3 | 2017-05-02T12:53:07.000Z | 2017-05-28T11:53:15.000Z | apps/gobstopper_service/priv/repo/migrations/20170424175330_create_email_credential.exs | ScrimpyCat/gobstopper | 41a64991d8fb809065a52d09f8f4c6c707ae3403 | [
"BSD-2-Clause"
] | 12 | 2017-07-24T12:29:51.000Z | 2018-04-05T03:58:10.000Z | apps/gobstopper_service/priv/repo/migrations/20170424175330_create_email_credential.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 4 | 2017-07-24T12:19:23.000Z | 2019-02-19T06:34:46.000Z | defmodule Gobstopper.Service.Repo.Migrations.CreateEmailCredential do
use Ecto.Migration
def change do
create table(:email_credentials) do
add :identity_id, references(:identities),
null: false
# add :email, :string,
# null: false
ad... | 25.636364 | 70 | 0.58156 |
912d94a21ef344cbeca4c5a5af81a96e08cf7085 | 138 | exs | Elixir | demoapp/test/demoapp_test.exs | OliverLeitner/elixirdemo | 4d2f9e4908974e99026dd36df2c23a426ee972b7 | [
"Apache-2.0"
] | null | null | null | demoapp/test/demoapp_test.exs | OliverLeitner/elixirdemo | 4d2f9e4908974e99026dd36df2c23a426ee972b7 | [
"Apache-2.0"
] | null | null | null | demoapp/test/demoapp_test.exs | OliverLeitner/elixirdemo | 4d2f9e4908974e99026dd36df2c23a426ee972b7 | [
"Apache-2.0"
] | null | null | null | defmodule DemoappTest do
use ExUnit.Case
doctest Demoapp
test "greets the world" do
assert Demoapp.hello() == :world
end
end
| 15.333333 | 36 | 0.710145 |
912dbc7454878a6b1506683073d4e95e81ad8a9a | 7,239 | ex | Elixir | lib/elixir/unicode/tokenizer.ex | jmbejar/elixir | 4a5fcbe04a5a477e27c6645a8a4bdb98332fb6eb | [
"Apache-2.0"
] | null | null | null | lib/elixir/unicode/tokenizer.ex | jmbejar/elixir | 4a5fcbe04a5a477e27c6645a8a4bdb98332fb6eb | [
"Apache-2.0"
] | null | null | null | lib/elixir/unicode/tokenizer.ex | jmbejar/elixir | 4a5fcbe04a5a477e27c6645a8a4bdb98332fb6eb | [
"Apache-2.0"
] | 1 | 2021-12-09T11:36:07.000Z | 2021-12-09T11:36:07.000Z | defmodule String.Tokenizer do
@moduledoc false
data_path = Path.join(__DIR__, "UnicodeData.txt")
{letter_uptitlecase, start, continue, _} =
data_path
|> File.read!()
|> String.split(["\r\n", "\n"], trim: true)
|> Enum.reduce({[], [], [], nil}, fn line, acc ->
{letter_uptitlecase, start, co... | 29.072289 | 91 | 0.578395 |
912dbf4591c2ba07ecf42e8789c6d4e7c943a166 | 1,690 | ex | Elixir | lib/my_skill_queue_is_empty.ex | CaffeineAndLabs/my_skill_queue_is_empty | 894389b4c57b0754cabfab0b7afaa02b4b1bebc8 | [
"MIT"
] | null | null | null | lib/my_skill_queue_is_empty.ex | CaffeineAndLabs/my_skill_queue_is_empty | 894389b4c57b0754cabfab0b7afaa02b4b1bebc8 | [
"MIT"
] | null | null | null | lib/my_skill_queue_is_empty.ex | CaffeineAndLabs/my_skill_queue_is_empty | 894389b4c57b0754cabfab0b7afaa02b4b1bebc8 | [
"MIT"
] | null | null | null | defmodule MySkillQueueIsEmpty do
use Application
def main(_args) do
alias MySkillQueueIsEmpty.Mailer, as: Mailer
alias MySkillQueueIsEmpty.Emails, as: Emails
IO.puts "Is my skill queue empty ?"
if get_skill_queue |> skill_queue_empty? do
Emails.skill_queue_empty_mail |> Mailer.deliver_now
... | 30.727273 | 102 | 0.711834 |
912dca660353851ced3bc5c7d23e55ffe4452545 | 501 | ex | Elixir | lib/database/in_memory.ex | kevinkjt2000/discord-game-server-status | 01b51910941ce719b539e35da2ee0941aef2f291 | [
"MIT"
] | 2 | 2017-06-22T03:30:01.000Z | 2017-09-27T02:13:17.000Z | lib/database/in_memory.ex | kevinkjt2000/bowser | 01b51910941ce719b539e35da2ee0941aef2f291 | [
"MIT"
] | 111 | 2017-12-19T04:56:25.000Z | 2022-03-07T09:18:13.000Z | lib/database/in_memory.ex | kevinkjt2000/bowser | 01b51910941ce719b539e35da2ee0941aef2f291 | [
"MIT"
] | 3 | 2017-09-27T02:23:18.000Z | 2017-12-18T20:35:09.000Z | defmodule Bowser.Database.InMemory do
@moduledoc "Mock of Database implementation for unit tests"
@behaviour Bowser.Database
@impl Bowser.Database
def get_config("dm", _channel_id) do
"{\"host\":\"localhost\",\"port\":20000}"
end
def get_config("7890", 123_456) do
"{\"host\":\"localhost\",\"port\"... | 22.772727 | 61 | 0.702595 |
912dd354b131ce051abf9b6fe60ef2ad53cd7dd4 | 2,718 | ex | Elixir | lib/mix/lib/mix/tasks/app.tree.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/mix/lib/mix/tasks/app.tree.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/app.tree.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.App.Tree do
use Mix.Task
@shortdoc "Prints the application tree"
@recursive true
@moduledoc """
Prints the application tree.
mix app.tree --exclude logger --exclude elixir
If no application is given, it uses the current application defined
in the `mix.exs` file.
## Command... | 28.3125 | 90 | 0.62362 |
912de3de9b81d19b25b25a66ff29334c527d8565 | 1,242 | ex | Elixir | apps/site/lib/site_web/views/partial/header_tabs.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/views/partial/header_tabs.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/views/partial/header_tabs.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.PartialView.HeaderTabs do
use SiteWeb, :view
alias Phoenix.HTML
alias Phoenix.HTML.Link
alias SiteWeb.PartialView.{HeaderTab, HeaderTabBadge}
@spec render_tabs([HeaderTab.t()], Keyword.t()) :: HTML.safe()
def render_tabs(tabs, opts \\ []) do
selected = Keyword.get(opts, :selected, "")... | 32.684211 | 80 | 0.660225 |
912de494621ac0a0bd00dafa7739925baa982aed | 1,217 | exs | Elixir | test/protocol/heartbeat_test.exs | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | test/protocol/heartbeat_test.exs | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | test/protocol/heartbeat_test.exs | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | defmodule Cafex.Protocol.Heartbeat.Test do
use ExUnit.Case, async: true
alias Cafex.Protocol.Heartbeat
alias Cafex.Protocol.Heartbeat.Request
alias Cafex.Protocol.Heartbeat.Response
test "Heartbeat protocol implementation" do
req = %Request{}
assert Heartbeat.has_response?(req) == true
assert He... | 31.205128 | 78 | 0.665571 |
912defdad663014360ac38d218d4089f03fe1fdd | 4,981 | exs | Elixir | mix.exs | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | 2 | 2020-07-24T08:34:36.000Z | 2021-02-08T03:21:49.000Z | mix.exs | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | null | null | null | mix.exs | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.5.0-dev"
def project do
[
app: :phoenix,
version: @version,
elixir: "~> 1.5.1 or ~> 1.6",
deps: deps(),
package: package(),
lockfile: lockfile(),
preferred_cli_env: [docs: :docs],
consolidate_protoco... | 24.416667 | 96 | 0.573981 |
912df545a7b9fdac0e11a73236de6ae317736092 | 1,568 | ex | Elixir | app/templates/web/routers/_entities_router.ex | rayokota/generator-angular-dynamo | f238edc1be188a531cee373a3aa51732c2ac6972 | [
"MIT"
] | null | null | null | app/templates/web/routers/_entities_router.ex | rayokota/generator-angular-dynamo | f238edc1be188a531cee373a3aa51732c2ac6972 | [
"MIT"
] | null | null | null | app/templates/web/routers/_entities_router.ex | rayokota/generator-angular-dynamo | f238edc1be188a531cee373a3aa51732c2ac6972 | [
"MIT"
] | null | null | null | defmodule <%= _.capitalize(pluralize(name)) %>Router do
use Dynamo.Router
get "/" do
conn.resp 200, ExJSON.generate <%= _.capitalize(name) %>Queries.all
end
get "/:id" do
<%= name %> = Repo.get(<%= _.capitalize(name) %>, id)
if <%= name %> do
conn.resp 200, ExJSON.generate <%= name %>.__stru... | 31.36 | 175 | 0.52551 |
912e0681618c908971f07226871f67251afc3f3b | 1,314 | exs | Elixir | config/config.exs | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | 1 | 2018-02-12T23:14:33.000Z | 2018-02-12T23:14:33.000Z | config/config.exs | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | 16 | 2017-11-18T15:28:34.000Z | 2019-02-09T10:27:10.000Z | config/config.exs | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | 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... | 29.863636 | 73 | 0.722222 |
912e348fc73edaf0a38a87c4ad3aeb0a3220fa69 | 1,105 | ex | Elixir | lib/kazan/models/resource_id.ex | ahovgaard/kazan | a93ea241ae9d94f327f741875ff43f509f72b2c6 | [
"MIT"
] | 139 | 2017-01-02T08:11:23.000Z | 2022-02-10T19:23:29.000Z | lib/kazan/models/resource_id.ex | ahovgaard/kazan | a93ea241ae9d94f327f741875ff43f509f72b2c6 | [
"MIT"
] | 64 | 2017-01-05T13:27:04.000Z | 2022-02-21T15:42:23.000Z | lib/kazan/models/resource_id.ex | ahovgaard/kazan | a93ea241ae9d94f327f741875ff43f509f72b2c6 | [
"MIT"
] | 30 | 2017-01-02T08:11:27.000Z | 2021-06-24T14:24:58.000Z | defmodule Kazan.Models.ResourceId do
@moduledoc false
# Stores the kind, version & group of a kubernetes resource.
@enforce_keys [:group, :version, :kind]
defstruct [:group, :version, :kind]
@type t :: %{
group: String.t(),
version: String.t(),
kind: String.t()
}
@do... | 25.113636 | 74 | 0.636199 |
912e360e3b8f80dccc5963e1b4d404e81dcca3dc | 42,134 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.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... | 50.702768 | 511 | 0.646082 |
912e94b95a1aac5c5f12298b501d2f2f3633b77e | 1,936 | ex | Elixir | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_binding_explanation_annotated_membership.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_binding_explanation_annotated_membership.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_binding_explanation_annotated_membership.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... | 33.964912 | 141 | 0.755165 |
912edaa601863e7b6349c82c4075712db8baed76 | 3,357 | ex | Elixir | lib/bsv/block_header.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 26 | 2019-08-31T13:39:50.000Z | 2022-01-18T10:23:26.000Z | lib/bsv/block_header.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-04-24T18:24:01.000Z | 2021-06-15T10:59:33.000Z | lib/bsv/block_header.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-05-21T15:27:31.000Z | 2021-06-13T05:26:47.000Z | defmodule BSV.BlockHeader do
@moduledoc """
A block header is an 80 byte packet of information providing a summary of the
`t:BSV.Block.t/0`.
Contained within the block header is a Merkle root - the result of hashing all
of the transactions contained in the block into a tree-like structure known as
a Merkle... | 25.625954 | 99 | 0.600834 |
912f0c88efd40e67229d6a6b38c25b4910457e3e | 406 | ex | Elixir | src/mbs/lib/cli/command/version.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | null | null | null | src/mbs/lib/cli/command/version.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | 1 | 2021-12-15T07:22:59.000Z | 2021-12-15T07:47:56.000Z | src/mbs/lib/cli/command/version.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | null | null | null | defmodule MBS.CLI.Command.Version do
@moduledoc false
defstruct []
@type t :: %__MODULE__{}
end
defimpl MBS.CLI.Command, for: MBS.CLI.Command.Version do
alias MBS.CLI.Command
alias MBS.Config
@spec run(Command.Version.t(), Config.Data.t(), Path.t()) :: Command.on_run()
def run(%Command.Version{}, %Con... | 20.3 | 79 | 0.679803 |
912f2582ab801e7a718fdc9ea2ef75e2fc9bb10a | 1,184 | ex | Elixir | lib/crit_web/templates/purpose.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit_web/templates/purpose.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit_web/templates/purpose.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule CritWeb.Templates.Purpose do
# See `mix new_purpose`
def create_a_password_without_needing_an_existing_one,
do: "create a password without needing an existing one"
def form_for_creating_new_user,
do: "form for creating new user"
def list_active_users,
do: "list active users"
def s... | 24.163265 | 59 | 0.73902 |
912f4e3d2b9596988305df76fbadf6645698b3a8 | 1,307 | exs | Elixir | config/test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | config/test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | config/test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | use Mix.Config
config :pow, Pow.Test.Phoenix.Endpoint,
secret_key_base: String.duplicate("abcdefghijklmnopqrstuvxyz0123456789", 2),
render_errors: [view: Pow.Test.Phoenix.ErrorView, accepts: ~w(html json)]
config :pow, Pow.Test.Ecto.Repo,
adapter: Ecto.Adapters.Postgres,
database: "pow_test",
pool: Ecto.Ada... | 38.441176 | 98 | 0.76205 |
912f84812aa92a1da4d63411cbfbc920cabf14ac | 20,931 | ex | Elixir | lib/elixir/lib/process.ex | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/process.ex | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/process.ex | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | null | null | null | defmodule Process do
@moduledoc """
Conveniences for working with processes and the process dictionary.
Besides the functions available in this module, the `Kernel` module
exposes and auto-imports some basic functionality related to processes
available through the following functions:
* `Kernel.spawn/1`... | 31.427928 | 118 | 0.678181 |
912f936730319e042384e1e887310c8b498cdf11 | 2,012 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/option.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/option.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/option.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... | 40.24 | 320 | 0.729125 |
912fa027ff6e6c4a01f9ad1dc64fd56cd84cba5e | 266 | ex | Elixir | lib/bonny/application.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 227 | 2018-12-30T20:13:47.000Z | 2022-03-26T03:49:07.000Z | lib/bonny/application.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 104 | 2018-12-20T02:16:28.000Z | 2022-03-28T07:18:06.000Z | lib/bonny/application.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 24 | 2019-02-14T10:18:09.000Z | 2022-02-08T04:18:32.000Z | defmodule Bonny.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = Bonny.Config.controllers()
opts = [strategy: :one_for_one, name: Bonny.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 20.461538 | 59 | 0.725564 |
912fcd302167a5cb0ba7974682c1c658707ccc07 | 4,883 | ex | Elixir | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_detailed_lead_report.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_detailed_lead_report.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_detailed_lead_report.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... | 45.212963 | 193 | 0.709195 |
912fe557dc02b6dc5b6881d6840faf31f5f851fc | 10,513 | ex | Elixir | lib/changelog/schema/news/news_item.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog/schema/news/news_item.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog/schema/news/news_item.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | defmodule Changelog.NewsItem do
use Changelog.Schema, default_sort: :published_at
alias Changelog.{Episode, Files, NewsItemComment, NewsItemTopic, NewsIssue,
NewsQueue, NewsSource, Person, Post, Regexp, Subscription, UrlKit}
defenum Status, declined: -1, draft: 0, queued: 1, submitted: 2, pub... | 42.735772 | 159 | 0.654903 |
912fe89c453e7dc70651efd313465a65a0a5e952 | 1,213 | ex | Elixir | lib/teslamate/locations/address.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | lib/teslamate/locations/address.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | lib/teslamate/locations/address.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMate.Locations.Address do
use Ecto.Schema
import Ecto.Changeset
schema "addresses" do
field :city, :string
field :county, :string
field :country, :string
field :display_name, :string
field :house_number, :string
field :latitude, :decimal, read_after_writes: true
field :... | 20.913793 | 73 | 0.609233 |
912ff230043648c9482fd063199424487861989a | 958 | ex | Elixir | ex_mon/lib/ex_mon/trainer/pokemon/create.ex | cesaraugustomt/ExMon_API | c489c0fd5b928b7061102d6776a388dfe7aef8b7 | [
"MIT"
] | null | null | null | ex_mon/lib/ex_mon/trainer/pokemon/create.ex | cesaraugustomt/ExMon_API | c489c0fd5b928b7061102d6776a388dfe7aef8b7 | [
"MIT"
] | null | null | null | ex_mon/lib/ex_mon/trainer/pokemon/create.ex | cesaraugustomt/ExMon_API | c489c0fd5b928b7061102d6776a388dfe7aef8b7 | [
"MIT"
] | null | null | null | defmodule ExMon.Trainer.Pokemon.Create do
alias ExMon.Pokemon
alias ExMon.Trainer.Pokemon, as: TrainerPokemon
alias ExMon.PokeApi.Client
alias ExMon.Repo
def call(%{"name" => name} = params) do
name
|> Client.get_pokemon()
|> handle_response(params)
end
defp handle_response({:ok, body}, para... | 23.365854 | 76 | 0.638831 |
9130074bb2b5688b77370992b0d104633fb3df6f | 135 | ex | Elixir | apps/sms_code/lib/sms_code/twilio/sandbox.ex | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/sms_code/lib/sms_code/twilio/sandbox.ex | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/sms_code/lib/sms_code/twilio/sandbox.ex | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | defmodule SmsCode.Twilio.Sandbox.Message do
def create(payload) do
send(self(), {:create, payload})
{:ok, payload}
end
end
| 19.285714 | 43 | 0.681481 |
91300908aefe232fa8504be4b399a6647b5e78b5 | 1,619 | exs | Elixir | mix.exs | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | 1 | 2017-11-27T07:11:27.000Z | 2017-11-27T07:11:27.000Z | mix.exs | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | null | null | null | mix.exs | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | null | null | null | defmodule JapHaji.Mixfile do
use Mix.Project
def project do
[
app: :jap_haji,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps:... | 26.112903 | 79 | 0.580605 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.