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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ca4d09feddb1157a318baa67ceabfd600cf605b | 2,421 | exs | Elixir | integration_test/selenium/capabilities_test.exs | JonRowe/wallaby | 00a7b4efdfecb374e4827fa106503e689a4dd967 | [
"MIT"
] | null | null | null | integration_test/selenium/capabilities_test.exs | JonRowe/wallaby | 00a7b4efdfecb374e4827fa106503e689a4dd967 | [
"MIT"
] | null | null | null | integration_test/selenium/capabilities_test.exs | JonRowe/wallaby | 00a7b4efdfecb374e4827fa106503e689a4dd967 | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.CapabilitiesTest do
use ExUnit.Case
use Wallaby.DSL
alias Wallaby.Integration.SessionCase
alias Wallaby.Experimental.Selenium.WebdriverClient
setup do
on_exit(fn ->
Application.delete_env(:wallaby, :selenium)
end)
end
describe "capabilities" do
test "reads... | 26.032258 | 91 | 0.646014 |
1ca4dc379381f9ebe3981ba89843e26cdc976b6d | 663 | ex | Elixir | apps/rig/lib/rig/event_stream/kinesis_to_filter.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | apps/rig/lib/rig/event_stream/kinesis_to_filter.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig/lib/rig/event_stream/kinesis_to_filter.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 1 | 2020-07-17T05:17:32.000Z | 2020-07-17T05:17:32.000Z | defmodule Rig.EventStream.KinesisToFilter do
@moduledoc """
Consumes events and forwards them to the event filter by event type.
"""
alias Rig.EventFilter
alias RigCloudEvents.CloudEvent
require Logger
# ---
def validate(conf), do: {:ok, conf}
# ---
def kinesis_handler(message) do
case Cl... | 20.71875 | 70 | 0.656109 |
1ca4fc8eb66caf74f5a843f55ad739795a519fb9 | 926 | ex | Elixir | apps/discovery_streams/test/support/conn_case.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/discovery_streams/test/support/conn_case.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/discovery_streams/test/support/conn_case.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryStreamsWeb.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 datastructures and query the data layer.
Finall... | 27.235294 | 58 | 0.736501 |
1ca50550f0cf04710c26a325fd4292d48c4c5d08 | 30,927 | ex | Elixir | lib/elixir/lib/list.ex | clambodile/elixir | 0a058028c2f674b0776dd6484f74c80a94673146 | [
"Apache-2.0"
] | 1 | 2021-07-11T16:52:47.000Z | 2021-07-11T16:52:47.000Z | lib/elixir/lib/list.ex | clambodile/elixir | 0a058028c2f674b0776dd6484f74c80a94673146 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/list.ex | clambodile/elixir | 0a058028c2f674b0776dd6484f74c80a94673146 | [
"Apache-2.0"
] | null | null | null | defmodule List do
@moduledoc """
Functions that work on (linked) lists.
Many of the functions provided for lists, which implement
the `Enumerable` protocol, are found in the `Enum` module.
Additionally, the following functions and operators for lists are
found in `Kernel`:
* `++/2`
* `--/2`
*... | 25.601821 | 104 | 0.610534 |
1ca51cdd61c77d18de7d567d1ce65cb5c25e3357 | 100 | ex | Elixir | lib/app_twitter/apptwitter_tweet.ex | adrielradicchi/app_twitter | b2af84f39ee7b9d4910343b677b03a39ee93b06b | [
"MIT"
] | 1 | 2019-03-23T21:36:39.000Z | 2019-03-23T21:36:39.000Z | lib/app_twitter/apptwitter_tweet.ex | adrielradicchi/app_twitter | b2af84f39ee7b9d4910343b677b03a39ee93b06b | [
"MIT"
] | null | null | null | lib/app_twitter/apptwitter_tweet.ex | adrielradicchi/app_twitter | b2af84f39ee7b9d4910343b677b03a39ee93b06b | [
"MIT"
] | null | null | null | defmodule AppTwitter.Tweet do
def send(message) do
ExTwitter.update(message)
end
end | 20 | 33 | 0.7 |
1ca52067030097ce61aec19e88bdc028bde56e92 | 1,785 | exs | Elixir | clients/data_fusion/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_fusion/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_fusion/mix.exs | 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... | 26.641791 | 102 | 0.65042 |
1ca55da3c45d400f2e8375e710834b2beaee6eb9 | 4,979 | ex | Elixir | lib/docusign/model/envelope_template_result.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/envelope_template_result.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/envelope_template_result.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # 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 DocuSign.Model.EnvelopeTemplateResult do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:allowMarkup,
:allowReassign,
... | 30.734568 | 90 | 0.596907 |
1ca56ae32f3900e36de22eaf049a1c20b69cdc07 | 3,331 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/model/operation.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/model/operation.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/model/operation.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... | 55.516667 | 661 | 0.727409 |
1ca56d4938096c1a7fda39490703a8ae93a3c035 | 6,239 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/cell_data.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/cell_data.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/cell_data.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... | 77.9875 | 520 | 0.739702 |
1ca59b122471e54faaa0fae25ff1a20714e3fad9 | 965 | exs | Elixir | mix.exs | piersadrian/hal | 190e3fb1cd0d187ac3ef485d1bf9e2623296ae16 | [
"MIT"
] | null | null | null | mix.exs | piersadrian/hal | 190e3fb1cd0d187ac3ef485d1bf9e2623296ae16 | [
"MIT"
] | null | null | null | mix.exs | piersadrian/hal | 190e3fb1cd0d187ac3ef485d1bf9e2623296ae16 | [
"MIT"
] | null | null | null | defmodule HAL.Mixfile do
use Mix.Project
def project do
[
app: :hal,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Configurat... | 22.44186 | 56 | 0.57513 |
1ca59c368f4014edaa8469ac8a9ebcc98a431729 | 787 | exs | Elixir | test/bender/command_test.exs | DylanGriffith/bender | 336fb92c3ed80bb8e330abfa7628df7ccbc04c84 | [
"MIT"
] | 27 | 2015-10-29T21:43:12.000Z | 2021-08-14T06:33:13.000Z | test/bender/command_test.exs | lytedev/bender | 1033f2e2a2bb3b45a6782342e070e5e593212c2c | [
"MIT"
] | 2 | 2016-01-04T20:39:42.000Z | 2019-05-22T05:18:10.000Z | test/bender/command_test.exs | lytedev/bender | 1033f2e2a2bb3b45a6782342e070e5e593212c2c | [
"MIT"
] | 3 | 2017-10-17T10:33:53.000Z | 2018-11-19T15:07:50.000Z | defmodule MyCommand do
use Bender.Command
def handle_event({{:command, "my_command", _m}, _conf}, parent) do
send parent, :MY_COMMAND
{:ok, parent}
end
end
defmodule Bender.CommandTest do
use ExUnit.Case
test "it pattern matches a command" do
{:ok, manager} = GenEvent.start_link
GenEvent.ad... | 27.137931 | 91 | 0.698856 |
1ca59feb5c07c918340c5f27585d1efc24ff885e | 2,178 | ex | Elixir | lib/exchange_api_web/controllers/api/order_controller.ex | realyarilabs/exchange_api | c7dd9af9356277a022b164675cc1622359af8a76 | [
"Apache-2.0"
] | 3 | 2020-08-10T10:09:26.000Z | 2020-08-28T08:41:36.000Z | lib/exchange_api_web/controllers/api/order_controller.ex | realyarilabs/exchange_api | c7dd9af9356277a022b164675cc1622359af8a76 | [
"Apache-2.0"
] | 30 | 2020-08-17T10:38:24.000Z | 2022-02-28T07:06:42.000Z | lib/exchange_api_web/controllers/api/order_controller.ex | realyarilabs/exchange_api | c7dd9af9356277a022b164675cc1622359af8a76 | [
"Apache-2.0"
] | 1 | 2020-09-17T13:08:47.000Z | 2020-09-17T13:08:47.000Z | defmodule ExchangeApiWeb.Api.OrderController do
use ExchangeApiWeb, :controller
alias ExchangeApiWeb.Ticker
action_fallback ExchangeApiWeb.Api.FallbackController
def index_open(conn, %{"ticker" => ticker}) do
with {:ok, tick} <- Ticker.get_ticker(ticker), {:ok, open} <- Exchange.open_orders(tick) do
... | 31.565217 | 95 | 0.645546 |
1ca5c54ed1f685e3a31a134f36e230ec4774bad4 | 4,477 | exs | Elixir | .credo.exs | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | 70 | 2016-07-11T20:28:15.000Z | 2020-05-03T09:22:31.000Z | .credo.exs | rbeene/elixir-remote-monitor | a1cf0f89aad21e4d7ec547761d88e450cc7c9188 | [
"MIT"
] | 3 | 2016-10-31T15:12:29.000Z | 2017-01-28T13:57:01.000Z | .credo.exs | rbeene/elixir-remote-monitor | a1cf0f89aad21e4d7ec547761d88e450cc7c9188 | [
"MIT"
] | 2 | 2017-03-03T15:55:09.000Z | 2020-04-23T17:42:12.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.7 | 80 | 0.657136 |
1ca5cd95c09db05458407c0c9995477f25e18553 | 1,103 | exs | Elixir | test/day_03_toboggan_trajectory_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | 1 | 2021-01-07T07:00:16.000Z | 2021-01-07T07:00:16.000Z | test/day_03_toboggan_trajectory_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | null | null | null | test/day_03_toboggan_trajectory_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | null | null | null | defmodule Adventofcode.Day03TobogganTrajectoryTest do
use Adventofcode.FancyCase
import Adventofcode.Day03TobogganTrajectory
alias Adventofcode.Day03TobogganTrajectory.Grid
@example_input """
..##.......
#...#...#..
.#....#..#.
..#.#...#.#
.#...##..#.
..#.##.....
.#.#.#....#
.#........#
#.#... | 22.06 | 71 | 0.514959 |
1ca5e449d0a646c65bb057707b65d4febed67a3c | 170 | ex | Elixir | priv/templates/brando.install/lib/application_name/repo.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | priv/templates/brando.install/lib/application_name/repo.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | priv/templates/brando.install/lib/application_name/repo.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule <%= application_module %>.Repo do
use Ecto.Repo,
otp_app: :<%= application_name %>,
adapter: Ecto.Adapters.Postgres
use Brando.SoftDelete.Repo
end
| 21.25 | 43 | 0.705882 |
1ca60efd72ebdd0e9d3d1d1f84bd48605fb96312 | 3,365 | ex | Elixir | farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.RegimenInstance do
@moduledoc """
An instance of a running Regimen. Asset.Regimen is the blueprint by which a
Regimen "instance" is created.
"""
use GenServer
require Logger
require FarmbotCore.Logger
alias FarmbotCeleryScript.AST
alias Farmbot... | 35.797872 | 110 | 0.709955 |
1ca618f802caf692595a4fe4942733fe9cc7c883 | 888 | ex | Elixir | lib/astarte_housekeeping/config.ex | rbino/astarte_housekeeping | d582175f9499ffd3eaefe3a69fcfceba8b2089b9 | [
"Apache-2.0"
] | null | null | null | lib/astarte_housekeeping/config.ex | rbino/astarte_housekeeping | d582175f9499ffd3eaefe3a69fcfceba8b2089b9 | [
"Apache-2.0"
] | null | null | null | lib/astarte_housekeeping/config.ex | rbino/astarte_housekeeping | d582175f9499ffd3eaefe3a69fcfceba8b2089b9 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2018 Ispirata Srl
#
# 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 appl... | 32.888889 | 87 | 0.766892 |
1ca6330a1408e370e4a31022f7466777db9519d3 | 6,823 | exs | Elixir | lib/ex_unit/test/ex_unit/capture_io_test.exs | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/ex_unit/test/ex_unit/capture_io_test.exs | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/capture_io_test.exs | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | Code.require_file "../test_helper.exs", __DIR__
defmodule ExUnit.CaptureIOTest.Value do
def binary, do: "a"
end
alias ExUnit.CaptureIOTest.Value
defmodule ExUnit.CaptureIOTest.GetUntil do
def until_new_line(_, :eof, _) do
{ :done, :eof, [] }
end
def until_new_line(this_far, chars, stop_char) do
case... | 24.455197 | 127 | 0.543456 |
1ca634a904c4f351267c274d73e027a6a8d7e436 | 94 | exs | Elixir | test/kitten_grapqhl_web/views/layout_view_test.exs | floriank/react_relay_kitten_uploader | 1b8988bdf9fe01a263dc59097652ddb2c50520f6 | [
"MIT"
] | 3 | 2020-02-25T16:49:06.000Z | 2020-04-24T03:14:11.000Z | test/kitten_grapqhl_web/views/layout_view_test.exs | floriank/react_relay_kitten_uploader | 1b8988bdf9fe01a263dc59097652ddb2c50520f6 | [
"MIT"
] | 3 | 2021-03-09T03:17:50.000Z | 2021-09-01T04:37:12.000Z | test/kitten_grapqhl_web/views/layout_view_test.exs | floriank/react_relay_kitten_uploader | 1b8988bdf9fe01a263dc59097652ddb2c50520f6 | [
"MIT"
] | 2 | 2019-05-06T08:27:54.000Z | 2021-10-05T20:33:30.000Z | defmodule KittenGraphqlWeb.LayoutViewTest do
use KittenGraphqlWeb.ConnCase, async: true
end
| 23.5 | 44 | 0.851064 |
1ca63b659479f7a02e7503caa1cea47c57a98387 | 1,151 | exs | Elixir | ex_cubic_ingestion/test/ex_cubic_ingestion/workers/archive_test.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 1 | 2022-01-30T21:02:48.000Z | 2022-01-30T21:02:48.000Z | ex_cubic_ingestion/test/ex_cubic_ingestion/workers/archive_test.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 21 | 2022-01-25T16:35:50.000Z | 2022-03-31T19:42:52.000Z | ex_cubic_ingestion/test/ex_cubic_ingestion/workers/archive_test.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 1 | 2022-02-02T14:34:17.000Z | 2022-02-02T14:34:17.000Z | defmodule ExCubicIngestion.Workers.ArchiveTest do
use ExCubicIngestion.DataCase, async: true
use Oban.Testing, repo: ExCubicIngestion.Repo
import ExCubicIngestion.TestFixtures, only: [setup_tables_loads: 1]
alias ExCubicIngestion.Schema.CubicLoad
alias ExCubicIngestion.Workers.Archive
require MockExAws
... | 26.767442 | 77 | 0.67854 |
1ca64b4a758a2325e793fce0499bc8e8118b4c7e | 805 | ex | Elixir | lib/brazilian_utils/cep.ex | alephao/brazilian-utils-elixir | 37574b9a8fa6f9601e3fbfe4411ef5954a96806c | [
"MIT"
] | 1 | 2021-04-27T19:16:06.000Z | 2021-04-27T19:16:06.000Z | lib/brazilian_utils/cep.ex | alephao/brazilian-utils-elixir | 37574b9a8fa6f9601e3fbfe4411ef5954a96806c | [
"MIT"
] | null | null | null | lib/brazilian_utils/cep.ex | alephao/brazilian-utils-elixir | 37574b9a8fa6f9601e3fbfe4411ef5954a96806c | [
"MIT"
] | null | null | null | defmodule BrazilianUtils.Cep do
@moduledoc false
alias BrazilianUtils.Helper
@spec is_valid?(cep :: String.t() | integer()) :: boolean()
def is_valid?(cep)
def is_valid?(cep) when is_binary(cep) do
cep
|> Helper.only_numbers()
|> is_valid_cep_length?
end
def is_valid?(cep) when is_integer(... | 20.641026 | 61 | 0.616149 |
1ca672fb5a262f3c64e2314adb72635936456ac1 | 1,610 | exs | Elixir | tests/dummy/test/controllers/appointment_controller_test.exs | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | tests/dummy/test/controllers/appointment_controller_test.exs | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | tests/dummy/test/controllers/appointment_controller_test.exs | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Dummy.AppointmentControllerTest do
use Dummy.ConnCase
import Dummy.SeedSupport
alias Dummy.Repo
setup do
conn = conn()
appointment = build_appointment
import_batch = build_import_batch(appointment)
export_batch = build_export_batch(appointment)
{:ok, conn: conn, appointment: appoi... | 35 | 124 | 0.655901 |
1ca67381828f3f9991418b263d11604046117449 | 304 | ex | Elixir | apps/packet/lib/packet/unsubscribe.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 8 | 2019-12-20T15:44:08.000Z | 2021-01-25T18:30:25.000Z | apps/packet/lib/packet/unsubscribe.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T17:20:00.000Z | 2019-11-08T17:20:00.000Z | apps/packet/lib/packet/unsubscribe.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | null | null | null | defmodule Packet.Unsubscribe do
use Bitwise
require Logger
@opaque decode_result :: {:unsubscribe, String.t()}
@spec decode(<<_::8>>, binary()) :: decode_result
def decode(<<10::4, 2::4>>, _msg) do
Logger.info("RECEIVED A UNSUBSCRIBE")
{:unsubscribe, "unsubscribe reasons"}
end
end
| 23.384615 | 53 | 0.671053 |
1ca675444eab7d2542edbc5efc8c8f04fa456107 | 1,008 | ex | Elixir | lib/blogger/endpoint.ex | joeletizia/blogger | 64b7b5665cdd75cbf24f5cfd938faf5135eb914a | [
"MIT"
] | null | null | null | lib/blogger/endpoint.ex | joeletizia/blogger | 64b7b5665cdd75cbf24f5cfd938faf5135eb914a | [
"MIT"
] | null | null | null | lib/blogger/endpoint.ex | joeletizia/blogger | 64b7b5665cdd75cbf24f5cfd938faf5135eb914a | [
"MIT"
] | null | null | null | defmodule Blogger.Endpoint do
use Phoenix.Endpoint, otp_app: :blogger
socket "/socket", Blogger.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.Static,
... | 25.2 | 69 | 0.709325 |
1ca67e872be85dfa4b0413a3fd1ed80685bcbf91 | 295 | ex | Elixir | lib/types/author.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 22 | 2021-03-07T17:00:42.000Z | 2022-03-21T07:16:11.000Z | lib/types/author.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | null | null | null | lib/types/author.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 2 | 2021-03-10T21:16:51.000Z | 2021-05-06T10:49:13.000Z | defmodule Egit.Types.Author do
@moduledoc """
An Elixir implementation of Git version control system
"""
defstruct name: nil, email: nil, time: nil
def to_s(author) do
timestamp = "#{DateTime.to_unix(author.time)}"
"#{author.name} <#{author.email}> " <> timestamp
end
end
| 21.071429 | 56 | 0.671186 |
1ca685866cb749d19ec66b24056d6431c60b7ecb | 6,576 | ex | Elixir | lib/mllp/packet_framer.ex | angrycandy/elixir-mllp | f3b5988c0d9f2fefaca16890b13f8c08db2ce382 | [
"Apache-2.0"
] | 22 | 2018-10-08T18:37:23.000Z | 2022-02-22T13:53:38.000Z | lib/mllp/packet_framer.ex | angrycandy/elixir-mllp | f3b5988c0d9f2fefaca16890b13f8c08db2ce382 | [
"Apache-2.0"
] | 27 | 2020-03-03T16:29:22.000Z | 2022-03-16T20:09:59.000Z | lib/mllp/packet_framer.ex | angrycandy/elixir-mllp | f3b5988c0d9f2fefaca16890b13f8c08db2ce382 | [
"Apache-2.0"
] | 10 | 2019-03-29T04:19:59.000Z | 2021-12-13T17:39:08.000Z | defmodule MLLP.PacketFramer do
@callback handle_packet(packet :: String.t(), state :: MLLP.FramingContext.t()) ::
{:ok, MLLP.FramingContext.t()}
defmacro __using__(opts) do
alias MLLP.FramingContext
{opt_frame_types, _} =
opts
|> Keyword.get(:frame_types, [])
# It is said t... | 34.610526 | 92 | 0.509428 |
1ca6ae08061a232ff5b50b7f51166452db494fbe | 1,649 | ex | Elixir | lib/kollybistes_web.ex | miketineo/kollybistes | 7c3504f7f4a46afdf2e560d240ec6644d0d39c7c | [
"MIT"
] | null | null | null | lib/kollybistes_web.ex | miketineo/kollybistes | 7c3504f7f4a46afdf2e560d240ec6644d0d39c7c | [
"MIT"
] | null | null | null | lib/kollybistes_web.ex | miketineo/kollybistes | 7c3504f7f4a46afdf2e560d240ec6644d0d39c7c | [
"MIT"
] | null | null | null | defmodule KollybistesWeb 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 KollybistesWeb, :controller
use KollybistesWeb, :view
The definitions below will be executed for every view,
... | 24.25 | 69 | 0.695573 |
1ca6d4721da2cd7dd036cc4b88c87afce4a3830f | 648 | ex | Elixir | lib/cableclub_web/channels/pokemon/gen1/socket.ex | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | lib/cableclub_web/channels/pokemon/gen1/socket.ex | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | lib/cableclub_web/channels/pokemon/gen1/socket.ex | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | defmodule CableClubWeb.Pokemon.Gen1.Socket do
use Phoenix.Socket
channel "v1", CableClubWeb.Pokemon.Gen1.Channel
alias CableClub.Accounts
@impl true
def connect(%{"token" => token}, socket, _connect_info) do
with {:ok, token} <- Base.url_decode64(token),
{:ok, user} <- check_token(token) do
... | 24 | 69 | 0.643519 |
1ca6eeae2112f1ce3e7164c627dbc3d49183217c | 3,102 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/message_part.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/message_part.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/message_part.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.690141 | 168 | 0.69697 |
1ca708abe3eafd1607bab095f60fc843dcf815e5 | 491 | ex | Elixir | lib/mappers_web/views/error_view.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 32 | 2021-04-22T01:55:31.000Z | 2022-02-25T13:17:21.000Z | lib/mappers_web/views/error_view.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 58 | 2021-06-04T18:42:59.000Z | 2022-03-31T07:17:01.000Z | lib/mappers_web/views/error_view.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 13 | 2021-04-10T06:09:15.000Z | 2022-03-23T13:07:37.000Z | defmodule MappersWeb.ErrorView do
use MappersWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name... | 28.882353 | 61 | 0.735234 |
1ca73c99a5f3a7cd7ecdff285e66c139dc1f859c | 188 | ex | Elixir | lib/onvif/device.ex | cogini/onvif | ec687d70895bf22ad7b802d7964142e3719787b6 | [
"Apache-2.0"
] | 3 | 2018-09-26T07:33:22.000Z | 2020-01-14T18:34:44.000Z | lib/onvif/device.ex | cogini/onvif | ec687d70895bf22ad7b802d7964142e3719787b6 | [
"Apache-2.0"
] | null | null | null | lib/onvif/device.ex | cogini/onvif | ec687d70895bf22ad7b802d7964142e3719787b6 | [
"Apache-2.0"
] | null | null | null | defmodule Onvif.Device do
@moduledoc "Device connection info"
defstruct [
host: "",
method: :http,
]
@type t :: %__MODULE__{
host: binary,
method: atom,
}
end
| 12.533333 | 37 | 0.595745 |
1ca754a2e38fa2ae90e7e123790863675cd3b8a3 | 2,195 | ex | Elixir | lib/shitty_linq_ex.ex | chr1sto/shitty_linq_ex | 4ba4e102b3e8820889ed945da0750f97e14c92fd | [
"Unlicense"
] | null | null | null | lib/shitty_linq_ex.ex | chr1sto/shitty_linq_ex | 4ba4e102b3e8820889ed945da0750f97e14c92fd | [
"Unlicense"
] | null | null | null | lib/shitty_linq_ex.ex | chr1sto/shitty_linq_ex | 4ba4e102b3e8820889ed945da0750f97e14c92fd | [
"Unlicense"
] | null | null | null | defmodule ShittyLinqEx do
@moduledoc """
Documentation for `ShittyLinqEx`.
"""
@doc """
Inverts the order of the elements in a sequence.
## Parameters
- `list`: A sequence of values to reverse.
## Returns
A sequence whose elements correspond to those of the input sequence in reverse order.
## E... | 25.523256 | 101 | 0.61959 |
1ca755bff275c9ab1ed8eab437c596af836e887d | 4,426 | exs | Elixir | test/finnish_pic_test.exs | fbergr/finnish-pic | 994016557005c4fad28759031b902e1ca171c459 | [
"MIT"
] | 1 | 2020-04-24T05:35:53.000Z | 2020-04-24T05:35:53.000Z | test/finnish_pic_test.exs | fbergr/finnish-pic | 994016557005c4fad28759031b902e1ca171c459 | [
"MIT"
] | null | null | null | test/finnish_pic_test.exs | fbergr/finnish-pic | 994016557005c4fad28759031b902e1ca171c459 | [
"MIT"
] | null | null | null | defmodule FinnishPicTest do
use ExUnit.Case
test "Anna Suomalainen’s valid PIC (known test person)" do
{:ok, result} = FinnishPic.validate("131052-308T")
assert result.birth_date == ~D[1952-10-13]
assert result.gender == :female
assert result.temporary_id == false
end
test "Siiri Suomalainen’s... | 30.315068 | 66 | 0.692725 |
1ca767b069fb1bc8d3f52975e3b4f6ea2b96b2e2 | 884 | ex | Elixir | test/support/conn_case.ex | ejpcmac/phoenix_elm | cc43a2253610728fbf2db9bd87b5341e82a27e5e | [
"BSD-3-Clause"
] | null | null | null | test/support/conn_case.ex | ejpcmac/phoenix_elm | cc43a2253610728fbf2db9bd87b5341e82a27e5e | [
"BSD-3-Clause"
] | null | null | null | test/support/conn_case.ex | ejpcmac/phoenix_elm | cc43a2253610728fbf2db9bd87b5341e82a27e5e | [
"BSD-3-Clause"
] | null | null | null | defmodule PhoenixElmWeb.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 datastructures and query the data layer.
Finally, if ... | 25.257143 | 58 | 0.7319 |
1ca76b788be6b79f278d4c2bb58377613946fd8c | 1,841 | exs | Elixir | test/arkecosystem/client/blocks_test.exs | ArkEcosystem/ARK-Elixir-Client | a62c0f63c3d490b2d8734384ae354444cc279a9a | [
"MIT"
] | 2 | 2018-07-13T23:05:08.000Z | 2019-02-06T10:27:08.000Z | test/arkecosystem/client/blocks_test.exs | ArkEcosystem/ARK-Elixir-Client | a62c0f63c3d490b2d8734384ae354444cc279a9a | [
"MIT"
] | 59 | 2018-06-11T07:59:59.000Z | 2019-11-17T23:30:19.000Z | test/arkecosystem/client/blocks_test.exs | ArkEcosystem/ARK-Elixir-Client | a62c0f63c3d490b2d8734384ae354444cc279a9a | [
"MIT"
] | 17 | 2018-07-02T16:10:25.000Z | 2020-11-23T23:43:55.000Z | defmodule ArkEcosystem.Client.API.BlocksTest do
use ExUnit.Case
import ArkEcosystem.Client.API.Blocks
import Tesla.Mock
@client ArkEcosystem.Client.new(%{
host: "http://127.0.0.1:4003/api",
nethash: "578e820911f24e039733b45e4882b73e301f813a0d2c31330dafda84534ffa23",
version:... | 34.092593 | 88 | 0.611624 |
1ca791740418c3e730ad388a8c461b9e9624ec21 | 1,920 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/operations_scoped_list.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/operations_scoped_list.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/operations_scoped_list.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.4 | 202 | 0.746354 |
1ca7a7ba3605be82b45c7aca0ffd289d3084240e | 1,129 | exs | Elixir | config/config.exs | hvnsweeting/evalixator | b1b58eafcf2be7300061de6249e61f19058322db | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | hvnsweeting/evalixator | b1b58eafcf2be7300061de6249e61f19058322db | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | hvnsweeting/evalixator | b1b58eafcf2be7300061de6249e61f19058322db | [
"BSD-3-Clause"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.752879 |
1ca7cd428f13417f7c8e35b60bea9b9ad0d949ea | 54,292 | exs | Elixir | test/ecto/query/planner_test.exs | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Query.PlannerTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Query.Planner
alias Ecto.Query.JoinExpr
defmodule Comment do
use Ecto.Schema
schema "comments" do
field :text, :string
... | 41.068079 | 193 | 0.589461 |
1ca7dc2531a508afbc12896a647eae66a22f5444 | 662 | ex | Elixir | web/router.ex | Andorbal/phoenix_react | 0291d612ca710f80bd5ec87f052649f32c9e5847 | [
"MIT"
] | null | null | null | web/router.ex | Andorbal/phoenix_react | 0291d612ca710f80bd5ec87f052649f32c9e5847 | [
"MIT"
] | null | null | null | web/router.ex | Andorbal/phoenix_react | 0291d612ca710f80bd5ec87f052649f32c9e5847 | [
"MIT"
] | null | null | null | defmodule PhoenixReact.Router do
use PhoenixReact.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", PhoenixReact do... | 21.354839 | 57 | 0.685801 |
1ca7e59565192e970950a7f3a8f84cfe4c2c8c8b | 2,417 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/lib/google_api/redis/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/lib/google_api/redis/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.966102 | 305 | 0.69549 |
1ca82fa6a351eacd5ad28d37d2bd4e0ae65c56fc | 21,305 | ex | Elixir | lib/gettext/compiler.ex | jshmrtn/gettext | eb3411ffb09368977f18bd20ff50867220fbdee0 | [
"Apache-2.0"
] | null | null | null | lib/gettext/compiler.ex | jshmrtn/gettext | eb3411ffb09368977f18bd20ff50867220fbdee0 | [
"Apache-2.0"
] | null | null | null | lib/gettext/compiler.ex | jshmrtn/gettext | eb3411ffb09368977f18bd20ff50867220fbdee0 | [
"Apache-2.0"
] | null | null | null | defmodule Gettext.Compiler do
@moduledoc false
alias Gettext.{
PO,
PO.Translation,
PO.PluralTranslation
}
require Logger
@default_priv "priv/gettext"
@default_domain "default"
@po_wildcard "*/LC_MESSAGES/*.po"
@doc false
defmacro __before_compile__(env) do
opts = Module.get_attribu... | 30.876812 | 101 | 0.618165 |
1ca86e68495a565d286fd2b8927459cf64f3cfad | 4,569 | exs | Elixir | test/glimesh/chat_parser_test.exs | mja00/glimesh.tv | 1f543bfdf68de269d0984041ed8394b78fb2158d | [
"MIT"
] | null | null | null | test/glimesh/chat_parser_test.exs | mja00/glimesh.tv | 1f543bfdf68de269d0984041ed8394b78fb2158d | [
"MIT"
] | null | null | null | test/glimesh/chat_parser_test.exs | mja00/glimesh.tv | 1f543bfdf68de269d0984041ed8394b78fb2158d | [
"MIT"
] | null | null | null | defmodule Glimesh.ChatParserTest do
use Glimesh.DataCase
import Glimesh.AccountsFixtures
alias Glimesh.Chat.ChatMessage
describe "chat parser" do
test "parses a simple chat message" do
parsed = Glimesh.Chat.Parser.parse("Hello world")
assert parsed == ["Hello", "world"]
end
test "pars... | 33.595588 | 217 | 0.539724 |
1ca87a09b230a3979adceae67f87974b9832e094 | 7,333 | ex | Elixir | lib/gorpo/announce/unit.ex | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 3 | 2017-01-06T03:28:00.000Z | 2022-01-04T01:10:13.000Z | lib/gorpo/announce/unit.ex | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 2 | 2017-11-28T17:13:33.000Z | 2017-11-28T19:54:28.000Z | lib/gorpo/announce/unit.ex | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 1 | 2017-11-28T14:20:33.000Z | 2017-11-28T14:20:33.000Z | # Copyright (c) 2016, Diego Vinicius e Souza All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions... | 30.810924 | 98 | 0.646257 |
1ca8918845e8a647c4a8d6582f4da6b79fac5d1f | 448 | exs | Elixir | Chapter07/apps/elixir_drip/priv/repo/migrations/20180112095312_create_media.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter07/apps/elixir_drip/priv/repo/migrations/20180112095312_create_media.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter07/apps/elixir_drip/priv/repo/migrations/20180112095312_create_media.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDrip.Repo.Migrations.Storage.Media do
use Ecto.Migration
def change do
create table(:storage_media, primary_key: false) do
add :id, :string, primary_key: true, size: 27
add :file_name, :string
add :full_path, :string
add :metadata, :map
add :encryption_key, :string... | 24.888889 | 55 | 0.674107 |
1ca8921e55c9ea4ab6ab93966eec504908022345 | 2,730 | ex | Elixir | lib/engine/parser/outlet.ex | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 5 | 2021-06-23T17:46:08.000Z | 2022-02-23T21:12:06.000Z | lib/engine/parser/outlet.ex | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | null | null | null | lib/engine/parser/outlet.ex | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 1 | 2021-08-02T13:33:17.000Z | 2021-08-02T13:33:17.000Z | defmodule SnapFramework.Parser.Outlet do
require Logger
@moduledoc false
def run(ast, assigns) do
ast
|> parse(assigns)
end
# -----------------------------------------------
# render the list of slot component passed to the
# outlet component if it matches the slot_name
# --------------------... | 25.514019 | 102 | 0.456044 |
1ca89911313e55035026379b18d76d1323906fe8 | 46 | exs | Elixir | test/figlet_test.exs | mjolnir-mud/figlet | 022a492c79b6928bc827763c57c91ce4b82dbb05 | [
"Apache-2.0"
] | 2 | 2021-06-24T13:16:16.000Z | 2021-12-30T08:53:48.000Z | test/figlet_test.exs | mjolnir-mud/figlet | 022a492c79b6928bc827763c57c91ce4b82dbb05 | [
"Apache-2.0"
] | 3 | 2021-06-24T13:16:42.000Z | 2022-03-23T14:25:18.000Z | test/figlet_test.exs | mjolnir-mud/figlet | 022a492c79b6928bc827763c57c91ce4b82dbb05 | [
"Apache-2.0"
] | 1 | 2021-07-15T11:23:49.000Z | 2021-07-15T11:23:49.000Z | defmodule FigletTest do
use ExUnit.Case
end
| 11.5 | 23 | 0.804348 |
1ca89f22a77eaef430c1a7e53e026eb4271ca104 | 54 | exs | Elixir | test/grpc_prometheus_test.exs | tony612/elixir-grpc-prometheus | c5bb19463e5292accdb2582a096b4ee5abe99686 | [
"MIT"
] | 1 | 2018-05-23T01:50:55.000Z | 2018-05-23T01:50:55.000Z | test/grpc_prometheus_test.exs | tony612/elixir-grpc-prometheus | c5bb19463e5292accdb2582a096b4ee5abe99686 | [
"MIT"
] | null | null | null | test/grpc_prometheus_test.exs | tony612/elixir-grpc-prometheus | c5bb19463e5292accdb2582a096b4ee5abe99686 | [
"MIT"
] | null | null | null | defmodule GRPCPrometheusTest do
use ExUnit.Case
end
| 13.5 | 31 | 0.833333 |
1ca91a5beb83dddb74fd197cc1609b863da87162 | 10,857 | ex | Elixir | test/support/fake_servers/wild_apricot.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | test/support/fake_servers/wild_apricot.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | test/support/fake_servers/wild_apricot.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Test.WildApricot do
@moduledoc false
# n.b., strings such as "account_id", "admin" and "basic_member" are used in place of integer ids
# in this model.
# The following are base profiles for different personas. Said base profiles are merged
# with default profile data. See test/support/model... | 27.838462 | 99 | 0.576863 |
1ca92d468fd661f003705395d9a8b01bb499bfa5 | 2,161 | ex | Elixir | lib/zen_monitor/metrics.ex | LaudateCorpus1/zen_monitor | a01589e2df68ad643974b79a05fc3212587eca53 | [
"MIT"
] | 84 | 2020-04-29T12:15:29.000Z | 2022-02-15T09:52:37.000Z | lib/zen_monitor/metrics.ex | LaudateCorpus1/zen_monitor | a01589e2df68ad643974b79a05fc3212587eca53 | [
"MIT"
] | null | null | null | lib/zen_monitor/metrics.ex | LaudateCorpus1/zen_monitor | a01589e2df68ad643974b79a05fc3212587eca53 | [
"MIT"
] | 7 | 2020-10-10T05:30:14.000Z | 2022-03-17T09:48:54.000Z | defmodule ZenMonitor.Metrics do
@moduledoc """
Metrics helper for monitoring the ZenMonitor system.
"""
alias Instruments.Probe
@doc """
Registers various probes for the ZenMonitor System.
- ERTS message_queue_len for the `ZenMonitor.Local` and `ZenMonitor.Proxy` processes.
- Internal Batch Queue ... | 26.353659 | 95 | 0.657103 |
1ca93ff4191cfe163a7824fb14736af27adb25d7 | 427 | ex | Elixir | year_2019/lib/day_07/signal_maximizer.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/lib/day_07/signal_maximizer.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/lib/day_07/signal_maximizer.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day07.SignalMaximizer do
def run(amplifier, phases) do
InputFile.contents_of(7, :read)
|> Intcode.build
|> max_signal_for(amplifier, phases)
end
def max_signal_for(machine, amplifier, phases) do
phases
|> permute
|> Enum.map(&(amplifier.signal_for(machine, &1)))
|> Enum.max
... | 23.722222 | 67 | 0.627635 |
1ca9461e9a375c6baa09bb5fe687e91e2c605da9 | 102 | ex | Elixir | phoenix2/lib/phoenix2/endpoint.ex | ronnyhartenstein/benchmarking-helloworld-http | ecb0b3d800a2d9c426ce4dd0d0b198a109e812d5 | [
"MIT"
] | null | null | null | phoenix2/lib/phoenix2/endpoint.ex | ronnyhartenstein/benchmarking-helloworld-http | ecb0b3d800a2d9c426ce4dd0d0b198a109e812d5 | [
"MIT"
] | null | null | null | phoenix2/lib/phoenix2/endpoint.ex | ronnyhartenstein/benchmarking-helloworld-http | ecb0b3d800a2d9c426ce4dd0d0b198a109e812d5 | [
"MIT"
] | null | null | null | defmodule Phoenix2.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenix2
plug Phoenix2.Router
end
| 17 | 42 | 0.794118 |
1ca94ca9d2d8a66f939c5a60c7280865f3e13c0d | 96 | exs | Elixir | examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox_web/test/new_relic_sandbox_web/views/page_view_test.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | null | null | null | examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox_web/test/new_relic_sandbox_web/views/page_view_test.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | 2 | 2019-09-09T08:26:44.000Z | 2019-11-05T04:31:37.000Z | examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox_web/test/new_relic_sandbox_web/views/page_view_test.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | 1 | 2019-09-06T09:27:27.000Z | 2019-09-06T09:27:27.000Z | defmodule NewRelicSandboxWeb.PageViewTest do
use NewRelicSandboxWeb.ConnCase, async: true
end
| 24 | 46 | 0.854167 |
1ca955429e5a106b10b7f853f061465bd42eb1ba | 1,073 | ex | Elixir | lib/ash/notifier/notifier.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | lib/ash/notifier/notifier.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | lib/ash/notifier/notifier.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | defmodule Ash.Notifier do
@moduledoc """
A notifier is an extension that receives various events
"""
@callback notify(Ash.notification()) :: :ok
defmacro __using__(_) do
quote do
@behaviour Ash.Notifier
end
end
@doc """
Sends any notifications that can be sent, and returns the rest.
A... | 25.547619 | 89 | 0.649581 |
1ca95b678e913c5392c827165ce7e10964add7e7 | 1,763 | ex | Elixir | debian/manpage.1.ex | santeri/pydiststore | 227074a152e9e6a86abf22c3d4b2e8d43ec2f659 | [
"MIT"
] | 1 | 2016-05-09T05:37:17.000Z | 2016-05-09T05:37:17.000Z | debian/manpage.1.ex | santeri/pydiststore | 227074a152e9e6a86abf22c3d4b2e8d43ec2f659 | [
"MIT"
] | null | null | null | debian/manpage.1.ex | santeri/pydiststore | 227074a152e9e6a86abf22c3d4b2e8d43ec2f659 | [
"MIT"
] | null | null | null | .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH PYDISTSTORE SECTION "March 8, 2009"
.\" Please adjust this date whenever revising t... | 29.383333 | 70 | 0.67612 |
1ca95fce61847806be55b4720165b0a000fb44af | 438 | exs | Elixir | test/legato/report_test.exs | m0tivus/legato-ex | a59d5bb924774e089102f6f3e7745907b8871b49 | [
"MIT"
] | 15 | 2016-11-26T23:12:47.000Z | 2022-03-15T11:49:23.000Z | test/legato/report_test.exs | m0tivus/legato-ex | a59d5bb924774e089102f6f3e7745907b8871b49 | [
"MIT"
] | 2 | 2017-04-13T12:48:43.000Z | 2017-06-28T22:07:47.000Z | test/legato/report_test.exs | m0tivus/legato-ex | a59d5bb924774e089102f6f3e7745907b8871b49 | [
"MIT"
] | 3 | 2017-10-25T09:29:30.000Z | 2021-03-18T01:34:19.000Z | defmodule Legato.ReportTest do
use ExUnit.Case
doctest Legato.Report
defmodule ExitReport do
defstruct exits: 0, pageviews: 0
end
test "applying struct to request results" do
reports = [%{exits: 18, pageviews: 90}, %{pageviews: 10}] |> Legato.Report.as(ExitReport)
expected = [
%ExitReport{... | 23.052632 | 93 | 0.671233 |
1ca96d9a2277c347241cdec4f011d5f5ff9b50a8 | 479 | exs | Elixir | example_app/test/models/user_test.exs | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 750 | 2015-01-18T23:00:36.000Z | 2021-03-24T22:11:09.000Z | example_app/test/models/user_test.exs | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 130 | 2015-01-19T12:39:42.000Z | 2021-09-28T22:40:52.000Z | example_app/test/models/user_test.exs | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 151 | 2015-01-19T09:24:44.000Z | 2020-09-21T13:52:46.000Z | defmodule ExampleApp.UserTest do
use ExampleApp.ModelCase
alias ExampleApp.User
@valid_attrs %{email: "some content", encrypted_password: "some content", name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert chang... | 25.210526 | 97 | 0.728601 |
1ca9eb951d045e0b0f1e70dbb3838fca732799f4 | 249 | exs | Elixir | elixir/euler1.exs | lnds/Euler | 818146053da99088e96c2bf70d2bcd78c0959628 | [
"FTL"
] | null | null | null | elixir/euler1.exs | lnds/Euler | 818146053da99088e96c2bf70d2bcd78c0959628 | [
"FTL"
] | null | null | null | elixir/euler1.exs | lnds/Euler | 818146053da99088e96c2bf70d2bcd78c0959628 | [
"FTL"
] | null | null | null | defmodule Euler1 do
@target 1000
@a 3
@b 5
def sum(n, m) do
Enum.filter(1..n-1, &(rem(&1, m)==0)) |> Enum.sum()
end
def result(), do: sum(@target, @a) + sum(@target, @b) - sum(@target, @a * @b)
end
IO.puts("#{Euler1.result()}")
| 17.785714 | 79 | 0.534137 |
1caa08446d2ad29f2f9883f4f6ff1c095220a6de | 1,736 | exs | Elixir | test/lib/code_corps_web/controllers/stripe_connect_events_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps_web/controllers/stripe_connect_events_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps_web/controllers/stripe_connect_events_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.StripeConnectEventsControllerTest do
use CodeCorpsWeb.ConnCase
alias CodeCorps.StripeEvent
setup do
conn =
%{build_conn() | host: "api."}
|> put_req_header("accept", "application/json")
|> put_req_header("content-type", "application/json")
{:ok, conn: conn}
en... | 34.039216 | 94 | 0.675115 |
1caa3ee03da86a725208e15d36c352b215537c42 | 23,456 | exs | Elixir | integration/oracle/cases/preload.exs | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | null | null | null | integration/oracle/cases/preload.exs | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | 2 | 2019-05-21T15:57:37.000Z | 2019-05-21T16:00:59.000Z | integration/oracle/cases/preload.exs | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.PreloadTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true)
@moduletag :integration
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.Comment
alias Ecto.Integration.Permalink
a... | 39.755932 | 110 | 0.605943 |
1caa584bdde8104c95337a14818d0f862a41f331 | 2,288 | exs | Elixir | apps/rest_api/test/controllers/fallback_test.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | apps/rest_api/test/controllers/fallback_test.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | apps/rest_api/test/controllers/fallback_test.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | defmodule RestAPI.Controllers.FallbackTest do
use RestAPI.ConnCase, async: true
alias ResourceManager.Identities.Commands.Inputs.CreateUser
alias RestAPI.Controllers.Fallback
test "handles bad request responses", %{conn: conn} do
assert %{
"detail" => "The given parameters are invalid",
... | 30.105263 | 71 | 0.503059 |
1caa6a89244426ae22e62bd6baf33054bfb12ecc | 3,749 | ex | Elixir | lib/mongo_request.ex | LINKHA/elixir-mongo | f2e567675e2d9bdace0e6893e1e9bd424980ba75 | [
"MIT"
] | null | null | null | lib/mongo_request.ex | LINKHA/elixir-mongo | f2e567675e2d9bdace0e6893e1e9bd424980ba75 | [
"MIT"
] | null | null | null | lib/mongo_request.ex | LINKHA/elixir-mongo | f2e567675e2d9bdace0e6893e1e9bd424980ba75 | [
"MIT"
] | null | null | null | defmodule Mongo.Request do
@moduledoc """
Defines, encodes and sends MongoDB operations to the server
"""
defstruct [
requestID: nil,
payload: nil]
@update <<0xd1, 0x07, 0, 0, 0::32>> # 2001 update document
@insert <<0xd2, 0x07, 0, 0, 0::32>> # 2002 insert new document
@get_more ... | 29.753968 | 106 | 0.61323 |
1caa74f574c34c25e8b72d2916af497a88ce3b12 | 3,741 | exs | Elixir | test/cforum_web/controllers/admin/user_controller_test.exs | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | test/cforum_web/controllers/admin/user_controller_test.exs | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | test/cforum_web/controllers/admin/user_controller_test.exs | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule CforumWeb.Admin.UserControllerTest do
use CforumWeb.ConnCase
alias Cforum.Users.User
describe "index" do
setup [:setup_login]
test "lists all users", %{conn: conn} do
conn = get(conn, Path.admin_user_path(conn, :index))
assert html_response(conn, 200) =~ gettext("administrate user... | 31.974359 | 97 | 0.645817 |
1caa779ad195719fb78623cc64bd5abe1bade6ca | 5,107 | exs | Elixir | test/process_test.exs | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 2 | 2021-02-05T02:07:17.000Z | 2021-07-31T22:38:54.000Z | test/process_test.exs | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 79 | 2021-01-14T02:39:36.000Z | 2022-03-31T02:06:27.000Z | test/process_test.exs | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | null | null | null | defmodule ProcessTest do
use ExUnit.Case, async: true
doctest Flexflow.EventDispatcher
doctest Flexflow.ProcessRegistry
@moduletag capture_log: true
@moduletag :process
setup_all do
[]
end
test "history" do
name = to_string(elem(__ENV__.function, 0))
assert Flexflow.History.put({P1, name... | 37.82963 | 86 | 0.615626 |
1caa8740955961cfb4e29593192eb5a300b8cbf0 | 4,538 | ex | Elixir | lib/changelog_web/controllers/admin/person_controller.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog_web/controllers/admin/person_controller.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/admin/person_controller.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule ChangelogWeb.Admin.PersonController do
use ChangelogWeb, :controller
alias Changelog.{Mailer, Episode, NewsItem, Person, Slack}
alias ChangelogWeb.Email
plug :assign_person when action in [:edit, :update, :delete, :slack]
plug Authorize, [Policies.Person, :person]
plug :scrub_params, "person" wh... | 28.3625 | 92 | 0.633098 |
1caaa7dfd4c557992106d9898b013c937876e9d6 | 1,885 | ex | Elixir | lib/nautilus/adapters/cluster_adapter/cluster_manager.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | lib/nautilus/adapters/cluster_adapter/cluster_manager.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | lib/nautilus/adapters/cluster_adapter/cluster_manager.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | defmodule Nautilus.Adapters.Cluster.ClusterManager do
@moduledoc """
This module is responsible for managing all connections with remote gateways
"""
use GenServer
@get_hostname Application.get_env(:nautilus, :GetHostname)
@cluster_client Application.get_env(:nautilus, :ClusterClient... | 33.660714 | 117 | 0.606366 |
1caab54edac5345aa3983f01902c55a84ad41847 | 2,070 | exs | Elixir | config/config.exs | akdilsiz/elixir-parasut | 755feb4d36b0fd1c0c4ba21eda976892c4da9b8b | [
"Apache-2.0"
] | null | null | null | config/config.exs | akdilsiz/elixir-parasut | 755feb4d36b0fd1c0c4ba21eda976892c4da9b8b | [
"Apache-2.0"
] | 1 | 2019-09-03T10:52:27.000Z | 2019-09-03T11:23:34.000Z | config/config.exs | akdilsiz/elixir-parasut | 755feb4d36b0fd1c0c4ba21eda976892c4da9b8b | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 35.689655 | 74 | 0.752657 |
1caabb87f119a76f403c8308fe08f17dce1b2091 | 54 | exs | Elixir | test/test_helper.exs | Ta-To/mix_test_observer | 0ca27bbf3ee5c547374fa29770e40f43341d4364 | [
"Apache-2.0"
] | 5 | 2019-11-15T10:44:36.000Z | 2021-05-15T21:14:49.000Z | test/test_helper.exs | software-mansion-labs/elixir-ibm-speech-to-text | 2d1dec2f429071bb30a0568af8fec24787b8cd57 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | software-mansion-labs/elixir-ibm-speech-to-text | 2d1dec2f429071bb30a0568af8fec24787b8cd57 | [
"Apache-2.0"
] | null | null | null | ExUnit.configure(exclude: [:external])
ExUnit.start()
| 18 | 38 | 0.759259 |
1caad37b6b65a6983e12e99a4a376aa5b11a09ea | 3,083 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_audit_config.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... | 56.054545 | 1,106 | 0.747973 |
1caae680f4375fc520c8ae63dca14b390e0e3d58 | 1,846 | ex | Elixir | lib/dobar_web/controllers/admin/place_image_controller.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | null | null | null | lib/dobar_web/controllers/admin/place_image_controller.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 14 | 2019-09-02T18:00:07.000Z | 2021-09-02T00:49:54.000Z | lib/dobar_web/controllers/admin/place_image_controller.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 1 | 2016-07-27T14:40:55.000Z | 2016-07-27T14:40:55.000Z | defmodule DobarWeb.Admin.PlaceImageController do
use DobarWeb, :controller
alias Dobar.{Repo, PlaceImageUploader, Places, Places.PlaceImage}
def index(conn, %{"place_id" => place_id}) do
place = Places.get_place!(place_id) |> Repo.preload(:images)
render(conn, "index.html", place_images: place.images, p... | 35.5 | 96 | 0.656013 |
1caaf502e40912a4138c4cea31f11b3d2a76f074 | 6,830 | exs | Elixir | lib/mix/test/mix/tasks/compile.app_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/test/mix/tasks/compile.app_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile.app_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.Compile.AppTest do
use MixTest.Case
defmodule CustomProject do
def project do
[
app: :custom_project,
version: "0.2.0",
description: "Some UTF-8 description (uma descrição em UTF-8)"
]
end
def ... | 29.06383 | 114 | 0.623719 |
1caaf9391fc9a2bf0cce9f03d34e528a01cae6a1 | 3,111 | ex | Elixir | lib/elixir_core/testing/partial_object_check/value_constraint.ex | noizu/Context | bd3486071a5c36f3c66087ae2488cfb7e26cdf81 | [
"MIT"
] | null | null | null | lib/elixir_core/testing/partial_object_check/value_constraint.ex | noizu/Context | bd3486071a5c36f3c66087ae2488cfb7e26cdf81 | [
"MIT"
] | null | null | null | lib/elixir_core/testing/partial_object_check/value_constraint.ex | noizu/Context | bd3486071a5c36f3c66087ae2488cfb7e26cdf81 | [
"MIT"
] | 2 | 2018-03-05T11:20:31.000Z | 2021-12-01T12:22:22.000Z | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.ElixirCore.PartialObjectCheck.ValueConstraint do
@type t ... | 34.186813 | 138 | 0.497589 |
1cab0a35b36f70abd93160740bcc81a0ea08129a | 1,273 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/model/reset_instance_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/notebooks/lib/google_api/notebooks/v1/model/reset_instance_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/notebooks/lib/google_api/notebooks/v1/model/reset_instance_request.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... | 30.309524 | 81 | 0.765122 |
1cab0ba0240ce6b516028b06d4fa38a6dd53db1f | 386 | ex | Elixir | lib/preview/package/supervisor.ex | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | 26 | 2021-01-25T20:30:46.000Z | 2021-12-16T08:42:35.000Z | lib/preview/package/supervisor.ex | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | 17 | 2021-01-25T18:45:43.000Z | 2021-07-23T15:15:41.000Z | lib/preview/package/supervisor.ex | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | 4 | 2021-01-25T21:32:28.000Z | 2021-07-07T12:36:19.000Z | defmodule Preview.Package.Supervisor do
use Supervisor
def start_link(_opts) do
Supervisor.start_link(__MODULE__, [], [])
end
@impl true
def init(_opts) do
children = [{Preview.Package.Store, []}, {updater_module(), []}]
Supervisor.init(children, strategy: :one_for_one)
end
defp updater_mod... | 24.125 | 79 | 0.715026 |
1cab1ee657d60dd2238396d9caee9795fd1487f5 | 652 | ex | Elixir | lib/mix/tasks/up.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 18 | 2017-07-09T23:47:38.000Z | 2021-09-30T09:24:37.000Z | lib/mix/tasks/up.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 1 | 2022-01-29T08:48:10.000Z | 2022-01-29T08:48:10.000Z | lib/mix/tasks/up.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 2 | 2019-09-24T11:09:28.000Z | 2021-11-02T00:40:05.000Z | defmodule Mix.Tasks.Version.Up do
use Mix.Task
alias Mix.Tasks.Version
@shortdoc "Inc to next version, and commit changes to git"
def run(mode) do
next_version = Version.Inc.run(mode)
updated_version = Version.Current.calc(mode)
if next_version == updated_version do
IO.puts("Committing upda... | 27.166667 | 95 | 0.647239 |
1cab25f047124012bef5ea7f57cc9a6a698a095b | 3,166 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/report_criteria.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/report_criteria.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/report_criteria.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... | 51.064516 | 272 | 0.740998 |
1cab26a2f35cfd0f9d4f22f346ffd37f3041cc5b | 4,149 | ex | Elixir | lib/manga_providers/mangahost.ex | yashin5/mangaex | 2303c49a62527f617f17620931db3371f2b7f4bd | [
"MIT"
] | 2 | 2021-04-22T18:22:48.000Z | 2021-06-10T10:23:08.000Z | lib/manga_providers/mangahost.ex | yashin5/mangaex | 2303c49a62527f617f17620931db3371f2b7f4bd | [
"MIT"
] | null | null | null | lib/manga_providers/mangahost.ex | yashin5/mangaex | 2303c49a62527f617f17620931db3371f2b7f4bd | [
"MIT"
] | null | null | null | defmodule MangaEx.MangaProviders.Mangahost do
@moduledoc """
This module is responsible to find mangas, get chapters,
get pages and download chapter.
"""
use Tesla
alias MangaEx.Actions.Download
alias MangaEx.Actions.Find
alias MangaEx.MangaProviders.ProvidersBehaviour
alias MangaEx.Utils.ParserUtils... | 23.982659 | 90 | 0.620872 |
1cab514bb7953c6282ff4df51ace48b6c6c7d547 | 3,617 | exs | Elixir | mix.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | mix.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | mix.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | defmodule Pow.MixProject do
use Mix.Project
@version "1.0.24"
def project do
[
app: :pow,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
compilers: [:phoenix] ++ Mix.compilers(),
deps: deps(),
... | 30.652542 | 92 | 0.560133 |
1cab6120851a70fb5f628fdcba561ba8f3ef8363 | 158 | ex | Elixir | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/UnknownBaseWholeNumber.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/at_bracket_operation_parsing_test_case/UnknownBaseWholeNumber.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/at_bracket_operation_parsing_test_case/UnknownBaseWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @0z1[key: value]
@0z1 [key: value]
@0z1[()]
@0z1 [()]
@0z1[matched_expression]
@0z1 [matched_expression]
@0z1[matched_expression,]
@0z1 [matched_expression,]
| 17.555556 | 26 | 0.708861 |
1cab7868e4f5b4cdde7a9f89929f9f1510edfffc | 18,017 | exs | Elixir | lib/elixir/test/elixir/kernel_test.exs | tsloughter/elixir | 44a9f505c14c58878010cb07349802f99ca225ac | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | tsloughter/elixir | 44a9f505c14c58878010cb07349802f99ca225ac | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | tsloughter/elixir | 44a9f505c14c58878010cb07349802f99ca225ac | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule KernelTest do
use ExUnit.Case, async: true
doctest Kernel
test "=~/2" do
assert ("abcd" =~ ~r/c(d)/) == true
assert ("abcd" =~ ~r/e/) == false
assert ("abcd" =~ ~R/c(d)/) == true
assert ("abcd" =~ ~R/e/) == false
string = "^ab+cd*$"
... | 26.30219 | 97 | 0.561636 |
1cab953847b014b74617eeb254cd6cd758d1cb36 | 4,455 | exs | Elixir | test/xpeg_test.exs | zevv/xpeg | 5a83293d51f46a616aa1df694b9b020a5e43026e | [
"MIT"
] | 13 | 2021-12-29T16:29:33.000Z | 2022-01-22T15:24:23.000Z | test/xpeg_test.exs | zevv/xpeg | 5a83293d51f46a616aa1df694b9b020a5e43026e | [
"MIT"
] | null | null | null | test/xpeg_test.exs | zevv/xpeg | 5a83293d51f46a616aa1df694b9b020a5e43026e | [
"MIT"
] | null | null | null | defmodule XpegTest do
use ExUnit.Case
doctest Xpeg
import Xpeg
def run(p, s, exp_result \\ :ok, exp_captures \\ []) do
r = match(p, s)
assert(r.result == exp_result)
assert(r.captures == exp_captures)
end
test "any" do
run(patt(0 * "a"), "a")
run(patt(1), "a")
run(patt(2), "a", :er... | 27 | 57 | 0.410774 |
1cabd6128239c3359208bb00e3f0b78ce35ac2f0 | 9,311 | exs | Elixir | test/course_planner_web/controllers/coordinator_controller_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | test/course_planner_web/controllers/coordinator_controller_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | test/course_planner_web/controllers/coordinator_controller_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlanner.CoordinatorControllerTest do
use CoursePlannerWeb.ConnCase
alias CoursePlanner.Repo
alias CoursePlanner.Accounts.User
import CoursePlanner.Factory
setup do
{:ok, conn: login_as(:coordinator)}
end
defp login_as(user_type) do
user_type
|> insert()
|> guardian_login... | 38.795833 | 127 | 0.710557 |
1cabe06f13285aed19404c3f8274f1df7d1cc007 | 3,274 | ex | Elixir | lib/diode_client/ticket.ex | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | lib/diode_client/ticket.ex | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | lib/diode_client/ticket.ex | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | defmodule DiodeClient.Ticket do
alias DiodeClient.{Wallet, Secp256k1, Hash, ABI}
require Record
Record.defrecord(:ticket,
server_id: nil,
block_number: nil,
block_hash: nil,
fleet_contract: nil,
total_connections: nil,
total_bytes: nil,
local_address: nil,
device_signature: nil,
... | 27.982906 | 82 | 0.63653 |
1cabe1b9c5654655c8461bd0152778a70b400292 | 2,841 | ex | Elixir | lib/erlef/integrations/app_key.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | lib/erlef/integrations/app_key.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | lib/erlef/integrations/app_key.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule Erlef.Integrations.AppKey do
@moduledoc false
use Erlef.Schema
alias Erlef.Integrations.App
schema "app_keys" do
field(:name, :string)
field(:type, Ecto.Enum, values: [:webhook, :api_read_only])
field(:app_secret, :string, virtual: true)
field(:key_id, :string)
field(:secret, :s... | 23.479339 | 88 | 0.632876 |
1cac39ff32f170ed02a609526ff0a5a0d239558d | 745 | ex | Elixir | lib/app.ex | hewsut/ex_unit_clustered_case | 7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88 | [
"Apache-2.0"
] | 48 | 2018-07-20T20:19:23.000Z | 2021-11-10T09:22:52.000Z | lib/app.ex | hewsut/ex_unit_clustered_case | 7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88 | [
"Apache-2.0"
] | 9 | 2018-07-20T19:02:07.000Z | 2019-07-29T05:23:38.000Z | lib/app.ex | hewsut/ex_unit_clustered_case | 7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88 | [
"Apache-2.0"
] | 7 | 2018-07-30T02:13:59.000Z | 2019-12-11T15:28:47.000Z | defmodule ExUnit.ClusteredCase.App do
@moduledoc false
use Application
def start(_type, _args) do
children =
if is_clustered_node?() do
# Do not start boot server/children if running as a cluster node
[]
else
# We depend on the boot server, so start it if not started yet
... | 25.689655 | 72 | 0.628188 |
1cac432d56eac2d0322526329c84c518736c0934 | 1,642 | ex | Elixir | apps/fz_http/lib/fz_http_web/live/setting_live/default_live.ex | athulspeaks/firezone | 98f4709c4d2c03f1ade5167494547ef240a09aed | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web/live/setting_live/default_live.ex | athulspeaks/firezone | 98f4709c4d2c03f1ade5167494547ef240a09aed | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web/live/setting_live/default_live.ex | athulspeaks/firezone | 98f4709c4d2c03f1ade5167494547ef240a09aed | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.SettingLive.Default do
@moduledoc """
Manages the defaults view.
"""
use FzHttpWeb, :live_view
alias FzHttp.{ConnectivityChecks, Settings}
@help_texts %{
allowed_ips: """
Configures the default AllowedIPs setting for devices.
AllowedIPs determines which destination IPs ... | 28.807018 | 102 | 0.680268 |
1cac4ad06578b98f12297e346575c5eb8a3ea50b | 2,283 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_create_workload_operation_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_create_workload_operation_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_create_workload_operation_metadata.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... | 36.238095 | 160 | 0.734122 |
1cac7a166415b09ffd71e0ae9a9d640b444e9849 | 890 | ex | Elixir | apps/snitch_core/lib/core/data/model/stock/stock_transfer.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/snitch_core/lib/core/data/model/stock/stock_transfer.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_core/lib/core/data/model/stock/stock_transfer.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule Snitch.Data.Model.StockTransfer do
@moduledoc """
StockTransfer CRUD API
"""
use Snitch.Data.Model
alias Snitch.Data.Schema.StockTransfer, as: StockTransferSchema
@spec create(String.t(), String.t(), non_neg_integer, non_neg_integer) ::
{:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.... | 26.969697 | 76 | 0.67191 |
1cac7c29dec73b5a2b7a0977672c1f36ef20f972 | 1,278 | exs | Elixir | mix.exs | Cantido/liberator_phoenix | e6279e8712d39822272c69b3d81a9037d11862e8 | [
"MIT"
] | null | null | null | mix.exs | Cantido/liberator_phoenix | e6279e8712d39822272c69b3d81a9037d11862e8 | [
"MIT"
] | null | null | null | mix.exs | Cantido/liberator_phoenix | e6279e8712d39822272c69b3d81a9037d11862e8 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule Liberator.Phoenix.MixProject do
use Mix.Project
def project do
[
app: :liberator_phoenix,
description: "Phoenix integration for Liberator",
package: package(),
version: "0.1.0",
elixir: "~> 1.1... | 23.666667 | 72 | 0.578247 |
1cac87522c6c5342d34a02ff4c8981676653165f | 61 | exs | Elixir | uderzo_example/config/config.exs | cdegroot/uderzo_poncho | af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75 | [
"Apache-2.0"
] | 46 | 2018-05-08T12:06:18.000Z | 2022-03-23T18:30:13.000Z | uderzo_example/config/config.exs | cdegroot/uderzo_poncho | af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75 | [
"Apache-2.0"
] | 13 | 2018-05-08T11:42:00.000Z | 2018-09-17T22:41:55.000Z | uderzo_example/config/config.exs | cdegroot/uderzo_poncho | af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75 | [
"Apache-2.0"
] | 4 | 2018-06-06T05:04:00.000Z | 2018-07-13T01:23:31.000Z | use Mix.Config
config :clixir, application: :uderzo_example
| 15.25 | 44 | 0.803279 |
1caca54f02af5526278042155a7209e983ec7b62 | 829 | ex | Elixir | lib/ex_twilio/resources/proxy/participant.ex | lesserhatch/ex_twilio | 4869bc0f55213c5663ad3bb775ad7dc924277181 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/proxy/participant.ex | lesserhatch/ex_twilio | 4869bc0f55213c5663ad3bb775ad7dc924277181 | [
"MIT"
] | 1 | 2021-02-19T04:34:52.000Z | 2021-03-29T19:14:14.000Z | lib/ex_twilio/resources/proxy/participant.ex | workpathco/ex_twilio | fe6948ee2c78084dade683c0b81c33f47461589f | [
"MIT"
] | null | null | null | defmodule ExTwilio.Proxy.Participant do
@moduledoc """
Represents a Participant attached to a Session.
- [Twilio docs](https://www.twilio.com/docs/proxy/api/participant)
"""
defstruct sid: nil,
account_sid: nil,
session_sid: nil,
service_sid: nil,
friendly_nam... | 27.633333 | 77 | 0.595899 |
1cace951e3e13e916cabcd489a1da25240891125 | 4,508 | ex | Elixir | lib/avrora/client.ex | juanperi/avrora | c5a7ccd1643764a20d9336344785fd952ebacb89 | [
"MIT"
] | null | null | null | lib/avrora/client.ex | juanperi/avrora | c5a7ccd1643764a20d9336344785fd952ebacb89 | [
"MIT"
] | null | null | null | lib/avrora/client.ex | juanperi/avrora | c5a7ccd1643764a20d9336344785fd952ebacb89 | [
"MIT"
] | null | null | null | defmodule Avrora.Client do
@moduledoc """
Generates client module with isolated memory storage.
## Examples
defmodule MyClient do
use Avrora.Client,
schemas_path: Path.expand("./priv/schemas"),
registry_url: "https://registry.io"
end
It will expose `Avrora.Encoder... | 30.053333 | 95 | 0.624224 |
1cacfe4bc3a9f018838ce0537de79783d08549e9 | 2,267 | exs | Elixir | example/mix.exs | mnishiguchi/circuits_cdev | 26aa3186a172456573a837f78649dc2c4ae1d4bb | [
"Apache-2.0"
] | null | null | null | example/mix.exs | mnishiguchi/circuits_cdev | 26aa3186a172456573a837f78649dc2c4ae1d4bb | [
"Apache-2.0"
] | null | null | null | example/mix.exs | mnishiguchi/circuits_cdev | 26aa3186a172456573a837f78649dc2c4ae1d4bb | [
"Apache-2.0"
] | null | null | null | defmodule Example.MixProject do
use Mix.Project
@app :example
@version "0.1.0"
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4, :bbb, :osd32mp1, :x86_64]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
archives: [nerves_bootstrap: "~> 1.10"],
start_p... | 32.855072 | 83 | 0.597265 |
1cad00d12912a6f1548b9bdca23579f7402639a6 | 466 | ex | Elixir | lib/pundit/exceptions.ex | nonrational/pundit-elixir | 5ca084c5457fa4f97ad1fd7ab9b2024b9900d805 | [
"MIT"
] | 24 | 2019-03-24T21:04:09.000Z | 2022-01-03T02:59:58.000Z | lib/pundit/exceptions.ex | nonrational/pundit-elixir | 5ca084c5457fa4f97ad1fd7ab9b2024b9900d805 | [
"MIT"
] | 1 | 2021-03-24T13:27:54.000Z | 2021-03-24T13:27:54.000Z | lib/pundit/exceptions.ex | nonrational/pundit-elixir | 5ca084c5457fa4f97ad1fd7ab9b2024b9900d805 | [
"MIT"
] | 4 | 2019-10-14T19:59:28.000Z | 2021-03-24T12:30:06.000Z | defmodule Pundit.NotDefinedError do
@moduledoc """
Exception raised when a module doesn't implement a necessary access function.
"""
defexception message: "The function you are trying to call is not defined."
end
defmodule Pundit.NotAuthorizedError do
@moduledoc """
Exception raised when a user attempts to... | 33.285714 | 95 | 0.766094 |
1cad00f995f443256f990deeff39508fda40c85f | 504 | exs | Elixir | config/test.exs | Adnatull/donatebox | 47e07e7831c223265a465425520313da5370f149 | [
"Apache-2.0"
] | null | null | null | config/test.exs | Adnatull/donatebox | 47e07e7831c223265a465425520313da5370f149 | [
"Apache-2.0"
] | null | null | null | config/test.exs | Adnatull/donatebox | 47e07e7831c223265a465425520313da5370f149 | [
"Apache-2.0"
] | 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 :donatebox, DonateboxWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :donatebox, Dona... | 25.2 | 56 | 0.740079 |
1cad2837932c9705743c301c021d3c3aac0cb117 | 1,559 | ex | Elixir | lib/ex_admin/sidebar.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 1 | 2017-03-23T00:50:59.000Z | 2017-03-23T00:50:59.000Z | lib/ex_admin/sidebar.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | null | null | null | lib/ex_admin/sidebar.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | null | null | null | defmodule ExAdmin.Sidebar do
@moduledoc false
require Logger
require Ecto.Query
use Xain
def sidebars_visible?(_conn, %{sidebars: []}), do: false
def sidebars_visible?(conn, %{sidebars: sidebars}) do
Enum.reduce(sidebars, false, fn {_, opts, _}, acc ->
acc || visible?(conn, opts)
end)
end
... | 23.984615 | 68 | 0.629891 |
1cad7a1af46566b70b22c052f3ce04699b26cfd5 | 1,662 | exs | Elixir | priv/repo/seeds.exs | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | 1 | 2020-03-20T12:58:37.000Z | 2020-03-20T12:58:37.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# FirestormWeb.Repo.insert!(%FirestormWeb.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as... | 27.245902 | 109 | 0.649819 |
1cad7e58d7c2fcd2a293fadc82019c6eebea019f | 751 | ex | Elixir | lib/brando/content/var/color.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/content/var/color.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/content/var/color.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Content.Var.Color do
use Brando.Blueprint,
application: "Brando",
domain: "Content",
schema: "VarColor",
singular: "var_color",
plural: "var_colors",
gettext_module: Brando.Gettext
data_layer :embedded
@primary_key false
identifier "{{ entry.label }}"
attributes do
... | 26.821429 | 50 | 0.696405 |
1cadd17cb6dfc4d05ab24ce67418c75e8b91267a | 918 | exs | Elixir | config/config.exs | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | config/config.exs | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | config/config.exs | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"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 :rumbl,
ecto_repos: [Rumbl.Repo]
# Conf... | 32.785714 | 86 | 0.759259 |
1cade8b7a53a2d1ffe60520150549af2bac6fb2d | 349 | exs | Elixir | priv/repo/seeds.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | priv/repo/seeds.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# NYSETL.Repo.insert!(%NYSETL.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will f... | 29.083333 | 61 | 0.704871 |
1cae22a5848974d8e3f800526a0a0067b60452c7 | 6,428 | ex | Elixir | lib/open_scad.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 16 | 2018-02-12T22:06:00.000Z | 2022-01-04T05:07:35.000Z | lib/open_scad.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 2 | 2019-12-07T15:54:10.000Z | 2019-12-07T19:21:14.000Z | lib/open_scad.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | null | null | null | defmodule OpenSCAD do
@moduledoc """
'use OpenSCAD' in your module to have access to the entire OpenSCAD language
See the OpenSCAD [Documentation](http://www.openscad.org/documentation.html)
for more details of actual usage.
This [CheatSheet](http://www.openscad.org/cheatsheet/index.html) also comes in
ha... | 31.665025 | 95 | 0.60112 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.