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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7311da8b1d9dc6205bccb91549a415d1c8f52b0e | 1,470 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/artifact_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/artifact_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/artifact_rule.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.276596 | 86 | 0.741497 |
731215348687e8dbb452580cd11df4ed3584fe84 | 97 | ex | Elixir | apps/massa_proxy/lib/massa_proxy/runtime/wasm/wasm.ex | marcellanz/massa | 97423e2e45b37d372bba51c76c1dd8433ac85b8c | [
"Apache-2.0"
] | null | null | null | apps/massa_proxy/lib/massa_proxy/runtime/wasm/wasm.ex | marcellanz/massa | 97423e2e45b37d372bba51c76c1dd8433ac85b8c | [
"Apache-2.0"
] | 16 | 2021-11-01T08:19:03.000Z | 2022-03-30T08:17:43.000Z | apps/massa_proxy/lib/massa_proxy/runtime/wasm/wasm.ex | marcellanz/massa | 97423e2e45b37d372bba51c76c1dd8433ac85b8c | [
"Apache-2.0"
] | null | null | null | defmodule MassaProxy.Runtime.Wasm do
@moduledoc """
"""
@behaviour MassaProxy.Runtime
end
| 13.857143 | 36 | 0.721649 |
73124a3436343208615619729cc46a9a2072d5d7 | 1,138 | ex | Elixir | apps/artemis/lib/artemis/contexts/reaction/delete_many_associated_reactions.ex | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/lib/artemis/contexts/reaction/delete_many_associated_reactions.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/lib/artemis/contexts/reaction/delete_many_associated_reactions.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.DeleteManyAssociatedReactions do
import Ecto.Query
alias Artemis.Reaction
alias Artemis.Repo
def call!(resource_type, resource_id \\ nil, user) do
case call(resource_type, resource_id, user) do
{:error, _} -> raise(Artemis.Context.Error, "Error deleting many associated reactions")
... | 29.179487 | 93 | 0.70826 |
731286f85566fabca212d7a261d0f339a0d78c88 | 891 | ex | Elixir | lib/makeup/styles/html/pygments/vs.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/styles/html/pygments/vs.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/styles/html/pygments/vs.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null |
defmodule Makeup.Styles.HTML.VisualStudioStyle do
@moduledoc false
require Makeup.Token.TokenTypes
alias Makeup.Token.TokenTypes, as: Tok
@styles %{
Tok.error => "border:#FF0000",
Tok.keyword => "#0000ff",
Tok.keyword_type => "#2b91af",
Tok.name_class => "#2b91af",
Tok.string => "#a31515"... | 24.081081 | 49 | 0.628507 |
7312bbf7e7971c2e8eb53140ebf024d897eb30c2 | 4,748 | ex | Elixir | lib/ueberauth/strategy/procore.ex | alignd/ueberauth_procore | 7a3b9ff77086a233d65b4b60f80b57d73de35f2d | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/procore.ex | alignd/ueberauth_procore | 7a3b9ff77086a233d65b4b60f80b57d73de35f2d | [
"MIT"
] | 2 | 2019-04-03T07:36:00.000Z | 2019-04-22T07:26:56.000Z | lib/ueberauth/strategy/procore.ex | alignd/ueberauth_procore | 7a3b9ff77086a233d65b4b60f80b57d73de35f2d | [
"MIT"
] | 1 | 2019-04-01T22:34:46.000Z | 2019-04-01T22:34:46.000Z | defmodule Ueberauth.Strategy.Procore do
@moduledoc """
Provides an Ueberauth strategy for authenticating with Procore.
### Setup
Create an application in Procore for you to use.
Include the provider in your configuration for Ueberauth
config :ueberauth, Ueberauth,
providers: [
proc... | 28.775758 | 93 | 0.662805 |
7312cfdcbbb779237f153678f40f9ce0053ae6d1 | 776 | ex | Elixir | apps/exsemantica_phx/lib/exsemantica_phx/site/user.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | 1 | 2021-09-11T15:46:04.000Z | 2021-09-11T15:46:04.000Z | apps/exsemantica_phx/lib/exsemantica_phx/site/user.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | 4 | 2021-01-18T00:49:02.000Z | 2022-02-23T05:18:37.000Z | apps/exsemantica_phx/lib/exsemantica_phx/site/user.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaPhx.Site.User do
use Ecto.Schema
import Ecto.Changeset
schema "site_users" do
field :biography, :string
field :contract, :binary
field :email, :string
field :node_corresponding, :integer
field :password, :binary
field :privmask, :binary
field :username, :string
... | 27.714286 | 111 | 0.695876 |
7312e889f9e5b6bcc14f9cc8afe6d5c859097f41 | 364 | exs | Elixir | priv/repo/migrations/20210127132951_create_neighborhoods.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210127132951_create_neighborhoods.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | 6 | 2021-01-22T15:23:04.000Z | 2021-01-28T07:56:01.000Z | priv/repo/migrations/20210127132951_create_neighborhoods.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | defmodule OrderApi.Repo.Migrations.CreateNeighborhoods do
use Ecto.Migration
def change do
create table(:neighborhoods) do
add :code, :string
add :name, :string
add :receiver_address_id, references(:receiver_address, on_delete: :nilify_all)
timestamps()
end
create index(:neigh... | 22.75 | 85 | 0.714286 |
7312f020919968b54c24e885e4ba8295071af23f | 81,283 | ex | Elixir | lib/ash/filter/filter.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | defmodule Ash.Filter do
# credo:disable-for-this-file Credo.Check.Readability.StrictModuleLayout
@dialyzer {:nowarn_function, do_map: 2, map: 2}
alias Ash.Actions.Load
alias Ash.Engine.Request
alias Ash.Error.Query.{
AggregatesNotSupported,
CalculationsNotSupported,
InvalidFilterValue,
NoSuch... | 31.383398 | 197 | 0.60966 |
73135a3a0e46a02f92297ed45fbf681a97a728cd | 65 | ex | Elixir | lib/coderjobs_web/views/page_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 28 | 2017-11-20T02:01:17.000Z | 2021-05-08T16:52:58.000Z | lib/coderjobs_web/views/page_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 1 | 2018-12-05T06:07:36.000Z | 2018-12-09T17:33:28.000Z | lib/coderjobs_web/views/page_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 3 | 2017-12-21T03:29:39.000Z | 2019-08-11T02:56:08.000Z | defmodule CoderjobsWeb.PageView do
use CoderjobsWeb, :view
end
| 16.25 | 34 | 0.815385 |
7313a66eadbaa7a1a0f70c7f5102eb7113ced618 | 5,158 | ex | Elixir | lib/app_optex.ex | sashman/app_optex | cb7bcd04b8ce1e0b0a9364b49ce490b6f5489397 | [
"MIT"
] | 5 | 2019-04-02T20:30:01.000Z | 2019-04-26T08:30:19.000Z | lib/app_optex.ex | sashman/app_optex | cb7bcd04b8ce1e0b0a9364b49ce490b6f5489397 | [
"MIT"
] | 6 | 2019-04-05T15:14:01.000Z | 2019-05-13T14:07:14.000Z | lib/app_optex.ex | sashman/app_optex | cb7bcd04b8ce1e0b0a9364b49ce490b6f5489397 | [
"MIT"
] | 1 | 2019-05-13T13:58:15.000Z | 2019-05-13T13:58:15.000Z | defmodule AppOptex do
alias AppOptex.{Worker, Client}
@moduledoc """
Client library for sending and reading AppOptics API measurements. To auth AppOptics make sure to set the `APPOPTICS_TOKEN` environment variable. This can also be overridden in the Application config.
"""
@doc """
Send one measurement wi... | 32.037267 | 222 | 0.667507 |
7313aa28fff305db8e969bac35890fafeb560323 | 1,493 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/ga_data_data_table_rows.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/ga_data_data_table_rows.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics/lib/google_api/analytics/v3/model/ga_data_data_table_rows.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.765957 | 100 | 0.744139 |
7313c7adf35b1555cd3d0e519ca377fd75bf157d | 373 | ex | Elixir | lib/fake_server/server/cowboy.ex | TakteS/fake_server | c982457977acb1aee491a5d5102e68eed84873f2 | [
"Apache-2.0"
] | null | null | null | lib/fake_server/server/cowboy.ex | TakteS/fake_server | c982457977acb1aee491a5d5102e68eed84873f2 | [
"Apache-2.0"
] | null | null | null | lib/fake_server/server/cowboy.ex | TakteS/fake_server | c982457977acb1aee491a5d5102e68eed84873f2 | [
"Apache-2.0"
] | null | null | null | defmodule FakeServer.Cowboy do
@moduledoc false
alias FakeServer.Instance
def start_listen(%Instance{} = server) do
:cowboy.start_clear(
server.server_name,
[port: server.port],
%{env: %{dispatch: server.router}, http10_keepalive: false}
)
end
def stop(%Instance{} = server) do
... | 20.722222 | 65 | 0.683646 |
7314000ffadd1e1050d0ef9bf2fd90c47a9553a1 | 14 | ex | Elixir | testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/EmptyBlockDotIdentifier.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/EmptyBlockDotIdentifier.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/EmptyBlockDotIdentifier.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | (;).identifier | 14 | 14 | 0.714286 |
731400c63f8fe9bc478e78ff3791b7f68d95f5ae | 6,098 | exs | Elixir | test/failure_examples.exs | Kr00lIX/assertions | 84b0ef5844f06589773a898fd8bd4fdf04d5a338 | [
"MIT"
] | 121 | 2018-11-30T16:08:43.000Z | 2022-03-10T04:10:04.000Z | test/failure_examples.exs | Kr00lIX/assertions | 84b0ef5844f06589773a898fd8bd4fdf04d5a338 | [
"MIT"
] | 21 | 2019-02-14T08:31:06.000Z | 2022-02-22T16:36:43.000Z | test/failure_examples.exs | Kr00lIX/assertions | 84b0ef5844f06589773a898fd8bd4fdf04d5a338 | [
"MIT"
] | 17 | 2018-12-14T13:04:13.000Z | 2021-12-10T22:44:59.000Z | defmodule Assertions.FailureExamples do
@moduledoc """
This module is not run when running `mix test` because the file name doesn't
follow the `*_test.exs` pattern. This is intentional. All of these examples
fail, and this is to show how the diff is generated when using the
`ExUnit.Console` formatter.
"""
... | 25.948936 | 86 | 0.602493 |
73140d4957469b169181ece8f7fbc6fba19c1e1a | 22,596 | ex | Elixir | lib/ecto/query/builder.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder do
@moduledoc false
@distinct ~w(count)a
alias Ecto.Query
@typedoc """
Quoted types store primitive types and types in the format
{source, quoted}. The latter are handled directly in the planner,
never forwarded to Ecto.Type.
The Ecto.Type module concerns itself only wit... | 36.1536 | 113 | 0.634183 |
7314104ff0ad0846635af0f06a3bfdc233a4db22 | 903 | exs | Elixir | test/mix/tasks/git_hooks/install_test.exs | jwilson-ts/elixir_git_hooks | c8ef3f286accc91cb6d5e61694b8ee7dbdbe8ec7 | [
"MIT"
] | null | null | null | test/mix/tasks/git_hooks/install_test.exs | jwilson-ts/elixir_git_hooks | c8ef3f286accc91cb6d5e61694b8ee7dbdbe8ec7 | [
"MIT"
] | null | null | null | test/mix/tasks/git_hooks/install_test.exs | jwilson-ts/elixir_git_hooks | c8ef3f286accc91cb6d5e61694b8ee7dbdbe8ec7 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.InstallTest do
@moduledoc false
use ExUnit.Case, async: false
use GitHooks.TestSupport.ConfigCase
alias Mix.Tasks.GitHooks.Install
alias GitHooks.Git.Path, as: GitPath
@tag capture_log: true
describe "run/1" do
test "replaces the hook template with config values" do
put_g... | 20.066667 | 62 | 0.619048 |
731415808454195be68db62d0bf7e4f6eb67411d | 21,769 | ex | Elixir | lib/blockchain/transaction.ex | m0ar/blockchain | 6c3bf50edc673433f61a679a35050f1e72fe2274 | [
"MIT"
] | 93 | 2017-08-08T11:58:16.000Z | 2021-12-12T15:31:42.000Z | lib/blockchain/transaction.ex | m0ar/blockchain | 6c3bf50edc673433f61a679a35050f1e72fe2274 | [
"MIT"
] | 17 | 2017-08-07T08:08:05.000Z | 2018-08-20T19:27:20.000Z | lib/blockchain/transaction.ex | m0ar/blockchain | 6c3bf50edc673433f61a679a35050f1e72fe2274 | [
"MIT"
] | 14 | 2017-10-21T18:02:31.000Z | 2021-07-09T01:02:07.000Z | defmodule Blockchain.Transaction do
@moduledoc """
This module encodes the transaction object, defined in Section 4.3
of the Yellow Paper (http://gavwood.com/Paper.pdf). We are focused
on implementing 𝛶, as defined in Eq.(1).
"""
alias Blockchain.Account
alias Block.Header
defstruct nonce: 0,
... | 43.977778 | 287 | 0.620148 |
7314194f362b5b3a56b5e758aba131b80cc6a04a | 108 | ex | Elixir | test/support/mocks.ex | the-mikedavis/snipe | 3aae23bd1216aa2006ee1964e1482328731e2589 | [
"MIT"
] | null | null | null | test/support/mocks.ex | the-mikedavis/snipe | 3aae23bd1216aa2006ee1964e1482328731e2589 | [
"MIT"
] | null | null | null | test/support/mocks.ex | the-mikedavis/snipe | 3aae23bd1216aa2006ee1964e1482328731e2589 | [
"MIT"
] | null | null | null | Mox.defmock(Snipe.SshMock, for: Snipe.Ssh.Behaviour)
Mox.defmock(Snipe.SftpMock, for: Snipe.Sftp.Behaviour)
| 36 | 54 | 0.796296 |
731423fc3d21e1ab34673c5b8d1e59e9e35ad160 | 5,405 | exs | Elixir | test/guard_clauses_test.exs | snow-jallen/thinkingelixir | 973f33d618fd8b9c1b8d44cebfec4f1c07e192b2 | [
"MIT"
] | null | null | null | test/guard_clauses_test.exs | snow-jallen/thinkingelixir | 973f33d618fd8b9c1b8d44cebfec4f1c07e192b2 | [
"MIT"
] | null | null | null | test/guard_clauses_test.exs | snow-jallen/thinkingelixir | 973f33d618fd8b9c1b8d44cebfec4f1c07e192b2 | [
"MIT"
] | null | null | null | defmodule PatternMatching.GuardClausesTest do
@moduledoc """
Fix or complete the code to make the tests pass.
"""
use ExUnit.Case
alias PatternMatching.User
alias PatternMatching.GuardClauses
describe "return_numbers/1" do
test "returns value or error" do
assert 1.5 == GuardClauses.return_numbe... | 41.576923 | 113 | 0.661055 |
73144623d636357e645971a1e15cfd9df6c8fb6d | 558 | ex | Elixir | apps/mishka_file/lib/mishka_file/application.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_file/lib/mishka_file/application.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_file/lib/mishka_file/application.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaFile.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: MishkaFile.Worker.start_link(arg)
# {MishkaFile.... | 26.571429 | 69 | 0.713262 |
73144766da8d0c81a97e3605dfd43d262afe8c70 | 568 | exs | Elixir | test/views/error_view_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | test/views/error_view_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | test/views/error_view_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.ErrorViewTest do
use UcxChat.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(UcxChat.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
... | 25.818182 | 66 | 0.676056 |
73146bf4be7365f070c2ab40c39e238e99556cca | 2,023 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/text_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/text_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/text_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.46 | 431 | 0.734058 |
7314883bc39f673a24077d0f63cac49f0f74bd1b | 123 | exs | Elixir | fw/test/fw_test.exs | ejc123/meeting_indicator | 7557971f1a8fece55b01c25dc633be1bb1b9cc2c | [
"Apache-2.0"
] | 31 | 2018-12-25T19:52:35.000Z | 2022-03-20T01:06:46.000Z | fw/test/fw_test.exs | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | fw/test/fw_test.exs | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 2 | 2019-04-09T18:35:51.000Z | 2020-12-22T15:19:18.000Z | defmodule FwTest do
use ExUnit.Case
doctest Fw
test "greets the world" do
assert Fw.hello() == :world
end
end
| 13.666667 | 31 | 0.674797 |
7314c26782136ae68add2160a2538ec1f6884d0f | 5,542 | ex | Elixir | apps/language_server/lib/language_server/json_rpc.ex | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | 1 | 2020-06-01T11:25:33.000Z | 2020-06-01T11:25:33.000Z | apps/language_server/lib/language_server/json_rpc.ex | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/json_rpc.ex | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | 1 | 2021-06-15T21:08:17.000Z | 2021-06-15T21:08:17.000Z | defmodule ElixirLS.LanguageServer.JsonRpc do
@moduledoc """
Macros and functions for JSON RPC
Contains macros for creating or pattern-matching against packets and helper functions for sending
responses and notifications
"""
use GenServer
alias ElixirLS.Utils.WireProtocol
defstruct language_server: El... | 27.300493 | 99 | 0.648863 |
7314fd31be9c661a09aed3685b0a93ad843103d0 | 1,545 | ex | Elixir | sequence_supervisor/lib/sequence/server.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | sequence_supervisor/lib/sequence/server.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | sequence_supervisor/lib/sequence/server.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | defmodule Sequence.Server do
use GenServer
require Logger
@vsn "1"
#api interface
defmodule State do
defstruct current_number: 0, stash_pid: nil, delta: 1
end
def start_link(stash_pid) do
{:ok, _pid} = GenServer.start_link(__MODULE__,stash_pid, name: __MODULE__)
end
def next_number do
wit... | 32.87234 | 97 | 0.721683 |
73153940aff562e799a6e6041abcf4196c2e41a5 | 1,462 | ex | Elixir | lib/voxpop/grammar.ex | zovafit/voxpop | 0af5903c010eb1164cabfd468719468cc909fcf0 | [
"MIT"
] | 10 | 2016-03-06T01:57:44.000Z | 2021-02-05T02:01:10.000Z | lib/voxpop/grammar.ex | zovafit/voxpop | 0af5903c010eb1164cabfd468719468cc909fcf0 | [
"MIT"
] | 5 | 2016-03-06T00:59:21.000Z | 2016-03-07T05:00:26.000Z | lib/voxpop/grammar.ex | zovafit/voxpop | 0af5903c010eb1164cabfd468719468cc909fcf0 | [
"MIT"
] | 3 | 2016-03-06T22:56:49.000Z | 2017-10-10T05:37:29.000Z | defmodule Voxpop.Grammar.Generator do
alias Voxpop.Registry
def generate(definition, _context \\ %{}) do
case definition.registry do
nil -> Registry.parse(definition) |> Registry.evaluate
%Registry{} -> Registry.evaluate(definition.registry)
end
end
end
defmodule Voxpop.Grammar do
alias V... | 23.206349 | 80 | 0.692202 |
73153d9d66f50bd0c97be3ce42fb42ac45ad3053 | 2,617 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/ios_model.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/testing/lib/google_api/testing/v1/model/ios_model.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/ios_model.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 ... | 39.059701 | 171 | 0.692396 |
731554ab8df127123fe93748e50df6a8d9394590 | 1,474 | ex | Elixir | lib/livebook_web/live/settings_live/file_systems_component.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/settings_live/file_systems_component.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/settings_live/file_systems_component.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | 1 | 2021-12-18T03:42:04.000Z | 2021-12-18T03:42:04.000Z | defmodule LivebookWeb.SettingsLive.FileSystemsComponent do
use LivebookWeb, :live_component
alias Livebook.FileSystem
@impl true
def render(assigns) do
~H"""
<div class="flex flex-col space-y-4">
<div class="flex flex-col space-y-4">
<%= for {file_system, index} <- Enum.with_index(@file_... | 32.043478 | 95 | 0.580733 |
73155e889898bf938d70d503ab3e84e97114d9d7 | 4,584 | ex | Elixir | lib/musiccast/network.ex | almightycouch/musiccast | eba8107d4e0829f988693625d59d72090133a78a | [
"MIT"
] | 6 | 2017-03-18T21:04:52.000Z | 2020-09-27T00:43:02.000Z | lib/musiccast/network.ex | almightycouch/musiccast | eba8107d4e0829f988693625d59d72090133a78a | [
"MIT"
] | null | null | null | lib/musiccast/network.ex | almightycouch/musiccast | eba8107d4e0829f988693625d59d72090133a78a | [
"MIT"
] | 1 | 2021-01-11T17:23:22.000Z | 2021-01-11T17:23:22.000Z | defmodule MusicCast.Network do
@moduledoc """
A module for supervising a network of MusicCast™ devices.
The network is the heart of this MusicCast application. It is responsible for discovering
devices on the local network (see `MusicCast.UPnP.SSDPClient`) and keeping their state synchronized.
## Registry
... | 32.28169 | 126 | 0.692845 |
731565343f3939fd29cd4c2aa4de8a9858740e17 | 526 | ex | Elixir | lib/edgedb/protocol/datatypes/int64.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | lib/edgedb/protocol/datatypes/int64.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | lib/edgedb/protocol/datatypes/int64.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.Protocol.Datatypes.Int64 do
use EdgeDB.Protocol.Datatype
@int64_max 0x7FFFFFFFFFFFFFFF
@int64_min -0x8000000000000000
defguard is_int64(number)
when is_integer(number) and @int64_min <= number and number <= @int64_max
defdatatype(type: integer())
@impl EdgeDB.Protocol.Datatyp... | 23.909091 | 84 | 0.731939 |
73156edd4f4de7ba5d93e52063e1058e48c922ef | 375 | ex | Elixir | ex_mon/lib/player.ex | herminiotorres/curso_elixir | 19519a2ac27b7c3e4973cdb2053c32dd61647cb5 | [
"MIT"
] | 1 | 2021-08-08T22:50:44.000Z | 2021-08-08T22:50:44.000Z | ex_mon/lib/player.ex | herminiotorres/curso-elixir | 19519a2ac27b7c3e4973cdb2053c32dd61647cb5 | [
"MIT"
] | null | null | null | ex_mon/lib/player.ex | herminiotorres/curso-elixir | 19519a2ac27b7c3e4973cdb2053c32dd61647cb5 | [
"MIT"
] | null | null | null | defmodule ExMon.Player do
@required_keys ~w(life moves name)a
@max_file 100
@enforce_keys @required_keys
defstruct @required_keys
def build(name, move_avg, move_rnd, move_heal) do
%__MODULE__{
life: @max_file,
moves: %{
move_avg: move_avg,
move_heal: move_heal,
move_r... | 18.75 | 51 | 0.634667 |
731577ec53ee54656519e039b5b7e1fdf7ef6e6c | 113 | ex | Elixir | lib/blue_jet/app/notification/trigger/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/notification/trigger/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/notification/trigger/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Notification.Trigger.Proxy do
use BlueJet, :proxy
def put(trigger, _, _), do: trigger
end
| 18.833333 | 47 | 0.743363 |
7315870e9f5c73fcc0857932468300e00598f9f3 | 3,651 | ex | Elixir | kousa/lib/beef/access/users.ex | isaboo/dogehouse | 51cb149fcd8c287919749c5f8d22b396c38011ee | [
"MIT"
] | null | null | null | kousa/lib/beef/access/users.ex | isaboo/dogehouse | 51cb149fcd8c287919749c5f8d22b396c38011ee | [
"MIT"
] | null | null | null | kousa/lib/beef/access/users.ex | isaboo/dogehouse | 51cb149fcd8c287919749c5f8d22b396c38011ee | [
"MIT"
] | null | null | null | defmodule Beef.Access.Users do
import Ecto.Query, warn: false
alias Beef.Queries.Users, as: Query
alias Beef.Repo
alias Beef.Schemas.User
alias Beef.Schemas.Room
alias Beef.Rooms
def find_by_github_ids(ids) do
Query.start()
|> Query.filter_by_github_ids(ids)
|> Query.select_id()
|> Repo.... | 24.019737 | 82 | 0.617639 |
73159a6e42532100ad3a403534dc694f8f9a2997 | 10,422 | ex | Elixir | lib/web/conn.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | lib/web/conn.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | lib/web/conn.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
alias Antikythera.Http
defmodule Antikythera.Request do
@moduledoc """
Definition of `Antikythera.Request` struct.
"""
defmodule PathMatches do
use Croma.SubtypeOfMap, key_module: Croma.Atom, value_module: Croma.String
end
defm... | 36.440559 | 144 | 0.657743 |
73159bfade950ec147c5b0a26584125b2bcc228f | 544 | ex | Elixir | test/factories/factory.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | test/factories/factory.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | test/factories/factory.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | defmodule Cadet.Factory do
@moduledoc """
Factory for testing
"""
use ExMachina.Ecto, repo: Cadet.Repo
use Cadet.Accounts.{AuthorizationFactory, UserFactory}
use Cadet.Assessments.{
AnswerFactory,
AssessmentFactory,
LibraryFactory,
QuestionFactory,
SubmissionFactory
}
use Cadet.Co... | 20.148148 | 56 | 0.6875 |
7315e8f2a01170b9dcc4c24898b04fd5bd971c8a | 434 | ex | Elixir | flatten-array/lib/flatten_array.ex | tarcisiooliveira/Exercise-form-Exercism-in-Elixir | 2c9f14c264345d8aae09c701dc56128072b7f3c1 | [
"MIT"
] | null | null | null | flatten-array/lib/flatten_array.ex | tarcisiooliveira/Exercise-form-Exercism-in-Elixir | 2c9f14c264345d8aae09c701dc56128072b7f3c1 | [
"MIT"
] | null | null | null | flatten-array/lib/flatten_array.ex | tarcisiooliveira/Exercise-form-Exercism-in-Elixir | 2c9f14c264345d8aae09c701dc56128072b7f3c1 | [
"MIT"
] | null | null | null | defmodule FlattenArray do
@doc """
Accept a list and return the list flattened without nil values.
## Examples
iex> FlattenArray.flatten([1, [2], 3, nil])
[1,2,3]
iex> FlattenArray.flatten([nil, nil])
[]
"""
@spec flatten(list) :: list
def flatten([]), do: []
def flatten([... | 20.666667 | 67 | 0.589862 |
73160a306234fa506706b26882a8c5315af8ebec | 21,277 | exs | Elixir | lib/elixir/test/elixir/inspect_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/test/elixir/inspect_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/test/elixir/inspect_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule Inspect.AtomTest do
use ExUnit.Case, async: true
doctest Inspect
test "basic" do
assert inspect(:foo) == ":foo"
end
test "empty" do
assert inspect(:"") == ":\"\""
end
test "true, false, nil" do
assert inspect(false) == "false"
as... | 29.79972 | 98 | 0.562908 |
731616a727181b54ca420360a75c79348b8d8f59 | 418 | exs | Elixir | priv/repo/tenant_migrations/20170825154312_create_products.exs | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | 30 | 2018-06-27T17:51:53.000Z | 2021-04-24T03:17:55.000Z | priv/repo/tenant_migrations/20170825154312_create_products.exs | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | null | null | null | priv/repo/tenant_migrations/20170825154312_create_products.exs | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | 7 | 2018-07-24T17:56:14.000Z | 2019-12-31T02:10:13.000Z | defmodule MultiTenancex.Repo.Migrations.CreateProducts do
use Ecto.Migration
def change do
create table(:products) do
add(:name, :string)
add(:description, :string)
add(:image, :string)
add(:price, :float)
add(:units, :integer)
add(:company_id, references(:companies, on_dele... | 22 | 67 | 0.648325 |
7316203921aebc33a5cddb36ae8724d4eb487426 | 5,958 | ex | Elixir | lib/glimesh_web/controllers/user_auth.ex | Heiwa1580/glimesh.tv | c5e1ed4d1011b4e2a54c173d142e7eb857457477 | [
"MIT"
] | 1 | 2020-08-02T00:12:28.000Z | 2020-08-02T00:12:28.000Z | lib/glimesh_web/controllers/user_auth.ex | Heiwa1580/glimesh.tv | c5e1ed4d1011b4e2a54c173d142e7eb857457477 | [
"MIT"
] | null | null | null | lib/glimesh_web/controllers/user_auth.ex | Heiwa1580/glimesh.tv | c5e1ed4d1011b4e2a54c173d142e7eb857457477 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias Glimesh.Accounts
alias GlimeshWeb.Endpoint
alias GlimeshWeb.Router.Helpers, as: Routes
# Make the remember me cookie valid for 60 days.
# If you want bump or reduce this value, also change
# the token expiry itself in Us... | 28.644231 | 84 | 0.684794 |
73162c5df0e65da06483553dc192089ba19ed234 | 569 | ex | Elixir | apps/ewallet/lib/ewallet/policies/transaction_request_policy.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/transaction_request_policy.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/transaction_request_policy.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.TransactionRequestPolicy do
@moduledoc """
The authorization policy for accounts.
"""
@behaviour Bodyguard.Policy
alias EWallet.WalletPolicy
alias EWalletDB.Wallet
def authorize(:all, _admin_user_or_key, nil), do: true
def authorize(:get, _params, _request) do
true
end
# Che... | 24.73913 | 64 | 0.72935 |
731647e3c6f38d17136bf97ebd2ff831daede3b4 | 1,800 | ex | Elixir | lib/miss/list.ex | zekus/miss-elixir | 675107573b30b9f1843930be980c72f755503678 | [
"Apache-2.0"
] | 40 | 2020-10-05T13:02:56.000Z | 2021-09-17T05:45:11.000Z | lib/miss/list.ex | zekus/miss-elixir | 675107573b30b9f1843930be980c72f755503678 | [
"Apache-2.0"
] | 3 | 2020-10-05T08:15:16.000Z | 2022-01-25T14:10:42.000Z | lib/miss/list.ex | zekus/miss-elixir | 675107573b30b9f1843930be980c72f755503678 | [
"Apache-2.0"
] | 4 | 2020-10-04T04:45:47.000Z | 2022-03-16T17:36:33.000Z | defmodule Miss.List do
@moduledoc """
Functions to extend the Elixir `List` module.
"""
@doc """
Returns a list containing only the elements that `list1` and `list2` have in common.
`Miss.List.intersection/2` uses the [list subtraction operator](https://hexdocs.pm/elixir/Kernel.html#--/2)
that before Er... | 41.860465 | 165 | 0.696667 |
73165b667fb845fb5b5d1ca74e8a91bb80ceec4c | 211 | exs | Elixir | priv/repo/migrations/20210503080631_add_collect_folder_to_article_collect_record.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210503080631_add_collect_folder_to_article_collect_record.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210503080631_add_collect_folder_to_article_collect_record.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.AddCollectFolderToArticleCollectRecord do
use Ecto.Migration
def change do
alter table(:article_collects) do
add(:collect_folders, :map)
end
end
end
| 21.1 | 82 | 0.767773 |
7316b811ace49a583c07a6787e349312cf4bba12 | 1,255 | ex | Elixir | lib/web_driver_client/json_wire_protocol_client/commands/delete_cookies.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/json_wire_protocol_client/commands/delete_cookies.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/json_wire_protocol_client/commands/delete_cookies.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.JSONWireProtocolClient.Commands.DeleteCookies do
@moduledoc false
alias WebDriverClient.Config
alias WebDriverClient.ConnectionError
alias WebDriverClient.HTTPResponse
alias WebDriverClient.JSONWireProtocolClient.ResponseParser
alias WebDriverClient.JSONWireProtocolClient.TeslaCli... | 35.857143 | 92 | 0.741036 |
7316d154b76f47f53025c1618d6f4b9ab350ab23 | 1,869 | exs | Elixir | clients/workflows/mix.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/workflows/mix.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/workflows/mix.exs | 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... | 27.895522 | 140 | 0.659176 |
7316df8a8f7956f0fdb8f6eddf0b2403a65877b4 | 288 | ex | Elixir | apps/ello_events/lib/ello_events/application.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_events/lib/ello_events/application.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_events/lib/ello_events/application.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Events.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
]
opts = [strategy: :one_for_one, name: Ello.Events.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 18 | 65 | 0.701389 |
7316fef6695eb90ec1747768bf49661681bba441 | 7,838 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/course_work.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/course_work.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/course_work.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... | 68.156522 | 409 | 0.703751 |
731700fdb879a42143069f5f33708cbddbf22cf3 | 3,923 | ex | Elixir | lib/new_relic/harvest/collector/agent_run.ex | TheRealReal/elixir_agent | db757b24543c3d213495435e71340897f9455d16 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/agent_run.ex | TheRealReal/elixir_agent | db757b24543c3d213495435e71340897f9455d16 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/agent_run.ex | TheRealReal/elixir_agent | db757b24543c3d213495435e71340897f9455d16 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Harvest.Collector.AgentRun do
use GenServer
# This GenServer is responsible for connecting to the collector
# and holding onto the Agent Run state
@moduledoc false
alias NewRelic.Harvest.Collector
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
d... | 29.496241 | 97 | 0.695131 |
731715c75d2c5c28ba65eb391f4f3117f39df7c4 | 464 | exs | Elixir | priv/repo/migrations/20170808125429_create_user.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170808125429_create_user.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170808125429_create_user.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | defmodule Core.Repo.Migrations.CreateUser do
@moduledoc """
Create user table
"""
use Ecto.Migration
def change do
create table(:users) do
add :oid, :binary_id
add :email, :string
add :nick, :string
add :password, :string
add :is_admin, :boolean, default: false
time... | 18.56 | 45 | 0.625 |
731728805efbd1eade2f6ebe7afd6432b468b030 | 304 | ex | Elixir | lib/plotex/output/formatters/numeric_formatter.ex | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | lib/plotex/output/formatters/numeric_formatter.ex | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | lib/plotex/output/formatters/numeric_formatter.ex | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null |
defmodule Plotex.Output.Formatter.NumericDefault do
defstruct precision: 8, decimals: 2
end
defimpl Plotex.Output.Formatter, for: Plotex.Output.Formatter.NumericDefault do
def output(formatter, _axis, val) do
:io_lib.format("~#{formatter.precision}.#{formatter.decimals}f", [val])
end
end
| 25.333333 | 79 | 0.756579 |
731731e8e815b95a94612eada1c49d6b1782bbde | 2,011 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.22 | 527 | 0.742914 |
73175064ff528d1805c1f5197930538726f9dc67 | 921 | ex | Elixir | test/support/channel_case.ex | Mehonoshin/pmj | d16e6af7f136cb69c9008e55886ef4619974fc1e | [
"MIT"
] | 1 | 2020-01-12T20:08:37.000Z | 2020-01-12T20:08:37.000Z | test/support/channel_case.ex | Mehonoshin/pmj | d16e6af7f136cb69c9008e55886ef4619974fc1e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Mehonoshin/pmj | d16e6af7f136cb69c9008e55886ef4619974fc1e | [
"MIT"
] | null | null | null | defmodule PmjWeb.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 common datastructures and query the data layer.
Finally, if the test case interacts with t... | 24.236842 | 65 | 0.711183 |
73175390ac65432385c8eeca8b3ce68a247f3654 | 385 | ex | Elixir | lib/google_auth/supervisor.ex | DinaWork/google-auth | bd9bf156c9f2efeed874fc7af9f6b78e2be31be4 | [
"MIT"
] | null | null | null | lib/google_auth/supervisor.ex | DinaWork/google-auth | bd9bf156c9f2efeed874fc7af9f6b78e2be31be4 | [
"MIT"
] | null | null | null | lib/google_auth/supervisor.ex | DinaWork/google-auth | bd9bf156c9f2efeed874fc7af9f6b78e2be31be4 | [
"MIT"
] | null | null | null | defmodule GoogleAuth.Supervisor do
@moduledoc false
use Supervisor
alias GoogleAuth.Config
alias GoogleAuth.TokenStore
def start_link(envs) do
Supervisor.start_link(__MODULE__, envs, name: __MODULE__)
end
def init(envs) do
children = [
worker(Config, [envs]),
worker(TokenStore, [])
... | 18.333333 | 61 | 0.698701 |
73179dde3baac5be5712dfded5449af23b9fe124 | 3,534 | exs | Elixir | test/recorder_httpc_test.exs | junsumida/exvcr | 0f8aeeb19e5164917302ce257a2a1c324e02ff3b | [
"MIT"
] | null | null | null | test/recorder_httpc_test.exs | junsumida/exvcr | 0f8aeeb19e5164917302ce257a2a1c324e02ff3b | [
"MIT"
] | null | null | null | test/recorder_httpc_test.exs | junsumida/exvcr | 0f8aeeb19e5164917302ce257a2a1c324e02ff3b | [
"MIT"
] | 1 | 2018-10-10T05:57:37.000Z | 2018-10-10T05:57:37.000Z | defmodule ExVCR.RecorderHttpcTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Httpc
@dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes_httpc"
@port 34001
@url 'http://localhost:#{@port}/server'
@url_with_query 'http://localhost:#{@port}/server?password=sample'
setup_all do
on... | 35.34 | 119 | 0.685342 |
7317b5d9840ce6eea5d60312a4ed551bddb79a0e | 435 | ex | Elixir | chessboard/lib/chessboard.ex | quatauta/exercism-elixir | 3635610f25111f2afd3bb748e86f9b478ec239b0 | [
"MIT"
] | 1 | 2022-01-23T20:34:09.000Z | 2022-01-23T20:34:09.000Z | chessboard/lib/chessboard.ex | quatauta/exercism-elixir | 3635610f25111f2afd3bb748e86f9b478ec239b0 | [
"MIT"
] | null | null | null | chessboard/lib/chessboard.ex | quatauta/exercism-elixir | 3635610f25111f2afd3bb748e86f9b478ec239b0 | [
"MIT"
] | null | null | null | defmodule Chessboard do
@moduledoc false
@type rank_range :: %Range{first: 1, last: 8, step: 1}
@type file_range :: %Range{first: ?A, last: ?H, step: 1}
@spec rank_range :: rank_range()
def rank_range, do: 1..8
@spec file_range :: file_range
def file_range, do: ?A..?H
@spec ranks :: list()
def ran... | 22.894737 | 58 | 0.632184 |
7317c0bf48dcd8a547cd7ca76ee8ea3b2d267ff3 | 928 | ex | Elixir | lib/rocketpay/users/create.ex | henrique-tavares/rocketpay | 0c37071cd3e63dd51cae16d773522eb6a5de84d4 | [
"MIT"
] | null | null | null | lib/rocketpay/users/create.ex | henrique-tavares/rocketpay | 0c37071cd3e63dd51cae16d773522eb6a5de84d4 | [
"MIT"
] | null | null | null | lib/rocketpay/users/create.ex | henrique-tavares/rocketpay | 0c37071cd3e63dd51cae16d773522eb6a5de84d4 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Users.Create do
alias Rocketpay.{Repo, User, Account}
alias Ecto.Multi
def call(params) do
Multi.new()
|> Multi.insert(:create_user, User.changeset(params))
|> Multi.run(:create_account, fn repo, %{create_user: user} ->
insert_account(repo, user.id)
end)
|> Multi.run... | 25.777778 | 94 | 0.653017 |
7317c42611570570a7f28475640ff263bb91d88a | 1,935 | exs | Elixir | mix.exs | mvanlamz/nflrushing | 7b796fe7633e54795dc3a60193cdb66c578988c7 | [
"MIT"
] | null | null | null | mix.exs | mvanlamz/nflrushing | 7b796fe7633e54795dc3a60193cdb66c578988c7 | [
"MIT"
] | null | null | null | mix.exs | mvanlamz/nflrushing | 7b796fe7633e54795dc3a60193cdb66c578988c7 | [
"MIT"
] | null | null | null | defmodule Nflrushing.MixProject do
use Mix.Project
def project do
[
app: :nflrushing,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(... | 28.455882 | 84 | 0.577778 |
731821f1a3e226d4aede1911587f16f0f850a865 | 1,829 | exs | Elixir | test/unit/configuration/repo_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | test/unit/configuration/repo_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | test/unit/configuration/repo_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.Configuration.RepoTest do
@moduledoc false
use ExUnit.Case, async: true
alias Annon.Configuration.Repo
setup do
%{config: [
database: "db",
username: "name",
password: "pwd",
hostname: "host",
port: "port",
]}
end
test "CONFIGURATION_DATABASE_URL envir... | 29.983607 | 101 | 0.674139 |
731832a2a8d387d494ebfd00287a0ae7caca6b64 | 651 | ex | Elixir | chapter6/queue/lib/queue.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter6/queue/lib/queue.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter6/queue/lib/queue.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule Queue do
use GenServer
def start_link(initial_stack) when is_list(initial_stack) do
GenServer.start_link(__MODULE__, initial_stack)
end
def enqueue(pid, element) do
GenServer.cast(pid, {:enqueue, element})
end
def dequeue(pid) do
GenServer.call(pid, :dequeue)
end
@impl true
d... | 18.083333 | 62 | 0.65745 |
731835fdc3c9ebf50054adb67de88966d49d5bb5 | 818 | ex | Elixir | elixir/little-elixir-otp/mp3_id3_reader/reader.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/little-elixir-otp/mp3_id3_reader/reader.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/little-elixir-otp/mp3_id3_reader/reader.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule ID3Parser do
def parse(filepath) do
case File.read(filepath) do
{:ok, content} ->
read_id3(content)
_ ->
IO.puts "Unable to open file #{filepath}"
end
end
defp read_id3(content) do
music_byte_size = byte_size(content) - 128
<< _music_content :: binary-size(mu... | 22.108108 | 89 | 0.572127 |
731852612d4a4b67c96b7c8328b656edd51ad07a | 499 | ex | Elixir | test/support/unit_test_handler.ex | ckreiling/stargate | 76f7d8a95314a842ac9340739fbd1f1f142ab383 | [
"Apache-2.0"
] | null | null | null | test/support/unit_test_handler.ex | ckreiling/stargate | 76f7d8a95314a842ac9340739fbd1f1f142ab383 | [
"Apache-2.0"
] | null | null | null | test/support/unit_test_handler.ex | ckreiling/stargate | 76f7d8a95314a842ac9340739fbd1f1f142ab383 | [
"Apache-2.0"
] | null | null | null | defmodule UnitTestHandler do
use Stargate.Receiver.MessageHandler
def init({source, expected}) do
{:ok, %{source: source, processed: 0, expected: expected}}
end
def handle_message(%{payload: payload}, state) do
send(state.source, "message #{payload} received")
processed_count = state.processed + ... | 26.263158 | 72 | 0.699399 |
7318b5c32485e0eb8d54bb6fd2887a600949844a | 2,121 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/user_facing_message.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/user_facing_message.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/user_facing_message.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 41.588235 | 275 | 0.751532 |
7318dca568e6f6391e94b94889a912aaa4a743e5 | 468 | ex | Elixir | lib/shopify_api/rate_limiting/graphql.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 18 | 2019-06-07T13:36:39.000Z | 2021-08-03T21:06:36.000Z | lib/shopify_api/rate_limiting/graphql.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 158 | 2018-08-30T22:09:00.000Z | 2021-09-22T01:18:59.000Z | lib/shopify_api/rate_limiting/graphql.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 4 | 2020-09-05T00:48:46.000Z | 2020-09-30T15:53:50.000Z | defmodule ShopifyAPI.RateLimiting.GraphQL do
@plus_bucket 2000
@nonplus_bucket 1000
@plus_restore_rate 100
@nonplus_restore_rate 50
@max_query_cost 1000
def request_bucket(%{plus: true}), do: @plus_bucket
def request_bucket(%{plus: false}), do: @nonplus_bucket
def restore_rate_per_second(%{plus: tru... | 26 | 72 | 0.767094 |
7318e72a49210cddd4e18e23de1866ff26a436c0 | 3,173 | ex | Elixir | clients/content/lib/google_api/content/v2/model/datafeed_fetch_schedule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/datafeed_fetch_schedule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/datafeed_fetch_schedule.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 ... | 44.690141 | 289 | 0.685471 |
73190e85bc9f2808bb23a07001d84bfa52368a95 | 7,891 | ex | Elixir | lib/changelog/schema/person.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog/schema/person.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog/schema/person.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.Person do
use Changelog.Schema
alias Changelog.{EpisodeHost, EpisodeGuest, Faker, Files, NewsItem,
NewsItemComment, PodcastHost, Post, Regexp, Subscription}
defmodule Settings do
use Changelog.Schema
@primary_key false
embedded_schema do
field :subscribe... | 37.398104 | 120 | 0.699531 |
731917e281cb9d48872eebbb782f2bb7e62eeaae | 737 | exs | Elixir | .formatter.exs | simpers/ash_graphql | c91f52569220524d5ddd4a07e1a183b74333e341 | [
"MIT"
] | null | null | null | .formatter.exs | simpers/ash_graphql | c91f52569220524d5ddd4a07e1a183b74333e341 | [
"MIT"
] | null | null | null | .formatter.exs | simpers/ash_graphql | c91f52569220524d5ddd4a07e1a183b74333e341 | [
"MIT"
] | null | null | null | # THIS FILE IS AUTOGENERATED USING `mix ash.formatter`
# DONT MODIFY IT BY HAND
locals_without_parens = [
allow_nil?: 1,
authorize?: 1,
create: 2,
create: 3,
debug?: 1,
destroy: 2,
destroy: 3,
get: 2,
get: 3,
identity: 1,
list: 2,
list: 3,
lookup_identities: 1,
lookup_with_primary_key?: 1,
... | 18.425 | 70 | 0.656716 |
73195cd48d15815c864576243abf1d297d5c4d16 | 248 | exs | Elixir | test/ex_litedb_test.exs | litedb/ex_litedb | ed1ca3a2721d05726e814b393b73c4e08df9350b | [
"MIT"
] | null | null | null | test/ex_litedb_test.exs | litedb/ex_litedb | ed1ca3a2721d05726e814b393b73c4e08df9350b | [
"MIT"
] | null | null | null | test/ex_litedb_test.exs | litedb/ex_litedb | ed1ca3a2721d05726e814b393b73c4e08df9350b | [
"MIT"
] | null | null | null | defmodule ExLitedbTest do
use ExUnit.Case
doctest ExLitedb
describe "path_for" do
test "works" do
ExLitedb.extensions()
|> Enum.map(fn ext ->
assert ExLitedb.path_for(ext) |> IO.inspect()
end)
end
end
end
| 17.714286 | 53 | 0.629032 |
73198bc395f9fff3aa1322d60d7b8afde9741984 | 404 | ex | Elixir | lib/strategy/consul/agent.ex | howleysv/libcluster_consul | 03557c348a2be007fc2b980b7a9dd694f93e362d | [
"Apache-2.0"
] | 25 | 2020-04-17T07:43:07.000Z | 2022-03-11T11:33:59.000Z | lib/strategy/consul/agent.ex | howleysv/libcluster_consul | 03557c348a2be007fc2b980b7a9dd694f93e362d | [
"Apache-2.0"
] | 3 | 2020-05-29T23:09:29.000Z | 2021-09-23T11:51:41.000Z | lib/strategy/consul/agent.ex | howleysv/libcluster_consul | 03557c348a2be007fc2b980b7a9dd694f93e362d | [
"Apache-2.0"
] | 3 | 2020-05-28T20:37:26.000Z | 2021-05-26T10:23:34.000Z | defmodule Cluster.Strategy.Consul.Agent do
@moduledoc """
This endpoint grab nodes from Consul using the
[Agent HTTP API](https://www.consul.io/api/agent.html).
"""
use Cluster.Strategy.Consul.Endpoint
@impl true
def build_url(%URI{} = url, config) do
%{url | path: "/agent/service/#{config[:service_... | 23.764706 | 60 | 0.673267 |
7319940f7b361aee53d7fba130f1ec6c04834800 | 2,256 | ex | Elixir | lib/purple_web/live/run_live/show.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple_web/live/run_live/show.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple_web/live/run_live/show.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | defmodule PurpleWeb.RunLive.Show do
use PurpleWeb, :live_view
import PurpleWeb.RunLive.RunHelpers
alias Purple.Activities
alias PurpleWeb.Markdown
defp page_title(:show), do: "Show Run"
defp page_title(:edit), do: "Edit Run"
@impl Phoenix.LiveView
def handle_params(%{"id" => id}, _, socket) do
r... | 26.541176 | 97 | 0.515514 |
7319c25d52c54fb5991541235351e584cd026d08 | 1,473 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/team_drive_info.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/team_drive_info.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/team_drive_info.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... | 30.6875 | 109 | 0.726409 |
7319cd74977da9a31f5b0ffed76e1c5165fc5575 | 1,439 | ex | Elixir | lib/phoenix_live_view_collection_web/telemetry.ex | leandrocp/phoenix_live_view_collection | 24767709c198f60a84a4a9384ca06857569802e8 | [
"MIT"
] | 5 | 2022-02-11T19:51:00.000Z | 2022-03-05T08:28:39.000Z | lib/phoenix_live_view_collection_web/telemetry.ex | craft-ex/phoenix_live_view_collection | e0e05e6a5008dcd66d6121c54ec879b1d283c48a | [
"MIT"
] | 2 | 2022-02-12T12:31:23.000Z | 2022-02-18T20:13:22.000Z | lib/phoenix_live_view_collection_web/telemetry.ex | craft-ex/phoenix_live_view_collection | e0e05e6a5008dcd66d6121c54ec879b1d283c48a | [
"MIT"
] | 2 | 2022-02-11T20:14:33.000Z | 2022-03-05T08:28:49.000Z | defmodule LiveViewCollectionWeb.Telemetry do
@moduledoc false
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
... | 28.78 | 86 | 0.676164 |
7319fee196aff3629b4800fa73b0a204817da367 | 1,512 | ex | Elixir | farmbot_ext/lib/farmbot_ext/api/preloader.ex | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | farmbot_ext/lib/farmbot_ext/api/preloader.ex | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | farmbot_ext/lib/farmbot_ext/api/preloader.ex | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | defmodule FarmbotExt.API.Preloader do
@moduledoc """
Task to ensure download and insert or cache
all resources stored in the API.
"""
alias Ecto.Changeset
require FarmbotCore.Logger
alias FarmbotExt.API
alias FarmbotExt.API.{Reconciler, SyncGroup}
alias FarmbotCore.Asset.Sync
@doc """
Syncrono... | 32.869565 | 98 | 0.687831 |
731a0ad511f41b8c05c3e8ae30e914792efd8edd | 254 | exs | Elixir | config/config.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | null | null | null | config/config.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | null | null | null | config/config.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :floki, :html_parser, Floki.HTMLParser.Html5ever
config :tesla, adapter: Tesla.Adapter.Hackney
if File.exists?("config/#{Mix.env()}.exs") do
IO.puts "exists"
IO.puts "#{Mix.env()}.exs"
import_config "#{Mix.env()}.exs"
end
| 19.538462 | 55 | 0.692913 |
731a0b6fd936af4eb110e7b1d910d73cddcebe86 | 1,674 | exs | Elixir | test/attachments_test.exs | bombinatetech/mailman | 7b69db23273c2de6c836ac187e191f145f346845 | [
"MIT"
] | null | null | null | test/attachments_test.exs | bombinatetech/mailman | 7b69db23273c2de6c836ac187e191f145f346845 | [
"MIT"
] | null | null | null | test/attachments_test.exs | bombinatetech/mailman | 7b69db23273c2de6c836ac187e191f145f346845 | [
"MIT"
] | null | null | null | defmodule AttachmentsTest do
use ExUnit.Case, async: true
test "#inline returns { :ok, attachment } when file exists" do
{ :ok, attachment } = Mailman.Attachment.inline("test/data/blank.png")
assert is_map(attachment)
end
test "#inline returns {:error, message} when file doesn't exist" do
file_pat... | 41.85 | 134 | 0.729988 |
731a26ac06cf82f0882e4ebfc5d291f4f9b7386e | 574 | exs | Elixir | code/macros/eg1.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/macros/eg1.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/macros/eg1.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 30.210526 | 85 | 0.733449 |
731a6e5ddc65fc2869a233040691af723b989ef1 | 2,926 | ex | Elixir | lib/bitcoin_simulator/bitcoin_core.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | 1 | 2021-12-16T08:31:24.000Z | 2021-12-16T08:31:24.000Z | lib/bitcoin_simulator/bitcoin_core.ex | hojason117/BitcoinSimulator | f85e623eec1923a2c0d418388f440cc06b6a5283 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator/bitcoin_core.ex | hojason117/BitcoinSimulator | f85e623eec1923a2c0d418388f440cc06b6a5283 | [
"MIT"
] | null | null | null | defmodule BitcoinSimulator.BitcoinCore do
alias BitcoinSimulator.BitcoinCore.{Blockchain, Mining, Network, RawTransaction, Wallet}
# Block Chain
def get_new_blockchain, do: Blockchain.get_new_blockchain()
def get_best_block_hash(blockchain), do: Blockchain.get_best_block_hash(blockchain)
def block_header... | 37.512821 | 135 | 0.79836 |
731a72ec964df31941951b23de19a428e58e9d43 | 741 | exs | Elixir | iex.exs | felix-starman/dotfiles | 708172e11c82c9c6feb6ec02beeefbb7c864f655 | [
"CC0-1.0"
] | 2 | 2020-11-02T17:23:09.000Z | 2020-11-02T23:20:21.000Z | iex.exs | felix-starman/dotfiles | 708172e11c82c9c6feb6ec02beeefbb7c864f655 | [
"CC0-1.0"
] | 1 | 2021-03-26T16:04:50.000Z | 2021-03-26T16:04:50.000Z | iex.exs | felix-starman/dotfiles | 708172e11c82c9c6feb6ec02beeefbb7c864f655 | [
"CC0-1.0"
] | null | null | null | # IEx.configure colors: [enabled: true]
# IEx.configure colors: [ eval_result: [ :cyan, :bright ] ]
IO.puts IO.ANSI.magenta_background() <> IO.ANSI.white() <> " ❄❄❄ All things serve the BEAM ❄❄❄ " <> IO.ANSI.reset
Application.put_env(:elixir, :ansi_enabled, true)
IEx.configure(
colors: [
eval_result: [:green, :brig... | 28.5 | 113 | 0.558704 |
731a9805869cd5417a3840091aab8d229310e9c2 | 655 | ex | Elixir | lib/excheck/generator.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | lib/excheck/generator.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | lib/excheck/generator.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | defmodule ExCheck.Generator do
@moduledoc """
Provides macros for generators.
"""
defmacro __using__(_opts \\ []) do
quote do
# Import generators defined in :triq minus redefined ones.
import :triq_dom, except: [atom: 0], only: :functions
import ExCheck.Generator
end
end
@doc """... | 20.46875 | 68 | 0.627481 |
731ac2dcb62b2baddb73a879ef4f269c7043fcf0 | 2,166 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/crypto_hash_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/crypto_hash_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/crypto_hash_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... | 43.32 | 304 | 0.753463 |
731ac5ef748e741ab705956c3cf0090c2e982fca | 11,415 | ex | Elixir | lib/plaid/sandbox.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | lib/plaid/sandbox.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | lib/plaid/sandbox.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.Sandbox do
@moduledoc """
[Plaid Sandbox API](https://plaid.com/docs/api/sandbox/) calls and schema.
> Only used for sandbox testing purposes. None of these calls will work in `development` or `production`.
🏗 I haven'tyet tested the `bank_transfer` endpoints against the actual plaid API becau... | 31.273973 | 159 | 0.665353 |
731b049ef7caea30df070b9f337d1d4820a3f16e | 136 | ex | Elixir | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/BlockItemCommentStab.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/BlockItemCommentStab.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/BlockItemCommentStab.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | try do
catch
# A user could create an error that looks like a builtin one
# causing an error.
:error, _ ->
inspect(reason)
end | 19.428571 | 62 | 0.683824 |
731b0cc165e369322faa8acc535290c818b455f4 | 1,174 | ex | Elixir | lib/asciinema/file_store/local.ex | acloudiator/asciinema-server | f0afa4cb4312822f5dd56008b0c5ec9c7a410f85 | [
"Apache-2.0"
] | 1 | 2021-07-07T12:36:10.000Z | 2021-07-07T12:36:10.000Z | lib/asciinema/file_store/local.ex | acloudiator/asciinema-server | f0afa4cb4312822f5dd56008b0c5ec9c7a410f85 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/file_store/local.ex | acloudiator/asciinema-server | f0afa4cb4312822f5dd56008b0c5ec9c7a410f85 | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.FileStore.Local do
use Asciinema.FileStore
import Plug.Conn
def put_file(dst_path, src_local_path, _content_type, _compress \\ false) do
full_dst_path = base_path() <> dst_path
parent_dir = Path.dirname(full_dst_path)
with :ok <- File.mkdir_p(parent_dir),
{:ok, _} <- Fil... | 23.959184 | 81 | 0.672913 |
731b1785e754ca5fa7151d29d97cba670f181f64 | 1,594 | exs | Elixir | mix.exs | primait/bridge_ex | 92c9322b105aba21a708588a1e0e02cc4c37c9ca | [
"MIT"
] | null | null | null | mix.exs | primait/bridge_ex | 92c9322b105aba21a708588a1e0e02cc4c37c9ca | [
"MIT"
] | 18 | 2022-01-17T09:13:27.000Z | 2022-03-28T13:39:51.000Z | mix.exs | primait/bridge_ex | 92c9322b105aba21a708588a1e0e02cc4c37c9ca | [
"MIT"
] | null | null | null | defmodule BridgeEx.MixProject do
use Mix.Project
@source_url "https://github.com/primait/bridge_ex"
@version "0.3.0-rc.2"
def project do
[
app: :bridge_ex,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
... | 23.791045 | 80 | 0.543915 |
731b49f33a96f1c7f052b6fba48adc8c475be173 | 6,863 | ex | Elixir | lib/teslamate/api.ex | SergioRius/teslamate | 747400f6b12c660c6ffad8a941eb27ada7d61c18 | [
"MIT"
] | null | null | null | lib/teslamate/api.ex | SergioRius/teslamate | 747400f6b12c660c6ffad8a941eb27ada7d61c18 | [
"MIT"
] | null | null | null | lib/teslamate/api.ex | SergioRius/teslamate | 747400f6b12c660c6ffad8a941eb27ada7d61c18 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Api do
use GenServer
require Logger
alias TeslaMate.Auth.{Tokens, Credentials}
alias TeslaMate.{Vehicles, Convert}
alias TeslaApi.Auth
alias Finch.Response
import Core.Dependency, only: [call: 3, call: 2]
defstruct name: nil, deps: %{}
alias __MODULE__, as: State
@name __MO... | 27.342629 | 94 | 0.602943 |
731b87cdc9a428b5d197b98e8b66cdee527e5e12 | 1,669 | exs | Elixir | priv/repo/seeds.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 15 | 2015-09-23T16:03:28.000Z | 2018-12-04T21:48:04.000Z | priv/repo/seeds.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 27 | 2016-01-12T16:44:31.000Z | 2017-10-13T16:09:36.000Z | priv/repo/seeds.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 4 | 2016-09-01T12:08:24.000Z | 2017-09-21T15:07:57.000Z | # 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:
#
# SlackCoder.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail ... | 39.738095 | 92 | 0.740563 |
731b8af000817c910b44f933d99de5e50586dc20 | 1,704 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/refresh_sheets_chart_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/refresh_sheets_chart_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/refresh_sheets_chart_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 35.5 | 247 | 0.756455 |
731b9535987012ec4292fd2e8f3c9c34f821af81 | 974 | ex | Elixir | lib/pkg_deb.ex | sblaisot/pkg_deb | a9ec11fa119d6005d935c1b629960c9697864d27 | [
"MIT"
] | null | null | null | lib/pkg_deb.ex | sblaisot/pkg_deb | a9ec11fa119d6005d935c1b629960c9697864d27 | [
"MIT"
] | 12 | 2020-07-18T10:38:53.000Z | 2022-03-24T04:04:12.000Z | lib/pkg_deb.ex | sblaisot/pkg_deb | a9ec11fa119d6005d935c1b629960c9697864d27 | [
"MIT"
] | 1 | 2020-11-28T21:08:54.000Z | 2020-11-28T21:08:54.000Z | defmodule PkgDeb do
@moduledoc """
Documentation for PkgDeb.
"""
alias PkgDeb.Format.{Control, Data, Package}
@doc """
Receives an Mix.Release struct and creates a .deb file.
"""
def create(%Mix.Release{} = release, config) when is_list(config) do
{:ok, package_config} = PkgDeb.Format.Config.build... | 21.644444 | 78 | 0.635524 |
731bd8ce06ba15f1b8526ea3c6a69ab234ba9f20 | 2,261 | exs | Elixir | rel/config.exs | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | rel/config.exs | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | rel/config.exs | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# This ... | 25.988506 | 79 | 0.689076 |
731bddeca200fa73b11271d6549ae58e24826f98 | 2,020 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_string_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_string_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_string_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.237288 | 120 | 0.694059 |
731c0d958f0e0314bd56dd0c00fb9379810df3e8 | 490 | ex | Elixir | lib/web/controllers/class_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/class_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/class_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.ClassController do
use Web, :controller
alias Web.Class
def index(conn, _params) do
classes = Class.all(alpha: true)
conn
|> assign(:classes, classes)
|> render(:index)
end
def show(conn, %{"id" => id}) do
case Class.get(id) do
nil ->
conn |> redirect(to: pu... | 18.148148 | 60 | 0.567347 |
731c131c0efc8c52ede22ad7b28760199f8469b9 | 1,183 | exs | Elixir | mix.exs | jcartwright/rally_api | fdcea7d2a40c7d9c0e392d6836693f5a9a9677a9 | [
"MIT"
] | null | null | null | mix.exs | jcartwright/rally_api | fdcea7d2a40c7d9c0e392d6836693f5a9a9677a9 | [
"MIT"
] | 11 | 2016-08-31T03:29:31.000Z | 2016-09-02T22:00:05.000Z | mix.exs | jcartwright/rally_api | fdcea7d2a40c7d9c0e392d6836693f5a9a9677a9 | [
"MIT"
] | null | null | null | defmodule RallyApi.Mixfile do
use Mix.Project
@description """
A toolkit wrapping Rally's REST webservice for Elixir
"""
def project do
[app: :rally_api,
version: "0.1.0",
elixir: "~> 1.3",
name: "RallyRestToolkitForElixir",
description: @description,
package: package(),
bu... | 24.142857 | 77 | 0.606086 |
731c20a252255ee7d068f9082a852f66cfab16d7 | 7,906 | ex | Elixir | apps/engine/lib/engine/db/transaction.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/lib/engine/db/transaction.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/lib/engine/db/transaction.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.DB.Transaction do
@moduledoc """
The Transaction record. This is one of the main entry points for the system, specifically accepting
transactions into the Childchain as `tx_bytes`. This expands those bytes into:
* `tx_bytes` - A binary of a transaction encoded by RLP.
* `inputs` - The output... | 34.828194 | 123 | 0.675183 |
731c717c14529d92c27252778427af850d5310d2 | 349 | ex | Elixir | lib/todo/resource/users/friends.ex | bbassett/todo | 2b3a2b8c7663e3d32491603bee2de63446994f5c | [
"MIT"
] | null | null | null | lib/todo/resource/users/friends.ex | bbassett/todo | 2b3a2b8c7663e3d32491603bee2de63446994f5c | [
"MIT"
] | null | null | null | lib/todo/resource/users/friends.ex | bbassett/todo | 2b3a2b8c7663e3d32491603bee2de63446994f5c | [
"MIT"
] | null | null | null | defmodule Todo.Resource.Users.Friends do
use Mazurka.Resource
param user do
value
end
let friends = User.find_friends(user)
mediatype Mazurka.Mediatype.Hyperjson do
action do
%{
"collection" => for friend <- friends do
link_to(Todo.Resource.Users.Read, user: friend)
... | 18.368421 | 57 | 0.641834 |
731c78f7857b4a3fc39a856a9e3bdc67e978207d | 2,144 | ex | Elixir | lib/espec/configuration.ex | andrei-mihaila/espec | ffab88aa987bd446e9c44fe38d73cfe6b789f80b | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | lib/espec/configuration.ex | andrei-mihaila/espec | ffab88aa987bd446e9c44fe38d73cfe6b789f80b | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | lib/espec/configuration.ex | andrei-mihaila/espec | ffab88aa987bd446e9c44fe38d73cfe6b789f80b | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule ESpec.Configuration do
@moduledoc """
Handles ESpec configurations.
@list contains all available keys in config.
"""
@list [
hello: "Description",
before: "Defines before hook",
finally: "Defines finally hook",
silent: "No output",
file_opts: "Run the specific file or spec in the... | 32 | 113 | 0.680504 |
731c8b19846088dd3b96e8d32fe8017250fe8a13 | 1,630 | ex | Elixir | lib/ex_oneroster/web/controllers/academic_session_controller.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | lib/ex_oneroster/web/controllers/academic_session_controller.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | lib/ex_oneroster/web/controllers/academic_session_controller.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.Web.AcademicSessionController do
use ExOneroster.Web, :controller
alias ExOneroster.AcademicSessions
alias ExOneroster.AcademicSessions.AcademicSession
action_fallback ExOneroster.Web.FallbackController
def index(conn, _params) do
academic_sessions = AcademicSessions.list_academic... | 37.906977 | 143 | 0.750307 |
731c925be9ac3e9836444bcce9a59384277c288a | 5,023 | ex | Elixir | lib/membrane/rtp/payload_format.ex | membraneframework/membrane_rtp_format | f3749da8e552dce1dc7ad7f24ed0708609ea84a2 | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtp/payload_format.ex | membraneframework/membrane_rtp_format | f3749da8e552dce1dc7ad7f24ed0708609ea84a2 | [
"Apache-2.0"
] | 3 | 2020-11-20T16:19:42.000Z | 2021-05-21T07:40:32.000Z | lib/membrane/rtp/payload_format.ex | membraneframework/membrane_rtp_format | f3749da8e552dce1dc7ad7f24ed0708609ea84a2 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTP.PayloadFormat do
@moduledoc """
This module contains utilities for resolving RTP default payload types,
encoding names, clock rates and (de)payloaders.
"""
alias Membrane.RTP
require Membrane.RTP
@app :membrane_rtp_format
@format_env :__membrane_format
@pt_env :__membrane_pay... | 34.881944 | 95 | 0.667728 |
731ca15494b86b9a63ac2de0321ad28419a11e03 | 118 | exs | Elixir | test/tetris_test.exs | pkhodakovsky/elixir-tetris-game | 90b4cf9b012e835eab370177b2dc532c6632ce17 | [
"MIT"
] | null | null | null | test/tetris_test.exs | pkhodakovsky/elixir-tetris-game | 90b4cf9b012e835eab370177b2dc532c6632ce17 | [
"MIT"
] | null | null | null | test/tetris_test.exs | pkhodakovsky/elixir-tetris-game | 90b4cf9b012e835eab370177b2dc532c6632ce17 | [
"MIT"
] | null | null | null | defmodule TetrisTest do
use ExUnit.Case
test "greets the world" do
assert Tetris.hello() == :world
end
end
| 14.75 | 35 | 0.694915 |
731cda730c9389108f8e59043b14aac968cf4d8e | 1,497 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/chart_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/chart_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/chart_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.851064 | 127 | 0.740147 |
731cdf2788932b8e672f0ec57e05e40cf5e04cd0 | 387 | ex | Elixir | lib/cineplex_web/plugs/health.ex | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | lib/cineplex_web/plugs/health.ex | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | lib/cineplex_web/plugs/health.ex | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | defmodule CineplexWeb.Plugs.Health do
import Plug.Conn
@spec init(any()) :: any()
def init(options), do: options
@spec call(Plug.Conn.t(), any()) :: Plug.Conn.t()
def call(%{request_path: "/health"} = conn, _opts) do
Appsignal.Transaction.set_action("GET /health")
conn
|> send_resp(:ok, "we're ... | 21.5 | 55 | 0.627907 |
731d0d78101a7d71f120593f1e16eb8a73bf7360 | 2,015 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1/model/filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.018868 | 136 | 0.733499 |
731d26d90ec36bf39a42e9cb2d68b84adc4f35ee | 1,119 | exs | Elixir | config/config.exs | slickcoach/filesize | 6f6a6bdd2a1ac75e0b5b2c408f7bac35a1919b98 | [
"MIT"
] | null | null | null | config/config.exs | slickcoach/filesize | 6f6a6bdd2a1ac75e0b5b2c408f7bac35a1919b98 | [
"MIT"
] | null | null | null | config/config.exs | slickcoach/filesize | 6f6a6bdd2a1ac75e0b5b2c408f7bac35a1919b98 | [
"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.096774 | 73 | 0.751564 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.