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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91a162957395933e2d9d1a7542793d898787a404 | 937 | ex | Elixir | test/support/channel_case.ex | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | defmodule SpeakUpWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts wi... | 24.657895 | 69 | 0.716115 |
91a179abf6d096bdd3ed0a0adb8c4f043d3bfbf7 | 2,894 | ex | Elixir | lib/finch/http2/request_stream.ex | lukebakken/finch | 288f839666a980fa80a24dafaf40de55dc022b8f | [
"MIT"
] | null | null | null | lib/finch/http2/request_stream.ex | lukebakken/finch | 288f839666a980fa80a24dafaf40de55dc022b8f | [
"MIT"
] | null | null | null | lib/finch/http2/request_stream.ex | lukebakken/finch | 288f839666a980fa80a24dafaf40de55dc022b8f | [
"MIT"
] | null | null | null | defmodule Finch.HTTP2.RequestStream do
@moduledoc false
defstruct [:body, :from, :from_pid, :status, :buffer, :continuation]
def new(body, {from_pid, _from_ref} = from) do
enumerable =
case body do
{:stream, stream} -> stream
data -> List.wrap(data)
end
enumerable =
St... | 31.456522 | 98 | 0.652384 |
91a1845a0363040ed99243b56367ef6cce59940f | 368 | ex | Elixir | lib/tiny_earl/system_supervisor.ex | rossta/tiny-earl | 60dca22617c38c75da384c432da6c6ae9a95df94 | [
"MIT"
] | null | null | null | lib/tiny_earl/system_supervisor.ex | rossta/tiny-earl | 60dca22617c38c75da384c432da6c6ae9a95df94 | [
"MIT"
] | null | null | null | lib/tiny_earl/system_supervisor.ex | rossta/tiny-earl | 60dca22617c38c75da384c432da6c6ae9a95df94 | [
"MIT"
] | null | null | null | defmodule TinyEarl.SystemSupervisor do
use Supervisor
def init(_) do
processes = [
supervisor(TinyEarl.Database, ["./data/#{Mix.env}"]),
supervisor(TinyEarl.ServerSupervisor, []),
worker(TinyEarl.Cache, [])
]
supervise(processes, strategy: :one_for_one)
end
def start_link do
... | 21.647059 | 59 | 0.671196 |
91a18c73fd3752d1050dca39c6fb30dd010c07a6 | 90 | ex | Elixir | lib/home_bot/bot/command_handler.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_bot/bot/command_handler.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_bot/bot/command_handler.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | defmodule HomeBot.Bot.CommandHandler do
@callback handle(atom(), String.t()) :: :ok
end
| 22.5 | 45 | 0.722222 |
91a1ddcb6e9fca548bc197ce9ad68a04eccc19cc | 6,762 | exs | Elixir | test/type/builtin/_composite_builtin_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 97 | 2020-09-22T01:52:19.000Z | 2022-03-21T17:50:13.000Z | test/type/builtin/_composite_builtin_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 106 | 2020-09-22T18:55:28.000Z | 2021-11-30T01:51:04.000Z | test/type/builtin/_composite_builtin_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 3 | 2020-10-27T22:36:56.000Z | 2022-01-25T21:00:24.000Z | defmodule TypeTest.CompositeBuiltinTest do
use ExUnit.Case, async: true
import Type, only: :macros
# basic types. See https://hexdocs.pm/elixir/typespecs.html#basic-types
describe "non_neg_integer/0 type" do
test "works in use" do
assert %Type.Union{of: [pos_integer(), 0]} == non_neg_integer()
... | 26.414063 | 100 | 0.604703 |
91a22ccf6410972281d9ce69d44dd2db68f44163 | 14,710 | ex | Elixir | apps/language_server/lib/language_server/providers/workspace_symbols.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/workspace_symbols.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/workspace_symbols.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Providers.WorkspaceSymbols do
@moduledoc """
Workspace Symbols provider. Generates and returns `SymbolInformation[]`.
https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#workspace_symbol
"""
use GenServer
alias ElixirLS.LanguageServer.E... | 27.598499 | 106 | 0.612237 |
91a261b563e4f5caa72c291ec14ec676f8612167 | 1,550 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/sink.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/sink.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/sink.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31 | 104 | 0.702581 |
91a282fd0f92bd8053980521f8a6fb92e1161ee2 | 901 | exs | Elixir | test/rosetta_euler/haskell_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 36 | 2015-01-24T08:11:52.000Z | 2021-03-21T00:32:00.000Z | test/rosetta_euler/haskell_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | null | null | null | test/rosetta_euler/haskell_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 4 | 2015-01-24T08:17:42.000Z | 2022-01-11T16:10:56.000Z | Code.require_file "../rosetta_euler_test.exs", __DIR__
Code.require_file "../support/answers.exs", __DIR__
defmodule RosettaEuler.HaskellTest do
use ExUnit.Case, async: true
import RosettaEuler.Test, only: [rosetta_euler_tests: 2]
import RosettaEuler.Answers, only: [answer_for: 1]
setup context do
{:ok, ... | 27.30303 | 78 | 0.681465 |
91a2831cbafcfac6451b4aa266c2cb4cdff3cbf5 | 906 | ex | Elixir | apps/re_web/lib/exporters/trovit/plug.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/lib/exporters/trovit/plug.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_web/lib/exporters/trovit/plug.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.Exporters.Trovit.Plug do
@moduledoc """
Plug to handle trovit load integration
"""
import Plug.Conn
alias Re.{
Exporters.Trovit,
Listings.Exporter
}
def init(args), do: args
def call(
%Plug.Conn{path_info: [state_slug, city_slug], query_params: query_params} = conn,
... | 22.097561 | 90 | 0.651214 |
91a285d3d64a93b7f145fff2400bbe51dc0fe7c4 | 701 | ex | Elixir | integration_test/support/migration.ex | fartek/barna | cdcc7a89fa3e66459568863cf7713651abb0c688 | [
"MIT"
] | null | null | null | integration_test/support/migration.ex | fartek/barna | cdcc7a89fa3e66459568863cf7713651abb0c688 | [
"MIT"
] | null | null | null | integration_test/support/migration.ex | fartek/barna | cdcc7a89fa3e66459568863cf7713651abb0c688 | [
"MIT"
] | null | null | null | defmodule Barna.Integration.Migration do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :uuid, primary_key: true
add :name, :string
add :email, :string
timestamps()
end
create table(:addresses, primary_key: false) do
add :id, :u... | 22.612903 | 56 | 0.630528 |
91a2bb95288cb176d76f81eb66970d480944dfb9 | 2,247 | ex | Elixir | lib/ggity/scale/shape.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 47 | 2020-06-21T15:23:54.000Z | 2022-03-13T01:24:19.000Z | lib/ggity/scale/shape.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 3 | 2020-11-28T11:00:59.000Z | 2020-11-30T18:20:37.000Z | lib/ggity/scale/shape.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 2 | 2020-11-28T10:40:10.000Z | 2021-05-28T06:44:47.000Z | defmodule GGity.Scale.Shape do
@moduledoc false
alias GGity.{Draw, Labels}
alias GGity.Scale.Shape
@palette_values [:circle, :triangle, :square, :plus, :square_cross]
defstruct transform: nil,
levels: nil,
labels: :waivers,
guide: :legend
@type t() :: %__MODULE__{}
... | 28.443038 | 97 | 0.595016 |
91a2c313c3a5714a79ad18c51d879ec7aa15d257 | 215 | ex | Elixir | lib/phone/nanp/ms.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ms.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ms.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.MS do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(1)(664)([2-9].{6})$/
def country, do: "Montserrat"
def a2, do: "MS"
def a3, do: "MSR"
matcher :regex, ["1664"]
end
| 16.538462 | 42 | 0.604651 |
91a3159c5a3e26a46aecbca27023d9baaada857f | 266 | exs | Elixir | test/mibli_web/views/layout_view_test.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/mibli_web/views/layout_view_test.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/mibli_web/views/layout_view_test.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | defmodule MibliWeb.LayoutViewTest do
use MibliWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 29.555556 | 65 | 0.763158 |
91a31eb7306a7f2627ac7056d4caaa7451aeba18 | 535 | exs | Elixir | mix.exs | lambdaclass/chaos_monkey_ex | 124d799936938b4d054f5b378721e69d345af08a | [
"MIT"
] | 2 | 2021-11-03T15:30:05.000Z | 2021-12-17T18:04:50.000Z | mix.exs | lambdaclass/chaos_monkey_ex | 124d799936938b4d054f5b378721e69d345af08a | [
"MIT"
] | null | null | null | mix.exs | lambdaclass/chaos_monkey_ex | 124d799936938b4d054f5b378721e69d345af08a | [
"MIT"
] | null | null | null | defmodule ChaosMonkeyEx.MixProject do
use Mix.Project
def project do
[
app: :chaos_monkey_ex,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 18.448276 | 59 | 0.585047 |
91a32466f90ff17f84c4db7b770908932910a2e0 | 5,396 | ex | Elixir | lib/ethereumex/client/behaviour.ex | ayrat555/circleci_multiple_docker_test | 4360b17a61658f1242b421605bd2815a3618fac2 | [
"MIT"
] | null | null | null | lib/ethereumex/client/behaviour.ex | ayrat555/circleci_multiple_docker_test | 4360b17a61658f1242b421605bd2815a3618fac2 | [
"MIT"
] | null | null | null | lib/ethereumex/client/behaviour.ex | ayrat555/circleci_multiple_docker_test | 4360b17a61658f1242b421605bd2815a3618fac2 | [
"MIT"
] | null | null | null | defmodule Ethereumex.Client.Behaviour do
@type error :: {:error, map() | binary() | atom()}
# API methods
@callback web3_client_version(keyword()) :: {:ok, binary()} | error
@callback web3_sha3(binary(), keyword()) :: {:ok, binary()} | error
@callback net_version(keyword()) :: {:ok, binary()} | error
@cal... | 71.946667 | 115 | 0.651964 |
91a3488c8082e07325b406f5848e67d3a6240111 | 8,780 | ex | Elixir | lib/cocktail/builder/i_calendar.ex | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 117 | 2017-09-09T00:02:32.000Z | 2022-02-10T15:36:28.000Z | lib/cocktail/builder/i_calendar.ex | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 193 | 2017-09-09T22:49:18.000Z | 2022-03-30T13:05:25.000Z | lib/cocktail/builder/i_calendar.ex | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 20 | 2018-01-04T14:58:42.000Z | 2021-11-25T13:59:10.000Z | defmodule Cocktail.Builder.ICalendar do
@moduledoc """
Build iCalendar format strings from schedules.
TODO: write long description
"""
alias Cocktail.{Rule, Schedule, Validation}
alias Cocktail.Validation.{Day, DayOfMonth, HourOfDay, Interval, MinuteOfHour, SecondOfMinute, TimeOfDay, TimeRange}
@time_f... | 32.518519 | 118 | 0.651139 |
91a34f7ade1eb9f3180f0074aba6011307334268 | 2,036 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_label_video_classification_operation_metadata.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_label_video_classification_operation_metadata.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_label_video_classification_operation_metadata.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.103448 | 198 | 0.777505 |
91a3a84ebe474a871e70c37ffc91ceaae6e2f18a | 2,472 | ex | Elixir | lib/ex_pesa/Jenga/kyc/kyc.ex | beamkenya/ex_pesa | 62b645f8f3e7fd963350f6574a190fec7ca29bf5 | [
"AML",
"MIT"
] | 20 | 2020-08-07T18:45:03.000Z | 2021-12-02T12:47:07.000Z | lib/ex_pesa/Jenga/kyc/kyc.ex | beamkenya/ex_pesa | 62b645f8f3e7fd963350f6574a190fec7ca29bf5 | [
"AML",
"MIT"
] | 65 | 2020-08-17T05:52:33.000Z | 2021-05-20T16:06:34.000Z | lib/ex_pesa/Jenga/kyc/kyc.ex | beamkenya/ex_pesa | 62b645f8f3e7fd963350f6574a190fec7ca29bf5 | [
"AML",
"MIT"
] | 11 | 2020-08-17T07:53:02.000Z | 2021-04-02T20:57:16.000Z | defmodule ExPesa.Jenga.KYC do
@moduledoc """
KYC enabales quering the various registrar of persons in the various countries in East Africa.
Visit https://developer.jengaapi.io/reference#identity-verification to see more details
"""
import ExPesa.Jenga.JengaBase
alias ExPesa.Jenga.Signature
@doc """
Mak... | 47.538462 | 877 | 0.614482 |
91a3d32976f995b33dcc75316e19b783503ff98e | 379 | ex | Elixir | apps/lana/lib/lana/schema.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/lana/lib/lana/schema.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/lana/lib/lana/schema.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | defmodule Lana.Schema do
use Absinthe.Schema
alias Lana.Resolvers
query do
field :services, list_of(:service) do
resolve &Resolvers.Service.list_services/3
end
end
mutation do
field :run_recipe, :boolean do
resolve &Resolvers.Recipe.run/3
end
end
object :service do
fiel... | 16.478261 | 48 | 0.683377 |
91a3dce6e8708545cdacc033d27d7a65c22e2e7a | 2,331 | ex | Elixir | lib/membrane/core/pipeline/action_handler.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/pipeline/action_handler.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/pipeline/action_handler.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.Pipeline.ActionHandler do
@moduledoc false
use Membrane.Core.CallbackHandler
alias Membrane.CallbackError
alias Membrane.Core.{Parent, TimerController}
alias Membrane.ParentSpec
require Membrane.Logger
@impl CallbackHandler
def handle_actions(actions, callback, params, state) ... | 32.375 | 98 | 0.710425 |
91a3e8b7efa0fe57f682ea87c5e5b9689b6389b9 | 1,573 | exs | Elixir | test/types/state/dwflag_test.exs | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | 8 | 2018-09-20T13:05:16.000Z | 2021-09-22T08:40:40.000Z | test/types/state/dwflag_test.exs | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | null | null | null | test/types/state/dwflag_test.exs | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | null | null | null | defmodule EctoCrdtTypes.Types.State.DWFlagTest do
use ExUnit.Case, async: true
alias EctoCrdtTypes.Types.State.DWFlag
describe "#new/0" do
test "creates new ewflag" do
assert {:state_dwflag, {[], {[],[]}}} = DWFlag.new()
end
end
describe "#new/2" do
test "creates new awset with init value... | 28.089286 | 75 | 0.574698 |
91a40b45595e5d3b8e56a1b54be13e31dcd8cb31 | 2,491 | ex | Elixir | lib/maru/test.ex | moxley/maru | 9220f03bc1f384ef6b2ad9e5c2f9ff280f0cb873 | [
"BSD-3-Clause"
] | null | null | null | lib/maru/test.ex | moxley/maru | 9220f03bc1f384ef6b2ad9e5c2f9ff280f0cb873 | [
"BSD-3-Clause"
] | null | null | null | lib/maru/test.ex | moxley/maru | 9220f03bc1f384ef6b2ad9e5c2f9ff280f0cb873 | [
"BSD-3-Clause"
] | null | null | null | defmodule Maru.Test do
@moduledoc """
Unittest wrapper for designated router.
"""
@doc false
defmacro __using__(opts) do
root =
Keyword.get(opts, :root) ||
case Maru.servers() do
[{key, _}] ->
key
_any ->
# TODO: more friendly information here
... | 24.421569 | 83 | 0.554797 |
91a4116f140a045c8f4e448db3b16051f1585a7d | 894 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/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... | 33.111111 | 74 | 0.761745 |
91a4739c678d4a53e26bc2538c041350808adaaf | 2,332 | ex | Elixir | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_view.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_view.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_view.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... | 36.4375 | 156 | 0.704117 |
91a479af84530d566d563ea28ae52a269b24a2c7 | 4,371 | ex | Elixir | lib/cforum/badges.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum/badges.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum/badges.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule Cforum.Badges do
@moduledoc """
The boundary for the Accounts system.
"""
import Ecto.Query, warn: false
import CforumWeb.Gettext
alias Cforum.Repo
alias Cforum.Badges.{Badge, BadgeUser, BadgeGroup}
alias Cforum.Notifications
alias Cforum.System
alias Cforum.Users
@doc """
Returns t... | 21.53202 | 117 | 0.610844 |
91a4a06fd84fa8240ee1a999e92987a64b6be1bb | 1,158 | ex | Elixir | lib/hexpm/web/elixir_format.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/elixir_format.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/elixir_format.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.ElixirFormat do
def encode_to_iodata!(term) do
term
|> Hexpm.Utils.binarify()
|> inspect(limit: :infinity, binaries: :as_strings)
end
@spec decode(String.t()) :: term
def decode("") do
{:ok, nil}
end
def decode(string) do
case Code.string_to_quoted(string, existing_... | 26.318182 | 94 | 0.637306 |
91a4d279446feca443a58a400d7ec1628ab2f0e8 | 3,006 | ex | Elixir | lib/cqrs/command_validation.ex | sebaughman/elixir_cqrs_tools | 3f226e23af568d0422765e8bb526d966d83d34da | [
"MIT"
] | 17 | 2021-05-04T09:27:48.000Z | 2022-02-02T00:53:28.000Z | lib/cqrs/command_validation.ex | sebaughman/elixir_cqrs_tools | 3f226e23af568d0422765e8bb526d966d83d34da | [
"MIT"
] | 18 | 2021-05-05T21:17:54.000Z | 2021-12-08T19:25:21.000Z | lib/cqrs/command_validation.ex | sebaughman/elixir_cqrs_tools | 3f226e23af568d0422765e8bb526d966d83d34da | [
"MIT"
] | 2 | 2021-05-04T13:35:00.000Z | 2021-07-08T22:28:32.000Z | defmodule Cqrs.CommandValidation do
@moduledoc """
Defines validation functions for a validated command.
## Example
defmodule CreateUser do
use Cqrs.Command
alias Cqrs.CommandValidation
field :email, :string
field :name, :string
field :id, :binary_id, internal: tru... | 27.081081 | 86 | 0.588157 |
91a4d89a3ee907d55fd8ff2a3961a1457017b1ba | 1,207 | ex | Elixir | lib/potion_web/views/error_helpers.ex | eslingerbryan/potion | eda03f3f9380e75873c6110321780c2b2aa97f98 | [
"MIT"
] | 2 | 2020-01-21T00:47:14.000Z | 2020-03-25T11:25:26.000Z | lib/potion_web/views/error_helpers.ex | eslingerbryan/potion | eda03f3f9380e75873c6110321780c2b2aa97f98 | [
"MIT"
] | null | null | null | lib/potion_web/views/error_helpers.ex | eslingerbryan/potion | eda03f3f9380e75873c6110321780c2b2aa97f98 | [
"MIT"
] | 1 | 2020-01-21T00:47:16.000Z | 2020-01-21T00:47:16.000Z | defmodule PotionWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static argum... | 35.5 | 75 | 0.670257 |
91a4de56495d6be642c250d50c27fe30500a1752 | 645 | exs | Elixir | priv/repo/migrations/20160721220202_create_draft_pick.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | priv/repo/migrations/20160721220202_create_draft_pick.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | priv/repo/migrations/20160721220202_create_draft_pick.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338.Repo.Migrations.CreateDraftPick do
use Ecto.Migration
def change do
create table(:draft_picks) do
add :draft_position, :decimal, precision: 5, scale: 2
add :round, :integer
add :fantasy_league_id, references(:fantasy_leagues, on_delete: :delete_all)
add :fantasy_team_id,... | 32.25 | 82 | 0.724031 |
91a4e58318a1acc856dc534638209ed1033a4f7b | 875 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_ip_configuration_properties_format.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_ip_configuration_properties_format.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_ip_configuration_properties_format.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.ApplicationGatewayIpConfigurationPropertiesFormat do
@moduledoc """
Properties of IP configuration of... | 29.166667 | 122 | 0.754286 |
91a501b00d481bc02621106d265a5952237060c8 | 314 | exs | Elixir | test/jaya_currency_converter_web/controller/home_controller_test.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | test/jaya_currency_converter_web/controller/home_controller_test.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | test/jaya_currency_converter_web/controller/home_controller_test.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | defmodule JayaCurrencyConverterWeb.HomeControllerTest do
use JayaCurrencyConverterWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert text_response(conn, 200) =~ "Jaya"
assert text_response(conn, 200) =~ "Currency"
assert text_response(conn, 200) =~ "Converter"
end
end
| 28.545455 | 56 | 0.703822 |
91a503644a6ca57745b90d57c0a40b3314fe2f36 | 209 | ex | Elixir | testdata/source_elixier.ex | ClasherKasten/babi-grammars | 5ecbbe49efff140640ede4ae91e5f708856cfeb3 | [
"MIT"
] | null | null | null | testdata/source_elixier.ex | ClasherKasten/babi-grammars | 5ecbbe49efff140640ede4ae91e5f708856cfeb3 | [
"MIT"
] | null | null | null | testdata/source_elixier.ex | ClasherKasten/babi-grammars | 5ecbbe49efff140640ede4ae91e5f708856cfeb3 | [
"MIT"
] | null | null | null | whichfizz = fn
(0, 0, _) -> "FizzBuzz"
(0, _, _) -> "Fizz"
(_, 0, _) -> "Buzz"
(_, _, n) -> n
end
fizzbuzz = fn (n) ->
whichfizz.(rem(n, 3), rem(n, 5), n)
end
IO.inspect Enum.map(1..100, fizzbuzz)
| 16.076923 | 37 | 0.502392 |
91a52ff190ddd8a4283f2a4827bbd18b73165707 | 45,050 | ex | Elixir | lib/elixir/lib/gen_server.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_server.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_server.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | defmodule GenServer do
@moduledoc """
A behaviour module for implementing the server of a client-server relation.
A GenServer is a process like any other Elixir process and it can be used
to keep state, execute code asynchronously and so on. The advantage of using
a generic server process (GenServer) impleme... | 36.507293 | 129 | 0.664373 |
91a54260cf19092685643c45f691b802b7ffacd2 | 1,228 | ex | Elixir | apps/feedback/lib/test.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/feedback/lib/test.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/feedback/lib/test.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Feedback.Test do
@moduledoc false
def latest_message do
file = Application.get_env(:feedback, :test_mail_file)
body = File.read!(file)
case Poison.decode(body) do
{:ok, parsed} ->
parsed
_ ->
raise "Error parsing test mail file: #{inspect(body)}"
end
end
... | 23.615385 | 84 | 0.620521 |
91a59f4a4e0ac50fba166b52e1a1889ad2c11222 | 1,631 | exs | Elixir | elixir/test/homework_web/schema/mutation/delete_transaction_test.exs | ztoolson/web-homework | 09865a5df66fe8f380dfe0d848bbfae8398be1ef | [
"MIT"
] | null | null | null | elixir/test/homework_web/schema/mutation/delete_transaction_test.exs | ztoolson/web-homework | 09865a5df66fe8f380dfe0d848bbfae8398be1ef | [
"MIT"
] | null | null | null | elixir/test/homework_web/schema/mutation/delete_transaction_test.exs | ztoolson/web-homework | 09865a5df66fe8f380dfe0d848bbfae8398be1ef | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schema.Query.DeleteTransactionTest do
use HomeworkWeb.ConnCase, async: true
alias Homework.Repo
alias Homework.Merchants.Merchant
alias Homework.Transactions.Transaction
alias Homework.Users.User
@query """
mutation DeleteTransaction($id: ID!) {
deleteTransaction(id: $id) {
... | 22.971831 | 69 | 0.522992 |
91a5ac948463afaf74052f1267b998a6a5088d00 | 2,198 | exs | Elixir | config/prod.exs | utkr98jais/phoenix-battleship | 53b43d44a69c5acb4b452b793cce64980a0302df | [
"MIT"
] | 569 | 2016-04-21T09:25:49.000Z | 2022-03-13T22:56:18.000Z | config/prod.exs | utkr98jais/phoenix-battleship | 53b43d44a69c5acb4b452b793cce64980a0302df | [
"MIT"
] | 10 | 2016-04-22T05:33:43.000Z | 2018-04-19T21:51:27.000Z | config/prod.exs | utkr98jais/phoenix-battleship | 53b43d44a69c5acb4b452b793cce64980a0302df | [
"MIT"
] | 80 | 2016-04-21T18:53:25.000Z | 2020-12-01T13:32:17.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.30303 | 67 | 0.716106 |
91a5ae30fd43cce576253d09652d623f6e1600bc | 33,290 | ex | Elixir | lib/elixir/lib/system.ex | numso/elixir | 99c587fff51ffdd4b29ece09e74c0bc941c34f71 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/system.ex | numso/elixir | 99c587fff51ffdd4b29ece09e74c0bc941c34f71 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/system.ex | numso/elixir | 99c587fff51ffdd4b29ece09e74c0bc941c34f71 | [
"Apache-2.0"
] | null | null | null | defmodule System do
@moduledoc """
The `System` module provides functions that interact directly
with the VM or the host system.
## Time
The `System` module also provides functions that work with time,
returning different times kept by the system with support for
different time units.
One of the comp... | 30.401826 | 102 | 0.675879 |
91a5d002d860d0b6def1cbacb4f1861bbac9e2b1 | 1,751 | exs | Elixir | test/sparkpost_test.exs | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 47 | 2016-01-30T07:24:10.000Z | 2021-05-29T13:47:49.000Z | test/sparkpost_test.exs | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 48 | 2016-01-21T22:11:14.000Z | 2020-10-12T06:13:50.000Z | test/sparkpost_test.exs | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 12 | 2016-02-27T23:04:13.000Z | 2018-05-03T15:34:04.000Z | defmodule SparkPostTest do
use ExUnit.Case
alias SparkPost.{Address, Content, Recipient, MockServer}
import Mock
test "send succeeds with a Transmission.Response" do
with_mock HTTPoison, [request: MockServer.mk_resp] do
resp = SparkPost.send(
to: "you@there.com",
from: "me@here.com"... | 28.704918 | 93 | 0.617362 |
91a5dd56d3e52e52a6d23dd1653693be65f5876b | 4,813 | ex | Elixir | apps/omg_eth/test/support/deployer.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_eth/test/support/deployer.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/support/deployer.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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... | 35.131387 | 120 | 0.709537 |
91a5e32087884608da6cce5f76b0f2d8365d4e66 | 1,960 | exs | Elixir | clients/my_business_verifications/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/my_business_verifications/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/my_business_verifications/mix.exs | 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... | 29.253731 | 161 | 0.673469 |
91a60cc037c235c90430da686c0857e1afbbce51 | 876 | ex | Elixir | clients/redis/lib/google_api/redis/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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.444444 | 74 | 0.756849 |
91a648e2b5530f858b44a0095ad7ad9627119c9d | 68 | ex | Elixir | lib/la_famiglia_web/views/help_view.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 5 | 2016-10-20T10:00:59.000Z | 2017-11-19T08:14:18.000Z | lib/la_famiglia_web/views/help_view.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 39 | 2020-04-22T05:27:32.000Z | 2022-03-13T17:22:26.000Z | lib/la_famiglia_web/views/help_view.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | null | null | null | defmodule LaFamigliaWeb.HelpView do
use LaFamiglia.Web, :view
end
| 17 | 35 | 0.808824 |
91a6765d3c4027496d05810f9ec863b154e8a5d3 | 1,173 | exs | Elixir | clients/big_query_data_transfer/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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.83871 | 73 | 0.763001 |
91a6776d736ec2290464441e42ba98ea08aee6ca | 2,233 | ex | Elixir | lib/ex_aws/config/auth_cache.ex | kepit/ex_aws | 61127b7a4a2f22dcde15e4cde8bb858f18a38b25 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/config/auth_cache.ex | kepit/ex_aws | 61127b7a4a2f22dcde15e4cde8bb858f18a38b25 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/config/auth_cache.ex | kepit/ex_aws | 61127b7a4a2f22dcde15e4cde8bb858f18a38b25 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExAws.Config.AuthCache do
use GenServer
@moduledoc false
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, :ok, opts)
end
def get(config) do
case :ets.lookup(__MODULE__, :aws_instance_auth) ... | 31.013889 | 93 | 0.705329 |
91a686cf0dd3b83c249d4b56710d387e0a46f023 | 7,774 | ex | Elixir | lib/phoenix/router/helpers.ex | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | lib/phoenix/router/helpers.ex | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | lib/phoenix/router/helpers.ex | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Helpers do
# Module that generates the routing helpers.
@moduledoc false
alias Phoenix.Router.Route
alias Phoenix.Socket
alias Plug.Conn
@transports [Phoenix.Transports.WebSocket, Phoenix.Transports.LongPoller]
@doc """
Callback invoked by path generated in each helper module... | 31.220884 | 124 | 0.644199 |
91a6912a9eb077e9a6c5b576ab944cb1743bf01c | 2,648 | exs | Elixir | test/dgraph_ex_field_test.exs | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 21 | 2017-08-20T06:19:37.000Z | 2021-02-04T23:22:10.000Z | test/dgraph_ex_field_test.exs | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 43 | 2017-08-06T21:03:28.000Z | 2018-09-08T13:00:35.000Z | test/dgraph_ex_field_test.exs | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 1 | 2017-10-12T02:20:13.000Z | 2017-10-12T02:20:13.000Z | defmodule DgraphEx.FieldTest do
use ExUnit.Case
doctest DgraphEx.Field
alias DgraphEx.Field
alias DgraphEx.Expr.Uid
# import DgraphEx
# import TestHelpers
test "a field as_setter can render `uid pred uid .` correctly " do
my_field = %Field{
subject: %Uid{value: "1234", type: :literal},
... | 33.518987 | 319 | 0.632553 |
91a6c145ea306fc4a514eb72742bed424e051bd7 | 10,658 | ex | Elixir | lib/appsignal/nif.ex | kianmeng/appsignal-elixir | ef9cdf47cead223c93b5df9dfb95cfab13a16ab1 | [
"MIT"
] | null | null | null | lib/appsignal/nif.ex | kianmeng/appsignal-elixir | ef9cdf47cead223c93b5df9dfb95cfab13a16ab1 | [
"MIT"
] | null | null | null | lib/appsignal/nif.ex | kianmeng/appsignal-elixir | ef9cdf47cead223c93b5df9dfb95cfab13a16ab1 | [
"MIT"
] | null | null | null | defmodule Appsignal.NifBehaviour do
@moduledoc false
@callback loaded?() :: boolean()
@callback running_in_container?() :: boolean()
end
defmodule Appsignal.Nif do
@behaviour Appsignal.NifBehaviour
@moduledoc false
@on_load :init
def init do
path = :filename.join(:code.priv_dir(:appsignal), 'appsig... | 19.996248 | 151 | 0.71186 |
91a6d587edeec2b7dff28baa5a7df5a277fd172e | 483 | ex | Elixir | exercises/concept/newsletter/lib/newsletter.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/newsletter/lib/newsletter.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/newsletter/lib/newsletter.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Newsletter do
def read_emails(path) do
# Please implement the read_emails/1 function
end
def open_log(path) do
# Please implement the open_log/1 function
end
def log_sent_email(pid, email) do
# Please implement the log_sent_email/2 function
end
def close_log(pid) do
# Please i... | 21.954545 | 57 | 0.743271 |
91a6d66edded8ad20bbc42c2ed0821417ccc214d | 2,685 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_output_audio_config.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_output_audio_config.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_output_audio_config.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... | 43.306452 | 410 | 0.772812 |
91a7001fd9a29bcb5d5dfdf97e4df852d3e435e9 | 1,350 | ex | Elixir | lib/slacker/utils.ex | demarius/slacker | d31566c260486e61af8da2bca1edbdd4af5bd274 | [
"MIT"
] | 1 | 2016-08-10T17:46:51.000Z | 2016-08-10T17:46:51.000Z | lib/slacker/utils.ex | demarius/slacker | d31566c260486e61af8da2bca1edbdd4af5bd274 | [
"MIT"
] | null | null | null | lib/slacker/utils.ex | demarius/slacker | d31566c260486e61af8da2bca1edbdd4af5bd274 | [
"MIT"
] | null | null | null | defmodule Slacker.Utils do
require IEx
@timezone Application.get_env(:slacker, :default_timezone, "America/Detroit")
@day_start Application.get_env(:slacker, :day_start, 8)
@day_end Application.get_env(:slacker, :day_end, 5)
def my_channels(slack) do
slack.channels
|> Enum.filter(
fn {_channel... | 25.471698 | 79 | 0.644444 |
91a702d7393e0d481a49296d08e46d379823d15b | 2,705 | ex | Elixir | lib/zcash_explorer_web/live/blockchain_info_live.ex | buoy49/zcash-explorer | 3774ef15a46ef13379d5a808f7cea198b76c589a | [
"Apache-2.0"
] | null | null | null | lib/zcash_explorer_web/live/blockchain_info_live.ex | buoy49/zcash-explorer | 3774ef15a46ef13379d5a808f7cea198b76c589a | [
"Apache-2.0"
] | null | null | null | lib/zcash_explorer_web/live/blockchain_info_live.ex | buoy49/zcash-explorer | 3774ef15a46ef13379d5a808f7cea198b76c589a | [
"Apache-2.0"
] | null | null | null | defmodule ZcashExplorerWeb.BlockChainInfoLive do
use Phoenix.LiveView
@impl true
def render(assigns) do
~L"""
<div>
<dl class="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">
<div class="px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6">
<dt class="text-sm font-medium text-gray-500 ... | 28.473684 | 89 | 0.608872 |
91a736bccc0e38eb6daa7cef453945e838e1030d | 250 | exs | Elixir | test/test_helper.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 104 | 2015-02-11T02:57:53.000Z | 2022-01-12T14:28:12.000Z | test/test_helper.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 3 | 2015-07-23T18:48:11.000Z | 2016-10-12T14:28:43.000Z | test/test_helper.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 28 | 2015-01-09T22:05:27.000Z | 2021-04-29T13:55:13.000Z | # Exclude tests where the appropriate browser is not installed.
ExUnit.configure exclude: [
chrome: !:os.find_executable('chromedriver'),
phantomjs: !:os.find_executable('phantomjs'),
firefox: !WebDriver.Firefox.Port.installed?
]
ExUnit.start
| 27.777778 | 63 | 0.764 |
91a743ee470c7b859ce1966015b505ba6eb075ca | 1,977 | ex | Elixir | lib/event/event_discord.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/event/event_discord.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/event/event_discord.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnector.Event.DiscEvents do
@moduledoc """
Event handler for discord interactions.
Listens for events that might trigger messages to discord.
"""
alias TwitchDiscordConnector.JsonDB.TwitchUserDB
alias TwitchDiscordConnector.Discord
# state: {user id, hook url, [keyword list]}
... | 25.025316 | 115 | 0.570561 |
91a793569f0a7cf4c6b7a3985677ead88348b506 | 62,658 | ex | Elixir | lib/timex.ex | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | lib/timex.ex | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | lib/timex.ex | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | defmodule Timex do
@moduledoc File.read!("README.md")
defmacro __using__(_) do
quote do
alias Timex.DateTime
alias Timex.AmbiguousDateTime
alias Timex.Date
alias Timex.Time
alias Timex.Interval
alias Timex.TimezoneInfo
alias Timex.AmbiguousTimezoneInfo
alias Time... | 34.127451 | 154 | 0.643749 |
91a7ea764a4ec22b861dffd21245f534fa29d7d2 | 2,087 | exs | Elixir | config/prod.exs | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | config/prod.exs | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | config/prod.exs | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"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,
# ... | 37.267857 | 68 | 0.724964 |
91a7f01e9aba2fbbeb3eae12491e97ad309dc70c | 1,209 | exs | Elixir | config/dev.exs | nickgal/homemade_pi | a7b7df7d9214cb409ac5b133b52b70c13c98180c | [
"MIT"
] | null | null | null | config/dev.exs | nickgal/homemade_pi | a7b7df7d9214cb409ac5b133b52b70c13c98180c | [
"MIT"
] | null | null | null | config/dev.exs | nickgal/homemade_pi | a7b7df7d9214cb409ac5b133b52b70c13c98180c | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :homemade_pi, HomemadePi.Endpoint,
http: [port... | 30.225 | 74 | 0.725393 |
91a80c87c13af5eb19650fe71c39a733b958d5b9 | 2,987 | ex | Elixir | lib/plug/crypto.ex | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | lib/plug/crypto.ex | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | lib/plug/crypto.ex | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Crypto do
@moduledoc """
Namespace and module for Crypto functionality.
Please see `Plug.Crypto.KeyGenerator`, `Plug.Crypto.MessageEncryptor`,
and `Plug.Crypto.MessageVerifier` for more functionality.
"""
use Bitwise
@doc """
A restricted version a `:erlang.binary_to_term/1` that
for... | 22.801527 | 93 | 0.639438 |
91a83a7e217ab3c4f4d007a1a61c2190c0d68ed4 | 1,678 | ex | Elixir | lib/step_flow/application.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | lib/step_flow/application.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | lib/step_flow/application.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
alias StepFlow.Metrics.PrometheusExporter
alias StepFlow.Metrics.WorkflowInstrumenter
alias StepFlow.Migration
alias StepFlow.WorkflowDefinition... | 26.634921 | 97 | 0.6764 |
91a87207e1e80aa07398aeabfc3e7a4a030fb8ee | 5,211 | exs | Elixir | test/fika/erl_translate_test.exs | gkpacker/fika | 2130d766998c2d52461a4395dc226e369694015c | [
"Apache-2.0"
] | null | null | null | test/fika/erl_translate_test.exs | gkpacker/fika | 2130d766998c2d52461a4395dc226e369694015c | [
"Apache-2.0"
] | null | null | null | test/fika/erl_translate_test.exs | gkpacker/fika | 2130d766998c2d52461a4395dc226e369694015c | [
"Apache-2.0"
] | null | null | null | defmodule Fika.ErlTranslateTest do
use ExUnit.Case
alias Fika.{
Parser,
ErlTranslate
}
test "a function that calls another function" do
str = """
fn a do
x = 1
b(x)
end
fn b(x : Int) do
x
end
"""
ast = Parser.parse_module(str, "test")
result = ErlTra... | 25.419512 | 97 | 0.505277 |
91a885cc0f09aba6af365a98610c699d207c14c4 | 4,016 | ex | Elixir | apps/opentelemetry_api/lib/open_telemetry/span.ex | davydog187/opentelemetry-erlang | 8a99f12dbddbd5b9bacc4f43f51367f3d189d8c2 | [
"Apache-2.0"
] | null | null | null | apps/opentelemetry_api/lib/open_telemetry/span.ex | davydog187/opentelemetry-erlang | 8a99f12dbddbd5b9bacc4f43f51367f3d189d8c2 | [
"Apache-2.0"
] | null | null | null | apps/opentelemetry_api/lib/open_telemetry/span.ex | davydog187/opentelemetry-erlang | 8a99f12dbddbd5b9bacc4f43f51367f3d189d8c2 | [
"Apache-2.0"
] | null | null | null | defmodule OpenTelemetry.Span do
@moduledoc """
This module contains macros for Span operations that update the active current Span in the current process.
An example of creating an Event and adding it to the current Span:
require OpenTelemetry.Span
...
event = "ecto.query"
ecto_attributes... | 38.615385 | 126 | 0.728088 |
91a88b266874d2b509baed7e2216bce28a331f9c | 1,891 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/table_progress.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/table_progress.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/table_progress.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.381818 | 131 | 0.719196 |
91a8945e3de40183d20b61955c6ebf46390ab0de | 12,992 | ex | Elixir | lib/mdp/environment.ex | taskd19/rl-study | a0b80f720471341adada0bc1452b58d6c608b097 | [
"Apache-2.0"
] | null | null | null | lib/mdp/environment.ex | taskd19/rl-study | a0b80f720471341adada0bc1452b58d6c608b097 | [
"Apache-2.0"
] | null | null | null | lib/mdp/environment.ex | taskd19/rl-study | a0b80f720471341adada0bc1452b58d6c608b097 | [
"Apache-2.0"
] | null | null | null | defmodule RlStudy.MDP.Environment do
alias RlStudy.MDP.State
alias RlStudy.MDP.Action
require Logger
@type grid_t :: [[integer]]
@type t :: %RlStudy.MDP.Environment{
grid: grid_t(),
agent_state: RlStudy.MDP.State.t(),
move_probe: float,
default_reward: float
}
... | 34.553191 | 189 | 0.593134 |
91a8abaaa0739f2cbddf73b74cef5304c013fd7b | 17,054 | exs | Elixir | apps/omg/test/omg/state/transaction_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg/test/omg/state/transaction_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg/test/omg/state/transaction_test.exs | 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... | 43.953608 | 120 | 0.631054 |
91a8d04b860446eccdaf65ac2e51c6d893965aa5 | 2,980 | exs | Elixir | apps/omg_child_chain/test/omg_child_chain/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg_child_chain/test/omg_child_chain/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg_child_chain/test/omg_child_chain/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 39.210526 | 110 | 0.667785 |
91a8d62505c26eb0cf4552f9e522a7270cd70317 | 3,900 | ex | Elixir | lib/data/npc.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/npc.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/npc.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.NPC do
@moduledoc """
NPC Schema
"""
use Data.Schema
alias Data.Script
alias Data.Stats
alias Data.NPCItem
alias Data.NPCSpawner
@fields [
:level,
:name,
:tags,
:status_line,
:status_listen,
:description,
:experience_points,
:currency,
:is_quest_gi... | 22.941176 | 76 | 0.621282 |
91a8e5d22d4fd91c382f3b95b2136c0b12b52230 | 890 | exs | Elixir | lib/logger/test/test_helper.exs | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/test_helper.exs | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/test_helper.exs | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | Logger.configure_backend(:console, colors: [enabled: false])
ExUnit.start()
defmodule Logger.Case do
use ExUnit.CaseTemplate
import ExUnit.CaptureIO
using _ do
quote do
import Logger.Case
end
end
def msg(msg) do
~r/\d\d\:\d\d\:\d\d\.\d\d\d #{Regex.escape(msg)}/
end
def wait_for_handl... | 18.541667 | 60 | 0.622472 |
91a9081944d06e5b3066d3741612102cdeef3c97 | 1,476 | exs | Elixir | config/config.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | config/config.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | config/config.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"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... | 26.836364 | 74 | 0.730352 |
91a958e0ed9ffacc34b3d0bfff8bb067d2f15351 | 617 | ex | Elixir | lib/appsignal/utils/push_api_key_validator.ex | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | lib/appsignal/utils/push_api_key_validator.ex | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | lib/appsignal/utils/push_api_key_validator.ex | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | defmodule Appsignal.Utils.PushApiKeyValidator do
@moduledoc false
alias Appsignal.Transmitter
def validate(config) do
params =
URI.encode_query(%{
"api_key" => config[:push_api_key],
"name" => config[:name],
"environment" => config[:env],
"hostname" => config[:hostname]
... | 25.708333 | 55 | 0.572123 |
91a9dac78503a0a47b7f56b6372341acc31cf326 | 2,073 | ex | Elixir | apps/core/lib/core/schema/integration.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/schema/integration.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/schema/integration.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Schema.Integration do
use Piazza.Ecto.Schema
use Arc.Ecto.Schema
alias Core.Schema.{Publisher, Repository, ResourceDefinition, Tag}
schema "integrations" do
field :name, :string
field :icon, Core.Storage.Type
field :icon_id, :binary_id
field :source_url, ... | 30.940299 | 115 | 0.648818 |
91a9feb9ebce20e8f7d9c802cb25448a045a39b9 | 184 | ex | Elixir | code examples/appd-9.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/appd-9.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/appd-9.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | p = {:ok,{:note,""}}
{:ok,_} = p # -> {:ok, {:note, ""}}
{ret,_} = p # ->{:ok, {:note, ""}}
ret # -> :ok
[] = p # -> (MatchError) no match of right hand side value: {:ok, {:note, ""}}
| 30.666667 | 78 | 0.418478 |
91aa15c13c51af13687af1ae3045312a0c1b3002 | 794 | ex | Elixir | test/support/cloister.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 49 | 2017-07-22T12:25:46.000Z | 2022-02-12T20:29:36.000Z | test/support/cloister.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 15 | 2017-07-21T13:17:32.000Z | 2021-02-25T05:40:11.000Z | test/support/cloister.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 4 | 2017-10-26T10:28:00.000Z | 2019-09-13T08:04:01.000Z | if match?({:module, Cloister}, Code.ensure_compiled(Cloister)) do
defmodule Cloister.Monitor.Info do
@moduledoc false
use Boundary
@spec whois(term :: term()) :: node()
def whois(term) do
case HashRing.Managed.key_to_node(:cloister, term) do
{:error, {:invalid_ring, :no_nodes}} ->
... | 21.459459 | 80 | 0.605793 |
91aa1f5a0b1adae28373fdedcc27d787e18906c5 | 3,001 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_symbol.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_symbol.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_symbol.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 39.486842 | 177 | 0.706098 |
91aa45512f9390bf6868d5195246e5b65ef409ea | 1,242 | exs | Elixir | exercises/collatz-conjecture/collatz_conjecture_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/collatz-conjecture/collatz_conjecture_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/collatz-conjecture/collatz_conjecture_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2018-07-19T23:43:56.000Z | 2018-07-19T23:43:56.000Z | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("collatz_conjecture.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule CollatzConjectureTest do
use ExUnit.Case
test "zero steps for one" do
assert CollatzConjecture.calc(1) == 0
end
@tag :pending
... | 22.581818 | 79 | 0.71095 |
91aa59c2ae44d6a325a96bd02c16d58d5e53f6d4 | 4,868 | ex | Elixir | lib/credo/check/readability/parentheses_in_condition.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/check/readability/parentheses_in_condition.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/check/readability/parentheses_in_condition.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Readability.ParenthesesInCondition do
@moduledoc false
@checkdoc """
Because `if` and `unless` are macros, the preferred style is to not use
parentheses around conditions.
# preferred
if valid?(username) do
# ...
end
# NOT preferred
if( valid?(use... | 26.172043 | 92 | 0.586278 |
91aa6a1518c0d2e1767937acb37737b5ae69ad2b | 3,286 | exs | Elixir | test/prop_types_test.exs | nathanfaucett/ex-prop_types | 5ad0a884280dadf71abe4778bf693d1dd3ac8de3 | [
"MIT"
] | null | null | null | test/prop_types_test.exs | nathanfaucett/ex-prop_types | 5ad0a884280dadf71abe4778bf693d1dd3ac8de3 | [
"MIT"
] | null | null | null | test/prop_types_test.exs | nathanfaucett/ex-prop_types | 5ad0a884280dadf71abe4778bf693d1dd3ac8de3 | [
"MIT"
] | null | null | null | defmodule PropTypesTest do
use ExUnit.Case
doctest PropTypes
def min_length(size),
do: PropTypes.create_type_checker(fn (props, prop_name, caller_name, _) ->
value = Map.get(props, prop_name)
if String.length(value) < size do
PropTypes.Exception.exception(prop_name, caller_name, "min_le... | 26.715447 | 96 | 0.52252 |
91aa902e148457ccc71bcc21ba324b91ec668060 | 1,640 | ex | Elixir | packages/templates/src/project/potionx/lib/{{ appName }}_graphql/schemas/user/user_types.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | null | null | null | packages/templates/src/project/potionx/lib/{{ appName }}_graphql/schemas/user/user_types.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | null | null | null | packages/templates/src/project/potionx/lib/{{ appName }}_graphql/schemas/user/user_types.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | null | null | null | defmodule <%= appModule %>GraphQl.Schema.UserTypes do
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
import Absinthe.Resolution.Helpers
node object :user do
field :deleted_at, :datetime
field :email, :string
field :inserted_at, :naive_datetime
field :name_firs... | 32.8 | 112 | 0.692073 |
91aab9a7a08b7ed63aacb6b7e44c6fd616347d5f | 28,593 | ex | Elixir | lib/mariaex/row_parser.ex | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 264 | 2015-03-05T06:55:21.000Z | 2021-08-02T22:12:35.000Z | lib/mariaex/row_parser.ex | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 215 | 2015-03-04T23:39:52.000Z | 2022-01-17T05:14:10.000Z | lib/mariaex/row_parser.ex | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 132 | 2015-03-04T22:50:48.000Z | 2021-12-09T23:28:59.000Z | defmodule Mariaex.RowParser do
@moduledoc """
Parse a row of the MySQL protocol
This parser makes extensive use of binary pattern matching and recursion to take advantage
of Erlang's optimizer that will not create sub binaries when called recusively.
"""
use Bitwise
alias Mariaex.Column
alias Mariaex.M... | 50.696809 | 220 | 0.679572 |
91aabbfa80582b9618447a6a8660a316248bbecd | 2,036 | exs | Elixir | test/gutenex/pdf/text_test.exs | tulinmola/gutenex | 09a17dada273e089685176b5a14820430624675f | [
"MIT"
] | 184 | 2015-01-16T23:05:42.000Z | 2018-10-25T18:51:52.000Z | test/gutenex/pdf/text_test.exs | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 15 | 2015-05-29T00:28:08.000Z | 2018-10-11T18:55:35.000Z | test/gutenex/pdf/text_test.exs | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 32 | 2015-02-14T07:39:48.000Z | 2018-09-12T21:01:02.000Z | defmodule Gutenex.PDF.TextTest do
use ExUnit.Case, async: true
alias Gutenex.PDF.Text
test "#begin_text" do
assert Text.begin_text() == "BT\n"
end
test "#end_text" do
assert Text.end_text() == "ET\n"
end
test "#break_text" do
assert Text.break_text() == " T*\n"
end
test "#write_text" d... | 27.146667 | 91 | 0.626228 |
91aac29d68da3aa6e43d611fd7367250396993bd | 523 | ex | Elixir | lib/adyen_checkout_ex/model/additional_data_opi.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/additional_data_opi.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/additional_data_opi.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.AdditionalDataOpi do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"opi.includeTransToken"
]
@ty... | 20.115385 | 91 | 0.709369 |
91aac9936689bbad6cfb183d6d72af7ed2b61421 | 570 | exs | Elixir | test/saxy/parser/partial_test.exs | liberza/saxy | e15e48fca70c948568b28b9178f8d2bb5ef01e1f | [
"MIT"
] | null | null | null | test/saxy/parser/partial_test.exs | liberza/saxy | e15e48fca70c948568b28b9178f8d2bb5ef01e1f | [
"MIT"
] | null | null | null | test/saxy/parser/partial_test.exs | liberza/saxy | e15e48fca70c948568b28b9178f8d2bb5ef01e1f | [
"MIT"
] | null | null | null | defmodule Saxy.Parser.PartialTest do
use ExUnit.Case, async: true
alias Saxy.Parser.Partial
alias Saxy.TestHandlers.StackHandler
test "The Partial module is used to parse an XML document binary, line by line" do
data =
File.read!("./test/support/fixture/food.xml")
|> String.split("\n")
a... | 27.142857 | 84 | 0.663158 |
91aad49be09308d8ccaeaef497b108e08b85d6bb | 8 | ex | Elixir | testData/org/elixir_lang/parser_definition/literal_sigil_heredoc_parsing_test_case/Empty.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/literal_sigil_heredoc_parsing_test_case/Empty.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/literal_sigil_heredoc_parsing_test_case/Empty.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~X"""""" | 8 | 8 | 0.125 |
91ab1fafa18280c96e70f02db17e5404fbbef111 | 4,930 | ex | Elixir | lib/appsignal/phoenix/channel.ex | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | lib/appsignal/phoenix/channel.ex | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | lib/appsignal/phoenix/channel.ex | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | if Appsignal.phoenix? do
defmodule Appsignal.Phoenix.Channel do
@transaction Application.get_env(:appsignal, :appsignal_transaction, Appsignal.Transaction)
@moduledoc """
Instrumentation for channel events
## Instrumenting a channel's `handle_in/3`
Currently, incoming channel requests can be in... | 36.518519 | 158 | 0.661866 |
91ab35b5ee5c68ab29fa217d8cae944ac69c3b99 | 96 | exs | Elixir | test/bpmn/event/start_test.exs | Around25/hashiru-bpmn | 56271b700b71ecef409f932dbacb02392f403be9 | [
"Apache-2.0"
] | 13 | 2017-09-19T17:49:59.000Z | 2021-09-21T18:20:15.000Z | test/bpmn/event/start_test.exs | Around25/hashiru-bpmn | 56271b700b71ecef409f932dbacb02392f403be9 | [
"Apache-2.0"
] | 7 | 2017-10-17T16:44:37.000Z | 2017-11-14T23:40:40.000Z | test/bpmn/event/start_test.exs | Around25/hashiru-bpmn | 56271b700b71ecef409f932dbacb02392f403be9 | [
"Apache-2.0"
] | 3 | 2017-10-21T08:23:26.000Z | 2021-09-10T14:27:07.000Z | defmodule Bpmn.Event.StartTest do
use ExUnit.Case, async: true
doctest Bpmn.Event.Start
end
| 19.2 | 33 | 0.78125 |
91ab44cef5c3c3fb3b054554a599bca56e6929bc | 405 | exs | Elixir | test/live_web/views/error_view_test.exs | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | test/live_web/views/error_view_test.exs | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | test/live_web/views/error_view_test.exs | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | defmodule LiveWeb.ErrorViewTest do
use LiveWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(LiveWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert rend... | 27 | 89 | 0.725926 |
91ab497f2c0df48f3303827a9ea56f75db33ad0e | 1,312 | exs | Elixir | test/ex_azure_test.exs | rschef/ex_azure | 6663914280a693f3332c65c71afdef1255c813fb | [
"MIT"
] | 10 | 2016-07-07T08:55:15.000Z | 2022-01-19T01:47:34.000Z | test/ex_azure_test.exs | rschef/ex_azure | 6663914280a693f3332c65c71afdef1255c813fb | [
"MIT"
] | 5 | 2018-03-06T04:42:02.000Z | 2022-03-16T23:34:42.000Z | test/ex_azure_test.exs | rschef/ex_azure | 6663914280a693f3332c65c71afdef1255c813fb | [
"MIT"
] | 8 | 2016-07-21T16:20:39.000Z | 2021-07-16T02:14:57.000Z | defmodule ExAzureTest do
use ExUnit.Case
@module ExAzure
test "ensure that all services way started" do
assert :ok == Application.ensure_started(:ex_azure)
assert :ok == Application.ensure_started(:erlazure)
end
@tag external: true
@tag timeout: 15000
describe "send actions to :erlazure" do
... | 28.521739 | 68 | 0.666159 |
91ab6594bff30901fc7cc25613298d6cd6ee722d | 4,275 | ex | Elixir | deps/postgrex/lib/postgrex/utils.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/utils.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/utils.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | defmodule Postgrex.Utils do
@moduledoc false
@extensions [
Postgrex.Extensions.Array,
Postgrex.Extensions.BitString,
Postgrex.Extensions.Bool,
Postgrex.Extensions.Box,
Postgrex.Extensions.CIDR,
Postgrex.Extensions.Circle,
Postgrex.Extensions.Date,
Postgrex.Extensions.Float4,
Pos... | 32.386364 | 100 | 0.681871 |
91ab8eeecb4c1d90456ce1997e2d8077ae186693 | 1,270 | ex | Elixir | oeml-sdk/elixir/lib/oeml_restapi/api/balances.ex | oskaralfons/coinapi-sdk | 2c79b6d91d0f702040dd865e79f0774a4bba9bb3 | [
"MIT"
] | 1 | 2020-07-23T05:47:52.000Z | 2020-07-23T05:47:52.000Z | oeml-sdk/elixir/lib/oeml_restapi/api/balances.ex | oskaralfons/coinapi-sdk | 2c79b6d91d0f702040dd865e79f0774a4bba9bb3 | [
"MIT"
] | null | null | null | oeml-sdk/elixir/lib/oeml_restapi/api/balances.ex | oskaralfons/coinapi-sdk | 2c79b6d91d0f702040dd865e79f0774a4bba9bb3 | [
"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 OEML-RESTAPI.Api.Balances do
@moduledoc """
API calls for all endpoints tagged `Balances`.
"""
alias OEML-RESTAPI.Connection
import OEML-RE... | 28.222222 | 121 | 0.659843 |
91ababfa398c0c2a5ceefd9b99ae0756b287ebb0 | 2,142 | ex | Elixir | lib/cforum/moderation_queue/moderation_queue_entry.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/moderation_queue/moderation_queue_entry.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/moderation_queue/moderation_queue_entry.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule Cforum.ModerationQueue.ModerationQueueEntry do
use CforumWeb, :model
@primary_key {:moderation_queue_entry_id, :id, autogenerate: true}
@derive {Phoenix.Param, key: :moderation_queue_entry_id}
@reasons ~w[off-topic not-constructive illegal duplicate spam custom]
def reasons(), do: @reasons
@res... | 32.953846 | 85 | 0.71662 |
91abb9c3aee1c92539ec23ebb66e2d27fe21a3d8 | 489 | exs | Elixir | config/test.exs | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | config/test.exs | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | config/test.exs | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :mundum, MundumWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :mundum, Mundum.Repo,
... | 24.45 | 56 | 0.732106 |
91abc080caf340fb2c9bf58675d2ec6ca9bd9f4d | 1,659 | exs | Elixir | test/nimble_template/addons/variants/phoenix/web/sobelow_test.exs | nimblehq/elixir-templates | 1425c32084b3814d630d2db28a28e39ec8cce59e | [
"MIT"
] | 34 | 2020-10-04T17:44:27.000Z | 2022-03-21T07:13:02.000Z | test/nimble_template/addons/variants/phoenix/web/sobelow_test.exs | nimblehq/elixir-templates | 1425c32084b3814d630d2db28a28e39ec8cce59e | [
"MIT"
] | 101 | 2020-06-10T03:35:10.000Z | 2022-03-31T03:44:13.000Z | test/nimble_template/addons/variants/phoenix/web/sobelow_test.exs | nimblehq/elixir-templates | 1425c32084b3814d630d2db28a28e39ec8cce59e | [
"MIT"
] | 2 | 2021-03-29T14:35:22.000Z | 2021-11-25T21:39:30.000Z | defmodule NimbleTemplate.Addons.Phoenix.Web.SobelowTest do
use NimbleTemplate.AddonCase, async: false
describe "#apply/2" do
@describetag mock_latest_package_versions: [{:credo, "0.26.2"}, {:sobelow, "0.8"}]
@describetag required_addons: [:TestEnv, :Credo]
test "copies the .sobelow-conf", %{
pro... | 29.625 | 100 | 0.522001 |
91abc34c7cc56157ff653c89fb265e8d6c7084be | 417 | ex | Elixir | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/duper19/lib/duper19/worker_supervisor.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/duper19/lib/duper19/worker_supervisor.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/duper19/lib/duper19/worker_supervisor.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | defmodule Duper19.WorkerSupervisor do
@moduledoc false
use DynamicSupervisor
@me Application.get_env(:duper19, :worker_supervisor)
def start_link(_) do
DynamicSupervisor.start_link(__MODULE__, :no_args, name: @me)
end
def init(:no_args) do
DynamicSupervisor.init(strategy: :one_for_one)
end
... | 20.85 | 68 | 0.743405 |
91abdf1e11825b302689ac45c41cba1049bc9f18 | 535 | ex | Elixir | apps/wechat_base/test/support/wechat_base/api/notation/endpoint/body_type/form_test/definition.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/test/support/wechat_base/api/notation/endpoint/body_type/form_test/definition.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/test/support/wechat_base/api/notation/endpoint/body_type/form_test/definition.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatBase.Api.Notation.Endpoint.BodyType.FormTest.Definition do
alias WechatBase.Api.Notation.Endpoint.BodyType.Form
defmacro __using__(_args) do
quote do
import unquote(__MODULE__), only: :macros
end
end
defmacro eval(name, [do: block]) do
do_eval(__CALLER__, name, block)
end
... | 22.291667 | 74 | 0.674766 |
91abe69e4032f016b66cdf9aa635f0b798be45d9 | 2,559 | ex | Elixir | lib/militerm/components/things.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | lib/militerm/components/things.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | lib/militerm/components/things.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | defmodule Militerm.Components.Things do
use Militerm.ECS.EctoComponent, default: %{}, schema: Militerm.Data.Things
@moduledoc """
Things are entities that are tracked by an entity. Values can be a single
entity or a list/set of entites. No support for using paths to select
individual entities in a set.
"""... | 25.848485 | 94 | 0.641657 |
91abeb7f5488f6bdef1094123d16ffd045662a57 | 202 | exs | Elixir | priv/repo/migrations/20180615223412_create_unique_index_on_sms_sid.exs | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180615223412_create_unique_index_on_sms_sid.exs | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180615223412_create_unique_index_on_sms_sid.exs | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | defmodule MessagingStatusService.Repo.Migrations.CreateUniqueIndexOnSmsSid do
use Ecto.Migration
def change do
create unique_index(:sms_sids, :sms_sid, name: :sms_sid_must_be_unique)
end
end
| 25.25 | 77 | 0.811881 |
91ac0c5cbadfddb70d75ecfe19e420f845196540 | 236 | exs | Elixir | apps/flair/config/dev.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/flair/config/dev.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2020-01-09T21:00:10.000Z | 2020-01-09T21:00:10.000Z | apps/flair/config/dev.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :prestige, base_url: "http://127.0.0.1:8080"
config :flair,
window_unit: :minute,
window_length: 5,
message_timeout: 5 * 60 * 1_000,
task_timeout: 5 * 60 * 1_000,
table_name_timing: "operational_stats"
| 21.454545 | 51 | 0.707627 |
91ac156f70c07fcc335ebddc4d3ac51d7f3f69c2 | 751 | ex | Elixir | clients/kratos/elixir/lib/ory/model/submit_self_service_login_flow_with_password_method_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/kratos/elixir/lib/ory/model/submit_self_service_login_flow_with_password_method_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/kratos/elixir/lib/ory/model/submit_self_service_login_flow_with_password_method_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | 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 Ory.Model.SubmitSelfServiceLoginFlowWithPasswordMethodBody do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"csrf_token",
... | 22.088235 | 91 | 0.673768 |
91ac162e738a9183b845b7b6b483fd906c4d0654 | 520 | ex | Elixir | lib/extensions/reset_password/ecto/schema.ex | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | 1 | 2021-06-25T10:36:01.000Z | 2021-06-25T10:36:01.000Z | lib/extensions/reset_password/ecto/schema.ex | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | lib/extensions/reset_password/ecto/schema.ex | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | defmodule PowResetPassword.Ecto.Schema do
@moduledoc false
use Pow.Extension.Ecto.Schema.Base
alias Ecto.Changeset
alias Pow.Extension.Ecto.Schema
@impl true
def validate!(_config, module) do
Schema.require_schema_field!(module, :email, PowResetPassword)
end
@spec reset_password_changeset(map(), ... | 26 | 66 | 0.742308 |
91aca245664f079284ddb4360e3136a8773927d2 | 4,427 | ex | Elixir | lib/banned_book_report_web/controllers/user_auth.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/controllers/user_auth.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/controllers/user_auth.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | defmodule BannedBookReportWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias BannedBookReport.Accounts
alias BannedBookReportWeb.Router.Helpers, as: Routes
# Make the remember me cookie valid for 60 days.
# If you want bump or reduce this value, also change
# the token expiry itself in Use... | 29.513333 | 81 | 0.69799 |
91acb977799baec9832c13cedbe361137fadf604 | 3,335 | ex | Elixir | clients/content/lib/google_api/content/v21/model/datafeed_fetch_schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/datafeed_fetch_schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/datafeed_fetch_schedule.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... | 41.6875 | 289 | 0.668966 |
91acde5171f0e24aee6cff29981b022a8650c4b7 | 1,126 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/connection.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/connection.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/connection.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... | 34.121212 | 74 | 0.742451 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.