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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a244a7f1ee01939279bbfbdea03fc2dc6b3c3db | 726 | exs | Elixir | config/releases.exs | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 742 | 2015-01-02T14:27:45.000Z | 2022-03-17T06:42:52.000Z | config/releases.exs | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 126 | 2015-02-08T04:39:53.000Z | 2022-01-02T14:43:27.000Z | config/releases.exs | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 105 | 2015-01-28T20:41:40.000Z | 2022-02-14T07:48:50.000Z | import Config
import System
config :poxa,
port: get_env("PORT", "8080") |> String.to_integer(),
app_key: get_env("POXA_APP_KEY", "app_key"),
app_secret: get_env("POXA_SECRET", "secret"),
app_id: get_env("POXA_APP_ID", "app_id"),
registry_adapter: get_env("POXA_REGISTRY_ADAPTER", "gproc"),
web_hook: get_env... | 36.3 | 77 | 0.694215 |
7a244dcc0fd08b130fb45d5a6bf013d9add98e9f | 1,936 | exs | Elixir | apps/astarte_housekeeping/test/astarte_housekeeping/migrator_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_housekeeping/test/astarte_housekeeping/migrator_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_housekeeping/test/astarte_housekeeping/migrator_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 37.230769 | 107 | 0.743802 |
7a24947823b40d9427fcb4a2fd880cc60fc3c4d3 | 392 | ex | Elixir | lib/pqueue2/collectable.ex | ne-sachirou/pqueue2 | a71ab539dc36ef08db5e3c2b520ca5109e7b4813 | [
"MIT"
] | 1 | 2019-12-17T13:42:16.000Z | 2019-12-17T13:42:16.000Z | lib/pqueue2/collectable.ex | ne-sachirou/pqueue2 | a71ab539dc36ef08db5e3c2b520ca5109e7b4813 | [
"MIT"
] | 65 | 2019-07-18T01:16:58.000Z | 2022-03-24T01:12:00.000Z | lib/pqueue2/collectable.ex | ne-sachirou/pqueue2 | a71ab539dc36ef08db5e3c2b520ca5109e7b4813 | [
"MIT"
] | null | null | null | defimpl Collectable, for: PQueue2 do
def into(queue) do
{
queue,
fn
acc, {:cont, {value, priority}}
when is_integer(priority) and priority >= 0 ->
PQueue2.put(acc, value, priority)
acc, {:cont, value} ->
PQueue2.put(acc, value)
acc, :done ->
... | 17.818182 | 54 | 0.484694 |
7a252b6eb2ef365720ec5391475f29ec61241ac5 | 1,381 | ex | Elixir | 20.OTPApplications/otpa3/sequence/lib/sequence/server.ex | kenspirit/programming-elixir-exercises | 35ca1f0cb17ca4040b395c2f9cc53e51918c99ca | [
"MIT"
] | 6 | 2019-10-25T21:51:11.000Z | 2022-03-23T02:11:38.000Z | 20.OTPApplications/otpa3/sequence/lib/sequence/server.ex | kenspirit/programming-elixir-exercises | 35ca1f0cb17ca4040b395c2f9cc53e51918c99ca | [
"MIT"
] | null | null | null | 20.OTPApplications/otpa3/sequence/lib/sequence/server.ex | kenspirit/programming-elixir-exercises | 35ca1f0cb17ca4040b395c2f9cc53e51918c99ca | [
"MIT"
] | 1 | 2020-06-16T12:37:43.000Z | 2020-06-16T12:37:43.000Z | defmodule Sequence.Server do
use GenServer
@vsn "1"
defmodule State do
defstruct(current_number: 0, delta: 1)
end
# External API
def start_link(init_number) do
GenServer.start_link(__MODULE__, init_number, name: __MODULE__)
end
def increment_number(delta) do
GenServer.cast(__MODULE__, { ... | 24.22807 | 73 | 0.673425 |
7a2564293f013b2e541788b700531c518b64510c | 2,377 | exs | Elixir | test/grpc/integration/stub_test.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 561 | 2019-03-18T09:10:57.000Z | 2022-03-27T17:34:59.000Z | test/grpc/integration/stub_test.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 94 | 2019-03-20T09:34:38.000Z | 2022-02-27T20:44:04.000Z | test/grpc/integration/stub_test.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 112 | 2019-03-25T03:27:26.000Z | 2022-03-21T12:43:59.000Z | defmodule GRPC.Integration.StubTest do
use GRPC.Integration.TestCase
defmodule HelloServer do
use GRPC.Server, service: Helloworld.Greeter.Service
def say_hello(req, _stream) do
Helloworld.HelloReply.new(message: "Hello, #{req.name}")
end
end
defmodule SlowServer do
use GRPC.Server, ser... | 28.987805 | 97 | 0.630206 |
7a25783cdff73654182b65a8c050a852a573030b | 4,056 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.872727 | 165 | 0.670611 |
7a258fd64554245204239416e21f4c68d1c6872d | 1,150 | ex | Elixir | clients/manufacturers/lib/google_api/manufacturers/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/manufacturers/lib/google_api/manufacturers/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/lib/google_api/manufacturers/v1/connection.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 ... | 34.848485 | 77 | 0.746957 |
7a259cf6f90140d3aa82790451f3812fcbc33f88 | 376 | exs | Elixir | builder/priv/repo/migrations/20220302193242_create_owners.exs | miata-bot/trading-card-builder | 6f518f8c883b5a95d80eaec7d99d1c10b2db1009 | [
"Apache-2.0"
] | null | null | null | builder/priv/repo/migrations/20220302193242_create_owners.exs | miata-bot/trading-card-builder | 6f518f8c883b5a95d80eaec7d99d1c10b2db1009 | [
"Apache-2.0"
] | null | null | null | builder/priv/repo/migrations/20220302193242_create_owners.exs | miata-bot/trading-card-builder | 6f518f8c883b5a95d80eaec7d99d1c10b2db1009 | [
"Apache-2.0"
] | null | null | null | defmodule Deck.Repo.Migrations.CreateOwners do
use Ecto.Migration
def change do
create table(:owners) do
add :public_key, :binary, null: false
add :discord_user_id, :binary
end
create unique_index(:owners, :public_key)
create unique_index(:owners, :discord_user_id)
create unique_in... | 25.066667 | 65 | 0.718085 |
7a25b7b1842fe476ffbbfede7a2312c9f53a359f | 649 | exs | Elixir | config/config.exs | artsy/aprb | 9e93200462a76823c831b92f02bddcf1b326a451 | [
"MIT"
] | 11 | 2016-08-18T23:18:57.000Z | 2019-05-03T17:46:55.000Z | config/config.exs | artsy/aprb | 9e93200462a76823c831b92f02bddcf1b326a451 | [
"MIT"
] | 105 | 2016-08-17T23:36:07.000Z | 2019-09-26T18:14:24.000Z | config/config.exs | artsy/aprb | 9e93200462a76823c831b92f02bddcf1b326a451 | [
"MIT"
] | 14 | 2016-08-17T17:23:45.000Z | 2019-09-16T16:14:59.000Z | use Mix.Config
config :slack, api_token: System.get_env("SLACK_API_TOKEN")
config :aprb,
maru_servers: [Aprb.Server],
ecto_repos: [Aprb.Repo],
gravity_api: Gravity
config :aprb, Aprb.Server,
adapter: Plug.Cowboy,
plug: Aprb.Api.Root
config :aprb,
gravity_api_url: System.get_env("GRAVITY_API_URL"),
gra... | 23.178571 | 59 | 0.750385 |
7a25dc1c179825d729d6e545dc44f7edbd813697 | 2,987 | exs | Elixir | test/chat_api_web/controllers/account_controller_test.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | test/chat_api_web/controllers/account_controller_test.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | test/chat_api_web/controllers/account_controller_test.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.AccountControllerTest do
use ChatApiWeb.ConnCase, async: true
import ChatApi.Factory
alias ChatApi.Accounts.Account
@create_attrs %{
company_name: "some company_name"
}
@update_attrs %{
company_name: "some updated company_name"
}
@invalid_attrs %{company_name: nil}
def ... | 29.87 | 84 | 0.638768 |
7a25f27a995a320f5fe309bb6a8df51d5d444860 | 475 | ex | Elixir | lib/parsers/list.ex | Aetherus/saxon | 11c28d9f8ba33bd6ae56e519b12bd20798c3003e | [
"MIT"
] | null | null | null | lib/parsers/list.ex | Aetherus/saxon | 11c28d9f8ba33bd6ae56e519b12bd20798c3003e | [
"MIT"
] | null | null | null | lib/parsers/list.ex | Aetherus/saxon | 11c28d9f8ba33bd6ae56e519b12bd20798c3003e | [
"MIT"
] | null | null | null | defmodule Saxon.Parsers.LIST do
defstruct buffer: [], attributes: %{}
def new(attributes \\ %{}), do: %__MODULE__{attributes: attributes}
def update(%__MODULE__{buffer: _} = parser, chunk) when is_binary(chunk) do
parser
end
def update(%__MODULE__{buffer: buffer} = parser, {chunk, _}) do
%{parser |... | 27.941176 | 77 | 0.682105 |
7a2625a45ae4ee7059272562fc2b43d4442f79f7 | 1,840 | ex | Elixir | lib/hexpm/web/controllers/api/user_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/api/user_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/api/user_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.UserController do
use Hexpm.Web, :controller
plug :authorize, [domain: "api", resource: "read"] when action in [:test]
plug :authorize, [domain: "api", resource: "read"] when action in [:me]
def create(conn, params) do
params = email_param(params)
case Users.add(params, audit:... | 24.210526 | 98 | 0.61413 |
7a266799f327ab3dc332bbc8f8b964d5b201202f | 1,033 | exs | Elixir | config/config.exs | karembadawy/egcovac | a1ddb339656d41b29ea098cd8be6c4934dec6eee | [
"MIT"
] | null | null | null | config/config.exs | karembadawy/egcovac | a1ddb339656d41b29ea098cd8be6c4934dec6eee | [
"MIT"
] | null | null | null | config/config.exs | karembadawy/egcovac | a1ddb339656d41b29ea098cd8be6c4934dec6eee | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :egcovac,
ecto_repos: [Egcovac.Repo]
#... | 32.28125 | 86 | 0.769603 |
7a266832152a2aefc2610025455d8469cea53c14 | 1,855 | ex | Elixir | apps/re/lib/interests/interest.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/lib/interests/interest.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/interests/interest.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.Interest do
@moduledoc """
Schema module for storing interest in a listing
"""
use Ecto.Schema
import Ecto.Changeset
alias Re.{
Accounts.Users,
BuyerLead
}
schema "interests" do
field :uuid, Ecto.UUID
field :name, :string
field :email, :string
field :phone, :strin... | 24.090909 | 90 | 0.671159 |
7a268c619403e1a9530f3e1249b0c4a7225a07a4 | 9,622 | ex | Elixir | lib/bamboo/adapters/elastic_email_adapter.ex | KineticCafe/bamboo_elastic_email | f88521805eabc55c021fbe1a755f0cae3533db63 | [
"MIT"
] | 1 | 2018-11-09T00:58:44.000Z | 2018-11-09T00:58:44.000Z | lib/bamboo/adapters/elastic_email_adapter.ex | KineticCafe/bamboo_elastic_email | f88521805eabc55c021fbe1a755f0cae3533db63 | [
"MIT"
] | 3 | 2018-07-19T03:13:52.000Z | 2018-08-19T00:59:42.000Z | lib/bamboo/adapters/elastic_email_adapter.ex | KineticCafe/bamboo_elastic_email | f88521805eabc55c021fbe1a755f0cae3533db63 | [
"MIT"
] | 2 | 2018-07-18T13:48:13.000Z | 2020-11-13T06:27:29.000Z | defmodule Bamboo.ElasticEmailAdapter do
@moduledoc """
Sends email using ElasticEmail's JSON API.
Use this adapter to send emails through ElasticEmail's API. Requires that an
API key is set in the config.
This version is extracted from a hastily-constructed adapter for a Kinetic
Commerce project. It makes... | 30.449367 | 97 | 0.662232 |
7a268d1248901654aaee735bf8ae3f702ee4efa8 | 171 | ex | Elixir | lib/request/session_ended_request.ex | Code-Mercenaries/phoenix_alexa | 168d212f0a1653f0b08b1499f695020004634751 | [
"MIT"
] | null | null | null | lib/request/session_ended_request.ex | Code-Mercenaries/phoenix_alexa | 168d212f0a1653f0b08b1499f695020004634751 | [
"MIT"
] | null | null | null | lib/request/session_ended_request.ex | Code-Mercenaries/phoenix_alexa | 168d212f0a1653f0b08b1499f695020004634751 | [
"MIT"
] | null | null | null | defmodule PhoenixAlexa.SessionEndedRequest do
defstruct type: "SessionEndedRequest",
requestId: nil,
timestamp: nil,
reason: nil
end
| 24.428571 | 45 | 0.643275 |
7a269a8f8e99c75eebc246714b33f2ff0a6b8159 | 5,097 | ex | Elixir | lib/q.ex | gpedic/ex_que | 12fc7fb370009988ed9e95aed9122df6186cf8f7 | [
"MIT"
] | null | null | null | lib/q.ex | gpedic/ex_que | 12fc7fb370009988ed9e95aed9122df6186cf8f7 | [
"MIT"
] | null | null | null | lib/q.ex | gpedic/ex_que | 12fc7fb370009988ed9e95aed9122df6186cf8f7 | [
"MIT"
] | null | null | null | defmodule Q do
@moduledoc """
Documentation for `Q`.
"""
alias __MODULE__
defstruct operations: [], names: MapSet.new()
@type changes :: map
@type run :: (changes -> {:ok | :error, any}) | {module, atom, [any]}
@typep operation :: {:run, run} | {:put, any} | {:inspect, Keyword.t()}
@typep operations ... | 29.293103 | 124 | 0.611144 |
7a269d0168fb0cbbefc66f73a44d6bbc7f45e827 | 41,690 | ex | Elixir | lib/elixir/lib/string.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [length: 1]
defmodule String do
@moduledoc ~S"""
A String in Elixir is a UTF-8 encoded binary.
## Codepoints and graphemes
The functions in this module act according to the Unicode
Standard, version 6.3.0. As per the standard, a codepoint is
an Unicode Character, which may be repre... | 25.991272 | 109 | 0.627657 |
7a269de93f5e3e51597afd55f920b66b3bccac81 | 1,604 | ex | Elixir | apps/server/lib/session.ex | cambrian-era/RadicalMUD | d839e2ccf251b662ed08ad7b03a8564a313bde5e | [
"MIT"
] | null | null | null | apps/server/lib/session.ex | cambrian-era/RadicalMUD | d839e2ccf251b662ed08ad7b03a8564a313bde5e | [
"MIT"
] | null | null | null | apps/server/lib/session.ex | cambrian-era/RadicalMUD | d839e2ccf251b662ed08ad7b03a8564a313bde5e | [
"MIT"
] | null | null | null | defmodule RadServer.Session.Telnet do
@enforce_keys [:id, :middleware]
defstruct id: "",
data: <<>>,
time: 0,
opts: %{},
middleware: []
@type t() :: %__MODULE__{
id: String.t(),
data: <<>>,
time: number(),
opts: Map.t(),
... | 21.972603 | 86 | 0.579177 |
7a26a33aa33c8308af300e8ffd5899458c0986f4 | 378 | ex | Elixir | plugins/one_admin/lib/one_admin_web/views/error_view.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_admin/lib/one_admin_web/views/error_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_admin/lib/one_admin_web/views/error_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneAdminWeb.ErrorView do
use OneAdminWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templ... | 21 | 47 | 0.703704 |
7a26abfb700c967a066e4f54ab65a3a964fa6e97 | 435 | ex | Elixir | lib/layers/queries/helper/doc.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | 1 | 2020-12-30T18:30:32.000Z | 2020-12-30T18:30:32.000Z | lib/layers/queries/helper/doc.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | lib/layers/queries/helper/doc.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | defmodule MongoAgile.Queries.Helper.Doc do
@moduledoc false
defmacro __using__(_opts) do
quote do
@spec doc(map) :: map
def doc(query) do
case apply(__MODULE__, :get_doc, [query]) do
nil -> %{}
doc -> doc
end
end
@spec doc(map, map) :: map
def ... | 19.772727 | 52 | 0.558621 |
7a26d064511d4a2e024a44392ca20fd2472230fb | 3,930 | exs | Elixir | test/carrot/connection_manager_test.exs | bleacherreport/carrot | 8a5437581e5937c98b3e7acae8edeae0b0a61608 | [
"Apache-2.0"
] | 4 | 2018-06-29T15:04:49.000Z | 2019-02-04T18:42:26.000Z | test/carrot/connection_manager_test.exs | bleacherreport/kanin | 8a5437581e5937c98b3e7acae8edeae0b0a61608 | [
"Apache-2.0"
] | 1 | 2018-07-09T17:53:39.000Z | 2018-07-17T20:10:00.000Z | test/carrot/connection_manager_test.exs | bleacherreport/kanin | 8a5437581e5937c98b3e7acae8edeae0b0a61608 | [
"Apache-2.0"
] | null | null | null | defmodule Carrot.ConnectionManagerTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias Carrot.Backoff
alias Carrot.ConnectionManager, as: CM
setup do
username = System.get_env("RABBITMQ_USER") || "guest"
password = System.get_env("RABBITMQ_PASSWORD") || "guest"
host = System.get_env("RABBITMQ... | 29.548872 | 96 | 0.620356 |
7a270e30a8f4388c5fbc5cef22631522babdcf81 | 158 | exs | Elixir | config/config.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 2 | 2018-06-23T11:43:34.000Z | 2019-01-07T10:52:42.000Z | config/config.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-21T01:20:04.000Z | 2018-06-21T01:20:04.000Z | config/config.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-30T21:40:51.000Z | 2018-06-30T21:40:51.000Z | use Mix.Config
# Import Umbrella apps configs
import_config "../apps/*/config/config.exs"
# Import global environment config
import_config "#{Mix.env}.exs"
| 19.75 | 43 | 0.759494 |
7a2733bd1e652b1f45f874bb74eeb5b6f5149b6c | 15,880 | ex | Elixir | lib/ueberauth.ex | chulkilee/ueberauth | 42e93e12c9a63038acecfa2e8b36e3f6d6bd465c | [
"MIT"
] | null | null | null | lib/ueberauth.ex | chulkilee/ueberauth | 42e93e12c9a63038acecfa2e8b36e3f6d6bd465c | [
"MIT"
] | null | null | null | lib/ueberauth.ex | chulkilee/ueberauth | 42e93e12c9a63038acecfa2e8b36e3f6d6bd465c | [
"MIT"
] | null | null | null | defmodule Ueberauth do
@moduledoc """
Ueberauth is two-phase authentication framework that provides a clear API -
allowing for many strategies to be created and shared within the community. It
is heavily inspired by [Omniauth](https://github.com/intridea/omniauth). You
could call it a port but it is significa... | 36.338673 | 98 | 0.708879 |
7a2776e07e41ac74ac5106e9c29629f47dbdeac8 | 1,298 | ex | Elixir | lib/plaid/payment_initiation/payment.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | lib/plaid/payment_initiation/payment.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | lib/plaid/payment_initiation/payment.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.PaymentInitiation.Payment do
@moduledoc """
[Plaid API payment initiation payment schema.](https://plaid.com/docs/api/products/#payment_initiation-recipient-list-response-recipients)
"""
@behaviour Plaid.Castable
alias Plaid.Castable
alias Plaid.PaymentInitiation.{Amount, Schedule}
@typ... | 27.617021 | 140 | 0.655624 |
7a27d8b8e296210beebeef4de98902b2ee8a29f3 | 2,831 | ex | Elixir | apps/theta_web/lib/theta_web/controllers/cms/article_controller.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta_web/lib/theta_web/controllers/cms/article_controller.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta_web/lib/theta_web/controllers/cms/article_controller.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule ThetaWeb.CMS.ArticleController do
use ThetaWeb, :controller
alias Theta.{CMS, Repo, CacheDB}
alias Theta.CMS.Article
# plug :authorize_article when action in [:show, :edit, :update, :delete]
def index(conn, _params) do
article =
CMS.list_article()
|> Enum.sort_by(& &1.updated_at,... | 29.8 | 97 | 0.638644 |
7a282afad80dd0112917bcd17950eed1a62f8b62 | 1,843 | ex | Elixir | lib/elixir/lib/binary/chars.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/elixir/lib/binary/chars.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/binary/chars.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | import Kernel, except: [to_binary: 1]
defprotocol Binary.Chars do
@moduledoc %B"""
The Binary.Chars protocol is responsible for
converting a structure to a Binary (only if applicable).
The only function required to be implemented is
`to_binary` which does the conversion.
The `to_binary` function automatic... | 21.682353 | 62 | 0.688551 |
7a282e4ea652eb6725dd0c9be3974d3d3272041d | 1,025 | exs | Elixir | lesson_08/demo/i18n/config/config.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_08/demo/i18n/config/config.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_08/demo/i18n/config/config.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :i18n, I18nWeb.... | 32.03125 | 86 | 0.760976 |
7a282f2766d46ff1b30d3fcac6462281267eae87 | 168 | exs | Elixir | priv/repo/migrations/20200630013439_add_tid_to_index_cases.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | priv/repo/migrations/20200630013439_add_tid_to_index_cases.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200630013439_add_tid_to_index_cases.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Repo.Migrations.AddTidToIndexCases do
use Ecto.Migration
def change do
alter table(:index_cases) do
add :tid, :string
end
end
end
| 16.8 | 54 | 0.714286 |
7a283c0c4c66d418713f4817a6555c1743d7287a | 1,089 | ex | Elixir | lib/mix/lib/mix/tasks/compile.all.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/mix/lib/mix/tasks/compile.all.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.all.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.All do
use Mix.Task
@moduledoc false
@recursive true
# This is an internal task used by "mix compile" which
# is meant to be recursive and be invoked for each child
# project.
def run(args) do
Mix.Project.get!
# Build the project structure so we can write down compi... | 24.2 | 79 | 0.65932 |
7a2849e4f3251f9bceecdc301a96de4f0df57b84 | 134,030 | ex | Elixir | lib/elixir/lib/kernel.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | # Use elixir_bootstrap module to be able to bootstrap Kernel.
# The bootstrap module provides simpler implementations of the
# functions removed, simple enough to bootstrap.
import Kernel,
except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2, defmacro: 1, defmacro: 2, defmacrop: 2]
import :elixir_bootstrap
defmodul... | 26.704523 | 104 | 0.635112 |
7a285a2b75a83a360114da79126b91eb2bfb3e7e | 414 | ex | Elixir | year_2015/lib/input_test_file.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2015/lib/input_test_file.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2015/lib/input_test_file.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule InputTestFile do
def filename_for(n) do
day = n |> Integer.to_string() |> String.pad_leading(2, "0")
Path.join(:code.priv_dir(:year_2015), "test/day_#{day}.txt")
end
def contents_of(n, mode \\ :read)
def contents_of(n, :stream) do
filename_for(n)
|> File.stream!([], :line)
end
d... | 21.789474 | 64 | 0.625604 |
7a28913a8c09414587ef9af915e2831c5bcac926 | 49,301 | ex | Elixir | deps/ecto_sql/lib/ecto/adapters/postgres/connection.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/ecto_sql/lib/ecto/adapters/postgres/connection.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/ecto_sql/lib/ecto/adapters/postgres/connection.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Postgrex) do
defmodule Ecto.Adapters.Postgres.Connection do
@moduledoc false
@default_port 5432
@behaviour Ecto.Adapters.SQL.Connection
## Module and Options
@impl true
def child_spec(opts) do
opts
|> Keyword.put_new(:port, @default_port)
|> Postgrex... | 36.791791 | 154 | 0.601793 |
7a28a85a749fc2dcbbacca459118064c38214954 | 7,573 | ex | Elixir | apps/legion/lib/mix/tasks/legion.reg.locale.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/lib/mix/tasks/legion.reg.locale.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/lib/mix/tasks/legion.reg.locale.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Legion.Reg.Locale do
@moduledoc """
Registers locales to the repository.
"""
use Legion.RegistryDirectory.Synchronization, site: Legion.Messaging.Settings, repo: Legion.Repo
alias Legion.Repo
alias Legion.Internationalization.Locale
defmacrop put_locale(language, abbreviation, varian... | 39.036082 | 98 | 0.597782 |
7a28b2a9c38b534946b371adb88820858199cab4 | 259 | exs | Elixir | lesson_07/demo/auth_umbrella/apps/auth/priv/repo/migrations/20200217141012_create_users.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_07/demo/auth_umbrella/apps/auth/priv/repo/migrations/20200217141012_create_users.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_07/demo/auth_umbrella/apps/auth/priv/repo/migrations/20200217141012_create_users.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule Auth.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :username, :string, null: false
add :hashed_password, :string, null: false
add :role, :string, null: false
end
end
end
| 21.583333 | 48 | 0.675676 |
7a28c3352f483148b9630dc548cb8036b2d80140 | 2,226 | exs | Elixir | test/users/keys_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | test/users/keys_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | test/users/keys_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 1 | 2018-11-02T15:59:28.000Z | 2018-11-02T15:59:28.000Z | defmodule Tentacat.Users.KeysTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Users.Keys
doctest Tentacat.Users.Keys
@client Tentacat.Client.new(%{access_token: "8e663c8614ced27c09b963f806ac46776a29db50"})
@public_key "\
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABA... | 32.26087 | 133 | 0.748428 |
7a28e1da67bee56475c966b4956a8667b1e68b1f | 1,068 | exs | Elixir | clients/firestore/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firestore/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firestore/test/test_helper.exs | 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... | 29.666667 | 83 | 0.7397 |
7a29092ea1a046043fe94016cd67f2590402a062 | 2,912 | ex | Elixir | clients/run/lib/google_api/run/v1/model/audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/run/lib/google_api/run/v1/model/audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/run/lib/google_api/run/v1/model/audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 58.24 | 1,106 | 0.741415 |
7a2916b0d6a04b1bcc0c90510224336315b3545d | 2,894 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/restrict_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/restrict_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/restrict_item.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... | 45.936508 | 230 | 0.738079 |
7a291d9ce913158b57d739e7e5ce05fc78d18975 | 951 | exs | Elixir | mix.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 31 | 2021-05-29T22:57:04.000Z | 2022-03-13T16:24:57.000Z | mix.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-04T23:34:38.000Z | 2021-07-16T16:01:20.000Z | mix.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-11T13:10:04.000Z | 2022-02-11T13:33:16.000Z | defmodule Rfx.MixProject do
use Mix.Project
def project do
[
app: :rfx,
version: "0.0.1",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/andyl/rfx",
docs: docs(),
deps: deps()
]
end
def application do
[
extra_... | 20.234043 | 68 | 0.523659 |
7a2945eeb4b9f808c60fd1ddc32700493ba84edb | 2,414 | exs | Elixir | config/prod.exs | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | config/prod.exs | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | config/prod.exs | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 33.527778 | 69 | 0.709196 |
7a2983793f10ce64a71af29ddeb1222c706d86f4 | 5,140 | ex | Elixir | lib/firefighter.ex | dnlserrano/firefighter | dca8a8f199dc4a30c19a55abf29f3a8e17209c5b | [
"MIT"
] | 5 | 2020-11-26T11:47:21.000Z | 2021-03-26T23:18:49.000Z | lib/firefighter.ex | dnlserrano/firefighter | dca8a8f199dc4a30c19a55abf29f3a8e17209c5b | [
"MIT"
] | 8 | 2021-03-09T18:38:40.000Z | 2022-03-20T18:08:04.000Z | lib/firefighter.ex | dnlserrano/firefighter | dca8a8f199dc4a30c19a55abf29f3a8e17209c5b | [
"MIT"
] | 1 | 2021-03-09T18:08:16.000Z | 2021-03-09T18:08:16.000Z | defmodule Firefighter do
@moduledoc """
Documentation for `Firefighter`.
"""
use GenServer
require Logger
@default_batch_size 40
@default_flush_grace_period 30_000
@default_interval 2_000
defstruct [
:delivery_stream_name,
:batch_size,
:interval,
:records,
:timer,
:flush_gra... | 25.572139 | 87 | 0.652724 |
7a2992fde14a1813839e30b2be87fd10b3a8600e | 374 | ex | Elixir | lib/hlds_rcon/server_info.ex | JonnyPower/hlds_rcon | a3e9969c70032ea9c4635af60bb06115ee8bba9a | [
"MIT"
] | null | null | null | lib/hlds_rcon/server_info.ex | JonnyPower/hlds_rcon | a3e9969c70032ea9c4635af60bb06115ee8bba9a | [
"MIT"
] | null | null | null | lib/hlds_rcon/server_info.ex | JonnyPower/hlds_rcon | a3e9969c70032ea9c4635af60bb06115ee8bba9a | [
"MIT"
] | null | null | null | defmodule HLDSRcon.ServerInfo do
@moduledoc """
A struct representing rcon connection information for a HLDS server.
```
%HLDSRcon.ServerInfo{
host: "127.0.0.1",
port: 27015,
password: "foo"
}
```
"""
@default_port 27015
@doc false
def default_port, do: @default_port
defstruct host:... | 19.684211 | 70 | 0.660428 |
7a2a52794cfa43188c2116b2b3cf73778d219990 | 1,047 | exs | Elixir | test/suite/draft7/max_properties_test.exs | starbelly/json_xema | 73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79 | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | test/suite/draft7/max_properties_test.exs | starbelly/json_xema | 73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79 | [
"MIT"
] | null | null | null | test/suite/draft7/max_properties_test.exs | starbelly/json_xema | 73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79 | [
"MIT"
] | null | null | null | defmodule Draft7.MaxPropertiesTest do
use ExUnit.Case, async: true
import JsonXema, only: [valid?: 2]
describe "maxProperties validation" do
setup do
%{schema: ~s(
{
"maxProperties": 2
}
) |> Jason.decode!() |> JsonXema.new()}
end
test "shorter is valid", %{s... | 22.76087 | 58 | 0.553964 |
7a2ac2a061cb9337812745405a5235150bb540e2 | 1,447 | exs | Elixir | apps/gitgud/mix.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud/mix.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud/mix.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Mixfile do
use Mix.Project
def project do
[
app: :gitgud,
version: "0.3.8",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mi... | 23.721311 | 77 | 0.507256 |
7a2ac879043e75d58d9400c772dd0bac8a376793 | 79 | ex | Elixir | lib/mix_systemd_deploy_web/views/page_view.ex | cogini/mix-systemd-deploy-example | 7b0720a46a14fd0f7f61f88f7fdc26fdd7f05772 | [
"Apache-2.0"
] | 4 | 2019-03-01T07:26:26.000Z | 2021-11-05T13:53:07.000Z | lib/mix_systemd_deploy_web/views/page_view.ex | cogini/mix-systemd-deploy-example | 7b0720a46a14fd0f7f61f88f7fdc26fdd7f05772 | [
"Apache-2.0"
] | null | null | null | lib/mix_systemd_deploy_web/views/page_view.ex | cogini/mix-systemd-deploy-example | 7b0720a46a14fd0f7f61f88f7fdc26fdd7f05772 | [
"Apache-2.0"
] | null | null | null | defmodule MixSystemdDeployWeb.PageView do
use MixSystemdDeployWeb, :view
end
| 19.75 | 41 | 0.848101 |
7a2addf6a7f277c374c152e932d5a6b4c6c87892 | 2,498 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/dimension_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/dimension_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/dimension_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.290323 | 389 | 0.692954 |
7a2b0841b451be16932b32bf077cdaa3a08dec83 | 406 | ex | Elixir | lib/arp_server/dapp_manager/supervisor.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | 3 | 2018-07-23T01:50:50.000Z | 2018-08-13T13:12:05.000Z | lib/arp_server/dapp_manager/supervisor.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | lib/arp_server/dapp_manager/supervisor.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | defmodule ARP.DappManager.Supervisor do
@moduledoc """
Supervisor
"""
alias ARP.DappManager.Pool
use Supervisor
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
def init(_arg) do
children = [
{DynamicSupervisor, strategy: :one_for_one, name: :dapp_poo... | 17.652174 | 68 | 0.687192 |
7a2b18b48d5447779a71adb58d542c722c4036e5 | 1,853 | exs | Elixir | lib/elixir/test/elixir/calendar/iso_test.exs | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/test/elixir/calendar/iso_test.exs | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar/iso_test.exs | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Calendar.ISOTest do
use ExUnit.Case, async: true
doctest Calendar.ISO
describe "date_from_iso_days" do
test "with positive dates" do
assert {0, 1, 1} == iso_day_roundtrip(0, 1, 1)
assert {0, 12, 31} == iso_day_roundtrip(0, 12, 31)
... | 37.06 | 82 | 0.620615 |
7a2b19fff2ee9c66aab3f993de5084909ed12f35 | 741 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/registry.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.Containers/lib/microsoft/azure/management/containers/model/registry.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/registry.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.Containers.Model.Registry do
@moduledoc """
An object that represents a container registry.
"""
@derive [Poiso... | 21.794118 | 84 | 0.647773 |
7a2b50bb0394377b483f36d14fa3da1857547671 | 615 | ex | Elixir | lib/generate/get_queued_transfers_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/generate/get_queued_transfers_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/generate/get_queued_transfers_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.GetQueuedTransfersResponse do
import XmlBuilder
use CWMP.Protocol.GenerateHelpers
def generate(req) do
element("cwmp:GetQueuedTransfersResponse", [buildQueuedTransferList(req.transferlist)])
end
defp buildQueuedTransferList(transferlist) do
... | 34.166667 | 103 | 0.741463 |
7a2b635f4f695d24972e9394aac03c2563586637 | 627 | ex | Elixir | lib/mail_slurp_api/model/basic_auth_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/basic_auth_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/basic_auth_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"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.BasicAuthOptions do
@moduledoc """
Basic Authentication options for webhooks. Will be used is present when calling webhook endp... | 22.392857 | 100 | 0.704944 |
7a2b960da24ad1cd22d223468f90705c8b97cba1 | 1,978 | ex | Elixir | lib/elastic.ex | hpaul/elastic | fd7ec5084d8f1fc3b8e572ae889fdca33a47014b | [
"MIT"
] | null | null | null | lib/elastic.ex | hpaul/elastic | fd7ec5084d8f1fc3b8e572ae889fdca33a47014b | [
"MIT"
] | null | null | null | lib/elastic.ex | hpaul/elastic | fd7ec5084d8f1fc3b8e572ae889fdca33a47014b | [
"MIT"
] | null | null | null | defmodule Elastic do
@moduledoc ~S"""
Elastic is a thin veneer over HTTPotion to help you talk to your Elastic Search stores.
Elastic provides five main ways of talking to the stores:
* `Elastic.Document.API`: Adds functions to a module to abstract away some of the mess of actions on an index.
* `Elastic.I... | 40.367347 | 212 | 0.734075 |
7a2bb3f15e1de1ec291524ae155cd2cbf4a50d59 | 2,527 | ex | Elixir | core/handler/gear_action/g2g.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/handler/gear_action/g2g.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/handler/gear_action/g2g.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Handler.GearAction.G2g do
alias Antikythera.G2gRequest , as: GReq
alias Antikythera.G2gResponse, as: GRes
alias Antikythera.{Env, Conn, Context, GearName}
alias AntikytheraCore.{GearModule, GearTask}
alias Ant... | 48.596154 | 129 | 0.71666 |
7a2be6dda2e96b09a7b1ab114f052aff58e8dee3 | 699 | ex | Elixir | lib/sift/events/types/app.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/events/types/app.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/events/types/app.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | defmodule Sift.Events.Types.App do
alias Sift.Schema
alias Sift.Schema.{Field, Type}
@behaviour Type
@impl Type
def type_alias, do: :app
@fields %{
os: %Field{key: "$os"},
os_version: %Field{key: "$os_version"},
device_manufacturer: %Field{key: "$device_manufacturer"},
device_model: %Fiel... | 24.964286 | 61 | 0.658083 |
7a2c18e6bb5ecbc37e0cc4a2c10b370c8089e36b | 277 | exs | Elixir | day8_test.exs | hermanstehouwer/adventofcode2021 | 9000f0d3d96825f9ca1bb047cd7530e336022a16 | [
"CC0-1.0"
] | null | null | null | day8_test.exs | hermanstehouwer/adventofcode2021 | 9000f0d3d96825f9ca1bb047cd7530e336022a16 | [
"CC0-1.0"
] | null | null | null | day8_test.exs | hermanstehouwer/adventofcode2021 | 9000f0d3d96825f9ca1bb047cd7530e336022a16 | [
"CC0-1.0"
] | null | null | null | ExUnit.start()
defmodule Testing do
use ExUnit.Case, async: true
test "segment_solver1" do
input = "be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe"
s = Segments.decode_from_input(input)
assert s.output == 8394
end
end
| 25.181818 | 100 | 0.729242 |
7a2c2643a67e60c28cd6cdf0592239a37cb8e2c1 | 956 | ex | Elixir | lib/monoid/law.ex | lerencao/MonadEx | b8276cfc354da1e31d82e5ca9dfaa624340e835b | [
"MIT"
] | null | null | null | lib/monoid/law.ex | lerencao/MonadEx | b8276cfc354da1e31d82e5ca9dfaa624340e835b | [
"MIT"
] | null | null | null | lib/monoid/law.ex | lerencao/MonadEx | b8276cfc354da1e31d82e5ca9dfaa624340e835b | [
"MIT"
] | 1 | 2018-09-27T20:47:16.000Z | 2018-09-27T20:47:16.000Z | defmodule Monoid.Law do
@moduledoc false
@doc false
def closure?(monoid1, monoid2) when is_list(monoid1) and is_list(monoid2) do
Monoid.mappend(monoid1, monoid2) |> is_list
end
def closure?(monoid1, monoid2) when is_binary(monoid1) and is_binary(monoid2) do
Monoid.mappend(monoid1, monoid2) |> is_bina... | 32.965517 | 128 | 0.712343 |
7a2c2c917ade76de2696748006219b2bcea87250 | 4,139 | exs | Elixir | test/cubdb/reader_test.exs | LostKobrakai/cubdb | 457ac8b94320b26d851f1a36d75001dbba2edc5a | [
"Apache-2.0"
] | null | null | null | test/cubdb/reader_test.exs | LostKobrakai/cubdb | 457ac8b94320b26d851f1a36d75001dbba2edc5a | [
"Apache-2.0"
] | null | null | null | test/cubdb/reader_test.exs | LostKobrakai/cubdb | 457ac8b94320b26d851f1a36d75001dbba2edc5a | [
"Apache-2.0"
] | null | null | null | defmodule CubDB.Store.ReaderTest do
use ExUnit.Case, async: true
alias CubDB.Btree
alias CubDB.Store
alias CubDB.Reader
defmodule TestCaller do
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, [], [])
end
def run(pid, btree, operation) do
GenServer.call(pid, {... | 30.433824 | 98 | 0.561488 |
7a2c479d923d90d6039e3e6cfa20848472970642 | 209 | exs | Elixir | test/json_to_elixir_web/controllers/page_controller_test.exs | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | 1 | 2020-01-19T17:52:05.000Z | 2020-01-19T17:52:05.000Z | test/json_to_elixir_web/controllers/page_controller_test.exs | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | null | null | null | test/json_to_elixir_web/controllers/page_controller_test.exs | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | null | null | null | defmodule JSONToElixirWeb.PageControllerTest do
use JSONToElixirWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.222222 | 60 | 0.698565 |
7a2c4fcbc89502ae6698d2f009fe92085d850679 | 1,376 | exs | Elixir | test/freddy/integration/rpc/server_test.exs | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 10 | 2017-06-28T11:39:39.000Z | 2021-11-19T23:23:16.000Z | test/freddy/integration/rpc/server_test.exs | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 16 | 2017-01-07T15:34:36.000Z | 2021-05-05T11:07:31.000Z | test/freddy/integration/rpc/server_test.exs | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 4 | 2018-10-08T19:54:46.000Z | 2021-05-05T10:49:10.000Z | defmodule Freddy.Integration.RPC.ServerTest do
use Freddy.IntegrationCase
defmodule TestServer do
use Freddy.RPC.Server
@config [
queue: [name: "freddy-test-rpc-queue"]
]
def start_link(conn) do
Freddy.RPC.Server.start_link(__MODULE__, conn, @config, [])
end
def handle_reques... | 23.724138 | 86 | 0.65189 |
7a2c7b3b0c77a2e0de16f104e90f0d42d96dbaf7 | 211 | exs | Elixir | elixir/priv/repo/migrations/20161021185719_create_customer.exs | afronski/playground-graphql | 903f3dc25e64fe6f45903a130cdb8d4b64990cf5 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20161021185719_create_customer.exs | afronski/playground-graphql | 903f3dc25e64fe6f45903a130cdb8d4b64990cf5 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20161021185719_create_customer.exs | afronski/playground-graphql | 903f3dc25e64fe6f45903a130cdb8d4b64990cf5 | [
"MIT"
] | null | null | null | defmodule Blog.Repo.Migrations.CreateCustomer do
use Ecto.Migration
def change do
create table(:customers) do
add :name, :string
add :address, :string
timestamps()
end
end
end
| 15.071429 | 48 | 0.663507 |
7a2ca82503d0ee81145b20bec9627904a2b5aa2c | 438 | exs | Elixir | priv/repo/migrations/20200314183243_add_repo_owner_to_projects.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | priv/repo/migrations/20200314183243_add_repo_owner_to_projects.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | priv/repo/migrations/20200314183243_add_repo_owner_to_projects.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | defmodule Adoptoposs.Repo.Migrations.AddRepoOwnerToProjects do
use Ecto.Migration
def up do
alter table(:projects) do
add :repo_owner, :string, default: ""
end
execute "CREATE INDEX projects_repo_owner_trgm_index ON projects USING gin (repo_owner gin_trgm_ops)"
end
def down do
execute "... | 21.9 | 105 | 0.730594 |
7a2cad5594af1942019a9042d330913f74197039 | 2,962 | ex | Elixir | interop/lib/interop/server.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 5 | 2022-02-08T13:51:08.000Z | 2022-02-09T14:12:47.000Z | interop/lib/interop/server.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 1 | 2022-02-08T15:46:07.000Z | 2022-02-08T15:46:07.000Z | interop/lib/interop/server.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | null | null | null | defmodule Interop.Server do
@moduledoc false
use Falco.Server, service: Grpc.Testing.TestService.Service, compressors: [Falco.Compressor.Gzip]
import ExUnit.Assertions, only: [assert: 1, refute: 1]
def empty_call(_, _stream) do
Grpc.Testing.Empty.new()
end
def unary_call(req, stream) do
if req.ex... | 31.178947 | 113 | 0.675895 |
7a2cb2a528a05007fc30965f5cca50e6a07fece3 | 475 | ex | Elixir | priv/templates/phx.gen.notifier/notifier.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | priv/templates/phx.gen.notifier/notifier.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | priv/templates/phx.gen.notifier/notifier.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule <%= inspect context.module %> do
import Swoosh.Email
alias <%= inspect context.base_module %>.Mailer<%= for message <- notifier_messages do %>
def deliver_<%= message %>(%{name: name, email: email}) do
new()
|> to({name, email})
|> from({"Phoenix Team", "team@example.com"})
|> subject("... | 31.666667 | 91 | 0.597895 |
7a2d0ea077c21b34443574f0874d7e9fd630e29d | 1,077 | ex | Elixir | apps/thundermoon_web/lib/thundermoon_web/channels/user_socket.ex | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/thundermoon_web/lib/thundermoon_web/channels/user_socket.ex | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/thundermoon_web/lib/thundermoon_web/channels/user_socket.ex | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule ThundermoonWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ThundermoonWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for al... | 31.676471 | 86 | 0.700093 |
7a2d5f73ecfe66beb682b5d83aa11a4d82f17736 | 4,304 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.990476 | 205 | 0.700279 |
7a2d6ae58f5f7aac3d637ce252226cb3efeb097f | 3,142 | ex | Elixir | lib/gcs_signed_url/crypto.ex | kianmeng/gcs_signed_url | be0bfd6816fc0afc3e9aa9c41e194fff3f886158 | [
"MIT"
] | null | null | null | lib/gcs_signed_url/crypto.ex | kianmeng/gcs_signed_url | be0bfd6816fc0afc3e9aa9c41e194fff3f886158 | [
"MIT"
] | null | null | null | lib/gcs_signed_url/crypto.ex | kianmeng/gcs_signed_url | be0bfd6816fc0afc3e9aa9c41e194fff3f886158 | [
"MIT"
] | null | null | null | defmodule GcsSignedUrl.Crypto do
@moduledoc """
Provides crypto functionality like signing and hashing strings.
"""
alias GcsSignedUrl.{Client, SignBlob}
@doc """
If you pass a `%GcsSignedUrl.Client{}` as second argument, this function signs the given string with the given
client's private key.
If yo... | 32.729167 | 146 | 0.666454 |
7a2d6c6e7cb1bc3ab56de48ecc8b0a4ff5c72b30 | 38,689 | ex | Elixir | lib/elixir/lib/system.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | 1 | 2021-03-29T14:28:49.000Z | 2021-03-29T14:28:49.000Z | lib/elixir/lib/system.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/system.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | defmodule System do
@moduledoc """
The `System` module provides functions that interact directly
with the VM or the host system.
## Time
The `System` module also provides functions that work with time,
returning different times kept by the system with support for
different time units.
One of the comp... | 30.296789 | 102 | 0.669027 |
7a2d9e8cfbe00eacf1b75d133b14b625ec64bbb4 | 414 | exs | Elixir | code/typespecs/simple1/test/test_helper.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/typespecs/simple1/test/test_helper.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/typespecs/simple1/test/test_helper.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 41.4 | 85 | 0.748792 |
7a2e022678a0e52ce95745cea83a6f25ec926770 | 423 | ex | Elixir | largest-substring/lib/sample3.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | largest-substring/lib/sample3.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | largest-substring/lib/sample3.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | defmodule Sample3 do
def length_of_longest_substring(s) do
cal(s, 0, 0, %{})
end
def cal(<<>>, max, count, _map) do
max(count, max)
end
def cal(<<c, rest::binary>>, max, count, map) do
prest = map[c]
case prest do
nil ->
map = Map.put(map, c, rest)
cal(rest, max, count... | 17.625 | 50 | 0.51773 |
7a2e068e2e450891490a966baec92439dbd9b09a | 640 | ex | Elixir | generated/elixir/lib/ipify/connection.ex | cliffano/openapi-ipify | 5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472 | [
"MIT"
] | 4 | 2018-08-24T10:45:15.000Z | 2022-03-05T04:22:54.000Z | generated/elixir/lib/ipify/connection.ex | cliffano/openapi-ipify | 5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472 | [
"MIT"
] | 8 | 2021-12-09T20:06:39.000Z | 2022-03-07T08:25:48.000Z | generated/elixir/lib/ipify/connection.ex | cliffano/openapi-ipify | 5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ipify.Connection do
@moduledoc """
Handle Tesla connections for Ipify.
"""
use Tesla
# Add any middleware here (authentication)
plug Tes... | 22.068966 | 91 | 0.704688 |
7a2e5a4a5151863977a3542961908cf6f68a4e9c | 2,039 | exs | Elixir | test/form/runner1_test.exs | ianrumford/plymio_ast | afd627ae596eff4e0751228b7d57eed5dc0022c4 | [
"MIT"
] | 2 | 2017-04-27T00:47:58.000Z | 2017-11-15T13:52:35.000Z | test/form/runner1_test.exs | ianrumford/plymio_ast | afd627ae596eff4e0751228b7d57eed5dc0022c4 | [
"MIT"
] | null | null | null | test/form/runner1_test.exs | ianrumford/plymio_ast | afd627ae596eff4e0751228b7d57eed5dc0022c4 | [
"MIT"
] | null | null | null | defmodule PlymioAstFormRunner1Test do
use PlymioAstHelpersTest
use Harnais.Attributes
test "realise: 1" do
helper_run_tests_form1(
test_specs: [
# basic values
[42],
["string"],
[:atom],
[nil],
# lists of basic values
[[1, nil, :two, nil, "tre... | 32.887097 | 114 | 0.455615 |
7a2e769efd7f39ca1014418acfeb3adc78fb8c76 | 2,831 | exs | Elixir | test/events_tools/presentations/presentations_test.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | test/events_tools/presentations/presentations_test.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | test/events_tools/presentations/presentations_test.exs | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityTools.PresentationsTest do
use CommunityTools.DataCase
alias CommunityTools.Presentations
describe "presentations" do
alias CommunityTools.Presentations.Presentation
@valid_attrs %{slides: "some slides", summary: "some summary", title: "some title"}
@update_attrs %{slides: "some ... | 40.442857 | 112 | 0.729777 |
7a2e77995df62cd6db93b5a2ad8d57ef180d46f5 | 1,064 | ex | Elixir | lib/inmana_web/views/error_view.ex | erickmp07/inmana | 580d050d7d90ba80656a4f999060a25b08f8a763 | [
"MIT"
] | null | null | null | lib/inmana_web/views/error_view.ex | erickmp07/inmana | 580d050d7d90ba80656a4f999060a25b08f8a763 | [
"MIT"
] | null | null | null | lib/inmana_web/views/error_view.ex | erickmp07/inmana | 580d050d7d90ba80656a4f999060a25b08f8a763 | [
"MIT"
] | null | null | null | defmodule InmanaWeb.ErrorView do
use InmanaWeb, :view
alias Ecto.Changeset
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, P... | 30.4 | 87 | 0.632519 |
7a2e86917ab19c200a961a43c74de26c5813778f | 28,496 | ex | Elixir | lib/phoenix_component.ex | chrismccord/phoenix_live_view | abaaeeff7080ce70727d162477f7cd513abff845 | [
"MIT"
] | null | null | null | lib/phoenix_component.ex | chrismccord/phoenix_live_view | abaaeeff7080ce70727d162477f7cd513abff845 | [
"MIT"
] | null | null | null | lib/phoenix_component.ex | chrismccord/phoenix_live_view | abaaeeff7080ce70727d162477f7cd513abff845 | [
"MIT"
] | null | null | null | defmodule Phoenix.Component do
@moduledoc ~S'''
API for function components.
A function component is any function that receives
an assigns map as argument and returns a rendered
struct built with [the `~H` sigil](`Phoenix.LiveView.Helpers.sigil_H/2`).
Here is an example:
defmodule MyComponent do
... | 27.585673 | 119 | 0.62293 |
7a2ee08d9e476db15866ae51668a4a1109e3eeaf | 419 | exs | Elixir | priv/templates/comgen.add.config/comspecs/experimental.exs | andyl/phx-cmdd | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 5 | 2019-05-23T23:25:25.000Z | 2019-05-31T12:10:59.000Z | priv/templates/comgen.add.config/comspecs/experimental.exs | andyl/comgen | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 3 | 2019-05-31T04:42:02.000Z | 2019-06-01T06:42:14.000Z | priv/templates/comgen.add.config/comspecs/experimental.exs | andyl/comgen | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 1 | 2019-06-01T05:04:14.000Z | 2019-06-01T05:04:14.000Z | use Mix.Config
config :comgen, Experimental,
spec_name: ExAccounts,
spec_shortdoc: "Experimental comspec",
spec_doc: nil,
spec_run_before: nil,
spec_run_after: nil,
aggregates: nil,
commands: nil,
command_handlers: nil,
command_routers: nil,
command_validators: nil,
events: nil,
event_handlers... | 19.045455 | 40 | 0.73747 |
7a2f0946876ae4d112606521b78c5cb6e1f17e60 | 3,731 | ex | Elixir | lib/ambry/series.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry/series.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry/series.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | defmodule Ambry.Series do
@moduledoc """
Functions for dealing with Series.
"""
import Ambry.SearchUtils
import Ecto.Query
alias Ambry.Repo
alias Ambry.Series.{Series, SeriesBook}
@doc """
Returns a limited list of series and whether or not there are more.
By default, it will limit to the first ... | 21.566474 | 93 | 0.621817 |
7a2f0cb8a8f2e933596487041ace608b2daa24bc | 91 | ex | Elixir | lib/banned_book_report_web/views/user_registration_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/views/user_registration_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/views/user_registration_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | defmodule BannedBookReportWeb.UserRegistrationView do
use BannedBookReportWeb, :view
end
| 22.75 | 53 | 0.868132 |
7a2f2bb431afaaac6fd2ee2044a7c6acf0f909ae | 177 | ex | Elixir | testData/org/elixir_lang/parser_definition/map_operation_parsing_test_case/MatchedPipeMapExpression.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/map_operation_parsing_test_case/MatchedPipeMapExpression.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/map_operation_parsing_test_case/MatchedPipeMapExpression.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | %{ current | Update.function() }
%{ current | Update.function }
%{ current | update() }
%{ current | update }
%{ current | @Update.function() }
%{ current | @Update.function }
| 22.125 | 33 | 0.621469 |
7a2f528b268a232d06724ebb39c7e7e6c54f50d3 | 583 | exs | Elixir | chatourius/test/views/error_view_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | chatourius/test/views/error_view_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | chatourius/test/views/error_view_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | defmodule Chatourius.ErrorViewTest do
use Chatourius.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(Chatourius.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
7a2f63c6cb23a4bf39236ee130b0063cd7c10343 | 5,153 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_entity.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_entity.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_entity.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... | 48.158879 | 370 | 0.723462 |
7a2f68b73c54eee2d84e719dd1455ebbb3d7f8b8 | 1,035 | exs | Elixir | test/monad_trans/except_test.exs | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | test/monad_trans/except_test.exs | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | 5 | 2018-07-20T12:36:25.000Z | 2018-08-01T04:55:46.000Z | test/monad_trans/except_test.exs | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | defmodule MonadTrans.ExceptTest do
use ExUnit.Case
alias Elixirdo.Typeclass.Functor
alias Elixirdo.Typeclass.Applicative
alias Elixirdo.Instance.MonadTrans.Except
alias Elixirdo.Instance.Maybe
alias Elixirdo.Instance.Either
doctest Elixirdo.Instance.MonadTrans.Except
use Elixirdo.Notation.Do
use Eli... | 21.5625 | 58 | 0.674396 |
7a2f81044063735d8f3014d5af6547a39be979e3 | 401 | exs | Elixir | config/test.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | config/test.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | config/test.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | use Mix.Config
config :source_academy, SourceAcademy.Endpoint,
http: [port: 4001],
server: false
config :source_academy, SourceAcademy.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "source_academy_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sand... | 23.588235 | 47 | 0.745636 |
7a2f86c62140df77ab8190064abf8546b51ad0c6 | 1,054 | ex | Elixir | lib/bell_web/channels/user_socket.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | lib/bell_web/channels/user_socket.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | 11 | 2021-03-11T05:46:57.000Z | 2021-12-08T15:39:25.000Z | lib/bell_web/channels/user_socket.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | defmodule BellWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "ring:*", BellWeb.RingChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie
... | 31 | 83 | 0.695446 |
7a2f961f530658dcea53f98dafb28c16a412ebcc | 294 | ex | Elixir | charts/lib/charts/line_chart/line_chart.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts/lib/charts/line_chart/line_chart.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts/lib/charts/line_chart/line_chart.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | defprotocol Charts.LineChart do
@spec points(Charts.chart() | Charts.ColumnChart.Dataset.t()) ::
list(Charts.LineChart.Point.t())
def points(chart)
@spec lines(Charts.chart() | Charts.ColumnChart.Dataset.t()) ::
list(Charts.LineChart.Line.t())
def lines(chart)
end
| 29.4 | 66 | 0.673469 |
7a2fa42fdf8241dd8a3b3e441da040fab86ef638 | 1,497 | exs | Elixir | test/smuggle_test.exs | amplifiedai/smuggle | b8460671d14d0d1e0ef1228b976ae1f86ea1158f | [
"Apache-2.0"
] | 2 | 2020-08-12T23:04:00.000Z | 2020-08-13T04:16:08.000Z | test/smuggle_test.exs | amplifiedai/smuggle | b8460671d14d0d1e0ef1228b976ae1f86ea1158f | [
"Apache-2.0"
] | null | null | null | test/smuggle_test.exs | amplifiedai/smuggle | b8460671d14d0d1e0ef1228b976ae1f86ea1158f | [
"Apache-2.0"
] | null | null | null | defmodule SmuggleTest do
use ExUnit.Case
use ExUnitProperties
test "encode/1" do
assert Smuggle.encode(true) == "g2QABHRydWU="
end
test "encode/1 (large enough to force line breaks)" do
encoded = Smuggle.encode(%Inspect.Opts{})
assert encoded |> String.split("\n") |> Enum.count() > 1
assert ... | 27.722222 | 100 | 0.569806 |
7a2fc188a7512064ec0d55da8d485d76a21ed38d | 326 | exs | Elixir | test/live_counter_web/live/page_live_test.exs | zigster64/zig_elixir | 88358519ef97f1221055bbc9f12035fbb1cbc5e4 | [
"BSD-3-Clause"
] | null | null | null | test/live_counter_web/live/page_live_test.exs | zigster64/zig_elixir | 88358519ef97f1221055bbc9f12035fbb1cbc5e4 | [
"BSD-3-Clause"
] | null | null | null | test/live_counter_web/live/page_live_test.exs | zigster64/zig_elixir | 88358519ef97f1221055bbc9f12035fbb1cbc5e4 | [
"BSD-3-Clause"
] | null | null | null | defmodule LiveCounterWeb.PageLiveTest do
use LiveCounterWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "The count is"
assert render(page_live) =~ "The count is"
en... | 27.166667 | 60 | 0.726994 |
7a2fc279874b211bac22e939fdf6c4bfc4f0e549 | 1,484 | ex | Elixir | lib/livebook_web/live/settings_live/file_systems_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 1,846 | 2021-04-13T14:46:36.000Z | 2021-07-14T20:37:40.000Z | lib/livebook_web/live/settings_live/file_systems_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 411 | 2021-07-15T07:41:54.000Z | 2022-03-31T21:34:22.000Z | lib/livebook_web/live/settings_live/file_systems_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 130 | 2021-04-13T15:43:55.000Z | 2021-07-12T16:57:46.000Z | defmodule LivebookWeb.SettingsLive.FileSystemsComponent do
use LivebookWeb, :live_component
alias Livebook.FileSystem
@impl true
def render(assigns) do
~H"""
<div class="flex flex-col space-y-4">
<div class="flex flex-col space-y-4">
<%= for {file_system, index} <- Enum.with_index(@file_... | 32.26087 | 95 | 0.58221 |
7a2fced3d18e814a13509dcdf8265ec20b91acfa | 1,710 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/webproperty_child_link.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/webproperty_child_link.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/webproperty_child_link.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... | 33.529412 | 113 | 0.733333 |
7a2ff0807de24abafed380817f6f69be20dce953 | 2,254 | ex | Elixir | lib/phoenix/live_dashboard/router.ex | dbii/phoenix_live_dashboard | 08255b63a4a7236d3f99fe9053b997fab1027297 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/router.ex | dbii/phoenix_live_dashboard | 08255b63a4a7236d3f99fe9053b997fab1027297 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/router.ex | dbii/phoenix_live_dashboard | 08255b63a4a7236d3f99fe9053b997fab1027297 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.Router do
@moduledoc """
Provides LiveView routing for LiveDashboard.
"""
@doc """
Defines a LiveDashboard route.
It expects the `path` the dashboard will be mounted at
and a set of options.
## Options
* `:metrics` - Configures the module to retrieve metrics from.... | 28.175 | 101 | 0.631322 |
7a303dbb65ef87cba7538ff8d108e60fa223d667 | 163 | exs | Elixir | priv/repo/migrations/20210120134552_add_tokens_badge.exs | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | priv/repo/migrations/20210120134552_add_tokens_badge.exs | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | priv/repo/migrations/20210120134552_add_tokens_badge.exs | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Repo.Migrations.AddTokensBadge do
use Ecto.Migration
def change do
alter table(:badges) do
add :tokens, :integer
end
end
end
| 16.3 | 50 | 0.705521 |
7a30664e91297e33195b951322a3c3eb5b963072 | 800 | ex | Elixir | lib/cadet/incentives/goal.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | lib/cadet/incentives/goal.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | lib/cadet/incentives/goal.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule Cadet.Incentives.Goal do
@moduledoc """
Represents a goal.
"""
use Cadet, :model
alias Cadet.Courses.Course
alias Cadet.Incentives.{AchievementToGoal, GoalProgress}
@primary_key {:uuid, :binary_id, autogenerate: false}
schema "goals" do
field(:text, :string)
field(:target_count, :int... | 25 | 77 | 0.71375 |
7a308c5571bbe6840dfaedd7d4f31a81b3eb2572 | 1,954 | ex | Elixir | lib/koans/10_structs.ex | russellmatbouli/elixir-koans | 0a1ef05d793576e752a6e8b51552f1ede1df9acc | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | russellmatbouli/elixir-koans | 0a1ef05d793576e752a6e8b51552f1ede1df9acc | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | russellmatbouli/elixir-koans | 0a1ef05d793576e752a6e8b51552f1ede1df9acc | [
"MIT"
] | null | null | null | defmodule Structs do
use Koans
@intro "Structs"
defmodule Person do
defstruct [:name, :age]
end
koan "Structs are defined and named after a module" do
person = %Person{}
assert person == %Person{}
end
koan "Unless previously defined, fields begin as nil" do
nobody = %Person{}
asser... | 26.053333 | 90 | 0.627943 |
7a30c6bee8db7a241419d84ef938ea875b63d148 | 3,905 | exs | Elixir | test/benchee/benchmark/repeated_measurement_test.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 504 | 2019-03-19T16:50:04.000Z | 2022-03-30T03:33:11.000Z | test/benchee/benchmark/repeated_measurement_test.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 46 | 2019-03-19T16:52:27.000Z | 2022-03-10T08:34:45.000Z | test/benchee/benchmark/repeated_measurement_test.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 20 | 2019-03-21T06:36:33.000Z | 2022-03-10T06:13:40.000Z | defmodule Bencheee.Benchmark.RepeatedMeasurementTest.FakeCollector do
@behaviour Benchee.Benchmark.Collect
def collect(function) do
value = function.()
time = Process.get(:test_measurement_time, 5)
next_value = time * 10
Process.put(:test_measurement_time, next_value)
{time, value}
end
end
... | 28.925926 | 95 | 0.67452 |
7a30d479fcf305a09db20da6251527535244c7b2 | 15,858 | ex | Elixir | lib/ash/api/api.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | 1 | 2021-12-27T09:43:29.000Z | 2021-12-27T09:43:29.000Z | lib/ash/api/api.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/api/api.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Api do
@moduledoc """
An Api allows you to interact with your resources, and holds non-resource-specific configuration.
Your Api can also house config that is not resource specific. For example, the json api extension
adds an api extension that lets you toggle authorization on/off for all resourc... | 28.728261 | 142 | 0.580086 |
7a30e1c8d59bc57c89b2376685c1e429e72669de | 2,088 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_scoped_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_scoped_list.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/instance_group_managers_scoped_list.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... | 41.76 | 221 | 0.764368 |
7a30ea876857d545f89f998b2d718214c6a17f57 | 15,224 | exs | Elixir | test/bypass_test.exs | sgerrand/bypass | 67007d77145c14198880c4ce22f20e71f0af1d57 | [
"MIT"
] | null | null | null | test/bypass_test.exs | sgerrand/bypass | 67007d77145c14198880c4ce22f20e71f0af1d57 | [
"MIT"
] | null | null | null | test/bypass_test.exs | sgerrand/bypass | 67007d77145c14198880c4ce22f20e71f0af1d57 | [
"MIT"
] | null | null | null | defmodule BypassTest do
use ExUnit.Case
doctest Bypass
defdelegate capture_log(fun), to: ExUnit.CaptureLog
test "show ISSUE #51" do
Enum.each(
1..1000,
fn _ ->
bypass = %Bypass{} = Bypass.open(port: 8000)
Bypass.down(bypass)
end
)
end
test "Bypass.open can speci... | 25.891156 | 100 | 0.62257 |
7a312baef48eb6f601162176db17b099f307b38e | 3,646 | ex | Elixir | lib/clickhouse_ecto/query.ex | julienmarie/clickhouse_ecto | 48b556bd93884df3b180a974801d7c09f43ade36 | [
"Apache-2.0"
] | 35 | 2018-04-02T07:00:30.000Z | 2020-08-30T19:23:40.000Z | lib/clickhouse_ecto/query.ex | julienmarie/clickhouse_ecto | 48b556bd93884df3b180a974801d7c09f43ade36 | [
"Apache-2.0"
] | 13 | 2018-04-13T11:14:07.000Z | 2020-07-23T10:06:02.000Z | lib/clickhouse_ecto/query.ex | julienmarie/clickhouse_ecto | 48b556bd93884df3b180a974801d7c09f43ade36 | [
"Apache-2.0"
] | 18 | 2018-04-12T09:40:49.000Z | 2020-08-03T07:58:22.000Z | defmodule ClickhouseEcto.Query do
alias ClickhouseEcto.QueryString
import ClickhouseEcto.Helpers
require IEx
@doc """
Receives a query and must return a SELECT query.
"""
@spec all(query :: Ecto.Query.t()) :: String.t()
def all(query) do
sources = QueryString.create_names(query)
{select_disti... | 28.046154 | 100 | 0.614098 |
7a312e78c16fc3cce115395c214a27e228a99e68 | 4,201 | ex | Elixir | lib/phoenix_integration/form/tree_creation.ex | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 218 | 2016-07-29T01:21:45.000Z | 2022-02-08T15:19:41.000Z | lib/phoenix_integration/form/tree_creation.ex | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 49 | 2016-08-06T20:57:43.000Z | 2022-01-24T23:46:10.000Z | lib/phoenix_integration/form/tree_creation.ex | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 29 | 2016-08-18T07:07:37.000Z | 2022-01-11T14:39:52.000Z | defmodule PhoenixIntegration.Form.TreeCreation do
@moduledoc false
# The code in this module converts a Floki representation of an HTML
# form into a tree structure whose leaves are Tags: that is, descriptions
# of a form tag that can provide values to POST-style parameters.
# See [DESIGN.md](./DESIGN.md) fo... | 30.007143 | 80 | 0.581528 |
7a316e003833cbd5b30b5209cb3921a5418696c1 | 973 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/deserializer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/deserializer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/deserializer.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... | 37.423077 | 77 | 0.765673 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.