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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f4ccbcbf8e9511b2b8899759eba4ed1e6b9d6bc | 1,947 | ex | Elixir | lib/absinthe/type/input_object.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/type/input_object.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/type/input_object.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Type.InputObject do
@moduledoc """
Defines a GraphQL input object
Input objects enable nested arguments to queries and mutations.
## Example
```
mutation do
field :user, :user do
arg :name, :string
arg :contact, non_null(:contact)
resolve &User.create/2
end
... | 23.178571 | 109 | 0.620955 |
3f4cd7e8b19f27364bb6f50045786abfe5ffdb96 | 4,962 | ex | Elixir | lib/lexthink/worker.ex | taybin/lexthink | 0afd178dbf372bedd0933b1d2a0f2a84615b96f9 | [
"Apache-2.0"
] | 1 | 2015-12-07T13:07:39.000Z | 2015-12-07T13:07:39.000Z | lib/lexthink/worker.ex | taybin/lexthink | 0afd178dbf372bedd0933b1d2a0f2a84615b96f9 | [
"Apache-2.0"
] | null | null | null | lib/lexthink/worker.ex | taybin/lexthink | 0afd178dbf372bedd0933b1d2a0f2a84615b96f9 | [
"Apache-2.0"
] | null | null | null | defmodule Lexthink.Worker do
use GenServer.Behaviour
@version 0x723081e1 # v02 magic number from ql2.proto
defrecord State, socket: nil, database: nil, token: 1
@spec start_link(any, list) :: any
def start_link(ref, opts) do
{:ok, pid} = :gen_server.start_link(__MODULE__, [opts], [])
Lexthink.S... | 33.986301 | 95 | 0.636235 |
3f4ce17d1e3c88945e668eeac7dd9b206588f7a8 | 1,450 | exs | Elixir | config/dev.exs | webrules/msauth | 34689bd2d2a5cf3bdc646a2548dc4f3b4358a3d9 | [
"MIT"
] | null | null | null | config/dev.exs | webrules/msauth | 34689bd2d2a5cf3bdc646a2548dc4f3b4358a3d9 | [
"MIT"
] | null | null | null | config/dev.exs | webrules/msauth | 34689bd2d2a5cf3bdc646a2548dc4f3b4358a3d9 | [
"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 :ueberauth_example, UeberauthExampleWeb.Endpoint... | 29 | 60 | 0.717931 |
3f4cf93df1738cbb4b25035dac80927a935fe06c | 427 | ex | Elixir | apps/artemis_notify/lib/artemis_notify/views/error_view.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_notify/lib/artemis_notify/views/error_view.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_notify/lib/artemis_notify/views/error_view.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisNotify.ErrorView do
use ArtemisNotify, :view
def render("404.json", _assigns) do
%{errors: %{detail: "Page not found"}}
end
def render("500.json", _assigns) do
%{errors: %{detail: "Internal server error"}}
end
# In case no render clause matches or no
# template is found, let's ... | 23.722222 | 49 | 0.688525 |
3f4d0e24869fd4ef774014921991e6e4d79cbb1d | 2,055 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/border.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/border.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/border.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... | 36.696429 | 165 | 0.696837 |
3f4d1590d8535857aa644dfbba771b4c9cce4686 | 997 | exs | Elixir | apps/game_of_life/mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/game_of_life/mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/game_of_life/mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule GameOfLife.MixProject do
use Mix.Project
def project do
[
app: :game_of_life,
version: "0.4.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.10",
elixirc_paths: el... | 24.925 | 88 | 0.583751 |
3f4d2db8e73cccc94d3289bc7474150a3463e791 | 1,398 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/https_health_check.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/https_health_check.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/https_health_check.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 28.530612 | 134 | 0.718884 |
3f4d2df8eab078178a48714f97b321b20b12d78c | 205 | ex | Elixir | lib/phone/gw.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/gw.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/gw.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.GW do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(245)()(.{7})/
def country, do: "Guinea-Bissau"
def a2, do: "GW"
def a3, do: "GNB"
matcher :regex, ["245"]
end
| 15.769231 | 35 | 0.604878 |
3f4d418d9b633791db5f17cd06a05de57d75e3da | 2,601 | ex | Elixir | lib/farmbot/celery_script/ast/node/write_pin.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/celery_script/ast/node/write_pin.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | null | null | null | lib/farmbot/celery_script/ast/node/write_pin.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.CeleryScript.AST.Node.WritePin do
@moduledoc false
use Farmbot.CeleryScript.AST.Node
use Farmbot.Logger
alias Farmbot.CeleryScript.AST
alias AST.Node.NamedPin
alias Farmbot.Asset
alias Asset.Peripheral
allow_args [:pin_number, :pin_value, :pin_mode]
def execute(%{pin_number: %AST{k... | 30.244186 | 133 | 0.653979 |
3f4d5e730b252fe4d0c85d60d707281c407e8936 | 132 | ex | Elixir | lib/http.ex | leozhang37/ex_alipay | 64ef0d376df36ff52e0828754c07f23249ab6914 | [
"MIT"
] | 4 | 2019-08-08T15:23:57.000Z | 2021-07-22T07:56:12.000Z | lib/http.ex | leozhang37/ex_alipay | 64ef0d376df36ff52e0828754c07f23249ab6914 | [
"MIT"
] | 3 | 2019-11-19T11:01:25.000Z | 2022-03-22T09:34:15.000Z | lib/http.ex | leozhang37/ex_alipay | 64ef0d376df36ff52e0828754c07f23249ab6914 | [
"MIT"
] | 6 | 2019-09-10T10:49:09.000Z | 2022-01-24T13:57:53.000Z | defmodule ExAlipay.HTTP.Behaviour do
@typep url :: binary()
@callback get(url) :: {:ok, map()} | {:error, binary() | map()}
end
| 26.4 | 65 | 0.621212 |
3f4da14aaa78906ce8a280fc47f57cabcf903c8b | 267 | ex | Elixir | lib/course_01/repo.ex | geirilja/web_dev | e1a64336bf52148a63e54a7326ea9ed13a2034a0 | [
"MIT"
] | null | null | null | lib/course_01/repo.ex | geirilja/web_dev | e1a64336bf52148a63e54a7326ea9ed13a2034a0 | [
"MIT"
] | null | null | null | lib/course_01/repo.ex | geirilja/web_dev | e1a64336bf52148a63e54a7326ea9ed13a2034a0 | [
"MIT"
] | null | null | null | defmodule Course01.Repo do
use Ecto.Repo, otp_app: :course_01
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 22.25 | 66 | 0.700375 |
3f4daa62c921d8331a278f19bc288ff07af77d65 | 270 | exs | Elixir | apps/schedules/test/schedules_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/schedules/test/schedules_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/schedules/test/schedules_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SchedulesTest do
@moduledoc false
use ExUnit.Case
describe "start/2" do
test "can start the application" do
# should have already been started
assert {:error, {:already_started, _pid}} = Schedules.start(:permanent, [])
end
end
end
| 22.5 | 81 | 0.685185 |
3f4dd75ea223cbdf46974a3f18d43b33baa69a76 | 137 | ex | Elixir | lib/ekeko_web/controllers/page_controller.ex | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | 8 | 2022-02-21T00:34:21.000Z | 2022-03-12T08:13:26.000Z | lib/ekeko_web/controllers/page_controller.ex | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | null | null | null | lib/ekeko_web/controllers/page_controller.ex | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | null | null | null | defmodule EkekoWeb.PageController do
use EkekoWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.125 | 36 | 0.729927 |
3f4de146787b67924550bf50d4abff671b6ced3f | 7,210 | ex | Elixir | lib/binance/futures/coin/rest/http_client.ex | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | lib/binance/futures/coin/rest/http_client.ex | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | lib/binance/futures/coin/rest/http_client.ex | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | defmodule Binance.Futures.Coin.Rest.HTTPClient do
@endpoint "https://dapi.binance.com"
@used_order_limit "X-MBX-ORDER-COUNT-1M"
@used_weight_limit "X-MBX-USED-WEIGHT-1M"
alias Binance.{Config, Util}
def get_binance(url, headers \\ []) when is_list(headers) do
HTTPoison.get("#{@endpoint}#{url}", headers)... | 28.955823 | 93 | 0.525243 |
3f4de55068622361bbb3ace20a8bfb7fb2ee5cd1 | 1,797 | ex | Elixir | apps/toniefy/lib/toniex/recorder/spotify.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 17 | 2021-04-12T10:01:14.000Z | 2022-02-25T17:30:27.000Z | apps/toniefy/lib/toniex/recorder/spotify.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 1 | 2022-03-09T09:35:00.000Z | 2022-03-09T11:46:14.000Z | apps/toniefy/lib/toniex/recorder/spotify.ex | benvp/toniefy | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | null | null | null | defmodule Toniex.Recorder.Spotify do
use Oban.Worker,
queue: :spotify_recorder,
max_attempts: 3
require Logger
alias Toniex.{Accounts, JobStatus}
@impl Oban.Worker
def perform(%Oban.Job{
id: job_id,
queue: queue,
args: %{"id" => id, "user_id" => user_id, "uri" => uri}
... | 23.337662 | 92 | 0.539789 |
3f4de5e5bc3c8d76a7380853969d201a1220d82a | 306 | exs | Elixir | priv/repo/migrations/04_create_schemas.exs | rsystem-se/scrivener_ecto | 91043af8fdf3350d70dd2c04747856681ab7ce6f | [
"MIT"
] | 509 | 2016-04-02T03:24:31.000Z | 2022-03-23T06:11:01.000Z | priv/repo/migrations/04_create_schemas.exs | rsystem-se/scrivener_ecto | 91043af8fdf3350d70dd2c04747856681ab7ce6f | [
"MIT"
] | 85 | 2016-04-22T21:59:31.000Z | 2022-02-10T15:10:32.000Z | priv/repo/migrations/04_create_schemas.exs | rsystem-se/scrivener_ecto | 91043af8fdf3350d70dd2c04747856681ab7ce6f | [
"MIT"
] | 125 | 2016-05-05T01:56:20.000Z | 2022-03-24T07:21:06.000Z | defmodule TestRepo.Migrations.CreateSchemas do
use Ecto.Migration
@prefixes ["tenant_1", "tenant_2"]
def up do
for prefix <- @prefixes do
execute "CREATE SCHEMA #{prefix}"
end
end
def down do
for prefix <- @prefixes do
execute "DROP SCHEMA #{prefix}"
end
end
end
| 17 | 46 | 0.650327 |
3f4e0b48c050c41c81bba42c39b181b6f3885431 | 3,587 | exs | Elixir | 2022/w04/bank_kata_ex/test/bank/delivery/webapi/webapi_test.exs | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/test/bank/delivery/webapi/webapi_test.exs | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/test/bank/delivery/webapi/webapi_test.exs | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | defmodule Bank.Delivery.WebAPITest do
use ExUnit.Case, async: false
use Plug.Test
import Mox
setup :verify_on_exit!
ExUnit.Case.register_describe_attribute(__MODULE__, :test_fixtures, accumulate: true)
alias Bank.Tests.Support
alias Bank.Core.Actions.Boundaries.MockDepositAction
alias Bank.Core.Acti... | 28.023438 | 87 | 0.706161 |
3f4e562b8e84381d7da666f5553440746f32d831 | 2,776 | ex | Elixir | lib/changelog_web/controllers/episode_controller.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/episode_controller.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/episode_controller.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.EpisodeController do
use ChangelogWeb, :controller
alias Changelog.{Podcast, Episode}
plug :allow_framing, "embeds are frameable" when action in [:embed]
plug PublicEtsCache
plug :assign_podcast
def action(conn, _) do
arg_list = [conn, conn.params, conn.assigns.podcast]
app... | 26.438095 | 111 | 0.636167 |
3f4e62c5b93e0474f9bdce1ed711821e252efee6 | 222 | ex | Elixir | lib/cometoid_web/date_form_helpers.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid_web/date_form_helpers.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid_web/date_form_helpers.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | defmodule CometoidWeb.DateFormHelpers do
def put_back_event params, previous_params, key do
if not Map.has_key? params, key do
Map.put params, key, previous_params[key]
else
params
end
end
end
| 20.181818 | 52 | 0.711712 |
3f4e66dcb978f0ff18497eefabfc1988780fe0be | 494 | ex | Elixir | test/support/integration_testing/test_pages/form_page.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | test/support/integration_testing/test_pages/form_page.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | test/support/integration_testing/test_pages/form_page.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.IntegrationTesting.TestPages.FormPage do
@moduledoc false
alias WebDriverClient.IntegrationTesting.TestPages.Server
@spec url :: String.t()
def url do
Path.join([Server.get_base_url(), "form.html"])
end
@spec css_selector_for_first_name_field :: String.t()
def css_selector... | 23.52381 | 66 | 0.759109 |
3f4e80656068277d9982b9ecfe87ca44adda0cbd | 73 | exs | Elixir | test/views/page_view_test.exs | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | defmodule Tilex.PageViewTest do
use TilexWeb.ConnCase, async: true
end
| 18.25 | 36 | 0.808219 |
3f4e951f54a570a72e193bef1f76139ba0ea43be | 213 | exs | Elixir | apps/nightcrawler/config/dev.exs | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/config/dev.exs | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/config/dev.exs | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :nightcrawler, Nightcrawler.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "nightcrawler_dev",
pool_size: 2
| 21.3 | 40 | 0.751174 |
3f4e986e037525b7868da68dc86a4bc898f1efa0 | 3,859 | ex | Elixir | lib/dqs/command/create.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 6 | 2021-03-17T13:38:27.000Z | 2021-05-09T04:01:08.000Z | lib/dqs/command/create.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 12 | 2021-03-21T14:44:11.000Z | 2021-07-31T09:35:00.000Z | lib/dqs/command/create.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 3 | 2021-04-11T11:08:59.000Z | 2021-11-02T15:36:04.000Z | defmodule Dqs.Command.Create do
alias Dqs.Repo
import Nostrum.Struct.Embed
@prefix Application.get_env(:dqs, :prefix)
@open_category_id Application.get_env(:dqs, :open_category_id)
@closed_category_id Application.get_env(:dqs, :closed_category_id)
@board_channel_id Application.get_env(:dqs, :board_channel_... | 34.765766 | 151 | 0.647059 |
3f4e9bda9415abacb743e18ed8c204e3d355d3ec | 4,452 | exs | Elixir | test/validators_test.exs | iodevs/validatex | e524ea2d2cacbc9d8e9397544b88b0b7b5917131 | [
"BSD-Source-Code"
] | 7 | 2020-01-27T15:51:28.000Z | 2021-06-29T20:57:00.000Z | test/validators_test.exs | iodevs/validatex | e524ea2d2cacbc9d8e9397544b88b0b7b5917131 | [
"BSD-Source-Code"
] | 2 | 2019-12-28T22:45:55.000Z | 2019-12-30T16:18:10.000Z | test/validators_test.exs | iodevs/validatex | e524ea2d2cacbc9d8e9397544b88b0b7b5917131 | [
"BSD-Source-Code"
] | null | null | null | defmodule ValidatorsTest do
@moduledoc false
use ExUnit.Case, async: true
use PropCheck
alias Validatex.{Validation, Validators}
@error_msg "ERROR"
# Properties
property "should verify if input value is not empty" do
forall value <- binary() do
value |> Validators.not_empty(@error_msg) |> ch... | 27.825 | 95 | 0.632974 |
3f4ea7f365e71462b6b0bc52e85a561906d2edb7 | 1,866 | ex | Elixir | lib/listentothis_handler/handler_server.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | lib/listentothis_handler/handler_server.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | lib/listentothis_handler/handler_server.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | import ListentothisReddit.Getter
#This module will handle pagination of all data incomming from the listentothis subreddit, it will also cache 20 posts at a time for optimal access
defmodule ListentothisHandler.HandlerServer do
use GenServer
@default_page 0
@new_section "new"
@top_section "top"
... | 28.707692 | 147 | 0.602358 |
3f4eac138c554ddd0a6dea1d1d2b255626a41359 | 1,608 | exs | Elixir | mix.exs | gentlelionstudios/leaf_through | 5e104c488cc78fc2d8b0e79582bed1aa8552d82f | [
"Apache-2.0"
] | null | null | null | mix.exs | gentlelionstudios/leaf_through | 5e104c488cc78fc2d8b0e79582bed1aa8552d82f | [
"Apache-2.0"
] | null | null | null | mix.exs | gentlelionstudios/leaf_through | 5e104c488cc78fc2d8b0e79582bed1aa8552d82f | [
"Apache-2.0"
] | null | null | null | defmodule LeafThrough.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[
app: :leaf_through,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elix... | 27.254237 | 122 | 0.538557 |
3f4ebf964543e8a5756551eb8305369d041d8962 | 529 | exs | Elixir | config/prod.exs | mbta/delta_http_s3 | 66c61fd2c95a2184216e8718adf0c5d58318d679 | [
"MIT"
] | 4 | 2020-04-03T14:38:53.000Z | 2021-04-02T10:31:30.000Z | config/prod.exs | mbta/delta_http_s3 | 66c61fd2c95a2184216e8718adf0c5d58318d679 | [
"MIT"
] | 107 | 2020-03-19T13:24:23.000Z | 2022-02-28T06:32:58.000Z | config/prod.exs | mbta/delta_http_s3 | 66c61fd2c95a2184216e8718adf0c5d58318d679 | [
"MIT"
] | 1 | 2019-12-31T17:49:06.000Z | 2019-12-31T17:49:06.000Z | use Mix.Config
config :delta,
config_sources: [
{:system, "DELTA_JSON"}
]
config :delta, DeltaWeb.Endpoint,
server: true,
http: [:inet6, port: 4000],
url: [host: {:system, "HOST"}, port: 443]
config :delta, DeltaWeb.Router, require_https: true
config :sasl, errlog_type: :error
config :logger,
handl... | 19.592593 | 52 | 0.678639 |
3f4ed4ced9e59b6704424ee3915f65e8ce723684 | 2,174 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_line_items_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_line_items_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_line_items_request.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 ... | 38.821429 | 182 | 0.717571 |
3f4ed4d918925e8bc56e01cda73d651bae3716ae | 3,419 | exs | Elixir | test/instream/log/default_logger_test.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 204 | 2015-06-04T06:38:57.000Z | 2022-01-30T08:56:33.000Z | test/instream/log/default_logger_test.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 71 | 2015-05-24T02:08:28.000Z | 2022-01-10T17:13:27.000Z | test/instream/log/default_logger_test.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 41 | 2015-09-05T21:24:04.000Z | 2021-11-10T02:52:48.000Z | defmodule Instream.Log.DefaultLoggerTest do
use ExUnit.Case, async: false
require Logger
import ExUnit.CaptureLog
alias Instream.TestHelpers.Connections.DefaultConnection
defmodule LogConnection do
use Instream.Connection, otp_app: :instream
end
defmodule TestSeries do
use Instream.Series
... | 22.793333 | 86 | 0.61714 |
3f4ed61a2f0a96453ede7df37487756adb824211 | 597 | ex | Elixir | lib/facebook/graph_video_api.ex | mlabssoftware/facebook.ex | fa7024c11f2c4ab88111e8e58b546010dad227f4 | [
"MIT"
] | null | null | null | lib/facebook/graph_video_api.ex | mlabssoftware/facebook.ex | fa7024c11f2c4ab88111e8e58b546010dad227f4 | [
"MIT"
] | null | null | null | lib/facebook/graph_video_api.ex | mlabssoftware/facebook.ex | fa7024c11f2c4ab88111e8e58b546010dad227f4 | [
"MIT"
] | null | null | null | defmodule Facebook.GraphVideoAPI do
@moduledoc false
use HTTPoison.Base
alias Facebook.Config
def process_request_options(options) do
updated_options =
case Config.request_conn_timeout() do
nil -> options
val -> options ++ [timeout: val]
end
case Config.request_recv_timeo... | 22.111111 | 59 | 0.675042 |
3f4ed74545ece92805b2c515c0fa6151c693e2a0 | 5,154 | ex | Elixir | lib/swoosh/adapters/gmail.ex | nallwhy/swoosh | c4dfefda0d347fe73b189ac91eede3d73d6f6904 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/gmail.ex | nallwhy/swoosh | c4dfefda0d347fe73b189ac91eede3d73d6f6904 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/gmail.ex | nallwhy/swoosh | c4dfefda0d347fe73b189ac91eede3d73d6f6904 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.Gmail do
@moduledoc """
An adapter that sends email using Gmail api
For reference: [Gmail API docs](https://developers.google.com/gmail/api)
## Dependency
Gmail adapter requires `Mail` dependency to format message as RFC 2822 message.
{:mail, ">= 0.0.0"}
Because `Mail` l... | 33.038462 | 99 | 0.674816 |
3f4f119da53643d56170ab394c4870468662b218 | 1,311 | exs | Elixir | config/config.exs | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | 3 | 2021-08-29T03:06:05.000Z | 2022-01-13T09:29:38.000Z | config/config.exs | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | 15 | 2021-08-23T18:02:30.000Z | 2021-08-30T07:32:38.000Z | config/config.exs | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :tiptap,
ecto_repos: [Tiptap.Repo]
# Config... | 31.97561 | 86 | 0.739893 |
3f4f154f48d47d3b8353970daeaffd99cdfc2eeb | 322 | exs | Elixir | test/tictac_web/live/page_live_test.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 251 | 2021-04-30T04:46:53.000Z | 2022-03-30T06:39:52.000Z | test/tictac_web/live/page_live_test.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 3 | 2021-05-06T03:01:39.000Z | 2022-03-29T13:04:16.000Z | test/tictac_web/live/page_live_test.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 21 | 2021-04-30T05:25:57.000Z | 2022-03-01T17:22:21.000Z | defmodule TictacWeb.PageLiveTest do
use TictacWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Player Settings"
assert render(page_live) =~ "Player Settings"
end
en... | 26.833333 | 60 | 0.729814 |
3f4f5da43364c9535287152d7188cca96ff2b2d5 | 1,376 | ex | Elixir | apps/brain/lib/sensors/common.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/brain/lib/sensors/common.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/brain/lib/sensors/common.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | defmodule Sensors.Common do
defmacro __using__(_opts) do
alias Brain.BlackBox
quote do
def handle_call(:configuration, _from, %{driver_pid: driver_pid} = state) do
{:ok, driver_configuration} = GenServer.call(driver_pid, :configuration)
configuration = %{
driver_configuration:... | 26.980392 | 82 | 0.585029 |
3f4f64818e79230f64712721b34ab0702d4a8ae4 | 9,201 | exs | Elixir | test/teslamate/vehicles/vehicle_test.exs | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle_test.exs | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle_test.exs | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.VehicleTest do
use TeslaMate.VehicleCase, async: true
describe "starting" do
@tag :capture_log
test "handles unknown and faulty states", %{test: name} do
events = [
{:ok, %TeslaApi.Vehicle{state: "unknown"}},
{:error, %TeslaApi.Error{reason: :boom, message... | 28.84326 | 98 | 0.589719 |
3f4f95df0a47573812e5d04e80ba6b0470667549 | 328 | ex | Elixir | lib/mappers_web/controllers/api/v1/ingest_uplink_controller.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 32 | 2021-04-22T01:55:31.000Z | 2022-02-25T13:17:21.000Z | lib/mappers_web/controllers/api/v1/ingest_uplink_controller.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 58 | 2021-06-04T18:42:59.000Z | 2022-03-31T07:17:01.000Z | lib/mappers_web/controllers/api/v1/ingest_uplink_controller.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 13 | 2021-04-10T06:09:15.000Z | 2022-03-23T13:07:37.000Z | defmodule MappersWeb.API.V1.IngestUplinkController do
use MappersWeb, :controller
alias Mappers.Ingest
def create(conn, params) do
resp = Ingest.ingest_uplink(params)
case resp do
%{error: _} -> Plug.Conn.put_status(conn, 400)
_ -> Plug.Conn.put_status(conn, 200)
end
|> json(resp)
... | 21.866667 | 53 | 0.679878 |
3f4fb74bcb72eba6d17cbf5c5404e38206412147 | 1,447 | exs | Elixir | config/releases.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | config/releases.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | config/releases.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | 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.
import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envir... | 26.309091 | 67 | 0.723566 |
3f50218f01dd7763ff801e6a152375f65f608381 | 341 | ex | Elixir | lib/mix/tasks/mandrag/deploy.ex | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 19 | 2016-01-16T12:43:40.000Z | 2021-03-25T03:24:26.000Z | lib/mix/tasks/mandrag/deploy.ex | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 4 | 2016-02-06T05:33:06.000Z | 2019-06-25T02:14:04.000Z | lib/mix/tasks/mandrag/deploy.ex | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 1 | 2020-01-20T15:11:24.000Z | 2020-01-20T15:11:24.000Z | defmodule Mix.Tasks.Mandrag.Deploy do
use Mix.Task
@shortdoc "Runs build, push, and upgrade, effectively building a release, pushing the image, and installing/updating your helm relase."
def run(_) do
Mix.Task.run("mandrag.docker.build")
Mix.Task.run("mandrag.docker.push")
Mix.Task.run("mandrag.helm... | 28.416667 | 137 | 0.727273 |
3f5028cfd406b2c6d181d2e4db5838f45ac7a180 | 6,545 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/api/representatives.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/api/representatives.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/api/representatives.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 46.41844 | 246 | 0.700535 |
3f508af0cc89abdd76bb5bc81c122f1ff98bfc52 | 4,075 | exs | Elixir | test/litelist_web/utils/export_utils_test.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T15:46:49.000Z | 2021-01-13T15:46:49.000Z | test/litelist_web/utils/export_utils_test.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T16:42:24.000Z | 2021-01-13T16:42:24.000Z | test/litelist_web/utils/export_utils_test.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | null | null | null | defmodule LitelistWeb.ExportUtilsTest do
use Litelist.DataCase, async: true
alias LitelistWeb.Utils.ExportUtils
alias Litelist.Factory
describe "build_posts_csv" do
test "returns correctly formatted csv" do
build_count = 3
neighbor = Factory.insert(:neighbor)
... | 39.182692 | 112 | 0.595583 |
3f5093caf123d67a3d55a2896ba3878951a5ca9a | 73 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/views/client_blog_view.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/views/client_blog_view.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/views/client_blog_view.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.ClientBlogView do
use MishkaHtmlWeb, :view
end
| 18.25 | 41 | 0.835616 |
3f50a62e4a03c4c336236c141dff6f862be717eb | 998 | ex | Elixir | lib/blog_web/router.ex | allefgomes/elixir_blog | 413cedd74344f4fc503ba7ab1c9fac23ec31429b | [
"MIT"
] | null | null | null | lib/blog_web/router.ex | allefgomes/elixir_blog | 413cedd74344f4fc503ba7ab1c9fac23ec31429b | [
"MIT"
] | 5 | 2021-06-19T16:43:22.000Z | 2021-06-30T10:52:13.000Z | lib/blog_web/router.ex | allefgomes/elixir_blog | 413cedd74344f4fc503ba7ab1c9fac23ec31429b | [
"MIT"
] | null | null | null | defmodule BlogWeb.Router do
use BlogWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scope "/", BlogWeb do
pipe_through :browser
get "/", PageController, :index
resou... | 25.589744 | 70 | 0.709419 |
3f50cdc8ef5db99457a3c5b8afb3150a001b633f | 1,887 | exs | Elixir | clients/android_enterprise/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.164179 | 109 | 0.662957 |
3f50da4cd8e3bf2f0269557888d000abacac06d4 | 2,718 | ex | Elixir | lib/quadtreex/bounding_box.ex | kevsmith/quadtreex | 614d9878fd05f7242fbfc934edc998a7e0f2827b | [
"MIT"
] | 2 | 2021-02-28T11:12:40.000Z | 2021-03-15T12:26:06.000Z | lib/quadtreex/bounding_box.ex | kevsmith/quadtreex | 614d9878fd05f7242fbfc934edc998a7e0f2827b | [
"MIT"
] | null | null | null | lib/quadtreex/bounding_box.ex | kevsmith/quadtreex | 614d9878fd05f7242fbfc934edc998a7e0f2827b | [
"MIT"
] | 1 | 2021-03-15T12:32:09.000Z | 2021-03-15T12:32:09.000Z | defmodule Quadtreex.BoundingBox.Guards do
@moduledoc false
defguard is_within(lx, ly, rx, ry, x, y) when x >= lx and x <= rx and y >= ly and y <= ry
end
defmodule Quadtreex.BoundingBox do
@moduledoc """
Describes a box of 2 dimensional space
"""
@enforce_keys [:l, :r]
defstruct l: {nil, nil}, r: {nil, ni... | 25.885714 | 91 | 0.532377 |
3f50ed7e70bfff24849531e74e744786b0f87727 | 8,166 | exs | Elixir | test/honeybadger_test.exs | pthompson/honeybadger-elixir | a6632ca30ee626437f30074567f81fdca2af2b53 | [
"MIT"
] | null | null | null | test/honeybadger_test.exs | pthompson/honeybadger-elixir | a6632ca30ee626437f30074567f81fdca2af2b53 | [
"MIT"
] | null | null | null | test/honeybadger_test.exs | pthompson/honeybadger-elixir | a6632ca30ee626437f30074567f81fdca2af2b53 | [
"MIT"
] | null | null | null | defmodule HoneybadgerTest do
use Honeybadger.Case
doctest Honeybadger
setup do
{:ok, _} = Honeybadger.API.start(self())
on_exit(&Honeybadger.API.stop/0)
end
describe "deprecated Honeybadger.notify works" do
test "sending a notice with exception stacktrace" do
restart_with_config(exclude_... | 28.855124 | 112 | 0.630786 |
3f50fffa6d8e23e67a38634110d513f5cfe20d41 | 2,672 | ex | Elixir | lib/sport.ex | samuelventura/sport | b3d935dd19cbb6b609535f1aef8b875c07cf70de | [
"MIT"
] | null | null | null | lib/sport.ex | samuelventura/sport | b3d935dd19cbb6b609535f1aef8b875c07cf70de | [
"MIT"
] | null | null | null | lib/sport.ex | samuelventura/sport | b3d935dd19cbb6b609535f1aef8b875c07cf70de | [
"MIT"
] | null | null | null | defmodule Sport do
@moduledoc false
defguard is_byte(n) when is_integer(n) and n >= 0 and n <= 0xFF
defguard is_word(n) when is_integer(n) and n >= 0 and n <= 0xFFFF
defguard is_hundred(n)
when is_integer(n) and n >= 0 and rem(n, 100) == 0 and div(n, 100) <= 0xFF
def open(device, speed, config) d... | 25.207547 | 87 | 0.523578 |
3f5102921b4b3d6bcfcbf67c240d2beb32785c45 | 5,732 | exs | Elixir | test/elixir/test/jwtauth_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/jwtauth_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/jwtauth_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | defmodule JwtAuthTest do
use CouchTestCase
@moduletag :authentication
test "jwt auth with HMAC secret", _context do
secret = "zxczxc12zxczxc12"
server_config = [
%{
:section => "jwt_keys",
:key => "hmac:_default",
:value => :base64.encode(secret)
},
%{
... | 26.414747 | 83 | 0.572401 |
3f51465336a4315b4f7a244302c88986a3d79cad | 1,683 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/user_about.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/user_about.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/admin/lib/google_api/admin/directory_v1/model/user_about.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.66 | 216 | 0.724896 |
3f5161e5089cfc6ccc3836d63639ea5f2e05f6c2 | 1,666 | ex | Elixir | lib/pumpkin_web/endpoint.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | lib/pumpkin_web/endpoint.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | lib/pumpkin_web/endpoint.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | defmodule PumpkinWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :pumpkin
socket "/socket", PumpkinWeb.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... | 28.724138 | 95 | 0.707683 |
3f517bf0dc74ea708b365e6d2b1f5a9381384ec4 | 426 | ex | Elixir | graphical/lib/graphical_web/views/user_view.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical_web/views/user_view.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical_web/views/user_view.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule GraphicalWeb.UserView do
use GraphicalWeb, :view
alias GraphicalWeb.UserView
def render("index.json", %{users: users}) do
%{data: render_many(users, UserView, "user.json")}
end
def render("show.json", %{user: user}) do
%{data: render_one(user, UserView, "user.json")}
end
def render("u... | 22.421053 | 54 | 0.64554 |
3f517db39c8eafee943f318144fc9d75eeaf1557 | 2,259 | exs | Elixir | test/afterglow/snapshots/snapshots_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | test/afterglow/snapshots/snapshots_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | test/afterglow/snapshots/snapshots_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.SnapshotsTest do
use AfterGlow.DataCase
alias AfterGlow.Snapshots
describe "snapshots" do
alias AfterGlow.Snapshots.Snapshot
@valid_attrs %{columns: [], name: "some name"}
@update_attrs %{columns: [], name: "some updated name"}
@invalid_attrs %{columns: nil, name: nil}
... | 33.220588 | 94 | 0.68703 |
3f51899eb69d518b40aeabd2dd4b874029de155e | 1,325 | exs | Elixir | mix.exs | nonrational/endon | 00f20aa00aa2b7e37de91bc060fa769bd9eba744 | [
"MIT"
] | null | null | null | mix.exs | nonrational/endon | 00f20aa00aa2b7e37de91bc060fa769bd9eba744 | [
"MIT"
] | null | null | null | mix.exs | nonrational/endon | 00f20aa00aa2b7e37de91bc060fa769bd9eba744 | [
"MIT"
] | null | null | null | defmodule Endon.MixProject do
use Mix.Project
@source_url "https://github.com/bmuller/endon"
@version "1.0.1"
def project do
[
app: :endon,
aliases: aliases(),
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Ec... | 18.661972 | 66 | 0.514717 |
3f5194ebf1627f09c1c9bf8c258204c28fe72bf4 | 775 | exs | Elixir | test/test_helper.exs | kanmo/msgpax | 38304c277d923e2abfce33ef402fc69228583414 | [
"ISC"
] | null | null | null | test/test_helper.exs | kanmo/msgpax | 38304c277d923e2abfce33ef402fc69228583414 | [
"ISC"
] | null | null | null | test/test_helper.exs | kanmo/msgpax | 38304c277d923e2abfce33ef402fc69228583414 | [
"ISC"
] | null | null | null | ExUnit.start()
defmodule Msgpax.Case do
use ExUnit.CaseTemplate
using _ do
quote do
import unquote(__MODULE__)
end
end
defmacro assert_format(data, format) do
round_trip(data, format, data, [])
end
defmacro assert_format(input, format, {output, opts}) do
round_trip(input, format, o... | 23.484848 | 81 | 0.683871 |
3f51bbee033bfb881c8ee618e122d2ee5a509884 | 221 | ex | Elixir | lib/requester_web/channels/user_socket.ex | jbrb/lyrix-api | c532d1a9f42f9d086a35f8aeb59dc363143d4242 | [
"MIT"
] | null | null | null | lib/requester_web/channels/user_socket.ex | jbrb/lyrix-api | c532d1a9f42f9d086a35f8aeb59dc363143d4242 | [
"MIT"
] | null | null | null | lib/requester_web/channels/user_socket.ex | jbrb/lyrix-api | c532d1a9f42f9d086a35f8aeb59dc363143d4242 | [
"MIT"
] | null | null | null | defmodule RequesterWeb.UserSocket do
use Phoenix.Socket
transport(:websocket, Phoenix.Transports.WebSocket, timeout: 45_000)
def connect(_params, socket) do
{:ok, socket}
end
def id(_socket), do: nil
end
| 18.416667 | 70 | 0.733032 |
3f51bec283e6a1d55b7b7f18d59bfa023c02bf3e | 965 | ex | Elixir | lib/cuda/compiler.ex | gridgentoo/cuda | e758c05674605e4601c568160904bcd5e2e7be94 | [
"MIT"
] | 4 | 2019-09-18T14:25:02.000Z | 2021-12-16T12:09:10.000Z | lib/cuda/compiler.ex | gridgentoo/cuda | e758c05674605e4601c568160904bcd5e2e7be94 | [
"MIT"
] | null | null | null | lib/cuda/compiler.ex | gridgentoo/cuda | e758c05674605e4601c568160904bcd5e2e7be94 | [
"MIT"
] | 1 | 2021-11-08T11:50:08.000Z | 2021-11-08T11:50:08.000Z | defmodule Cuda.Compiler do
def compile(sources, opts \\ []) do
tmp = Path.join(System.tmp_dir!, "CudaCompiler-#{UUID.uuid1()}")
File.mkdir_p!(tmp)
nvcc = Keyword.get(opts, :nvcc, "/usr/local/cuda/bin/nvcc")
cubin = Path.join(tmp, "#{UUID.uuid1}.cubin")
files = sources
|> Enum.reduce([]... | 33.275862 | 86 | 0.480829 |
3f51d48da4e55540cd09cfcb4a2977c34edc987b | 823 | exs | Elixir | test/test_helper.exs | meetwalter/ecto_homoiconic_enum | 5b9aee8c311a3df898b07a45c85185bd05bcfc38 | [
"MIT"
] | 3 | 2017-02-19T00:00:51.000Z | 2017-04-20T15:56:21.000Z | test/test_helper.exs | meetwalter/ecto_homoiconic_enum | 5b9aee8c311a3df898b07a45c85185bd05bcfc38 | [
"MIT"
] | null | null | null | test/test_helper.exs | meetwalter/ecto_homoiconic_enum | 5b9aee8c311a3df898b07a45c85185bd05bcfc38 | [
"MIT"
] | null | null | null | Logger.configure(level: :info)
ExUnit.start()
alias Ecto.Integration.TestRepo
Application.put_env(:ecto, TestRepo,
adapter: Ecto.Adapters.Postgres,
url: "ecto://postgres:postgres@localhost/ecto_test",
pool: Ecto.Adapters.SQL.Sandbox)
defmodule Ecto.Integration.TestRepo do
use Ecto.Repo, otp_app: :ecto
de... | 25.71875 | 75 | 0.754557 |
3f51d992907f262bd0e14dd71f508aaaf308c5bd | 6,744 | ex | Elixir | lib/rummage_ecto/custom_hooks/keyset_paginate.ex | dwarvesf/rummage_ecto | c05060ae3ad31e84d22adfac863ae35364603179 | [
"MIT"
] | null | null | null | lib/rummage_ecto/custom_hooks/keyset_paginate.ex | dwarvesf/rummage_ecto | c05060ae3ad31e84d22adfac863ae35364603179 | [
"MIT"
] | null | null | null | lib/rummage_ecto/custom_hooks/keyset_paginate.ex | dwarvesf/rummage_ecto | c05060ae3ad31e84d22adfac863ae35364603179 | [
"MIT"
] | null | null | null | defmodule Rummage.Ecto.CustomHooks.KeysetPaginate do
@moduledoc """
`Rummage.Ecto.CustomHooks.KeysetPaginate` is a custom paginate hook that comes shipped
with `Rummage.Ecto`.
This module can be used by overriding the default paginate module. This can be done
in the following ways:
In the `Rummage.Ecto` c... | 32.114286 | 99 | 0.6336 |
3f51ea5c59babd836acfaec2b9816f575484fa83 | 1,167 | ex | Elixir | lib/level/schemas/reply.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/schemas/reply.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/schemas/reply.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Schemas.Reply do
@moduledoc """
The Reply schema.
"""
use Ecto.Schema
import Ecto.Changeset
alias Level.Schemas.Post
alias Level.Schemas.ReplyFile
alias Level.Schemas.ReplyReaction
alias Level.Schemas.Space
alias Level.Schemas.SpaceBot
alias Level.Schemas.SpaceUser
@type t ::... | 22.018868 | 64 | 0.69066 |
3f51ea7d10b89cc311ac5ba0eefc03104dbbe1f7 | 846 | ex | Elixir | lib/xdr/types/const.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | lib/xdr/types/const.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | lib/xdr/types/const.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule XDR.Type.Const do
@moduledoc """
Const: not really an XDR data type, but they can be declared the same way
"""
defstruct type_name: "Const", value: nil
@type t() :: %__MODULE__{type_name: String.t(), value: any()}
defimpl XDR.Type do
def build_type(type, value), do: %{type | value: value}
... | 26.4375 | 92 | 0.641844 |
3f5231bae7a58b068dd25626c5a8e1d7bf675cb7 | 3,929 | ex | Elixir | apps/omg/lib/omg/root_chain_coordinator.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg/lib/omg/root_chain_coordinator.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg/lib/omg/root_chain_coordinator.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... | 32.471074 | 117 | 0.718758 |
3f526e59343506ec383a453d726abe0b5571434a | 315 | exs | Elixir | .formatter.exs | jechol/reather | 4aa17feb54f010d5e63afea5105a933e27c323e7 | [
"MIT"
] | 11 | 2022-02-24T01:43:27.000Z | 2022-02-26T05:04:22.000Z | .formatter.exs | jechol/reather | 4aa17feb54f010d5e63afea5105a933e27c323e7 | [
"MIT"
] | 2 | 2022-01-24T09:17:52.000Z | 2022-01-24T09:41:33.000Z | .formatter.exs | jechol/reather | 4aa17feb54f010d5e63afea5105a933e27c323e7 | [
"MIT"
] | null | null | null | # Used by "mix format"
locals_without_parens = [
let: 1,
return: 1,
reather: 1,
reather: 2,
reatherp: 2,
assert_ast: 1
]
[
locals_without_parens: locals_without_parens,
export: [locals_without_parens: locals_without_parens],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
| 18.529412 | 69 | 0.673016 |
3f52b3237ee5473b758e674815de9316cce1dbbf | 1,704 | exs | Elixir | deps/phoenix/mix.exs | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | deps/phoenix/mix.exs | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | deps/phoenix/mix.exs | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | defmodule Phoenix.Mixfile do
use Mix.Project
@version "1.0.3"
def project do
[app: :phoenix,
version: @version,
elixir: "~> 1.0.2 or ~> 1.1-beta",
deps: deps,
package: package,
docs: [source_ref: "v#{@version}", main: "Phoenix", logo: "logo.png"],
name: "Phoenix",
source_u... | 29.894737 | 96 | 0.584507 |
3f52c736d1bfe8fe3c0d9866773764194a24e503 | 1,949 | ex | Elixir | lib/recursion.ex | rafapaez/til-elixir | 4c1c75ba5a9fad41514b10757f865db4c4b68b42 | [
"MIT"
] | 1 | 2017-10-14T14:23:28.000Z | 2017-10-14T14:23:28.000Z | lib/recursion.ex | rafapaez/til-elixir | 4c1c75ba5a9fad41514b10757f865db4c4b68b42 | [
"MIT"
] | null | null | null | lib/recursion.ex | rafapaez/til-elixir | 4c1c75ba5a9fad41514b10757f865db4c4b68b42 | [
"MIT"
] | null | null | null | defmodule TILEX.Recursion do
@moduledoc """
Module to understand Recursion in Elixir.
Recursive functions are functions that perform operations and then
invoke themselves until a condition is reached that stops the recursive
action from continuing. No data is mutated in this process. In fact,
mutating... | 28.661765 | 80 | 0.659826 |
3f52d88b2c549e048bc6a086784cbafbecd106e4 | 1,082 | exs | Elixir | test/bs/world/factory_test.exs | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 3 | 2018-07-14T22:55:23.000Z | 2019-02-25T06:11:55.000Z | test/bs/world/factory_test.exs | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 7 | 2020-02-12T03:22:59.000Z | 2022-02-10T20:23:52.000Z | test/bs/world/factory_test.exs | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 12 | 2018-03-27T05:27:20.000Z | 2019-04-02T08:19:04.000Z | defmodule Bs.World.FactoryTest do
alias Bs.World.Factory
alias Bs.World
alias Bs.Snake
use Bs.Case, async: false
test "#build when snakes respond" do
game_form = build(:game_form, id: 1, snakes: [build(:snake_form)])
world = Factory.build(game_form)
food = world.food
assert [%{coords: coo... | 20.415094 | 70 | 0.481516 |
3f52dbc97130c628ba8d5133a371e6660a1d6454 | 1,602 | ex | Elixir | lib/crypto_compare/util/api.ex | nash-io/crypto_compare | fc73bf45d27fd5ecc4ce5164a2be8af6506d6fea | [
"MIT"
] | null | null | null | lib/crypto_compare/util/api.ex | nash-io/crypto_compare | fc73bf45d27fd5ecc4ce5164a2be8af6506d6fea | [
"MIT"
] | null | null | null | lib/crypto_compare/util/api.ex | nash-io/crypto_compare | fc73bf45d27fd5ecc4ce5164a2be8af6506d6fea | [
"MIT"
] | null | null | null | defmodule CryptoCompare.Util.Api do
@moduledoc false
use HTTPoison.Base
@host "https://www.cryptocompare.com/api/data/"
@timeout Application.get_env(:crypto_compare, :request_timeout, 8000)
def host, do: @host
def process_url(url), do: @host <> url
defp process_request_options([]), do: [timeout: @time... | 35.6 | 93 | 0.672285 |
3f530413f330febc59e9b7b1600cb0baa6e7430f | 1,765 | ex | Elixir | clients/container/lib/google_api/container/v1/model/authenticator_groups_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/authenticator_groups_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container/lib/google_api/container/v1/model/authenticator_groups_config.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... | 35.3 | 173 | 0.741076 |
3f5308310fa75f49e2b76a150c846a2e0a2047e8 | 1,014 | ex | Elixir | test/support/channel_case.ex | fvideen-com/phx_scaffold_bulma_tailwind | 588041c60d99c89848320e1ef18ad8953b3c873f | [
"MIT"
] | 5 | 2022-01-02T06:32:03.000Z | 2022-01-29T23:35:03.000Z | test/support/channel_case.ex | fvideen-com/phx_scaffold_bulma_tailwind | 588041c60d99c89848320e1ef18ad8953b3c873f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | fvideen-com/phx_scaffold_bulma_tailwind | 588041c60d99c89848320e1ef18ad8953b3c873f | [
"MIT"
] | null | null | null | defmodule PhxScaffoldBulmaTailwindWeb.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... | 28.971429 | 81 | 0.75641 |
3f530e2bb6a08d1c6dc2466e72efd3d0c73f0b1a | 1,421 | exs | Elixir | banking_challenge_stone_umbrella/config/config.exs | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/config/config.exs | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/config/config.exs | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your umbrella
# and **all applications** and their dependencies with the
# help of Mix.Config.
#
# Note that all applications in your umbrella share the
# same configuration and dependencies, which is why they
# all use the same configuration file. If you want different
# conf... | 36.435897 | 89 | 0.782548 |
3f5310f4167a433c26b27c5846a88de5578f349b | 2,182 | exs | Elixir | config/prod.exs | jeffreyksmithjr/listener | 9e8829c41db09f32639b7f80741b26bb06b57428 | [
"MIT"
] | null | null | null | config/prod.exs | jeffreyksmithjr/listener | 9e8829c41db09f32639b7f80741b26bb06b57428 | [
"MIT"
] | null | null | null | config/prod.exs | jeffreyksmithjr/listener | 9e8829c41db09f32639b7f80741b26bb06b57428 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# ListenerWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# D... | 33.569231 | 67 | 0.722731 |
3f532c89d620159ac74b2abfd08f8c73f4566c11 | 1,106 | ex | Elixir | test/support/conn_case.ex | Invaern/planning-poker | e7a53bdc0e5b01aaf4574cb7190529021517ba55 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Invaern/planning-poker | e7a53bdc0e5b01aaf4574cb7190529021517ba55 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Invaern/planning-poker | e7a53bdc0e5b01aaf4574cb7190529021517ba55 | [
"MIT"
] | null | null | null | defmodule PlanningPokerWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally,... | 29.105263 | 67 | 0.74141 |
3f532c8f5ef818d23d9e554a0bf92049c7996b47 | 707 | ex | Elixir | lib/xeroxero/core_api/models/online_invoices.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-12-01T18:21:31.000Z | 2021-12-01T18:21:31.000Z | lib/xeroxero/core_api/models/online_invoices.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | null | null | null | lib/xeroxero/core_api/models/online_invoices.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-10-01T12:09:46.000Z | 2021-10-01T12:09:46.000Z | defmodule XeroXero.CoreApi.Models.OnlineInvoices do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, except: [:__meta__, :id]}
schema "onlineinvoices" do
embeds_many :OnlineInvoices, XeroXero.CoreApi.Models.OnlineInvoices.OnlineInvoice
end
def from_map(data)... | 26.185185 | 90 | 0.605375 |
3f533c2eade0557bbcf099c19e83776cb60214c5 | 1,689 | ex | Elixir | implementations/absinthe-federation/lib/products_web.ex | setchy/apollo-federation-subgraph-compatibility | 85c23d185564ac461cac6474e70310996349aaf4 | [
"MIT"
] | 18 | 2021-08-31T09:57:28.000Z | 2022-03-25T03:59:36.000Z | implementations/absinthe-federation/lib/products_web.ex | setchy/apollo-federation-subgraph-compatibility | 85c23d185564ac461cac6474e70310996349aaf4 | [
"MIT"
] | 36 | 2021-08-17T04:58:50.000Z | 2022-03-31T00:48:03.000Z | implementations/absinthe-federation/lib/products_web.ex | setchy/apollo-federation-subgraph-compatibility | 85c23d185564ac461cac6474e70310996349aaf4 | [
"MIT"
] | 14 | 2021-08-22T04:48:10.000Z | 2022-02-10T13:46:07.000Z | defmodule ProductsWeb 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 ProductsWeb, :controller
use ProductsWeb, :view
The definitions below will be executed for every view,
controlle... | 22.52 | 76 | 0.686205 |
3f5374ec05ff9a90a837663e21e881673d27407a | 944 | exs | Elixir | magic_logo/config/config.exs | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | magic_logo/config/config.exs | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | magic_logo/config/config.exs | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"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.
use Mix.Config
# General application configuration
config :magic_logo,
ecto_repos: [MagicLogo.Repo... | 33.714286 | 86 | 0.76589 |
3f538f6ca413ac7579d5350fe3c5627354b14d40 | 3,820 | ex | Elixir | lib/mailgun_logger/users/user.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 64 | 2020-02-10T20:42:46.000Z | 2021-11-16T10:47:50.000Z | lib/mailgun_logger/users/user.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 16 | 2020-02-10T20:45:57.000Z | 2022-03-04T12:53:34.000Z | lib/mailgun_logger/users/user.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 4 | 2020-04-03T17:13:19.000Z | 2020-07-17T12:56:31.000Z | defmodule MailgunLogger.User do
@moduledoc "User"
use Ecto.Schema
import Ecto.Changeset
alias MailgunLogger.User
alias MailgunLogger.Role
alias MailgunLogger.Roles
alias MailgunLogger.UserRole
@email_format ~r/^[A-Za-z0-9._%+-]+[A-Za-z0-9]@[A-Za-z0-9.-]+\.[A-Za-z]{2,63}$/
@type t() :: %__MODULE__{... | 32.10084 | 98 | 0.645026 |
3f53a1f3ac4593209a1612802819227dceb81e14 | 1,072 | ex | Elixir | priv/templates/phoenix.gen.channel/channel.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | priv/templates/phoenix.gen.channel/channel.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | priv/templates/phoenix.gen.channel/channel.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | defmodule <%= module %>Channel do
use <%= base %>.Web, :channel
def join("<%= singular %>:lobby", payload, socket) do
if authorized?(payload) do
{:ok, socket}
else
{:error, %{reason: "unauthorized"}}
end
end
# Channels can be used in a request/response fashion
# by sending replies to... | 28.210526 | 71 | 0.678172 |
3f53a468573c7dcf2884c2ab6ca86defbee75a33 | 1,346 | ex | Elixir | lib/ueberauth/strategy/cognito/config.ex | kianmeng/ueberauth_cognito | cdbd1c2c47d67a283540fcdbfe43fdb115bfd392 | [
"MIT"
] | 3 | 2020-05-13T13:20:00.000Z | 2021-12-26T22:16:23.000Z | lib/ueberauth/strategy/cognito/config.ex | kianmeng/ueberauth_cognito | cdbd1c2c47d67a283540fcdbfe43fdb115bfd392 | [
"MIT"
] | 55 | 2019-05-20T18:54:26.000Z | 2022-03-08T16:54:19.000Z | lib/ueberauth/strategy/cognito/config.ex | kianmeng/ueberauth_cognito | cdbd1c2c47d67a283540fcdbfe43fdb115bfd392 | [
"MIT"
] | 7 | 2020-04-29T17:51:14.000Z | 2021-12-30T05:52:03.000Z | defmodule Ueberauth.Strategy.Cognito.Config do
@moduledoc false
@strategy_keys [
:auth_domain,
:client_id,
:client_secret,
:user_pool_id,
:aws_region
]
@dependency_keys [
:http_client,
:jwt_verifier
]
@optional_keys [
:uid_field,
:name_field
]
@enforce_keys @strat... | 21.03125 | 90 | 0.639673 |
3f53b9af7766014f75a80a0b3f8a7559548dcc52 | 4,748 | ex | Elixir | lib/snap/cluster.ex | hauptbenutzer/snap | 8993183e3cae6bd52ce62e3b1248e35a4deda6d1 | [
"MIT"
] | 20 | 2021-04-16T19:33:59.000Z | 2022-03-16T17:16:51.000Z | lib/snap/cluster.ex | hauptbenutzer/snap | 8993183e3cae6bd52ce62e3b1248e35a4deda6d1 | [
"MIT"
] | 8 | 2021-02-05T20:17:18.000Z | 2022-03-28T21:43:47.000Z | lib/snap/cluster.ex | hauptbenutzer/snap | 8993183e3cae6bd52ce62e3b1248e35a4deda6d1 | [
"MIT"
] | 5 | 2021-04-12T13:54:26.000Z | 2022-03-10T17:59:58.000Z | defmodule Snap.Cluster do
@moduledoc """
Defines a cluster.
A cluster maps to an Elasticsearch endpoint.
When used, the cluster expects `:otp_app` as an option. The `:otp_app`
should point to an OTP application that has the cluster configuration. For
example, this cluster:
```
defmodule MyApp.Cluster... | 26.377778 | 94 | 0.621104 |
3f53ba643797e0de8261d0209cdc2fb50ecc81b4 | 1,531 | ex | Elixir | lib/client/encoders.ex | asonix/http-client-elixir | 5610dc572d0d0b45d0b1ce7c1dba62e9d4c17c7e | [
"MIT"
] | 4 | 2016-08-16T11:47:58.000Z | 2018-06-08T05:47:09.000Z | lib/client/encoders.ex | asonix/http-client-elixir | 5610dc572d0d0b45d0b1ce7c1dba62e9d4c17c7e | [
"MIT"
] | null | null | null | lib/client/encoders.ex | asonix/http-client-elixir | 5610dc572d0d0b45d0b1ce7c1dba62e9d4c17c7e | [
"MIT"
] | null | null | null | defmodule Client.Encoders do
@moduledoc """
# Provided Encoders
- `GETURLEncoded`
This uses FormData to prepare a url-encoded payload for GET requests, it
does not set custom headers because HTTPoison and Hackney do this
automatically.
- `JSON`
This uses Poison to prepare a binary p... | 29.442308 | 82 | 0.68256 |
3f53c6a46d346ce1eba1d22aa548570e6a43dde8 | 3,486 | exs | Elixir | test/run_workflows/template_with_special_params_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | test/run_workflows/template_with_special_params_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | test/run_workflows/template_with_special_params_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.RunWorkflows.TemplateWithSpecialParamsTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
alias StepFlow.Step
doctest StepFlow
setup do
# Explicitly get a connection before each test
:ok = Sandbox.checkout(StepFlow.Repo)
# Setting the shared mode
Sandb... | 27.448819 | 86 | 0.554217 |
3f53d96f30dfde3d637abb34b3d52cbd845626b9 | 1,946 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.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/order_line_item_adjustment.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... | 36.716981 | 136 | 0.726105 |
3f53e5501452e92aa87134dda86303a3abba8f3d | 1,359 | ex | Elixir | lib/twirp/service.ex | daskycodes/twirp-elixir | 51b701111a3b33601980703417388cd099dc7e44 | [
"Apache-2.0"
] | 30 | 2019-11-03T16:30:13.000Z | 2020-06-23T19:38:53.000Z | lib/twirp/service.ex | daskycodes/twirp-elixir | 51b701111a3b33601980703417388cd099dc7e44 | [
"Apache-2.0"
] | 16 | 2020-03-13T17:56:16.000Z | 2020-06-11T10:40:02.000Z | lib/twirp/service.ex | daskycodes/twirp-elixir | 51b701111a3b33601980703417388cd099dc7e44 | [
"Apache-2.0"
] | 3 | 2019-12-05T16:43:15.000Z | 2020-05-11T21:34:44.000Z | defmodule Twirp.Service do
@moduledoc """
Provides a DSL and some convenience functions for defining twirp service
definitions.
"""
import Norm
defmacro __using__(_opts) do
quote do
import Twirp.Service
@rpcs []
@before_compile Twirp.Service
end
end
def s do
schema(%{
... | 18.364865 | 75 | 0.601177 |
3f544136ab15ed801aa30f8271fb40f860ae011c | 112 | exs | Elixir | test/audit_test.exs | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | test/audit_test.exs | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | test/audit_test.exs | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | defmodule AuditTest do
use ExUnit.Case
doctest Audit
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
3f544dcf4e7d19613221d4c8b4eb08c7b192d41a | 852 | exs | Elixir | test/repositories/forks_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | test/repositories/forks_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | test/repositories/forks_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 1 | 2018-11-02T15:59:28.000Z | 2018-11-02T15:59:28.000Z | defmodule Tentacat.Repositories.ForksTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Forks
doctest Tentacat.Repositories.Forks
@client Tentacat.Client.new(%{access_token: "yourtokenhere"})
setup_all do
HTTPoison.start()
end
test "... | 25.818182 | 100 | 0.65493 |
3f5473377239dfd49ff9c227b2f5ed76a3bdd1a8 | 2,044 | exs | Elixir | create_app_graph.exs | elitau/module_dependency_visualizer | 7231f0f60fa2cddb048840e226fd990be2b51b1d | [
"MIT"
] | null | null | null | create_app_graph.exs | elitau/module_dependency_visualizer | 7231f0f60fa2cddb048840e226fd990be2b51b1d | [
"MIT"
] | null | null | null | create_app_graph.exs | elitau/module_dependency_visualizer | 7231f0f60fa2cddb048840e226fd990be2b51b1d | [
"MIT"
] | null | null | null | include = ~w(ApplicationService Events. EventListener EventPublisher ProcessManager)
exclude = [
"Agent",
"Shared",
"Map",
"List",
"Stream",
"Path",
"Poison",
"Logger",
"Timex",
"File",
"Enum",
"crypto",
"String",
"Base",
"Integer",
"DateTime",
"os",
"Number",
"Elixir.Kernel",
"... | 20.237624 | 84 | 0.642857 |
3f547e3e8987c5e94adb44032cd3b3721071f9cf | 106 | exs | Elixir | test/mnemonix/builder_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 36 | 2016-10-30T21:40:19.000Z | 2021-05-03T10:51:50.000Z | test/mnemonix/builder_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 52 | 2016-10-30T20:57:35.000Z | 2017-12-28T03:39:57.000Z | test/mnemonix/builder_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 5 | 2017-01-25T22:02:58.000Z | 2018-01-30T14:27:55.000Z | defmodule Mnemonix.Builder.Test do
use Mnemonix.Test.Case, async: true
doctest Mnemonix.Builder
end
| 15.142857 | 37 | 0.783019 |
3f5489c09b4460693ec4c05daf0703d39c90e3a6 | 1,596 | ex | Elixir | lib/islands_engine/rules.ex | jarbaspsf/islands | dd83c09524572b20b30890a0a0e87e6ffc36a4be | [
"MIT"
] | null | null | null | lib/islands_engine/rules.ex | jarbaspsf/islands | dd83c09524572b20b30890a0a0e87e6ffc36a4be | [
"MIT"
] | null | null | null | lib/islands_engine/rules.ex | jarbaspsf/islands | dd83c09524572b20b30890a0a0e87e6ffc36a4be | [
"MIT"
] | null | null | null | defmodule IslandsEngine.Rules do
alias __MODULE__
defstruct state: :initialized,
player1: :islands_not_set,
player2: :islands_not_set
def new(), do: %Rules{}
def check(%Rules{state: :player1_turn} = rules, {:guess_coordinate, :player1}), do:
{:ok, %Rules{rules | state: :player2_turn}}
def chec... | 29.555556 | 85 | 0.64411 |
3f54c2086bdbd79bd1f992b545c5953e16785ca7 | 921 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/devices/ca_certificate/csr.ex | herozero777/nerves_hub_web | 9b1ea69d0495a7451d1641362c3db37db9b87353 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/devices/ca_certificate/csr.ex | herozero777/nerves_hub_web | 9b1ea69d0495a7451d1641362c3db37db9b87353 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/devices/ca_certificate/csr.ex | herozero777/nerves_hub_web | 9b1ea69d0495a7451d1641362c3db37db9b87353 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWebCore.Devices.CACertificate.CSR do
alias NervesHubWebCore.Certificate
# could probably be a bit more specific
@type csr :: tuple()
@type cert :: tuple()
@type csr_code() :: binary()
@doc """
Generates a code that should be used with `validate_csr`
after a user creates the CSR.
... | 27.088235 | 79 | 0.653637 |
3f54d85d5a24ab4881bb5689e6884e872f2c8d5e | 4,283 | exs | Elixir | apps/rig_auth/test/blacklist_test.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | apps/rig_auth/test/blacklist_test.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig_auth/test/blacklist_test.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | defmodule RigAuth.BlacklistTest do
@moduledoc false
use ExUnit.Case, async: true
require Logger
alias RigAuth.Blacklist
alias RigAuth.Blacklist.Tracker.TrackerBehaviour
import RigAuth.Blacklist, only: [add_jti: 4, contains_jti?: 2]
describe "a blacklist" do
setup [:with_tracker_mock]
test "track... | 35.691667 | 103 | 0.587205 |
3f54e59645f3956b798f75f22521ac0015af724f | 1,321 | exs | Elixir | config/config.exs | Nebo15/rbmq | 247070853396778b16ba664f114c25fb2633c9f2 | [
"MIT"
] | 26 | 2016-08-29T09:32:58.000Z | 2022-03-22T16:32:26.000Z | config/config.exs | Nebo15/rbmq | 247070853396778b16ba664f114c25fb2633c9f2 | [
"MIT"
] | 10 | 2016-08-26T10:44:12.000Z | 2018-05-22T23:42:23.000Z | config/config.exs | Nebo15/rbmq | 247070853396778b16ba664f114c25fb2633c9f2 | [
"MIT"
] | 9 | 2016-08-29T10:56:03.000Z | 2021-06-07T23:44:54.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... | 33.025 | 70 | 0.725965 |
3f54f16e404f9e299aec7c6945b053b5904fea47 | 3,212 | exs | Elixir | test/mibli_web/controllers/user_session_controller_test.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/mibli_web/controllers/user_session_controller_test.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/mibli_web/controllers/user_session_controller_test.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | defmodule MibliWeb.UserSessionControllerTest do
use MibliWeb.ConnCase, async: true
import Mibli.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/log_in" do
test "renders log in page", %{conn: conn} do
conn = get(conn, Routes.user_session_path(conn, :new))
respo... | 32.444444 | 89 | 0.603051 |
3f550018836068ed44848eea688c7d13bc47298c | 935 | ex | Elixir | test/support/channel_case.ex | Frylock13/PhoenixChat | 05f9a14df49a981ce1c9ebf41740577ccb2aae81 | [
"MIT"
] | 1 | 2016-02-24T01:45:57.000Z | 2016-02-24T01:45:57.000Z | test/support/channel_case.ex | Frylock13/PhoenixChat | 05f9a14df49a981ce1c9ebf41740577ccb2aae81 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Frylock13/PhoenixChat | 05f9a14df49a981ce1c9ebf41740577ccb2aae81 | [
"MIT"
] | 1 | 2016-02-24T01:47:02.000Z | 2016-02-24T01:47:02.000Z | defmodule ChatDemo.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be... | 22.804878 | 67 | 0.704813 |
3f5524f04ec4c7fddeee176d908daefec95a7ef8 | 2,335 | ex | Elixir | lib/together.ex | szTheory/together | cfa886322892df5449eecd6a8bba4e84846edf73 | [
"MIT"
] | 32 | 2016-12-10T23:39:24.000Z | 2021-07-03T15:23:08.000Z | lib/together.ex | szTheory/together | cfa886322892df5449eecd6a8bba4e84846edf73 | [
"MIT"
] | 6 | 2017-04-19T22:07:27.000Z | 2021-03-16T23:06:47.000Z | lib/together.ex | szTheory/together | cfa886322892df5449eecd6a8bba4e84846edf73 | [
"MIT"
] | 5 | 2017-02-24T19:26:15.000Z | 2021-04-13T21:04:04.000Z | defmodule Together do
@moduledoc ~S"""
Group actions that can be handled / responded to later together
## What for?
- group notifications to be sent in *one* email
- cancel the previously queued email if another event happens within a short period (type: debounce)
- make heavy operations happen less oft... | 32.887324 | 104 | 0.677516 |
3f55808d4c3e9035ab7fe164b4364f980cd4abdb | 9,638 | ex | Elixir | lib/sanbase/clickhouse/eth_transfers.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase/clickhouse/eth_transfers.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase/clickhouse/eth_transfers.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Clickhouse.EthTransfers do
@moduledoc ~s"""
Uses ClickHouse to work with ETH transfers.
"""
@type t :: %__MODULE__{
datetime: %DateTime{},
from_address: String.t(),
to_address: String.t(),
trx_hash: String.t(),
trx_value: float,
bloc... | 25.098958 | 94 | 0.576468 |
3f55dd6a1c73cfa582360b12ddc8ab5a26507b18 | 1,514 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name/mix.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name/mix.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name/mix.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | defmodule <%= app_module %>.Mixfile do
use Mix.Project
def project do
[app: :<%= app_name %>,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixirc_pa... | 30.28 | 95 | 0.600396 |
3f55e646d7c547485f1145371572b003a4cccde8 | 1,757 | exs | Elixir | mix.exs | doorgan/oban | b77f3d577c00f4107d42efe62c2c640c5231efbc | [
"Apache-2.0"
] | null | null | null | mix.exs | doorgan/oban | b77f3d577c00f4107d42efe62c2c640c5231efbc | [
"Apache-2.0"
] | null | null | null | mix.exs | doorgan/oban | b77f3d577c00f4107d42efe62c2c640c5231efbc | [
"Apache-2.0"
] | null | null | null | defmodule Oban.MixProject do
use Mix.Project
@version "0.9.0"
def project do
[
app: :oban,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
# Hex
package... | 21.9625 | 93 | 0.514513 |
3f55fe8ad60926b2c4af0e9b12e7d3cbd0ae2a59 | 1,446 | exs | Elixir | test/exop_data/generators/atom_test.exs | madeinussr/exop_data | 71904bdd778d51b2054938f23ccdf6ee27c83a60 | [
"MIT"
] | 9 | 2019-01-30T17:48:54.000Z | 2021-01-25T14:48:21.000Z | test/exop_data/generators/atom_test.exs | madeinussr/exop_data | 71904bdd778d51b2054938f23ccdf6ee27c83a60 | [
"MIT"
] | 4 | 2018-11-07T09:15:29.000Z | 2018-11-14T14:58:36.000Z | test/exop_data/generators/atom_test.exs | madeinussr/exop_data | 71904bdd778d51b2054938f23ccdf6ee27c83a60 | [
"MIT"
] | 1 | 2021-01-11T13:19:57.000Z | 2021-01-11T13:19:57.000Z | defmodule ExopData.Generators.AtomTest do
use ExUnit.Case, async: true
import ExUnitProperties
import ExopData.Generators.Atom, only: [generate: 1]
property "generates atoms" do
generator = generate(%{})
check all value <- generator do
assert is_atom(value)
end
end
property "is" do
... | 21.264706 | 54 | 0.625864 |
3f560f2c5c5d32e0694220f860d4500d73e56c21 | 1,808 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_get_test_order_template_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/orders_get_test_order_template_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_get_test_order_template_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.16 | 204 | 0.747788 |
3f562cbc904ddf68f49fa3e1eb59de4d3880d6d4 | 5,542 | exs | Elixir | test/jarvis_web/controllers/item_controller_test.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | test/jarvis_web/controllers/item_controller_test.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | test/jarvis_web/controllers/item_controller_test.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule JarvisWeb.ItemControllerTest do
alias Jarvis.ShoppingLists
import Jarvis.TestHelper
use Plug.Test
use JarvisWeb.ConnCase
@create_attrs %{amount: 2, name: "apples"}
@update_attrs %{amount: 5, name: "cherries"}
@invalid_attrs %{amount: nil, name: 12_345}
@valid_attrs_shopping_list %{
don... | 29.322751 | 96 | 0.639661 |
3f563b3f4f6b206ae1dc5a9255b6dc11d681195e | 3,316 | ex | Elixir | lib/vega_web/controllers/auth_controller.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 4 | 2020-03-22T22:12:29.000Z | 2020-07-01T22:32:01.000Z | lib/vega_web/controllers/auth_controller.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2021-03-10T11:53:41.000Z | 2021-10-17T11:18:54.000Z | lib/vega_web/controllers/auth_controller.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2020-03-30T19:03:23.000Z | 2022-01-17T20:21:42.000Z | defmodule VegaWeb.AuthController do
use VegaWeb, :controller
alias Vega.User
@doc """
This action is reached via `/auth/:provider` and redirects to the OAuth2 provider
based on the chosen strategy.
"""
def index(conn, %{"provider" => provider}) do
redirect conn, external: authorize_url!(provider)
... | 34.185567 | 128 | 0.662847 |
3f5651d7fde7917d8a8deb9081932723706e2532 | 2,117 | exs | Elixir | talks-articles/languages-n-runtimes/elixir/elixirschool.com/a-basics/p10_sigils.exs | 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/elixirschool.com/a-basics/p10_sigils.exs | 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/elixirschool.com/a-basics/p10_sigils.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | ## sigils
### Sigils Overview
#### * alternative syntax for representing and working with literals
#### * Sigil start with '~' followed by a char, there are built-in and new can be created
#
#### list of available Sigils include:
#### * '~C' generate a char list WITH NO escaping or interpolation
#### * '~c' generate a... | 30.681159 | 102 | 0.628248 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.