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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f3fd213580e443deba3c2878f05991d3e82427c | 6,558 | ex | Elixir | lib/samly/sp_handler.ex | mjcloutier/samly | b93561032804f09dfe491483de925104d679d113 | [
"MIT"
] | null | null | null | lib/samly/sp_handler.ex | mjcloutier/samly | b93561032804f09dfe491483de925104d679d113 | [
"MIT"
] | null | null | null | lib/samly/sp_handler.ex | mjcloutier/samly | b93561032804f09dfe491483de925104d679d113 | [
"MIT"
] | null | null | null | defmodule Samly.SPHandler do
@moduledoc false
require Logger
import Plug.Conn
alias Plug.Conn
require Samly.Esaml
alias Samly.{Assertion, Esaml, Helper, IdpData, State}
import Samly.RouterUtil, only: [ensure_sp_uris_set: 2, send_saml_request: 5, redirect: 3]
def send_metadata(conn) do
%IdpData{} ... | 32.626866 | 97 | 0.653705 |
3f3ff34ca601a17c1b8910b77a99404297d78a6d | 2,086 | ex | Elixir | lib/parser.ex | Dmitriy7Smirnov/filesUploader | 92c92e22e30bdc0cce26447632ddafe162a663cf | [
"MIT"
] | null | null | null | lib/parser.ex | Dmitriy7Smirnov/filesUploader | 92c92e22e30bdc0cce26447632ddafe162a663cf | [
"MIT"
] | null | null | null | lib/parser.ex | Dmitriy7Smirnov/filesUploader | 92c92e22e30bdc0cce26447632ddafe162a663cf | [
"MIT"
] | null | null | null | defmodule Parser do
def read_headers(conn) do
case Plug.Conn.read_part_headers(conn) do
{:ok, headers, conn} ->
IO.puts("I'm in header's case")
IO.inspect(headers, label: "headers")
{:ok, header_value} = Utils.get_header("content-disposition", head... | 42.571429 | 91 | 0.50815 |
3f402bf1a2da2f88e48b928d986d3e493bb74480 | 280 | ex | Elixir | web/router.ex | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | web/router.ex | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | web/router.ex | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | defmodule Frizzle.Router do
use Frizzle.Web, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", Frizzle do
pipe_through :api
get "/stops/near-me", StopController, :near_me
get "/stops/with-routes", StopController, :with_routes
end
end
| 18.666667 | 58 | 0.678571 |
3f404ba404466bf88dd16b8eddc30fd3925b6a88 | 395 | exs | Elixir | priv/repo/migrations/20210528193648_create_actors.exs | rushsteve1/RateTheDub | 89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081 | [
"Apache-2.0"
] | 4 | 2021-04-26T21:50:45.000Z | 2021-04-27T18:37:51.000Z | priv/repo/migrations/20210528193648_create_actors.exs | rushsteve1/RateTheDub | 89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081 | [
"Apache-2.0"
] | 25 | 2021-04-26T21:39:21.000Z | 2021-09-07T13:59:14.000Z | priv/repo/migrations/20210528193648_create_actors.exs | rushsteve1/RateTheDub | 89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081 | [
"Apache-2.0"
] | null | null | null | defmodule RateTheDub.Repo.Migrations.CreateActors do
use Ecto.Migration
def change do
create table(:actors) do
add :mal_id, :integer, primary_key: true
add :name, :string
add :picture_url, :string
add :language, :string
add :url, :string
timestamps()
end
create uni... | 20.789474 | 52 | 0.648101 |
3f40567b71902986eaf6de497445d8854193d0cf | 6,248 | ex | Elixir | test/support/factory.ex | yerguden/papercups | 27e50f4cd232accc0f4e349172c1ce54e93a13a2 | [
"MIT"
] | null | null | null | test/support/factory.ex | yerguden/papercups | 27e50f4cd232accc0f4e349172c1ce54e93a13a2 | [
"MIT"
] | null | null | null | test/support/factory.ex | yerguden/papercups | 27e50f4cd232accc0f4e349172c1ce54e93a13a2 | [
"MIT"
] | null | null | null | defmodule ChatApi.Factory do
use ExMachina.Ecto, repo: ChatApi.Repo
# Factories
def account_factory do
%ChatApi.Accounts.Account{
company_name: sequence("some company_name"),
settings: %{}
}
end
def personal_api_key_factory do
%ChatApi.ApiKeys.PersonalApiKey{
account: build(:ac... | 25.092369 | 83 | 0.648047 |
3f40a17121b9f208307e83d89ebd276612bf5aa2 | 235 | exs | Elixir | config/prod.secret.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | config/prod.secret.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | config/prod.secret.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | use Mix.Config
# Configure your database
config :agile_pulse, AgilePulse.Repo,
adapter: Ecto.Adapters.Postgres,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
ssl: true
| 26.111111 | 68 | 0.744681 |
3f40b677aa7bb39da0ce2b7e17965cb8a8f33462 | 2,016 | exs | Elixir | config/prod.exs | konojunya/sample-crud-with-phoenix | 66e6e6aee0d3674c03374e8e76172df52b0bd0dc | [
"MIT"
] | null | null | null | config/prod.exs | konojunya/sample-crud-with-phoenix | 66e6e6aee0d3674c03374e8e76172df52b0bd0dc | [
"MIT"
] | null | null | null | config/prod.exs | konojunya/sample-crud-with-phoenix | 66e6e6aee0d3674c03374e8e76172df52b0bd0dc | [
"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... | 32 | 67 | 0.705853 |
3f40e8019071a0061b3d57a11e960e601e26becd | 1,167 | ex | Elixir | lib/quasar/web/channels/user_socket.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | 11 | 2017-07-10T10:13:42.000Z | 2021-12-19T16:46:20.000Z | lib/quasar/web/channels/user_socket.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | null | null | null | lib/quasar/web/channels/user_socket.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | 3 | 2017-07-18T20:03:34.000Z | 2019-07-28T13:32:49.000Z | defmodule Quasar.Web.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Quasar.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 and authe... | 30.710526 | 83 | 0.700943 |
3f4115d70e5ee5c4e38a1edeefcf04b94cb263d5 | 4,050 | ex | Elixir | lib/vintage_net/interfaces_monitor.ex | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/interfaces_monitor.ex | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/interfaces_monitor.ex | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.InterfacesMonitor do
@moduledoc """
Monitor available interfaces
Currently this works by polling the system for what interfaces are visible.
They may or may not be configured.
"""
use GenServer
alias VintageNet.InterfacesMonitor.Info
defmodule State do
@moduledoc false
... | 27.181208 | 94 | 0.669877 |
3f4156a0ad7714a4f5d85c91e6a66a4e7d6e262d | 9,511 | ex | Elixir | lib/x509/public_key.ex | ConnorRigby/x509 | 92ac8d56706459a198dac59763ebb2f67af208ba | [
"BSD-3-Clause"
] | 75 | 2018-07-02T12:00:57.000Z | 2022-02-07T14:47:56.000Z | lib/x509/public_key.ex | ConnorRigby/x509 | 92ac8d56706459a198dac59763ebb2f67af208ba | [
"BSD-3-Clause"
] | 30 | 2018-07-04T12:33:01.000Z | 2022-01-14T18:29:00.000Z | lib/x509/public_key.ex | ConnorRigby/x509 | 92ac8d56706459a198dac59763ebb2f67af208ba | [
"BSD-3-Clause"
] | 12 | 2018-09-21T04:34:02.000Z | 2022-02-28T20:11:13.000Z | defmodule X509.PublicKey do
import X509.ASN1
@moduledoc """
Functions for deriving, reading and writing RSA and EC public keys.
"""
@typedoc "RSA or EC public key"
@type t :: :public_key.rsa_public_key() | :public_key.ec_public_key()
@typedoc "SubjectPublicKeyInfo container"
@type spki ::
X... | 30.386581 | 97 | 0.676375 |
3f41651d1c0e254a97ef6bf429e76f402300c5d2 | 362 | ex | Elixir | apps/api_web/lib/api_web/views/line_view.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/views/line_view.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/views/line_view.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | 1 | 2019-09-09T20:40:13.000Z | 2019-09-09T20:40:13.000Z | defmodule ApiWeb.LineView do
use ApiWeb.Web, :api_view
location("/lines/:id")
# no cover
attributes([
:short_name,
:long_name,
:color,
:text_color,
:sort_order
])
has_many(
:routes,
type: :route,
serializer: ApiWeb.RouteView
)
def routes(%{id: line_id}, _conn) do
... | 14.48 | 38 | 0.627072 |
3f4169ae37fc2401a9512504d8e9492e60299a2b | 1,174 | ex | Elixir | web/channels/user_socket.ex | keichan34/hello_link | 0b5de0653f667b205e76b7a360650c05138b4d63 | [
"MIT"
] | 1 | 2015-12-31T00:36:09.000Z | 2015-12-31T00:36:09.000Z | web/channels/user_socket.ex | keichan34/hello_link | 0b5de0653f667b205e76b7a360650c05138b4d63 | [
"MIT"
] | 3 | 2016-01-01T04:11:40.000Z | 2016-01-01T04:12:37.000Z | web/channels/user_socket.ex | keichan34/hello_link | 0b5de0653f667b205e76b7a360650c05138b4d63 | [
"MIT"
] | null | null | null | defmodule HelloLink.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", HelloLink.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 and au... | 30.894737 | 83 | 0.702726 |
3f416d37fbbdd7846fc4bb3481d6196b3c0578c1 | 816 | ex | Elixir | lib/benchee/benchmark/collect/profile.ex | mayel/benchee | faf3c85c241a4c7eeaab8edfc85094bbbb10c44d | [
"MIT"
] | 636 | 2016-06-06T07:58:36.000Z | 2019-03-19T15:27:37.000Z | lib/benchee/benchmark/collect/profile.ex | mayel/benchee | faf3c85c241a4c7eeaab8edfc85094bbbb10c44d | [
"MIT"
] | 198 | 2016-06-18T08:19:15.000Z | 2019-03-19T15:32:37.000Z | lib/benchee/benchmark/collect/profile.ex | mayel/benchee | faf3c85c241a4c7eeaab8edfc85094bbbb10c44d | [
"MIT"
] | 43 | 2016-06-08T08:04:30.000Z | 2019-02-13T17:10:24.000Z | defmodule Benchee.Benchmark.Collect.Profile do
@moduledoc """
Collect/generate a profile.
The most unusual collector, as it doesn't return measured values really.
It still goes around and gathers data about a passed in function and so made sense
to put it into similar confines.
"""
@default_profiler Ben... | 37.090909 | 91 | 0.740196 |
3f416dc6a68d757e56bb029b171f818a205ec217 | 387 | ex | Elixir | test/support/generators/hci/event/inquiry_complete.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | test/support/generators/hci/event/inquiry_complete.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | test/support/generators/hci/event/inquiry_complete.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | defmodule Harald.Generators.HCI.Event.InquiryComplete do
@moduledoc """
StreamData generators for Inquiry Complete event.
Reference: Version 5.0, Vol 2, Part E, 7.7.1
"""
use ExUnitProperties
alias Harald.ErrorCode
@spec parameters :: no_return()
def parameters do
gen all {status, _} <- StreamDat... | 21.5 | 67 | 0.697674 |
3f417f245bae074a3ea2f24c99cfd2b85a55ac1c | 1,616 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/pop_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/gmail/lib/google_api/gmail/v1/model/pop_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/pop_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.32 | 141 | 0.722153 |
3f41a7364b19dc45499a9ebe70bb3ff2dec4ea65 | 31,535 | exs | Elixir | installer/test/phx_new_umbrella_test.exs | jwarwick/phoenix | 46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b | [
"MIT"
] | null | null | null | installer/test/phx_new_umbrella_test.exs | jwarwick/phoenix | 46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b | [
"MIT"
] | 1 | 2020-10-12T15:53:00.000Z | 2020-10-12T15:53:00.000Z | installer/test/phx_new_umbrella_test.exs | jwarwick/phoenix | 46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b | [
"MIT"
] | null | null | null | Code.require_file "mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phx.New.UmbrellaTest do
use ExUnit.Case, async: false
import MixHelper
@app "phx_umb"
setup config do
# The shell asks to install deps.
# We will politely say not.
decline_prompt()
{:ok, tmp_dir: to_string(config.test)}
end
... | 42.159091 | 132 | 0.627335 |
3f41baeb35e658633d3ff9bb716a66c14306e284 | 22,344 | ex | Elixir | lib/ex_unit/lib/ex_unit/doc_test.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/doc_test.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/doc_test.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule ExUnit.DocTest do
@moduledoc """
ExUnit.DocTest implements functionality similar to [Python's
doctest](https://docs.python.org/2/library/doctest.html).
It allows us to generate tests from the code
examples in a module/function/macro's documentation.
To do this, invoke the `doctest/1` macro from w... | 29.911647 | 102 | 0.629923 |
3f41d9000a46b685e0a376d0f5ec1255c31ef3d1 | 1,475 | exs | Elixir | test/test_helper.exs | kevin-hanselman/elixir_statemachine | 8bbd06ec093be77196ce8e30111734c8e6df5c8a | [
"MIT"
] | null | null | null | test/test_helper.exs | kevin-hanselman/elixir_statemachine | 8bbd06ec093be77196ce8e30111734c8e6df5c8a | [
"MIT"
] | null | null | null | test/test_helper.exs | kevin-hanselman/elixir_statemachine | 8bbd06ec093be77196ce8e30111734c8e6df5c8a | [
"MIT"
] | null | null | null | defmodule Microwave do
defstruct time: 0
use State
require Logger
defmodule Idle do
use State
def enter(data) do
Logger.info("light off")
data
end
def on_event({:key_press, num}, %Microwave{time: t}) when is_number(num) do
{nil, %Microwave{time: 10 * t + num}}
end
... | 17.771084 | 79 | 0.585085 |
3f41fe2a3796424360ec30cd517a13dbc8c4b853 | 725 | ex | Elixir | lib/membrane/element/callback_context/pad_removed.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/callback_context/pad_removed.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/callback_context/pad_removed.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.CallbackContext.PadRemoved do
@moduledoc """
Structure representing a context that is passed to the element when
when new pad added is created
"""
@behaviour Membrane.Element.CallbackContext
@type t :: %Membrane.Element.CallbackContext.PadRemoved{
playback_state: Membra... | 25.892857 | 69 | 0.664828 |
3f42251b2941944a7151d1d485d8fec5e9ea3740 | 57 | exs | Elixir | test/cap_test.exs | LangPham/cap | 12e7ae2a2eeb0dcb0c4d38014f3a3835ef7e6164 | [
"MIT"
] | 3 | 2021-08-17T08:38:24.000Z | 2022-03-26T11:37:28.000Z | test/cap_test.exs | LangPham/cap | 12e7ae2a2eeb0dcb0c4d38014f3a3835ef7e6164 | [
"MIT"
] | null | null | null | test/cap_test.exs | LangPham/cap | 12e7ae2a2eeb0dcb0c4d38014f3a3835ef7e6164 | [
"MIT"
] | null | null | null | defmodule CapTest do
use ExUnit.Case
doctest Cap
end
| 11.4 | 20 | 0.77193 |
3f423438b1afbf93501b8588ea780d2f7b90fbe4 | 1,774 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/custom_error_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/custom_error_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/custom_error_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.48 | 202 | 0.738444 |
3f429704b6b30bab0c6c060a0577f4e898c28804 | 282 | ex | Elixir | lib/arc/actions/head.ex | Byzanteam-Labs/ex_arc | 615923775a4b1c81170bd18302978cdf7cfd9b65 | [
"MIT"
] | null | null | null | lib/arc/actions/head.ex | Byzanteam-Labs/ex_arc | 615923775a4b1c81170bd18302978cdf7cfd9b65 | [
"MIT"
] | null | null | null | lib/arc/actions/head.ex | Byzanteam-Labs/ex_arc | 615923775a4b1c81170bd18302978cdf7cfd9b65 | [
"MIT"
] | 1 | 2019-01-24T09:20:46.000Z | 2019-01-24T09:20:46.000Z | defmodule Arc.Actions.Head do
defmacro __using__(_) do
quote do
def head(%Arc.OSSFileObject{} = file_object), do: Arc.Actions.Head.head(__MODULE__, file_object)
end
end
def head(definition, file_object) do
definition.__storage().head(file_object)
end
end
| 23.5 | 102 | 0.719858 |
3f42a8cffa33ed77c66b83e0a0b6cc45963a7283 | 1,230 | ex | Elixir | apps/ewallet/lib/ewallet/gates/update_email_gate.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/gates/update_email_gate.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/gates/update_email_gate.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.UpdateEmailGate do
@moduledoc """
Handles a user's email update.
"""
alias EWalletDB.{UpdateEmailRequest, User}
def update(user, email_address) do
with {:ok, email_address} <- validate_email_unused(email_address),
{_, _} <- UpdateEmailRequest.disable_all_for(user),
%Up... | 24.117647 | 95 | 0.631707 |
3f42ced975cdedf0ff81171ef13b71ac5e15f97d | 2,073 | exs | Elixir | mix.exs | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | null | null | null | mix.exs | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | 2 | 2020-07-21T20:53:13.000Z | 2020-07-21T20:54:15.000Z | mix.exs | Chlorophytus/eactivitypub | 469346b4d5cd7ad2b575c245ac50fd71b00c4864 | [
"Apache-2.0"
] | null | null | null | defmodule Exsemantica.MixProject do
use Mix.Project
def project do
[
app: :exsemantica,
version: "0.9.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.64 | 94 | 0.557164 |
3f42f21978e5b88d11ab7eb7005a038e611872fb | 3,455 | ex | Elixir | lib/solid/file_system.ex | bluzky/solid | 99942b7eef1c7e5941fd4bdfc5d9c711b6b71ce8 | [
"MIT"
] | null | null | null | lib/solid/file_system.ex | bluzky/solid | 99942b7eef1c7e5941fd4bdfc5d9c711b6b71ce8 | [
"MIT"
] | null | null | null | lib/solid/file_system.ex | bluzky/solid | 99942b7eef1c7e5941fd4bdfc5d9c711b6b71ce8 | [
"MIT"
] | null | null | null | defmodule Solid.FileSystem do
@moduledoc """
A Solid file system is a way to let your templates retrieve other templates for use with the include tag.
You can implement a module that retrieve templates from the database, from the file system using a different path structure, you can provide them as hard-coded in... | 31.697248 | 209 | 0.696382 |
3f42fe5e46d95823c331cea1fdcd61c180e5ce68 | 6,344 | ex | Elixir | lib/Discord/events.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | null | null | null | lib/Discord/events.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | null | null | null | lib/Discord/events.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | null | null | null | defmodule Alchemy.Discord.Events do
# This module contains the protocols
@moduledoc false
# for updating the cache based on the events received from discord.
# This module is then used by EventStage.Cache
alias Alchemy.{Channel, Channel.DMChannel, Guild.Emoji, Guild, Message, User, VoiceState}
alias Alchemy... | 30.354067 | 98 | 0.664092 |
3f4319b0d2987345418693266e939a7f0b37eccc | 848 | ex | Elixir | test/test_utils.ex | ogabriel/crawly | d57890282fa3ea37d966e26c9b2a462ac18e956e | [
"Apache-2.0"
] | null | null | null | test/test_utils.ex | ogabriel/crawly | d57890282fa3ea37d966e26c9b2a462ac18e956e | [
"Apache-2.0"
] | null | null | null | test/test_utils.ex | ogabriel/crawly | d57890282fa3ea37d966e26c9b2a462ac18e956e | [
"Apache-2.0"
] | null | null | null | defmodule TestUtils do
def stop_process(pid) do
:erlang.exit(pid, :shutdown)
wait_pid(pid)
:ok
end
def wait_pid(pid, timeout \\ 5_000) do
:erlang.monitor(:process, pid)
result =
receive do
{:DOWN, _, _, ^pid, reason} -> {:ok, reason}
after
timeout -> timeout
... | 17.666667 | 80 | 0.573113 |
3f435561b8222d421f69c4521de84cfd1e2cfd85 | 2,215 | ex | Elixir | lib/elixir_console_web.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 60 | 2019-11-23T15:54:24.000Z | 2022-03-24T15:56:32.000Z | lib/elixir_console_web.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 62 | 2019-11-11T00:44:38.000Z | 2022-01-10T13:12:48.000Z | lib/elixir_console_web.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 5 | 2020-01-15T00:44:30.000Z | 2021-05-25T05:06:27.000Z | defmodule ElixirConsoleWeb 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 ElixirConsoleWeb, :controller
use ElixirConsoleWeb, :view
The definitions below will be executed for every vi... | 23.315789 | 78 | 0.691196 |
3f437957fb5d1b4b1726afde151b3955f9e8d1b5 | 18,792 | exs | Elixir | lib/elixir/test/elixir/macro_test.exs | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/macro_test.exs | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/macro_test.exs | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule Macro.ExternalTest do
defmacro external do
line = 18
file = __ENV__.file
^line = __CALLER__.line
^file = __CALLER__.file
^line = Macro.Env.location(__CALLER__)[:line]
^file = Macro.Env.location(__CALLER__)[:file]
end
defmacro oror(le... | 32.4 | 102 | 0.579928 |
3f4383a754bab603e8aa1c36f75762ad81cd898d | 263 | ex | Elixir | tests/dirty_nif/NimlerWrapper.ex | fxn/nimler | 7038b2b6fcc41c013f835e929844ef648aa47d62 | [
"MIT"
] | 83 | 2019-10-20T12:04:33.000Z | 2022-03-17T01:04:26.000Z | tests/dirty_nif/NimlerWrapper.ex | fxn/nimler | 7038b2b6fcc41c013f835e929844ef648aa47d62 | [
"MIT"
] | 18 | 2019-10-12T17:56:25.000Z | 2022-03-21T03:05:02.000Z | tests/dirty_nif/NimlerWrapper.ex | fxn/nimler | 7038b2b6fcc41c013f835e929844ef648aa47d62 | [
"MIT"
] | 6 | 2020-02-21T14:00:30.000Z | 2021-11-06T04:18:38.000Z | defmodule NimlerDirtyNif do
@on_load :init
def init(), do: :erlang.load_nif(to_charlist(
Path.join(Path.dirname(__ENV__.file), 'nif')), 0)
def dirty_cpu(), do: exit(:nif_library_not_loaded)
def dirty_io(), do: exit(:nif_library_not_loaded)
end
| 23.909091 | 55 | 0.707224 |
3f4390d1c2124ebfd379954a3ad5b1bb32cc33e9 | 2,287 | ex | Elixir | lib/teslamate/mqtt/pubsub/vehicle_subscriber.ex | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | null | null | null | lib/teslamate/mqtt/pubsub/vehicle_subscriber.ex | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | null | null | null | lib/teslamate/mqtt/pubsub/vehicle_subscriber.ex | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | 1 | 2019-10-24T13:17:57.000Z | 2019-10-24T13:17:57.000Z | defmodule TeslaMate.Mqtt.PubSub.VehicleSubscriber do
use GenServer
require Logger
import Core.Dependency, only: [call: 3]
alias TeslaMate.Mqtt.Publisher
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.Vehicles
defstruct [:car_id, :last_summary, :deps, :namespace]
alias __MODULE__, as: State
... | 28.234568 | 97 | 0.658067 |
3f4395c29492d521f93ae13566289b2bf2525501 | 13,233 | exs | Elixir | lib/elixir/test/elixir/code_test.exs | howleysv/elixir | 40f0f680160fe6cf8622eaceff3f67d617aac050 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_test.exs | howleysv/elixir | 40f0f680160fe6cf8622eaceff3f67d617aac050 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_test.exs | howleysv/elixir | 40f0f680160fe6cf8622eaceff3f67d617aac050 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule CodeTest do
use ExUnit.Case, async: true
doctest Code
import PathHelpers
def genmodule(name) do
defmodule name do
Kernel.LexicalTracker.remote_references(__ENV__.lexical_tracker)
end
end
contents =
quote do
defmodule CodeTes... | 35.382353 | 266 | 0.597068 |
3f43ac82b871d3ac299eb370248540b8044a6dff | 517 | exs | Elixir | test/aba_test.exs | whitepaperclip/BigBrother | 9f81ab21c3197e2a60fe83ea367830f40e56f0cd | [
"MIT"
] | 1 | 2020-11-12T19:16:33.000Z | 2020-11-12T19:16:33.000Z | test/aba_test.exs | whitepaperclip/aba | 9f81ab21c3197e2a60fe83ea367830f40e56f0cd | [
"MIT"
] | null | null | null | test/aba_test.exs | whitepaperclip/aba | 9f81ab21c3197e2a60fe83ea367830f40e56f0cd | [
"MIT"
] | 1 | 2020-04-16T08:06:12.000Z | 2020-04-16T08:06:12.000Z | defmodule ABATest do
use ExUnit.Case
doctest ABA
test "validator passes" do
assert ABA.routing_number_valid?("111900659")
refute ABA.routing_number_valid?("111900658")
refute ABA.routing_number_valid?("11190065")
refute ABA.routing_number_valid?("11190065X")
refute ABA.routing_number_valid?("... | 32.3125 | 74 | 0.765957 |
3f44205acd985e76403a6ec41afd5207476daca2 | 2,413 | ex | Elixir | apps/authenticator/lib/sign_in/commands/inputs/authorization_code.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authenticator/lib/sign_in/commands/inputs/authorization_code.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authenticator/lib/sign_in/commands/inputs/authorization_code.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authenticator.SignIn.Commands.Inputs.AuthorizationCode do
@moduledoc """
Input schema to be used in Authorization Code flow.
"""
use Authenticator.Input
@typedoc "Authorization code flow input fields"
@type t :: %__MODULE__{
grant_type: String.t(),
code: String.t(),
... | 31.337662 | 99 | 0.682553 |
3f4440667e634a5485ef7f23ab469cc07e326266 | 1,619 | exs | Elixir | luhn/luhn_test.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | luhn/luhn_test.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | luhn/luhn_test.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("luhn.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule LuhnTest do
use ExUnit.Case
test "single digit strings can not be valid" do
refute Luhn.valid?("1")
end
# @tag :pending
test "A single zer... | 21.586667 | 66 | 0.671402 |
3f4449e6bb9c1bd58d4c8d890056a5642804cae8 | 336 | ex | Elixir | lib/harness.ex | NFIBrokerage/harness | e8cf599cc5a885de654a7f8fa93655b02f2ae4f3 | [
"Apache-2.0"
] | 2 | 2020-10-30T13:59:02.000Z | 2021-05-03T16:34:01.000Z | lib/harness.ex | NFIBrokerage/harness | e8cf599cc5a885de654a7f8fa93655b02f2ae4f3 | [
"Apache-2.0"
] | 9 | 2020-09-22T14:51:52.000Z | 2021-11-26T15:03:40.000Z | lib/harness.ex | NFIBrokerage/harness | e8cf599cc5a885de654a7f8fa93655b02f2ae4f3 | [
"Apache-2.0"
] | 1 | 2020-10-06T13:11:02.000Z | 2020-10-06T13:11:02.000Z | defmodule Harness do
@moduledoc """
harness the boilerplate!
"""
@moduledoc since: "0.1.0"
@version Mix.Project.config()[:version]
@doc since: "0.4.0"
def version, do: @version
@doc since: "0.1.0"
def ignore_patterns do
[
# ignore vim swapfiles
~r"\..*\.swp$",
~r"\.elixir_ls"
... | 16 | 41 | 0.577381 |
3f444e5d7fcc46a0e2e2835f08cc86794aa5a74a | 2,796 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/annotate_file_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/annotate_file_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/annotate_file_request.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... | 40.521739 | 157 | 0.712804 |
3f445f64ba72c0071db65918cd93891765bd828f | 1,575 | ex | Elixir | clients/books/lib/google_api/books/v1/model/category.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/category.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/category.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.882353 | 82 | 0.725714 |
3f449e11388b5e9bb7f1d7df65ef2ce7ccbd27cb | 181 | ex | Elixir | lib/ueberauth_token/application.ex | QuiqUpLTD/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 2 | 2018-05-15T19:38:27.000Z | 2020-09-10T11:15:54.000Z | lib/ueberauth_token/application.ex | quiqupltd/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 13 | 2018-05-15T10:09:52.000Z | 2018-09-24T10:59:49.000Z | lib/ueberauth_token/application.ex | quiqupltd/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 1 | 2018-05-13T23:34:19.000Z | 2018-05-13T23:34:19.000Z | defmodule UeberauthToken.Application do
@moduledoc false
use Application
alias UeberauthToken.Supervisor
def start(_type, _args) do
Supervisor.start_link([])
end
end
| 18.1 | 39 | 0.767956 |
3f44ce2e888595958c419b512be9a886b1ca8803 | 425 | ex | Elixir | lib/plausible/goals.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | 1 | 2020-04-08T16:39:00.000Z | 2020-04-08T16:39:00.000Z | lib/plausible/goals.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | lib/plausible/goals.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | defmodule Plausible.Goals do
use Plausible.Repo
alias Plausible.Goal
def create(site, params) do
params = Map.merge(params, %{"domain" => site.domain})
Goal.changeset(%Goal{}, params) |> Repo.insert
end
def for_site(domain) do
Repo.all(
from g in Goal,
where: g.domain == ^domain
... | 19.318182 | 64 | 0.628235 |
3f44f8357fb3f07e887dccd8e525567644686fbd | 1,872 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1/model/google_cloud_recommender_v1_impact.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1/model/google_cloud_recommender_v1_impact.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/recommender/lib/google_api/recommender/v1/model/google_cloud_recommender_v1_impact.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36 | 153 | 0.752671 |
3f450c6633dd6d0f5e712da431d43facea0a515a | 4,997 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/lineitems.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/lineitems.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/lineitems.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... | 44.221239 | 217 | 0.710826 |
3f454ecd263de01051dc733cea96f75d9470e69e | 699 | exs | Elixir | integration_test/temple_demo/lib/temple_demo_web/templates/post/index.html.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | integration_test/temple_demo/lib/temple_demo_web/templates/post/index.html.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | integration_test/temple_demo/lib/temple_demo_web/templates/post/index.html.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | h1 do: "Listing Posts"
table do
c Headers do
th do: "Title"
th do: "Body"
th do: "Published at"
th do: "Author"
th do: "BOB"
end
tbody do
for post <- @posts do
tr do
td do: post.title
td do: post.body
td do: post.published_at
td do: post.author
... | 21.181818 | 68 | 0.543634 |
3f4569667c1b9c28bafa61d46762f7fb72a870a9 | 1,525 | ex | Elixir | lib/wax_api_rest/types/server_public_key_credential_get_options_response.ex | tanguilp/wax_api_rest | c5580775afe2bad91e49083a80629da043258dd5 | [
"Apache-2.0"
] | null | null | null | lib/wax_api_rest/types/server_public_key_credential_get_options_response.ex | tanguilp/wax_api_rest | c5580775afe2bad91e49083a80629da043258dd5 | [
"Apache-2.0"
] | null | null | null | lib/wax_api_rest/types/server_public_key_credential_get_options_response.ex | tanguilp/wax_api_rest | c5580775afe2bad91e49083a80629da043258dd5 | [
"Apache-2.0"
] | null | null | null | defmodule WaxAPIREST.Types.ServerPublicKeyCredentialGetOptionsResponse do
alias WaxAPIREST.Types.{
ServerPublicKeyCredentialDescriptor,
ServerPublicKeyCredentialGetOptionsRequest,
UserVerificationRequirement
}
@enforce_keys [:challenge]
defstruct [
:challenge,
:timeout,
:rpId,
:ext... | 26.293103 | 73 | 0.683934 |
3f456a9c046a48c5168d25cd1d3975ab9b68ab6a | 1,180 | ex | Elixir | lib/rest/http.ex | SpaceEEC/crux_rest | fc7fed3a8c6064d8d3b1f83fd9d39ed62ddfbdae | [
"MIT"
] | 6 | 2018-05-22T07:13:48.000Z | 2021-05-04T14:10:11.000Z | lib/rest/http.ex | SpaceEEC/crux_rest | fc7fed3a8c6064d8d3b1f83fd9d39ed62ddfbdae | [
"MIT"
] | 1 | 2021-05-05T17:02:36.000Z | 2021-05-05T21:10:54.000Z | lib/rest/http.ex | SpaceEEC/crux_rest | fc7fed3a8c6064d8d3b1f83fd9d39ed62ddfbdae | [
"MIT"
] | 1 | 2021-05-04T14:10:14.000Z | 2021-05-04T14:10:14.000Z | defmodule Crux.Rest.HTTP do
@moduledoc false
# Behavior module executing requests and returning potentially normalized data.
@moduledoc since: "0.3.0"
alias Crux.Rest.Request
@typedoc """
A module implementing this behaviour, for example `Crux.Rest.HTTP.Default`.
"""
@typedoc since: "0.3.0"
@type t ... | 28.095238 | 81 | 0.634746 |
3f4588666f8f4c6c50d1f917a113c205693406ee | 24,459 | ex | Elixir | lib/ace/http2/connection.ex | filipecabaco/Ace | e5497f182c103f62ba42d8bccf429e016d4efe73 | [
"MIT"
] | null | null | null | lib/ace/http2/connection.ex | filipecabaco/Ace | e5497f182c103f62ba42d8bccf429e016d4efe73 | [
"MIT"
] | null | null | null | lib/ace/http2/connection.ex | filipecabaco/Ace | e5497f182c103f62ba42d8bccf429e016d4efe73 | [
"MIT"
] | null | null | null | # Perhaps should be called endpoint
defmodule Ace.HTTP2.Connection do
@moduledoc false
use GenServer
require Logger
alias Ace.{HPack}
alias Ace.HTTP2.{Frame, Stream}
@preface "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
def preface() do
@preface
end
# next: :preface, :handshake, :any, :continuation,
... | 32.056356 | 113 | 0.622634 |
3f45a11397e5ab05e5a448cceb65e90e9d1ff1d0 | 298 | exs | Elixir | test/test_helper.exs | wojtekmach/redix | 5b925d894ddfd329339ab1ed3e9335fd7df718aa | [
"MIT"
] | null | null | null | test/test_helper.exs | wojtekmach/redix | 5b925d894ddfd329339ab1ed3e9335fd7df718aa | [
"MIT"
] | null | null | null | test/test_helper.exs | wojtekmach/redix | 5b925d894ddfd329339ab1ed3e9335fd7df718aa | [
"MIT"
] | null | null | null | ExUnit.start(assert_receive_timeout: 500)
Logger.configure(level: :info)
case :gen_tcp.connect('localhost', 6379, []) do
{:ok, socket} ->
:ok = :gen_tcp.close(socket)
{:error, reason} ->
Mix.raise("Cannot connect to Redis (http://localhost:6379): #{:inet.format_error(reason)}")
end
| 24.833333 | 95 | 0.677852 |
3f45ca4701e75412591b47c352be8354366a40f4 | 2,937 | exs | Elixir | test/refmon/cache_test.exs | khattori/refmon | 99d4e4df200a4146f785a83c2297f9d8303a2f47 | [
"MIT"
] | null | null | null | test/refmon/cache_test.exs | khattori/refmon | 99d4e4df200a4146f785a83c2297f9d8303a2f47 | [
"MIT"
] | null | null | null | test/refmon/cache_test.exs | khattori/refmon | 99d4e4df200a4146f785a83c2297f9d8303a2f47 | [
"MIT"
] | null | null | null | defmodule Refmon.CacheTest do
use ExUnit.Case
import Refmon.Cache
setup do
clear_all()
:ok
end
test "clear cache" do
get_or_store("subj1", "obj1", :read, nil, fn -> :stored1 end)
assert :stored1 == get_or_store("subj1", "obj1", :read, nil, fn -> raise RuntimeError end)
get_or_store("sub... | 39.689189 | 98 | 0.648281 |
3f45d74b64aa3be5a87c3e6f9a253e5d49bd5a57 | 1,618 | ex | Elixir | clients/games/lib/google_api/games/v1/model/event_child.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/event_child.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/event_child.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.36 | 164 | 0.720025 |
3f45e92d198d1f1037b1e4db92d136fe43b11921 | 1,507 | ex | Elixir | lib/element43_orders/bootstrap.ex | EVE-Tools/orders | 0c82d56f2516cbda1c2586ca332540bdb49657ad | [
"BSD-3-Clause"
] | null | null | null | lib/element43_orders/bootstrap.ex | EVE-Tools/orders | 0c82d56f2516cbda1c2586ca332540bdb49657ad | [
"BSD-3-Clause"
] | null | null | null | lib/element43_orders/bootstrap.ex | EVE-Tools/orders | 0c82d56f2516cbda1c2586ca332540bdb49657ad | [
"BSD-3-Clause"
] | null | null | null | defmodule Element43.Orders.Bootstrap do
@moduledoc """
Bootstraps the database.
"""
use GenServer
require RethinkDB.Lambda
import RethinkDB.Query
@doc """
Wrap start_link.
"""
def start_link do
GenServer.start_link(__MODULE__, [])
end
@doc """
Initialize database tables and in... | 24.704918 | 86 | 0.723291 |
3f4603f8dde210d5b3d114b38c46294ca01cb4f0 | 640 | exs | Elixir | mix.exs | modalsoul/Gil | db85866a52ba1e99fdb2e83b54233197f128654d | [
"MIT"
] | null | null | null | mix.exs | modalsoul/Gil | db85866a52ba1e99fdb2e83b54233197f128654d | [
"MIT"
] | null | null | null | mix.exs | modalsoul/Gil | db85866a52ba1e99fdb2e83b54233197f128654d | [
"MIT"
] | null | null | null | defmodule Gil.Mixfile do
use Mix.Project
def project do
[app: :gil,
version: "0.0.3",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description,
package: [
contributors: ["Masatoshi Imae"],
licenses... | 19.393939 | 68 | 0.53125 |
3f4619c00588227d05dec602c8d3139e09504b98 | 41,331 | ex | Elixir | lib/elixir/lib/gen_event.ex | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_event.ex | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_event.ex | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | defmodule GenEvent do
@moduledoc """
A behaviour module for implementing event handling functionality.
The event handling model consists of a generic event manager
process with an arbitrary number of event handlers which are
added and deleted dynamically.
An event manager implemented using this module wil... | 34.967005 | 112 | 0.656287 |
3f463402d260672c2b9236b21d0f442c740862a1 | 1,916 | ex | Elixir | netaxs_sniff/suckmisic/lib/suckmisic_web.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic_web.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic_web.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | defmodule SuckmisicWeb 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 SuckmisicWeb, :controller
use SuckmisicWeb, :view
The definitions below will be executed for every view,
contro... | 23.365854 | 76 | 0.689457 |
3f463818fc30d18a16149527e054d70cc166e30c | 937 | ex | Elixir | lib/rocketpay/accounts/transaction.ex | LuizFerK/Rocketpay | 4388f22231c43fb58e777dfb04a342e82b548df7 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/transaction.ex | LuizFerK/Rocketpay | 4388f22231c43fb58e777dfb04a342e82b548df7 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/transaction.ex | LuizFerK/Rocketpay | 4388f22231c43fb58e777dfb04a342e82b548df7 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Accounts.Transaction do
alias Ecto.Multi
alias Rocketpay.Accounts.Operation
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
alias Rocketpay.Repo
def call(%{"from" => from_id, "to" => to_id, "value" => value}) do
withdraw_params = build_params(from_id, value)
... | 32.310345 | 81 | 0.689434 |
3f46625c7d261fb7b7b5bed19479c0f9718ac2b5 | 316 | exs | Elixir | priv/repo/migrations/20210416165918_create_teams.exs | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 7 | 2020-10-19T14:06:46.000Z | 2022-02-19T09:53:02.000Z | priv/repo/migrations/20210416165918_create_teams.exs | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 5 | 2017-08-24T10:38:46.000Z | 2021-05-26T16:48:22.000Z | priv/repo/migrations/20210416165918_create_teams.exs | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 2 | 2017-08-25T18:38:11.000Z | 2021-07-15T00:57:33.000Z | defmodule Bokken.Repo.Migrations.CreateTeams do
use Ecto.Migration
def change do
create table(:teams, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :description, :string
timestamps()
end
create unique_index(:teams, [:name])
end
end
| 19.75 | 47 | 0.667722 |
3f467a3b6a17d49b45b3465d216bc537c6a851fe | 3,058 | ex | Elixir | lib/ot/server.ex | jclem/ot_server | 58e0f5dd0591652f522335747586402d90cdd08c | [
"0BSD"
] | 11 | 2017-09-01T15:13:58.000Z | 2021-11-30T07:56:58.000Z | lib/ot/server.ex | jclem/ot_server | 58e0f5dd0591652f522335747586402d90cdd08c | [
"0BSD"
] | null | null | null | lib/ot/server.ex | jclem/ot_server | 58e0f5dd0591652f522335747586402d90cdd08c | [
"0BSD"
] | 4 | 2019-03-25T01:54:31.000Z | 2021-02-17T23:15:58.000Z | defmodule OT.Server do
@moduledoc """
A safe API for interacting with operations and the data they operate against.
"""
use GenServer
@typedoc """
A map containing OT-related information.
This map must contain at least three keys:
- `type`: A string representing the OT type, which will be used to fi... | 29.68932 | 79 | 0.632767 |
3f46965e174ece2f65b05fac86cae05b6c2eb12c | 499 | ex | Elixir | lib/http_proxy/play/body.ex | KazuCocoa/http_proxy | f8050af0ecb6629e2c4e6c3e7507de3af5a108e5 | [
"MIT"
] | 62 | 2015-11-08T05:16:22.000Z | 2021-12-24T21:23:30.000Z | lib/http_proxy/play/body.ex | KazuCocoa/http_proxy | f8050af0ecb6629e2c4e6c3e7507de3af5a108e5 | [
"MIT"
] | 30 | 2015-12-18T03:38:07.000Z | 2021-06-25T15:16:18.000Z | lib/http_proxy/play/body.ex | KazuCocoa/http_proxy | f8050af0ecb6629e2c4e6c3e7507de3af5a108e5 | [
"MIT"
] | 9 | 2016-01-17T06:57:21.000Z | 2022-02-17T08:42:39.000Z | defmodule HttpProxy.Play.Body do
@moduledoc """
Get files against play
"""
@type response :: map()
@doc """
Return response body
"""
@spec get_body(response) :: binary
def get_body(%{"response" => %{"body" => body}}), do: body
def get_body(%{"response" => %{"body_file" => body_file}}) do
case... | 19.192308 | 63 | 0.589178 |
3f469e07e9c7a8c0edbda782fdb9fba4be708f1b | 172 | exs | Elixir | RADWIMPS.exs | Clapp-project/RADWIMPS | 16122dc0659c6273b81845af6cc6eb4f45b5f0c9 | [
"MIT"
] | 262 | 2020-06-18T02:29:06.000Z | 2022-02-17T09:25:42.000Z | RADWIMPS.exs | Clapp-project/RADWIMPS | 16122dc0659c6273b81845af6cc6eb4f45b5f0c9 | [
"MIT"
] | 82 | 2020-06-18T02:38:18.000Z | 2022-01-02T19:25:43.000Z | RADWIMPS.exs | Clapp-project/RADWIMPS | 16122dc0659c6273b81845af6cc6eb4f45b5f0c9 | [
"MIT"
] | 57 | 2020-06-18T09:31:01.000Z | 2022-01-22T10:11:30.000Z | defmodule RADWIMPS do
def then(_), do: IO.write("前")
def 世(_), do: IO.puts("世")
def main(), do: :RADWIMPS |> then() |> then() |> then() |> 世()
end
RADWIMPS.main()
| 17.2 | 64 | 0.55814 |
3f46a5ac54b3ce17f11eb4f130a125d8dde3bb39 | 2,178 | ex | Elixir | clients/games/lib/google_api/games/v1/model/revision_check_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/revision_check_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/revision_check_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.333333 | 375 | 0.736915 |
3f46a8bf213763868e3264f3305720336722e168 | 20,113 | ex | Elixir | lib/phoenix/tracker/state.ex | dolfinus/phoenix_pubsub | 69333730a1fa771014821e279263dec049f33a4c | [
"MIT"
] | null | null | null | lib/phoenix/tracker/state.ex | dolfinus/phoenix_pubsub | 69333730a1fa771014821e279263dec049f33a4c | [
"MIT"
] | null | null | null | lib/phoenix/tracker/state.ex | dolfinus/phoenix_pubsub | 69333730a1fa771014821e279263dec049f33a4c | [
"MIT"
] | null | null | null | defmodule Phoenix.Tracker.State do
@moduledoc false
alias Phoenix.Tracker.{State, Clock}
@type name :: term
@type topic :: String.t()
@type key :: term
@type meta :: map
@type ets_id :: :ets.tid()
@type clock :: pos_integer
@type tag :: {name, clock}
@type cloud :: MapSet.t()
@type clouds :: %{na... | 30.613394 | 97 | 0.590762 |
3f46c67e93cde62e4a8237d965e600284345c0ef | 675 | exs | Elixir | apps/master_proxy/mix.exs | patrickdet/acme_bank | b9660d995ef8eea94f921511a3936bf354d2fbbc | [
"MIT"
] | 2 | 2020-04-07T20:02:24.000Z | 2021-02-27T13:32:13.000Z | apps/master_proxy/mix.exs | patrickdet/acme_bank | b9660d995ef8eea94f921511a3936bf354d2fbbc | [
"MIT"
] | null | null | null | apps/master_proxy/mix.exs | patrickdet/acme_bank | b9660d995ef8eea94f921511a3936bf354d2fbbc | [
"MIT"
] | null | null | null | defmodule MasterProxy.Mixfile do
use Mix.Project
def project do
[app: :master_proxy,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
... | 22.5 | 69 | 0.57037 |
3f4721f0a28751daeadb8ea6b9c438daeb146ad2 | 59 | ex | Elixir | lib/corex_web/views/shared_view.ex | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | lib/corex_web/views/shared_view.ex | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | lib/corex_web/views/shared_view.ex | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | defmodule CorexWeb.SharedView do
use CorexWeb, :view
end
| 14.75 | 32 | 0.79661 |
3f47257a35e40199bbdd509fbf8564f9fb66690b | 82 | exs | Elixir | test/test_helper.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 139 | 2018-12-17T13:52:42.000Z | 2022-03-27T02:58:55.000Z | test/test_helper.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 25 | 2019-08-07T16:49:03.000Z | 2022-03-14T18:17:54.000Z | test/test_helper.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 30 | 2019-01-09T12:36:16.000Z | 2022-03-14T18:03:28.000Z | ExUnit.start()
Cloak.Ecto.TestRepo.start_link()
Cloak.Ecto.TestVault.start_link()
| 20.5 | 33 | 0.804878 |
3f473db08012cd752aa8e6982cd39c51a061c5a8 | 272 | ex | Elixir | test/support/manager_case.ex | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 189 | 2018-09-25T09:02:41.000Z | 2022-03-09T13:52:06.000Z | test/support/manager_case.ex | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 29 | 2018-09-26T05:51:18.000Z | 2021-11-05T08:55:03.000Z | test/support/manager_case.ex | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 32 | 2018-10-21T12:28:11.000Z | 2022-03-28T02:20:19.000Z | defmodule Opencov.ManagerCase do
use ExUnit.CaseTemplate
using do
quote do
alias Opencov.Repo
import Opencov.Factory
import Opencov.ManagerCase
end
end
setup _tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Opencov.Repo)
end
end
| 17 | 58 | 0.702206 |
3f475326d18bf5444350c571b095e92054f23f74 | 1,947 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_templates_scoped_list.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/node_templates_scoped_list.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/node_templates_scoped_list.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... | 38.94 | 198 | 0.748844 |
3f4762558495e75df03c1a4c0f86ae328cf4603d | 258 | exs | Elixir | priv/repo/migrations/20200107192918_add_system_column_to_users.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | priv/repo/migrations/20200107192918_add_system_column_to_users.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | priv/repo/migrations/20200107192918_add_system_column_to_users.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | defmodule ElixirBank.Repo.Migrations.AddSystemColumnToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add(:system, :boolean, default: false)
end
create(unique_index(:users, :system, where: "system = true"))
end
end
| 21.5 | 65 | 0.705426 |
3f47a18abc145025a4a056ec564636ab8bbd96c0 | 21,029 | exs | Elixir | test/mimic_test.exs | tony612/mimic | 2865540cea4ff16e27367336fd7497cd1a2d3436 | [
"Apache-2.0"
] | null | null | null | test/mimic_test.exs | tony612/mimic | 2865540cea4ff16e27367336fd7497cd1a2d3436 | [
"Apache-2.0"
] | null | null | null | test/mimic_test.exs | tony612/mimic | 2865540cea4ff16e27367336fd7497cd1a2d3436 | [
"Apache-2.0"
] | null | null | null | defmodule Mimic.Test do
use ExUnit.Case, async: true
import Mimic
describe "no stub or expects private mode" do
setup :set_mimic_private
test "no stubs calls original" do
assert Calculator.add(2, 2) == 4
assert Calculator.mult(2, 3) == 6
end
end
describe "no stub or expects global m... | 28.302826 | 105 | 0.562937 |
3f483cd7936875c583337c54d2605e9ae4d660da | 1,084 | exs | Elixir | test/scenic/primitive/transform/matrix_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1,716 | 2018-09-07T21:55:43.000Z | 2022-03-31T16:16:30.000Z | test/scenic/primitive/transform/matrix_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 220 | 2018-09-08T01:28:00.000Z | 2022-03-22T03:55:17.000Z | test/scenic/primitive/transform/matrix_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 137 | 2018-09-07T21:55:56.000Z | 2022-03-26T04:07:27.000Z | #
# Created by Boyd Multerer on 2017-11-02.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Transform.MatrixTest do
use ExUnit.Case, async: true
doctest Scenic
alias Scenic.Primitive.Transform.Matrix
@data <<
1.0::float-size(32)-native,
1.1::float-size(32)-nat... | 24.636364 | 58 | 0.643911 |
3f48599ca7e71deafc2927fbfa91ec33b98084f2 | 353 | exs | Elixir | priv/repo/seeds.exs | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Horizons.Repo.insert!(%Horizons.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they wi... | 29.416667 | 61 | 0.708215 |
3f485b2146d52b7aaa88760593d341d9db6a644c | 974 | ex | Elixir | lib/day15.ex | erljef/adventofcode-2017 | ce601ee8b812a0255178a4074f05a577c9288a8f | [
"WTFPL"
] | null | null | null | lib/day15.ex | erljef/adventofcode-2017 | ce601ee8b812a0255178a4074f05a577c9288a8f | [
"WTFPL"
] | null | null | null | lib/day15.ex | erljef/adventofcode-2017 | ce601ee8b812a0255178a4074f05a577c9288a8f | [
"WTFPL"
] | null | null | null | defmodule Day15 do
import Bitwise
def count_pairs(startA, startB) do
genA = Stream.unfold(startA, fn val -> next = rem(val * 16807, 2147483647); {next, next} end)
genB = Stream.unfold(startB, fn val -> next = rem(val * 48271, 2147483647); {next, next} end)
pairs = Stream.zip(genA, genB)
for {a, b}... | 31.419355 | 97 | 0.584189 |
3f49156fe64a0f3aac3fe613395307f87b0c5c93 | 3,288 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_longrunning_operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_longrunning_operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_longrunning_operation.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... | 44.432432 | 153 | 0.707725 |
3f4921cce07f4e7242953fb6c42b921fad4b7cd7 | 64 | ex | Elixir | web/views/group_view.ex | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | web/views/group_view.ex | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | web/views/group_view.ex | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | defmodule Betazoids.GroupView do
use Betazoids.Web, :view
end
| 16 | 32 | 0.796875 |
3f49396e1c2f573b41ff2755bbd4a52a0e852219 | 449 | ex | Elixir | test/support/auth_conn_case.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | test/support/auth_conn_case.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | test/support/auth_conn_case.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Web.AuthConnCase do
defmacro __using__(_opts) do
quote do
use Web.ConnCase
setup %{conn: conn} do
user = create_user(%{name: "user", password: "password", flags: ["admin"]})
character = create_character(user, %{name: "user"})
user = %{user | characters: [character]}
... | 24.944444 | 83 | 0.594655 |
3f495724d942fdf2b859a6f83fb6bd7db4c6bcdf | 2,675 | ex | Elixir | lib/metalove.ex | podlove/metalove | 8b52c91eba6b39366ee35a06e6d9eedccbe8517d | [
"MIT"
] | 6 | 2019-02-23T12:19:57.000Z | 2020-12-19T16:28:17.000Z | lib/metalove.ex | podlove/metalove | 8b52c91eba6b39366ee35a06e6d9eedccbe8517d | [
"MIT"
] | 11 | 2019-02-23T12:22:08.000Z | 2021-04-10T21:49:48.000Z | lib/metalove.ex | podlove/metalove | 8b52c91eba6b39366ee35a06e6d9eedccbe8517d | [
"MIT"
] | 1 | 2019-03-23T13:23:19.000Z | 2019-03-23T13:23:19.000Z | defmodule Metalove do
@moduledoc """
The main application interface.
"""
@doc ~S"""
Convenience entry point.
Args:
* `url` - URL of a podcast feed or webpage (e.g. "atp.fm" or "https://freakshow.fm/feed/m4a/")
Return values:
* `Metalove.Podcast.t()` if a podcast could be deduced and fetched fro... | 29.722222 | 249 | 0.642243 |
3f49c510e50bd67d6dd6e00f232f5ca538689cfa | 29,899 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/api/jobs.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/jobs/lib/google_api/jobs/v2/api/jobs.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/api/jobs.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 44.426449 | 196 | 0.621927 |
3f49d667cec8ad6644e37c8f862c4081ca5745f1 | 890 | exs | Elixir | test/web/controller/admin/npc_item_controller_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/web/controller/admin/npc_item_controller_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/web/controller/admin/npc_item_controller_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Controller.NPCItemControllerTest do
use Web.AuthConnCase
setup do
npc = create_npc()
item = create_item()
%{item: item, npc: npc}
end
test "add an item to an npc", %{conn: conn, npc: npc, item: item} do
conn = post conn, npc_item_path(conn, :create, npc.id), npc_item: %{item_id:... | 29.666667 | 104 | 0.670787 |
3f4a0fb285ea78c3ef4218794e9308017e9b40ec | 1,686 | exs | Elixir | ex/loqui/test/server_test.exs | cwertyar/loqui | 3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0 | [
"MIT"
] | null | null | null | ex/loqui/test/server_test.exs | cwertyar/loqui | 3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0 | [
"MIT"
] | null | null | null | ex/loqui/test/server_test.exs | cwertyar/loqui | 3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0 | [
"MIT"
] | null | null | null | defmodule Loqui.ServerTest do
use ExUnit.Case
defmodule Handler do
@behaviour Loqui.Handler
def loqui_init(_, _) do
{:ok, %{supported_encodings: ["erlpack"], supported_compressions: []}}
end
def loqui_request(_, _),
do: ""
def loqui_terminate(_),
do: :ok
end
@port 3841... | 22.783784 | 86 | 0.593713 |
3f4a23ca0f1f52646a976e0b538524e974430e44 | 1,724 | exs | Elixir | bidding_poc/config/dev.exs | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | bidding_poc/config/dev.exs | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | bidding_poc/config/dev.exs | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | import 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 :bidding_poc, BiddingPocWeb.Endpoint,
http: [port... | 29.220339 | 80 | 0.707657 |
3f4a40cd841d94f313893723c3bc2ed815c83317 | 329 | ex | Elixir | lib/eagle/server/processors.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | 1 | 2015-11-15T08:07:48.000Z | 2015-11-15T08:07:48.000Z | lib/eagle/server/processors.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | null | null | null | lib/eagle/server/processors.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | null | null | null | defmodule Eagle.Server.Processors do
def start_link() do
Agent.start_link(fn -> %{} end, name: __MODULE__)
end
def get(key) do
Agent.get(__MODULE__, fn processors -> processors[key] end)
end
def add(key, value) do
Agent.update(__MODULE__, fn processors -> Map.put(processors, key, value) end)
... | 20.5625 | 82 | 0.68693 |
3f4a79541d19b1111c2536179dc8dbcfeba5c24e | 486 | exs | Elixir | elixir_example/mix.exs | tessi/wasm-pdf-demo | 3f710c5cd535d214cd95f51664baf23ee1824b6d | [
"MIT"
] | 1 | 2021-02-22T19:33:47.000Z | 2021-02-22T19:33:47.000Z | elixir_example/mix.exs | tessi/wasm-pdf-demo | 3f710c5cd535d214cd95f51664baf23ee1824b6d | [
"MIT"
] | 21 | 2020-06-04T05:17:55.000Z | 2021-02-03T05:44:52.000Z | elixir_example/mix.exs | tessi/wasm-pdf-demo | 3f710c5cd535d214cd95f51664baf23ee1824b6d | [
"MIT"
] | null | null | null | defmodule ElixirWasmPdf.MixProject do
use Mix.Project
def project do
[
app: :elixir_wasm_pdf,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 17.357143 | 59 | 0.578189 |
3f4a876340bbde0ac9abacfcf1387b5515b0a7cf | 164 | ex | Elixir | lib/conversor_web/views/transaction_view.ex | wagncarv/CurrencyExchange | 3e626681d97a17a68385be31d8c8a82fd4bfcd59 | [
"MIT"
] | 1 | 2022-03-28T19:10:45.000Z | 2022-03-28T19:10:45.000Z | lib/conversor_web/views/transaction_view.ex | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | lib/conversor_web/views/transaction_view.ex | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | defmodule ConversorWeb.TransactionView do
use ConversorWeb, :view
def render("transactions.json", %{transactions: transactions}) do
transactions
end
end
| 20.5 | 67 | 0.768293 |
3f4a89ec8a9134631c65e67d29d72a67eac4c475 | 648 | exs | Elixir | test/distinctuntilchanged_test.exs | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | 4 | 2018-04-16T20:43:37.000Z | 2019-07-18T21:50:49.000Z | test/distinctuntilchanged_test.exs | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | null | null | null | test/distinctuntilchanged_test.exs | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | 1 | 2021-03-18T18:37:11.000Z | 2021-03-18T18:37:11.000Z | defmodule DistinctUntilChangedTest do
use ExUnit.Case
alias Observables.{Obs}
require Logger
@tag :distinctuntilchanged
test "distinctuntilchanged" do
testproc = self()
xs = [1, 2, 3, 4, 1, 2, 3, 4]
expected = [1, 2, 3, 4, 1, 2, 3, 4]
xs
|> Obs.from_enum(100)
|> Obs.distinctuntilch... | 20.25 | 73 | 0.58642 |
3f4ab2880dc99b3df8c4ea379dda0800e3348484 | 1,603 | ex | Elixir | test/support/data_case.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:19:06.000Z | 2021-06-19T04:19:06.000Z | test/support/data_case.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:21:52.000Z | 2021-06-19T04:21:52.000Z | test/support/data_case.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | null | null | null | defmodule ExJagaimoBlog.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes don... | 28.122807 | 77 | 0.696818 |
3f4b08d1818a3e1628e2537466930ca731d93080 | 992 | ex | Elixir | apps/banking_api/lib/banking_api/accounts/inputs/transfer.ex | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api/accounts/inputs/transfer.ex | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api/accounts/inputs/transfer.ex | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.Accounts.Inputs.Transfer do
use Ecto.Schema
import Ecto.Changeset
@required [:value, :origin_account_id, :destination_account_id]
@primary_key false
embedded_schema do
field :value, :integer
field :origin_account_id, :string
field :destination_account_id, :string
end
d... | 26.105263 | 110 | 0.737903 |
3f4b325ab652647e042880e4b78942b66e135fa4 | 2,346 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_card.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_card.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_card.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 | 179 | 0.707161 |
3f4b38c4b66e09183ceffa0b9ee030afe89fa331 | 1,132 | exs | Elixir | test/sign1_test.exs | geonnave/cose-elixir | 141839cb061d4b561dea1b4c9ee2dffee1197888 | [
"MIT"
] | null | null | null | test/sign1_test.exs | geonnave/cose-elixir | 141839cb061d4b561dea1b4c9ee2dffee1197888 | [
"MIT"
] | null | null | null | test/sign1_test.exs | geonnave/cose-elixir | 141839cb061d4b561dea1b4c9ee2dffee1197888 | [
"MIT"
] | null | null | null | defmodule COSETest.Sign1 do
use ExUnit.Case
doctest COSE
alias COSE.{Keys, Messages}
alias Messages.{Sign1}
describe "sign1 message" do
setup do
key = Keys.OKP.generate(:sig)
d = Base.decode16!("8437C5D1CB4DE744B33B23A943644268A2CC0F11AF66953F74BAB8B395AFCC21")
x = Base.decode16!("0D89... | 30.594595 | 92 | 0.655477 |
3f4b4b50e3fad07820115de717331da7bab74041 | 1,860 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/int_or_string.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/int_or_string.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/int_or_string.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... | 34.444444 | 243 | 0.724194 |
3f4b50ec2d4f46dc5196d19fbb005132e0d14bfa | 477 | ex | Elixir | lib/bugsnex/deploy.ex | smaximov/bugsnex | 33183dd853b2dd9d3bc319413850a5cefcb96bad | [
"MIT"
] | 11 | 2016-05-04T14:23:26.000Z | 2020-04-30T16:53:32.000Z | lib/bugsnex/deploy.ex | smaximov/bugsnex | 33183dd853b2dd9d3bc319413850a5cefcb96bad | [
"MIT"
] | 27 | 2016-04-19T10:25:41.000Z | 2020-09-11T09:27:39.000Z | lib/bugsnex/deploy.ex | smaximov/bugsnex | 33183dd853b2dd9d3bc319413850a5cefcb96bad | [
"MIT"
] | 4 | 2017-03-16T16:14:47.000Z | 2019-08-30T14:36:26.000Z | defmodule Bugsnex.Deploy do
@api_key Application.get_env(:bugsnex, :api_key)
@release_stage Application.get_env(:bugsnex, :release_stage)
@repository_url Application.get_env(:bugsnex, :repository_url)
defstruct apiKey: @api_key,
repository: @repository_url,
releaseStage: @release_stage,... | 28.058824 | 64 | 0.660377 |
3f4bad6888f733627aa2ca220c3e168b7d3173e6 | 4,262 | ex | Elixir | apps/site/lib/journey/filter.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/journey/filter.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/journey/filter.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Journey.Filter do
@moduledoc """
Helpful functions for filtering and sorting Journeys
"""
@type filter_flag_t :: :last_trip_and_upcoming | :predictions_then_schedules
# Max amount of trips that should be displayed
@trip_limit 14
# filter the journeys based on the filter_flag
# Currently, th... | 35.22314 | 111 | 0.720319 |
3f4bb45ed4979e91334cc4b79f446a330b6ec9e9 | 261 | ex | Elixir | lib/perspective/storage/errors/local_file_not_found.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/storage/errors/local_file_not_found.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/storage/errors/local_file_not_found.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.LocalFileNotFound do
defexception file_path: ""
def exception(file_path) do
%__MODULE__{
file_path: file_path
}
end
def message(%{file_path: file_path}) do
"The file (#{file_path}) could not be found"
end
end
| 18.642857 | 48 | 0.693487 |
3f4bbb47ee6a9cfb4c750db40436386c0a8946d7 | 721 | exs | Elixir | Elixir/elixirexamples/test/higherorderfunctions_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | Elixir/elixirexamples/test/higherorderfunctions_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | Elixir/elixirexamples/test/higherorderfunctions_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defmodule HigherOrderFunctionsTest do
use ExUnit.Case
test "call_function" do
ret = HigherOrderFunctions.call_function fn n -> n*2 end,21
assert ret == 42
end
test "call_with_fn" do
ret = HigherOrderFunctions.call_with_fn
assert ret == 25
end
test "call_with_variable" do
ret = HigherO... | 21.205882 | 63 | 0.725381 |
3f4bc608ec7cc11e3168c8f73d1ddb910c791184 | 6,878 | ex | Elixir | lib/consumer.ex | esl/buildex_jobs | 928d36541c25fa0ad998278cc7fe609644562140 | [
"Apache-2.0"
] | 2 | 2020-05-28T12:23:00.000Z | 2021-03-11T23:23:57.000Z | lib/consumer.ex | esl/buildex_jobs | 928d36541c25fa0ad998278cc7fe609644562140 | [
"Apache-2.0"
] | null | null | null | lib/consumer.ex | esl/buildex_jobs | 928d36541c25fa0ad998278cc7fe609644562140 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:27:28.000Z | 2022-03-06T10:20:51.000Z | defmodule RepoJobs.Consumer do
use GenServer
require Logger
alias Buildex.Common.Serializers.NewReleaseJobSerializer
alias RepoJobs.{Config, JobRunner}
defmodule State do
@moduledoc """
RabbitMQ Consumer Worker State.
State attributes:
* `:pool_id` - the name of the connection pool to R... | 33.067308 | 100 | 0.640302 |
3f4bcb4e0c8678b06254a59b37950c698e8b3e03 | 1,233 | ex | Elixir | lib/flowr/exterior/connector.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr/exterior/connector.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr/exterior/connector.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule Flowr.Exterior.Connector do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "connectors" do
field :name, :string
field :description, :string
field :config, :map,
default: %{
app_key: "APP_KEY",
... | 29.357143 | 97 | 0.690998 |
3f4beba463e9708bd678bcfa8cfe0f8e14cee355 | 1,622 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/user.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/user.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/user.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... | 32.44 | 135 | 0.720715 |
3f4bf4893932bfb3db58e3ff3462b3d79b6f5949 | 1,054 | exs | Elixir | mix.exs | PragTob/bunny | 54e1b133fdc8b2f26e22021b958d262bec919bea | [
"MIT"
] | 12 | 2018-04-01T10:02:52.000Z | 2021-09-10T09:21:53.000Z | mix.exs | PragTob/bunny | 54e1b133fdc8b2f26e22021b958d262bec919bea | [
"MIT"
] | 1 | 2018-04-02T04:25:47.000Z | 2019-04-01T12:12:01.000Z | mix.exs | PragTob/bunny | 54e1b133fdc8b2f26e22021b958d262bec919bea | [
"MIT"
] | null | null | null | defmodule Bunny.MixProject do
use Mix.Project
def project do
[
app: :bunny,
version: "2.4.2019",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: [
extras: ["README.md"],
main: "readme"
],
name: ... | 21.08 | 95 | 0.537951 |
3f4c39b275b8b808c03b5b8b4b39f37b564aa956 | 2,982 | ex | Elixir | lib/mix/tasks/dicon.deploy.ex | qcam/dicon | beed0d58d75d2ae64cc21a4d99831df7941c8db4 | [
"0BSD"
] | 42 | 2016-02-09T19:26:00.000Z | 2021-05-08T18:24:22.000Z | lib/mix/tasks/dicon.deploy.ex | qcam/dicon | beed0d58d75d2ae64cc21a4d99831df7941c8db4 | [
"0BSD"
] | 23 | 2016-02-09T23:01:11.000Z | 2021-03-07T13:38:17.000Z | lib/mix/tasks/dicon.deploy.ex | qcam/dicon | beed0d58d75d2ae64cc21a4d99831df7941c8db4 | [
"0BSD"
] | 7 | 2017-03-20T15:05:59.000Z | 2021-09-20T19:18:45.000Z | defmodule Mix.Tasks.Dicon.Deploy do
use Mix.Task
@shortdoc "Uploads a tarball to the configured server"
@moduledoc """
This task uploads the specified tarball on the configured hosts.
The configured hosts are picked up from the application's configuration; read
the `Dicon` documentation for more informat... | 30.742268 | 84 | 0.649564 |
3f4c57641e523725c4b5a910383a0de11ebacebd | 2,043 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.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... | 37.833333 | 118 | 0.753304 |
3f4c864577a7b87b55f49807f141053f5eae09b2 | 66 | exs | Elixir | test/metrics_test.exs | martinrehfeld/elixir-metrics-statsd | 7157b3c98b3d2b14d6b061f21c9998cccfdea21b | [
"MIT"
] | 1 | 2017-01-29T08:29:23.000Z | 2017-01-29T08:29:23.000Z | test/metrics_test.exs | wooga/elixir-metrics-statsd | 7157b3c98b3d2b14d6b061f21c9998cccfdea21b | [
"MIT"
] | null | null | null | test/metrics_test.exs | wooga/elixir-metrics-statsd | 7157b3c98b3d2b14d6b061f21c9998cccfdea21b | [
"MIT"
] | 1 | 2022-03-26T18:13:27.000Z | 2022-03-26T18:13:27.000Z | defmodule MetricsTest do
use ExUnit.Case
doctest Metrics
end
| 11 | 24 | 0.787879 |
3f4cbf3cebb086d2c388c3966ac1653b3bbf6ad3 | 2,092 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/list_monitored_resource_descriptors_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/logging/lib/google_api/logging/v2/model/list_monitored_resource_descriptors_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/logging/lib/google_api/logging/v2/model/list_monitored_resource_descriptors_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... | 38.036364 | 266 | 0.753346 |
3f4cc405f4930bb1272b14f023cc02267867531b | 7,772 | ex | Elixir | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/virtual_machine.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/virtual_machine.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/virtual_machine.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... | 87.325843 | 684 | 0.734689 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.