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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
daa458ac6fa9217db508557ac29dd45636d9599a | 4,187 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/detail.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/v1alpha1/model/detail.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/v1alpha1/model/detail.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... | 53.679487 | 277 | 0.710533 |
daa461d7553a1e0a55af9e4f34df6af9f0eeafa9 | 372 | ex | Elixir | test/support/test_commands/bad_template.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/support/test_commands/bad_template.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/support/test_commands/bad_template.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Support.TestCommands.BadTemplate do
use Cog.Command.GenCommand.Base, bundle: Cog.Util.Misc.embedded_bundle, name: "bad-template"
@description "description"
rule "when command is #{Cog.Util.Misc.embedded_bundle}:bad-template allow"
def handle_message(req, state) do
{:reply, req.reply_to, "ba... | 31 | 94 | 0.733871 |
daa462431aca4da60eb0bff433992967c86aad2a | 390 | ex | Elixir | lib/gcp/secret_manager/application.ex | sdipendra/gcp-secret-manager | b508f74d95fba8bf525430de410f50cb7b268134 | [
"Apache-2.0"
] | null | null | null | lib/gcp/secret_manager/application.ex | sdipendra/gcp-secret-manager | b508f74d95fba8bf525430de410f50cb7b268134 | [
"Apache-2.0"
] | null | null | null | lib/gcp/secret_manager/application.ex | sdipendra/gcp-secret-manager | b508f74d95fba8bf525430de410f50cb7b268134 | [
"Apache-2.0"
] | null | null | null | defmodule GCP.SecretManager.Application do
@moduledoc false
use Application
require Logger
def start(type, args) do
Logger.debug("start called!")
Logger.debug("type: #{inspect type}")
Logger.debug("args: #{inspect args}")
children = [
{GCP.SecretManager, name: GCP.SecretManager}
]
... | 20.526316 | 59 | 0.687179 |
daa47b0424aa0e256b05d8a709ef3fbe6e458695 | 2,000 | ex | Elixir | lib/absinthe/phase/schema/validation/default_enum_value_present.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | lib/absinthe/phase/schema/validation/default_enum_value_present.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-09-23T21:26:01.000Z | 2019-09-23T21:26:01.000Z | lib/absinthe/phase/schema/validation/default_enum_value_present.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Schema.Validation.DefaultEnumValuePresent do
use Absinthe.Phase
alias Absinthe.Blueprint
alias Absinthe.Blueprint.Schema
def run(blueprint, _opts) do
blueprint = Blueprint.prewalk(blueprint, &validate_schema/1)
{:ok, blueprint}
end
def validate_schema(%Schema.SchemaDefini... | 24.096386 | 89 | 0.6295 |
daa48415410b0dda2a5a7990e4c4fb1791d08d7b | 2,832 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_guaranteed_fixed_price_terms_billing_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_guaranteed_fixed_price_terms_billing_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_guaranteed_fixed_price_terms_billing_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.42623 | 363 | 0.751059 |
daa4d1af4f925f0601a98fbff539b2e29bc4abc4 | 5,752 | ex | Elixir | lib/sftp_client/operations/connect.ex | kianmeng/sftp_client | 109734b0d28d787554379666bfb6205c18dc2e00 | [
"MIT"
] | 21 | 2019-08-06T01:39:15.000Z | 2021-04-15T20:08:04.000Z | lib/sftp_client/operations/connect.ex | kianmeng/sftp_client | 109734b0d28d787554379666bfb6205c18dc2e00 | [
"MIT"
] | 19 | 2019-07-10T17:10:34.000Z | 2021-04-18T11:16:58.000Z | lib/sftp_client/operations/connect.ex | kianmeng/sftp_client | 109734b0d28d787554379666bfb6205c18dc2e00 | [
"MIT"
] | 11 | 2019-07-04T14:56:37.000Z | 2021-04-26T19:09:22.000Z | defmodule SFTPClient.Operations.Connect do
@moduledoc """
A module containing operations to connect to an SSH/SFTP server.
"""
import SFTPClient.OperationUtil
alias SFTPClient.Config
alias SFTPClient.Conn
alias SFTPClient.InvalidOptionError
alias SFTPClient.Operations.Disconnect
@doc """
Connects... | 28.76 | 80 | 0.63717 |
daa4ee97f3901988a641bd3d5ec3a0ab8922b69c | 145 | ex | Elixir | lib/brando_instagram/gettext.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | 1 | 2020-01-13T23:43:55.000Z | 2020-01-13T23:43:55.000Z | lib/brando_instagram/gettext.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | 8 | 2016-06-12T15:18:56.000Z | 2018-11-15T12:11:22.000Z | lib/brando_instagram/gettext.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | null | null | null | defmodule Brando.Instagram.Gettext do
@moduledoc """
Brando Instagram backend's gettext.
"""
use Gettext, otp_app: :brando_instagram
end
| 20.714286 | 41 | 0.744828 |
daa4f2eb77634e1f0ccbae18d09e7808f1ff20d3 | 1,829 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_create_dataset_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_create_dataset_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_create_dataset_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... | 34.509434 | 161 | 0.768726 |
daa4ffe05064501c7cf65deb2636fbc0d4a68e9b | 2,209 | ex | Elixir | lib/mix/bors.cleanup.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1 | 2020-09-05T11:41:59.000Z | 2020-09-05T11:41:59.000Z | lib/mix/bors.cleanup.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 15 | 2020-12-11T03:57:12.000Z | 2022-03-27T16:46:53.000Z | lib/mix/bors.cleanup.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1 | 2020-04-01T13:34:19.000Z | 2020-04-01T13:34:19.000Z | defmodule Mix.Tasks.Bors.Cleanup do
use Mix.Task
import Mix.Ecto
import Ecto.Query
@shortdoc "Prune old batches and patches"
@moduledoc """
Delete old batches and patches from the database.
Old patches and batches which are done processing generally are not
useful to keep around. Deleting them regula... | 30.260274 | 98 | 0.598008 |
daa50e4216abeb61d7ae192450b1a60856274f3f | 112 | exs | Elixir | test/sugar/templates/supervisor_test.exs | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 7 | 2016-01-28T13:31:07.000Z | 2021-01-30T06:20:08.000Z | test/sugar/templates/supervisor_test.exs | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 3 | 2015-05-08T07:05:17.000Z | 2015-08-23T19:03:33.000Z | test/sugar/templates/supervisor_test.exs | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 8 | 2015-05-08T06:31:46.000Z | 2019-05-30T19:56:18.000Z | defmodule Sugar.Templates.SupervisorTest do
use ExUnit.Case
test "the truth" do
assert(true)
end
end
| 14 | 43 | 0.732143 |
daa5340de2f21adc686e8dfb32f53ad3929b21da | 2,889 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_slo_exclusion.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_slo_exclusion.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_slo_exclusion.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.857143 | 539 | 0.739702 |
daa57dd72daa0b4cd24ce6a5fa59aa9b80b591ad | 1,481 | exs | Elixir | priv/repo/migrations/20210624163650_client_telemetry.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | priv/repo/migrations/20210624163650_client_telemetry.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | priv/repo/migrations/20210624163650_client_telemetry.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.Repo.Migrations.ClientEvent do
use Ecto.Migration
def change do
create table(:teiserver_telemetry_property_types) do
add :name, :string
end
create table(:teiserver_telemetry_event_types) do
add :name, :string
end
create table(:teiserver_telemetry_unauth_propertie... | 32.195652 | 116 | 0.728562 |
daa5a6803518b785c4b89ec23deeccce3e1a9f78 | 2,772 | ex | Elixir | lib/credo/cli/command/gen.check.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/cli/command/gen.check.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/cli/command/gen.check.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Command.GenCheck do
use Credo.CLI.Command
@shortdoc "Create a new custom check"
@check_template_filename ".template.check.ex"
@default_check_template_file File.read!(@check_template_filename)
def run(args, _config) do
args
|> List.first
|> create_check_file
end
defp cre... | 31.146067 | 109 | 0.615079 |
daa5d75446dc9f946e538fd093b77aec242edece | 278 | ex | Elixir | lib/collectable.ex | joekain/BlockingQueue | e1672dbc2f50110d10c841f96ddd680091ecb199 | [
"MIT"
] | 53 | 2015-06-14T11:16:12.000Z | 2021-10-04T18:15:32.000Z | lib/collectable.ex | joekain/BlockingQueue | e1672dbc2f50110d10c841f96ddd680091ecb199 | [
"MIT"
] | 12 | 2015-06-14T13:01:10.000Z | 2019-02-09T00:47:24.000Z | lib/collectable.ex | joekain/BlockingQueue | e1672dbc2f50110d10c841f96ddd680091ecb199 | [
"MIT"
] | 17 | 2015-06-14T10:26:34.000Z | 2020-10-24T21:26:42.000Z | defimpl Collectable, for: BlockingQueue do
def into(%BlockingQueue{pid: pid}), do: {nil, &into(pid, &1, &2) }
defp into(pid, _, {:cont, item}), do: BlockingQueue.push(pid, item)
defp into(pid, _, :done), do: %BlockingQueue{pid: pid}
defp into(_, _, :halt), do: :ok
end
| 34.75 | 69 | 0.647482 |
daa5ea3fd91c852c2e5b57b9dd3bbdc1668f15cd | 665 | ex | Elixir | lib/jeff_bank_web/views/contas_view.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | lib/jeff_bank_web/views/contas_view.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | lib/jeff_bank_web/views/contas_view.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | defmodule JeffBankWeb.ContasView do
use JeffBankWeb, :view
alias JeffBank.Conta
def render("create.json", %{
conta: %Conta{
id: id,
cpf: cpf,
nome: nome,
sobrenome: sobrenome,
saldo: saldo,
inserted_at: inserted_at,
updated_at: update... | 18.472222 | 46 | 0.536842 |
daa5f4b1d7160257867410f6450e1be0d7b00d90 | 790 | exs | Elixir | mix.exs | NAndreasson/web_crawler | 1d70622c86d388834a5ece8325c53be638b47be7 | [
"MIT"
] | 2 | 2015-06-24T15:33:30.000Z | 2016-09-26T16:20:16.000Z | mix.exs | NAndreasson/web_crawler | 1d70622c86d388834a5ece8325c53be638b47be7 | [
"MIT"
] | null | null | null | mix.exs | NAndreasson/web_crawler | 1d70622c86d388834a5ece8325c53be638b47be7 | [
"MIT"
] | null | null | null | defmodule WebCrawler.Mixfile do
use Mix.Project
def project do
[app: :web_crawler,
version: "0.0.1",
elixir: "~> 0.14.3",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [ :mochiweb_xpat... | 22.571429 | 75 | 0.616456 |
daa616e368f8a46f81dc0f702e02158e25327a44 | 4,370 | exs | Elixir | test/unit/hologram/template/encoders/element_node_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/template/encoders/element_node_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/template/encoders/element_node_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Template.Encoder.ElementNodeTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.IR.{StringType, TupleType}
alias Hologram.Template.VDOM.{ElementNode, Expression, TextNode}
alias Hologram.Template.Encoder
test "not attrs, no children" do
result =
%ElementNode{... | 28.193548 | 153 | 0.539817 |
daa63b2ed8916e03d99bbed9fba5b9d00318e84c | 10,145 | exs | Elixir | test/codewar/competition/competitions_test.exs | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 2 | 2021-06-29T02:22:28.000Z | 2022-02-15T06:32:15.000Z | test/codewar/competition/competitions_test.exs | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 14 | 2021-05-06T04:27:19.000Z | 2021-08-24T11:15:33.000Z | test/codewar/competition/competitions_test.exs | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 1 | 2021-08-20T07:50:19.000Z | 2021-08-20T07:50:19.000Z | defmodule Codewar.Competition.SessionsTest do
use Codewar.DataCase, async: true
alias Codewar.Competition.Competitions
alias Codewar.Competition.Schemas.Answer
alias Codewar.Competition.Schemas.Challenge
alias Codewar.Competition.Schemas.Session
describe "list_sessions/0" do
test "returns all sessions... | 34.043624 | 100 | 0.698374 |
daa650f40b9124ce26d5d8f4faef1ad6ff1479eb | 2,904 | ex | Elixir | lib/livebook_web/live/session_live/cell_upload_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/cell_upload_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/cell_upload_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.CellUploadComponent do
use LivebookWeb, :live_component
alias Livebook.Session
@impl true
def mount(socket) do
{:ok, assign(socket, name: "")}
end
@impl true
def render(assigns) do
~H"""
<div class="p-6 pb-4 flex flex-col space-y-8">
<h3 class="text-2... | 32.629213 | 103 | 0.561295 |
daa65b564fc9bfc514d32e0a0d31dbb5852e8fc8 | 903 | ex | Elixir | test/support/conn_case.ex | iboard/phxserver2server | 8c8d31be87dabdf846469492525d7bf6a61bccdd | [
"MIT"
] | null | null | null | test/support/conn_case.ex | iboard/phxserver2server | 8c8d31be87dabdf846469492525d7bf6a61bccdd | [
"MIT"
] | null | null | null | test/support/conn_case.ex | iboard/phxserver2server | 8c8d31be87dabdf846469492525d7bf6a61bccdd | [
"MIT"
] | null | null | null | defmodule Server2serverWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally,... | 27.363636 | 59 | 0.734219 |
daa65e751e07c9c47dde0b9d700b188fe66bd01a | 3,855 | ex | Elixir | deps/plug/lib/plug/test.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/plug/lib/plug/test.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/plug/lib/plug/test.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Plug.Test do
@moduledoc """
Conveniences for testing plugs.
This module can be used in your test cases, like this:
use ExUnit.Case, async: true
use Plug.Test
Using this module will:
* import all the functions from this module
* import all the functions from the `Plug.Conn` modu... | 30.354331 | 84 | 0.661997 |
daa68c9b488ba954e5c5a33fe33620fe529097e6 | 3,471 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/consent_artifact.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/consent_artifact.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/consent_artifact.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... | 51.044118 | 281 | 0.719389 |
daa698785ebc094864575bb5960955e96aba8897 | 1,253 | ex | Elixir | lib/mario_agent.ex | adz/cowboy_sockets_with_elm_experiment | 39370908233df8ad64b6347cd5c78c85e2cb6d71 | [
"MIT"
] | null | null | null | lib/mario_agent.ex | adz/cowboy_sockets_with_elm_experiment | 39370908233df8ad64b6347cd5c78c85e2cb6d71 | [
"MIT"
] | null | null | null | lib/mario_agent.ex | adz/cowboy_sockets_with_elm_experiment | 39370908233df8ad64b6347cd5c78c85e2cb6d71 | [
"MIT"
] | null | null | null | defmodule MarioAgent do
use Agent
def start_link(_opts) do
Agent.start_link(fn -> %{} end, name: __MODULE__)
end
# Mario comes in with dx/dy for x/y
def set(who, mario) do
Agent.update(
__MODULE__,
fn state ->
IO.puts("1")
oldMario =
state[who]
|> IO.... | 21.237288 | 98 | 0.531524 |
daa69e61ac689d505cedfa6ae2a81eb1ef743526 | 1,266 | ex | Elixir | apps/streamer/lib/streamer/dynamic_streamer_supervisor.ex | drobban/bottle | 57a502e765a65d635f48ec6d6cbfae1e87dfea75 | [
"Unlicense"
] | null | null | null | apps/streamer/lib/streamer/dynamic_streamer_supervisor.ex | drobban/bottle | 57a502e765a65d635f48ec6d6cbfae1e87dfea75 | [
"Unlicense"
] | null | null | null | apps/streamer/lib/streamer/dynamic_streamer_supervisor.ex | drobban/bottle | 57a502e765a65d635f48ec6d6cbfae1e87dfea75 | [
"Unlicense"
] | null | null | null | defmodule Streamer.DynamicStreamerSupervisor do
use DynamicSupervisor
require Logger
def start_link(init_arg) do
DynamicSupervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
def init(_init_arg) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def start_streaming(symbol) when i... | 21.457627 | 72 | 0.64297 |
daa6bb53a5d550307247958327159ac751f1e6c9 | 1,712 | exs | Elixir | apps/engine/priv/repo/migrations/20200326103841_create_blocks_table.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/priv/repo/migrations/20200326103841_create_blocks_table.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/priv/repo/migrations/20200326103841_create_blocks_table.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Repo.Migrations.CreateBlocksTable do
use Ecto.Migration
def change do
create table(:blocks) do
# keccak hash of transactions
add(:hash, :binary)
# blocks state: forming, finalizing, pending_submission, submitted, confirmed
add(:state, :string, null: false)
# trans... | 38.044444 | 106 | 0.672313 |
daa75f3855a735422d2e5819c3e1906e55b76743 | 2,325 | ex | Elixir | core/config/core.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/config/core.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/config/core.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Config.Core do
alias Croma.Result, as: R
alias Antikythera.SecondsSinceEpoch
alias Antikythera.Crypto.Aes
alias AntikytheraCore.Path, as: CorePath
alias AntikytheraCore.Ets.ConfigCache
alias AntikytheraCore.... | 31.849315 | 123 | 0.670108 |
daa778aa42a5f08b3eef95f9a75bfe59c9f5db64 | 2,781 | ex | Elixir | day16/lib/day16.ex | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 10 | 2021-12-01T08:49:00.000Z | 2022-03-24T13:24:50.000Z | day16/lib/day16.ex | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | null | null | null | day16/lib/day16.ex | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 1 | 2021-12-16T07:09:11.000Z | 2021-12-16T07:09:11.000Z | defmodule Day16 do
def part1(input) do
bin = parse(input)
{packet, _} = decode_packet(bin)
version_sum(packet, 0)
end
def part2(input) do
bin = parse(input)
{packet, _} = decode_packet(bin)
eval_packet(packet)
end
defp version_sum({version, :literal, _}, sum) do
sum + version
e... | 26.235849 | 71 | 0.578569 |
daa786833cab7001660101b934f39c6fafc69aa5 | 13,584 | ex | Elixir | lib/kaffy/resource_form.ex | santiment/kaffy | e790a98aa03aca8422097446b4cea1966b358047 | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | santiment/kaffy | e790a98aa03aca8422097446b4cea1966b358047 | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | santiment/kaffy | e790a98aa03aca8422097446b4cea1966b358047 | [
"MIT"
] | null | null | null | defmodule Kaffy.ResourceForm do
use Phoenix.HTML
def form_label_string({field, options}), do: Map.get(options, :label, field)
def form_label_string(field) when is_atom(field), do: field
def form_label(form, field) do
label_text = form_label_string(field)
label(form, label_text)
end
def form_help_... | 31.155963 | 99 | 0.56088 |
daa79e28ef09b83f0fc775d7b0a07372a90dc972 | 2,305 | exs | Elixir | mix.exs | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | 16 | 2019-03-18T12:46:38.000Z | 2020-10-14T09:30:52.000Z | mix.exs | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | null | null | null | mix.exs | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | 1 | 2019-04-30T21:26:28.000Z | 2019-04-30T21:26:28.000Z | defmodule ExVertx.MixProject do
use Mix.Project
@version "1.0.0"
def project do
[
app: :ex_vertx,
elixir: "~> 1.8",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
... | 24.521277 | 73 | 0.527115 |
daa7ad9679cf3f1778054d4952c210353f48ae34 | 3,171 | ex | Elixir | lib/koans/03_numbers.ex | apokochito/elixirkoans | 9bcff0d3d6aa7a44c8ce466f0f73f49d90413bec | [
"MIT"
] | 1 | 2021-03-15T19:22:28.000Z | 2021-03-15T19:22:28.000Z | lib/koans/03_numbers.ex | apokochito/elixirkoans | 9bcff0d3d6aa7a44c8ce466f0f73f49d90413bec | [
"MIT"
] | null | null | null | lib/koans/03_numbers.ex | apokochito/elixirkoans | 9bcff0d3d6aa7a44c8ce466f0f73f49d90413bec | [
"MIT"
] | null | null | null | defmodule Numbers do
require Integer
use Koans
@intro "Why is the number six so scared? Because seven eight nine!\nWe should get to know numbers a bit more!"
koan "Is an integer equal to its float equivalent?" do
assert 1 == 1.0 == true
end
koan "Is an integer threequal to its float equivalent?" do
... | 24.022727 | 112 | 0.636392 |
daa7e28387ca4cc78406778b680b27d54245f285 | 344 | ex | Elixir | lib/ex_doc/formatter/epub/assets.ex | MattLangley/ex_doc | 971b6b6023af0b5229a9cdd705877fda5491430e | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-04-02T13:22:58.000Z | 2020-04-02T13:22:58.000Z | lib/ex_doc/formatter/epub/assets.ex | sadiqmmm/ex_doc | 4bb9a6f25dd2e522122daa48829a3d455e7f766a | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/epub/assets.ex | sadiqmmm/ex_doc | 4bb9a6f25dd2e522122daa48829a3d455e7f766a | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-05-11T16:54:10.000Z | 2020-05-11T16:54:10.000Z | defmodule ExDoc.Formatter.EPUB.Assets do
@moduledoc false
defmacrop embed_pattern(pattern) do
["formatters/epub", pattern]
|> Path.join()
|> Path.wildcard()
|> Enum.map(&{Path.basename(&1), File.read!(&1)})
end
def dist do
embed_pattern("dist/*")
end
def metainfo do
embed_pattern(... | 18.105263 | 53 | 0.645349 |
daa80684c7a38cb3d93cff5adf9e5fcb7373bc3e | 1,120 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/memcache/lib/google_api/memcache/v1beta2/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.939394 | 74 | 0.738393 |
daa850098c628d8ba6453d2278a6b34c15787834 | 1,310 | exs | Elixir | test/cloak/fields/date_time_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | test/cloak/fields/date_time_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | test/cloak/fields/date_time_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | defmodule Cloak.Fields.DateTimeTest do
use ExUnit.Case, async: true
defmodule Field do
use Cloak.Fields.DateTime, vault: Cloak.TestVault
end
setup_all do
atom_map = %{year: 2017, month: 1, day: 5, hour: 12, minute: 0, second: 0}
string_map = %{
"year" => 2017,
"month" => 1,
"day... | 25.686275 | 78 | 0.603817 |
daa8742e8d5173a848c83797fd5a4602d7c694f7 | 112 | exs | Elixir | test/rprel_test.exs | rentpath/rprel | 58ffbb9cc7248a0ff7296ec39607985085d8df27 | [
"MIT"
] | 6 | 2016-07-28T17:23:59.000Z | 2020-01-13T22:09:16.000Z | test/rprel_test.exs | rentpath/rprel | 58ffbb9cc7248a0ff7296ec39607985085d8df27 | [
"MIT"
] | 37 | 2016-05-19T13:56:02.000Z | 2017-10-23T19:06:13.000Z | test/rprel_test.exs | rentpath/rprel | 58ffbb9cc7248a0ff7296ec39607985085d8df27 | [
"MIT"
] | null | null | null | defmodule RprelTest do
use ExUnit.Case
doctest Rprel
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
daa87b0aee28c1bd11ae9f8f38353c2ae9b7452e | 1,768 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/conversion_error.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/conversion_error.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/conversion_error.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.358491 | 151 | 0.711538 |
daa8801d2c46a94bbcdc26e1d3f7a25dcd49425f | 1,149 | exs | Elixir | mix.exs | lasseebert/raxx | e614d214e3ba0ed7db8f7fc6e709a554560e81e1 | [
"Apache-2.0"
] | null | null | null | mix.exs | lasseebert/raxx | e614d214e3ba0ed7db8f7fc6e709a554560e81e1 | [
"Apache-2.0"
] | null | null | null | mix.exs | lasseebert/raxx | e614d214e3ba0ed7db8f7fc6e709a554560e81e1 | [
"Apache-2.0"
] | null | null | null | defmodule Raxx.Mixfile do
use Mix.Project
def project do
[
app: :raxx,
version: "0.18.0",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_options: [
warnings_as_errors: true
],
descrip... | 20.890909 | 72 | 0.535248 |
daa896e66f585a9fbb7063866acd0c5f6a2c7032 | 154 | ex | Elixir | lib/mix/tasks/cpf/helpers.ex | basmoura/cpf | a3c37daa7598358b7e15a5ce4b342ed551df79d3 | [
"MIT"
] | 34 | 2019-04-14T22:57:21.000Z | 2022-01-06T01:26:25.000Z | lib/mix/tasks/cpf/helpers.ex | basmoura/cpf | a3c37daa7598358b7e15a5ce4b342ed551df79d3 | [
"MIT"
] | 4 | 2019-06-09T15:48:53.000Z | 2022-01-29T13:13:57.000Z | lib/mix/tasks/cpf/helpers.ex | basmoura/cpf | a3c37daa7598358b7e15a5ce4b342ed551df79d3 | [
"MIT"
] | 10 | 2019-04-16T04:26:56.000Z | 2020-10-08T18:00:47.000Z | defmodule Mix.Tasks.Cpf.Helpers do
@moduledoc false
def error_exit(error_msg) do
Mix.shell().error(error_msg)
exit({:shutdown, 1})
end
end
| 17.111111 | 34 | 0.701299 |
daa8dc2cf77b71aba60a2684e18743df5da145ed | 1,761 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_accounts_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_accounts_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_accounts_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 ... | 35.22 | 141 | 0.735378 |
daa8ef0b6aead6ac2c74c0987898b4ee235d94e6 | 5,616 | ex | Elixir | lib/forma/parser.ex | visciang/forma | ae4f8f96ad291c317ed0b7180ed7077ffb75dec1 | [
"MIT"
] | null | null | null | lib/forma/parser.ex | visciang/forma | ae4f8f96ad291c317ed0b7180ed7077ffb75dec1 | [
"MIT"
] | 1 | 2021-06-08T05:50:06.000Z | 2021-07-31T14:03:47.000Z | lib/forma/parser.ex | visciang/forma | ae4f8f96ad291c317ed0b7180ed7077ffb75dec1 | [
"MIT"
] | null | null | null | defmodule Forma.Parser do
defmodule Error do
defexception [:message]
@type t :: %__MODULE__{
message: String.t()
}
end
def parse!(input, parsers, {:struct, name, fields}) do
case input do
input when is_map(input) -> map_exact_fields!(input, parsers, struct(name), fields)
... | 27.665025 | 111 | 0.579594 |
daa901d08946785e32e9b3b9e1cfc332447d56f8 | 46 | exs | Elixir | test/kuddle_test.exs | IceDragon200/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | 12 | 2021-09-14T15:35:13.000Z | 2022-03-20T20:10:55.000Z | test/kuddle_test.exs | sthagen/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | null | null | null | test/kuddle_test.exs | sthagen/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | 1 | 2021-09-15T13:53:38.000Z | 2021-09-15T13:53:38.000Z | defmodule KuddleTest do
use ExUnit.Case
end
| 11.5 | 23 | 0.804348 |
daa90d7c55deac13b23c4439ffdc78b698c83576 | 3,553 | ex | Elixir | lib/mix/lib/mix/scm.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/scm.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/scm.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule Mix.SCM do
use Behaviour
@typep opts :: [{ atom, any }]
@typep lock
@moduledoc """
This module provides helper functions and defines the
behavior required by any SCM used by mix.
"""
@doc """
Returns a string representing the SCM. This is used
when printing the dependency and not for in... | 30.110169 | 70 | 0.701942 |
daa944687737dd140d4572ffcdc485943ab7dac7 | 2,048 | exs | Elixir | test/thumbor_client_test.exs | ivanpetrovic/thumbor-client-ex | 7e5526a07e947afe9985cd89f15cfcd585b0e93f | [
"MIT"
] | 2 | 2018-07-10T16:41:30.000Z | 2019-06-28T09:56:42.000Z | test/thumbor_client_test.exs | ivanpetrovic/thumbor-client-ex | 7e5526a07e947afe9985cd89f15cfcd585b0e93f | [
"MIT"
] | 2 | 2018-12-18T10:43:24.000Z | 2019-01-13T10:50:10.000Z | test/thumbor_client_test.exs | ivanpetrovic/thumbor-client-ex | 7e5526a07e947afe9985cd89f15cfcd585b0e93f | [
"MIT"
] | 3 | 2019-01-13T10:52:22.000Z | 2021-05-28T03:55:17.000Z | defmodule ThumborClientTest do
use ExUnit.Case
doctest ThumborClient
@key "123"
@path "path/to/image.jpg"
test "#encrypt_to_thumbor when pass a key" do
assert ThumborClient.encrypt_to_thumbor(@key, @path) == "CXYhsuabkwiYi7STg9P1EHMnVyY="
end
test "#encrypt_to_thumbor when using unsafe mode" do
... | 38.641509 | 125 | 0.709473 |
daa9534be38fbbbd2b226368c5146a15626e5682 | 3,022 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/custom_data_sources.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/custom_data_sources.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/custom_data_sources.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 43.797101 | 287 | 0.72634 |
daa95763f956bbf4b37feb2d5ba16fe5f6f0d4a4 | 1,215 | ex | Elixir | apps/mishka_database/lib/mishka_database.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_database/lib/mishka_database.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_database/lib/mishka_database.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaDatabase do
@moduledoc """
Documentation for `MishkaDatabase`.
"""
import Ecto.Changeset
@spec translate_errors(Ecto.Changeset.t()) :: %{optional(atom) => [binary | map]}
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changeset, fn {msg, opts} ->
Enum.reduce(... | 28.255814 | 89 | 0.611523 |
daa965c97f966df766076bb70d476acd741a954c | 291 | exs | Elixir | priv/repo/migrations/20201216194341_add_type_to_slack_authorizations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20201216194341_add_type_to_slack_authorizations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20201216194341_add_type_to_slack_authorizations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.AddTypeToSlackAuthorizations do
use Ecto.Migration
def change do
alter table(:slack_authorizations) do
# At some point, it may make sense to make this an enum ("reply", "support")
add(:type, :string, default: "reply")
end
end
end
| 26.454545 | 82 | 0.707904 |
daa989312202d852e341646a16f69c263c3f0926 | 3,406 | ex | Elixir | lib/bitkub/bitkub.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/bitkub/bitkub.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/bitkub/bitkub.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | defmodule CryptoApis.Bitkub do
@moduledoc """
https://github.com/bitkub/bitkub-official-api-docs/blob/master/restful-api.md
"""
@root_url "https://api.bitkub.com/api"
alias CryptoApis.Pair
defp process_pair(pair) do
pair |> Pair.new() |> Pair.join(delimiter: "_", invert?: true)
end
defp url(:ord... | 26 | 100 | 0.635937 |
daa99a564736751e9b8cc7cc01ad6730531e9f5d | 486 | ex | Elixir | lib/geonames/endpoints/find_nearest_intersection.ex | pareeohnos/geonames-elixir | d4ea326ed413ed2d8d07de491ab608923d959f30 | [
"MIT"
] | 18 | 2016-08-11T11:51:49.000Z | 2021-11-17T11:23:52.000Z | lib/geonames/endpoints/find_nearest_intersection.ex | pareeohnos/geonames-elixir | d4ea326ed413ed2d8d07de491ab608923d959f30 | [
"MIT"
] | 5 | 2016-11-13T10:48:29.000Z | 2022-01-10T11:06:22.000Z | lib/geonames/endpoints/find_nearest_intersection.ex | pareeohnos/geonames-elixir | d4ea326ed413ed2d8d07de491ab608923d959f30 | [
"MIT"
] | 8 | 2016-11-13T10:44:03.000Z | 2021-12-10T12:52:01.000Z | defmodule Geonames.Endpoints.FindNearestIntersection do
@moduledoc false
@behaviour Geonames.Endpoint
@default_arguments %{
lat: nil,
lng: nil
}
def endpoint, do: "findNearestIntersectionJSON"
def available_url_parameters, do: Map.keys(@default_arguments)
def required_url_parameters, do: [:lat, ... | 25.578947 | 64 | 0.769547 |
daa9f69236c4c11a0a0ebe55444173652675c95a | 206 | ex | Elixir | lib/phone/gb.ex | yuriy-pavlov-castle-co/phone | c488b8f73a55cadbd15cdd77998af4ac2721fcfc | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/gb.ex | yuriy-pavlov-castle-co/phone | c488b8f73a55cadbd15cdd77998af4ac2721fcfc | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/gb.ex | yuriy-pavlov-castle-co/phone | c488b8f73a55cadbd15cdd77998af4ac2721fcfc | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.GB do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(44)()(.{10})/
def country, do: "United Kingdom"
def a2, do: "GB"
def a3, do: "GBR"
matcher(:regex, ["44"])
end
| 15.846154 | 35 | 0.601942 |
daaa2a9bc51af2a4620be8ad6f804a8e1f2bef88 | 6,310 | exs | Elixir | test/actions/store_test.exs | styd/waffle | 636b85b7bb7763e611f39c12db001a081ff05fde | [
"Apache-2.0"
] | 562 | 2019-08-30T01:09:36.000Z | 2022-03-22T08:27:39.000Z | test/actions/store_test.exs | styd/waffle | 636b85b7bb7763e611f39c12db001a081ff05fde | [
"Apache-2.0"
] | 76 | 2019-08-26T20:24:14.000Z | 2022-03-05T07:38:43.000Z | test/actions/store_test.exs | styd/waffle | 636b85b7bb7763e611f39c12db001a081ff05fde | [
"Apache-2.0"
] | 46 | 2019-09-13T19:07:12.000Z | 2022-02-02T01:35:10.000Z | defmodule WaffleTest.Actions.Store do
use ExUnit.Case, async: false
@img "test/support/image.png"
@remote_img_with_space_image_two "https://github.com/elixir-waffle/waffle/blob/master/test/support/image%20two.png"
import Mock
defmodule DummyDefinition do
use Waffle.Actions.Store
use Waffle.Definiti... | 31.708543 | 117 | 0.614105 |
daaa34c83b805aac33368bf497807457d3b8837e | 225 | exs | Elixir | priv/repo/migrations/20180405135232_add_github_uid_to_users.exs | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | priv/repo/migrations/20180405135232_add_github_uid_to_users.exs | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | priv/repo/migrations/20180405135232_add_github_uid_to_users.exs | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | defmodule Docdog.Repo.Migrations.AddGithubUidToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :github_uid, :string
end
create index(:users, [:github_uid], unique: true)
end
end
| 18.75 | 55 | 0.702222 |
daaa60ef4dacb5a48bee9ce49b27d98a03e8a4ae | 715 | ex | Elixir | lib/chat_api/tags/conversation_tag.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | lib/chat_api/tags/conversation_tag.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | lib/chat_api/tags/conversation_tag.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApi.Tags.ConversationTag do
use Ecto.Schema
import Ecto.Changeset
alias ChatApi.{Accounts.Account, Conversations.Conversation, Tags.Tag, Users.User}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "conversation_tags" do
belongs_to(:account, Account)... | 28.6 | 89 | 0.727273 |
daaa69c90d51bdf76d6e8922ad57baeca0dadb15 | 820 | ex | Elixir | apps/re_integrations/lib/notifications/mobile/push.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_integrations/lib/notifications/mobile/push.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_integrations/lib/notifications/mobile/push.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Notifications.Mobile.Push do
@moduledoc """
Module for push notifications
"""
require Logger
def notify_user(user, listings) do
user.device_id
|> Pigeon.FCM.Notification.new()
|> Pigeon.FCM.Notification.put_notification(%{
"title" => "Relatório mensal",
"body" => "Visuali... | 31.538462 | 96 | 0.680488 |
daaa7666f9962d5e45a061dc1312bc54b7cf4062 | 2,973 | ex | Elixir | apps/dockup_ui/web/controllers/api/deployment_controller.ex | sleekr/dockup | 11d068879253af655ebabbd3e39cb21400c8e283 | [
"MIT"
] | 1 | 2019-08-20T07:45:10.000Z | 2019-08-20T07:45:10.000Z | apps/dockup_ui/web/controllers/api/deployment_controller.ex | sleekr/dockup | 11d068879253af655ebabbd3e39cb21400c8e283 | [
"MIT"
] | null | null | null | apps/dockup_ui/web/controllers/api/deployment_controller.ex | sleekr/dockup | 11d068879253af655ebabbd3e39cb21400c8e283 | [
"MIT"
] | 2 | 2019-03-08T10:51:34.000Z | 2019-08-20T07:45:13.000Z | defmodule DockupUi.API.DeploymentController do
use DockupUi.Web, :controller
import Ecto.Query
alias DockupUi.{
Deployment,
DeployService,
HibernateDeploymentService,
WakeUpDeploymentService,
DeleteDeploymentService,
Repo,
Callback.Web
}
def index(conn, _params) do
query =
... | 32.315217 | 99 | 0.656239 |
daaa767a006a9775ad614d78aa063cc902d97022 | 5,539 | ex | Elixir | implementations/elixir/ockam/ockam_hub/lib/hub.ex | Toughee/ockam | e85c47883edc1960d2e40a5801fad14bbada6038 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/lib/hub.ex | Toughee/ockam | e85c47883edc1960d2e40a5801fad14bbada6038 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/lib/hub.ex | Toughee/ockam | e85c47883edc1960d2e40a5801fad14bbada6038 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Hub do
# credo:disable-for-this-file Credo.Check.Refactor.ModuleDependencies
@moduledoc """
Implements the Ockam Hub.
"""
use Application
alias Ockam.Hub.Service.Alias, as: AliasService
alias Ockam.Hub.Service.Echo, as: EchoService
alias Ockam.Hub.TelemetryForwarder
alias Ockam.Tra... | 33.167665 | 95 | 0.535837 |
daaab2298bc954cd124b9c69af4b9e7d52c89cbb | 1,845 | ex | Elixir | server/lib/taskerito_web/schema/user_types.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | 5 | 2020-06-18T20:31:11.000Z | 2021-07-23T10:05:56.000Z | server/lib/taskerito_web/schema/user_types.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | server/lib/taskerito_web/schema/user_types.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | defmodule TaskeritoWeb.Schema.UserTypes do
use Absinthe.Schema.Notation
alias TaskeritoWeb.Resolvers
import AbsintheErrorPayload.Payload
import Absinthe.Resolution.Helpers
@desc "A user of the application."
object :user do
field :id, non_null(:id)
field :username, non_null(:string)
field :name... | 25.985915 | 64 | 0.698103 |
daaaef621cdfa4a2e866aaeacdcc3dce84f14a64 | 2,571 | ex | Elixir | lib/elixir/lib/range.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | defmodule Range do
@moduledoc """
Defines a Range.
A Range is represented internally as a struct. However,
the most common form of creating and matching on ranges
is via the `../2` macro, auto-imported from Kernel:
iex> range = 1..3
1..3
iex> first .. last = range
iex> first
1
... | 20.404762 | 83 | 0.59121 |
daab2423b50b9dcc3a30958e1be3d6060c3de8da | 1,924 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_device.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... | 38.48 | 238 | 0.741164 |
daab734f626dbaa84a61d6317129c524f8f02058 | 2,216 | ex | Elixir | clients/firebase_database/lib/google_api/firebase_database/v1beta/model/list_database_instances_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/firebase_database/lib/google_api/firebase_database/v1beta/model/list_database_instances_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_database/lib/google_api/firebase_database/v1beta/model/list_database_instances_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... | 44.32 | 395 | 0.760379 |
daabb22cb7a9f26661681901ff844b0e5fb1a7ec | 3,956 | exs | Elixir | lib/elixir/test/elixir/kernel/fn_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/fn_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/fn_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.FnTest do
use ExUnit.Case, async: true
test "arithmetic constants on match" do
assert (fn -1 -> true end).(-1)
assert (fn +1 -> true end).(1)
end
test "pin operator on match" do
x = 1
refute (fn
^x -> true
... | 23.688623 | 74 | 0.519211 |
daabd5e81beb66a587cf557379092250fc2f5248 | 73 | ex | Elixir | lib/tapebas_web/views/user_confirmation_view.ex | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 3 | 2022-03-24T16:48:38.000Z | 2022-03-24T16:50:04.000Z | lib/tapebas_web/views/user_confirmation_view.ex | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | null | null | null | lib/tapebas_web/views/user_confirmation_view.ex | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 1 | 2022-03-20T01:11:12.000Z | 2022-03-20T01:11:12.000Z | defmodule TapebasWeb.UserConfirmationView do
use TapebasWeb, :view
end
| 18.25 | 44 | 0.835616 |
daabf1e5088878d9c12c4f36568b6104191731ec | 2,737 | ex | Elixir | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_extend_subscription_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_extend_subscription_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_extend_subscription_request.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... | 43.444444 | 393 | 0.774571 |
daac31647df0bb5b859d8ad924a6eaeb25c1bafe | 2,403 | ex | Elixir | lib/opencov/services/github/comments.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/opencov/services/github/comments.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/opencov/services/github/comments.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Services.Github.Comments do
require Logger
import Librecov.Services.Github.Config
alias ExOctocat.Connection
alias ExOctocat.Api.Issues
alias Librecov.Services.Github.PullRequests
alias Librecov.Build
alias Librecov.Services.Github.AuthData
def add_pr_comment(pr_message, %AuthData{to... | 29.666667 | 108 | 0.614232 |
daac32bf62bd0adfb60cddac07cac446f35ca804 | 576 | exs | Elixir | bfs_elixir/mix.exs | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | 1 | 2019-03-28T09:08:16.000Z | 2019-03-28T09:08:16.000Z | bfs_elixir/mix.exs | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | bfs_elixir/mix.exs | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | defmodule BfsElixir.MixProject do
use Mix.Project
def project do
[
app: :bfs_elixir,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extr... | 19.862069 | 87 | 0.579861 |
daac6ae0509c40da0a407d6159638b0b8a08d875 | 1,550 | ex | Elixir | test/support/data_case.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | test/support/data_case.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | test/support/data_case.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | defmodule PhoenixSample.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes don... | 29.807692 | 94 | 0.70129 |
daac6ea2b534ede9feb61e914a49cd8ccccd0d0e | 1,079 | ex | Elixir | lib/bolt/application.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | lib/bolt/application.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | lib/bolt/application.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.Application do
@moduledoc """
The entry point for bolt.
Starts the required processes, including the gateway consumer supervisor.
"""
require Logger
use Application
@impl true
@spec start(
Application.start_type(),
term()
) :: {:ok, pid()} | {:ok, pid(), App... | 25.690476 | 80 | 0.658943 |
daac71345950ef23bf8ef74128be66a505f9cf4b | 625 | exs | Elixir | priv/repo/migrations/20191110173451_create_wallet_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191110173451_create_wallet_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191110173451_create_wallet_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraph.Repo.Migrations.CreateWalletProducts do
use Ecto.Migration
def change do
create table(:wallet_products) do
add :name, :string
add :client_id, references(:clients), null: false
add :min_balance, :decimal
add :monthly_charge, :decimal
add :type, :string
... | 29.761905 | 76 | 0.6752 |
daac753a96f5a7004b4af0497c016a220ab8cf56 | 225 | ex | Elixir | lib/live_view_example_usage_web/live/search_live/index.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 3 | 2021-09-13T07:07:46.000Z | 2021-11-21T09:42:39.000Z | lib/live_view_example_usage_web/live/search_live/index.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 2 | 2021-09-18T17:16:16.000Z | 2021-11-21T23:25:23.000Z | lib/live_view_example_usage_web/live/search_live/index.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 1 | 2021-09-13T07:07:50.000Z | 2021-09-13T07:07:50.000Z | defmodule LiveViewExampleUsageWeb.SearchLive.Index do
use Phoenix.LiveView
def mount(_params, %{"page_id" => page_id}, socket) do
socket =
socket
|> assign(:page_id, page_id)
{:ok, socket}
end
end
| 18.75 | 56 | 0.666667 |
daac7ca6e8a4e488f95c6c64adba821e8fb71707 | 993 | ex | Elixir | lib/protobuf/json/encode_error.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 419 | 2017-04-02T13:10:51.000Z | 2020-11-15T15:53:17.000Z | lib/protobuf/json/encode_error.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 101 | 2020-11-22T20:20:11.000Z | 2022-03-06T16:09:26.000Z | lib/protobuf/json/encode_error.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 83 | 2017-07-24T21:50:04.000Z | 2020-11-15T08:52:34.000Z | defmodule Protobuf.JSON.EncodeError do
defexception [:message]
@type t :: %__MODULE__{message: String.t()}
def new({:unsupported_syntax, syntax}) do
%__MODULE__{message: "JSON encoding of '#{syntax}' syntax is unsupported, try proto3"}
end
def new(:no_json_lib) do
%__MODULE__{message: "JSON library... | 28.371429 | 99 | 0.686808 |
daacb3f37e0e28d8da94417872089cca9662cfe4 | 1,127 | exs | Elixir | learning/programming_elixir/eval/apps/evaluator/config/config.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/programming_elixir/eval/apps/evaluator/config/config.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/programming_elixir/eval/apps/evaluator/config/config.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"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.354839 | 73 | 0.75244 |
daacf29e909fca15fda1a577597bce8ddfe7d68f | 746 | ex | Elixir | apps/diet/lib/diet/release.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 1 | 2020-06-01T21:25:54.000Z | 2020-06-01T21:25:54.000Z | apps/diet/lib/diet/release.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 221 | 2019-07-20T17:20:49.000Z | 2021-08-02T06:21:10.000Z | apps/diet/lib/diet/release.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | null | null | null | defmodule Diet.Release do
@start_apps [
:ssl
]
@app :diet
def migrate do
start_services()
for repo <- repos() do
{:ok, _, _} =
Ecto.Migrator.with_repo(repo, fn repo ->
Ecto.Migrator.run(repo, :up, all: true)
end)
end
stop_services()
end
def rollback(r... | 18.195122 | 61 | 0.615282 |
daad13add3a3150d6986b7dd8b05cb044c8fe2bc | 2,627 | exs | Elixir | test/parser/all_of_parser_test.exs | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 3 | 2019-01-07T20:11:40.000Z | 2021-02-03T22:24:07.000Z | test/parser/all_of_parser_test.exs | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 13 | 2018-07-27T12:39:01.000Z | 2022-03-28T20:16:15.000Z | test/parser/all_of_parser_test.exs | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | null | null | null | defmodule JsonSchemaTest.Parser.AllOfParser do
use ExUnit.Case
doctest JsonSchema.Parser.AllOfParser, import: true
require Logger
alias JsonSchema.{Parser, Types}
alias Parser.AllOfParser
alias Types.{AllOfType, ObjectType, PrimitiveType, TypeReference}
defp all_of_type do
"""
{
"allOf": [... | 27.652632 | 89 | 0.578226 |
daad1a5f733d50e31babd18b3b1b3db305a2d7a2 | 627 | ex | Elixir | web/controllers/registration_controller.ex | CaseyKelly/PhoenixAuthAPI | d3795f9dbc94efbd3aa869a6c4960add1a68e05f | [
"Apache-2.0"
] | null | null | null | web/controllers/registration_controller.ex | CaseyKelly/PhoenixAuthAPI | d3795f9dbc94efbd3aa869a6c4960add1a68e05f | [
"Apache-2.0"
] | null | null | null | web/controllers/registration_controller.ex | CaseyKelly/PhoenixAuthAPI | d3795f9dbc94efbd3aa869a6c4960add1a68e05f | [
"Apache-2.0"
] | null | null | null | defmodule MyApp.RegistrationController do
use MyApp.Web, :controller
alias MyApp.User
def new(conn, _params) do
changeset = User.changeset(%MyApp.User{})
conn
|> render(:new, changeset: changeset)
end
def create(conn, %{"user" => registration_params}) do
changeset = User.registration_change... | 24.115385 | 73 | 0.633174 |
daad48c79a2c78e60a7d1ee478244b38acfcba33 | 7,354 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.544304 | 196 | 0.63598 |
daadd1115282f7e28bb1d363b29c08a5b29188fd | 2,367 | ex | Elixir | lib/protobuf/json/decode_error.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 419 | 2017-04-02T13:10:51.000Z | 2020-11-15T15:53:17.000Z | lib/protobuf/json/decode_error.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 101 | 2020-11-22T20:20:11.000Z | 2022-03-06T16:09:26.000Z | lib/protobuf/json/decode_error.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 83 | 2017-07-24T21:50:04.000Z | 2020-11-15T08:52:34.000Z | defmodule Protobuf.JSON.DecodeError do
defexception [:message]
@type t :: %__MODULE__{message: String.t()}
def new({:unsupported_syntax, syntax}) do
%__MODULE__{message: "JSON encoding of '#{syntax}' syntax is unsupported, try proto3"}
end
def new(:no_json_lib) do
%__MODULE__{message: "JSON library... | 32.424658 | 98 | 0.664554 |
daadda8d38dd123011559502eb1f8a0c99579fe2 | 70 | exs | Elixir | config/config.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 2 | 2020-11-06T21:02:47.000Z | 2020-11-06T23:27:35.000Z | config/config.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 4 | 2020-03-05T17:37:46.000Z | 2021-10-06T10:13:51.000Z | config/config.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 1 | 2021-09-22T13:43:58.000Z | 2021-09-22T13:43:58.000Z | use Mix.Config
config :plug, :validate_header_keys_during_test, true
| 17.5 | 53 | 0.828571 |
daaddf928458322b0c31d65a628277cf0c4a9a1b | 882 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 32.666667 | 74 | 0.758503 |
daadfc2aa38bc91a072245ab71686bfd69ff9062 | 10,165 | ex | Elixir | lib/mix/phoenix/schema.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | lib/mix/phoenix/schema.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | lib/mix/phoenix/schema.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | defmodule Mix.Phoenix.Schema do
@moduledoc false
alias Mix.Phoenix.Schema
defstruct module: nil,
repo: nil,
table: nil,
embedded?: false,
generate?: true,
opts: [],
alias: nil,
file: nil,
attrs: [],
strin... | 31.666667 | 96 | 0.562518 |
daae4397c414af10f7e5640bd2c9447c4c537f50 | 218 | ex | Elixir | lib/ex_ftx/json_response.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-09-27T17:19:41.000Z | 2022-03-16T09:28:13.000Z | lib/ex_ftx/json_response.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-07-28T19:53:02.000Z | 2021-09-27T15:48:38.000Z | lib/ex_ftx/json_response.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 4 | 2021-08-01T11:25:58.000Z | 2021-10-11T22:15:44.000Z | defmodule ExFtx.JsonResponse do
@type error :: String.t()
@type result :: map | list | String.t()
@type t :: %__MODULE__{success: boolean, result: result, error: error}
defstruct ~w[success result error]a
end
| 27.25 | 72 | 0.692661 |
daae473e788fd7cf07aea1825a9efca0bc0437c6 | 759 | exs | Elixir | test/plug/upload_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | test/plug/upload_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | test/plug/upload_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | defmodule Plug.UploadTest do
use ExUnit.Case, async: true
test "removes the random file on process death" do
parent = self()
{pid, ref} = spawn_monitor fn ->
{:ok, path} = Plug.Upload.random_file("sample")
send parent, {:path, path}
File.open!(path)
end
path =
receive do
... | 23 | 53 | 0.587615 |
daae575dc1008d1657008576eed5aa90f85bd82e | 3,638 | exs | Elixir | test/north/scope/wildcard_test.exs | camcaine/north | d1193d3cdab219a2b91136cf2c4938f30d0a9c86 | [
"MIT"
] | null | null | null | test/north/scope/wildcard_test.exs | camcaine/north | d1193d3cdab219a2b91136cf2c4938f30d0a9c86 | [
"MIT"
] | null | null | null | test/north/scope/wildcard_test.exs | camcaine/north | d1193d3cdab219a2b91136cf2c4938f30d0a9c86 | [
"MIT"
] | null | null | null | defmodule North.Scope.WildcardTest do
use ExUnit.Case, async: true
describe "matches?/2" do
import North.Scope.Wildcard
test "with '*' delimiter raises" do
assert_raise ArgumentError, fn ->
matches?([], "foo", delimiter: "*")
end
end
test "with '.' delimiter (default)" do
... | 39.978022 | 84 | 0.580264 |
daae7c31065e0a716e2265f0eded8f7b0c1b221d | 4,771 | ex | Elixir | lib/changelog_web/views/episode_view.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog_web/views/episode_view.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog_web/views/episode_view.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.EpisodeView do
use ChangelogWeb, :public_view
import ChangelogWeb.Meta.{Title, Description}
alias Changelog.{Episode, Files, Github}
alias ChangelogWeb.{Endpoint, LayoutView, NewsItemView, PersonView,
PodcastView, SponsorView, TimeView}
def admin_edit_link(conn,... | 29.63354 | 204 | 0.667994 |
daaea6b0879c3fac256bb97b43c4db06aa6cb72c | 19,402 | ex | Elixir | lib/mix/lib/mix/compilers/elixir.ex | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/mix/lib/mix/compilers/elixir.ex | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Elixir do
@moduledoc false
@manifest_vsn 4
import Record
defrecord :module, [:module, :kind, :sources, :struct]
defrecord :source,
source: nil,
size: 0,
compile_references: [],
struct_references: [],
runtime_references: [],
external: [],
warnings: [],
... | 32.718381 | 106 | 0.65452 |
daaeb954cf900973b1a5a307ed24b54bde7beae0 | 2,235 | ex | Elixir | web/controllers/html_cachegroup_type_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/controllers/html_cachegroup_type_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/controllers/html_cachegroup_type_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.HtmlCachegroupTypeController do
use Tox.Web, :controller
alias Tox.CachegroupType
def index(conn, _params) do
cachegroup_types = Repo.all(CachegroupType)
render(conn, "index.html", cachegroup_types: cachegroup_types)
end
def new(conn, _params) do
changeset = CachegroupType.changes... | 33.863636 | 89 | 0.691723 |
daaec6fde0245544a9570491d40fa092b75af9b3 | 3,827 | exs | Elixir | test/domains_test.exs | adamkittelson/simplex | 7cf2b98e30be6dbae05448f4285c212c5ac670ec | [
"MIT"
] | 1 | 2015-11-12T16:43:14.000Z | 2015-11-12T16:43:14.000Z | test/domains_test.exs | adamkittelson/simplex | 7cf2b98e30be6dbae05448f4285c212c5ac670ec | [
"MIT"
] | null | null | null | test/domains_test.exs | adamkittelson/simplex | 7cf2b98e30be6dbae05448f4285c212c5ac670ec | [
"MIT"
] | null | null | null | defmodule DomainsTest do
use ExUnit.Case
setup_all do
{:ok, simplex} = Simplex.new("access-key", "secret-access-key")
Process.register(simplex, :simplex)
:ok
end
test "creating a domain" do
:meck.expect(HTTPotion, :get, fn(_signed_request, [timeout: 30000]) ->
... | 55.463768 | 417 | 0.533577 |
daaec8d9a3d151624eb7c4a9a062dda29313d1ee | 12,868 | ex | Elixir | lib/erlef/groups.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 1 | 2021-03-13T01:34:28.000Z | 2021-03-13T01:34:28.000Z | lib/erlef/groups.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | null | null | null | lib/erlef/groups.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Groups do
@moduledoc """
Erlef.Groups is a context module for working with various types of groups in the erlef system.
## Types of groups
- working groups, volunteers, and chairs
- sponsors
- board and board members
## Audit support
- All functions that create or update a resource ... | 32.17 | 96 | 0.656201 |
daaf4a4dc679f97e336d1cd3c1ea65f3d763ba52 | 993 | exs | Elixir | mix.exs | cocoa-xu/twspace_dl | f10fa48add9d273498a27b45c2b60b9d90e3931d | [
"Apache-2.0"
] | null | null | null | mix.exs | cocoa-xu/twspace_dl | f10fa48add9d273498a27b45c2b60b9d90e3931d | [
"Apache-2.0"
] | null | null | null | mix.exs | cocoa-xu/twspace_dl | f10fa48add9d273498a27b45c2b60b9d90e3931d | [
"Apache-2.0"
] | null | null | null | defmodule TwspaceDl.MixProject do
use Mix.Project
def project do
[
app: :twspace_dl,
version: "0.1.2",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
package: package(),
... | 20.6875 | 68 | 0.566969 |
daaf4dfa773d7a94927d64978007ad0286542596 | 18 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~s{one} in ~w{two} | 18 | 18 | 0.555556 |
daaf6c5a5c7fd02449b146da91cb73298fbe00c6 | 24,667 | ex | Elixir | lib/ex_unit/lib/ex_unit/assertions.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/ex_unit/lib/ex_unit/assertions.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/ex_unit/lib/ex_unit/assertions.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule ExUnit.AssertionError do
@moduledoc """
Raised to signal an assertion error.
"""
@no_value :ex_unit_no_meaningful_value
defexception left: @no_value,
right: @no_value,
message: @no_value,
expr: @no_value,
args: @no_value
@doc """
Ind... | 25.910714 | 98 | 0.623059 |
daaf806f5c5dd999e054c35f1b2a81f373189268 | 1,498 | exs | Elixir | apps/andi/config/dev.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/andi/config/dev.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/andi/config/dev.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
host = "localhost"
redix_args = [host: host]
config :an... | 26.75 | 68 | 0.679573 |
daaf9819b43935b6dfc5450073237a3cf64be3a8 | 281 | exs | Elixir | priv/repo/migrations/20201229163930_add_stores_table.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20201229163930_add_stores_table.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20201229163930_add_stores_table.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule Freegiving.Repo.Migrations.AddStoresTable do
use Ecto.Migration
def change do
create table("stores") do
add :name, :string, null: false
add :address, :string, null: false
timestamps()
end
create unique_index("stores", :name)
end
end
| 20.071429 | 54 | 0.672598 |
daafd973715ea8bb0fd2eafe2dca456a31ea700f | 161 | ex | Elixir | lib/central/communication/libs/blog_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/communication/libs/blog_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/communication/libs/blog_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Communication.BlogLib do
use CentralWeb, :library
def colours(), do: {"#007bff", "#DDEEFF", "primary"}
def icon(), do: "fad fa-rss"
end
| 23 | 54 | 0.677019 |
daaff49494b353cce7cb40051e02467270b37253 | 194 | exs | Elixir | priv/repo/migrations/20180212111330_remove_branch_and_submit_user.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180212111330_remove_branch_and_submit_user.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180212111330_remove_branch_and_submit_user.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | defmodule Artus.Repo.Migrations.RemoveBranchAndSubmitUser do
use Ecto.Migration
def change do
alter table(:entries) do
remove :branch
remove :submit_user
end
end
end
| 16.166667 | 60 | 0.716495 |
dab01616c8ad75e6c293fa5ed7235217c83ce7f6 | 1,775 | exs | Elixir | test/xdr/ledger_entries/alpha_num4_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/ledger_entries/alpha_num4_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/ledger_entries/alpha_num4_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.AlphaNum4Test do
use ExUnit.Case
alias StellarBase.XDR.{AccountID, AlphaNum4, AssetCode4, PublicKey, PublicKeyType, UInt256}
alias StellarBase.StrKey
describe "AlphaNum4" do
setup do
pk_key =
"GCNY5OXYSY4FKHOPT2SPOQZAOEIGXB5LBYW3HVU3OWSTQITS65M5RCNY"
|> Str... | 30.603448 | 98 | 0.628732 |
dab07eecfcbbd6155d19b28210432549f878fcc1 | 2,669 | exs | Elixir | mix.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-10T06:54:28.000Z | 2022-03-10T06:54:28.000Z | mix.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-14T01:10:20.000Z | 2022-03-20T14:35:05.000Z | mix.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-13T15:38:40.000Z | 2022-03-13T15:38:40.000Z | defmodule Cldr.Trans.Mixfile do
use Mix.Project
@version "1.0.0-rc.0"
def project do
[
app: :ex_cldr_trans,
version: @version,
elixir: "~> 1.10",
description: "CLDR-based embedded translations for Ecto schemas",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env... | 24.943925 | 95 | 0.552641 |
dab0c94e521fec12a38b608ce8074c8a3472b15e | 662 | exs | Elixir | test/game/command/crash_test.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/command/crash_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/command/crash_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Command.CrashTest do
use ExVenture.CommandCase
alias Game.Command.Crash
doctest Crash
setup do
user = create_admin_user(%{name: "user", password: "password"})
%{state: %{socket: :socket, user: user, save: %{room_id: 10}}}
end
describe "crashing a room" do
test "sends a signal ... | 22.827586 | 74 | 0.629909 |
dab0cd0d6dcfa9dc25e177b22ef261b9a1eba89f | 2,006 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/image_button.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chat/lib/google_api/chat/v1/model/image_button.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chat/lib/google_api/chat/v1/model/image_button.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... | 35.821429 | 181 | 0.696909 |
dab0eb8b84ad3112d4deb2d3db9bb682e57af332 | 9,057 | ex | Elixir | lib/plausible/billing/billing.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | lib/plausible/billing/billing.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | lib/plausible/billing/billing.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Billing do
use Plausible.Repo
alias Plausible.Billing.{Subscription, PaddleApi}
def active_subscription_for(user_id) do
Repo.get_by(Subscription, user_id: user_id, status: "active")
end
def subscription_created(params) do
params =
if present?(params["passthrough"]) do
... | 29.31068 | 98 | 0.681904 |
dab101ae61d8b4e2ee5b795286ef7535dc3b7151 | 216 | ex | Elixir | apps/admin_api/lib/admin_api/v1/controllers/status_controller.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/admin_api/lib/admin_api/v1/controllers/status_controller.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/controllers/status_controller.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule AdminAPI.V1.StatusController do
use AdminAPI, :controller
def index(conn, _attrs) do
json conn, %{success: true}
end
def server_error(_conn, _attrs) do
raise "Mock server error"
end
end
| 18 | 41 | 0.712963 |
dab156fae6ed25a7b5d5d7c09d72d4502010e332 | 2,865 | exs | Elixir | test/plasm/on_or_earlier_than_test.exs | facto/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 56 | 2016-07-31T19:35:49.000Z | 2021-10-21T20:32:42.000Z | test/plasm/on_or_earlier_than_test.exs | atomic-fads/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 2 | 2016-01-27T17:38:55.000Z | 2016-05-21T18:33:14.000Z | test/plasm/on_or_earlier_than_test.exs | atomic-fads/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 3 | 2016-01-27T14:00:55.000Z | 2016-05-21T18:06:56.000Z | defmodule Plasm.OnOrEarlierThanTest do
use Plasm.Case
alias Plasm.Repo
alias Plasm.User
import Plasm.Factory
test ".on_or_earlier_than with a Date when the field is a date" do
# Arrange
castable_string = "1980-01-02"
{:ok, date_of_birth} = Date.from_iso8601(castable_string)
earlier_user = i... | 37.697368 | 116 | 0.703665 |
dab162becbdc6ae311ea25427b4dd19e95ba036b | 1,000 | ex | Elixir | test/fixtures/messages.ex | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | test/fixtures/messages.ex | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | test/fixtures/messages.ex | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | defmodule EDS.Fixtures.Messages do
use GenServer
def start_link(args) do
GenServer.start_link(__MODULE__, args, name: __MODULE__)
end
def init(state) do
{:ok, state, {:continue, :message_loop}}
end
def handle_continue(:message_loop, state) do
message_loop(state)
end
defp message_loop(sta... | 23.255814 | 68 | 0.631 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.