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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7493bd72badc9c38b04abbac68b61b6c5e766a22 | 655 | ex | Elixir | lib/database/log.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1,223 | 2017-01-11T19:25:08.000Z | 2022-03-21T12:31:28.000Z | lib/database/log.ex | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 1,428 | 2017-01-09T16:36:18.000Z | 2022-03-28T14:19:40.000Z | lib/database/log.ex | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 184 | 2017-01-10T18:08:06.000Z | 2022-03-14T18:53:24.000Z | defmodule BorsNG.Database.Log.Cmd do
@moduledoc """
An already-parsed bors command. Represented as a binary Erlang term.
"""
def type, do: :binary
def load(any), do: cast(any)
def cast(binary = <<131, _::binary>>) do
{:ok, :erlang.binary_to_term(binary)}
end
def cast(any), do: {:ok, any}
def du... | 18.714286 | 70 | 0.644275 |
7493cc30b930226e8962af45d7247ef78423d8f6 | 4,997 | ex | Elixir | lib/ecto/query/api.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.API do
use Ecto.Query.Typespec
## Types
deft float
deft integer
deft boolean
deft binary
deft string
deft list(var)
deft datetime
deft interval
deft nil
defa number :: float | integer
## Operators
@doc "Positive number."
def (+arg)
defs (+integer) :: integer
d... | 23.350467 | 77 | 0.652191 |
74941166f6184a22c27f8b9e3431922ce40f0c29 | 347 | exs | Elixir | test/ambry/first_time_setup_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | test/ambry/first_time_setup_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | test/ambry/first_time_setup_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.FirstTimeSetupTest do
use Ambry.DataCase
alias Ambry.FirstTimeSetup
describe "disable!/0" do
test "creates a lock file in the uploads folder" do
assert :ok = FirstTimeSetup.disable!("test contents")
assert File.read!(Ambry.Paths.uploads_folder_disk_path("setup.lock")) == "test c... | 24.785714 | 94 | 0.723343 |
749411c39f94fc4639fd4a88b9709e21840cb345 | 1,652 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/begin_transaction_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/begin_transaction_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/begin_transaction_request.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.148936 | 173 | 0.760896 |
749415c5dcbe621a6a3cfbc9fe9c0f9e1e93385d | 3,071 | ex | Elixir | lib/aws/generated/kinesis_video_signaling.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/kinesis_video_signaling.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/kinesis_video_signaling.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.KinesisVideoSignaling do
@moduledoc """
Kinesis Video Streams Signaling Service is a intermediate service that
establishes a communication channel for discovering peers, transmitting offers
... | 32.670213 | 163 | 0.707913 |
74941a0ae57bdb0f97c26cad4becfbb24a2a9026 | 2,772 | exs | Elixir | apps/reaper/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/reaper/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/reaper/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | use Mix.Config
required_envars = [
"REDIS_HOST",
"KAFKA_BROKERS",
"OUTPUT_TOPIC_PREFIX",
"DLQ_TOPIC",
"HOSTED_FILE_BUCKET"
]
Enum.each(required_envars, fn var ->
if is_nil(System.get_env(var)) do
raise ArgumentError, message: "Required environment variable #{var} is undefined"
end
end)
kafka_broker... | 24.972973 | 92 | 0.667027 |
74944097b46296b4c49816ae611c9e1273cb28b3 | 621 | ex | Elixir | lib/util/sphere/helper/css_switcher.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | lib/util/sphere/helper/css_switcher.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | lib/util/sphere/helper/css_switcher.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule CssSwitcher do
def start_link(data \\ %{current: "", cdns: ""}) do
case is_alive() do
false ->
{:ok, pid} = Agent.start_link(fn -> [0] end, name: :css_switcher)
:global.register_name(:css_switcher, pid)
update(data)
pid
_ -> pid()
end
end
def update(... | 29.571429 | 97 | 0.602254 |
74944a47d79a0a5dd047acb1278b824f7e9a6e3b | 1,385 | exs | Elixir | test/queries/with_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 3 | 2020-03-09T14:28:52.000Z | 2021-06-27T13:29:27.000Z | test/queries/with_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 15 | 2019-12-25T23:31:02.000Z | 2020-02-21T16:45:11.000Z | test/queries/with_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | null | null | null | defmodule Queries.WithTest do
use ExUnit.Case
import ExCypher
describe "WITH statements" do
test "returns a single element" do
query =
cypher do
match(node(:n))
pipe_with(:n)
end
assert "MATCH (n) WITH n" = query
end
test "with custom functions" do
... | 20.367647 | 66 | 0.514079 |
74946405a3d2a4e3621e7373493026958f1ec2ff | 904 | ex | Elixir | lib/xlsx_reader/workbook.ex | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 40 | 2019-12-20T16:11:47.000Z | 2022-02-08T22:59:53.000Z | lib/xlsx_reader/workbook.ex | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 4 | 2020-05-17T11:35:33.000Z | 2022-02-08T21:29:46.000Z | lib/xlsx_reader/workbook.ex | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 6 | 2020-04-24T16:31:06.000Z | 2022-03-22T07:51:51.000Z | defmodule XlsxReader.Workbook do
@moduledoc """
Workbook structure.
- `sheets` - list of sheet metadata
- `rels` - workbook relationships
- `shared_strings` - list of shared strings
- `style_types` - List of types indexed by style
- `custom_formats` - Map of custom formats declared for this document
-... | 26.588235 | 71 | 0.599558 |
7494659c116ef3cb7ccd7115a7413f976b08cd72 | 1,117 | exs | Elixir | test/rock/struct/cluster_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 10 | 2017-06-24T10:23:25.000Z | 2022-03-28T09:15:00.000Z | test/rock/struct/cluster_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 2 | 2017-10-17T21:06:56.000Z | 2020-07-14T13:43:32.000Z | test/rock/struct/cluster_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 3 | 2017-09-01T09:37:13.000Z | 2020-07-13T18:16:58.000Z | defmodule Rock.Struct.ClusterTest do
use ExUnit.Case
alias Rock.Struct.Cluster
alias Rock.Test.TestFactory
test "adds a point to a cluster" do
point = TestFactory.from_string(:point, ["6"])
cluster =
TestFactory.from_string(
:cluster,
[
["1", "2", "3"],
["5"]
... | 19.596491 | 81 | 0.514772 |
74947eddd4cdad8115b58584c727a6d5555e1aaa | 1,194 | ex | Elixir | lib/supply_chain_web/controllers/user_controller.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 5 | 2020-12-10T07:24:18.000Z | 2021-12-15T08:26:05.000Z | lib/supply_chain_web/controllers/user_controller.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | null | null | null | lib/supply_chain_web/controllers/user_controller.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 2 | 2020-12-12T17:06:13.000Z | 2021-04-09T02:12:31.000Z | defmodule SupplyChainWeb.UserController do
use SupplyChainWeb, :controller
alias SupplyChain.User
alias Decimal,as: D
def new(conn, _params) do
changeset = User.change(%User{})
render(conn, "sign_up.html", changeset: changeset)
end
def create(conn, %{"user" => user_params, "participater" => partic... | 24.875 | 86 | 0.582077 |
74948d4cf6bec5bebcfcd0ac5d3872cad8b6e438 | 495 | ex | Elixir | lib/brotli.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | 2 | 2020-02-21T15:40:27.000Z | 2020-12-06T21:50:39.000Z | lib/brotli.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | 3 | 2020-02-19T17:06:24.000Z | 2020-04-20T14:33:07.000Z | lib/brotli.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | null | null | null | defmodule Phoenix.Digester.Brotli do
@behaviour Phoenix.Digester.Compressor
def file_extensions do
[".br"]
end
def compress_file(file_path, content) do
valid_extension =
Path.extname(file_path) in (Application.fetch_env!(:phoenix, :gzippable_exts) ++ [".ico"])
{:ok, compressed_content} = :b... | 23.571429 | 96 | 0.69697 |
74948ef7c7e33f9f3ab933ee8fd031e6ce117772 | 457 | exs | Elixir | services/fc_identity/test/fc_identity/commands/register_user_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_identity/test/fc_identity/commands/register_user_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_identity/test/fc_identity/commands/register_user_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCIdentity.RegisterUserTest do
use FCIdentity.UnitCase, async: true
import FCSupport.Validation
alias FCIdentity.UsernameStore
alias FCIdentity.RegisterUser
describe "validations" do
test "given existing username" do
UsernameStore.put("ROY", uuid4())
cmd = %RegisterUser{username: "... | 24.052632 | 60 | 0.715536 |
74949beb9f4aa642180dce8e766b5454ca7fd1da | 1,033 | exs | Elixir | test/crit/ecto/timespan_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/crit/ecto/timespan_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/crit/ecto/timespan_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule Crit.Ecto.TimespanTest do
# Tests for functions specific to Timespan.
use Crit.DataCase
alias Ecto.Timespan
alias Pile.TimeHelper
test "plus" do
plus_form = Timespan.plus( ~N[2001-01-01 01:02:03], 10, :minute)
customary_form = Timespan.customary(~N[2001-01-01 01:02:03],
... | 30.382353 | 80 | 0.666021 |
7494baa03460beb8168b64dea72ae89995cd7dd4 | 1,360 | ex | Elixir | lib/console_web/views/router/device_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 1 | 2021-11-18T13:32:47.000Z | 2021-11-18T13:32:47.000Z | lib/console_web/views/router/device_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | null | null | null | lib/console_web/views/router/device_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | null | null | null | defmodule ConsoleWeb.Router.DeviceView do
use ConsoleWeb, :view
alias ConsoleWeb.Router.DeviceView
alias ConsoleWeb.Router.ChannelView
alias ConsoleWeb.Router.LabelView
def render("index.json", %{devices: devices}) do
render_many(devices, DeviceView, "device_short.json")
end
def render("devices.json... | 27.2 | 57 | 0.679412 |
7494c64f5969120e427c1334ad1870c6612dfcb4 | 58 | ex | Elixir | src/lib/ivan_web/views/pokemon_view.ex | ivanrosolen/how-to-elixir-phoenix | 0ee910a1662e5c6cc1a6c781be6eeef99839badb | [
"MIT"
] | null | null | null | src/lib/ivan_web/views/pokemon_view.ex | ivanrosolen/how-to-elixir-phoenix | 0ee910a1662e5c6cc1a6c781be6eeef99839badb | [
"MIT"
] | null | null | null | src/lib/ivan_web/views/pokemon_view.ex | ivanrosolen/how-to-elixir-phoenix | 0ee910a1662e5c6cc1a6c781be6eeef99839badb | [
"MIT"
] | null | null | null | defmodule IvanWeb.PokemonView do
use IvanWeb, :view
end
| 14.5 | 32 | 0.793103 |
7494e1071c3344a50e0a2873c49878cdf4146f96 | 1,597 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout_pages_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout_pages_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout_pages_list_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... | 33.978723 | 130 | 0.755166 |
7494eb5fa9b0a44474d351c6c1f45d1f0cb3bca5 | 324 | ex | Elixir | lib/sequence/sequence_supervisor.ex | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 2 | 2016-09-18T03:06:37.000Z | 2016-12-26T23:55:40.000Z | lib/sequence/sequence_supervisor.ex | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 3 | 2016-09-30T08:38:15.000Z | 2016-10-01T19:26:10.000Z | lib/sequence/sequence_supervisor.ex | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 5 | 2016-09-30T17:13:42.000Z | 2021-01-06T17:58:15.000Z | defmodule SequenceSupervisor do
def start_link(_args) do
import Supervisor.Spec
children = [
worker(SequenceManager, []),
worker(SequenceHandler, [], id: 1),
worker(Sequence, [[]])
]
Supervisor.start_link(children, strategy: :one_for_one)
end
def init(_) do
{:ok, %{}}
end
... | 20.25 | 59 | 0.62963 |
74954ba7fa03199d8269f2cc9ff937a3d29e56ba | 582 | exs | Elixir | mix.exs | ahoglund/adventofcode | 3b88a7c66bf0e905b8ccf4f17e9128694fbd6477 | [
"MIT"
] | null | null | null | mix.exs | ahoglund/adventofcode | 3b88a7c66bf0e905b8ccf4f17e9128694fbd6477 | [
"MIT"
] | null | null | null | mix.exs | ahoglund/adventofcode | 3b88a7c66bf0e905b8ccf4f17e9128694fbd6477 | [
"MIT"
] | null | null | null | defmodule Adventofcode.MixProject do
use Mix.Project
def project do
[
app: :adventofcode,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.068966 | 87 | 0.584192 |
74956b113984669ca6c71d60701e9cc84bee8d9c | 39,837 | exs | Elixir | apps/ewallet/test/ewallet/permissions/bouncer/scopes/transaction_scope_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/permissions/bouncer/scopes/transaction_scope_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/permissions/bouncer/scopes/transaction_scope_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# 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 ... | 31.4917 | 84 | 0.628913 |
7495949360174e1a326a1f613742069fcf46f7a7 | 4,182 | exs | Elixir | test/router_test.exs | kirilkoroves/facebook_messenger | afb328658d21919e434adef386424f2f20995976 | [
"MIT"
] | 20 | 2017-05-19T15:18:13.000Z | 2021-11-19T19:15:45.000Z | test/router_test.exs | kirilkoroves/facebook_messenger | afb328658d21919e434adef386424f2f20995976 | [
"MIT"
] | 4 | 2017-05-22T12:23:45.000Z | 2019-05-14T07:34:07.000Z | test/router_test.exs | kirilkoroves/facebook_messenger | afb328658d21919e434adef386424f2f20995976 | [
"MIT"
] | 10 | 2017-05-11T18:13:19.000Z | 2019-02-16T08:37:53.000Z | defmodule MockRouter do
use Plug.Router
plug :match
plug :dispatch
forward "/messenger/webhook",
to: FacebookMessenger.Router,
challange_succeeded: &MockRouter.success/0,
challange_failed: &MockRouter.failure/0,
message_received: &MockRouter.message/1
match _, do: conn
def success, do: s... | 33.725806 | 176 | 0.688427 |
7495b5b957add4eddca147ef3c64d77bb4753b6f | 811 | ex | Elixir | discuss/lib/discuss_web/controllers/auth_controller.ex | ivoferro/elixir_phoenix_bootcamp | e3445dbf90c1eea81e8aa34cc7801934a516d7d7 | [
"MIT"
] | null | null | null | discuss/lib/discuss_web/controllers/auth_controller.ex | ivoferro/elixir_phoenix_bootcamp | e3445dbf90c1eea81e8aa34cc7801934a516d7d7 | [
"MIT"
] | null | null | null | discuss/lib/discuss_web/controllers/auth_controller.ex | ivoferro/elixir_phoenix_bootcamp | e3445dbf90c1eea81e8aa34cc7801934a516d7d7 | [
"MIT"
] | null | null | null | defmodule DiscussWeb.AuthController do
use DiscussWeb, :controller
plug Ueberauth
alias Discuss.Accounts
def callback(%{assigns: %{ueberauth_auth: auth}} = conn, %{"provider" => provider}) do
user_params = %{token: auth.credentials.token, email: auth.info.email, provider: provider}
case Accounts.get_... | 27.033333 | 94 | 0.635018 |
7496163ba050ee176987668461745ebd8a5c4702 | 1,888 | ex | Elixir | web/api/lib/worker/router.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | web/api/lib/worker/router.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | web/api/lib/worker/router.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | defmodule Api.Worker.Router do
require Logger
use Plug.Router
import Api.RouterUtils, only: [send_json: 2]
alias Api.Worker.Adapter.IndexAdapter
alias Api.Worker.Server
alias Api.Core.Config
plug :match
plug Api.Auth.AdminRightsPlug
plug :dispatch
post "/update_mapping" do
IndexAdapter.update_... | 27.362319 | 81 | 0.670021 |
749639ae3e60ca308667530cf39604c0176e93c9 | 2,064 | ex | Elixir | lib/number/percentage.ex | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | null | null | null | lib/number/percentage.ex | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | null | null | null | lib/number/percentage.ex | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | null | null | null | defmodule Number.Percentage do
@moduledoc """
Provides functions for converting numbers into percentages.
"""
import Number.Delimit, only: [number_to_delimited: 2]
@doc """
Formats a number into a percentage string.
## Parameters
* `number` - A value to convert. Can be any value that implements
... | 26.805195 | 91 | 0.643411 |
7496486d7aac28845dac06d9e948ec23984f53d9 | 222 | ex | Elixir | examples/tiny_lib/math/Math.Pow.ex | AbstractMachinesLab/crane | 98e3945fc24e99b09602a54138a8b321e32452c2 | [
"Apache-2.0"
] | 52 | 2020-09-11T09:58:47.000Z | 2021-01-03T22:38:18.000Z | examples/tiny_lib/math/Math.Pow.ex | AbstractMachinesLab/zap | 98e3945fc24e99b09602a54138a8b321e32452c2 | [
"Apache-2.0"
] | 5 | 2021-01-12T17:31:21.000Z | 2021-03-02T11:19:16.000Z | examples/tiny_lib/math/Math.Pow.ex | AbstractMachinesLab/crane | 98e3945fc24e99b09602a54138a8b321e32452c2 | [
"Apache-2.0"
] | 1 | 2021-02-27T15:58:48.000Z | 2021-02-27T15:58:48.000Z | defmodule Math.Pow do
@moduledoc false
@doc """
Elevate `n` to the power `e`.
"""
@spec pow(n :: number(), e :: number()) :: number()
def pow(n, e) when is_number(n) and is_number(e), do: :math.pow(n, e)
end
| 20.181818 | 71 | 0.585586 |
74965800a3e61fea963e711da9d2a33190c278c8 | 344 | ex | Elixir | test/support/rabbit_mq/test_broker.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | test/support/rabbit_mq/test_broker.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | test/support/rabbit_mq/test_broker.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | defmodule RailwayIpc.RabbitMQ.TestBroker do
@moduledoc false
use RailwayIpc.Broker, otp_app: :railway_ipc, adapter: RailwayIpc.Adapters.RabbitMQ
def init(opts) do
opts =
Keyword.put(opts, :consumers, [
RailwayIpc.RabbitMQ.TestConsumer,
RailwayIpc.RabbitMQ.TestTopicConsumer
])
... | 21.5 | 85 | 0.697674 |
74966c6bf216140f83fe2ec253f0de0cbb1f3be5 | 24 | ex | Elixir | lib/jeeves.ex | pragdave/jeeves | a5f745463f70540de1b0bbea29e629adbf0c45e8 | [
"Apache-2.0"
] | 87 | 2017-03-03T05:53:04.000Z | 2020-07-30T02:41:50.000Z | lib/jeeves.ex | pragdave/jeeves | a5f745463f70540de1b0bbea29e629adbf0c45e8 | [
"Apache-2.0"
] | 4 | 2017-03-03T18:44:55.000Z | 2017-08-11T16:25:32.000Z | lib/jeeves.ex | pragdave/service | a5f745463f70540de1b0bbea29e629adbf0c45e8 | [
"Apache-2.0"
] | 6 | 2017-03-03T18:11:46.000Z | 2018-06-27T23:53:16.000Z | defmodule Jeeves do
end
| 8 | 19 | 0.833333 |
74967ab1dcdaf4834822fb67fff62e50f81403ca | 386 | ex | Elixir | web/views/error_view.ex | vjdavid/elixir_trello | 2c44f467b86432369eacec7c045ab3d3551a1cb0 | [
"MIT"
] | 1 | 2020-12-23T18:28:53.000Z | 2020-12-23T18:28:53.000Z | web/views/error_view.ex | vjdavid/elixir_trello | 2c44f467b86432369eacec7c045ab3d3551a1cb0 | [
"MIT"
] | null | null | null | web/views/error_view.ex | vjdavid/elixir_trello | 2c44f467b86432369eacec7c045ab3d3551a1cb0 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.ErrorView do
use PhoenixTrello.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_foun... | 21.444444 | 47 | 0.707254 |
749692e747998200267ae6c0348386c67082d2e1 | 12,987 | ex | Elixir | lib/mix/lib/mix/dep/converger.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/converger.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/mix/lib/mix/dep/converger.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | # This module is the one responsible for converging
# dependencies in a recursive fashion. This
# module and its functions are private to Mix.
defmodule Mix.Dep.Converger do
@moduledoc false
@doc """
Topologically sorts the given dependencies.
"""
def topological_sort(deps) do
graph = :digraph.new()
... | 33.55814 | 97 | 0.61346 |
74969d3f5687635c2d4b9c8750d25c1221919e80 | 1,751 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/cpu_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/cpu_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/cpu_info.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... | 32.425926 | 131 | 0.727013 |
7496a3985d385db949cc986d4c915fbded53eb26 | 1,364 | ex | Elixir | lib/simd_sample/sin.ex | zacky1972/simd_sample | 3f50e698ae3c577e751ee7a5513086b7df7fca49 | [
"Apache-2.0"
] | 1 | 2021-09-03T07:56:54.000Z | 2021-09-03T07:56:54.000Z | lib/simd_sample/sin.ex | zacky1972/simd_sample | 3f50e698ae3c577e751ee7a5513086b7df7fca49 | [
"Apache-2.0"
] | null | null | null | lib/simd_sample/sin.ex | zacky1972/simd_sample | 3f50e698ae3c577e751ee7a5513086b7df7fca49 | [
"Apache-2.0"
] | null | null | null | defmodule SimdSample.Sin do
require Logger
@moduledoc """
Documentation for SimdSample.Sin.
"""
@on_load :load_nif
def load_nif do
nif_file = '#{Application.app_dir(:simd_sample, "priv/lib/libsin")}'
case :erlang.load_nif(nif_file, 0) do
:ok -> :ok
{:error, {:reload, _}} -> :ok
... | 20.984615 | 80 | 0.593109 |
7496ab925753f189b9cb274af4632615d5034fc6 | 2,386 | ex | Elixir | lib/custom_functions.ex | Phineas/instruments | 73bac4bcabca0642288ee83bb062d16acb15a5fd | [
"MIT"
] | 167 | 2017-11-09T08:25:21.000Z | 2020-03-05T12:26:20.000Z | lib/custom_functions.ex | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 7 | 2020-05-13T15:16:08.000Z | 2022-03-03T01:39:56.000Z | lib/custom_functions.ex | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 16 | 2017-11-10T10:35:37.000Z | 2020-02-25T09:54:53.000Z | defmodule Instruments.CustomFunctions do
@moduledoc """
Creates custom prefixed functions
Often, a module will have functions that all have a common prefix.
It's somewhat tedious to have to put this prefix in every call to
every metric function. Using this module can help somewhat.
When you `use` this mod... | 27.425287 | 83 | 0.647946 |
7496b75ba37f1cac6f344d0383f140faa0506fa3 | 73 | exs | Elixir | test/test_helper.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | test/test_helper.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | 5 | 2019-02-10T14:22:39.000Z | 2019-02-11T16:29:02.000Z | test/test_helper.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(MakeWordBot.Repo, :manual)
| 24.333333 | 57 | 0.794521 |
7496d460e4557bc3ff599ca8a9df99aa1a0c0b0a | 5,938 | ex | Elixir | lib/elixir/lib/binary.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | 1 | 2017-10-29T16:37:08.000Z | 2017-10-29T16:37:08.000Z | lib/elixir/lib/binary.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/binary.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | defmodule Binary do
@moduledoc """
Functions for working with binaries.
"""
@doc %B"""
Receives a char list and escapes all special chars (like \n)
and interpolation markers. A last argument is given and wraps
the whole char list given.
## Examples
Binary.escape "foo", ?'
#=> "'foo'"
"... | 27.238532 | 79 | 0.622095 |
7496dc08b5c461788086e2b094662949f2531a08 | 92,054 | ex | Elixir | clients/network_connectivity/lib/google_api/network_connectivity/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_connectivity/lib/google_api/network_connectivity/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_connectivity/lib/google_api/network_connectivity/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.783254 | 847 | 0.630717 |
749710b1a369c968c94be418ff639495f985e58f | 2,666 | exs | Elixir | test/controllers/attraction_controller_test.exs | nelsonblaha/yonder | 6ab708d742e967dec63146b27b30e570ae21911f | [
"CC0-1.0"
] | null | null | null | test/controllers/attraction_controller_test.exs | nelsonblaha/yonder | 6ab708d742e967dec63146b27b30e570ae21911f | [
"CC0-1.0"
] | null | null | null | test/controllers/attraction_controller_test.exs | nelsonblaha/yonder | 6ab708d742e967dec63146b27b30e570ae21911f | [
"CC0-1.0"
] | null | null | null | defmodule Yonder.AttractionControllerTest do
use Yonder.ConnCase
alias Yonder.Attraction
@valid_attrs %{lat: "120.5", long: "120.5", name: "some content"}
@invalid_attrs %{}
setup do
conn = conn()
{:ok, conn: conn}
end
test "lists all entries on index", %{conn: conn} do
conn = get conn, att... | 37.027778 | 98 | 0.703301 |
749751e8c5dfb0c931b2ad671e039095abc94f5c | 11,288 | exs | Elixir | apps/graphql/test/web/resolvers/person_resolver_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/test/web/resolvers/person_resolver_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/test/web/resolvers/person_resolver_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.PersonResolverTest do
@moduledoc false
use GraphQL.ConnCase, async: false
import Core.Expectations.RPC, only: [expect_get_person_by_id: 1]
import Core.Factories
import Mox
alias Ecto.UUID
alias Absinthe.Relay.Node
@person_query """
query PersonQuery($id: ID!) {
person(id:... | 27.802956 | 233 | 0.584072 |
74976771c281c28df4f31679e22a172fbe8ab060 | 3,868 | exs | Elixir | test/juice_test.exs | rupurt/juice | 5bb77b55b288f5dd244046a19479815bac8d54e6 | [
"MIT"
] | 24 | 2018-05-10T19:56:14.000Z | 2022-02-16T19:10:57.000Z | test/juice_test.exs | rupurt/juice | 5bb77b55b288f5dd244046a19479815bac8d54e6 | [
"MIT"
] | 2 | 2021-03-27T02:23:46.000Z | 2021-04-06T16:45:53.000Z | test/juice_test.exs | rupurt/juice | 5bb77b55b288f5dd244046a19479815bac8d54e6 | [
"MIT"
] | 2 | 2018-07-01T13:41:21.000Z | 2021-03-25T10:09:10.000Z | defmodule JuiceTest do
use ExUnit.Case, async: true
doctest Juice
setup do
map = %{
"a" => %{
"b" => %{"c" => %{"d" => ["A", "B", "C", "D"]}},
"c" => %{"d" => []},
"d" => []
},
"b" => %{
"c" => %{"d" => []},
"d" => []
},
"c" => %{"d" => []... | 23.02381 | 69 | 0.328852 |
74977d783e86f8cdccc310f4e50f8bb53bda023a | 409 | exs | Elixir | cryin/test/cryin_web/views/error_view_test.exs | Graveyardillon/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | null | null | null | cryin/test/cryin_web/views/error_view_test.exs | Graveyardillon/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | 1 | 2020-05-18T13:34:20.000Z | 2020-05-18T13:34:20.000Z | cryin/test/cryin_web/views/error_view_test.exs | Papillon6814/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | null | null | null | defmodule CryinWeb.ErrorViewTest do
use CryinWeb.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(CryinWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert r... | 27.266667 | 90 | 0.728606 |
74977e78e084100ed636cb40e6e2acc80cae8538 | 2,150 | exs | Elixir | mix.exs | breachintelligence/ecto_ip_range | 8928f85041607f16a890905ddffc2cee582056a7 | [
"Apache-2.0"
] | null | null | null | mix.exs | breachintelligence/ecto_ip_range | 8928f85041607f16a890905ddffc2cee582056a7 | [
"Apache-2.0"
] | null | null | null | mix.exs | breachintelligence/ecto_ip_range | 8928f85041607f16a890905ddffc2cee582056a7 | [
"Apache-2.0"
] | 1 | 2022-01-11T21:00:43.000Z | 2022-01-11T21:00:43.000Z | defmodule EctoIPRange.MixProject do
use Mix.Project
@url_github "https://github.com/mneudert/ecto_ip_range"
def project do
[
app: :ecto_ip_range,
name: "Ecto IP Range",
version: "0.2.0-dev",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
... | 22.87234 | 72 | 0.551628 |
7497b0f8128e49806a0642991f19b99da157215e | 166 | exs | Elixir | priv/repo/migrations/20171208075543_user_table_changes.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171208075543_user_table_changes.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171208075543_user_table_changes.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | defmodule Hello.Repo.Migrations.UserTableChanges do
use Ecto.Migration
def change do
alter table(:users) do
remove :crypted_password
end
end
end
| 16.6 | 51 | 0.728916 |
7497dd9c5f7b24f54513da7366bed437cb51aa92 | 1,401 | exs | Elixir | test/gen/markdown/slate_test.exs | tyrchen/tub | 2181d2545ca8cc6fb6a969a52450d29279b615ed | [
"MIT"
] | 3 | 2018-06-27T06:31:44.000Z | 2021-08-01T07:57:57.000Z | test/gen/markdown/slate_test.exs | tyrchen/tub | 2181d2545ca8cc6fb6a969a52450d29279b615ed | [
"MIT"
] | 45 | 2018-07-22T14:34:01.000Z | 2019-11-17T10:48:18.000Z | test/gen/markdown/slate_test.exs | tyrchen/tub | 2181d2545ca8cc6fb6a969a52450d29279b615ed | [
"MIT"
] | 2 | 2018-07-03T22:31:02.000Z | 2021-08-01T07:58:06.000Z | defmodule Tub.Markdown.SlateTest do
use ExUnit.Case
alias Tub.Markdown.Slate
test "generate a slate markdown file" do
data = [
%{
"name" => "ethereum",
"apis" => [
%{
"doc" => "The chain query allows you to retrieve information of a chain.",
"examples" ... | 27.470588 | 94 | 0.384725 |
74983749fd4a78a4eefa78647008a6e1cab623e0 | 1,940 | ex | Elixir | lib/aws/generated/personalize_runtime.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/personalize_runtime.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/personalize_runtime.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.PersonalizeRuntime do
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
api_version: "2018-05-22",
content_type: "application... | 23.658537 | 81 | 0.650515 |
74987847d94b90465eec7731c5cbcc15318b7c98 | 616 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/HexadecimalWholeNumber.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/HexadecimalWholeNumber.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/HexadecimalWholeNumber.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | 0x1.()
0x1.(function positional, key: value)
0x1.(key_one: value_one, key_two: value_two)
0x1.(
&one,
one <- two,
one when two,
one | two,
one = two,
one or two,
one || two,
one and two,
one && two,
one != two,
one < two,
one |> two,
one in two,
one ++ two,
one..two,
one + two,
one ^^^... | 10.62069 | 44 | 0.5 |
7498a8081dfb745a3db457a552452715afa52eb2 | 1,781 | ex | Elixir | test/support/model_case.ex | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | 1 | 2018-11-20T15:23:59.000Z | 2018-11-20T15:23:59.000Z | test/support/model_case.ex | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | 14 | 2018-10-29T09:43:13.000Z | 2019-01-18T11:06:08.000Z | test/support/model_case.ex | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | 1 | 2019-12-02T08:59:45.000Z | 2019-12-02T08:59:45.000Z | defmodule Tilex.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For th... | 26.984848 | 84 | 0.683324 |
7498a80f5a985c5190af75cbe0d4adacc5109461 | 1,710 | exs | Elixir | config/config.exs | wagncarv/CurrencyExchange | 3e626681d97a17a68385be31d8c8a82fd4bfcd59 | [
"MIT"
] | 1 | 2022-03-28T19:10:45.000Z | 2022-03-28T19:10:45.000Z | config/config.exs | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | config/config.exs | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :conversor,
ecto_repos: [Conversor.Repo]
# ... | 32.264151 | 117 | 0.735088 |
7498be8db24b7655eb523c856bd579823e67a4f2 | 912 | ex | Elixir | web/models/user.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 73 | 2017-06-06T20:10:11.000Z | 2020-12-05T22:11:31.000Z | web/models/user.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 8 | 2017-05-24T02:08:58.000Z | 2018-05-11T14:54:29.000Z | web/models/user.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 22 | 2017-07-30T02:59:23.000Z | 2020-12-05T22:13:18.000Z | defmodule Elmelixirstarter.User do
@moduledoc """
A model to represent your users. This assumes they're logging in and being identified via
Twitter; you can customize this as desired.
"""
use Elmelixirstarter.Web, :model
schema "users" do
field(:name, :string)
field(:image_url, :string)
field(... | 21.209302 | 91 | 0.627193 |
7498caecb28b650db35c84806c23ba7529d70f4f | 116 | exs | Elixir | apps/drivers/test/drivers_test.exs | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/drivers/test/drivers_test.exs | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/drivers/test/drivers_test.exs | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | defmodule DriversTest do
use ExUnit.Case
doctest Drivers
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.888889 | 24 | 0.672414 |
7498ce660859b65a1b48afa34a2874945d54e0fa | 433 | exs | Elixir | test/soccer_table_web/views/error_view_test.exs | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-05-09T02:09:21.000Z | 2020-05-09T02:09:21.000Z | test/soccer_table_web/views/error_view_test.exs | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | null | null | null | test/soccer_table_web/views/error_view_test.exs | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-07-07T21:38:33.000Z | 2020-07-07T21:38:33.000Z | defmodule SoccerTableWeb.ErrorViewTest do
use SoccerTableWeb.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(SoccerTableWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.htm... | 28.866667 | 96 | 0.743649 |
7498de12f4975680f86070eb5353d08ded0064b7 | 109,935 | ex | Elixir | lib/ecto/changeset.ex | ramondelemos/ecto | ca4358533ce06b1048e5bf9603f9fbbd5169fb05 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | ramondelemos/ecto | ca4358533ce06b1048e5bf9603f9fbbd5169fb05 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | ramondelemos/ecto | ca4358533ce06b1048e5bf9603f9fbbd5169fb05 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating structs.
There is an example of working with changesets in the introductory
documentation in the `Ecto` module. The functions `cast/4` and
`change/2` are the usual en... | 38.560154 | 166 | 0.664183 |
7498df37408507599595569ffea463274220fb6b | 622 | exs | Elixir | spec/aoc/day01_spec.exs | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | spec/aoc/day01_spec.exs | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | spec/aoc/day01_spec.exs | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | defmodule AoC.Day01.Spec do
@moduledoc false
use ESpec
describe "sanity checks" do
it "tests calculate_fuel/1" do
expect(AoC.Day01.calculate_fuel(12)) |> to(eq(2))
expect(AoC.Day01.calculate_fuel(14)) |> to(eq(2))
expect(AoC.Day01.calculate_fuel(1969)) |> to(eq(654))
expect(AoC.Day01... | 29.619048 | 68 | 0.665595 |
7498e9aae2d64b48f23febadb6fccbb2d1af3cb9 | 1,984 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/keyword_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/keyword_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/keyword_assigned_targeting_option_details.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... | 39.68 | 274 | 0.752016 |
7499182eca9496d2502dbafd5da4a529dc85ef14 | 485 | ex | Elixir | server/lib/server/endpoint.ex | murillo94/elixir-api | 589364ac57086eb5cf6ed1327490cbfdf3cd7893 | [
"MIT"
] | null | null | null | server/lib/server/endpoint.ex | murillo94/elixir-api | 589364ac57086eb5cf6ed1327490cbfdf3cd7893 | [
"MIT"
] | null | null | null | server/lib/server/endpoint.ex | murillo94/elixir-api | 589364ac57086eb5cf6ed1327490cbfdf3cd7893 | [
"MIT"
] | null | null | null | defmodule Server.Endpoint do
use Plug.Router
plug(:match)
plug(Plug.Parsers,
parsers: [:json],
pass: ["application/json"],
json_decoder: Poison
)
plug(:dispatch)
forward("/api", to: Server.Router)
def child_spec(opts) do
%{
id: __MODULE__,
start: {__MODULE__, :start_link, ... | 16.166667 | 53 | 0.626804 |
74991eca382c26a1002d419dd7b252619151bf37 | 8,841 | ex | Elixir | lib/captain_hook/migrations/v2.ex | annatel/captain_hook | e16a01107d11756d37d96d1e9092c17d9aa9260b | [
"MIT"
] | 4 | 2020-11-13T11:27:24.000Z | 2021-08-19T17:28:53.000Z | lib/captain_hook/migrations/v2.ex | annatel/captain_hook | e16a01107d11756d37d96d1e9092c17d9aa9260b | [
"MIT"
] | null | null | null | lib/captain_hook/migrations/v2.ex | annatel/captain_hook | e16a01107d11756d37d96d1e9092c17d9aa9260b | [
"MIT"
] | null | null | null | defmodule CaptainHook.Migrations.V2 do
@moduledoc false
use Ecto.Migration
def up do
alter_table_webhook_endpoints_add_livemode_column()
alter_table_webhook_endpoints_remove_metada_column()
create_sequences_table()
create_webhook_notifications_table()
rename_webhook_conversations_to_old_web... | 31.688172 | 204 | 0.73227 |
7499354045e738af2618c21f095e5601de2523cd | 176 | exs | Elixir | priv/repo/migrations/20190131140235_varchar_to_text.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T18:20:22.000Z | 2018-10-10T18:20:22.000Z | priv/repo/migrations/20190131140235_varchar_to_text.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 23 | 2018-06-07T15:13:15.000Z | 2019-07-30T09:06:03.000Z | priv/repo/migrations/20190131140235_varchar_to_text.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | null | null | null | defmodule Companion.Repo.Migrations.VarcharToText do
use Ecto.Migration
def change do
alter table(:templatemessages) do
modify :content, :text
end
end
end
| 17.6 | 52 | 0.727273 |
74993c04eac88c471a288ebd9bedf7e4dfea6a85 | 213 | exs | Elixir | test/parques_web/controllers/page_controller_test.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | test/parques_web/controllers/page_controller_test.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | test/parques_web/controllers/page_controller_test.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | defmodule ParquesWeb.PageControllerTest do
use ParquesWeb.ConnCase, async: true
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.666667 | 60 | 0.680751 |
74998e214b5adb15b719c6b0106988f27d202101 | 526 | ex | Elixir | lib/slurp/logs.ex | fremantle-industries/slurp | 4201feeab6d9b8e18f47881ae1626cf6299b596f | [
"MIT"
] | 20 | 2021-01-02T07:45:04.000Z | 2022-03-29T07:34:42.000Z | lib/slurp/logs.ex | fremantle-industries/slurp | 4201feeab6d9b8e18f47881ae1626cf6299b596f | [
"MIT"
] | 11 | 2021-01-25T13:10:34.000Z | 2021-09-23T05:34:08.000Z | lib/slurp/logs.ex | fremantle-industries/slurp | 4201feeab6d9b8e18f47881ae1626cf6299b596f | [
"MIT"
] | 1 | 2021-03-12T07:27:05.000Z | 2021-03-12T07:27:05.000Z | defmodule Slurp.Logs do
@type log_subscription_config :: map
@type blockchain :: Slurp.Blockchains.Blockchain.t()
@type log_subscription :: Slurp.Logs.LogSubscription.t()
@type invalid_config :: Slurp.Logs.LoadSubscriptions.invalid_config()
@spec load_subscriptions([blockchain], map) :: {:ok, [log_subscripti... | 43.833333 | 104 | 0.758555 |
74999c2c428f4e847bf7dbe0855fc3f7e43ec1f6 | 4,444 | exs | Elixir | test/commands/composite_router_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | test/commands/composite_router_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | test/commands/composite_router_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | defmodule Commanded.Commands.CompositeRouterTest do
use ExUnit.Case
alias Commanded.Commands.Composite.{
CompositeCompositeRouter,
ExampleCompositeRouter,
UnregisteredCommand
}
alias Commanded.Commands.ExecutionResult
alias Commanded.DefaultApp
alias Commanded.ExampleDomain.BankAccount.Command... | 33.164179 | 219 | 0.571557 |
7499ab7c0db3e17be18fac7ae11551b542eb5b3c | 3,191 | exs | Elixir | .credo.exs | MichalDolata/mockery | 8d6c39b3bd0081d2d789438f946628b52930fd55 | [
"Apache-2.0"
] | null | null | null | .credo.exs | MichalDolata/mockery | 8d6c39b3bd0081d2d789438f946628b52930fd55 | [
"Apache-2.0"
] | null | null | null | .credo.exs | MichalDolata/mockery | 8d6c39b3bd0081d2d789438f946628b52930fd55 | [
"Apache-2.0"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "web/", "apps/", "test/"],
excluded: [~r"/_build/", ~r"/deps/"]
},
requires: [],
strict: true,
color: true,
checks: [
{Credo.Check.Consistency.ExceptionNames},
{Credo.Ch... | 41.441558 | 92 | 0.67377 |
7499b2740e949c29517e74f08d97a822f85bd49b | 302 | exs | Elixir | priv/repo/migrations/20191221104827_create_posts.exs | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191221104827_create_posts.exs | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | priv/repo/migrations/20191221104827_create_posts.exs | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule Kamleague.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :title, :string
add :body, :text
add :user_id, references(:users, on_delete: :nothing)
timestamps()
end
create index(:posts, [:user_id])
end
end
| 18.875 | 59 | 0.655629 |
7499f759403a85c07fa74050bd1c6a4218e82685 | 2,264 | ex | Elixir | lib/honeydew/please/aggregates/task.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | lib/honeydew/please/aggregates/task.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | lib/honeydew/please/aggregates/task.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | defmodule Honeydew.Please.Task do
use Blunt.Ddd
@moduledoc """
Aggregate for Tasks in Please context.
"""
alias Honeydew.Please.Commands.{AddTask, CompleteTask, ThwartTask, RemoveTask, ReactivateTask}
alias Honeydew.Please.Events.{
TaskAdded,
TaskCompleted,
TaskThwarted,
TaskRemoved,
... | 26.325581 | 96 | 0.666961 |
749a2b1c0e65a5381011de38bfb7e6042c6a428c | 1,129 | exs | Elixir | config/config.exs | hamhub/ham_radio_ex | d813a0e7119f2d990694bd6da95c124d237c435e | [
"MIT"
] | null | null | null | config/config.exs | hamhub/ham_radio_ex | d813a0e7119f2d990694bd6da95c124d237c435e | [
"MIT"
] | 5 | 2019-07-29T15:55:41.000Z | 2020-03-19T20:00:54.000Z | config/config.exs | hamhub/ham_radio_ex | d813a0e7119f2d990694bd6da95c124d237c435e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.751107 |
749a3c382f80968a5ce8867cb83babdf81afb645 | 1,260 | exs | Elixir | test/auto_api/commands/usage_command_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | test/auto_api/commands/usage_command_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | test/auto_api/commands/usage_command_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 46.666667 | 79 | 0.778571 |
749a41b8afb959f2db40ad3088c0071d5b5092d1 | 2,035 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/set_iam_policy_request.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.7 | 308 | 0.736609 |
749a49a3aef696a606d7762c2e583f1f0eff9eb0 | 1,938 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/user.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chat/lib/google_api/chat/v1/model/user.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/user.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.847458 | 129 | 0.670795 |
749a4a19fedd20584808cbb29820a714cbf00955 | 718 | ex | Elixir | lib/typo_paint_web/gettext.ex | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 4 | 2019-07-31T03:34:19.000Z | 2019-08-03T04:53:48.000Z | lib/typo_paint_web/gettext.ex | elixir-sea/typo_kart | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T04:18:58.000Z | 2019-08-05T00:00:07.000Z | lib/typo_paint_web/gettext.ex | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T05:55:25.000Z | 2019-09-15T22:31:32.000Z | defmodule TypoPaintWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import TypoPaintWeb.Gettext
# Simple translation
gettext("Here ... | 28.72 | 72 | 0.681058 |
749a607f3bbc1824b4933e4df0ed1b893473e02c | 2,772 | ex | Elixir | clients/vm_migration/lib/google_api/vm_migration/v1/model/compute_scheduling.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/compute_scheduling.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/compute_scheduling.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.631579 | 419 | 0.744949 |
749a6adbcb0ac2fe4fb6670194c8acd8ceaf6e99 | 1,163 | exs | Elixir | mix.exs | Vorzious/Phoenix-Scaffolder | 334f42e6b94a38f19558767a937ab72e5b8f85dc | [
"MIT"
] | null | null | null | mix.exs | Vorzious/Phoenix-Scaffolder | 334f42e6b94a38f19558767a937ab72e5b8f85dc | [
"MIT"
] | null | null | null | mix.exs | Vorzious/Phoenix-Scaffolder | 334f42e6b94a38f19558767a937ab72e5b8f85dc | [
"MIT"
] | null | null | null | defmodule YyScaffold.Mixfile do
use Mix.Project
# Version control should also be maintained at
# lib/mix_scaffold/config.ex
def project() do
[
app: :yy_scaffold,
version: "2.0.0",
elixir: "~> 1.6.2",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
... | 23.734694 | 90 | 0.580396 |
749a6f2a3e921ca41d9e191365f0d52e76a36e61 | 2,608 | ex | Elixir | lib/util/generate_rsa.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 21 | 2016-04-23T03:54:33.000Z | 2021-07-08T12:03:44.000Z | lib/util/generate_rsa.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 2 | 2016-04-06T07:01:18.000Z | 2017-04-15T11:09:23.000Z | lib/util/generate_rsa.ex | hansihe/elixir_mc_protocol | 4b3011338af573c6f583f541c410fb23574f4c10 | [
"MIT"
] | 9 | 2016-04-09T21:05:48.000Z | 2021-07-27T12:42:49.000Z | defmodule McProtocol.Util.GenerateRSA do
@moduledoc """
Utilities for generating RSA keys.
"""
@doc """
Generates an RSA key with the size of key_size.
Calls out to the openssl commend line executable for key generation.
Returns an RSA private key in the form of a :RSAPrivateKey record.
"""
def ge... | 29.636364 | 86 | 0.597776 |
749a86f7244a013274041bae0495157bde8d7b78 | 1,088 | exs | Elixir | 1_lists/14_duplicate.exs | leesharma/99_elixir_problems | 6f284d94e07c24a73b06d0c36ba88c73e74cb841 | [
"MIT"
] | null | null | null | 1_lists/14_duplicate.exs | leesharma/99_elixir_problems | 6f284d94e07c24a73b06d0c36ba88c73e74cb841 | [
"MIT"
] | null | null | null | 1_lists/14_duplicate.exs | leesharma/99_elixir_problems | 6f284d94e07c24a73b06d0c36ba88c73e74cb841 | [
"MIT"
] | null | null | null | ExUnit.start
defmodule Problem14Test do
use ExUnit.Case, async: true
test "duplicate basic list" do
assert [1, 1, 2, 2, 3, 3, 3, 3, 4, 4] == Problem14.duplicate [1, 2, 3, 3, 4]
end
test "duplicate char list" do
assert 'aabbccccdd' == Problem14.duplicate 'abccd'
end
test "very long list" do
# ... | 23.148936 | 80 | 0.659926 |
749aac78fd55dab9d680aee35f05f5947e03d9c5 | 21 | ex | Elixir | lib/ant.ex | renatoalmeidaoliveira/elixir-crawler | dc900bcd293344376aea906f7115585c0873a082 | [
"Apache-2.0"
] | null | null | null | lib/ant.ex | renatoalmeidaoliveira/elixir-crawler | dc900bcd293344376aea906f7115585c0873a082 | [
"Apache-2.0"
] | null | null | null | lib/ant.ex | renatoalmeidaoliveira/elixir-crawler | dc900bcd293344376aea906f7115585c0873a082 | [
"Apache-2.0"
] | null | null | null | defmodule Ant do
end
| 7 | 16 | 0.809524 |
749acd54e2782646557482832c6d0a677d054e9c | 441 | ex | Elixir | spotiauth/lib/spotiauth/credentials.ex | jirimakarius/spotify_controller | c09f07cd622aa3a8f454dc4193b42329b36f7d49 | [
"MIT"
] | null | null | null | spotiauth/lib/spotiauth/credentials.ex | jirimakarius/spotify_controller | c09f07cd622aa3a8f454dc4193b42329b36f7d49 | [
"MIT"
] | null | null | null | spotiauth/lib/spotiauth/credentials.ex | jirimakarius/spotify_controller | c09f07cd622aa3a8f454dc4193b42329b36f7d49 | [
"MIT"
] | null | null | null | defmodule Spotiauth.Credentials do
use Agent
alias Spotify.Credentials
def start_link(_) do
Agent.start_link(fn -> nil end, name: __MODULE__)
end
def get do
Agent.get(__MODULE__, & &1)
end
def update(credentials = %Credentials{}) do
Agent.update(__MODULE__, fn _ -> credentials end)
end
... | 15.75 | 53 | 0.630385 |
749ae363eece928d06ab63cdeed4663c7f9a60f2 | 411 | ex | Elixir | lib/guzzle/rename.ex | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | 4 | 2015-02-10T07:06:10.000Z | 2020-01-14T23:19:54.000Z | lib/guzzle/rename.ex | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | 1 | 2015-02-10T07:08:06.000Z | 2015-02-10T08:45:36.000Z | lib/guzzle/rename.ex | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | null | null | null | defmodule Guzzle.Rename do
alias Experimental.Flow
def rename(flow, options) do
flow
|> Flow.map(&do_rename(&1, options))
end
defp do_rename({path, data}, fun) when is_function(fun),
do: {fun.(path), data}
defp do_rename({path, data}, options) do
ext = Keyword.fetch!(options, :ext)
roo... | 20.55 | 58 | 0.632603 |
749af6c7d9161782b879df14b9995a4a4379e353 | 184 | exs | Elixir | priv/v02/ch14/anon3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 4 | 2019-04-21T05:46:19.000Z | 2021-09-13T01:56:33.000Z | priv/v02/ch14/anon3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 1 | 2020-09-24T00:13:40.000Z | 2020-09-24T00:13:40.000Z | priv/v02/ch14/anon3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 3 | 2019-10-26T01:41:53.000Z | 2020-09-21T01:13:02.000Z | double = fn
n when is_integer(n) -> n * 2
x when is_float(x) -> x * 2
s when is_binary(s) -> s <> s
end
x = double.(7)
y = double.(2.5)
z = double.("abc")
IO.inspect([x, y, z])
| 16.727273 | 31 | 0.548913 |
749b13cdc76bb51e1d6763a51cbeb79d82bf257d | 1,334 | exs | Elixir | mix.exs | IanLuites/svalinn | f23ce97db3ecc4b67c3621b37f9dc0e93bedd028 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/svalinn | f23ce97db3ecc4b67c3621b37f9dc0e93bedd028 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/svalinn | f23ce97db3ecc4b67c3621b37f9dc0e93bedd028 | [
"MIT"
] | null | null | null | defmodule Svalinn.MixProject do
use Mix.Project
def project do
[
app: :svalinn,
description: "Secure token generation and decoding.",
version: "0.0.5",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
packag... | 20.523077 | 63 | 0.511994 |
749b13debe4cb8efffc7346650fde7d2e8c97578 | 632 | ex | Elixir | demo/lib/demo/filter.ex | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | 3 | 2021-07-07T09:10:11.000Z | 2022-03-18T10:28:14.000Z | demo/lib/demo/filter.ex | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | 12 | 2021-07-06T21:08:21.000Z | 2021-09-27T11:11:19.000Z | demo/lib/demo/filter.ex | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | null | null | null | defmodule Demo.Filter do
@moduledoc """
Demo.Filter provides functions that
"""
def query_filter(data, %{query: query}) when byte_size(query) == 0 do
data
end
def query_filter(data, %{query: query}) when is_nil(query) do
data
end
def query_filter(data, %{query: query}) do
data
|> Enum.fi... | 25.28 | 71 | 0.617089 |
749b1d0afe1771c400087716a51ba5be80b61b36 | 1,184 | ex | Elixir | exercism/elixir/diamond/lib/diamond.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/diamond/lib/diamond.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/diamond/lib/diamond.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule Diamond do
@doc """
Given a letter, it prints a diamond starting with 'A',
with the supplied letter at the widest point.
"""
@spec build_shape(char) :: String.t()
def build_shape(letter) do
middle_distance = calculate_middle_distance(letter + 1 - ?A)
width = List.last(middle_distance) + 2
... | 26.311111 | 65 | 0.606419 |
749b36e100d89658ffcf104366994192ab5db962 | 123 | ex | Elixir | apps/packet/lib/encodable.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 8 | 2019-12-20T15:44:08.000Z | 2021-01-25T18:30:25.000Z | apps/packet/lib/encodable.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T17:20:00.000Z | 2019-11-08T17:20:00.000Z | apps/packet/lib/encodable.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | null | null | null | defprotocol Packet.Encodable do
@moduledoc false
@spec encode(Packet.message()) :: iodata()
def encode(package)
end
| 17.571429 | 44 | 0.731707 |
749b582075be1472c59d45892630243f110dd5ec | 804 | exs | Elixir | test/suite/draft7/pattern_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft7/pattern_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft7/pattern_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft7.PatternTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "pattern validation" do
setup do
%{schema: Xema.new(pattern: ~r/^a*$/)}
end
test "a matching pattern is valid", %{schema: schema} do
data = "aaa"
assert valid?(schema, data)
en... | 21.157895 | 66 | 0.603234 |
749b5cffef7fb5ef2036e1ff02f69c31f2695c80 | 1,806 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/document_transform.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/document_transform.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/document_transform.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... | 34.730769 | 178 | 0.731451 |
749b6faaf0c29d140d3a6ba89368d046603d675d | 2,863 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/streaming_config_task.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/streaming_config_task.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/streaming_config_task.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.9 | 178 | 0.73664 |
749b7b13abe6d30e3233e33dce1353fd29590283 | 11,551 | ex | Elixir | lib/ash/changeset/managed_relationship_helpers.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | lib/ash/changeset/managed_relationship_helpers.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | lib/ash/changeset/managed_relationship_helpers.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | defmodule Ash.Changeset.ManagedRelationshipHelpers do
@moduledoc """
Tools for introspecting managed relationships.
Extensions can use this to look at an argument that will be passed
to a `manage_relationship` change and determine what their behavior
should be. For example, AshAdmin uses these to find out wh... | 31.820937 | 97 | 0.652411 |
749b94344d687cccdf0c89b6604a89b535cfcfa0 | 2,476 | exs | Elixir | lib/iex/test/iex/autocomplete_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/iex/test/iex/autocomplete_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/autocomplete_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule IEx.AutocompleteTest do
use ExUnit.Case, async: true
def expand(expr) do
IEx.Autocomplete.expand(Enum.reverse expr)
end
test :erlang_module_simple_completion do
assert expand(':z') == {:yes, 'lib.', []}
end
test :erlang_module_no_completi... | 25.265306 | 71 | 0.609855 |
749bd562e5ff9a1e5d719a8d370e08a6adb85cb3 | 1,980 | exs | Elixir | config/dev.exs | SonofNun15/support-pairs | 6001b04a42f5fa9be02a00dad5cdc0fd76859f9a | [
"MIT"
] | null | null | null | config/dev.exs | SonofNun15/support-pairs | 6001b04a42f5fa9be02a00dad5cdc0fd76859f9a | [
"MIT"
] | null | null | null | config/dev.exs | SonofNun15/support-pairs | 6001b04a42f5fa9be02a00dad5cdc0fd76859f9a | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :support_pairs, SupportPairsWeb.Endpoint,
http... | 33.559322 | 170 | 0.710606 |
749beb7b5c239df4749db9badaa5451d85fb68e0 | 2,046 | ex | Elixir | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/pkix_public_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/pkix_public_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/pkix_public_key.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... | 40.92 | 315 | 0.747312 |
749bec36d7c458272f356ea5dae9c096690b7cbe | 2,223 | exs | Elixir | config/prod.exs | rhnonose/url_shortener | 511bd659b4a516ee89caa5c17d700461d137cebf | [
"MIT"
] | null | null | null | config/prod.exs | rhnonose/url_shortener | 511bd659b4a516ee89caa5c17d700461d137cebf | [
"MIT"
] | null | null | null | config/prod.exs | rhnonose/url_shortener | 511bd659b4a516ee89caa5c17d700461d137cebf | [
"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... | 33.681818 | 67 | 0.719298 |
749c0b43a4a51692f56f66d7b4fa7cc5eb28b8f6 | 809 | ex | Elixir | .env.ex | h-mohammadi93/emsal | 328ddf1919e3e2d329921cdfa1d5f5f39c949fcc | [
"MIT"
] | null | null | null | .env.ex | h-mohammadi93/emsal | 328ddf1919e3e2d329921cdfa1d5f5f39c949fcc | [
"MIT"
] | null | null | null | .env.ex | h-mohammadi93/emsal | 328ddf1919e3e2d329921cdfa1d5f5f39c949fcc | [
"MIT"
] | null | null | null | APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=emsal
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
M... | 16.18 | 46 | 0.854141 |
749c14a993ec751905688fe99e10c664e3692fd8 | 2,084 | exs | Elixir | config/prod.exs | gabriel-letarte/functional-todo-list | 06d292a66219c7a0114059be8b268d4fec4de95f | [
"MIT"
] | null | null | null | config/prod.exs | gabriel-letarte/functional-todo-list | 06d292a66219c7a0114059be8b268d4fec4de95f | [
"MIT"
] | null | null | null | config/prod.exs | gabriel-letarte/functional-todo-list | 06d292a66219c7a0114059be8b268d4fec4de95f | [
"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... | 33.612903 | 77 | 0.726488 |
749c2bb17e93e09cedefe1f9aebf4c71eaf6e459 | 10,811 | exs | Elixir | test/trie_test.exs | purpleprotocol/merkle_patricia_tree | 0a18da9b5f2c0288c33749e9f2e53f1c90d905af | [
"MIT"
] | null | null | null | test/trie_test.exs | purpleprotocol/merkle_patricia_tree | 0a18da9b5f2c0288c33749e9f2e53f1c90d905af | [
"MIT"
] | null | null | null | test/trie_test.exs | purpleprotocol/merkle_patricia_tree | 0a18da9b5f2c0288c33749e9f2e53f1c90d905af | [
"MIT"
] | null | null | null | defmodule MerklePatriciaTree.TrieTest do
use ExUnit.Case, async: true
alias MerklePatriciaTree.{Trie, Hash}
alias MerklePatriciaTree.Trie.Verifier
@max_32_bits 4_294_967_296
setup do
db = MerklePatriciaTree.Test.random_ets_db()
{:ok, %{db: db}}
end
def leaf_node(key_end, value) do
[HexPre... | 32.465465 | 96 | 0.474702 |
749c32e75bdeeb7fa16adc65b14d4a4df43202e7 | 642 | ex | Elixir | lib/navigator/link_config.ex | fremantle-industries/navigator | 55131096fce1d89f025dbcce7ee2669917b45d94 | [
"MIT"
] | 14 | 2021-04-14T15:37:21.000Z | 2021-07-22T11:45:54.000Z | lib/navigator/link_config.ex | fremantle-industries/navigator | 55131096fce1d89f025dbcce7ee2669917b45d94 | [
"MIT"
] | null | null | null | lib/navigator/link_config.ex | fremantle-industries/navigator | 55131096fce1d89f025dbcce7ee2669917b45d94 | [
"MIT"
] | 1 | 2021-05-13T16:49:51.000Z | 2021-05-13T16:49:51.000Z | defmodule Navigator.LinkConfig do
@type link :: Navigator.Link.t()
@type app_name :: atom
@type app_links :: %{
optional(app_name) => [link]
}
@spec parse(map) :: {:ok, app_links}
def parse(app_config_links \\ Application.get_env(:navigator, :links, %{})) do
apps =
app_config_link... | 22.928571 | 80 | 0.535826 |
749c3ef044b391c482db8f1790357585fdafd0b3 | 1,536 | ex | Elixir | lib/ex_sieve.ex | ppraisethesun/ex_sieve | 17b9802281e13cc348621f519103f5e42fc0df87 | [
"MIT"
] | null | null | null | lib/ex_sieve.ex | ppraisethesun/ex_sieve | 17b9802281e13cc348621f519103f5e42fc0df87 | [
"MIT"
] | null | null | null | lib/ex_sieve.ex | ppraisethesun/ex_sieve | 17b9802281e13cc348621f519103f5e42fc0df87 | [
"MIT"
] | null | null | null | defmodule ExSieve do
@moduledoc """
ExSieve is a object query translator to Ecto.Query.
"""
alias ExSieve.{Builder, Node, Config}
@doc """
ExSieve is meant to be `use`d by a Ecto.Repo.
When `use`d, an optional default for `ignore_erros` can be provided.
If `ignore_erros` is not provided, a default of... | 28.981132 | 101 | 0.666667 |
749c5342ca79ba4c809320c8a5c04a8d2d56d9dd | 531 | exs | Elixir | priv/repo/migrations/20190903113410_rename_coinmarketcap_id_to_slug.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20190903113410_rename_coinmarketcap_id_to_slug.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20190903113410_rename_coinmarketcap_id_to_slug.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.RenameCoinmarketcapIdToSlug do
use Ecto.Migration
@table "project"
def up do
# Create a new column otherwise we'll have fails during deployment
# Because the first pod will migrate the DB, but the old, still running
# pods will continue to try to use `coinmarketcap_i... | 24.136364 | 75 | 0.691149 |
749c6b51a8b534fe1a00815fb8c0d1df12cfb9d8 | 61 | ex | Elixir | apps/fz_http/lib/fz_http_web/views/shared_view.ex | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 1,429 | 2021-07-31T21:25:46.000Z | 2022-03-31T16:31:33.000Z | apps/fz_http/lib/fz_http_web/views/shared_view.ex | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 132 | 2021-07-10T14:23:36.000Z | 2022-03-29T18:36:37.000Z | apps/fz_http/lib/fz_http_web/views/shared_view.ex | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 48 | 2021-09-14T02:48:38.000Z | 2022-03-24T18:18:50.000Z | defmodule FzHttpWeb.SharedView do
use FzHttpWeb, :view
end
| 15.25 | 33 | 0.803279 |
749c8e107e71d1b8b5a197f970dd5b0084059a8d | 6,895 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/policy.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... | 111.209677 | 1,997 | 0.748803 |
749c9b50da40dc357481f265bcc2db0fdfafca19 | 765 | ex | Elixir | lib/ink/adapter/logstash.ex | akdilsiz/ink | 9dc8c493392de7750c3c34a3989f3bed9230d135 | [
"MIT"
] | null | null | null | lib/ink/adapter/logstash.ex | akdilsiz/ink | 9dc8c493392de7750c3c34a3989f3bed9230d135 | [
"MIT"
] | null | null | null | lib/ink/adapter/logstash.ex | akdilsiz/ink | 9dc8c493392de7750c3c34a3989f3bed9230d135 | [
"MIT"
] | null | null | null | defmodule Ink.Adapter.Logstash do
@moduledoc """
Logstash Adapter for Ink
Example Logstash Config:
input {
udp {
codec => json
port => 10001
queue_size => 10000
workers => 10
type => default_log_type
}
}
output {
stdout {}
elasticsearch ... | 18.658537 | 68 | 0.55817 |
749ce38f7d4b856fbc20bd3356f2ae70694d08ed | 1,811 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/pivot_group_value_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_group_value_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_group_value_metadata.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... | 36.22 | 215 | 0.736057 |
749cf4950ada7722903d5051796012f4e349afc6 | 10,573 | ex | Elixir | lib/drunkard/recipes.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 2 | 2020-07-05T21:27:33.000Z | 2021-12-12T22:56:00.000Z | lib/drunkard/recipes.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2021-05-11T08:14:48.000Z | 2021-05-11T08:14:48.000Z | lib/drunkard/recipes.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2020-07-05T21:27:46.000Z | 2020-07-05T21:27:46.000Z | defmodule Drunkard.Recipes do
@moduledoc """
The Recipes context.
"""
import Ecto.Query, warn: false
alias Drunkard.Repo
alias Drunkard.Recipes.Slug
alias Drunkard.Recipes.Ingredient
@doc """
Returns the list of ingredients.
## Examples
iex> list_ingredients()
[%Ingredient{}, ...]
... | 21.019881 | 123 | 0.610896 |
749cffae2630bb1ab21eada42cd3e2b9bb56612f | 374 | ex | Elixir | lib/kantele/character/views/quit_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/kantele/character/views/quit_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/kantele/character/views/quit_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Kantele.Character.QuitView do
use Kalevala.Character.View
alias Kantele.Character.CharacterView
# passed to foreman disconnect
def render("disconnected", %{character: character}) do
[
CharacterView.render("name", %{character: character}),
" has left the game."
]
end
def rend... | 20.777778 | 60 | 0.687166 |
749d1102766deca2ac94df990e1ed9d433dd7fb5 | 101 | ex | Elixir | lib/battle_box_web/views/bot_view.ex | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | lib/battle_box_web/views/bot_view.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | lib/battle_box_web/views/bot_view.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBoxWeb.BotView do
use BattleBoxWeb, :view
alias BattleBoxWeb.Live.BotServers
end
| 20.2 | 36 | 0.821782 |
749d5d97bad0d991fa166ae9ed913b3f6653b5a3 | 1,992 | ex | Elixir | apps/omg_watcher/test/support/web/data_case.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/support/web/data_case.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/support/web/data_case.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# 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 writi... | 29.294118 | 77 | 0.704317 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.