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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aca8adb32d06fb25671b027d910a9af5b52d62b2 | 818 | ex | Elixir | lib/nomad_client/model/stat_object.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/stat_object.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/stat_object.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Model.StatObject do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:Nested,
:Attributes
]
@type t :: %__MO... | 26.387097 | 91 | 0.680929 |
aca8d5d4f78d8bafeaf37a18d73cd600a0dedd7c | 61 | ex | Elixir | web/views/page_view.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | web/views/page_view.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | web/views/page_view.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | defmodule Raagtime.PageView do
use Raagtime.Web, :view
end
| 15.25 | 30 | 0.786885 |
aca904191cab550e0874365b715002305c210d5f | 619 | ex | Elixir | apps/admin_app/lib/admin_app_web/mailer/user_email.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/admin_app/lib/admin_app_web/mailer/user_email.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/admin_app/lib/admin_app_web/mailer/user_email.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule AdminAppWeb.Email do
@moduledoc """
Composing email to send forgot password token.
"""
use Phoenix.Swoosh, view: AdminAppWeb.EmailView, layout: {AdminAppWeb.LayoutView, :email}
import Swoosh.Email
alias AdminAppWeb.Mailer
def password_reset_mail(token, email, base_url) do
sender_email = Ap... | 29.47619 | 95 | 0.71567 |
aca9256cea7ad8cc10146ede7cee36815bab9b3f | 974 | ex | Elixir | clients/discovery/lib/google_api/discovery/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/deserializer.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.461538 | 77 | 0.765914 |
aca94523c91e26b65069c3a3704e898e155cf4b8 | 3,590 | exs | Elixir | apps/engine/test/engine/db/transaction/payment_v1/validator_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/engine/db/transaction/payment_v1/validator_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/engine/db/transaction/payment_v1/validator_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.DB.Transaction.PaymentV1.ValidatorTest do
@moduledoc """
This test module contains minimal testing of the Validator. Most of the logic is tested in nested validators.
"""
use Engine.DB.DataCase, async: true
alias Engine.DB.Transaction
alias Engine.DB.Transaction.PaymentV1.Validator
alias... | 31.491228 | 117 | 0.677716 |
aca953082afc84c275559231d99dbd168cdb5192 | 585 | ex | Elixir | apps/ewallet/lib/ewallet/web/email_validator.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet/lib/ewallet/web/email_validator.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/email_validator.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWallet.EmailValidator do
@moduledoc """
This module validates an email string.
"""
@email_regex ~r/^[^\@]+\@[^\@]+$/
@doc """
Checks whether the email address looks correct.
"""
@spec valid?(String.t) :: boolean()
def valid?(email) do
Regex.match?(@email_regex, email)
end
@doc """... | 24.375 | 64 | 0.654701 |
aca95f370619b8b5e46004c9197d1f8192c2b0b4 | 183 | ex | Elixir | lib/trento/domain/enums/health.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento/domain/enums/health.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento/domain/enums/health.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Domain.Health do
@moduledoc """
Type that represents the possible health values in the system.
"""
@type t :: :passing | :warning | :critical | :unknown
end
| 22.875 | 64 | 0.693989 |
aca989c1291e4ae6320c398216de70ea369c61cb | 2,317 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_documents_input_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_documents_input_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_documents_input_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.616667 | 198 | 0.769098 |
aca98b95e29caf7d4e97d564d91fed4be01864ca | 467 | ex | Elixir | lib/squarestore_web/controllers/bruker_styring_controller.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/controllers/bruker_styring_controller.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/controllers/bruker_styring_controller.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | defmodule SquarestoreWeb.BrukerStyringController do
use SquarestoreWeb, :controller
alias Squarestore.Identity
def index(conn, _params) do
users = Identity.list_users()
adresses = Identity.list_adresses()
render(conn, "index.html", users: users, adresses: adresses)
end
def show(conn, %{"id" => i... | 27.470588 | 64 | 0.704497 |
aca999cf30e3a8755623e77b65875ff0662611e9 | 4,692 | exs | Elixir | test/asset_workers/farm_event_worker/regimen_event_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/asset_workers/farm_event_worker/regimen_event_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/asset_workers/farm_event_worker/regimen_event_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.FarmEventWorker.RegimenEventTest do
use ExUnit.Case
alias FarmbotOS.FarmEventWorker.RegimenEvent
alias Farmbot.TestSupport.AssetFixtures
alias FarmbotOS.Asset
import ExUnit.CaptureLog
require Logger
use Mimic
@two_days_in_seconds 60 * 60 * 24 * 2
describe "regimen event scheduler... | 27.121387 | 78 | 0.606138 |
aca99b1db9383b5710c647acf25937cac3aec026 | 2,512 | exs | Elixir | mix.exs | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | 2 | 2018-06-03T19:33:09.000Z | 2020-01-14T03:19:05.000Z | mix.exs | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | null | null | null | mix.exs | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | 1 | 2018-06-22T00:00:39.000Z | 2018-06-22T00:00:39.000Z | defmodule PhoenixExampleApp.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_example_app,
version: "0.0.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
alia... | 27.304348 | 103 | 0.561704 |
aca9a463cbb573cd4ea6d4cc695a150c6062c7df | 1,725 | ex | Elixir | web/controllers/event_controller.ex | ckochx/unparsed_endpoint | fe84c7bb1e2d69f3ed6f4cfcd74834e53c36e897 | [
"MIT"
] | null | null | null | web/controllers/event_controller.ex | ckochx/unparsed_endpoint | fe84c7bb1e2d69f3ed6f4cfcd74834e53c36e897 | [
"MIT"
] | null | null | null | web/controllers/event_controller.ex | ckochx/unparsed_endpoint | fe84c7bb1e2d69f3ed6f4cfcd74834e53c36e897 | [
"MIT"
] | null | null | null | defmodule UnparsedEndpoint.EventController do
use UnparsedEndpoint.Web, :controller
require Logger
alias UnparsedEndpoint.Event
def index(conn, _params) do
events = Repo.all(Event)
render(conn, "index.json", events: events)
end
def create(conn, %{"event" => event_params}) do
Logger.warn event... | 28.278689 | 85 | 0.636522 |
aca9a76c36edb05bff974cd21d99dea1ef40c1ee | 2,145 | ex | Elixir | lib/maru/builder/extend.ex | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | lib/maru/builder/extend.ex | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | lib/maru/builder/extend.ex | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | defmodule Maru.Builder.Extend do
@moduledoc false
@doc """
Take routes by an extended module.
"""
def take_extended(_, nil), do: []
def take_extended(routes_new, {v_new, opts}) do
module = opts |> Keyword.fetch!(:at)
v_old = opts |> Keyword.fetch!(:extend)
only = opts |> Keyword.get(:only... | 32.5 | 91 | 0.593473 |
aca9aa49907a2ddb6b765f8175e6bc3afb01aff2 | 2,222 | exs | Elixir | gateway/test/gateway/router_test.exs | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | gateway/test/gateway/router_test.exs | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | gateway/test/gateway/router_test.exs | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | defmodule Gateway.RouterTest do
@moduledoc false
use ExUnit.Case, async: true
use Plug.Test
import Mock
alias Gateway.Router
@opts Gateway.Router.init([])
@location %{"latitude" => 48.864193, "longitude" => "2.350498"}
test "send a payload to NSQ when a dynamic endpoint has information about its top... | 30.027027 | 101 | 0.632313 |
aca9bd617fd2a8cad99feaeebf990477eb4dac70 | 3,529 | ex | Elixir | lib/eqrcode/mask.ex | 0x8b/eqrcode | f82c55a4e493e7161bd22e9f5e5c41e92963c06e | [
"MIT"
] | 160 | 2018-06-04T03:50:32.000Z | 2022-03-18T10:52:50.000Z | lib/eqrcode/mask.ex | 0x8b/eqrcode | f82c55a4e493e7161bd22e9f5e5c41e92963c06e | [
"MIT"
] | 18 | 2018-09-03T01:52:33.000Z | 2021-11-04T04:44:04.000Z | lib/eqrcode/mask.ex | 0x8b/eqrcode | f82c55a4e493e7161bd22e9f5e5c41e92963c06e | [
"MIT"
] | 26 | 2018-06-21T03:51:14.000Z | 2021-12-27T10:16:06.000Z | defmodule EQRCode.Mask do
@moduledoc false
@doc """
Get the total score for the masked matrix.
"""
@spec score(EQRCode.Matrix.matrix()) :: integer
def score(matrix) do
rule1(matrix) + rule2(matrix) + rule3(matrix) + rule4(matrix)
end
@doc """
Check for consecutive blocks.
"""
@spec rule1(EQR... | 28.92623 | 80 | 0.535562 |
aca9f29c255f94ce7b29e4e5b15bfc57482eae72 | 1,070 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20171106104102_change_secret_key_to_secret_key_hash.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_db/priv/repo/migrations/20171106104102_change_secret_key_to_secret_key_hash.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20171106104102_change_secret_key_to_secret_key_hash.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletDB.Repo.Migrations.ChangeSecretKeyToSecretKeyHash do
use Ecto.Migration
import Ecto.Query
alias EWalletDB.Helpers.Crypto
alias EWalletDB.Repo
def up do
alter table(:key) do
add :secret_key_hash, :string
end
create unique_index(:key, [:secret_key_hash])
create unique_in... | 22.765957 | 69 | 0.634579 |
aca9fd66db61bf27098a9f9af3d6d3606c5dd8ec | 2,587 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/results.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/results.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/results.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 43.116667 | 349 | 0.732895 |
acaa28a8c880227e6d006b07049e52ae88f37659 | 16,914 | exs | Elixir | practica2/para_repositorio.exs | dmarcob/practicas1920_SSDD | 8a3c0a428e21708102d840e7968009fa1cd0246a | [
"CC-BY-3.0"
] | null | null | null | practica2/para_repositorio.exs | dmarcob/practicas1920_SSDD | 8a3c0a428e21708102d840e7968009fa1cd0246a | [
"CC-BY-3.0"
] | null | null | null | practica2/para_repositorio.exs | dmarcob/practicas1920_SSDD | 8a3c0a428e21708102d840e7968009fa1cd0246a | [
"CC-BY-3.0"
] | null | null | null | # AUTORES: José Manuel Vidarte Llera, Diego Marco Beisty
# NIAs: 739729, 755232
# FICHERO: cliente.ex
# FECHA: 27-09-2019
# DESCRIPCIÓN: Código de los lectores y escritores
defmodule Arrancar do
#############################################################################
##############Arrancar todos los clientes... | 50.640719 | 202 | 0.545111 |
acaa2f888258093c4fbbc480ce4deacfecdeced8 | 9,980 | ex | Elixir | farmbot_os/platform/target/network.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_os/platform/target/network.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_os/platform/target/network.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Platform.Target.Network do
@moduledoc "Manages Network Connections"
use GenServer, shutdown: 10_000
require Logger
require FarmbotCore.Logger
require FarmbotTelemetry
import FarmbotOS.Platform.Target.Network.Utils,
only: [
maybe_hack_tzdata: 0,
init_net_kernel: 0,
... | 26.613333 | 183 | 0.642084 |
acaa407e7ba38d9447a46c964b77ef6e8b77a0fa | 1,056 | exs | Elixir | test/support/apps/phx1_4/config/config.exs | muhammedsekerci/lit | b58c6135134688ed1ed16f7b2e0f9a6396b2be67 | [
"MIT"
] | 14 | 2020-12-22T08:26:15.000Z | 2022-01-11T16:08:14.000Z | test/support/apps/phx1_4/config/config.exs | muhammedsekerci/lit | b58c6135134688ed1ed16f7b2e0f9a6396b2be67 | [
"MIT"
] | 2 | 2021-04-06T19:22:55.000Z | 2021-05-31T14:02:40.000Z | test/support/apps/phx1_4/config/config.exs | muhammedsekerci/lit | b58c6135134688ed1ed16f7b2e0f9a6396b2be67 | [
"MIT"
] | 7 | 2021-02-03T23:44:12.000Z | 2021-12-27T05:09:40.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :phx1_4,
ecto_repos: [Phx14.Repo]
# Co... | 30.171429 | 86 | 0.762311 |
acaa5acde0b429e77c19c937e78b4bb06be6d94c | 10,083 | exs | Elixir | test/faktory_worker/worker/heartbeat_server_test.exs | SeatedInc/faktory_worker | 13469c7208392454b83d6061ddd8e3195ae4cd7a | [
"MIT"
] | 17 | 2019-04-14T21:35:33.000Z | 2019-10-26T10:36:35.000Z | test/faktory_worker/worker/heartbeat_server_test.exs | SeatedInc/faktory_worker | 13469c7208392454b83d6061ddd8e3195ae4cd7a | [
"MIT"
] | 75 | 2019-03-12T12:09:34.000Z | 2020-01-04T14:19:11.000Z | test/faktory_worker/worker/heartbeat_server_test.exs | opt-elixir/faktory_worker | a4774dcef45da02c568003275b79d235be9beab5 | [
"MIT"
] | 2 | 2021-11-18T16:38:33.000Z | 2022-01-14T17:34:10.000Z | defmodule FaktoryWorker.Worker.HeartbeatServerTest do
use ExUnit.Case
import Mox
import FaktoryWorker.ConnectionHelpers
import FaktoryWorker.EventHandlerTestHelpers
alias FaktoryWorker.Random
alias FaktoryWorker.ConnectionManager
alias FaktoryWorker.Worker.HeartbeatServer
setup :set_mox_global
setu... | 26.395288 | 98 | 0.61321 |
acaa71f74e4b25c426bbb0fd680f5b0fff124805 | 15,226 | ex | Elixir | lib/level_web/schema/objects.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | lib/level_web/schema/objects.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | lib/level_web/schema/objects.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.Schema.Objects do
@moduledoc false
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers
alias Level.AssetStore
alias Level.Files
alias Level.Groups
alias Level.Posts
alias Level.Resolvers
alias Level.Schemas.Post
alias Level.Schemas.Reply
alias Level.Schemas.SearchR... | 29.001905 | 85 | 0.660449 |
acaa8025081f445ed35e3f876bcc4e40cd80f4ba | 1,560 | exs | Elixir | grade-school/grade_school_test.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | grade-school/grade_school_test.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | grade-school/grade_school_test.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("school.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule SchoolTest do
use ExUnit.Case
@db %{}
test "add student" do
actual = School.add(@db, "Aimee", 2)
assert actual == %{2 =>["Aimee"]}
end
... | 21.666667 | 61 | 0.571795 |
acaa9862b9adf39a60d862ad840f5ecf154cb8ee | 3,501 | ex | Elixir | lib/clickhouse_ecto/query.ex | kundi/clickhouse_ecto | 3251221bd63a159c0e8af8336663b0bef855bbca | [
"Apache-2.0"
] | 1 | 2019-06-14T16:00:30.000Z | 2019-06-14T16:00:30.000Z | lib/clickhouse_ecto/query.ex | kundi/clickhouse_ecto | 3251221bd63a159c0e8af8336663b0bef855bbca | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto/query.ex | kundi/clickhouse_ecto | 3251221bd63a159c0e8af8336663b0bef855bbca | [
"Apache-2.0"
] | 2 | 2019-07-08T12:28:35.000Z | 2019-09-25T14:18:10.000Z | defmodule ClickhouseEcto.Query do
alias ClickhouseEcto.QueryString
import ClickhouseEcto.Helpers
require IEx
@doc """
Receives a query and must return a SELECT query.
"""
@spec all(query :: Ecto.Query.t) :: String.t
def all(query) do
sources = QueryString.create_names(query)
{select_distinct... | 31.258929 | 123 | 0.638389 |
acab4f9fd33c0a89fd1d4d528d80b79845603b90 | 3,533 | ex | Elixir | apps/site/lib/site_web/controllers/schedule/origin_destination.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/controllers/schedule/origin_destination.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/controllers/schedule/origin_destination.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.ScheduleController.OriginDestination do
@moduledoc """
Assigns origin and destination to either a Stops.Stop.t or nil. Checks if the requested stops are valid
for the route and direction (i.e., that they're on the line and accessible in the given direction).
"""
use Plug.Builder
alias Plu... | 28.039683 | 105 | 0.646759 |
acab4ff629592f745e6f4552de09949be8558fae | 1,782 | ex | Elixir | lib/oli_web/live/insights/table_header.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/live/insights/table_header.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/live/insights/table_header.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.Insights.TableHeader do
use Phoenix.LiveComponent
def render(assigns) do
~L"""
<thead>
<tr>
<th style="cursor: pointer" phx-click="sort" phx-value-sort-by="title" scope="col">
<%= case @selected do
:by_page -> "Page Title"
:by_activity -> "Ac... | 39.6 | 105 | 0.586981 |
acab561fc25a0dbd84bea38d6ec7774e3a24918e | 3,087 | exs | Elixir | test/surface/components/form/telephone_input_test.exs | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | test/surface/components/form/telephone_input_test.exs | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | test/surface/components/form/telephone_input_test.exs | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.TelephoneInputTest do
use Surface.ConnCase, async: true
alias Surface.Components.Form.TelephoneInput
test "empty input" do
html =
render_surface do
~F"""
<TelephoneInput form="user" field="phone" />
"""
end
assert html =~ """
... | 22.698529 | 116 | 0.552964 |
acab71ddb6326d49f462a66a79c98544b8da55ad | 1,733 | exs | Elixir | apps/reaper/test/unit/reaper/auth_retreiver_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/unit/reaper/auth_retreiver_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2020-01-09T21:00:10.000Z | 2020-01-09T21:00:10.000Z | apps/reaper/test/unit/reaper/auth_retreiver_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule AuthRetrieverTest do
use ExUnit.Case
use Placebo
@instance Reaper.Application.instance()
describe "retrieve/1" do
test "retrieve response using auth headers and url" do
bypass = Bypass.open()
dataset_id = "123"
url = "http://localhost:#{bypass.port}/auth"
headers = %{
... | 26.257576 | 84 | 0.600115 |
acab87cd45420ace05c15f6b836e246f0c45ffb4 | 3,872 | exs | Elixir | test/teslamate/vehicles/vehicle/updating_test.exs | dirkjanm/teslamate | 18beefbe694c74c1088ff6f87ef7b4c4190b451e | [
"MIT"
] | 1 | 2019-10-14T20:49:45.000Z | 2019-10-14T20:49:45.000Z | test/teslamate/vehicles/vehicle/updating_test.exs | dirkjanm/teslamate | 18beefbe694c74c1088ff6f87ef7b4c4190b451e | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/updating_test.exs | dirkjanm/teslamate | 18beefbe694c74c1088ff6f87ef7b4c4190b451e | [
"MIT"
] | 1 | 2019-12-03T20:40:02.000Z | 2019-12-03T20:40:02.000Z | defmodule TeslaMate.Vehicles.Vehicle.UpdatingTest do
use TeslaMate.VehicleCase, async: true
@tag :capture_log
test "logs an update cycle", %{test: name} do
events = [
{:ok, online_event()},
{:ok, update_event("available", nil)},
{:ok, update_event("installing", "2019.8.4 530d1d3")},
{... | 34.571429 | 98 | 0.618543 |
acab996ac263ab5d4e87b9feeaadcce7b4730ec4 | 1,963 | ex | Elixir | deps/credo/lib/credo/cli/output/ui.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/credo/lib/credo/cli/output/ui.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/credo/lib/credo/cli/output/ui.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Output.UI do
@edge "┃"
@ellipsis "…"
@shell_service Credo.CLI.Output.Shell
def edge(color, indent \\ 2) when is_integer(indent) do
[:reset, color, @edge |> String.ljust(indent)]
end
def edge, do: @edge
def use_colors(config) do
@shell_service.use_colors(config.color)
con... | 28.867647 | 132 | 0.612328 |
acaba4ad9039ac905befcb9e82fa537f156ffd1d | 1,558 | exs | Elixir | test/xdr/operations/change_trust_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/operations/change_trust_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/operations/change_trust_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.ChangeTrustResultCodeTest do
use ExUnit.Case
alias StellarBase.XDR.Operations.ChangeTrustResultCode
describe "ChangeTrustResultCode" do
setup do
%{
code: :CHANGE_TRUST_SUCCESS,
result: ChangeTrustResultCode.new(:CHANGE_TRUST_SUCCESS),
binary... | 31.16 | 83 | 0.672015 |
acabb436a145c95192fb4967cf7e3d8670df140d | 1,131 | exs | Elixir | config/config.exs | briankereszturi/explugrouter | a10bd12dd2c3f6805a0221d2948dcdc345165caa | [
"MIT"
] | null | null | null | config/config.exs | briankereszturi/explugrouter | a10bd12dd2c3f6805a0221d2948dcdc345165caa | [
"MIT"
] | null | null | null | config/config.exs | briankereszturi/explugrouter | a10bd12dd2c3f6805a0221d2948dcdc345165caa | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.483871 | 73 | 0.7542 |
acabc009d65b8e06dee8aaae7eefd92df95b7340 | 2,254 | exs | Elixir | config/prod.exs | wfleming/fourohfourfinder | ef670566182e8dcf70795de1ae313df26e440d56 | [
"MIT"
] | 2 | 2016-06-03T17:25:41.000Z | 2016-06-21T17:45:05.000Z | config/prod.exs | wfleming/fourohfourfinder | ef670566182e8dcf70795de1ae313df26e440d56 | [
"MIT"
] | 4 | 2016-06-03T22:38:58.000Z | 2016-06-09T03:09:33.000Z | config/prod.exs | wfleming/fourohfourfinder | ef670566182e8dcf70795de1ae313df26e440d56 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 35.777778 | 77 | 0.725821 |
acabf510ef6ea3fc1fdd36e7ec7034f43c354787 | 1,617 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/generate_upload_url_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/generate_upload_url_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/generate_upload_url_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.404255 | 228 | 0.753865 |
acac05f4c9406f124af5b04503809f6168c5fd19 | 831 | exs | Elixir | priv/repo/migrations/20190729142656_add_conversion_functions.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | priv/repo/migrations/20190729142656_add_conversion_functions.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | priv/repo/migrations/20190729142656_add_conversion_functions.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMate.Repo.Migrations.AddConversionFunctions do
use Ecto.Migration
def up do
execute("""
CREATE FUNCTION convert_celsius(n double precision, unit text)
RETURNS double precision
AS $$
SELECT
CASE WHEN $2 = 'C' THEN $1
WHEN $2 = 'F' THEN ($1 * 9 / 5) + 32
... | 21.307692 | 66 | 0.588448 |
acac142ce67c25db7f5f932269ea58c67a8b119f | 2,457 | exs | Elixir | test/lib/dwolla/webhook_test.exs | pay-it-off/dwolla-elixir | ea71c44ed1b02be5cf416225b872490a4f7e4bf9 | [
"MIT"
] | null | null | null | test/lib/dwolla/webhook_test.exs | pay-it-off/dwolla-elixir | ea71c44ed1b02be5cf416225b872490a4f7e4bf9 | [
"MIT"
] | null | null | null | test/lib/dwolla/webhook_test.exs | pay-it-off/dwolla-elixir | ea71c44ed1b02be5cf416225b872490a4f7e4bf9 | [
"MIT"
] | 1 | 2022-02-13T17:14:59.000Z | 2022-02-13T17:14:59.000Z | defmodule Dwolla.WebhookTest do
use ExUnit.Case
import Dwolla.Factory
alias Dwolla.Webhook
alias Plug.Conn
setup do
bypass = Bypass.open()
Application.put_env(:dwolla, :root_uri, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
describe "webhook" do
test "get/2 requests GE... | 31.5 | 93 | 0.638991 |
acac196846cd44da29c792567ca7efffdafd8f37 | 321 | exs | Elixir | priv/repo/migrations/20211203204353_create_posts.exs | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | null | null | null | priv/repo/migrations/20211203204353_create_posts.exs | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 4 | 2021-03-04T13:00:52.000Z | 2021-03-12T12:42:09.000Z | priv/repo/migrations/20211203204353_create_posts.exs | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | null | null | null | defmodule Blog.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :avatar, :string
add :name, :string
add :occupation, :string
add :age, :integer
add :post_status, :string
add :description, :string
timestamps()
end
end
end... | 20.0625 | 45 | 0.635514 |
acac2b2ea3e66180ad8b9bb6deeafbdbb2f086fd | 1,745 | exs | Elixir | test/run_workflows/simple_workflow_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | test/run_workflows/simple_workflow_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | test/run_workflows/simple_workflow_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.RunWorkflows.SimpleWorkflowTest 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
Sandbox.mode(Ste... | 23.90411 | 76 | 0.583381 |
acac3c7131889bf14a7f1c9d1c9f1189ce7a5d02 | 80 | exs | Elixir | test/views/layout_view_test.exs | Peopl3s/PyElPredictor | 2b8bb1a61514dc91e9ad3e1cb75bb8ec255f1a06 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | Peopl3s/PyElPredictor | 2b8bb1a61514dc91e9ad3e1cb75bb8ec255f1a06 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | Peopl3s/PyElPredictor | 2b8bb1a61514dc91e9ad3e1cb75bb8ec255f1a06 | [
"MIT"
] | null | null | null | defmodule PhoenixMl.LayoutViewTest do
use PhoenixMl.ConnCase, async: true
end
| 20 | 37 | 0.825 |
acac513dae0633f8e6edae73d1120cc1ba438149 | 355 | exs | Elixir | test/pushex/worker_test.exs | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | null | null | null | test/pushex/worker_test.exs | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | null | null | null | test/pushex/worker_test.exs | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | 1 | 2018-12-14T08:19:28.000Z | 2018-12-14T08:19:28.000Z | defmodule Pushex.WorkerTest do
use Pushex.Case
test "send_notification returns a reference" do
assert is_reference(Pushex.Worker.send_notification(%Pushex.GCM.Request{}))
end
test "send_notification with gcm calls handle_response" do
ref = Pushex.Worker.send_notification(%Pushex.GCM.Request{})
ass... | 27.307692 | 79 | 0.757746 |
acac6c17eda5925b72d20f775025c2057d0c4cac | 1,363 | ex | Elixir | lib/print_react_web/channels/print_configs_channel.ex | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | lib/print_react_web/channels/print_configs_channel.ex | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | lib/print_react_web/channels/print_configs_channel.ex | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | defmodule PrintReactWeb.Channels.PrintConfigsChannel do
use PrintReactWeb, :channel
use PrintReactWeb, :view
alias PUP.Models.ConfigModel
alias PUP.PrinterConfigAgent
alias PrintReactWeb.Api.PrintConfigView
def join("configs_channel", _params, socket) do
configs_map = PrinterConfigAgent.get()
con... | 27.26 | 82 | 0.696258 |
acac7001aa4742cd7f589bdc30e54b16fca1b8d4 | 6,926 | exs | Elixir | test/plug/adapters/cowboy/conn_test.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/cowboy/conn_test.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/cowboy/conn_test.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Adapters.Cowboy.ConnTest do
use ExUnit.Case, async: true
alias Plug.Conn
import Plug.Conn
defmodule Dummy do
def init(opts) do
opts
end
end
## Cowboy setup for testing
setup_all do
{:ok, _pid} = Plug.Adapters.Cowboy.http __MODULE__, [], port: 8001
on_exit fn ->
... | 31.198198 | 443 | 0.626624 |
acac89858f8d9099966be28a38af55b244261b01 | 33 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0b0 || 0b1
0b0 ||| 0b1
0b0 or 0b1 | 11 | 11 | 0.606061 |
acac96d35608a4b24c8a8cfa3c572a05031bdcd7 | 160 | ex | Elixir | apps/rayyan_site/lib/rayyan_site_web/views/writings_view.ex | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | apps/rayyan_site/lib/rayyan_site_web/views/writings_view.ex | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | apps/rayyan_site/lib/rayyan_site_web/views/writings_view.ex | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | defmodule RayyanSiteWeb.WritingsView do
use RayyanSiteWeb, :view
alias Writings
# NOTE defining a function here makes it accessible in the template
end
| 20 | 69 | 0.79375 |
acaca42c6cc0b0892e0d632d0e299f9e92ebf93b | 633 | ex | Elixir | lib/pfkit_web/router.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit_web/router.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit_web/router.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | defmodule PfkitWeb.Router do
use PfkitWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {PfkitWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :acce... | 19.78125 | 62 | 0.674566 |
acaca47c52ae7f77f2f7d99ea2ffa96ff57dba88 | 920 | ex | Elixir | lib/hexpm/store/store.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/store/store.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/store/store.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Store do
@type region :: String.t()
@type bucket :: String.t()
@type prefix :: key
@type key :: String.t()
@type body :: binary
@type opts :: Keyword.t()
@callback list(region, bucket, prefix) :: [key]
@callback get(region, bucket, key, opts) :: body
@callback put(region, bucket, key,... | 40 | 91 | 0.668478 |
acacd27d8da92b1352e370ccee97ad0bdeb3a8a1 | 2,038 | ex | Elixir | lib/structs/integration.ex | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 6 | 2018-05-22T07:13:47.000Z | 2019-10-17T03:40:22.000Z | lib/structs/integration.ex | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 2 | 2018-11-01T17:11:51.000Z | 2019-06-15T13:33:31.000Z | lib/structs/integration.ex | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 2 | 2018-10-29T06:53:41.000Z | 2019-06-14T19:15:56.000Z | defmodule Crux.Structs.Integration do
@moduledoc """
Represents a Discord [Integration Object](https://discord.com/developers/docs/resources/guild#integration-object).
"""
@moduledoc since: "0.2.2"
@behaviour Crux.Structs
alias Crux.Structs
alias Crux.Structs.{Application, Integration, Snowflake, Util}
... | 26.467532 | 116 | 0.60157 |
acacd908cbd2cc210f9129e0313a2a5b1d438de9 | 1,071 | exs | Elixir | app/config/config.exs | ohr486/devops.fitness | 848f36c5076627f12b5a5453a47081aad126d045 | [
"MIT"
] | null | null | null | app/config/config.exs | ohr486/devops.fitness | 848f36c5076627f12b5a5453a47081aad126d045 | [
"MIT"
] | null | null | null | app/config/config.exs | ohr486/devops.fitness | 848f36c5076627f12b5a5453a47081aad126d045 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :devops_fitness,
ecto_repos: [DevopsFit... | 33.46875 | 91 | 0.774043 |
acacecad36f859440b11935a245940b4a4b7e198 | 3,097 | ex | Elixir | lib/swoosh/adapters/smtp.ex | joshnuss/swoosh | 47e7b46fd7635de90618c1320f6ab90880ec5418 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/smtp.ex | joshnuss/swoosh | 47e7b46fd7635de90618c1320f6ab90880ec5418 | [
"MIT"
] | 21 | 2021-03-08T10:04:20.000Z | 2022-03-23T10:20:17.000Z | lib/swoosh/adapters/smtp.ex | joshnuss/swoosh | 47e7b46fd7635de90618c1320f6ab90880ec5418 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.SMTP do
@moduledoc ~S"""
An adapter that sends email using the SMTP protocol.
Underneath this adapter uses the
[gen_smtp](https://github.com/Vagabond/gen_smtp) library.
## Example
# mix.exs
def application do
[applications: [:swoosh, :gen_smtp]]
end
... | 27.900901 | 92 | 0.608331 |
acacff624ade35fc270ef616c38ad8b1c5223b52 | 17,636 | ex | Elixir | lib/livebook_web/live/file_select_component.ex | Adzz/livebook | ab0a237ab632aa617d4c9d75fbfc553b57d91dbd | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/file_select_component.ex | Adzz/livebook | ab0a237ab632aa617d4c9d75fbfc553b57d91dbd | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/file_select_component.ex | Adzz/livebook | ab0a237ab632aa617d4c9d75fbfc553b57d91dbd | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.FileSelectComponent do
use LivebookWeb, :live_component
# The component expects:
#
# * `file` - the currently entered file
#
# * `running_files` - the list of notebook files that are already
# linked to running sessions
#
# * `extnames` - a list of file extensions that... | 32.182482 | 151 | 0.568269 |
acad0293e29f35f0e77562a34a60db2da87e3dd9 | 3,410 | ex | Elixir | lib/day3.ex | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | lib/day3.ex | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | lib/day3.ex | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | use Bitwise
defmodule Day3 do
@moduledoc """
Find shortest distance in spiral matrix path
"""
@doc """
Get the Manhattan distance for a given number
## Examples
iex> Day3.get_distance(1)
0
iex> Day3.get_distance(12)
3
iex> Day3.get_distance(23)
2
iex> Day3... | 22.885906 | 100 | 0.56129 |
acad1fbcd82af73917198ecd2cd66a1616dd9072 | 2,390 | ex | Elixir | lib/open_pantry/web/controllers/stock_controller.ex | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 41 | 2017-10-04T00:33:46.000Z | 2021-04-09T01:33:34.000Z | lib/open_pantry/web/controllers/stock_controller.ex | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 74 | 2017-09-20T03:36:17.000Z | 2018-11-20T20:46:16.000Z | lib/open_pantry/web/controllers/stock_controller.ex | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 12 | 2017-10-04T10:02:49.000Z | 2021-12-28T22:57:20.000Z | defmodule OpenPantry.Web.StockController do
use OpenPantry.Web, :controller
alias OpenPantry.Stock
def index(conn, _params) do
stocks =
from(stock in Stock,
left_join: food in assoc(stock, :food),
left_join: meal in assoc(stock, :meal),
left_join: offer in assoc(stock, :offer),... | 28.795181 | 102 | 0.604184 |
acad2dde8d6502d44f3207bcbb449d83df44c51b | 1,523 | ex | Elixir | clients/container/lib/google_api/container/v1/model/intra_node_visibility_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container/lib/google_api/container/v1/model/intra_node_visibility_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container/lib/google_api/container/v1/model/intra_node_visibility_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... | 32.404255 | 105 | 0.749179 |
acad4d7cb960049282da6b8f8addbd5ceeeafedd | 1,582 | ex | Elixir | lib/app_web.ex | vsyrovat/awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 2 | 2019-12-17T11:40:54.000Z | 2019-12-22T17:15:29.000Z | lib/app_web.ex | vsyrovat/funbox_awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 5 | 2020-10-08T20:36:07.000Z | 2020-10-08T21:27:28.000Z | app/lib/app_web.ex | sumiyoshi/BokunoPhoenix | 2d1d97b36a7effac03b11b5097b69d488df90817 | [
"MIT"
] | null | null | null | defmodule AppWeb 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 AppWeb, :controller
use AppWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep... | 22.6 | 83 | 0.67952 |
acad69f044ac34fec798708f0f2324394928caf6 | 32,177 | exs | Elixir | test/floki_test.exs | rinpatch/floki | 6cdca965dec3e9a72289008e08e6b9dfe45dcd68 | [
"MIT"
] | null | null | null | test/floki_test.exs | rinpatch/floki | 6cdca965dec3e9a72289008e08e6b9dfe45dcd68 | [
"MIT"
] | null | null | null | test/floki_test.exs | rinpatch/floki | 6cdca965dec3e9a72289008e08e6b9dfe45dcd68 | [
"MIT"
] | null | null | null | defmodule FlokiTest do
use ExUnit.Case, async: true
doctest Floki
@html """
<html>
<head>
<title>Test</title>
</head>
<body>
<div class="content">
<a href="http://google.com" class="js-google js-cool">Google</a>
<a href="http://elixir-lang.org" class="js-elixir js-cool">Elixir lang</a>... | 26.83653 | 197 | 0.493676 |
acad85007d9bed4034ddcc65314cb660cccfeeb2 | 1,978 | ex | Elixir | core/metrics/aggregate_strategy.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | core/metrics/aggregate_strategy.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | core/metrics/aggregate_strategy.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Metrics.AggregateStrategy do
@moduledoc """
Defines (1) a behaviour to compute metrics results from raw metrics data and (2) some implementations of the behaviour.
"Raw metrics data" is values reported from other ... | 39.56 | 121 | 0.746208 |
acad966d969afaa57fb5e5b94ac5ade4927691c3 | 113 | exs | Elixir | lang/elixir/learning-fp-with-elixir/exercises/test/exercises/chapter2/third_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | lang/elixir/learning-fp-with-elixir/exercises/test/exercises/chapter2/third_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | lang/elixir/learning-fp-with-elixir/exercises/test/exercises/chapter2/third_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule Exercises.Chapter2.ThirdTest do
use ExUnit.Case, async: true
doctest(Exercises.Chapter2.Third)
end
| 22.6 | 41 | 0.80531 |
acad9aa901f48276c8269684f1a5030f943b09d8 | 1,156 | ex | Elixir | lib/ngram_web/router.ex | lesserhatch/ngram | 18ff289dc9d087aed209e8c43b2c521f879aab45 | [
"Apache-2.0"
] | null | null | null | lib/ngram_web/router.ex | lesserhatch/ngram | 18ff289dc9d087aed209e8c43b2c521f879aab45 | [
"Apache-2.0"
] | null | null | null | lib/ngram_web/router.ex | lesserhatch/ngram | 18ff289dc9d087aed209e8c43b2c521f879aab45 | [
"Apache-2.0"
] | null | null | null | defmodule NgramWeb.Router do
use NgramWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {NgramWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :acce... | 25.688889 | 70 | 0.694637 |
acadaf2ba8f32e120c5d8bb2a6ff7e65f41911e9 | 127 | exs | Elixir | config/test.exs | lizhaochao/ExHmac | 9e7e00999362107e17528d6d9af97da7f461d6a9 | [
"MIT"
] | null | null | null | config/test.exs | lizhaochao/ExHmac | 9e7e00999362107e17528d6d9af97da7f461d6a9 | [
"MIT"
] | null | null | null | config/test.exs | lizhaochao/ExHmac | 9e7e00999362107e17528d6d9af97da7f461d6a9 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, :console,
format: "$time [$level]$message | $metadata\n",
metadata: [:pid],
level: :none
| 18.142857 | 49 | 0.645669 |
acadd483a8fee91698a6b62f65f1fc8b8a984760 | 1,595 | ex | Elixir | vue_fire/test/support/model_case.ex | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | 1 | 2016-08-30T17:14:49.000Z | 2016-08-30T17:14:49.000Z | vue_fire/test/support/model_case.ex | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | null | null | null | vue_fire/test/support/model_case.ex | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | null | null | null | defmodule VueFire.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For ... | 25.725806 | 84 | 0.684639 |
acade56eb80f22f10979e860e251c8fb8e87b17a | 61 | exs | Elixir | config/test.exs | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 3 | 2021-10-19T12:09:30.000Z | 2022-01-30T13:24:57.000Z | config/test.exs | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 67 | 2020-02-26T10:11:45.000Z | 2022-03-30T11:06:55.000Z | config/test.exs | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 1 | 2021-11-13T13:32:34.000Z | 2021-11-13T13:32:34.000Z | import Config
config(:onigumo, :http_client, HTTPoisonMock)
| 15.25 | 45 | 0.803279 |
acadf7fcb682b7808672b0a86357ffe2b37628b3 | 647 | ex | Elixir | scrabble-score/lib/scrabble.ex | wasi0013/exercism | e00800e63cfb4024ce965fa49365acc5dd04a87b | [
"MIT"
] | 1 | 2020-04-06T19:41:50.000Z | 2020-04-06T19:41:50.000Z | scrabble-score/lib/scrabble.ex | wasi0013/exercism | e00800e63cfb4024ce965fa49365acc5dd04a87b | [
"MIT"
] | null | null | null | scrabble-score/lib/scrabble.ex | wasi0013/exercism | e00800e63cfb4024ce965fa49365acc5dd04a87b | [
"MIT"
] | null | null | null | defmodule Scrabble do
@letters [
{"AEIOULNRST", 1},
{"DG", 2},
{"BCMP", 3},
{"FHVWY", 4},
{"K", 5},
{"JX", 8},
{"QZ", 10}
]
@mapping Enum.reduce(
@letters,
%{},
fn {letter, value}, mapping ->
Map.merge(mapping, Map.new(Enum.map(Stri... | 20.870968 | 92 | 0.482226 |
acae334e37176a09eb308e8e352375d29bc7dee6 | 1,832 | ex | Elixir | lib/scrivener/paginater/ecto/query.ex | sonhgc00016/scrivener_ecto | f1f5e57542d89c26a234a91bdc77d4904da3d592 | [
"MIT"
] | null | null | null | lib/scrivener/paginater/ecto/query.ex | sonhgc00016/scrivener_ecto | f1f5e57542d89c26a234a91bdc77d4904da3d592 | [
"MIT"
] | null | null | null | lib/scrivener/paginater/ecto/query.ex | sonhgc00016/scrivener_ecto | f1f5e57542d89c26a234a91bdc77d4904da3d592 | [
"MIT"
] | null | null | null | defimpl Scrivener.Paginater, for: Ecto.Query do
import Ecto.Query
alias Scrivener.{Config, Page}
@moduledoc false
@spec paginate(Ecto.Query.t, Scrivener.Config.t) :: Scrivener.Page.t
def paginate(query, %Config{page_size: page_size, page_number: page_number, module: repo}) do
total_entries = total_entr... | 24.756757 | 95 | 0.563865 |
acae6c13a150e066fc043f0f328e4da22b8094f2 | 2,269 | ex | Elixir | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_price_tier.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_price_tier.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_price_tier.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.811321 | 329 | 0.739092 |
acae798417afaca207d30781fc99347baa0f4002 | 7,877 | exs | Elixir | test/membrane/rtp/session_bin_test.exs | membraneframework/membrane_rtp_plugin | 50fdc3122bd81484dfb4ad32174fefdf827188d8 | [
"Apache-2.0"
] | 15 | 2020-12-12T01:30:19.000Z | 2022-02-28T22:48:08.000Z | test/membrane/rtp/session_bin_test.exs | membraneframework/membrane_rtp_plugin | 50fdc3122bd81484dfb4ad32174fefdf827188d8 | [
"Apache-2.0"
] | 39 | 2020-07-31T09:16:41.000Z | 2022-03-17T09:40:50.000Z | test/membrane/rtp/session_bin_test.exs | membraneframework/membrane_rtp_plugin | 50fdc3122bd81484dfb4ad32174fefdf827188d8 | [
"Apache-2.0"
] | 3 | 2021-05-12T21:27:28.000Z | 2021-11-03T19:27:34.000Z | defmodule Membrane.RTP.Session.BinTest do
use ExUnit.Case
import Membrane.Testing.Assertions
alias Membrane.{RemoteStream, RTP, RTCP}
alias Membrane.Testing
@rtp_input %{
pcap: "test/fixtures/rtp/session/demo_rtp.pcap",
audio: %{ssrc: 439_017_412, frames_n: 20},
video: %{ssrc: 670_572_639, fram... | 30.769531 | 175 | 0.608988 |
acae7ccd6460410cf969290d5cc945139e3ea728 | 20 | ex | Elixir | testData/org/elixir_lang/formatting/without_space_around_three_operator.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/formatting/without_space_around_three_operator.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/formatting/without_space_around_three_operator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | register^^^register
| 10 | 19 | 0.8 |
acae92d2af559636093118f55bb5c672ca16b80e | 896 | exs | Elixir | test/support/fixture_factories.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | test/support/fixture_factories.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | test/support/fixture_factories.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | defmodule DarkEcto.TestFactory do
# credo:disable-for-this-file
defmodule TestStruct do
defstruct [:a, :b, :c, :d, :no_matcher, :matcher]
end
def example_test_mutation_factory do
%{no_matcher: []}
end
def example_test_with_matcher_mutation_matchers do
%{matcher: &is_nil/1}
end
def exampl... | 20.363636 | 54 | 0.686384 |
acae9d22b860eeb674820b989a3b1fd4f3e18838 | 1,179 | ex | Elixir | lib/altstatus_web/channels/user_socket.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 1 | 2020-01-20T18:17:59.000Z | 2020-01-20T18:17:59.000Z | lib/altstatus_web/channels/user_socket.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | null | null | null | lib/altstatus_web/channels/user_socket.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 2 | 2018-09-09T08:05:24.000Z | 2018-09-09T08:35:18.000Z | defmodule AltstatusWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", AltstatusWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify a... | 31.026316 | 84 | 0.704835 |
acaeaaeb34688090648322b437d6c22bf0371931 | 963 | exs | Elixir | script/baud.exs | evnu/baud | aa3682d3a8562f1d0d3c722175b5ad24fdb91d54 | [
"Apache-2.0"
] | 11 | 2017-04-27T13:51:56.000Z | 2020-10-26T07:31:03.000Z | script/baud.exs | evnu/baud | aa3682d3a8562f1d0d3c722175b5ad24fdb91d54 | [
"Apache-2.0"
] | 5 | 2016-12-06T06:14:19.000Z | 2019-02-06T09:50:19.000Z | script/baud.exs | evnu/baud | aa3682d3a8562f1d0d3c722175b5ad24fdb91d54 | [
"Apache-2.0"
] | 7 | 2016-11-30T15:32:40.000Z | 2021-06-18T19:29:43.000Z | tty = case :os.type() do
{:unix, :darwin} -> "cu.usbserial-FTYHQD9MA"
{:unix, :linux} -> "ttyUSB0"
{:win32, :nt} -> "COM5"
end
#Try this with a loopback
{:ok, pid} = Baud.start_link([device: tty])
Baud.write pid, "01234\n56789\n98765\n43210"
{:ok, "01234\n"} = Baud.readln pid
{:ok, "56789\n"} = Baud.readln pid
... | 28.323529 | 54 | 0.639668 |
acaee125faf17988a82dedc9b8db1d40089a8e22 | 9,631 | ex | Elixir | lib/ex_marshal/decoder.ex | luisgabrielroldan/ex_marshal | 9fc4087dc063e23a8371617f9a13e877c9ff2fef | [
"0BSD"
] | null | null | null | lib/ex_marshal/decoder.ex | luisgabrielroldan/ex_marshal | 9fc4087dc063e23a8371617f9a13e877c9ff2fef | [
"0BSD"
] | null | null | null | lib/ex_marshal/decoder.ex | luisgabrielroldan/ex_marshal | 9fc4087dc063e23a8371617f9a13e877c9ff2fef | [
"0BSD"
] | null | null | null | defmodule ExMarshal.Decoder do
alias ExMarshal.Errors.DecodeError
def decode(<<_major::1-bytes, _minor::1-bytes, value::binary>>) do
initial_state = %{
links: %{},
references: %{locked: false, first_call: true}
}
{value, _rest, _state} = decode_element(value, initial_state)
value
en... | 28.749254 | 93 | 0.607621 |
acaeea5efaaa1987a87cbd4a6454bf0690757920 | 1,340 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/audit_logs.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"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/audit_logs.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"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/audit_logs.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWebCore.AuditLogs do
import Ecto.Query
alias NervesHubWebCore.{Repo, AuditLogs.AuditLog}
def audit(actor, resource, action, params) do
AuditLog.build(actor, resource, action, params)
|> AuditLog.changeset()
|> Repo.insert()
end
def audit!(actor, resource, action, params) do
... | 26.27451 | 94 | 0.667164 |
acaefd828cd574b905b815e3b8d3eeae4c55d5c3 | 190 | ex | Elixir | lib/processor.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | null | null | null | lib/processor.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | 64 | 2018-05-15T11:34:13.000Z | 2021-08-03T07:15:39.000Z | lib/processor.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | null | null | null | defmodule GenRMQ.Processor do
@moduledoc """
Defines functions to implement by any AMQP processor
"""
@callback process(message :: GenRMQ.Message.t()) :: :ok | {:error, Any.t()}
end
| 27.142857 | 77 | 0.684211 |
acaf13c972063babfaa50d027e75a43adbcc9798 | 2,771 | ex | Elixir | lib/codes/codes_a66.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a66.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a66.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_A66 do
alias IcdCode.ICDCode
def _A660 do
%ICDCode{full_code: "A660",
category_code: "A66",
short_code: "0",
full_name: "Initial lesions of yaws",
short_name: "Initial lesions of yaws",
category_name: "Initial lesions of yaws"
... | 28.56701 | 65 | 0.573078 |
acaf210fe50ca63aa9fe921fd5a880a5f6760a7a | 1,963 | ex | Elixir | lib/elixirfm/tag.ex | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | lib/elixirfm/tag.ex | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | lib/elixirfm/tag.ex | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | defmodule Elixirfm.Tag do
@moduledoc """
Wrapper for Last.fm Tags endpoints
"""
@method "tag"
@type tag_opts :: [page: non_neg_integer(), limit: non_neg_integer()]
defp uri(url), do: Elixirfm.get_request(@method <> url)
@doc """
Get the metadata for a tag
"""
@spec get_info(String.t(), [lang: St... | 33.844828 | 112 | 0.660214 |
acaf28becf11a086aba72ecb16a32b1dce2ebdb0 | 3,334 | exs | Elixir | zipper/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | zipper/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | zipper/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | defmodule BinTree do
@moduledoc """
A node in a binary tree.
`value` is the value of a node.
`left` is the left subtree (nil if no subtree).
`right` is the right subtree (nil if no subtree).
"""
@type t :: %BinTree{ value: any, left: BinTree.t | nil, right: BinTree.t | nil }
defstruct value: nil, left:... | 27.327869 | 85 | 0.564187 |
acaf357a990658746a8c450a28b92d161a58cf28 | 1,471 | ex | Elixir | lib/ds_wrapper/entity.ex | iii-ishida/ds_wrapper | d7a2fbb1c07b33a762743b1c2051b163586fc5d7 | [
"MIT"
] | null | null | null | lib/ds_wrapper/entity.ex | iii-ishida/ds_wrapper | d7a2fbb1c07b33a762743b1c2051b163586fc5d7 | [
"MIT"
] | null | null | null | lib/ds_wrapper/entity.ex | iii-ishida/ds_wrapper | d7a2fbb1c07b33a762743b1c2051b163586fc5d7 | [
"MIT"
] | null | null | null | defmodule DsWrapper.Entity do
@moduledoc """
`GoogleApi.Datastore.V1.Model.Entity` wrapper
"""
alias DsWrapper.Value
alias GoogleApi.Datastore.V1.Model.{Entity, EntityResult, Key}
@doc """
Create a new `GoogleApi.Datastore.V1.Model.Entity`.
## Examples
iex> key = DsWrapper.Key.new("SomeKind", ... | 30.020408 | 86 | 0.632903 |
acaf58d1ac5d145864cc08548c9cc99f6599945a | 6,040 | ex | Elixir | lib/esbuild.ex | kieraneglin/esbuild | 2608fb055b781aa1ee11ad886404dd136f0ae239 | [
"MIT"
] | null | null | null | lib/esbuild.ex | kieraneglin/esbuild | 2608fb055b781aa1ee11ad886404dd136f0ae239 | [
"MIT"
] | null | null | null | lib/esbuild.ex | kieraneglin/esbuild | 2608fb055b781aa1ee11ad886404dd136f0ae239 | [
"MIT"
] | null | null | null | defmodule Esbuild do
@moduledoc """
Esbuild is a installer and runner for [esbuild](https://github.com/evanw/esbuild/).
## Profiles
You can define multiple esbuild profiles. By default, there is a
profile called `:default` which you can configure its args, current
directory and environment:
config ... | 26.375546 | 94 | 0.60745 |
acafc022644e4801e5453a984e825e7a0d5dc075 | 133 | exs | Elixir | priv/repo/migrations/20180220004212_drop_members_table.exs | ryancharris/who | 187a207576240d07e338a1707e5a8eba2e2852d5 | [
"MIT"
] | 1 | 2017-08-08T13:22:23.000Z | 2017-08-08T13:22:23.000Z | priv/repo/migrations/20180220004212_drop_members_table.exs | ryancharris/who | 187a207576240d07e338a1707e5a8eba2e2852d5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180220004212_drop_members_table.exs | ryancharris/who | 187a207576240d07e338a1707e5a8eba2e2852d5 | [
"MIT"
] | null | null | null | defmodule Who.Repo.Migrations.DropMembersTable do
use Ecto.Migration
def change do
drop_if_exists table(:members)
end
end
| 16.625 | 49 | 0.774436 |
acafed310090524c058c048b50f177b00c443f36 | 2,463 | ex | Elixir | lib/sengo_web/router.ex | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | lib/sengo_web/router.ex | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | lib/sengo_web/router.ex | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | defmodule SengoWeb.Router do
use SengoWeb, :router
import SengoWeb.UserAuth
import Phoenix.LiveDashboard.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {SengoWeb.LayoutView, :root}
plug :protect_from_forgery
plug :p... | 29.321429 | 86 | 0.723102 |
acb0247fc0632eec70f2b03812976d4c0155e8bf | 1,802 | ex | Elixir | apps/teller/lib/teller/graphql/resolvers/account/transfer.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 2 | 2018-06-23T11:43:34.000Z | 2019-01-07T10:52:42.000Z | apps/teller/lib/teller/graphql/resolvers/account/transfer.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-21T01:20:04.000Z | 2018-06-21T01:20:04.000Z | apps/teller/lib/teller/graphql/resolvers/account/transfer.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-30T21:40:51.000Z | 2018-06-30T21:40:51.000Z | defmodule Teller.GraphQL.Resolvers.Account.Transfer do
@moduledoc """
Absinthe resolver to the `DataBase.Services.Account.Transfer`.
GraphQL endpoint to allow authorized users to transfer assets to
other `t:DataBase.Schemas.Account.t/0`.
"""
alias Absinthe.Resolution, as: Res
alias Teller.ErrorMessages,... | 31.614035 | 69 | 0.645394 |
acb032865627c0818ea8d519785b931538d15016 | 42 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | (;) ++ (;)
(;) -- (;)
(;)..(;)
(;) <> (;)
| 8.4 | 10 | 0 |
acb05469e67463d79319bef836ed34b98162fa90 | 2,309 | ex | Elixir | lib/ecto/query/builder/dynamic.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/dynamic.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/dynamic.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | 1 | 2020-10-07T16:52:00.000Z | 2020-10-07T16:52:00.000Z | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.Dynamic do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Builds a dynamic expression.
"""
@spec build([Macro.t], Macro.t, Macro.Env.t) :: Macro.t
def build(binding, expr, env) do
{query, vars} = Builder.escape_binding(quote(do: que... | 35.523077 | 94 | 0.596795 |
acb09993565527a30602e3cb6a71b547bd907e91 | 1,171 | ex | Elixir | lib/live_view_google_maps_web/live/page_live.ex | data-twister/blog-phoenix-live-view-google-maps | 13c7186219f9920962df161a093adf77f5ded69d | [
"MIT"
] | null | null | null | lib/live_view_google_maps_web/live/page_live.ex | data-twister/blog-phoenix-live-view-google-maps | 13c7186219f9920962df161a093adf77f5ded69d | [
"MIT"
] | null | null | null | lib/live_view_google_maps_web/live/page_live.ex | data-twister/blog-phoenix-live-view-google-maps | 13c7186219f9920962df161a093adf77f5ded69d | [
"MIT"
] | null | null | null | defmodule LiveViewGoogleMapsWeb.PageLive do
use LiveViewGoogleMapsWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
@impl true
def handle_params(%{"action" => :add_random_sighting}, _params, _socket) do
random_sighting = generate_random_sighting()
# push the... | 26.022222 | 83 | 0.700256 |
acb0baaf8a25a5340d182fb3647c4b37be572641 | 967 | exs | Elixir | test/controllers/registration_controller_test.exs | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | test/controllers/registration_controller_test.exs | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | test/controllers/registration_controller_test.exs | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule HandimanApi.RegistrationControllerTest do
use HandimanApi.ConnCase
alias HandimanApi.User
@valid_attrs %{email: "some content", name: "some content", password: "password", password_confirmation: "password"}
@query_attrs %{email: "some content", name: "some content"}
@invalid_attrs %{}
setup do
... | 37.192308 | 118 | 0.707342 |
acb0c3196faab62dd135f29a4f0ccd15f3960294 | 1,011 | ex | Elixir | lib/xeroxero/core_api/overpayments.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-12-01T18:21:31.000Z | 2021-12-01T18:21:31.000Z | lib/xeroxero/core_api/overpayments.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | null | null | null | lib/xeroxero/core_api/overpayments.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-10-01T12:09:46.000Z | 2021-10-01T12:09:46.000Z | defmodule XeroXero.CoreApi.Overpayments do
@resource "overpayments"
@model_module XeroXero.CoreApi.Models.Overpayments
@allocations_model_module XeroXero.CoreApi.Models.Allocations
def find(client) do
XeroXero.CoreApi.Common.find(client, @resource)
|> XeroXero.CoreApi.Utils.ResponseHandler.handle_respo... | 36.107143 | 88 | 0.772502 |
acb0eead729bbed41f8948a5e2c6c2d346a7f25c | 2,760 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/google_operations.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/google_operations.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/google_operations.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... | 44.516129 | 279 | 0.719565 |
acb132a86c0725ede9052800051889dabbd32410 | 3,456 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/file_occurrence.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/file_occurrence.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/file_occurrence.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... | 50.823529 | 266 | 0.716146 |
acb180a56828fca359f71e0d91fe4491163e67af | 1,236 | ex | Elixir | lib/google_api/you_tube/v3/model/i18n_region_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/i18n_region_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/i18n_region_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 28.744186 | 83 | 0.732201 |
acb183267f51a3f931dd2932f5e19fc1104d5cc6 | 880 | exs | Elixir | config/test.exs | kitsteam/qrstorage | 8a11d47da7099395248f569289f68a7920a87f74 | [
"MIT"
] | 3 | 2021-12-12T22:18:45.000Z | 2021-12-29T12:05:40.000Z | config/test.exs | kitsteam/qrstorage | 8a11d47da7099395248f569289f68a7920a87f74 | [
"MIT"
] | 13 | 2021-12-28T10:25:30.000Z | 2022-03-28T08:26:35.000Z | config/test.exs | kitsteam/qrstorage | 8a11d47da7099395248f569289f68a7920a87f74 | [
"MIT"
] | 1 | 2022-03-17T09:24:48.000Z | 2022-03-17T09:24:48.000Z | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :qrstorage, Qrstorage.Repo,
username: System.get_env("DATABASE_USER"),
password: System.get_env("DATABAS... | 29.333333 | 88 | 0.75 |
acb1b52cb6c8c9408d89bd5a52e81258c993a84b | 29,072 | ex | Elixir | lib/scenic/primitive/style/paint/color.ex | ruan-brandao/scenic | cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/paint/color.ex | ruan-brandao/scenic | cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/paint/color.ex | ruan-brandao/scenic | cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2018-06-04.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Style.Paint.Color do
@moduledoc """
Fill a primitive with a single color
The color paint is used as the data for the [`:fill`](Scenic.Primitive.Style.Fill.html) style.
## Full ... | 63.61488 | 135 | 0.629678 |
acb1c5433d514df95d359060f06394a404dfdc63 | 59 | ex | Elixir | lib/events_web/views/user_view.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/views/user_view.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/views/user_view.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | defmodule EventsWeb.UserView do
use EventsWeb, :view
end
| 14.75 | 31 | 0.79661 |
acb1c7e594d5b47ec18b3608cd7b7d20b1f44347 | 382 | ex | Elixir | web/views/error_view.ex | qgadrian/elixir_graphql_example | 7bcce117edc276ae981dbe71e4d9db7a312c5760 | [
"MIT"
] | null | null | null | web/views/error_view.ex | qgadrian/elixir_graphql_example | 7bcce117edc276ae981dbe71e4d9db7a312c5760 | [
"MIT"
] | null | null | null | web/views/error_view.ex | qgadrian/elixir_graphql_example | 7bcce117edc276ae981dbe71e4d9db7a312c5760 | [
"MIT"
] | null | null | null | defmodule GraphqlTest.ErrorView do
use GraphqlTest.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_t... | 21.222222 | 47 | 0.704188 |
acb1e846a866924a73f865099334cf9901b8fd0c | 816 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/network_interface_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/network_interface_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/network_interface_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.NetworkInterfaceListResult do
@moduledoc """
Response for the ListNetworkInterface API service call.
... | 27.2 | 103 | 0.735294 |
acb1ec5837c3372db1aa732c9ce308fad4041462 | 8,142 | ex | Elixir | lib/mix/tasks/nerves_hub.product.ex | pojiro/nerves_hub_cli | 7b0f92b253078302b6c66f7371a716d1e366d6d0 | [
"Apache-2.0"
] | 28 | 2018-08-15T02:17:26.000Z | 2021-11-25T11:14:24.000Z | lib/mix/tasks/nerves_hub.product.ex | pojiro/nerves_hub_cli | 7b0f92b253078302b6c66f7371a716d1e366d6d0 | [
"Apache-2.0"
] | 81 | 2018-08-13T17:14:14.000Z | 2021-09-11T13:08:29.000Z | lib/mix/tasks/nerves_hub.product.ex | pojiro/nerves_hub_cli | 7b0f92b253078302b6c66f7371a716d1e366d6d0 | [
"Apache-2.0"
] | 13 | 2018-09-14T12:47:26.000Z | 2022-02-03T07:28:41.000Z | defmodule Mix.Tasks.NervesHub.Product do
use Mix.Task
import Mix.NervesHubCLI.Utils
alias Mix.NervesHubCLI.Shell
@shortdoc "Manages your products"
@moduledoc """
Manages your products.
## create
Create a new NervesHub product. The shell will prompt for information about the
product. This informa... | 24.74772 | 99 | 0.617047 |
acb22513890d4b3f46fae4658cb84db4209bdf8a | 6,758 | ex | Elixir | lib/instream/series.ex | astery/instream | 91d031d4cdc1091314451279ce43651d8fd7ec89 | [
"Apache-2.0"
] | null | null | null | lib/instream/series.ex | astery/instream | 91d031d4cdc1091314451279ce43651d8fd7ec89 | [
"Apache-2.0"
] | null | null | null | lib/instream/series.ex | astery/instream | 91d031d4cdc1091314451279ce43651d8fd7ec89 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Series do
@moduledoc """
Defines a series.
## Series Definition
If you do not want to define the raw maps for writing data you can
pre-define a series module for later usage:
defmodule MySeries.InfluxDB do
use Instream.Series
series do
measurement "cpu_lo... | 25.310861 | 83 | 0.652412 |
acb2423c56357d5375d393f3b6e07820e2a4e9f6 | 6,406 | exs | Elixir | test/tesla_oauth2_client_auth_test/client_secret_jwt_test.exs | tanguilp/tesla_oauth2_client_auth | 4a702fae1ba814607949babaa257df7cfd61a495 | [
"Apache-2.0"
] | null | null | null | test/tesla_oauth2_client_auth_test/client_secret_jwt_test.exs | tanguilp/tesla_oauth2_client_auth | 4a702fae1ba814607949babaa257df7cfd61a495 | [
"Apache-2.0"
] | 1 | 2020-05-30T11:33:44.000Z | 2020-05-30T11:33:44.000Z | test/tesla_oauth2_client_auth_test/client_secret_jwt_test.exs | tanguilp/tesla_oauth2_client_auth | 4a702fae1ba814607949babaa257df7cfd61a495 | [
"Apache-2.0"
] | null | null | null | defmodule TeslaOAuth2ClientAuthTest.ClientSecretJWT do
use ExUnit.Case
alias TeslaOAuth2ClientAuth.ClientSecretJWT
@assertion_type "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
test "valid request using client's secret" do
client =
Tesla.client(
[
{ClientSecretJWT,
... | 26.146939 | 89 | 0.592257 |
acb26922a078388eb88c75e512ca4f98b426e834 | 586 | ex | Elixir | lib/glimesh_web/live/user_settings/components/channel_statistics_live.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh_web/live/user_settings/components/channel_statistics_live.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh_web/live/user_settings/components/channel_statistics_live.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.UserSettings.Components.ChannelStatisticsLive do
use GlimeshWeb, :live_view
alias Glimesh.Accounts
alias Glimesh.ChannelLookups
def mount(_params, session, socket) do
streamer = Accounts.get_user_by_session_token(session["user_token"])
case ChannelLookups.get_channel_for_user(str... | 26.636364 | 72 | 0.682594 |
acb288fd70cf3b1ec290ac6b3d2b75e87509151a | 1,465 | ex | Elixir | lib/ueberauth/strategy/microsoft/oauth.ex | jaman/ueberauth_microsoft | 2a6e6e68318fbcdfe4102652014c463301cfaa70 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/microsoft/oauth.ex | jaman/ueberauth_microsoft | 2a6e6e68318fbcdfe4102652014c463301cfaa70 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/microsoft/oauth.ex | jaman/ueberauth_microsoft | 2a6e6e68318fbcdfe4102652014c463301cfaa70 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Microsoft.OAuth do
use OAuth2.Strategy
alias Ueberauth
alias OAuth2.Client
alias OAuth2.Strategy.AuthCode
def client(opts \\ []) do
config = Application.get_env(:ueberauth, __MODULE__)
json_library = Ueberauth.json_library()
config
|> defaults()
|> Keyword.m... | 25.701754 | 118 | 0.666894 |
acb28a688a846bc7c45812d3bc90dc00ab30dcd9 | 1,430 | ex | Elixir | apps/email/lib/email_web/endpoint.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | apps/email/lib/email_web/endpoint.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | apps/email/lib/email_web/endpoint.ex | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | defmodule EmailWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :email
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_email_key",
... | 28.6 | 97 | 0.711189 |
acb2bad43b88e2067d3061401801b1cc4b0ce633 | 224 | ex | Elixir | lib/hl7/2.3/datatypes/cm_spd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/cm_spd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/cm_spd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.DataTypes.Cmspd do
@moduledoc false
use HL7.DataType,
fields: [
specialty_name: nil,
governing_board: nil,
eligible_or_certified: nil,
date_of_certification: nil
]
end
| 18.666667 | 37 | 0.678571 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.