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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2aeb00600b6c1a4ab4038c4954c705504cf0600 | 1,630 | ex | Elixir | example/lib/example_web.ex | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 20 | 2019-05-21T17:19:07.000Z | 2022-01-22T14:45:46.000Z | example/lib/example_web.ex | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 17 | 2019-05-21T18:38:34.000Z | 2022-03-27T06:07:30.000Z | example/lib/example_web.ex | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 8 | 2016-12-20T17:44:36.000Z | 2019-04-09T11:58:45.000Z | defmodule ExampleWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ExampleWeb, :controller
use ExampleWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.285714 | 83 | 0.688957 |
b2aeb4dac9faa155a55414d081b58a2ba4a5c019 | 1,832 | ex | Elixir | lib/ex_twilio/jwt/access_token/voice_grant.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | null | null | null | lib/ex_twilio/jwt/access_token/voice_grant.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | null | null | null | lib/ex_twilio/jwt/access_token/voice_grant.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | 2 | 2022-03-08T22:05:17.000Z | 2022-03-09T05:29:46.000Z | defmodule ExTwilio.JWT.AccessToken.VoiceGrant do
@moduledoc """
A JWT grant to access a given Twilio voice service.
## Examples
ExTwilio.JWT.AccessToken.VoiceGrant.new(
outgoing_application_sid: "application_sid",
outgoing_application: %{"key" => "value"},
incoming_allow: true,
... | 27.757576 | 94 | 0.643559 |
b2aed589f6be917fe45702f6d012e0070f67496f | 1,742 | ex | Elixir | apps/ema/lib/ema/template.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/ema/lib/ema/template.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/ema/lib/ema/template.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | defmodule Ema.Template.Helpers do
import NimbleParsec
def expression do
ignore(string("{{"))
|> ascii_string([?0..?9, ?a..?z, ?A..?Z, ?\s, ?_], min: 1)
|> ignore(string("}}"))
end
def until_brace(c \\ empty()) do
repeat_while(c, utf8_char([]), {:not_brace, []})
end
def not_brace(<<?{, ?{,... | 23.226667 | 75 | 0.574053 |
b2aed93fcfba00647218f7309f8157f38d31ebe5 | 8,269 | ex | Elixir | lib/conform/utils/code.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 410 | 2015-01-10T13:33:00.000Z | 2022-01-31T20:12:15.000Z | lib/conform/utils/code.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 140 | 2015-02-05T16:29:32.000Z | 2020-10-22T10:52:33.000Z | lib/conform/utils/code.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 65 | 2015-02-13T21:02:29.000Z | 2021-06-23T05:49:09.000Z | defmodule Conform.Utils.Code do
@moduledoc """
This module provides handy utilities for low-level
manipulation of Elixir's AST. Currently, it's primary
purpose is for stringification of schemas for printing
or writing to disk.
"""
@doc """
Takes a schema in quoted form and produces a string
represent... | 32.175097 | 105 | 0.582295 |
b2aee4ae25f1100baa84a49241c6f0d3fcf9bafe | 898 | ex | Elixir | lib/alchemetrics/application.ex | panoramix360/alchemetrics | 7aa973bf951d5b892311831d46285a45cda0cee4 | [
"MIT"
] | 32 | 2017-07-06T13:40:00.000Z | 2021-10-17T23:56:17.000Z | lib/alchemetrics/application.ex | panoramix360/alchemetrics | 7aa973bf951d5b892311831d46285a45cda0cee4 | [
"MIT"
] | 20 | 2017-07-06T14:05:33.000Z | 2021-12-02T01:04:31.000Z | lib/alchemetrics/application.ex | panoramix360/alchemetrics | 7aa973bf951d5b892311831d46285a45cda0cee4 | [
"MIT"
] | 6 | 2017-07-06T14:45:38.000Z | 2021-10-08T12:27:49.000Z | defmodule Alchemetrics.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
... | 33.259259 | 84 | 0.711581 |
b2af276c7fb1e287e75e87e4421a58e8a1aae9ed | 6,360 | ex | Elixir | apps/graphql/lib/graphql/schema/reimbursement/medication_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/lib/graphql/schema/reimbursement/medication_types.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/lib/graphql/schema/reimbursement/medication_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.Schema.MedicationTypes do
@moduledoc false
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
import Absinthe.Resolution.Helpers, only: [dataloader: 1]
import GraphQL.Resolvers.Helpers.Load, only: [load_by_args: 2]
alias Absinthe.Relay.Node.ParseIDs
alias Core.Me... | 29.444444 | 109 | 0.682075 |
b2af44918279d26ce4b237ad8adfd98537713437 | 860 | exs | Elixir | mix.exs | DanCouper/natural_sort | 16e265b66c68d5af381530d92973f53f6dc68678 | [
"MIT"
] | 15 | 2015-05-17T01:27:15.000Z | 2021-09-28T08:42:47.000Z | mix.exs | DanCouper/natural_sort | 16e265b66c68d5af381530d92973f53f6dc68678 | [
"MIT"
] | 2 | 2015-05-15T14:05:36.000Z | 2015-05-17T15:30:25.000Z | mix.exs | DanCouper/natural_sort | 16e265b66c68d5af381530d92973f53f6dc68678 | [
"MIT"
] | 3 | 2018-08-13T17:17:17.000Z | 2021-09-28T08:44:04.000Z | defmodule NaturalSort.Mixfile do
use Mix.Project
def project do
[app: :natural_sort,
version: "0.3.0",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
description: description,
package: package
]
end
def application d... | 20 | 71 | 0.562791 |
b2af4f369464ca902b8fa37b64eb04d11981a311 | 1,101 | ex | Elixir | lib/tune_web/channels/user_socket.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 206 | 2020-08-23T17:50:03.000Z | 2022-03-28T04:39:01.000Z | lib/tune_web/channels/user_socket.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 112 | 2020-08-21T08:26:38.000Z | 2022-03-31T06:11:06.000Z | lib/tune_web/channels/user_socket.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 15 | 2020-08-25T02:30:23.000Z | 2021-12-16T14:19:35.000Z | defmodule TuneWeb.UserSocket do
@moduledoc false
use Phoenix.Socket
## Channels
# channel "room:*", TuneWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set f... | 29.756757 | 83 | 0.693006 |
b2af552cf19fd025fe23c9658d4ecf9b7fe69a69 | 5,120 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/activities.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/activities.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/api/activities.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... | 50.196078 | 564 | 0.655078 |
b2af631753676350845831b174d8bca9b2ea51bf | 2,527 | exs | Elixir | test/webapp/hypervisors/machines_test.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | test/webapp/hypervisors/machines_test.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | test/webapp/hypervisors/machines_test.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule Webapp.MachinesTest do
use Webapp.DataCase
# alias Webapp.Machines
describe "machines" do
# alias Webapp.Machines.Machine
#
# @valid_attrs %{name: "some name", template: "some template"}
# @update_attrs %{name: "some updated name", template: "some updated template"}
# @... | 36.623188 | 96 | 0.600712 |
b2af8499b635515a50158754ed55a2bc48ce7d67 | 2,065 | exs | Elixir | config/dev.exs | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | 3 | 2021-01-25T20:28:00.000Z | 2021-01-26T12:22:08.000Z | config/dev.exs | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | config/dev.exs | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | use Mix.Config
config :mail_sniffex,
allowed_headers: ["To", "From", "Subject"],
data_path: System.get_env("DATA_DIR_PATH") || "data"
# 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 ex... | 28.680556 | 68 | 0.688136 |
b2af8e7e696b023245744975b0882a89ffa4bee7 | 4,252 | ex | Elixir | lib/ravix_ecto/parsers/conversions.ex | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | 1 | 2022-03-30T14:56:00.000Z | 2022-03-30T14:56:00.000Z | lib/ravix_ecto/parsers/conversions.ex | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | null | null | null | lib/ravix_ecto/parsers/conversions.ex | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | null | null | null | defmodule Ravix.Ecto.Conversions do
@moduledoc false
defmacro is_keyword(doc) do
quote do
unquote(doc) |> hd |> tuple_size == 2
end
end
defmacro is_literal(value) do
quote do
is_atom(unquote(value)) or is_number(unquote(value)) or is_binary(unquote(value))
end
end
def to_ecto(... | 29.943662 | 92 | 0.62206 |
b2afa37d3efc16cc64815818c6fac619579ca05e | 26,434 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.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... | 54.390947 | 1,450 | 0.643187 |
b2afd29b3dae229b57e564351924766d5fcfaa3f | 1,471 | ex | Elixir | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/views/error_helpers.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/views/error_helpers.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/views/error_helpers.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule ADemoWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:s... | 32.688889 | 74 | 0.668933 |
b2afe6939276e99a4f192eb5204e8490f5f87825 | 28,535 | ex | Elixir | bench/lib/datasets/google_message4/benchmark_message4_1.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 419 | 2017-04-02T13:10:51.000Z | 2020-11-15T15:53:17.000Z | bench/lib/datasets/google_message4/benchmark_message4_1.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 100 | 2017-04-02T14:26:41.000Z | 2020-11-10T23:43:30.000Z | bench/lib/datasets/google_message4/benchmark_message4_1.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 83 | 2017-07-24T21:50:04.000Z | 2020-11-15T08:52:34.000Z | defmodule Benchmarks.GoogleMessage4.Message2463 do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.1-dev", syntax: :proto2
field :field2498, 1, repeated: true, type: Benchmarks.GoogleMessage4.Message2462
end
defmodule Benchmarks.GoogleMessage4.Message12686 do
@moduledoc false
use Protobuf, p... | 47.558333 | 94 | 0.754337 |
b2afe8841930cc10588501c0c8453c7474b47889 | 6,100 | ex | Elixir | lib/hexpm/accounts/audit_log.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/accounts/audit_log.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/accounts/audit_log.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Accounts.AuditLog do
use Hexpm.Web, :schema
schema "audit_logs" do
field :user_agent, :string
field :action, :string
field :params, :map
belongs_to :user, User
belongs_to :repository, Repository
timestamps(updated_at: false)
end
def build(nil, user_agent, action, para... | 35.672515 | 95 | 0.681639 |
b2aff68066edcd2077d1eaab12b56ad337b69d8d | 4,439 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.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... | 58.407895 | 607 | 0.755801 |
b2b01e3550773b0429afa809e0a38a44fdf5f56b | 552 | ex | Elixir | lib/day_one.ex | bennyhat/advent-of-code-2018 | 3ea45cb0b1589ed4cd112a312d31835eb90b4da9 | [
"MIT"
] | null | null | null | lib/day_one.ex | bennyhat/advent-of-code-2018 | 3ea45cb0b1589ed4cd112a312d31835eb90b4da9 | [
"MIT"
] | null | null | null | lib/day_one.ex | bennyhat/advent-of-code-2018 | 3ea45cb0b1589ed4cd112a312d31835eb90b4da9 | [
"MIT"
] | null | null | null | defmodule Advent2018.DayOne do
def part_one(input) do
input
|> String.trim()
|> String.split("\n")
|> Enum.map(&String.to_integer/1)
|> Enum.sum()
end
def part_two(input) do
input
|> String.trim()
|> String.split("\n")
|> Enum.map(&String.to_integer/1)
|> Stream.cycle
... | 20.444444 | 42 | 0.539855 |
b2b0256348862eeb0355b1cca93b68985dd2e21f | 1,105 | ex | Elixir | lib/elixir_tool_box_web/router.ex | okothkongo/elixir-tool-box | 4f7579012294281bf5a5278f2b03b236d25978bc | [
"MIT"
] | null | null | null | lib/elixir_tool_box_web/router.ex | okothkongo/elixir-tool-box | 4f7579012294281bf5a5278f2b03b236d25978bc | [
"MIT"
] | 2 | 2020-10-27T08:37:50.000Z | 2020-10-29T06:38:20.000Z | lib/elixir_tool_box_web/router.ex | okothkongo/elixir-tool-box | 4f7579012294281bf5a5278f2b03b236d25978bc | [
"MIT"
] | null | null | null | defmodule ElixirToolBoxWeb.Router do
use ElixirToolBoxWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", ElixirToolB... | 25.697674 | 70 | 0.706787 |
b2b0321f8a43edb547d457b9457b6606a1f2029e | 1,900 | ex | Elixir | lib/absinthe/plug/types.ex | Adzz/absinthe_plug | 6fc54f7afad881e1a4adbce39d4e9efe396e5bff | [
"MIT"
] | null | null | null | lib/absinthe/plug/types.ex | Adzz/absinthe_plug | 6fc54f7afad881e1a4adbce39d4e9efe396e5bff | [
"MIT"
] | null | null | null | lib/absinthe/plug/types.ex | Adzz/absinthe_plug | 6fc54f7afad881e1a4adbce39d4e9efe396e5bff | [
"MIT"
] | 1 | 2019-04-23T04:22:52.000Z | 2019-04-23T04:22:52.000Z | defmodule Absinthe.Plug.Types do
@moduledoc """
This module provides GraphQL types that may be useful in Absinthe schema
and type modules.
## `:upload`
Absinthe.Plug can be used to upload files via GraphQL.
For example, the following schema includes a mutation field that accepts
multiple uploaded files... | 25.675676 | 85 | 0.667368 |
b2b061ed434061f7e6eb4d9c652089ed8b6d73db | 15,640 | ex | Elixir | kousa/lib/kousa/room.ex | l3gacyb3ta/dogehouse | b3b67a5b9ba84023fcc21bf0062c9e812cfc834c | [
"MIT"
] | null | null | null | kousa/lib/kousa/room.ex | l3gacyb3ta/dogehouse | b3b67a5b9ba84023fcc21bf0062c9e812cfc834c | [
"MIT"
] | null | null | null | kousa/lib/kousa/room.ex | l3gacyb3ta/dogehouse | b3b67a5b9ba84023fcc21bf0062c9e812cfc834c | [
"MIT"
] | null | null | null | defmodule Kousa.Room do
alias Kousa.Utils.VoiceServerUtils
alias Beef.Users
alias Beef.Follows
alias Beef.Rooms
# note the following 2 module aliases are on the chopping block!
alias Beef.RoomPermissions
alias Beef.RoomBlocks
alias Onion.PubSub
alias Onion.UserSession
alias Broth.SocketHandler
de... | 27.247387 | 96 | 0.570716 |
b2b06bb3e937bf5c1205857926745e0f2f31d936 | 2,000 | exs | Elixir | gaius/config/prod.exs | zndx/gaius | 01701d355a3fcbeab49c1f7c6283157357d57336 | [
"MIT"
] | 1 | 2020-10-06T02:01:03.000Z | 2020-10-06T02:01:03.000Z | gaius/config/prod.exs | zndx/gaius | 01701d355a3fcbeab49c1f7c6283157357d57336 | [
"MIT"
] | null | null | null | gaius/config/prod.exs | zndx/gaius | 01701d355a3fcbeab49c1f7c6283157357d57336 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.714286 | 66 | 0.713 |
b2b07b907ec6a893230f13c34a6b073ae9411b02 | 2,306 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/http_fault_injection.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/http_fault_injection.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/http_fault_injection.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... | 46.12 | 427 | 0.757589 |
b2b0e099edb58d8b01ff84f1e12fc68670a7fd83 | 3,758 | exs | Elixir | test/mix/tasks/kitto.install_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 1,047 | 2016-05-11T16:09:29.000Z | 2022-03-29T17:17:26.000Z | test/mix/tasks/kitto.install_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 132 | 2016-10-28T19:44:26.000Z | 2020-12-06T21:16:53.000Z | test/mix/tasks/kitto.install_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 70 | 2016-10-26T00:11:05.000Z | 2022-01-02T21:43:06.000Z | defmodule Mix.Tasks.Kitto.InstallTest do
use ExUnit.Case, async: false
import Mock
import Kitto.FileAssertionHelper
@css_gist_response %{
files: %{"number.scss" => %{filename: "number.scss",
language: "SCSS",
content: "style"}}}
@gist_respo... | 31.847458 | 103 | 0.61735 |
b2b0f29f88d9c3ce82e6da3df45d8f1abcf8a601 | 1,026 | exs | Elixir | config/config.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | config/config.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | config/config.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :hub,
ecto_repos: [Hub.Repo]
# Configu... | 30.176471 | 86 | 0.763158 |
b2b12c3663b4638fe2d88716e798e9618729566d | 661 | exs | Elixir | colby+elixir/mix.exs | NashFP/pond | 31b49c64b9d3879cea20a7821e56a84ede169beb | [
"MIT"
] | 2 | 2016-06-23T18:25:42.000Z | 2016-06-27T01:21:42.000Z | colby+elixir/mix.exs | NashFP/pond | 31b49c64b9d3879cea20a7821e56a84ede169beb | [
"MIT"
] | 1 | 2016-06-29T01:23:52.000Z | 2016-06-29T01:23:52.000Z | colby+elixir/mix.exs | NashFP/pond | 31b49c64b9d3879cea20a7821e56a84ede169beb | [
"MIT"
] | 4 | 2016-06-23T17:15:27.000Z | 2021-11-07T16:28:48.000Z | defmodule Pond.Mixfile do
use Mix.Project
def project do
[app: :pond,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more infor... | 20.030303 | 77 | 0.605144 |
b2b148578de69c0a6a7bfc9a2d2e2c4e4c2b2b8e | 76 | ex | Elixir | apps/bytepack_web/lib/bytepack_web/views/user_reset_password_view.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack_web/lib/bytepack_web/views/user_reset_password_view.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack_web/lib/bytepack_web/views/user_reset_password_view.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule BytepackWeb.UserResetPasswordView do
use BytepackWeb, :view
end
| 19 | 46 | 0.842105 |
b2b183e330f37d02f4e13407cb3ea689be96ccd3 | 223 | exs | Elixir | apps/thundermoon_web/test/thundermoon_web/controllers/page_controller_test.exs | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/thundermoon_web/test/thundermoon_web/controllers/page_controller_test.exs | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/thundermoon_web/test/thundermoon_web/controllers/page_controller_test.exs | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule ThundermoonWeb.PageControllerTest do
use ThundermoonWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to the Thundermoon Project"
end
end
| 24.777778 | 75 | 0.70852 |
b2b1f02d272d6bbae875ac572861316544344c89 | 3,513 | ex | Elixir | lib/pop3mail/header.ex | nico-amsterdam/pop3mail | f4050f1c401e98b0a9c6934c524ab14cb5e8c1f3 | [
"MIT"
] | 19 | 2016-06-28T21:54:57.000Z | 2020-11-02T08:52:21.000Z | lib/pop3mail/header.ex | nico-amsterdam/pop3mail | f4050f1c401e98b0a9c6934c524ab14cb5e8c1f3 | [
"MIT"
] | 4 | 2017-01-31T07:02:40.000Z | 2019-05-24T12:07:31.000Z | lib/pop3mail/header.ex | nico-amsterdam/pop3mail | f4050f1c401e98b0a9c6934c524ab14cb5e8c1f3 | [
"MIT"
] | 9 | 2017-02-15T15:19:11.000Z | 2020-10-06T02:35:00.000Z | defmodule Pop3mail.Header do
alias Pop3mail.FileStore
alias Pop3mail.WordDecoder
@moduledoc "Email header related functions."
@doc """
Lookup value by header name. Returns a string.
If the searched header name occurs multiple times in the list, the result will be the concatenated comma separated valu... | 45.623377 | 147 | 0.66382 |
b2b1f46132ff53aa662055d47f82edcf08513027 | 4,363 | ex | Elixir | lib/day24.ex | p88h/aoc2021 | b42a12ce7ca786b2b5061fdcb46bd850ed54b82c | [
"Apache-2.0"
] | 15 | 2021-12-01T16:50:40.000Z | 2022-01-04T02:44:00.000Z | lib/day24.ex | p88h/aoc2021 | b42a12ce7ca786b2b5061fdcb46bd850ed54b82c | [
"Apache-2.0"
] | null | null | null | lib/day24.ex | p88h/aoc2021 | b42a12ce7ca786b2b5061fdcb46bd850ed54b82c | [
"Apache-2.0"
] | 6 | 2021-12-08T01:33:56.000Z | 2021-12-29T11:45:52.000Z | defmodule Aoc2021.Day24 do
def expr(val, inp \\ [], left \\ nil), do: { val, inp, left }
def ezero(), do: {0, [], nil}
def emin({val, inp, nil}), do: length(inp)+val
def emin({val, inp, left}), do: emin(left)+length(inp)+val
def emax({val, inp, nil}), do: 9*length(inp)+val
def emax({val, inp, left}), do: e... | 38.27193 | 116 | 0.536557 |
b2b1f56ab9572ac2646feca5806b2cced14a47f1 | 569 | exs | Elixir | test/zigor_proxy/bitconverter_test.exs | SoroushMehrInst/ZigorProxy | a8571bb4a5bb8306c6c6c80a6b0a519161744c5e | [
"Apache-2.0"
] | null | null | null | test/zigor_proxy/bitconverter_test.exs | SoroushMehrInst/ZigorProxy | a8571bb4a5bb8306c6c6c80a6b0a519161744c5e | [
"Apache-2.0"
] | null | null | null | test/zigor_proxy/bitconverter_test.exs | SoroushMehrInst/ZigorProxy | a8571bb4a5bb8306c6c6c80a6b0a519161744c5e | [
"Apache-2.0"
] | null | null | null | defmodule ZigorProxy.BitConverterTest do
use ExUnit.Case
import ZigorProxy.BitConverter
doctest ZigorProxy.BitConverter
test ".converting int to bytes and bytes to ints is working with negative numbers?" do
num = :rand.uniform(1_000_000)
data = int32_bytes(num)
num_back = get_int32(data)
assert... | 28.45 | 88 | 0.72232 |
b2b2167611e424f1cacb93b4433a950e5cce3a35 | 1,604 | ex | Elixir | apps/poker_web/lib/poker_web/endpoint.ex | thetamind/elixir_phoenix_poker | 125faa62d52b78101fee51e4d4639c1caa8fa033 | [
"MIT"
] | null | null | null | apps/poker_web/lib/poker_web/endpoint.ex | thetamind/elixir_phoenix_poker | 125faa62d52b78101fee51e4d4639c1caa8fa033 | [
"MIT"
] | null | null | null | apps/poker_web/lib/poker_web/endpoint.ex | thetamind/elixir_phoenix_poker | 125faa62d52b78101fee51e4d4639c1caa8fa033 | [
"MIT"
] | null | null | null | defmodule Poker.Web.Endpoint do
use Phoenix.Endpoint, otp_app: :poker_web
socket "/socket", Poker.Web.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Sta... | 29.163636 | 93 | 0.716334 |
b2b223bc1af1a489df30071ae4a97809c43e7daf | 976 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 37.538462 | 77 | 0.766393 |
b2b2385ff2926778de905da4e02b258685128af7 | 1,121 | exs | Elixir | config/config.exs | cthree/stacky | 12203434cc60d4b3299cf8e9f1daef414a27380b | [
"MIT"
] | null | null | null | config/config.exs | cthree/stacky | 12203434cc60d4b3299cf8e9f1daef414a27380b | [
"MIT"
] | null | null | null | config/config.exs | cthree/stacky | 12203434cc60d4b3299cf8e9f1daef414a27380b | [
"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.16129 | 73 | 0.751115 |
b2b23e9628243790b95cf2af57f991f007426fde | 720 | ex | Elixir | apps/omg_rpc/lib/rpc.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/lib/rpc.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/lib/rpc.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 36 | 91 | 0.751389 |
b2b24aeeb0017e35a3c53baef612d0a86cc011ce | 5,762 | exs | Elixir | test/endpoints/iyzipay_errors_test.exs | Chatatata/iyzico | 99f195e51b732e124bba82ad78c12d8f5ecbdf08 | [
"MIT"
] | 6 | 2017-08-22T15:27:33.000Z | 2019-01-25T10:31:10.000Z | test/endpoints/iyzipay_errors_test.exs | i386-64/iyzico | 99f195e51b732e124bba82ad78c12d8f5ecbdf08 | [
"MIT"
] | 12 | 2017-08-23T13:21:26.000Z | 2020-03-31T21:07:23.000Z | test/endpoints/iyzipay_errors_test.exs | i386-64/iyzico | 99f195e51b732e124bba82ad78c12d8f5ecbdf08 | [
"MIT"
] | 4 | 2017-09-24T15:40:08.000Z | 2020-01-31T10:21:32.000Z | defmodule Iyzico.IyzipayErrorsTest do
use Iyzico.EndpointCase
doctest Iyzico.Iyzipay
alias Iyzico.Address
alias Iyzico.BasketItem
alias Iyzico.Buyer
alias Iyzico.Card
alias Iyzico.PaymentRequest
@current_locale Application.get_env(:iyzico, Iyzico)[:locale]
setup do
card =
%Card{
h... | 32.925714 | 125 | 0.589205 |
b2b2544620bb1f385503979d9054ae23a232298a | 754 | ex | Elixir | apps/gullintanni/lib/gullintanni/webhook/event.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-09T21:27:54.000Z | 2020-12-03T11:21:10.000Z | apps/gullintanni/lib/gullintanni/webhook/event.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-04T21:11:05.000Z | 2017-08-02T17:46:17.000Z | apps/gullintanni/lib/gullintanni/webhook/event.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | null | null | null | defmodule Gullintanni.Webhook.Event do
@moduledoc """
Utility module for extracting information from webhook events.
"""
@typedoc "The payload of an event"
@type payload :: map
@typedoc "The event type"
@type t :: Plug.Conn.t
@doc """
Returns the value of the request header specified by `key`.
R... | 24.322581 | 70 | 0.659151 |
b2b25c3fed40e093ede4b65f9d0ab164657e6a96 | 30,386 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/datetime/formatter.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/datetime/formatter.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/datetime/formatter.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule Timex.Format.DateTime.Formatter do
@moduledoc """
This module defines the behaviour for custom DateTime formatters.
"""
use Behaviour
alias Timex.{Timezone, Translator, Types}
alias Timex.Translator
alias Timex.Format.FormatError
alias Timex.Format.DateTime.Formatters.{Default, Strftime, Rela... | 46.891975 | 124 | 0.660666 |
b2b2939a162288fc153d0d56fa26c2c2c2cae08d | 697 | ex | Elixir | lib/fastfwd/behaviours/receiver.ex | Digital-Identity-Labs/fastfwd | 186e2875f86b52cab405f7e6dbc4cd4815764ff8 | [
"MIT"
] | 2 | 2021-01-08T04:06:26.000Z | 2021-01-08T10:30:34.000Z | lib/fastfwd/behaviours/receiver.ex | Digital-Identity-Labs/fastfwd | 186e2875f86b52cab405f7e6dbc4cd4815764ff8 | [
"MIT"
] | null | null | null | lib/fastfwd/behaviours/receiver.ex | Digital-Identity-Labs/fastfwd | 186e2875f86b52cab405f7e6dbc4cd4815764ff8 | [
"MIT"
] | null | null | null | defmodule Fastfwd.Behaviours.Receiver do
@moduledoc """
Default receiver Behaviour specification
This is the behaviour spec used by Fastfwd by default for receiver modules that will act as adapters or
plugins.
Please see the `Fastfwd.Receiver` module for the default implementation of this behavior.
The ... | 24.034483 | 119 | 0.724534 |
b2b29df02cfec86707352effdb84ca838fef7749 | 1,682 | ex | Elixir | lib/ash/filter/predicate/greater_than_or_equal.ex | sobolevn/ash | 5eca8379377a633100ca14c13c6994fa61c8f7ea | [
"MIT"
] | null | null | null | lib/ash/filter/predicate/greater_than_or_equal.ex | sobolevn/ash | 5eca8379377a633100ca14c13c6994fa61c8f7ea | [
"MIT"
] | null | null | null | lib/ash/filter/predicate/greater_than_or_equal.ex | sobolevn/ash | 5eca8379377a633100ca14c13c6994fa61c8f7ea | [
"MIT"
] | null | null | null | defmodule Ash.Filter.Predicate.GreaterThanOrEqual do
@moduledoc "A predicate for a value being greater than the provided value"
defstruct [:field, :value, :type]
alias Ash.Filter.Predicate.Eq
alias Ash.Error.Query.InvalidFilterValue
use Ash.Filter.Predicate
def new(_resource, attribute, value) do
ca... | 25.876923 | 92 | 0.666468 |
b2b29e33efd24d9312bcadb665b1ea034ed0edd7 | 1,343 | exs | Elixir | mix.exs | IceDragon200/bugsnag-elixir | 98e29ee372aec3772072e27697b008b3bd3126fc | [
"MIT"
] | 73 | 2015-01-03T14:55:25.000Z | 2020-05-02T21:26:59.000Z | mix.exs | IceDragon200/bugsnag-elixir | 98e29ee372aec3772072e27697b008b3bd3126fc | [
"MIT"
] | 79 | 2015-05-03T19:18:56.000Z | 2020-06-15T12:10:42.000Z | mix.exs | IceDragon200/bugsnag-elixir | 98e29ee372aec3772072e27697b008b3bd3126fc | [
"MIT"
] | 74 | 2015-03-29T02:18:02.000Z | 2020-06-24T09:28:36.000Z | defmodule Bugsnag.Mixfile do
use Mix.Project
@source_url "https://github.com/bugsnag-elixir/bugsnag-elixir"
@version "3.0.2"
def project do
[
app: :bugsnag,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
description: "A... | 22.016393 | 84 | 0.545793 |
b2b2b8b980b52684cc2212ba95be5182abba3ab3 | 966 | ex | Elixir | test/support/channel_case.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | test/support/channel_case.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | 7 | 2019-09-20T02:00:23.000Z | 2019-10-07T04:22:51.000Z | test/support/channel_case.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | defmodule CreekDictAdminWeb.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 data structures and query the data layer.
Finally, if the test case inte... | 25.421053 | 76 | 0.723602 |
b2b2d16c583422787e6ea25f21f0c3ef0fdccc95 | 1,156 | exs | Elixir | config/config.exs | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | config/config.exs | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | config/config.exs | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"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... | 34 | 73 | 0.752595 |
b2b2d7a72387ca4bac066e505642922978fd89d0 | 888 | ex | Elixir | lib/xml_stream_writer.ex | bettio/xml_stream_writer | 0bab7d293de5069aff37d123ff389ab7b4d38cac | [
"Apache-2.0"
] | null | null | null | lib/xml_stream_writer.ex | bettio/xml_stream_writer | 0bab7d293de5069aff37d123ff389ab7b4d38cac | [
"Apache-2.0"
] | null | null | null | lib/xml_stream_writer.ex | bettio/xml_stream_writer | 0bab7d293de5069aff37d123ff389ab7b4d38cac | [
"Apache-2.0"
] | null | null | null | defmodule XMLStreamWriter do
def new_document() do
{:ok, "", []}
end
def start_document(state) do
{:ok, ~s(<?xml version="1.0" encoding="UTF-8"?>), state}
end
def start_element(state, local_name, attributes) do
attributes_string = format_attributes(attributes)
{:ok, [?<, local_name, attribu... | 24.666667 | 72 | 0.657658 |
b2b3506625118f6683e7079e943743997b737abf | 2,053 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/list_instances_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/list_instances_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/list_instances_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.735849 | 200 | 0.731125 |
b2b36d06d7b2849712e6c737d99a502b5915c1ff | 79 | exs | Elixir | test/credo/config_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/config_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/config_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.ConfigTest do
use ExUnit.Case
# alias Credo.Execution
end
| 13.166667 | 29 | 0.772152 |
b2b390889ceb675ee7f743447c9e4d3194462ae4 | 645 | ex | Elixir | test/support/my_heart.ex | fcapovilla/heartcheck-elixir | b46bc0f8ab46edcf1b14a20de59529868de1ca32 | [
"MIT"
] | 31 | 2018-01-09T14:34:22.000Z | 2022-03-30T18:14:01.000Z | test/support/my_heart.ex | fcapovilla/heartcheck-elixir | b46bc0f8ab46edcf1b14a20de59529868de1ca32 | [
"MIT"
] | 7 | 2018-12-24T01:18:34.000Z | 2021-10-13T03:10:06.000Z | test/support/my_heart.ex | fcapovilla/heartcheck-elixir | b46bc0f8ab46edcf1b14a20de59529868de1ca32 | [
"MIT"
] | 6 | 2018-12-22T19:19:38.000Z | 2021-09-30T17:04:56.000Z | defmodule MyHeart do
@moduledoc false
use HeartCheck, timeout: 1000
add :redis do
:ok
end
add "string_test" do
:ok
end
add :failing do
{:error, "I always fail"}
end
add :cas do
{:error, "failed"}
end
firewall(:domain_name, "http://doesnot.exist")
firewall(:domain_lazy, "ht... | 17.432432 | 66 | 0.646512 |
b2b3927c464d9307affaf4168c267983eeb29da0 | 14,347 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/node_types.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/node_types.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/node_types.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... | 59.53112 | 511 | 0.671011 |
b2b3a16208310665ce59caa7230765ce51b79af7 | 168 | exs | Elixir | priv/repo/migrations/20210930183223_index_test_results_eclrs_create_date.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | priv/repo/migrations/20210930183223_index_test_results_eclrs_create_date.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210930183223_index_test_results_eclrs_create_date.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Repo.Migrations.IndexTestResultsEclrsCreateDate do
use Ecto.Migration
def change do
create index(:test_results, :eclrs_create_date)
end
end
| 21 | 67 | 0.803571 |
b2b3a6f04075ecba1a3da83aeba3e77d946c30f0 | 469 | exs | Elixir | test/square_test.exs | LukeWood/RGG-Elixir | 3b032ca42adde890f5e28c7e58f5eab23194b9eb | [
"MIT"
] | 1 | 2019-06-25T04:26:49.000Z | 2019-06-25T04:26:49.000Z | test/square_test.exs | LukeWood/RGG-Elixir | 3b032ca42adde890f5e28c7e58f5eab23194b9eb | [
"MIT"
] | 3 | 2018-04-01T22:53:22.000Z | 2018-04-02T00:43:55.000Z | test/square_test.exs | LukeWood/RGG-Elixir | 3b032ca42adde890f5e28c7e58f5eab23194b9eb | [
"MIT"
] | null | null | null | defmodule RGG.SquareTest do
use ExUnit.Case
doctest RGG.Square
describe "RGG Square" do
test "n=10000, a=25" do
n=10000
a=25
adj_list = RGG.unit_square(n, a)
degrees = RGG.Util.degrees(adj_list)
average_degree = RGG.Util.average_degree(degrees)
err = abs((a - average_degre... | 24.684211 | 85 | 0.641791 |
b2b3af5c007b1fe134d6e38e2d01d38e19ab7fba | 3,434 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/search_user_activity_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/search_user_activity_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/search_user_activity_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 53.65625 | 335 | 0.746942 |
b2b3b779dad62ee771a7817383e3a3140d11d79a | 132 | exs | Elixir | test/gamma_test.exs | zacky1972/gamma | e2e8c4d4c78c41ea3e9de9eebaaca7bb899cba4c | [
"Apache-2.0"
] | null | null | null | test/gamma_test.exs | zacky1972/gamma | e2e8c4d4c78c41ea3e9de9eebaaca7bb899cba4c | [
"Apache-2.0"
] | null | null | null | test/gamma_test.exs | zacky1972/gamma | e2e8c4d4c78c41ea3e9de9eebaaca7bb899cba4c | [
"Apache-2.0"
] | null | null | null | defmodule GammaTest do
use ExUnit.Case
doctest Gamma
test "greets the world" do
assert Gamma.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
b2b3c3a557f1775d9b996447131eed42b9453381 | 274 | exs | Elixir | integration_test/temple_demo/priv/repo/migrations/20200522023854_create_posts.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | integration_test/temple_demo/priv/repo/migrations/20200522023854_create_posts.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | integration_test/temple_demo/priv/repo/migrations/20200522023854_create_posts.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | defmodule TempleDemo.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :title, :string
add :body, :text
add :published_at, :naive_datetime
add :author, :string
timestamps()
end
end
end
| 17.125 | 51 | 0.653285 |
b2b3e1c48ec50d04e62625bf2e1605bebe0f8c44 | 1,238 | exs | Elixir | test/ido_keido_web/requests/country_test.exs | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 6 | 2019-11-15T20:34:47.000Z | 2021-04-05T03:15:23.000Z | test/ido_keido_web/requests/country_test.exs | FindHotel/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 1 | 2022-03-20T09:34:42.000Z | 2022-03-20T09:34:42.000Z | test/ido_keido_web/requests/country_test.exs | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 3 | 2021-06-09T05:58:09.000Z | 2022-03-20T07:05:13.000Z | defmodule IdoKeidoWeb.Requests.CountryTest do
use IdoKeidoWeb.ConnCase, async: true
import Mox
alias IdoKeido.{Continent, Country, CountryResult, GeolocationMock}
@ip "134.201.250.155"
describe "GET /country/:ip" do
test "returns country data", %{conn: conn} do
country_result = %CountryResult{
... | 23.358491 | 72 | 0.538772 |
b2b42434e1dfcc692384d46deaaf90a47f89a4d7 | 189 | ex | Elixir | sequence_supervisor/lib/sequence.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | sequence_supervisor/lib/sequence.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | sequence_supervisor/lib/sequence.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | defmodule Sequence do
use Application
def start(_type, _args) do
{:ok, _pid} = Sequence.Supervisor.start_link(Application.get_env(:sequence_supervisor, :initial_number))
end
end
| 23.625 | 108 | 0.761905 |
b2b42689b5e43c5dae26ecbdd5a034a5b7a5a7ef | 1,550 | ex | Elixir | lib/chit_chat_web/views/error_helpers.ex | areski/ex-chitchat | 0ec14e9af6acba40d6708f924b76fb4fbe592dcf | [
"MIT"
] | 1 | 2021-09-10T16:49:36.000Z | 2021-09-10T16:49:36.000Z | lib/chit_chat_web/views/error_helpers.ex | areski/ex-chitchat | 0ec14e9af6acba40d6708f924b76fb4fbe592dcf | [
"MIT"
] | 2 | 2020-05-22T18:42:14.000Z | 2021-01-25T16:34:38.000Z | lib/chit_chat_web/views/error_helpers.ex | areski/ex-chitchat | 0ec14e9af6acba40d6708f924b76fb4fbe592dcf | [
"MIT"
] | null | null | null | defmodule ChitChatWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag... | 32.291667 | 77 | 0.665806 |
b2b44443575a723e1b733cabdd668a12cdde270c | 3,296 | exs | Elixir | test/lua_test.exs | bendiken/exlua | bbc72b909d1797bb6e14ce95af0cfeb1a59a4ffe | [
"Unlicense"
] | 32 | 2016-08-04T10:33:02.000Z | 2018-09-01T20:27:59.000Z | test/lua_test.exs | bendiken/exlua | bbc72b909d1797bb6e14ce95af0cfeb1a59a4ffe | [
"Unlicense"
] | 4 | 2016-08-05T09:56:10.000Z | 2018-06-26T10:27:59.000Z | test/lua_test.exs | bendiken/exlua | bbc72b909d1797bb6e14ce95af0cfeb1a59a4ffe | [
"Unlicense"
] | 4 | 2016-12-14T18:14:51.000Z | 2017-12-31T02:13:05.000Z | # This is free and unencumbered software released into the public domain.
defmodule LuaTest do
use ExUnit.Case, async: true
doctest Lua
test "Lua.gc!/1" do
assert %Lua.State{} = Lua.gc(Lua.State.new)
end
test "Lua.eval/2" do
assert {:ok, [42.0]} = Lua.eval(Lua.State.new, "return 6 * 7")
assert... | 38.325581 | 110 | 0.62591 |
b2b445721e398fdacca0915f1a08d484890e1011 | 112 | ex | Elixir | fixtures/module_with_dep_renamed.ex | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 54 | 2020-10-06T09:11:06.000Z | 2022-03-14T12:47:49.000Z | fixtures/module_with_dep_renamed.ex | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 6 | 2020-10-07T04:15:37.000Z | 2021-11-15T18:46:10.000Z | fixtures/module_with_dep_renamed.ex | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 1 | 2020-10-05T19:36:19.000Z | 2020-10-05T19:36:19.000Z | defmodule Rewire.ModuleWithRenamedDependency do
alias Rewire.Hello, as: Hi
def hello(), do: Hi.hello()
end
| 18.666667 | 47 | 0.75 |
b2b48e39a85a82c12fd51c0d1bfcb9cac12cf6c6 | 1,804 | ex | Elixir | lib/connex/pool.ex | gumi/connex | 0552f25a878348a43a073df9d4e66e3dad2e5df5 | [
"Apache-2.0"
] | 2 | 2020-02-07T17:49:52.000Z | 2021-05-31T14:35:34.000Z | lib/connex/pool.ex | gumi/connex | 0552f25a878348a43a073df9d4e66e3dad2e5df5 | [
"Apache-2.0"
] | 2 | 2019-02-26T05:09:20.000Z | 2019-07-11T09:46:25.000Z | lib/connex/pool.ex | gumi/connex | 0552f25a878348a43a073df9d4e66e3dad2e5df5 | [
"Apache-2.0"
] | null | null | null | defmodule Connex.Pool do
def make_real_pool_name(config_name, pool_name) do
Module.concat(config_name, pool_name)
end
def child_spec(config_name, pool_name, default_pool_args) do
config = Application.fetch_env!(:connex, config_name)
pools = Keyword.fetch!(config, :pools)
{pool_args, worker_args} ... | 32.214286 | 80 | 0.706763 |
b2b4bf940cf122aad48601e987bb743655559318 | 912 | ex | Elixir | socket_gallows/lib/socket_gallows/application.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | socket_gallows/lib/socket_gallows/application.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | socket_gallows/lib/socket_gallows/application.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | defmodule SocketGallows.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application star... | 30.4 | 72 | 0.73136 |
b2b4fc6049a89a9f9962cd1cdb6d883b230678a3 | 1,727 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.744681 | 309 | 0.749276 |
b2b52bc91808efeef1ec1d78593332a2e9d0e0f6 | 2,329 | ex | Elixir | lib/data/item/compiled.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/item/compiled.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/item/compiled.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Item.Compiled do
@moduledoc """
An item is compiled after the item aspects are rolled together and merged
with the base item's stats.
"""
alias Data.Item
@fields [
:id,
:level,
:name,
:description,
:type,
:keywords,
:stats,
:effects,
:cost,
:usage_com... | 24.010309 | 88 | 0.6462 |
b2b536caae88e967b24b63379221ab7111f1d368 | 1,909 | exs | Elixir | installer/templates/phx_single/mix.exs | febeling/phoenix | 444569fb99a599d67ec16fd492c3681412dd5759 | [
"MIT"
] | 1 | 2015-05-19T11:04:16.000Z | 2015-05-19T11:04:16.000Z | installer/templates/phx_single/mix.exs | febeling/phoenix | 444569fb99a599d67ec16fd492c3681412dd5759 | [
"MIT"
] | null | null | null | installer/templates/phx_single/mix.exs | febeling/phoenix | 444569fb99a599d67ec16fd492c3681412dd5759 | [
"MIT"
] | null | null | null | defmodule <%= app_module %>.Mixfile do
use Mix.Project
def project do
[
app: :<%= app_name %>,
version: "0.0.1",<%= if in_umbrella do %>
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",<% end %>
el... | 29.369231 | 79 | 0.563646 |
b2b539a5950ffb071f6d3c057885d00b82a7fbc4 | 102 | exs | Elixir | apps/blockchain/test/blockchain/contract_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/blockchain/test/blockchain/contract_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/blockchain/test/blockchain/contract_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule Blockchain.ContractTest do
use ExUnit.Case, async: true
doctest Blockchain.Contract
end
| 20.4 | 36 | 0.813725 |
b2b5490f1548b40fad8ac7e71fe49ec78f841f81 | 1,612 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/emoji.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/emoji.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/emoji.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... | 32.24 | 112 | 0.723325 |
b2b54ea32293cbb5822077a049e9fa360c6d54b7 | 81 | exs | Elixir | config/env/test.exs | theo-agilelab/nookal-elixir | 09db7cc48c48ed1e714fb74c5c38c9a21e7e189a | [
"MIT"
] | 1 | 2020-06-11T07:57:06.000Z | 2020-06-11T07:57:06.000Z | config/env/test.exs | theo-agilelab/nookal-elixir | 09db7cc48c48ed1e714fb74c5c38c9a21e7e189a | [
"MIT"
] | null | null | null | config/env/test.exs | theo-agilelab/nookal-elixir | 09db7cc48c48ed1e714fb74c5c38c9a21e7e189a | [
"MIT"
] | 1 | 2019-09-05T08:30:48.000Z | 2019-09-05T08:30:48.000Z | use Mix.Config
config :nookal, api_key: "dummy", http_client: Nookal.ClientMock
| 20.25 | 64 | 0.777778 |
b2b5739fd13b282d0d80207dbbdeaac284d3f117 | 1,369 | ex | Elixir | config/dispatcher/dispatcher.ex | nathanielrb/graph-acl-basics | 0147fb964330795e00a957e45a03318f51270434 | [
"MIT"
] | 2 | 2019-04-28T13:50:34.000Z | 2020-02-05T00:19:23.000Z | config/dispatcher/dispatcher.ex | nathanielrb/elastic-prototype | 739a5ad681b095fa4d5ca2841c57c8b66b3b30cc | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | nathanielrb/elastic-prototype | 739a5ad681b095fa4d5ca2841c57c8b66b3b30cc | [
"MIT"
] | 1 | 2018-08-09T16:11:29.000Z | 2018-08-09T16:11:29.000Z | defmodule Dispatcher do
use Plug.Router
def start(_argv) do
port = 80
IO.puts "Starting Plug with Cowboy on port #{port}"
Plug.Adapters.Cowboy.http __MODULE__, [], port: port
:timer.sleep(:infinity)
end
plug Plug.Logger
plug :match
plug :dispatch
# In order to forward the 'themes' resou... | 22.080645 | 72 | 0.654492 |
b2b5ae94fc5dea1b8868ed90c833c4e039649f41 | 1,650 | exs | Elixir | test/bson/types_test.exs | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | 1 | 2019-01-24T09:02:56.000Z | 2019-01-24T09:02:56.000Z | test/bson/types_test.exs | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | 7 | 2018-10-12T07:53:57.000Z | 2018-10-14T19:06:55.000Z | test/bson/types_test.exs | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | null | null | null | defmodule BSON.TypesTest do
use ExUnit.Case, async: true
test "inspect BSON.Binary" do
value = %BSON.Binary{binary: <<1, 2, 3>>}
assert inspect(value) == "#BSON.Binary<010203>"
value = %BSON.Binary{binary: <<1, 2, 3>>, subtype: :uuid}
assert inspect(value) == "#BSON.Binary<010203, uuid>"
end
... | 29.464286 | 90 | 0.635152 |
b2b5c5d17d5d4beff7ced7ee70a07122a825855b | 37 | ex | Elixir | frontiers_site/lib/frontiers_site/model.ex | wasmCloud/frontiers | 20eb6f4f7e59332341cd3973869758c670b54e2c | [
"Apache-2.0"
] | 1 | 2021-06-13T22:12:50.000Z | 2021-06-13T22:12:50.000Z | frontiers_site/lib/frontiers_site/model.ex | wasmCloud/frontiers | 20eb6f4f7e59332341cd3973869758c670b54e2c | [
"Apache-2.0"
] | null | null | null | frontiers_site/lib/frontiers_site/model.ex | wasmCloud/frontiers | 20eb6f4f7e59332341cd3973869758c670b54e2c | [
"Apache-2.0"
] | null | null | null | defmodule FrontiersSite.Model do
end
| 12.333333 | 32 | 0.864865 |
b2b5d893c7b6b9b18e2fff4127707c1d426b6f65 | 983 | ex | Elixir | api/web/views/error_helpers.ex | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 34 | 2017-01-02T14:00:25.000Z | 2021-11-20T20:51:41.000Z | api/web/views/error_helpers.ex | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 3 | 2017-08-02T19:38:27.000Z | 2022-03-02T03:34:27.000Z | api/web/views/error_helpers.ex | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 5 | 2017-02-19T20:34:09.000Z | 2021-10-05T11:35:11.000Z | defmodule Sling.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# Because error messages were defined within Ecto, we must
# call the Gettext module passing our... | 32.766667 | 71 | 0.667345 |
b2b606dee91f376d6fe466543f15edbe5a7d31cb | 2,363 | ex | Elixir | clients/content/lib/google_api/content/v21/model/date.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/date.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/date.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.584906 | 567 | 0.7135 |
b2b62078df8c212dcd7eb7611c6ef7b582580bea | 409 | exs | Elixir | mix.exs | Schultzer/myxql | fbcbcade9a63d310da1847699422ab11f28a9abb | [
"Apache-2.0"
] | null | null | null | mix.exs | Schultzer/myxql | fbcbcade9a63d310da1847699422ab11f28a9abb | [
"Apache-2.0"
] | null | null | null | mix.exs | Schultzer/myxql | fbcbcade9a63d310da1847699422ab11f28a9abb | [
"Apache-2.0"
] | null | null | null | defmodule MyXQL.MixProject do
use Mix.Project
def project() do
[
app: :myxql,
version: "0.1.0",
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application() do
[
extra_applications: [:logger]
]
end
defp deps() do
[
... | 15.148148 | 48 | 0.488998 |
b2b64eb6c5570aa5c4d1fdaaf9b509dd77db56b1 | 2,198 | ex | Elixir | lib/kaffe/consumer_group/group_member_supervisor.ex | IvanIvanoff/kaffe | ffe4a70657865950aca6cd7642d22f3b55a3ca49 | [
"MIT"
] | null | null | null | lib/kaffe/consumer_group/group_member_supervisor.ex | IvanIvanoff/kaffe | ffe4a70657865950aca6cd7642d22f3b55a3ca49 | [
"MIT"
] | null | null | null | lib/kaffe/consumer_group/group_member_supervisor.ex | IvanIvanoff/kaffe | ffe4a70657865950aca6cd7642d22f3b55a3ca49 | [
"MIT"
] | null | null | null | defmodule Kaffe.GroupMemberSupervisor do
@moduledoc """
The top-level supervisor for consumer group members.
Consuming messages from a Kafka topic as part of a consumer group is broken
out into the following distinct components:
- GroupMember
- Subscriber
- Worker
- WorkerManager
- WorkerS... | 28.545455 | 97 | 0.72748 |
b2b65fa4cb0d48791ed17b38a25876b5fee6b569 | 15,712 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creatives.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creatives.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creatives.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... | 46.348083 | 480 | 0.63321 |
b2b67e596463c63f9a56e2f1f1624db8df006ec4 | 2,426 | exs | Elixir | test/api/accounts/user_test.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | test/api/accounts/user_test.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | test/api/accounts/user_test.exs | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.UserTest do
use Api.DataCase
alias Api.Accounts.User
@valid_attrs %{
email: "johndoe@example.com",
name: "john doe",
password: "thisisapassword"
}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert change... | 24.755102 | 79 | 0.657049 |
b2b6870dfcfd3a0b393e4371af4e5fd631327d43 | 1,151 | exs | Elixir | config/config.exs | BinaryNoggin/ConfigAdapter | c014e594faa434c3b20d47dab8dfa94be32479db | [
"MIT"
] | 3 | 2018-04-26T17:56:11.000Z | 2020-01-26T14:42:32.000Z | config/config.exs | BinaryNoggin/ConfigAdapter | c014e594faa434c3b20d47dab8dfa94be32479db | [
"MIT"
] | 4 | 2018-09-19T19:17:37.000Z | 2021-02-18T14:30:18.000Z | config/config.exs | BinaryNoggin/ConfigAdapter | c014e594faa434c3b20d47dab8dfa94be32479db | [
"MIT"
] | 5 | 2018-06-17T21:06:33.000Z | 2020-08-12T13:48:19.000Z | # 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... | 37.129032 | 73 | 0.757602 |
b2b6aadb3d7c50af5a43e0f37c7b7e9530e4c4dc | 2,276 | exs | Elixir | packages/templates/src/project/potionx/config/dev.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | packages/templates/src/project/potionx/config/dev.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | packages/templates/src/project/potionx/config/dev.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | import 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.
port = 4000
config :<%= appName %>, <%= endpointModule %>,... | 27.421687 | 73 | 0.664323 |
b2b6d27f679b8f5104ca5e051d48936736cfaa30 | 132 | ex | Elixir | lib/dutu/utils.ex | charl3sj/dutu | dbc56c863f5874137175ba4ede34f3ff69a004a6 | [
"MIT"
] | null | null | null | lib/dutu/utils.ex | charl3sj/dutu | dbc56c863f5874137175ba4ede34f3ff69a004a6 | [
"MIT"
] | null | null | null | lib/dutu/utils.ex | charl3sj/dutu | dbc56c863f5874137175ba4ede34f3ff69a004a6 | [
"MIT"
] | null | null | null | defmodule Dutu.Utils do
def ensure_map(%{__struct__: _} = struct), do: Map.from_struct(struct)
def ensure_map(map), do: map
end
| 26.4 | 72 | 0.727273 |
b2b6d31391936d24b6b083335bb671bf6e3d726b | 669 | exs | Elixir | priv/repo/migrations/19700101000009_schemas_city_blocks_ip4r.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | 1 | 2020-06-20T14:40:16.000Z | 2020-06-20T14:40:16.000Z | priv/repo/migrations/19700101000009_schemas_city_blocks_ip4r.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/19700101000009_schemas_city_blocks_ip4r.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Adapter.MaxMindCSV.Repo.Migrations.SchemasCityBlocksIP4R do
use Ecto.Migration
def change do
create table("geolix_maxmind_csv_city_blocks_ip4r", primary_key: false) do
add :network, :ip4r
add :geoname_id, :integer
add :registered_country_geoname_id, :integer
add :repres... | 31.857143 | 81 | 0.726457 |
b2b6fab61a9d0b447ccec37e8b96e3415e48703f | 1,128 | exs | Elixir | mix.exs | ELouisYoung/yt_potion | daf6b91ac424ed19fb1dd28aa48df602fdffa9a1 | [
"MIT"
] | null | null | null | mix.exs | ELouisYoung/yt_potion | daf6b91ac424ed19fb1dd28aa48df602fdffa9a1 | [
"MIT"
] | null | null | null | mix.exs | ELouisYoung/yt_potion | daf6b91ac424ed19fb1dd28aa48df602fdffa9a1 | [
"MIT"
] | null | null | null | defmodule YtPotion.Mixfile do
use Mix.Project
def project do
[app: :yt_potion,
version: "0.1.4",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
deps: deps(),
package: package()]
end
# Configuration for t... | 21.692308 | 77 | 0.575355 |
b2b700b4bd8f5f5a87c3b6e17720f8aaa6d1749c | 180 | exs | Elixir | StringsAndBinaries/11.6.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | 2 | 2015-11-14T21:35:01.000Z | 2017-07-12T07:09:40.000Z | StringsAndBinaries/11.6.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | StringsAndBinaries/11.6.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | defmodule Capitalize do
def capitalize_sentences(string) do
separator = ". "
String.split(string, separator)
|> Enum.map(&String.capitalize/1)
|> Enum.join ". "
end
end | 22.5 | 36 | 0.694444 |
b2b718a357bee085e55ab23d9048b226f223277f | 360 | exs | Elixir | priv/repo/seeds.exs | aliksend/armed_hipster | afe4f769b43f91988d1e1555355a99094dd1447d | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | aliksend/armed_hipster | afe4f769b43f91988d1e1555355a99094dd1447d | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | aliksend/armed_hipster | afe4f769b43f91988d1e1555355a99094dd1447d | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# ArmedHipster.Repo.insert!(%ArmedHipster.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as ... | 30 | 61 | 0.713889 |
b2b71e432323c0fa24e2df05f1d4a5c4c314598b | 900 | exs | Elixir | test/prom_ex/debug_test.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 354 | 2020-10-21T06:27:15.000Z | 2022-03-29T13:22:46.000Z | test/prom_ex/debug_test.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 111 | 2020-11-25T21:27:13.000Z | 2022-03-28T10:42:59.000Z | test/prom_ex/debug_test.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 45 | 2020-12-31T20:37:11.000Z | 2022-03-18T13:12:21.000Z | defmodule PromEx.DebugTest do
use ExUnit.Case, async: false
import ExUnit.CaptureIO
alias PromEx.Debug
alias Telemetry.Metrics
describe "attach_debugger/1" do
test "should output debugging information when a Telemetry.Metrics type struct is provided" do
Metrics.counter(
[:test_event_total... | 29.032258 | 98 | 0.616667 |
b2b75225186388de8ac255a08ef35addcf70a2d1 | 502 | exs | Elixir | mix.exs | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | 1 | 2018-12-30T04:37:15.000Z | 2018-12-30T04:37:15.000Z | mix.exs | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | mix.exs | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | defmodule Morsey.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# R... | 20.916667 | 59 | 0.595618 |
b2b75324cd42c1132fea9484a7e5b561116f57ab | 333 | exs | Elixir | priv/repo/migrations/20170324202047_create_coherence_invitable.exs | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170324202047_create_coherence_invitable.exs | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170324202047_create_coherence_invitable.exs | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | defmodule Login.Repo.Migrations.CreateCoherenceInvitable do
use Ecto.Migration
def change do
create table(:invitations) do
add :name, :string
add :email, :string
add :token, :string
timestamps
end
create unique_index(:invitations, [:email])
create index(:invitations, [:token]... | 22.2 | 59 | 0.678679 |
b2b758101e9e1b9b51973eb506d51914a6e83cac | 1,085 | ex | Elixir | lib/livebook_web/live/output/text_component.ex | auser/livebook | 6f6b7e3ee08feb53a5d047744c7dccfe76d0a86d | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output/text_component.ex | auser/livebook | 6f6b7e3ee08feb53a5d047744c7dccfe76d0a86d | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output/text_component.ex | auser/livebook | 6f6b7e3ee08feb53a5d047744c7dccfe76d0a86d | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Output.TextComponent do
use LivebookWeb, :live_component
@impl true
def render(assigns) do
~H"""
<div id={"virtualized-text-#{@id}"}
class="relative"
phx-hook="VirtualizedLines"
data-max-height="300">
<%# Add a newline to each element, so that multiple lines ... | 37.413793 | 121 | 0.610138 |
b2b7cfc59039dd1a202aa4dc7e8e702d176b687d | 730 | ex | Elixir | apps/subs/lib/subs/use_cases/passwords/check_recovery_token.ex | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs/lib/subs/use_cases/passwords/check_recovery_token.ex | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs/lib/subs/use_cases/passwords/check_recovery_token.ex | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule Subs.UseCases.Passwords.CheckRecoveryToken do
@moduledoc false
use Subs.UseCase
alias Subs.{User, UserRepo}
def perform(token) do
with {:ok, user} <- find_user_by_password_recovery_token(token),
:ok <- user_token_valid?(user) do
ok!(%{user: user})
else
{:error, :token_ex... | 24.333333 | 68 | 0.664384 |
b2b7e1a70984510d0c563d847b530b888dff42b9 | 1,239 | exs | Elixir | config/prod.secret.exs | pelgero/featex | ef0bd9efa07f87b58f3df68e355a5fa6d367b04f | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | pelgero/featex | ef0bd9efa07f87b58f3df68e355a5fa6d367b04f | [
"Apache-2.0"
] | 1 | 2021-05-11T19:13:08.000Z | 2021-05-11T19:13:08.000Z | config/prod.secret.exs | pelgero/featex | ef0bd9efa07f87b58f3df68e355a5fa6d367b04f | [
"Apache-2.0"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.5 | 67 | 0.717514 |
b2b837831009c458b053007815aa744db50008bd | 2,207 | ex | Elixir | clients/vm_migration/lib/google_api/vm_migration/v1/model/list_datacenter_connectors_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/vm_migration/lib/google_api/vm_migration/v1/model/list_datacenter_connectors_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/list_datacenter_connectors_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... | 40.127273 | 202 | 0.736294 |
b2b83c62a8e30d9f0593d03c32f1d13cda89315f | 465 | ex | Elixir | lib/health/release_tasks.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | lib/health/release_tasks.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | lib/health/release_tasks.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule Health.ReleaseTasks do
def eval_purge_stale_data() do
# Eval commands needs to start the app before
# Or Application.load(:my_app) if you can't start it
Application.ensure_all_started(:health)
Application.ensure_all_started(:timex)
end
def create_user(args) do
Application.ensure_al... | 25.833333 | 56 | 0.746237 |
b2b83f650e16bd8285fdd1326c6576f26c58670b | 82 | exs | Elixir | traceme/test/traceme_web/views/layout_view_test.exs | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | 9 | 2017-10-29T17:35:14.000Z | 2020-04-19T14:06:50.000Z | traceme/test/traceme_web/views/layout_view_test.exs | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | traceme/test/traceme_web/views/layout_view_test.exs | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | defmodule TracemeWeb.LayoutViewTest do
use TracemeWeb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
b2b84c0191bf04a324f3a32920b5a543e3616301 | 7,131 | ex | Elixir | priv/perf/apps/load_test/lib/service/faucet.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | priv/perf/apps/load_test/lib/service/faucet.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | priv/perf/apps/load_test/lib/service/faucet.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 34.449275 | 115 | 0.705651 |
b2b8549ea48bb7ffc9c745d2aed631223e843271 | 824 | ex | Elixir | lib/adyen_checkout_ex/model/stored_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/stored_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/stored_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.StoredDetails do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"bank",
:"card",
:"emailAddres... | 24.969697 | 91 | 0.690534 |
b2b86115e45a59cdb4a4053886195f42c1c6c5f1 | 1,350 | ex | Elixir | lib/tarot_cup/game_server.ex | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | 1 | 2020-12-31T22:23:00.000Z | 2020-12-31T22:23:00.000Z | lib/tarot_cup/game_server.ex | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | null | null | null | lib/tarot_cup/game_server.ex | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | null | null | null | defmodule TarotCup.GameServer do
alias TarotCup.{
Card,
Game,
Rule
}
@table :games
def total do
@table
|> :ets.info()
|> Keyword.get(:size)
end
def status(name) do
case get(name) do
nil -> {:error, :nogame}
game -> {:ok, game}
end
end
def reset(name) do
... | 17.763158 | 82 | 0.522963 |
b2b8875672ab0811ec7c6fe9a62786735cfcc24d | 69 | ex | Elixir | apps/feedex_ui/lib/feedex_ui/views/user_registration_view.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_ui/lib/feedex_ui/views/user_registration_view.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_ui/lib/feedex_ui/views/user_registration_view.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexUi.UserRegistrationView do
use FeedexUi, :view
end
| 17.25 | 42 | 0.826087 |
b2b8b28b7ecaebab52a18490c20dcb2c459303cf | 132 | exs | Elixir | test/mount_point_test.exs | uhoreg/ex_remote_dockers | c4df4c0d3838cbbb6326d79f9400ea1050e3f49f | [
"MIT"
] | 7 | 2019-09-30T23:14:51.000Z | 2021-11-08T12:11:08.000Z | test/mount_point_test.exs | uhoreg/ex_remote_dockers | c4df4c0d3838cbbb6326d79f9400ea1050e3f49f | [
"MIT"
] | 5 | 2018-02-26T08:45:37.000Z | 2018-04-03T13:30:44.000Z | test/mount_point_test.exs | uhoreg/ex_remote_dockers | c4df4c0d3838cbbb6326d79f9400ea1050e3f49f | [
"MIT"
] | 3 | 2019-09-30T23:22:21.000Z | 2020-10-04T18:24:40.000Z | defmodule RemoteDockers.MountPointTest do
use ExUnit.Case
alias RemoteDockers.MountPoint
doctest RemoteDockers.MountPoint
end
| 22 | 41 | 0.848485 |
b2b8b749ea07ecf2882018c6f3056e87928f1f4c | 1,780 | ex | Elixir | lib/optimus/flag.ex | corka149/optimus | 12c0dc597691d04481513f4e2345812e38e63f73 | [
"MIT"
] | null | null | null | lib/optimus/flag.ex | corka149/optimus | 12c0dc597691d04481513f4e2345812e38e63f73 | [
"MIT"
] | null | null | null | lib/optimus/flag.ex | corka149/optimus | 12c0dc597691d04481513f4e2345812e38e63f73 | [
"MIT"
] | null | null | null | defmodule Optimus.Flag do
defstruct [
:name,
:short,
:long,
:help,
:multiple,
:global,
:hide
]
def new(spec) do
Optimus.Flag.Builder.build(spec)
end
def parse(flag, parsed, [_item | _rest] = items) do
case flag_met?(flag, items) do
{:met, new_items} ->
key =... | 20.45977 | 90 | 0.56236 |
b2b8d5fa743d8313ba877baefcfc428fd25809d5 | 130 | ex | Elixir | lib/live_sup/schemas/link_schemas/jira.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup/schemas/link_schemas/jira.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup/schemas/link_schemas/jira.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Schemas.LinkSchemas.Jira do
@derive Jason.Encoder
@enforce_keys [:account_id]
defstruct [:account_id]
end
| 21.666667 | 45 | 0.784615 |
b2b8e7a9c8f836a92c5b1117e1bc9428fa5045fd | 1,101 | ex | Elixir | lib/marvin/config.ex | cardinalblue/marvin | 7d7f553715e031b8f83e5ff61ca8ec85b5587742 | [
"MIT"
] | 3 | 2020-12-31T08:04:47.000Z | 2021-01-05T04:05:26.000Z | lib/marvin/config.ex | cardinalblue/marvin | 7d7f553715e031b8f83e5ff61ca8ec85b5587742 | [
"MIT"
] | null | null | null | lib/marvin/config.ex | cardinalblue/marvin | 7d7f553715e031b8f83e5ff61ca8ec85b5587742 | [
"MIT"
] | null | null | null | defmodule Marvin.Config do
defstruct [:scenarios, :duration]
@type config :: %{
duration: duration(),
scenarios: [scenario()]
}
@type duration :: non_neg_integer()
@type scenario :: %{
name: String.t(),
endpoint: endpoint(),
concurrency: non_neg_intege... | 24.466667 | 88 | 0.567666 |
b2b8ee9f3cd9476d9eebea7ef4c366eaf808af6b | 59,499 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/api/services.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/api/services.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/api/services.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... | 48.72973 | 610 | 0.633624 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.