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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93babe14f00a1c766bab971fd2b306d244529d5a | 878 | ex | Elixir | lib/nostrum/struct/embed/field.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 2 | 2020-03-03T02:51:57.000Z | 2021-01-18T02:24:42.000Z | lib/nostrum/struct/embed/field.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/struct/embed/field.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Struct.Embed.Field do
@moduledoc """
Struct representing a Discord embed field.
"""
alias Nostrum.Util
alias Poison.Encoder
defstruct [
:name,
:value,
:inline
]
defimpl Encoder do
def encode(field, options) do
field
|> Map.from_struct()
|> Enum.filt... | 18.680851 | 67 | 0.589977 |
93baea36401fd8b97d4a9288346f488902cb7cde | 2,467 | exs | Elixir | test/commands/role/grant_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/role/grant_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/role/grant_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.Role.GrantTest do
use Cog.CommandCase, command_module: Cog.Commands.Role.Grant
alias Cog.Repository.Roles
import Cog.Support.ModelUtilities, only: [role: 1, group: 1]
import DatabaseAssertions, only: [assert_role_is_granted: 2,
refute_role_is_gran... | 27.411111 | 70 | 0.58411 |
93bb084ee523190ad7eb939b0719a0826a36308c | 2,435 | ex | Elixir | lib/commands/user.ex | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | lib/commands/user.ex | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | lib/commands/user.ex | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | defmodule IRC.Commands.User do
require Logger
use Bitwise
@behaviour IRC.Commands.Base
@doc """
Update the user information.
Numeric replies:
- ERR_NEEDMOREPARAMS
- ERR_ALREADYREGISTRED
"""
@impl IRC.Commands.Base
def run(parameters, client_state, _server_state) do
nick = client_state.ni... | 25.904255 | 113 | 0.600411 |
93bb161fcefec09f611e71a65d8c20adce4b79f3 | 1,540 | ex | Elixir | test/support/conn_case.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | test/support/conn_case.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | test/support/conn_case.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule ShopixWeb.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 the ... | 26.551724 | 74 | 0.669481 |
93bb427230fec34d36d3468923d162e9d6681fce | 1,001 | ex | Elixir | tests/dummy/lib/dummy.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/lib/dummy.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/lib/dummy.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | defmodule Dummy do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Dummy.Endpo... | 31.28125 | 71 | 0.704296 |
93bb58af6433a42f3b26ece3aa6104ab6dc034a5 | 1,458 | ex | Elixir | lib/draw_something/magic.ex | ShockN745/drawcheat | d02fa05c1499e3c91d7dd85342c0b149b203c240 | [
"MIT"
] | null | null | null | lib/draw_something/magic.ex | ShockN745/drawcheat | d02fa05c1499e3c91d7dd85342c0b149b203c240 | [
"MIT"
] | null | null | null | lib/draw_something/magic.ex | ShockN745/drawcheat | d02fa05c1499e3c91d7dd85342c0b149b203c240 | [
"MIT"
] | null | null | null | defmodule DrawSomething.Magic do
alias DrawSomething.Dictionary
import DrawSomething.Words
def cheat(letters, word_length) do
letters
|> cheat
|> Enum.filter(&(String.length(&1) == word_length))
end
def cheat(letters) do
Dictionary.Coordinator.get_all_possible_words(letters)
end
def chea... | 26.509091 | 90 | 0.63786 |
93bb6a4d02d31264c860d9be34d4d2fe141ae8cf | 2,708 | exs | Elixir | test/rock/heaps_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 10 | 2017-06-24T10:23:25.000Z | 2022-03-28T09:15:00.000Z | test/rock/heaps_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 2 | 2017-10-17T21:06:56.000Z | 2020-07-14T13:43:32.000Z | test/rock/heaps_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 3 | 2017-09-01T09:37:13.000Z | 2020-07-13T18:16:58.000Z | defmodule Rock.HeapsTest do
use ExUnit.Case
alias Rock.Heaps
alias Rock.Links
alias Rock.NeighbourCriterion
alias Rock.Struct.Point
alias Rock.Struct.Cluster
alias Rock.Struct.Heap
setup do
theta = 0.5
criterion = NeighbourCriterion.new(theta)
points = [
Point.new("1", ["1", "2", "3... | 26.038462 | 96 | 0.539143 |
93bb76d974a2478f49bf12529dfe569d10aceedb | 3,463 | ex | Elixir | lib/phoenix/transports/websocket.ex | bryanhunter/phoenix | 9e836d20452bb1c36acaffb67e242c73b59cb299 | [
"MIT"
] | null | null | null | lib/phoenix/transports/websocket.ex | bryanhunter/phoenix | 9e836d20452bb1c36acaffb67e242c73b59cb299 | [
"MIT"
] | null | null | null | lib/phoenix/transports/websocket.ex | bryanhunter/phoenix | 9e836d20452bb1c36acaffb67e242c73b59cb299 | [
"MIT"
] | null | null | null | defmodule Phoenix.Transports.WebSocket do
use Plug.Builder
import Phoenix.Controller, only: [endpoint_module: 1, router_module: 1]
@moduledoc """
Handles WebSocket clients for the Channel Transport layer.
## Configuration
By default, JSON encoding is used to broker messages to and from clients,
but th... | 29.598291 | 98 | 0.655501 |
93bb86b7bafc6c8a8095a67a143e5fa7a3d3a3a6 | 4,073 | ex | Elixir | lib/mitbits/driver.ex | siddhantmittal7/Mitbits_Cryptocurrency | b02060b1fa6ccc14730433bc4b078b8e5c752a8a | [
"MIT"
] | 2 | 2018-12-10T21:20:04.000Z | 2020-07-07T07:28:14.000Z | lib/mitbits/driver.ex | prafful13/Mitbits_Cryptocurrency | b02060b1fa6ccc14730433bc4b078b8e5c752a8a | [
"MIT"
] | null | null | null | lib/mitbits/driver.ex | prafful13/Mitbits_Cryptocurrency | b02060b1fa6ccc14730433bc4b078b8e5c752a8a | [
"MIT"
] | 1 | 2018-12-16T03:36:18.000Z | 2018-12-16T03:36:18.000Z | defmodule Mitbits.Driver do
use GenServer
# use ExUnit.Case
@me __MODULE__
# API
def start_link(_) do
GenServer.start_link(__MODULE__, :no_args, name: @me)
end
# SERVER
def init(:no_args) do
Process.send_after(self(), :kickoff, 0)
{:ok, {}}
end
def handle_info(:kickoff, {}) do
num... | 27.707483 | 100 | 0.633685 |
93bbc4bcd180357a6d07c70ce7ab9a92faeaee88 | 1,614 | ex | Elixir | clients/domains/lib/google_api/domains/v1/model/search_domains_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains/lib/google_api/domains/v1/model/search_domains_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains/lib/google_api/domains/v1/model/search_domains_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.340426 | 147 | 0.752169 |
93bbc6e84322b127de3791ec8ebb4aa489086882 | 1,044 | ex | Elixir | farmbot_core/lib/farmbot_core/asset/supervisor.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/supervisor.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset/supervisor.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.Supervisor do
@moduledoc false
use Supervisor
alias FarmbotCore.{AssetSupervisor, AssetMonitor}
alias FarmbotCore.Asset.{
Repo,
Device,
FarmEvent,
FarmwareEnv,
FarmwareInstallation,
FbosConfig,
FirmwareConfig,
PinBinding,
PublicKey,
Peripheral... | 24.27907 | 61 | 0.689655 |
93bbe035a58dc46d769d08d82b0ac287aac802a8 | 83 | exs | Elixir | apps/admin/test/admin/controllers/page_controller_test.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/admin/test/admin/controllers/page_controller_test.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/admin/test/admin/controllers/page_controller_test.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | defmodule Legendary.Admin.PageControllerTest do
use Legendary.Admin.ConnCase
end
| 20.75 | 47 | 0.855422 |
93bbe7eff660747ddefe95b95a75ba8366a6d096 | 735 | ex | Elixir | lib/mogrify/compat.ex | andra49/mogrify | ae8a02f88c979c71808afa09ca024bdc1a74ea25 | [
"MIT"
] | 494 | 2015-01-02T15:54:37.000Z | 2021-07-05T04:24:30.000Z | lib/mogrify/compat.ex | andra49/mogrify | ae8a02f88c979c71808afa09ca024bdc1a74ea25 | [
"MIT"
] | 83 | 2015-04-30T21:03:29.000Z | 2021-07-04T23:40:02.000Z | lib/mogrify/compat.ex | andra49/mogrify | ae8a02f88c979c71808afa09ca024bdc1a74ea25 | [
"MIT"
] | 79 | 2015-01-18T22:11:03.000Z | 2021-06-22T17:24:02.000Z | defmodule Mogrify.Compat do
@moduledoc false
defmacro __using__(_opts) do
quote do
Code.ensure_loaded(Kernel.SpecialForms)
if not macro_exported?(Kernel.SpecialForms, :__STACKTRACE__, 0) do
def __STACKTRACE__, do: System.stacktrace()
end
end
end
def rand_uniform(high) do
... | 22.272727 | 72 | 0.64898 |
93bbe99d93167eb894eb3da4e72f51ec969f4943 | 5,689 | exs | Elixir | test/exponent_server_sdk/push_notification_test.exs | vinagrito/exponent-server-sdk-elixir | d339cceb8ea0a75c3e52cf3d11fd38b63558b98c | [
"MIT"
] | null | null | null | test/exponent_server_sdk/push_notification_test.exs | vinagrito/exponent-server-sdk-elixir | d339cceb8ea0a75c3e52cf3d11fd38b63558b98c | [
"MIT"
] | null | null | null | test/exponent_server_sdk/push_notification_test.exs | vinagrito/exponent-server-sdk-elixir | d339cceb8ea0a75c3e52cf3d11fd38b63558b98c | [
"MIT"
] | null | null | null | defmodule ExponentServerSdk.PushNotificationTest do
use ExUnit.Case, async: false
import TestHelper
alias ExponentServerSdk.PushMessage
alias ExponentServerSdk.PushNotification
doctest ExponentServerSdk.PushNotification
test ".push should return the proper response from Expo" do
message_map = %{
... | 28.732323 | 135 | 0.541747 |
93bc05da5086048799f86998b3ec0818ce65ed5e | 1,782 | exs | Elixir | test/phoenix_client_ssl/plug/common_name_blacklist_test.exs | Prato/phoenix-client-ssl | 510c2381e6d95c9baa6de9985d86d0a5dfe27b29 | [
"MIT"
] | 17 | 2017-12-01T09:12:41.000Z | 2021-04-16T07:53:37.000Z | test/phoenix_client_ssl/plug/common_name_blacklist_test.exs | Prato/phoenix-client-ssl | 510c2381e6d95c9baa6de9985d86d0a5dfe27b29 | [
"MIT"
] | 2 | 2018-01-29T13:04:26.000Z | 2018-05-24T11:03:55.000Z | test/phoenix_client_ssl/plug/common_name_blacklist_test.exs | Prato/phoenix-client-ssl | 510c2381e6d95c9baa6de9985d86d0a5dfe27b29 | [
"MIT"
] | 6 | 2018-05-24T07:42:22.000Z | 2020-11-14T17:41:35.000Z | defmodule PhoenixClientSsl.Plug.CommonNameBlacklistTest do
@moduledoc false
use ExUnit.Case
alias PhoenixClientSsl.Plug.CommonNameBlacklist
alias Plug.Conn
doctest CommonNameBlacklist
defp send_and_return(conn, reason) do
send(self(), reason)
conn
end
describe "init/1" do
test "config w... | 27.84375 | 77 | 0.686308 |
93bc39c6606ecafd0c6176b4ca10a8def936a9bc | 420 | exs | Elixir | create_fun_umbrella/apps/create_fun/priv/repo/migrations/20180524114906_guardiandb.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | null | null | null | create_fun_umbrella/apps/create_fun/priv/repo/migrations/20180524114906_guardiandb.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 9 | 2018-06-17T09:54:03.000Z | 2018-06-17T09:55:20.000Z | create_fun_umbrella/apps/create_fun/priv/repo/migrations/20180524114906_guardiandb.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 1 | 2018-06-05T18:38:01.000Z | 2018-06-05T18:38:01.000Z | defmodule CreateFun.Repo.Migrations.Guardian.DB do
use Ecto.Migration
def change do
create table(:guardian_tokens, primary_key: false) do
add(:jti, :string, primary_key: true)
add(:aud, :string, primary_key: true)
add(:typ, :string)
add(:iss, :string)
add(:sub, :string)
add(... | 23.333333 | 57 | 0.614286 |
93bc52094d3588e6129bcf391bc7b0899b7d87be | 25,441 | ex | Elixir | dict.ex | mimicry-tech/openapi_validator | a3207e6bc0ba588493747efe21acbd1730d18ba8 | [
"Apache-2.0"
] | 3 | 2021-07-13T21:20:14.000Z | 2022-01-09T07:59:58.000Z | dict.ex | mimicry-tech/openapi_validator | a3207e6bc0ba588493747efe21acbd1730d18ba8 | [
"Apache-2.0"
] | 11 | 2022-01-09T07:45:30.000Z | 2022-02-23T22:27:43.000Z | dict.ex | mimicry-tech/openapi_validator | a3207e6bc0ba588493747efe21acbd1730d18ba8 | [
"Apache-2.0"
] | null | null | null | %{"$schema" => "http://json-schema.org/draft-04/schema#", "additionalProperties" => false, "definitions" => %{"Encoding" => %{"additionalProperties" => false, "properties" => %{"allowReserved" => %{"default" => false, "type" => "boolean"}, "contentType" => %{"type" => "string"}, "explode" => %{"type" => "boolean"}, "he... | 25,441 | 25,441 | 0.531347 |
93bc64ad79d1704c66c9d6876f9849b129f4d214 | 14,758 | exs | Elixir | test/exq_test.exs | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | 1,406 | 2015-01-16T03:00:32.000Z | 2022-03-28T11:38:22.000Z | test/exq_test.exs | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | 372 | 2015-01-08T05:15:11.000Z | 2022-03-18T18:05:34.000Z | test/exq_test.exs | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | 217 | 2015-02-01T20:21:36.000Z | 2022-01-28T16:19:55.000Z | defmodule ExqTest do
use ExUnit.Case
alias Exq.Redis.JobQueue
import ExqTestUtil
defmodule PerformWorker do
def perform do
send(:exqtest, {:worked})
end
end
defmodule PerformArgWorker do
def perform(arg) do
send(:exqtest, {:worked, arg})
end
end
defmodule SleepWorker do
... | 29.874494 | 92 | 0.646632 |
93bc6abddd2fdbd60448df9fbc4a55c881272849 | 1,702 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/floating_point_mean.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/floating_point_mean.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/floating_point_mean.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.372549 | 83 | 0.740893 |
93bcdcae4d46094d3dda82517f4cd323c0bf23ec | 474 | exs | Elixir | test/repositories/tags_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 432 | 2015-01-19T20:38:35.000Z | 2022-01-11T14:32:28.000Z | test/repositories/tags_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 183 | 2015-01-19T08:55:29.000Z | 2022-03-01T20:26:03.000Z | test/repositories/tags_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 189 | 2015-01-04T14:56:59.000Z | 2021-12-14T20:48:18.000Z | defmodule Tentacat.Repositories.TagsTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Tags
doctest Tentacat.Repositories.Tags
@client Tentacat.Client.new(%{access_token: "yourtokencomeshere"})
setup_all do
HTTPoison.start()
end
test... | 23.7 | 77 | 0.725738 |
93bce6796d837491b0385f8826d853d475a203e7 | 638 | ex | Elixir | lib/curator_confirmable/plug.ex | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | lib/curator_confirmable/plug.ex | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | lib/curator_confirmable/plug.ex | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | defmodule CuratorConfirmable.Plug do
@moduledoc """
"""
# import Plug.Conn
def init(opts \\ %{}) do
opts = Enum.into(opts, %{})
%{
key: Map.get(opts, :key, Curator.default_key),
}
end
def call(conn, opts) do
key = Map.get(opts, :key)
case Curator.PlugHelper.current_resource(con... | 22.785714 | 99 | 0.617555 |
93bd0fd13e0fff920b46539249dbbe8925fd491a | 51 | ex | Elixir | web/views/page_view.ex | knathan2/dot | 2e73d1339592e8d317d1b7c5acf777f86aeebe9d | [
"Apache-2.0"
] | null | null | null | web/views/page_view.ex | knathan2/dot | 2e73d1339592e8d317d1b7c5acf777f86aeebe9d | [
"Apache-2.0"
] | null | null | null | web/views/page_view.ex | knathan2/dot | 2e73d1339592e8d317d1b7c5acf777f86aeebe9d | [
"Apache-2.0"
] | null | null | null | defmodule Dot.PageView do
use Dot.Web, :view
end
| 12.75 | 25 | 0.745098 |
93bd18f9f5024c6fe4617e6b08877ca455910399 | 1,185 | ex | Elixir | elixir/phoenix_demo/lib/phoenix_demo_web/channels/user_socket.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/lib/phoenix_demo_web/channels/user_socket.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/lib/phoenix_demo_web/channels/user_socket.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule PhoenixDemoWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PhoenixDemoWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to veri... | 31.184211 | 86 | 0.706329 |
93bd4ef7d70de70c3614a82578c11388215984b2 | 680 | ex | Elixir | exercises/concept/stack-underflow/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/stack-underflow/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 1,938 | 2019-12-12T08:07:10.000Z | 2021-01-29T12:56:13.000Z | exercises/concept/stack-underflow/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 239 | 2019-12-12T14:09:08.000Z | 2022-03-18T00:04:07.000Z | defmodule RPNCalculator.Exception do
defmodule DivisionByZeroError do
defexception message: "division by zero occurred"
end
defmodule StackUnderflowError do
defexception message: "stack underflow occurred"
@impl true
def exception(value) do
error = %StackUnderflowError{}
case value ... | 28.333333 | 91 | 0.679412 |
93bd5e3adae7ae90c919c204c06b5cf3283c6cbd | 1,676 | ex | Elixir | lib/observables/zip.ex | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | 4 | 2018-04-16T20:43:37.000Z | 2019-07-18T21:50:49.000Z | lib/observables/zip.ex | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | null | null | null | lib/observables/zip.ex | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | 1 | 2021-03-18T18:37:11.000Z | 2021-03-18T18:37:11.000Z | defmodule Observables.Operator.Zip do
@moduledoc false
use Observables.GenObservable
def init([]) do
Logger.debug("Zip: #{inspect(self())}")
{:ok, {:left, [], :right, []}}
end
def handle_event(value, state) do
case {value, state} do
# No values at all, and got a left.
{{:left, vl}, {... | 32.862745 | 78 | 0.50358 |
93bd7274c61ca1201c5d3baedec29f204639ac9c | 1,453 | ex | Elixir | web/router.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | web/router.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | web/router.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | defmodule DrabTestApp.Router do
@moduledoc false
use DrabTestApp.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 ... | 32.288889 | 91 | 0.691672 |
93bd97118c94e2bf32c3dc94e4367fc08555039e | 1,175 | ex | Elixir | lib/date_range.ex | vfsoraki/ago-times | d46a47111f6c88611c233ff31f4570789b2f6e16 | [
"Apache-2.0"
] | null | null | null | lib/date_range.ex | vfsoraki/ago-times | d46a47111f6c88611c233ff31f4570789b2f6e16 | [
"Apache-2.0"
] | null | null | null | lib/date_range.ex | vfsoraki/ago-times | d46a47111f6c88611c233ff31f4570789b2f6e16 | [
"Apache-2.0"
] | null | null | null | defmodule DateRange do
@moduledoc """
A helper library to easily create relative times, like 2 days ago.
The result of functions is always a `%DateTime{}`.
"""
@opaque time_unit :: :seconds | :minutes | :hours | :days | :weeks
@spec ago(num :: integer, unit :: time_unit) :: %DateTime{}
@doc """
C... | 24.479167 | 77 | 0.631489 |
93bdc861a4fea4e29c5837b4f11f3c6229d83dab | 366 | ex | Elixir | lib/radiator_web/graphql/schema/middleware/require_authentication.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | lib/radiator_web/graphql/schema/middleware/require_authentication.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | lib/radiator_web/graphql/schema/middleware/require_authentication.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | defmodule RadiatorWeb.GraphQL.Schema.Middleware.RequireAuthentication do
@behaviour Absinthe.Middleware
def call(resolution, _) do
case resolution.context do
%{authenticated_user: _} ->
resolution
_ ->
resolution
|> Absinthe.Resolution.put_result({:error, "Authentication: N... | 24.4 | 96 | 0.693989 |
93be649b49357152a740e938b674478be65f9dc5 | 734 | ex | Elixir | lib/hound/helpers.ex | manukall/hound | 5a96b714b5ae0b64f9cbee3ee4955d209895b92e | [
"MIT"
] | null | null | null | lib/hound/helpers.ex | manukall/hound | 5a96b714b5ae0b64f9cbee3ee4955d209895b92e | [
"MIT"
] | null | null | null | lib/hound/helpers.ex | manukall/hound | 5a96b714b5ae0b64f9cbee3ee4955d209895b92e | [
"MIT"
] | null | null | null | defmodule Hound.Helpers do
@moduledoc false
defmacro __using__([]) do
quote do
import Hound
import Hound.Helpers.Cookie
import Hound.Helpers.Dialog
import Hound.Helpers.Element
import Hound.Helpers.Navigation
import Hound.Helpers.Orientation
import Hound.Helpers.Page
... | 20.388889 | 42 | 0.651226 |
93bea752ba530300862da5fb39b2debad64a9905 | 4,969 | exs | Elixir | test/blog_web/controllers/post_controller_test.exs | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | test/blog_web/controllers/post_controller_test.exs | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | 9 | 2021-08-13T02:21:40.000Z | 2021-08-24T05:02:19.000Z | test/blog_web/controllers/post_controller_test.exs | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | defmodule BlogWeb.PostControllerTest do
use BlogWeb.ConnCase
alias Blog.{Accounts, Posts}
@valid_post %{title: "Post 1", description: "posts 1"}
@updated_post %{title: "Post 1 - new", description: "posts 1"}
defp fixture(:user) do
{:ok, user} =
Accounts.create_user(%{
email: "itor isaias",... | 29.229412 | 96 | 0.609781 |
93beea82116efe07a5a64f3c099bf601efc94f71 | 1,189 | exs | Elixir | config/config.exs | gravityblast/matryoshka | f31da33b3ffab626db4bdeab84b2300a02780dc6 | [
"MIT"
] | 2 | 2019-03-03T20:32:55.000Z | 2019-05-14T11:46:56.000Z | config/config.exs | gravityblast/matryoshka | f31da33b3ffab626db4bdeab84b2300a02780dc6 | [
"MIT"
] | null | null | null | config/config.exs | gravityblast/matryoshka | f31da33b3ffab626db4bdeab84b2300a02780dc6 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 34.970588 | 73 | 0.753574 |
93bef5e0aa484e54f3bfda3e723717381db87dcf | 1,268 | ex | Elixir | lib/toy_robot/parser.ex | lowski/toy-robot | 107e5c68c1ba0813be9efb3949f6fde348aaa05b | [
"MIT"
] | null | null | null | lib/toy_robot/parser.ex | lowski/toy-robot | 107e5c68c1ba0813be9efb3949f6fde348aaa05b | [
"MIT"
] | null | null | null | lib/toy_robot/parser.ex | lowski/toy-robot | 107e5c68c1ba0813be9efb3949f6fde348aaa05b | [
"MIT"
] | null | null | null | defmodule ToyRobot.Parser do
@doc """
Parse the input to turn it into commands list
## Examples
iex> alias ToyRobot.Parser
ToyRobot.Parser
iex> input = ["PLACE 1,2,NORTH", "MOVE", "LEFT", "RIGHT", "UTURN", "REPORT"]
["PLACE 1,2,NORTH", "MOVE", "LEFT", "RIGHT", "UTURN", "REPORT"]
iex> Parser.... | 24.862745 | 80 | 0.566246 |
93bf4e84a14e653285f0eda17ce287b8f9fccf8a | 1,753 | exs | Elixir | app/mix.exs | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 14 | 2017-10-10T19:11:21.000Z | 2019-04-20T20:11:01.000Z | app/mix.exs | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 41 | 2017-10-08T03:07:20.000Z | 2018-10-15T12:47:34.000Z | app/mix.exs | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 7 | 2017-10-18T10:44:04.000Z | 2019-04-15T20:44:49.000Z | defmodule Rocdev.Mixfile do
use Mix.Project
def project do
[
app: :rocdev,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: de... | 26.969231 | 79 | 0.567598 |
93bf7ad4244db8012879d0c5fc4e39c32fb5eacd | 2,704 | exs | Elixir | home_page_local/config/prod.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/config/prod.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/config/prod.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# HomePageWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# D... | 34.227848 | 73 | 0.731139 |
93bf82f4f09898dfc909ca1d38552a09f68e2870 | 68 | exs | Elixir | test/test_helper.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | test/test_helper.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | test/test_helper.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Webapp.Repo, :manual)
| 22.666667 | 52 | 0.779412 |
93bf90028e1601910617ea0261c96563ef64457a | 7,520 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 59.68254 | 357 | 0.68883 |
93bffd69c86c3702489bd9517704f24b41f76717 | 4,560 | ex | Elixir | lib/panda_doc/request_builder.ex | fbettag/pandadoc.ex | 4f7542f8e549e4feeed8e6ea2f76b014ef647d5d | [
"MIT"
] | null | null | null | lib/panda_doc/request_builder.ex | fbettag/pandadoc.ex | 4f7542f8e549e4feeed8e6ea2f76b014ef647d5d | [
"MIT"
] | null | null | null | lib/panda_doc/request_builder.ex | fbettag/pandadoc.ex | 4f7542f8e549e4feeed8e6ea2f76b014ef647d5d | [
"MIT"
] | null | null | null | defmodule PandaDoc.RequestBuilder do
@moduledoc """
Helper functions for building Tesla requests
"""
@doc """
Specify the request method when building a request
## Parameters
- request (Map) - Collected request options
- m (atom) - Request method
## Returns
Map
"""
@spec method(map(), atom)... | 26.358382 | 91 | 0.628947 |
93bfff3811fa62a0e82b0158c33788d61011b1f1 | 1,016 | exs | Elixir | WorkingWithMultipleProcesses/14.3.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | 2 | 2015-11-14T21:35:01.000Z | 2017-07-12T07:09:40.000Z | WorkingWithMultipleProcesses/14.3.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | WorkingWithMultipleProcesses/14.3.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | defmodule LinkedMessage do
import :timer, only: [sleep: 1]
def sad_function(parent_pid) do
send parent_pid, "bye bye!"
exit(:boom)
end
def receive_messages do
receive do
msg ->
IO.puts "MESSAGE_RECEIVED: #{inspect msg}"
receive_messages
after 1000 ->
IO.puts "Nothing happened as far as I am c... | 27.459459 | 76 | 0.737205 |
93c0382d5de2b98beb281982e785938e47bc63a1 | 1,552 | ex | Elixir | apps/red_robin_web/lib/red_robin_web/views/error_helpers.ex | 3zcurdia/red_robin | a4aa6870d6bde05c95d375913311ecb392f7c44c | [
"MIT"
] | null | null | null | apps/red_robin_web/lib/red_robin_web/views/error_helpers.ex | 3zcurdia/red_robin | a4aa6870d6bde05c95d375913311ecb392f7c44c | [
"MIT"
] | null | null | null | apps/red_robin_web/lib/red_robin_web/views/error_helpers.ex | 3zcurdia/red_robin | a4aa6870d6bde05c95d375913311ecb392f7c44c | [
"MIT"
] | null | null | null | defmodule RedRobinWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag... | 32.333333 | 77 | 0.666237 |
93c04ea49a798e472cc046231051a924b50f793d | 12,326 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_row_in_batch_write_row_response.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_row_in_batch_write_row_response.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_row_in_batch_write_row_response.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStore.RowInBatchWriteRowResponse) do
@moduledoc false
(
defstruct(is_ok: nil, error: nil, consumed: nil, row: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, ... | 27.209713 | 97 | 0.455217 |
93c05c9f816a4e838c9f28806a7c83ad4e5f711d | 1,465 | exs | Elixir | test/doctor_schedule_web/controllers/api/session_controller_test.exs | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | test/doctor_schedule_web/controllers/api/session_controller_test.exs | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | test/doctor_schedule_web/controllers/api/session_controller_test.exs | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | defmodule DoctorScheduleWeb.Api.SessionControllerTest do
use DoctorScheduleWeb.ConnCase
import DoctorScheduleWeb.Auth.Guardian
import DoctorSchedule.Factory
alias DoctorSchedule.Accounts
setup %{conn: conn} do
{:ok, user} =
build(:user)
|> Accounts.create_user()
{:ok, token, _} = encod... | 23.629032 | 82 | 0.60273 |
93c06daf6c9850c2bac5f37bb7c76297e9f99806 | 1,829 | exs | Elixir | clients/dataproc/mix.exs | Doerge/elixir-google-api | 673cc7c78118684f969b8e2d62d03a273f04ad1b | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | Doerge/elixir-google-api | 673cc7c78118684f969b8e2d62d03a273f04ad1b | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | Doerge/elixir-google-api | 673cc7c78118684f969b8e2d62d03a273f04ad1b | [
"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... | 27.298507 | 103 | 0.653909 |
93c077a3484ebbbbeefaa7434acabbbd17a69096 | 42 | exs | Elixir | test/ke_test.exs | mantlecurve/kerala-election-2020 | b6c1c9efeea0c37e85cf27bb8fa83cbb8aa1987b | [
"MIT"
] | 1 | 2020-12-18T11:56:47.000Z | 2020-12-18T11:56:47.000Z | test/ke_test.exs | mantlecurve/kerala-election-2020 | b6c1c9efeea0c37e85cf27bb8fa83cbb8aa1987b | [
"MIT"
] | 1 | 2020-12-18T07:38:57.000Z | 2020-12-18T07:38:57.000Z | test/ke_test.exs | mantlecurve/kerala-election-2020 | b6c1c9efeea0c37e85cf27bb8fa83cbb8aa1987b | [
"MIT"
] | 1 | 2020-12-18T07:17:09.000Z | 2020-12-18T07:17:09.000Z | defmodule KeTest do
use ExUnit.Case
end
| 10.5 | 19 | 0.785714 |
93c0805e7260105dbe3b5e11dbe8f5c3ed5262dc | 568 | exs | Elixir | test/chat_web/views/error_view_test.exs | Zesky665/GradProject | dad0152de7be505338b1ddbbfcfa82fafe613b68 | [
"Unlicense"
] | 1 | 2017-09-05T18:43:38.000Z | 2017-09-05T18:43:38.000Z | test/chat_web/views/error_view_test.exs | reubenwainaina/phoenix-chat | 255aa474ccebf731db2a9361d62b45a0dd6063f7 | [
"MIT"
] | null | null | null | test/chat_web/views/error_view_test.exs | reubenwainaina/phoenix-chat | 255aa474ccebf731db2a9361d62b45a0dd6063f7 | [
"MIT"
] | 1 | 2019-03-31T10:59:53.000Z | 2019-03-31T10:59:53.000Z | defmodule ChatWeb.ErrorViewTest do
use ChatWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(ChatWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
... | 25.818182 | 66 | 0.676056 |
93c09428a75750cf780be171e5f5fa01f2d0e30f | 1,836 | exs | Elixir | test/ja_serializer/serializer_test.exs | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | test/ja_serializer/serializer_test.exs | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | test/ja_serializer/serializer_test.exs | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | defmodule JaSerializer.SerializerTest do
use ExUnit.Case
defmodule ArticleSerializer do
use JaSerializer
attributes [:title]
attributes [:body]
has_many :comments
end
defmodule ArticleView do
use JaSerializer
attributes [:title, :body]
has_many :comments
def attributes(article... | 24.48 | 79 | 0.666667 |
93c096c27ff5a6920ea01b5d048cb5e56b834004 | 136 | exs | Elixir | config/test.exs | rijavskii/ex_ari | 1fd5eabd9b4cb815e260867b0190a7fe635ee38a | [
"MIT"
] | 13 | 2020-04-17T16:48:00.000Z | 2022-03-25T19:16:51.000Z | config/test.exs | rijavskii/ex_ari | 1fd5eabd9b4cb815e260867b0190a7fe635ee38a | [
"MIT"
] | 1 | 2020-04-02T12:18:59.000Z | 2020-04-02T12:18:59.000Z | config/test.exs | rijavskii/ex_ari | 1fd5eabd9b4cb815e260867b0190a7fe635ee38a | [
"MIT"
] | 7 | 2020-04-28T19:45:50.000Z | 2022-03-25T21:42:03.000Z | use Mix.Config
config :ex_ari,
clients: %{
ari_test: %{
name: "test",
module: ARI.WebSocketTest.TestClient
}
}
| 13.6 | 42 | 0.580882 |
93c0c15a9a3f8e9f56e5d4be764278ad172bcc2f | 1,940 | ex | Elixir | lib/glimesh/payments/subscription.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | null | null | null | lib/glimesh/payments/subscription.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | null | null | null | lib/glimesh/payments/subscription.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | null | null | null | defmodule Glimesh.Payments.Subscription do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder,
only: [
:stripe_subscription_id,
:stripe_product_id,
:stripe_price_id,
:stripe_current_period_end,
:price,
... | 23.950617 | 77 | 0.636082 |
93c0e6ee7c8ca3b5957ce289e07f72e599dcb8d3 | 1,675 | exs | Elixir | test/crit_biz/view_models/setup/bulk_procedure_vm_4_insert_all_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/crit_biz/view_models/setup/bulk_procedure_vm_4_insert_all_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/crit_biz/view_models/setup/bulk_procedure_vm_4_insert_all_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule CritBiz.ViewModels.Setup.BulkProcedureVM.InsertAllTest do
use Crit.DataCase, async: true
alias CritBiz.ViewModels.Setup, as: VM
alias Crit.Schemas
setup do
procedure = Factory.build(:procedure,
name: "Embryo transfer",
frequency_id: @once_per_week_frequency_id,
species_id: @bovi... | 33.5 | 106 | 0.671045 |
93c0f6d02e4798650e3cb982eb7ddcfeeda7db62 | 300 | exs | Elixir | integration_test/cases/browser/attr_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 926 | 2016-03-28T17:01:54.000Z | 2019-11-05T11:59:58.000Z | integration_test/cases/browser/attr_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 377 | 2016-03-17T00:35:56.000Z | 2019-11-03T07:15:24.000Z | integration_test/cases/browser/attr_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 144 | 2016-03-29T15:28:28.000Z | 2019-10-31T00:48:42.000Z | defmodule Wallaby.Integration.Browser.AttrTest do
use Wallaby.Integration.SessionCase, async: true
test "can get the attributes of a query", %{session: session} do
class =
session
|> visit("/")
|> attr(Query.css("body"), "class")
assert class =~ "bootstrap"
end
end
| 23.076923 | 66 | 0.653333 |
93c0fed2e023976d7e4a3c28aaa33d1d060ce5a9 | 1,107 | ex | Elixir | testData/org/elixir_lang/parser_definition/anonymous_function_parsing_test_case/FnStabExpressionEnd.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/anonymous_function_parsing_test_case/FnStabExpressionEnd.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/anonymous_function_parsing_test_case/FnStabExpressionEnd.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | fn -> () end
fn -> function positional, key: value end
fn -> &one end
fn -> one \\ default end
fn -> one when key: value end
fn -> one when guard end
fn -> one :: type end
fn -> one | two end
fn -> one = two end
fn -> one or two end
fn -> one || two end
fn -> one and two end
fn -> one && two end
fn -> one != two end
fn... | 20.886792 | 48 | 0.592593 |
93c10c12b3aa1232ad49a1350e8b947cf85e63d6 | 1,170 | exs | Elixir | practical1/exercise1/test/exercise1_test.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | practical1/exercise1/test/exercise1_test.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | practical1/exercise1/test/exercise1_test.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | defmodule Exercise1Test do
use ExUnit.Case
# @tag :pending
test "reverses a given 'charlist'" do
assert Exercise1.reverse('abracadabra') == 'arbadacarba'
assert Exercise1.reverse('Panama') == 'amanaP'
end
# @tag :pending
test "replaces any lowercase character in a given 'charlist' by its correspondi... | 30 | 97 | 0.695726 |
93c155d50c99e7bbacc602537b46cb9a8f57d054 | 614 | ex | Elixir | lib/cli.ex | msoedov/mix-install | 06783319dfe15b6ceb29a6db115fab1dc777812c | [
"MIT"
] | 2 | 2016-02-07T17:07:11.000Z | 2018-07-22T20:04:06.000Z | lib/cli.ex | msoedov/mix-install | 06783319dfe15b6ceb29a6db115fab1dc777812c | [
"MIT"
] | null | null | null | lib/cli.ex | msoedov/mix-install | 06783319dfe15b6ceb29a6db115fab1dc777812c | [
"MIT"
] | 1 | 2018-07-22T20:04:07.000Z | 2018-07-22T20:04:07.000Z | defmodule Mix.Tasks.Install.CLI do
@moduledoc """
-g, --github: install package from github
-t, --test: test only
-d, --dev: development only
-h --help: print help
Usage:
mix install foo bar -t -d
mix install fizz -g
mix install bazz
"""
@options [t: :test, g: :github, d: ... | 19.1875 | 72 | 0.563518 |
93c15b9dc601b975b66df11de8840f6966a4b409 | 1,382 | exs | Elixir | .workshop/exercises/iex/exercise.exs | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | 10 | 2015-12-13T07:29:08.000Z | 2016-09-22T03:47:35.000Z | .workshop/exercises/iex/exercise.exs | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | 4 | 2015-12-02T12:12:14.000Z | 2016-01-11T07:33:24.000Z | .workshop/exercises/iex/exercise.exs | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | null | null | null | defmodule Workshop.Exercise.Iex do
use Workshop.Exercise
@title "IEx"
@weight 500
# Write an exercise description that make the user capable of solving the
# given `@task`.
@description """
In the exercise you will learn about the Elixir's interactive shell, and how
to find documentation.
IEx is El... | 30.711111 | 82 | 0.71563 |
93c17da14f8fa2c239c025c93c25b222161af296 | 1,905 | ex | Elixir | lib/metrics/collector.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | null | null | null | lib/metrics/collector.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | 1 | 2021-11-26T01:07:32.000Z | 2021-11-26T01:07:32.000Z | lib/metrics/collector.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | null | null | null | defmodule Lanyard.Metrics.Collector do
use Prometheus.Metric
@registry :lanyard_registry
def start do
Gauge.new(
name: :lanyard_connected_sessions,
registry: @registry,
labels: [],
help: "Currently connected sessions count."
)
Counter.new(
name: :lanyard_messages_outbo... | 20.934066 | 55 | 0.608924 |
93c1c5bd324e6dc25e8a67c38f15b6827a84ffc5 | 1,075 | exs | Elixir | test/nilsimsa_test.exs | philipbrown/elixir-nilsimsa | a5ea50607fbd1372c1a2a146da3ff1b20a44d6bc | [
"MIT"
] | 12 | 2021-07-16T03:41:12.000Z | 2022-01-28T07:58:20.000Z | test/nilsimsa_test.exs | philipbrown/elixir-nilsimsa | a5ea50607fbd1372c1a2a146da3ff1b20a44d6bc | [
"MIT"
] | null | null | null | test/nilsimsa_test.exs | philipbrown/elixir-nilsimsa | a5ea50607fbd1372c1a2a146da3ff1b20a44d6bc | [
"MIT"
] | 1 | 2021-07-25T22:01:42.000Z | 2021-07-25T22:01:42.000Z | defmodule NilsimsaTest do
use ExUnit.Case
doctest Nilsimsa
# Examples taken from:
# https://github.com/rholder/nilsimsa/blob/110b236de3505e4ee64d485f7499d4ce1cf34cc6/src/test/java/com/github/rholder/nilsimsa/NilsimsaHashTest.java
@a k: "abcdefgh",
v: "14c81180000000000308000000040420041890200013080140... | 30.714286 | 149 | 0.71814 |
93c20919f7b73d53f781b18f3c28372cffad963c | 3,766 | ex | Elixir | apps/forklift/lib/forklift/event/event_handler.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/forklift/lib/forklift/event/event_handler.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/forklift/lib/forklift/event/event_handler.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Forklift.Event.EventHandler do
@moduledoc false
use Brook.Event.Handler
alias SmartCity.Dataset
alias SmartCity.Ingestion
require Logger
import SmartCity.Event,
only: [
data_ingest_start: 0,
dataset_update: 0,
data_ingest_end: 0,
data_write_complete: 0,
error_da... | 29.421875 | 118 | 0.678704 |
93c258c97f8727df2421fe7d8646a05aaae13896 | 229 | ex | Elixir | apps/blunt_absinthe/test/support/update_person.ex | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt_absinthe/test/support/update_person.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt_absinthe/test/support/update_person.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.Absinthe.Test.UpdatePerson do
use Blunt.Command
alias Blunt.Absinthe.Test.ReadModel.Person
field :id, :binary_id
field :name, :string
field :gender, :enum, values: Person.genders(), required: false
end
| 25.444444 | 65 | 0.755459 |
93c26c4338936bf1afed9f53867fa3dfb8832449 | 9,201 | ex | Elixir | lib/gateway/client.ex | LeonardSSH/lanyard | 407bc5c7dfcfcaf28ee72a70dc8695c39980f87d | [
"MIT"
] | 323 | 2021-03-12T17:42:44.000Z | 2022-03-31T21:32:30.000Z | lib/gateway/client.ex | LeonardSSH/lanyard | 407bc5c7dfcfcaf28ee72a70dc8695c39980f87d | [
"MIT"
] | 56 | 2021-03-22T12:30:36.000Z | 2022-03-25T17:56:01.000Z | lib/gateway/client.ex | LeonardSSH/lanyard | 407bc5c7dfcfcaf28ee72a70dc8695c39980f87d | [
"MIT"
] | 113 | 2021-03-13T17:30:36.000Z | 2022-03-29T13:19:24.000Z | defmodule Lanyard.Gateway.Client do
# a lot of functionality here is taken from: https://github.com/rmcafee/discord_ex/blob/master/lib/discord_ex/client/client.ex
require Logger
alias Lanyard.Gateway.Heartbeat
import Lanyard.Gateway.Utility
@behaviour :websocket_client
def opcodes do
%{
:dispa... | 29.490385 | 128 | 0.649712 |
93c2869563a1b14563c0325f70599114ad36f3f2 | 679 | ex | Elixir | lib/altstatus/admission/batch.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 1 | 2020-01-20T18:17:59.000Z | 2020-01-20T18:17:59.000Z | lib/altstatus/admission/batch.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | null | null | null | lib/altstatus/admission/batch.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 2 | 2018-09-09T08:05:24.000Z | 2018-09-09T08:35:18.000Z | defmodule Altstatus.Admission.Batch do
use Ecto.Schema
import Ecto.Changeset
schema "batches" do
field :name, :string
field :slug, :string
timestamps()
end
@doc false
def changeset(batch, attrs) do
batch
|> cast(attrs, [:name, :slug])
|> validate_required([:name])
|> unique_c... | 17.868421 | 55 | 0.612666 |
93c2b6fdc87409f9cb499dfb6301a2852d8af6ab | 660 | ex | Elixir | lib/doctor_schedule_web/controllers/fallback_controller.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | lib/doctor_schedule_web/controllers/fallback_controller.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | lib/doctor_schedule_web/controllers/fallback_controller.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorScheduleWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use DoctorScheduleWeb, :controller
# This clause handles errors returned by Ecto's insert/update/delete.
... | 28.695652 | 72 | 0.715152 |
93c2f2e739c6aa5422ab08ea748c79ea853cc771 | 3,105 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/binding.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/binding.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/binding.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... | 57.5 | 1,058 | 0.732367 |
93c2fb3ffb72e1f546334e7b665ddccb9871ebf0 | 2,036 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.357143 | 158 | 0.70776 |
93c329478b6eb37d8152942af3e494dc1c0c66da | 3,144 | exs | Elixir | apps/artemis/test/artemis/contexts/key_value/create_or_update_key_value_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/test/artemis/contexts/key_value/create_or_update_key_value_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/test/artemis/contexts/key_value/create_or_update_key_value_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.CreateOrUpdateKeyValueTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.CreateOrUpdateKeyValue
alias Artemis.KeyValue
describe "call!" do
test "returns error when params are empty" do
assert_raise Artemis.Context.Error, fn ->
CreateOrUpdateKeyValue.call... | 33.446809 | 96 | 0.684796 |
93c33b943079bb5c2ae648d761000a670ff6b0d7 | 1,744 | exs | Elixir | config/config.exs | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | config/config.exs | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | config/config.exs | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :metro_cdmx_api,
ecto_repos: [MetroCdmxApi.R... | 32.90566 | 117 | 0.739679 |
93c33e2a951c1ee524013f9ced10bd8c2a2927fe | 1,055 | exs | Elixir | rockelivery/test/rockelivery/accounts_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/test/rockelivery/accounts_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/test/rockelivery/accounts_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule Rockelivery.AccountsTest do
use Rockelivery.DataCase, async: true
import Mox
import Rockelivery.Factory
alias Rockelivery.Error
alias Rockelivery.Accounts
alias Rockelivery.Accounts.User
alias Rockelivery.ViaCep.ClientMock
describe "register_user/1" do
test "should return a user when al... | 27.763158 | 96 | 0.662559 |
93c34038b6b0cf54889260bdf9c9cacd886a0ed7 | 33,172 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 64.286822 | 720 | 0.718467 |
93c36c154dd2b8e351852f35992dab31637205b3 | 4,868 | ex | Elixir | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/dynamic_link_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/dynamic_link_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/dynamic_link_info.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... | 68.56338 | 346 | 0.753698 |
93c38c3b6d38db83b10ef432cbf7374ee6308247 | 1,356 | ex | Elixir | lib/test.ex | doorgan/credo_fixes | e64869bbd53644bb11480f925540cf75c73432af | [
"Apache-2.0"
] | null | null | null | lib/test.ex | doorgan/credo_fixes | e64869bbd53644bb11480f925540cf75c73432af | [
"Apache-2.0"
] | null | null | null | lib/test.ex | doorgan/credo_fixes | e64869bbd53644bb11480f925540cf75c73432af | [
"Apache-2.0"
] | null | null | null | defmodule CredoFixes.Test do
@moduledoc """
Helpers to test fixes
"""
@type fix_case :: %{
name: String.t(),
original: String.t(),
expected: String.t()
}
@doc """
Generates test cases for a fix module from a list of fix cases.
A fix case is a map with `:name`, `:or... | 28.851064 | 79 | 0.644543 |
93c3aa7644af5b78edf07a45279fcb21bab6e181 | 271 | exs | Elixir | config/test.exs | esl/buildex_poller | dd535ea5cb903a0a476b5310e7d9127672206b08 | [
"Apache-2.0"
] | 4 | 2019-04-06T21:36:13.000Z | 2021-03-11T23:23:30.000Z | config/test.exs | esl/buildex_poller | dd535ea5cb903a0a476b5310e7d9127672206b08 | [
"Apache-2.0"
] | 1 | 2019-01-29T20:02:20.000Z | 2019-01-30T09:22:12.000Z | config/test.exs | esl/buildex_poller | dd535ea5cb903a0a476b5310e7d9127672206b08 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:27:11.000Z | 2022-03-06T10:20:25.000Z | use Mix.Config
config :logger, level: :warn
config :buildex_poller, :db_name, "test.tab"
# https://github.com/pma/amqp/wiki/Upgrade-from-0.X-to-1.0#lager
config :lager, handlers: [level: :critical]
config :buildex_poller, :database, Buildex.Common.Services.FakeDatabase
| 33.875 | 71 | 0.763838 |
93c3ad05cb95051d1165632cc1f9b24391322d87 | 346 | ex | Elixir | lib/grax/application.ex | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | 17 | 2021-01-06T12:11:28.000Z | 2021-05-26T00:39:37.000Z | lib/grax/application.ex | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | lib/grax/application.ex | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | defmodule Grax.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
Grax.Id.Counter.Supervisor,
{Registry, keys: :unique, name: Grax.Id.Counter.registry()}
]
opts = [strategy: :one_for_one, name: Grax.Supervisor]
Supervisor.start_link(... | 20.352941 | 65 | 0.679191 |
93c3f33eeb0dc8e7100a72dcc1d9a05afd81f646 | 1,612 | ex | Elixir | lib/basic_web/live/delivery_live/form_component.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | lib/basic_web/live/delivery_live/form_component.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | lib/basic_web/live/delivery_live/form_component.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule BasicWeb.DeliveryLive.FormComponent do
use BasicWeb, :live_component
alias Basic.Deliveries
@impl true
def update(%{delivery: delivery} = assigns, socket) do
changeset = Deliveries.change_delivery(delivery)
{:ok,
socket
|> assign(assigns)
|> assign(:changeset, changeset)}
e... | 28.785714 | 80 | 0.663772 |
93c3fe20de6b9aa34da5735d14074ee5ec159511 | 1,743 | exs | Elixir | phoenix/config/dev.exs | MilesChou/ironman2020-sample | 0d0c22fd744cd9605eb5b95668dc00a7bbec7a57 | [
"MIT"
] | null | null | null | phoenix/config/dev.exs | MilesChou/ironman2020-sample | 0d0c22fd744cd9605eb5b95668dc00a7bbec7a57 | [
"MIT"
] | null | null | null | phoenix/config/dev.exs | MilesChou/ironman2020-sample | 0d0c22fd744cd9605eb5b95668dc00a7bbec7a57 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :ironman, IronmanWeb.Endpoint,
http: [port: 4000... | 29.05 | 68 | 0.701664 |
93c3ffc9f24b52e3521f2eb2573019ef57791f83 | 1,714 | exs | Elixir | config/config.exs | hyperserve/portfolio | 5a144c33ad0d26ec188da07f8cdece05cd821ed7 | [
"MIT"
] | 1 | 2022-03-18T10:57:04.000Z | 2022-03-18T10:57:04.000Z | config/config.exs | hyperserve/portfolio | 5a144c33ad0d26ec188da07f8cdece05cd821ed7 | [
"MIT"
] | null | null | null | config/config.exs | hyperserve/portfolio | 5a144c33ad0d26ec188da07f8cdece05cd821ed7 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :portfolio,
ecto_repos: [Portfolio.Repo]
# ... | 32.339623 | 117 | 0.734539 |
93c425cd62012d69afd18dde3d3a1500a2d5f122 | 1,500 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_get_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_get_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_get_policy_request.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... | 31.914894 | 121 | 0.748667 |
93c4288260eca508407b97cbc4182e8f0302b19c | 1,479 | ex | Elixir | lib/basic_web/live/item_live/form_component.ex | naritomo08/communitex | 21d27b6fa497cfd28fab03e36593eb530268efe6 | [
"Apache-2.0"
] | 1 | 2022-03-06T09:24:41.000Z | 2022-03-06T09:24:41.000Z | lib/basic_web/live/item_live/form_component.ex | naritomo08/communitex | 21d27b6fa497cfd28fab03e36593eb530268efe6 | [
"Apache-2.0"
] | null | null | null | lib/basic_web/live/item_live/form_component.ex | naritomo08/communitex | 21d27b6fa497cfd28fab03e36593eb530268efe6 | [
"Apache-2.0"
] | null | null | null | defmodule BasicWeb.ItemLive.FormComponent do
use BasicWeb, :live_component
alias Basic.Items
@impl true
def update(%{item: item} = assigns, socket) do
changeset = Items.change_item(item)
{:ok,
socket
|> assign(assigns)
|> assign(:changeset, changeset)}
end
@impl true
def handle_... | 26.410714 | 67 | 0.633536 |
93c455890c769982fbd8509ef276ffbca857ecd0 | 7,107 | ex | Elixir | lib/grizzly/zwave/commands/alarm_report.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/commands/alarm_report.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/commands/alarm_report.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.ZWave.Commands.AlarmReport do
@moduledoc """
This command notifies the application of the alarm state (v1, v2) or the notification state (v8).
Params:
* `:type` - the specific alarm type being reported - this different for
each application, see device user manual for more details (re... | 33.842857 | 99 | 0.659772 |
93c45855cf070f3d1b0431307f2c8614bb98d02d | 501 | ex | Elixir | lib/mail_slurp_api/model/inbox_ruleset_test_options.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/inbox_ruleset_test_options.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/inbox_ruleset_test_options.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-03-16T18:55:56.000Z | 2021-03-16T18:55:56.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.InboxRulesetTestOptions do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"testTarget"
]
@type t :: ... | 19.269231 | 91 | 0.706587 |
93c45ab5887595e0032214b87d71ee637bab56cd | 1,918 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_visibility.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_visibility.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_visibility.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... | 35.518519 | 144 | 0.732013 |
93c4682c130d521f90cf7e4d70c33631d411a992 | 1,437 | exs | Elixir | rel/config.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | rel/config.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | rel/config.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# Thi... | 31.23913 | 82 | 0.725818 |
93c47cae8e3302785abf74de2e584fa2d4553343 | 1,492 | ex | Elixir | clients/webmaster/lib/google_api/webmaster/v3/model/api_data_row.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/model/api_data_row.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/model/api_data_row.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 27.62963 | 77 | 0.714477 |
93c49d131ceb8e3f363fc6792e4578c5d72b9d2b | 16,413 | ex | Elixir | lib/elixir/lib/gen_server.ex | jw2013/elixir | ebc5afed90576a16c4f6e22d68222413db8358cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_server.ex | jw2013/elixir | ebc5afed90576a16c4f6e22d68222413db8358cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_server.ex | jw2013/elixir | ebc5afed90576a16c4f6e22d68222413db8358cc | [
"Apache-2.0"
] | null | null | null | defmodule GenServer do
@moduledoc """
A behaviour module for implementing the server of a client-server relation.
A GenServer is a process as any other Elixir process and it can be used
to keep state, execute code asynchronously and so on. The advantage of using
a generic server process (GenServer) implement... | 33.564417 | 90 | 0.669835 |
93c4c65136c3db251b3a41ef8902579a58abaea6 | 1,850 | ex | Elixir | lib/events_tools/comments/comments.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | lib/events_tools/comments/comments.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | lib/events_tools/comments/comments.ex | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityTools.Comments do
@moduledoc """
The boundary for the Comments system.
"""
import Ecto.Query, warn: false
alias CommunityTools.Repo
alias CommunityTools.Comments.Comment
@doc """
Returns the list of comments.
## Examples
iex> list_comments()
[%Comment{}, ...]
"""... | 17.619048 | 62 | 0.608108 |
93c52990ccd94e2c23872d8975410e98787dafd4 | 1,567 | exs | Elixir | test/norm/contract_test.exs | blackbox-solutions/norm | 12ea8e191b48b58a5a92f7e4ae92084a4ccd8669 | [
"MIT"
] | 1 | 2019-12-27T18:28:14.000Z | 2019-12-27T18:28:14.000Z | test/norm/contract_test.exs | wojtekmach/norm | 651266a07e947d1057d31744e9eab459dcc4afe7 | [
"MIT"
] | 1 | 2020-10-01T22:40:59.000Z | 2020-10-01T22:40:59.000Z | test/norm/contract_test.exs | NarrativeApp/norm | a66621c8a31d57370d56c07dec5bc035dc7f3c75 | [
"MIT"
] | 1 | 2021-03-02T10:49:33.000Z | 2021-03-02T10:49:33.000Z | defmodule Norm.ContractTest do
use ExUnit.Case, async: true
test "success" do
defmodule Success do
use Norm
@contract foo(n :: spec(is_integer())) :: spec(is_integer())
def foo(n), do: n
end
assert Success.foo(42) == 42
end
test "arg mismatch" do
defmodule ArgMismatch do
... | 21.465753 | 87 | 0.588385 |
93c5332703b14f8616b17262989176c9aa412058 | 1,521 | exs | Elixir | test/extracker/router_test.exs | Cantido/ex_tracker | 32f5785a39b5da209e2a4564f6e004479283fc1e | [
"MIT"
] | 1 | 2021-11-23T04:29:37.000Z | 2021-11-23T04:29:37.000Z | test/extracker/router_test.exs | Cantido/ex_tracker | 32f5785a39b5da209e2a4564f6e004479283fc1e | [
"MIT"
] | 6 | 2020-11-10T03:44:44.000Z | 2022-02-28T11:05:39.000Z | test/extracker/router_test.exs | Cantido/ex_tracker | 32f5785a39b5da209e2a4564f6e004479283fc1e | [
"MIT"
] | 1 | 2020-01-08T16:23:42.000Z | 2020-01-08T16:23:42.000Z | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule Extracker.RouterTest do
use ExUnit.Case, async: true
use Plug.Test
setup_all do
Extracker.set_interval(120)
end
describe "announce" do
test "returns an empty response on the first announce" do
info_hash = :... | 21.422535 | 61 | 0.587771 |
93c53971fc59c75f018c4aaca7419f8a70e0a090 | 205 | exs | Elixir | priv/repo/migrations/20211104161120_resource_gating_index.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | priv/repo/migrations/20211104161120_resource_gating_index.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | priv/repo/migrations/20211104161120_resource_gating_index.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Repo.Migrations.ResourceGatingIndex do
use Ecto.Migration
def change do
alter table(:sections) do
add :resource_gating_index, :map, default: %{}, null: false
end
end
end
| 20.5 | 65 | 0.712195 |
93c53f2d4ff9170b06ac68bc6b8569155e1f2c66 | 999 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/verification_ip_flow_parameters.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/verification_ip_flow_parameters.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/verification_ip_flow_parameters.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.VerificationIpFlowParameters do
@moduledoc """
Parameters that define the IP flow to be verified.
"... | 24.975 | 101 | 0.677678 |
93c54d7db42f38c944e94c238dda0f811eed886c | 423 | ex | Elixir | lib/live_view_demo/code_breaker/solution.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | lib/live_view_demo/code_breaker/solution.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | lib/live_view_demo/code_breaker/solution.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | defmodule LiveViewDemo.CodeBreaker.Solution do
use Ecto.Schema
import Ecto.Changeset
schema "games" do
field :exact, :integer
field :partial, :integer
field :solution, :string
field :user_uid, :string
timestamps()
end
@doc false
def changeset(game, attrs) do
game
|> cast(attrs... | 20.142857 | 57 | 0.673759 |
93c55ed4fc1b85254c2498ff84227cf82a67d2e9 | 2,116 | ex | Elixir | lib/hl7/2.5.1/segments/in1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/in1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/in1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.Segments.IN1 do
@moduledoc false
require Logger
alias HL7.V2_5_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_in1: nil,
insurance_plan_id: DataTypes.Ce,
insurance_company_id: DataTypes.Cx,
insurance_company_name: DataTypes.Xon,
insura... | 32.553846 | 53 | 0.712665 |
93c56d2eb0f74c6e929c543c9797e809a7039c4d | 34,123 | ex | Elixir | lib/ash/engine/request.ex | mhussa/ash | 983a711837e4091d49a2ebff8010827ca2e8c889 | [
"MIT"
] | null | null | null | lib/ash/engine/request.ex | mhussa/ash | 983a711837e4091d49a2ebff8010827ca2e8c889 | [
"MIT"
] | null | null | null | lib/ash/engine/request.ex | mhussa/ash | 983a711837e4091d49a2ebff8010827ca2e8c889 | [
"MIT"
] | null | null | null | defmodule Ash.Engine.Request do
@moduledoc """
Represents an individual request to be processed by the engine.
See `new/1` for more information
"""
alias Ash.Error.Forbidden.MustPassStrictCheck
alias Ash.Error.Framework.AssumptionFailed
alias Ash.Error.Invalid.{DuplicatedPath, ImpossiblePath}
require... | 30.385574 | 161 | 0.614161 |
93c58c7ee2a576a4632dfeb0ed34fbe35bbf8586 | 2,194 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_pool_aggregated_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/target_pool_aggregated_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/target_pool_aggregated_list_warning.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... | 41.396226 | 251 | 0.728806 |
93c5a98115c31db648536513d9e7362f8ccaf908 | 938 | ex | Elixir | elixirpay/lib/elixirpay/accounts/transaction.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | elixirpay/lib/elixirpay/accounts/transaction.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | elixirpay/lib/elixirpay/accounts/transaction.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | defmodule Elixirpay.Accounts.Transaction do
alias Ecto.Multi
alias Elixirpay.Accounts.Operation
alias Elixirpay.Accounts.Transactions.Response, as: TransactionResponse
alias Elixirpay.Repo
def call(%{"from" => from_id, "to" => to_id, "value" => value}) do
withdraw_params = build_params(from_id, value)
... | 31.266667 | 81 | 0.688699 |
93c5ba16cdd9b6d59e0f789995a274deea43aac1 | 718 | ex | Elixir | lib/example_16_web/gettext.ex | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | lib/example_16_web/gettext.ex | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | lib/example_16_web/gettext.ex | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | defmodule Example16Web.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Example16Web.Gettext
# Simple translation
gettext("Here ... | 28.72 | 72 | 0.681058 |
93c5e822b939310e15e49c9f8e2979b46bd9f458 | 199 | ex | Elixir | lib/battle_city/environment/brick_wall.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | lib/battle_city/environment/brick_wall.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | 38 | 2020-12-17T12:40:44.000Z | 2022-03-31T02:05:59.000Z | lib/battle_city/environment/brick_wall.ex | clszzyh/battle_city | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | defmodule BattleCity.Environment.BrickWall do
@moduledoc false
use BattleCity.Environment, solid?: true, enter?: false
@impl true
def handle_init(map), do: Environment.handle_init(map)
end
| 22.111111 | 57 | 0.768844 |
93c5f85768eceda88c9d94b0b65534e75dcdb7d0 | 7,364 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.756757 | 336 | 0.685904 |
93c60c007387f344e259661af5604fa675237eca | 425 | ex | Elixir | lib/flux/file.ex | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | 1 | 2021-10-05T02:22:22.000Z | 2021-10-05T02:22:22.000Z | lib/flux/file.ex | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | lib/flux/file.ex | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | defmodule Flux.File do
def read_file(file, offset \\ 0, length \\ :all)
def read_file(file, _, :all) do
with {:ok, content} <- File.read(file) do
content
else
_ -> :error
end
end
def read_file(file, offset, length) do
with {:ok, pid} <- File.open(file, [:binary]),
{:ok, co... | 20.238095 | 62 | 0.567059 |
93c61b63e3e16efccda1d38909e064394f99d857 | 3,769 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.829545 | 160 | 0.713717 |
93c629457e3b3811a7fde36d9dd6dc07d0a0a0a0 | 2,250 | exs | Elixir | test/copy_me/problems/problems_test.exs | csfalcione/open-submissions-api | b7af153ebe9c1a9bd487f7fc30a25007bdf2b9c3 | [
"MIT"
] | 7 | 2019-02-11T14:31:24.000Z | 2021-12-28T08:15:00.000Z | test/copy_me/problems/problems_test.exs | tblount/open-submissions-api | fb7395175e8079a659bc65ff7c5a7f1f4fc4b422 | [
"MIT"
] | null | null | null | test/copy_me/problems/problems_test.exs | tblount/open-submissions-api | fb7395175e8079a659bc65ff7c5a7f1f4fc4b422 | [
"MIT"
] | 2 | 2019-02-11T14:31:37.000Z | 2021-12-28T08:15:01.000Z | defmodule CopyMe.ProblemsTest do
use CopyMe.DataCase
alias CopyMe.Problems
describe "problems" do
alias CopyMe.Problems.Problem
@valid_attrs %{description: "some description", name: "some name"}
@update_attrs %{description: "some updated description", name: "some updated name"}
@invalid_attrs %... | 33.58209 | 91 | 0.686667 |
93c6590a39ae26ffcb427882a379c4b73dde41fc | 1,675 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_timing.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_timing.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_timing.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... | 33.5 | 148 | 0.74806 |
93c6831abe0812a7538674fe7065c6aecb37813f | 1,745 | ex | Elixir | chromoid_link/lib/chromoid/config_wizard.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_link/lib/chromoid/config_wizard.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_link/lib/chromoid/config_wizard.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.ConfigWizard do
use GenServer
alias Chromoid.Config
def start_link(args) do
GenServer.start_link(__MODULE__, args, name: __MODULE__)
end
def init(_args) do
if should_start_wizard?() do
args = [
ifname: "wlan0",
device_info: get_info()
]
VintageNe... | 24.577465 | 127 | 0.618338 |
93c6fbef1218a792f927623e5d3e89fccd5a4479 | 3,175 | exs | Elixir | test/xema/use/combi_test.exs | xadhoom/xema | 267fbdbdd30c3e9a99542141d3959dd6cd7f5708 | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/xema/use/combi_test.exs | xadhoom/xema | 267fbdbdd30c3e9a99542141d3959dd6cd7f5708 | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/xema/use/combi_test.exs | xadhoom/xema | 267fbdbdd30c3e9a99542141d3959dd6cd7f5708 | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.Use.CombiTest do
use ExUnit.Case, async: true
alias Xema.Builder
describe "any_of schema:" do
defmodule MySchema.Any do
use Xema
xema do
any_of [
list(items: integer(minimum: 1, maximum: 66)),
list(items: integer(minimum: 33, maximum: 100))
]
... | 23.175182 | 63 | 0.582992 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.