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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e81052564931fd858e173593f70d8d04adc0cbec | 12,221 | exs | Elixir | lib/elixir/test/elixir/code_formatter/general_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/test/elixir/code_formatter/general_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/general_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.GeneralTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
describe "aliases" do
test "with atom-only parts" do
assert_same "Elixir"
assert_same "Elixir.Foo"
assert_sa... | 15.769032 | 76 | 0.435562 |
e810584251a8ea40ade18211d75e1ba4a8e72439 | 986 | ex | Elixir | lib/calculator/operations/entities/operation.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | lib/calculator/operations/entities/operation.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | lib/calculator/operations/entities/operation.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | defmodule Calculator.Operations.Entities.Operation do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@derive {Phoenix.Param, key: :id}
schema "operations" do
field :number_one, :decimal
field :number_two, :decimal
field :result, :decim... | 30.8125 | 97 | 0.681542 |
e810b9c746735000e05574472aa8cc398ece798d | 495 | exs | Elixir | apps/bookmarker/test/models/bookmark_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/test/models/bookmark_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/test/models/bookmark_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.BookmarkTest do
use Bookmarker.ModelCase
alias Bookmarker.Bookmark
@valid_attrs %{description: "some content", title: "some content", url: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Bookmark.changeset(%Bookmark{}, @valid_attrs)
asse... | 26.052632 | 89 | 0.737374 |
e810f8417bdef03fa8e5667bf1a9f4ad5f7929de | 407 | ex | Elixir | lib/ex_oauth2_provider/utils.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | 2 | 2021-04-25T20:59:53.000Z | 2021-07-13T22:49:20.000Z | lib/ex_oauth2_provider/utils.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_oauth2_provider/utils.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Utils do
@moduledoc false
@doc false
def remove_empty_values(map) when is_map(map) do
map
|> Enum.filter(fn {_, v} -> v != nil && v != "" end)
|> Enum.into(%{})
end
@doc false
def generate_token(opts \\ %{}) do
token_size = Map.get(opts, :size, 32)
string = :... | 22.611111 | 56 | 0.636364 |
e81100a5842564325b751252a1d84008a6040b36 | 2,548 | ex | Elixir | jena-core/etc/location-mapping.ex | Hendrikto/jena | 9a6de9d7295c2068904e2b464de72364c4d64117 | [
"Apache-2.0"
] | null | null | null | jena-core/etc/location-mapping.ex | Hendrikto/jena | 9a6de9d7295c2068904e2b464de72364c4d64117 | [
"Apache-2.0"
] | 1 | 2022-03-08T21:14:28.000Z | 2022-03-08T21:14:28.000Z | jena-core/etc/location-mapping.ex | Hendrikto/jena | 9a6de9d7295c2068904e2b464de72364c4d64117 | [
"Apache-2.0"
] | 1 | 2020-06-11T12:26:06.000Z | 2020-06-11T12:26:06.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 39.8125 | 86 | 0.69427 |
e8113189af7de9cbe900b720c1ca6de493aa3231 | 851 | exs | Elixir | test/bitcoin/node/network/addr_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | test/bitcoin/node/network/addr_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | test/bitcoin/node/network/addr_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Node.Network.AddrTest do
use ExUnit.Case
alias Bitcoin.Node.Network.Addr
alias Bitcoin.Protocol.Types.NetworkAddress, as: NA
test "addrs management" do
{:ok, node_pid} = Bitcoin.Node.start_link()
{:ok, addr_pid} = Addr.start_link()
Addr.clear()
assert Addr.count() == 0
as... | 30.392857 | 94 | 0.620447 |
e8113b5a6be7ff9ffa2d3048150f38038be740fb | 1,979 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban_snippet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban_snippet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban_snippet.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... | 35.339286 | 133 | 0.713997 |
e8113b64f59a861705a31c45cbf501c0820574b9 | 6,073 | exs | Elixir | test/models/account_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | test/models/account_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | 22 | 2017-05-15T07:34:08.000Z | 2018-02-25T07:26:18.000Z | test/models/account_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | defmodule Bibliotheca.AccountTest do
use Bibliotheca.ModelCase
alias Bibliotheca.{Account, User}
@valid_attr %{name: "account1"}
@account %Account{
id: 1,
name: "account1",
inserted_at: ~N[2015-04-01 12:00:00],
updated_at: ~N[2015-04-01 12:00:00]
}
@user %User{
id: 1,
email: "test@... | 26.064378 | 98 | 0.601021 |
e811507cc49b6b9175bb20fa55b21616197cc4b3 | 185 | ex | Elixir | lib/mix/tasks/encrypted_secrets/decrypt.ex | pjo336/encrypted_secrets_ex | 601805067321355ba3a3262fa169f5c973dd7a2c | [
"MIT"
] | null | null | null | lib/mix/tasks/encrypted_secrets/decrypt.ex | pjo336/encrypted_secrets_ex | 601805067321355ba3a3262fa169f5c973dd7a2c | [
"MIT"
] | null | null | null | lib/mix/tasks/encrypted_secrets/decrypt.ex | pjo336/encrypted_secrets_ex | 601805067321355ba3a3262fa169f5c973dd7a2c | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.EncryptedSecrets.Decrypt do
use Mix.Task
def run(args) do
EncryptedSecrets.decrypt() do
:ok -> nil
{:error, err} -> raise err
end
end
end
| 16.818182 | 47 | 0.643243 |
e8115e84a523bcbb189977ee83b6dcb7b73a2a23 | 487 | ex | Elixir | lib/liberator/media_type.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 36 | 2020-10-03T16:58:57.000Z | 2021-11-27T09:33:51.000Z | lib/liberator/media_type.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 23 | 2020-10-13T00:23:03.000Z | 2022-03-10T11:05:22.000Z | lib/liberator/media_type.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 1 | 2020-10-12T20:33:30.000Z | 2020-10-12T20:33:30.000Z | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule Liberator.MediaType do
@moduledoc """
A behaviour module for media type codecs.
Liberator uses this behaviour to help make sure at compile-time that codecs will be called successfully.
Include it in your own module for the ... | 27.055556 | 106 | 0.726899 |
e8119bc47a609883bab8d99cbbf8bd383544ebb1 | 837 | ex | Elixir | lib/pile/extras/map_x.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/pile/extras/map_x.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/pile/extras/map_x.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule MapX do
def just?(map, key) do
Map.fetch!(map, key) != :nothing
end
def just!(map, key) do
if just?(map, key) do
Map.fetch!(map, key)
else
raise("#{inspect map} has a blank key: #{inspect key}")
end
end
# Taken from ex_machina.
def convert_atom_keys_to_strings(val... | 25.363636 | 84 | 0.689367 |
e811a437b0bfcfc5de5809d7336f413b23f3cef0 | 22,553 | ex | Elixir | clients/container/lib/google_api/container/v1/model/cluster.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container/lib/google_api/container/v1/model/cluster.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container/lib/google_api/container/v1/model/cluster.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... | 98.484716 | 738 | 0.728817 |
e811b607368fea455e0c3254d49f53185c5daf16 | 238 | ex | Elixir | lib/portmidi/nifs/devices.ex | olafklingt/ex-portmidi | 524c4567c4951b55cfa12aee2517a2eb32fa4792 | [
"MIT"
] | null | null | null | lib/portmidi/nifs/devices.ex | olafklingt/ex-portmidi | 524c4567c4951b55cfa12aee2517a2eb32fa4792 | [
"MIT"
] | null | null | null | lib/portmidi/nifs/devices.ex | olafklingt/ex-portmidi | 524c4567c4951b55cfa12aee2517a2eb32fa4792 | [
"MIT"
] | 1 | 2020-12-16T15:35:51.000Z | 2020-12-16T15:35:51.000Z | defmodule PortMidi.Nifs.Devices do
@on_load :init
def init do
:portmidi
|> :code.priv_dir()
|> :filename.join("portmidi_devices")
|> :erlang.load_nif(0)
end
def do_list, do: :erlang.nif_error(:nif_not_loaded)
end
| 19.833333 | 53 | 0.672269 |
e811c7c5da79f48666a5e941541c13da6b3b3c60 | 595 | exs | Elixir | test/signing_keys_manager_test.exs | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 35 | 2016-05-11T02:34:27.000Z | 2021-04-29T07:34:11.000Z | test/signing_keys_manager_test.exs | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 27 | 2016-07-10T18:32:25.000Z | 2021-09-29T07:00:22.000Z | test/signing_keys_manager_test.exs | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 23 | 2016-05-10T18:53:13.000Z | 2021-06-25T22:04:21.000Z | defmodule ExMicrosoftBot.Test.SigningKeysManager do
use ExUnit.Case
require Logger
alias ExMicrosoftBot.SigningKeysManager
test "Get signing keys from MBF" do
SigningKeysManager.start_link([])
{:ok, keys} = SigningKeysManager.get_keys()
assert length(keys) > 0
assert [%JOSE.JWK{} | _] = keys
... | 22.884615 | 56 | 0.69916 |
e811c9c754136d5d08011bac4df905da6b76da02 | 482 | ex | Elixir | lib/inspect/tuple.ex | ElixirWerkz/exlogger | 57e2da8c0883b5e83be00fe0764628f4b5f3bdf5 | [
"MIT"
] | 2 | 2015-08-25T09:23:21.000Z | 2016-04-14T12:30:06.000Z | lib/inspect/tuple.ex | ElixirWerkz/exlogger | 57e2da8c0883b5e83be00fe0764628f4b5f3bdf5 | [
"MIT"
] | null | null | null | lib/inspect/tuple.ex | ElixirWerkz/exlogger | 57e2da8c0883b5e83be00fe0764628f4b5f3bdf5 | [
"MIT"
] | null | null | null | defimpl ExLogger.Inspect, for: Tuple do
import Kernel, except: [to_string: 1]
def to_string(thing) when is_atom(elem(thing, 0)) and tuple_size(thing) > 1 do
module = elem(thing, 0)
if Code.ensure_loaded?(module) and
function_exported?(module, :__record__, 1) and
module.__record__(:fields)[:_... | 25.368421 | 80 | 0.678423 |
e811df7ceba5439127b34f51bf96dc92167bfb9e | 8,791 | exs | Elixir | test/mogrify_test.exs | kpanic/mogrify | 48fc57cf0a019ce3648871c29f0167555498dbe5 | [
"MIT"
] | null | null | null | test/mogrify_test.exs | kpanic/mogrify | 48fc57cf0a019ce3648871c29f0167555498dbe5 | [
"MIT"
] | null | null | null | test/mogrify_test.exs | kpanic/mogrify | 48fc57cf0a019ce3648871c29f0167555498dbe5 | [
"MIT"
] | null | null | null | defmodule MogrifyTest do
import Mogrify
alias Mogrify.Image
use Mogrify.Options
use ExUnit.Case, async: true
@fixture Path.join(__DIR__, "fixtures/bender.jpg")
@fixture_with_space Path.join(__DIR__, "fixtures/image with space in name/ben der.jpg")
@fixture_animated Path.join(__DIR__, "fixtures/bender_an... | 34.339844 | 168 | 0.658401 |
e811f19ec48f81961910d248966616c6b2ee057c | 131 | ex | Elixir | postgis-ecto/gis_demo/lib/gis_demo/repo_postgis.ex | wisq/slides | e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1 | [
"MIT"
] | null | null | null | postgis-ecto/gis_demo/lib/gis_demo/repo_postgis.ex | wisq/slides | e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1 | [
"MIT"
] | null | null | null | postgis-ecto/gis_demo/lib/gis_demo/repo_postgis.ex | wisq/slides | e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1 | [
"MIT"
] | null | null | null | Postgrex.Types.define(
GisDemo.PostgresTypes,
[Geo.PostGIS.Extension] ++ Ecto.Adapters.Postgres.extensions(),
json: Poison
)
| 21.833333 | 65 | 0.748092 |
e812221ae1b5227e7be067b1b0cb6d9fc7032bd0 | 66 | exs | Elixir | test/test_helper.exs | fuelen/apq | 3cf1d5bdf58d690711ed33d506b92096939da9ae | [
"MIT"
] | 41 | 2018-09-15T13:02:28.000Z | 2022-01-11T23:17:11.000Z | test/test_helper.exs | fuelen/apq | 3cf1d5bdf58d690711ed33d506b92096939da9ae | [
"MIT"
] | 41 | 2018-09-15T13:17:56.000Z | 2022-03-24T04:03:50.000Z | test/test_helper.exs | fuelen/apq | 3cf1d5bdf58d690711ed33d506b92096939da9ae | [
"MIT"
] | 4 | 2018-09-25T09:59:30.000Z | 2021-11-15T10:08:37.000Z | ExUnit.start()
Mox.defmock(Apq.CacheMock, for: Apq.CacheProvider)
| 22 | 50 | 0.787879 |
e8123315370b04b9de9a3223808e40d516921920 | 172 | ex | Elixir | lib/elixir/test/elixir/fixtures/dialyzer/boolean_check.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/fixtures/dialyzer/boolean_check.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/fixtures/dialyzer/boolean_check.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Dialyzer.BooleanCheck do
def and_check(arg) when is_boolean(arg) do
arg and arg
end
def or_check(arg) when is_boolean(arg) do
arg or arg
end
end
| 17.2 | 44 | 0.72093 |
e8123bc4bd828e7c5dd6c60c41b8c801e8d18d08 | 842 | ex | Elixir | lib/espec/finally.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | lib/espec/finally.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | lib/espec/finally.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule ESpec.Finally do
@moduledoc """
Defines `finally` macro.
The block is evaluated after the example.
`shared` is available.
Define the `finally` before example!.
"""
@doc "Struct has random fuction name."
defstruct module: nil, function: nil
@doc """
Adds %ESpec.Finally structs to the cont... | 24.764706 | 90 | 0.67696 |
e8123bf76a593a6ff7be23ca7a373b5fb04b175c | 1,008 | ex | Elixir | lib/hackton/endpoint.ex | raincrash/hackton | f85f049c79df25039d2c04e174d8a7b8fb946942 | [
"MIT"
] | 1 | 2016-03-15T17:50:12.000Z | 2016-03-15T17:50:12.000Z | lib/hackton/endpoint.ex | raincrash/hackton | f85f049c79df25039d2c04e174d8a7b8fb946942 | [
"MIT"
] | null | null | null | lib/hackton/endpoint.ex | raincrash/hackton | f85f049c79df25039d2c04e174d8a7b8fb946942 | [
"MIT"
] | null | null | null | defmodule Hackton.Endpoint do
use Phoenix.Endpoint, otp_app: :hackton
socket "/socket", Hackton.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 25.2 | 69 | 0.709325 |
e8126b4b298c6b1ae0fae314a546583713dbe216 | 354 | exs | Elixir | priv/repo/migrations/20170716085027_create_xp_history.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20170716085027_create_xp_history.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20170716085027_create_xp_history.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | defmodule SourceAcademy.Repo.Migrations.CreateXpHistory do
use Ecto.Migration
def change do
create table(:xp_history) do
add :reason, :string
add :amount, :integer
add :giver_id, references(:users)
add :student_id, references(:students)
timestamps()
end
create index(:xp_... | 20.823529 | 58 | 0.680791 |
e8129b22aa1534ef4fdd071c4e57761b77ab62d5 | 726 | ex | Elixir | lib/questionator_web/gettext.ex | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | 3 | 2021-08-30T20:22:39.000Z | 2022-03-16T10:27:50.000Z | lib/questionator_web/gettext.ex | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | null | null | null | lib/questionator_web/gettext.ex | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | 2 | 2021-08-18T17:20:46.000Z | 2021-09-01T04:15:31.000Z | defmodule QuestionatorWeb.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 QuestionatorWeb.Gettext
# Simple translation
gettext(... | 29.04 | 72 | 0.684573 |
e8129f4864162e062a3c7ef95fa1254835185b47 | 278 | ex | Elixir | lib/space_mongers/models/user_data.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | 2 | 2021-03-18T02:00:29.000Z | 2021-04-18T06:11:07.000Z | lib/space_mongers/models/user_data.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | null | null | null | lib/space_mongers/models/user_data.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | null | null | null | defmodule SpaceMongers.Models.UserData do
@moduledoc """
Contains various data about the user
"""
use SpaceMongers.Model,
username: String.t(),
credits: integer(),
loans: [Models.OwnedLoan.t()],
ships: [Models.OwnedShip.t()],
extra_fields: map()
end
| 23.166667 | 41 | 0.669065 |
e812a4bc8b857e1b545e096590414a8a874f4ca5 | 238 | ex | Elixir | test/support/setup_users.ex | fidr/qh | 14d392c5612889c7ed9e88cf558e677ac06b39f4 | [
"MIT"
] | 5 | 2022-01-10T10:57:44.000Z | 2022-01-22T18:15:05.000Z | test/support/setup_users.ex | fidr/qh | 14d392c5612889c7ed9e88cf558e677ac06b39f4 | [
"MIT"
] | null | null | null | test/support/setup_users.ex | fidr/qh | 14d392c5612889c7ed9e88cf558e677ac06b39f4 | [
"MIT"
] | null | null | null | defmodule QTest.Repo.Migrations.SetupUsers do
use Ecto.Migration
def change do
create table(:users) do
add(:name, :text)
add(:age, :integer)
add(:nicknames, {:array, :text})
timestamps()
end
end
end
| 18.307692 | 45 | 0.62605 |
e812af65782fc005afc856c0fd170213143881e8 | 537 | ex | Elixir | backend/lib/budgetsh_web/views/error_view.ex | djquan/budget.sh.old | e0c3ac772ce061c4a8c990ef86ea341172146d18 | [
"MIT"
] | 2 | 2019-09-08T23:26:20.000Z | 2019-10-04T21:05:40.000Z | backend/lib/budgetsh_web/views/error_view.ex | djquan/budget.sh | e0c3ac772ce061c4a8c990ef86ea341172146d18 | [
"MIT"
] | null | null | null | backend/lib/budgetsh_web/views/error_view.ex | djquan/budget.sh | e0c3ac772ce061c4a8c990ef86ea341172146d18 | [
"MIT"
] | null | null | null | defmodule BudgetSHWeb.ErrorView do
use BudgetSHWeb, :view
# 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, Phoenix returns the status message fr... | 31.588235 | 83 | 0.72067 |
e812fa7e516c7bf09147552be9678e306a02f876 | 474 | exs | Elixir | test/virgo_web/views/error_view_test.exs | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | test/virgo_web/views/error_view_test.exs | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | test/virgo_web/views/error_view_test.exs | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | defmodule AstraeaVirgoWeb.ErrorViewTest do
use AstraeaVirgoWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(AstraeaVirgoWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "... | 29.625 | 97 | 0.696203 |
e812fd4e42d9e5c71dcdf8d02b659c9e014095d2 | 273 | exs | Elixir | apps/elixir_ls_utils/test/placeholder_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/elixir_ls_utils/test/placeholder_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/elixir_ls_utils/test/placeholder_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.Utils.PlaceholderTest do
use ExUnit.Case, async: true
@tag :fixture
test "pretend fixture" do
# This test is included to prevent the following error:
# > The --only option was given to "mix test" but no test was executed
:ok
end
end
| 24.818182 | 74 | 0.70696 |
e8133b2277f06250b4db1a3460a14b90ce650f6b | 1,409 | exs | Elixir | config/config.exs | philcallister/ticker | 19d0b95785665ea888d1fb9a8c59d3e9dcb4fc79 | [
"MIT"
] | 1 | 2016-11-02T03:38:26.000Z | 2016-11-02T03:38:26.000Z | config/config.exs | philcallister/ticker | 19d0b95785665ea888d1fb9a8c59d3e9dcb4fc79 | [
"MIT"
] | null | null | null | config/config.exs | philcallister/ticker | 19d0b95785665ea888d1fb9a8c59d3e9dcb4fc79 | [
"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... | 37.078947 | 73 | 0.737402 |
e81369d5afde5b29e90d87d1f0d596f9f88bcba3 | 1,985 | exs | Elixir | lib/mix/test/mix/utils_test.exs | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | 1 | 2017-10-29T16:37:08.000Z | 2017-10-29T16:37:08.000Z | lib/mix/test/mix/utils_test.exs | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/utils_test.exs | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper", __FILE__
defmodule Mix.UtilsTest do
use MixTest.Case
test :command_to_module do
assert Mix.Utils.command_to_module("hello", Mix.Tasks) == { :module, Mix.Tasks.Hello }
assert Mix.Utils.command_to_module("unknown", Mix.Tasks) == { :error, :nofile }
end
test :mod... | 29.626866 | 92 | 0.6267 |
e8139f2534e0cb4fa780cc70c2e54b4a11db9b46 | 112 | exs | Elixir | config/config.exs | brainlid/meetup_process_state | a429d6e5ff4e4bbfc2e243291292ea1f010abb9d | [
"MIT"
] | 2 | 2018-12-30T01:48:59.000Z | 2021-12-25T15:42:21.000Z | config/config.exs | brainlid/meetup_process_state | a429d6e5ff4e4bbfc2e243291292ea1f010abb9d | [
"MIT"
] | null | null | null | config/config.exs | brainlid/meetup_process_state | a429d6e5ff4e4bbfc2e243291292ea1f010abb9d | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, :console,
metadata: [:pid, :state_1, :custom_1, :custom_2]
# metadata: :all
| 18.666667 | 50 | 0.678571 |
e813a83dcd862e9d4fb28c845c6a970e48bfa1a7 | 2,113 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_conversion_ping.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/channel_conversion_ping.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_conversion_ping.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 ... | 42.26 | 489 | 0.744912 |
e813b0929566e902c985b269a2f62627f11901a4 | 2,044 | exs | Elixir | test/nucleotide_count_test.exs | jeremy-miller/exercism-elixir | c9bb3b086c7a2fc62e7e19c803de3827893be946 | [
"MIT"
] | null | null | null | test/nucleotide_count_test.exs | jeremy-miller/exercism-elixir | c9bb3b086c7a2fc62e7e19c803de3827893be946 | [
"MIT"
] | null | null | null | test/nucleotide_count_test.exs | jeremy-miller/exercism-elixir | c9bb3b086c7a2fc62e7e19c803de3827893be946 | [
"MIT"
] | null | null | null | defmodule NucleotideCountTest do
use ExUnit.Case, async: true
use Quixir
import Map, only: [has_key?: 2, keys: 1]
doctest NucleotideCount
describe "NucleotideCount.count/2" do
test "correctly counts valid nucleotides" do
ptest dna_string: string(chars: :upper, must_have: ["A", "T", "C", "G"]), nucl... | 37.163636 | 165 | 0.642857 |
e813b1105192b6827cb1ed59d39f599e854b4d6f | 2,610 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/file_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive/lib/google_api/drive/v3/model/file_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... | 46.607143 | 438 | 0.723372 |
e813b447264122059821f8355855a2477139c36c | 1,532 | ex | Elixir | installer/templates/phx_web/views/error_helpers.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2018-07-26T10:42:26.000Z | 2018-07-26T10:42:26.000Z | installer/templates/phx_web/views/error_helpers.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | installer/templates/phx_web/views/error_helpers.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | defmodule <%= web_namespace %>.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
<%= if html do %>
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn ... | 34.044444 | 86 | 0.659269 |
e813c5bcae8a61236d1b12bdc1ef75c96aa7cc07 | 1,660 | exs | Elixir | test/serializer_test.exs | merchant-ly/ex_elasticlunr | b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd | [
"MIT"
] | null | null | null | test/serializer_test.exs | merchant-ly/ex_elasticlunr | b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd | [
"MIT"
] | null | null | null | test/serializer_test.exs | merchant-ly/ex_elasticlunr | b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd | [
"MIT"
] | null | null | null | defmodule Elasticlunr.SerializerTest do
use ExUnit.Case
alias Elasticlunr.{Index, Serializer}
test "serialize index without documents" do
index = Index.new(name: "index")
structure = [
"settings#name:index|ref:id|pipeline:",
"field#name:id|pipeline:Elixir.Elasticlunr.Index.IdPipeline|store_... | 39.52381 | 192 | 0.611446 |
e8140db8d5147c697f4ccbea8691a02e2ce3fd6a | 4,476 | ex | Elixir | lib/web/views/export_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/web/views/export_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/web/views/export_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | NimbleCSV.define(ChallengeGov.Export.CSV, separator: ",", escape: "\"")
defmodule Web.ExportView do
use Web, :view
alias ChallengeGov.Export.CSV
alias Web.Api.ChallengeView
def format_content(challenge, format) do
case format do
"json" ->
{:ok, challenge_json(challenge)}
"csv" ->
... | 24.326087 | 72 | 0.613271 |
e8140dceda205344b8b0873ccabccdc51ad9c4b6 | 3,605 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/sort_spec.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/sort_spec.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/sort_spec.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... | 54.621212 | 323 | 0.732039 |
e814258c87de56c9c3339bc5d9ce79745e066f70 | 7,031 | ex | Elixir | farmbot_os/lib/farmbot_os/sys_calls.ex | EarthEngineering/facetop_os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/sys_calls.ex | EarthEngineering/facetop_os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/sys_calls.ex | EarthEngineering/facetop_os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | null | null | null | defmodule FarmbotOS.SysCalls do
@moduledoc """
Implementation for FarmbotCeleryScript.SysCalls
"""
require FarmbotCore.Logger
require FarmbotTelemetry
require Logger
alias FarmbotCeleryScript.AST
alias FarmbotFirmware
alias FarmbotCore.Asset.{
BoxLed,
Private
}
alias FarmbotOS.SysCalls... | 22.680645 | 76 | 0.672735 |
e8143f79363a2a5d6f117f3fb1931f1c14e55a6d | 252 | ex | Elixir | lib/slax/projects/project_repo.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | lib/slax/projects/project_repo.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | lib/slax/projects/project_repo.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | defmodule Slax.ProjectRepo do
@moduledoc false
use Slax.Schema
@type t :: %__MODULE__{}
schema "project_repos" do
belongs_to(:project, Slax.Project)
field(:org_name, :string)
field(:repo_name, :string)
timestamps()
end
end
| 16.8 | 38 | 0.68254 |
e81456101885516250fbd9c346aacd0b23f9c8e0 | 1,645 | ex | Elixir | lib/redix_clustered/clone.ex | PRX/redix-clustered | 46d5826fdcd877ba9794e083260b5bcc784b8a9e | [
"MIT"
] | null | null | null | lib/redix_clustered/clone.ex | PRX/redix-clustered | 46d5826fdcd877ba9794e083260b5bcc784b8a9e | [
"MIT"
] | null | null | null | lib/redix_clustered/clone.ex | PRX/redix-clustered | 46d5826fdcd877ba9794e083260b5bcc784b8a9e | [
"MIT"
] | null | null | null | defmodule RedixClustered.Clone do
@moduledoc """
Conditionally clone write requests to a separate RedixClustered
"""
alias RedixClustered.Options
@clone_commands [
"APPEND",
"DECR",
"DECRBY",
"DEL",
"EXPIRE",
"EXPIREAT",
"GETSET",
"HDEL",
"HINCRBY",
"HINCRBYFLOAT",
... | 20.5625 | 71 | 0.606687 |
e8149973cadcaae18bdb4fe1db495fd3b0347cd1 | 1,195 | exs | Elixir | test/level_web/graphql/subscriptions/space_joined_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | test/level_web/graphql/subscriptions/space_joined_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | test/level_web/graphql/subscriptions/space_joined_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule LevelWeb.GraphQL.SpaceJoinedTest do
use LevelWeb.ChannelCase
@operation """
subscription UserSubscription {
userSubscription {
__typename
... on SpaceJoinedPayload {
space {
id
name
}
spaceUser {
userId
... | 22.54717 | 88 | 0.500418 |
e814a213e77c565dd0937fcb51582c86685d2106 | 14,699 | ex | Elixir | lib/scenic/component/input/dropdown.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1,716 | 2018-09-07T21:55:43.000Z | 2022-03-31T16:16:30.000Z | lib/scenic/component/input/dropdown.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 220 | 2018-09-08T01:28:00.000Z | 2022-03-22T03:55:17.000Z | lib/scenic/component/input/dropdown.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 137 | 2018-09-07T21:55:56.000Z | 2022-03-26T04:07:27.000Z | #
# Created by Boyd Multerer 2018-07-15.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Component.Input.Dropdown do
@moduledoc """
Add a dropdown to a graph
## Data
`{items, initial_item}`
* `items` - must be a list of items, each of which is: `{text, id}`. See below...
*... | 29.936864 | 97 | 0.549425 |
e814b883c5a6a3b3d67d54ea881bdd0c16a73798 | 1,455 | ex | Elixir | lib/potionx/auth/assent_azure_common_strategy.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | lib/potionx/auth/assent_azure_common_strategy.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | lib/potionx/auth/assent_azure_common_strategy.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule Potionx.Auth.Assent.AzureADCommonStrategy do
@moduledoc false
use Assent.Strategy.OIDC.Base
alias Assent.{Config, Strategy.OIDC}
@impl true
def default_config(config) do
Keyword.merge(
[
authorization_params: [scope: "email profile", response_mode: "form_post"],
client_au... | 30.957447 | 83 | 0.64811 |
e814c0e87572099f79de9406b507368efeefca71 | 616 | exs | Elixir | apps/tai/test/tai/new_orders/transitions/accept_cancel_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/test/tai/new_orders/transitions/accept_cancel_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/new_orders/transitions/accept_cancel_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.NewOrders.Transitions.AcceptCancelTest do
use ExUnit.Case, async: false
alias Tai.NewOrders.Transitions
test ".attrs/1 returns a list of updatable order attributes" do
last_received_at = DateTime.utc_now()
last_venue_timestamp = DateTime.utc_now()
transition = %Transitions.AcceptCancel{... | 38.5 | 122 | 0.784091 |
e814d53810f2784c593153a363c1206459af73b7 | 1,023 | exs | Elixir | mix.exs | timCF/wanted | d3d5eba7f59b24f99a2b0aaa5d54854ed57c1d10 | [
"Apache-2.0"
] | 1 | 2016-11-25T22:32:44.000Z | 2016-11-25T22:32:44.000Z | mix.exs | timCF/wanted | d3d5eba7f59b24f99a2b0aaa5d54854ed57c1d10 | [
"Apache-2.0"
] | null | null | null | mix.exs | timCF/wanted | d3d5eba7f59b24f99a2b0aaa5d54854ed57c1d10 | [
"Apache-2.0"
] | null | null | null | defmodule Wanted.Mixfile do
use Mix.Project
def project do
[app: :wanted,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps()]
end
# Configuration for the OT... | 20.877551 | 77 | 0.595308 |
e814e4e28c51a95e83268fe130ac48beaba1c38b | 1,241 | ex | Elixir | memorex/test/support/conn_case.ex | at7heb/liveview_elixirconf_2021 | eee64f38ec8a7365e8b728d76cd795a5c23199a9 | [
"MIT"
] | null | null | null | memorex/test/support/conn_case.ex | at7heb/liveview_elixirconf_2021 | eee64f38ec8a7365e8b728d76cd795a5c23199a9 | [
"MIT"
] | null | null | null | memorex/test/support/conn_case.ex | at7heb/liveview_elixirconf_2021 | eee64f38ec8a7365e8b728d76cd795a5c23199a9 | [
"MIT"
] | 6 | 2021-10-07T14:50:48.000Z | 2021-10-08T14:50:09.000Z | defmodule MemorexWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if th... | 28.204545 | 69 | 0.724416 |
e814f18ed8a118f37c2699d703271704db44f72a | 2,082 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/option.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/option.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/option.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.526316 | 125 | 0.719981 |
e81520015ec844c0231d8bc9785458e68dd84bea | 1,736 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/price.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/price.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/price.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... | 34.72 | 136 | 0.733871 |
e8154afcefbf0abadfaa535b9804540fe1cc251c | 2,197 | exs | Elixir | test/controllers/project_controller_test.exs | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | test/controllers/project_controller_test.exs | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | test/controllers/project_controller_test.exs | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | defmodule Scrumapi.ProjectControllerTest do
use Scrumapi.ConnCase
alias Scrumapi.Project
@valid_attrs %{description: "some content", name: "some content"}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index",... | 35.435484 | 98 | 0.677742 |
e8155d84bc923c0bcbb23bc987c2b5c8440edb3f | 51,203 | ex | Elixir | lib/phoenix/controller.ex | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | 1 | 2022-01-17T05:04:27.000Z | 2022-01-17T05:04:27.000Z | lib/phoenix/controller.ex | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller do
import Plug.Conn
alias Plug.Conn.AlreadySentError
require Logger
require Phoenix.Endpoint
@unsent [:unset, :set, :set_chunked, :set_file]
@moduledoc """
Controllers are used to group common functionality in the same
(pluggable) module.
For example, the route:
... | 32.162688 | 137 | 0.675996 |
e815a0c679d250fbcc1a06c20d0b239e79b2c9db | 1,811 | ex | Elixir | lib/brando_admin/components/form/input/toggle.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_admin/components/form/input/toggle.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_admin/components/form/input/toggle.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input.Toggle do
use Surface.Component
use Phoenix.HTML
alias BrandoAdmin.Components.Form.FieldBase
alias BrandoAdmin.Components.Form.Label
prop form, :form
prop field, :any
prop blueprint, :any
prop input, :any
prop name, :any
prop label, :string
prop placeho... | 22.924051 | 79 | 0.581999 |
e815b679209131b03ceb605049017aff3215d695 | 450 | ex | Elixir | lib/elixero/core_api/currencies.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | lib/elixero/core_api/currencies.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | lib/elixero/core_api/currencies.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.CoreApi.Currencies do
@resource "currencies"
@model_module EliXero.CoreApi.Models.Currencies
def find(client) do
EliXero.CoreApi.Common.find(client, @resource)
|> EliXero.CoreApi.Utils.ResponseHandler.handle_response(@model_module)
end
def filter(client, filter) do
EliXero.Core... | 32.142857 | 75 | 0.773333 |
e815b8cad4cf2a6d0a4e2c54af33522ecbe5b348 | 565 | ex | Elixir | priv/catalogue/button/example02.ex | devilcoders/facade | 6aca8aaaf643b83ec275344436049c162d3a3b9a | [
"MIT"
] | null | null | null | priv/catalogue/button/example02.ex | devilcoders/facade | 6aca8aaaf643b83ec275344436049c162d3a3b9a | [
"MIT"
] | null | null | null | priv/catalogue/button/example02.ex | devilcoders/facade | 6aca8aaaf643b83ec275344436049c162d3a3b9a | [
"MIT"
] | null | null | null | defmodule Facade.Catalogue.Button.Example02 do
use Surface.Catalogue.Example,
subject: Facade.Button,
catalogue: Facade.Catalogue,
title: "Colors & Sizes",
direction: "vertical",
height: "110px",
container: {:div, class: "buttons"}
def render(assigns) do
~F"""
<Button>Default</Butto... | 28.25 | 57 | 0.661947 |
e8160397527a63559d331c047fdd1e20eb2a512b | 474 | ex | Elixir | test/support/test_setup/country.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | test/support/test_setup/country.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | test/support/test_setup/country.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.TestSetup.Country do
alias Nectar.Repo
def valid_attrs, do: %{"name" => "Country", "iso" => "Co", "iso3" => "Con", "numcode" => "123"}
def invalid_attrs, do: %{}
def create_country!(country_attrs \\ nil) do
attrs = country_attrs || valid_attrs
Nectar.Command.Country.insert!(Repo, attr... | 27.882353 | 97 | 0.679325 |
e81658029fac7c39130a2e425276decacef06b14 | 2,660 | exs | Elixir | mix.exs | kf8a/custom_rpi3a | b859a809b0a6e71fc81c2498cc66ca6cca978835 | [
"Apache-2.0"
] | null | null | null | mix.exs | kf8a/custom_rpi3a | b859a809b0a6e71fc81c2498cc66ca6cca978835 | [
"Apache-2.0"
] | null | null | null | mix.exs | kf8a/custom_rpi3a | b859a809b0a6e71fc81c2498cc66ca6cca978835 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi3a.MixProject do
use Mix.Project
@github_organization "nerves-project"
@app :nerves_system_rpi3a
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
... | 22.931034 | 82 | 0.582707 |
e816979c628e2bb400ec003dfda0258b2808462d | 2,533 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/bqml_iteration_result.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bqml_iteration_result.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bqml_iteration_result.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.216667 | 313 | 0.732333 |
e816b0982f050fe73af9aee06d5384d2e453b176 | 2,720 | exs | Elixir | phoenix158/my-phoenix-json-api/test/my_app_web/controllers/employee_controller_test.exs | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | phoenix158/my-phoenix-json-api/test/my_app_web/controllers/employee_controller_test.exs | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | phoenix158/my-phoenix-json-api/test/my_app_web/controllers/employee_controller_test.exs | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | defmodule MyAppWeb.EmployeeControllerTest do
use MyAppWeb.ConnCase
alias MyApp.Account
alias MyApp.Account.Employee
@create_attrs %{
interests: [],
name: "some name"
}
@update_attrs %{
interests: [],
name: "some updated name"
}
@invalid_attrs %{interests: nil, name: nil}
def fixture... | 28.333333 | 95 | 0.613235 |
e816d85466eef6fdce824a29f8b83c65154bfa19 | 1,391 | ex | Elixir | apps/ewallet/lib/ewallet/policies/transaction_policy.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/lib/ewallet/policies/transaction_policy.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/lib/ewallet/policies/transaction_policy.ex | 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 ... | 33.119048 | 77 | 0.718188 |
e817047a488c4ca2d8529ad7749917bcf3119533 | 384 | ex | Elixir | lib/protox/json_enum_encoder.ex | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 176 | 2017-02-01T13:09:25.000Z | 2022-03-18T02:36:17.000Z | lib/protox/json_enum_encoder.ex | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 94 | 2020-07-20T05:54:51.000Z | 2022-03-09T04:13:03.000Z | lib/protox/json_enum_encoder.ex | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 19 | 2017-02-13T09:17:14.000Z | 2022-02-22T09:29:18.000Z | defprotocol Protox.JsonEnumEncoder do
@moduledoc false
@doc since: "1.6.0"
@fallback_to_any true
@spec encode_enum(struct(), any(), (any() -> iodata())) :: iodata()
def encode_enum(enum, value, json_encode)
end
defimpl Protox.JsonEnumEncoder, for: Any do
def encode_enum(enum, value, json_encode) do
Pr... | 25.6 | 69 | 0.726563 |
e8171e1a56f0d51e951e869fa113e674d553e939 | 4,626 | exs | Elixir | backend/test/edgehog_web/schema/query/system_models_test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/test/edgehog_web/schema/query/system_models_test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/test/edgehog_web/schema/query/system_models_test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind 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 app... | 27.052632 | 89 | 0.595547 |
e8176e3b407742b0a65b02913792476da6d11b3c | 706 | ex | Elixir | lib/web/services/file_service.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/services/file_service.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/services/file_service.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.FileService do
use Librecov.Web, :service
alias Librecov.File
def files_with_filter([job | _], params), do: files_with_filter(job, params)
def files_with_filter(job, params) do
filters = Map.get(params, "filters", [])
order_field = Map.get(params, "order_field", "diff")
order_d... | 25.214286 | 78 | 0.674221 |
e8177d9ca61498e5f5a87e1114bbe68946493df1 | 3,295 | exs | Elixir | test/nerves/utils_test.exs | TheEndIsNear/nerves | 04eebbc725d74fa291d6b4844fc98850b0486ac9 | [
"Apache-2.0"
] | null | null | null | test/nerves/utils_test.exs | TheEndIsNear/nerves | 04eebbc725d74fa291d6b4844fc98850b0486ac9 | [
"Apache-2.0"
] | null | null | null | test/nerves/utils_test.exs | TheEndIsNear/nerves | 04eebbc725d74fa291d6b4844fc98850b0486ac9 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.UtilsTest do
use NervesTest.Case, async: false
# Special thanks to Hex
alias Nerves.Utils
test "proxy_config returns no credentials when no proxy supplied" do
assert Utils.Proxy.config("http://nerves-project.org") == []
end
test "proxy_config returns http_proxy credentials when suppl... | 34.322917 | 98 | 0.674659 |
e81780f410ccaaec73694669ec12494a28532d5d | 102 | ex | Elixir | lib/smile/repo.ex | reagan-chita/smile | c1c80679b4e14fd77f7fdc00bc7e368c514baedf | [
"MIT"
] | null | null | null | lib/smile/repo.ex | reagan-chita/smile | c1c80679b4e14fd77f7fdc00bc7e368c514baedf | [
"MIT"
] | 1 | 2021-05-11T13:24:22.000Z | 2021-05-11T13:24:22.000Z | lib/smile/repo.ex | reagan-chita/smile | c1c80679b4e14fd77f7fdc00bc7e368c514baedf | [
"MIT"
] | null | null | null | defmodule Smile.Repo do
use Ecto.Repo,
otp_app: :smile,
adapter: Ecto.Adapters.Postgres
end
| 17 | 35 | 0.715686 |
e81787c8798a57069f5c044d09265955f9d2038c | 32 | ex | Elixir | testData/org/elixir_lang/reference/module/as/suffix1.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/reference/module/as/suffix1.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/reference/module/as/suffix1.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule Prefix.Suffix1 do
end
| 10.666667 | 27 | 0.84375 |
e817bbbf0099f143fb007c2386878abe3aad4df9 | 1,520 | ex | Elixir | lib/bitcoin_simulator/simulation/tracker.ex | hojason117/BitcoinSimulator | f85e623eec1923a2c0d418388f440cc06b6a5283 | [
"MIT"
] | 1 | 2021-12-16T08:31:24.000Z | 2021-12-16T08:31:24.000Z | lib/bitcoin_simulator/simulation/tracker.ex | hojason117/BitcoinSimulator | f85e623eec1923a2c0d418388f440cc06b6a5283 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator/simulation/tracker.ex | hojason117/BitcoinSimulator | f85e623eec1923a2c0d418388f440cc06b6a5283 | [
"MIT"
] | null | null | null | defmodule BitcoinSimulator.Simulation.Tracker do
use GenServer
require Logger
alias BitcoinSimulator.Const
# Client
def start_link(_) do
GenServer.start_link(__MODULE__, nil, name: BitcoinSimulator.Simulation.Tracker)
end
# Server (callbacks)
def init(_) do
state = %{
total_peers: 0,
... | 26.666667 | 111 | 0.676316 |
e817d6b569cb333a93c504a0db86f8d101ff19c2 | 2,485 | ex | Elixir | apps/neoscan_web/lib/neoscan_web/views/transaction_view.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_web/lib/neoscan_web/views/transaction_view.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_web/lib/neoscan_web/views/transaction_view.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | defmodule NeoscanWeb.TransactionView do
use NeoscanWeb, :view
use Timex
import Number.Delimit
alias NeoscanMonitor.Api
alias Neoscan.Vm.Disassembler
alias Neoscan.Helpers
alias Neoscan.Explanations
alias NeoscanWeb.ViewHelper
alias Neoscan.ChainAssets
def get_type(type) do
cond do
type ==... | 19.263566 | 62 | 0.628571 |
e817f2263108ea6c4a48762d0aba5a86f7bf84b1 | 4,542 | ex | Elixir | apps/gitrekt/lib/gitrekt/wire_protocol.ex | joshnuss/gitgud | ea32d9d254cfd10a09c988763e03589c401d9875 | [
"MIT"
] | null | null | null | apps/gitrekt/lib/gitrekt/wire_protocol.ex | joshnuss/gitgud | ea32d9d254cfd10a09c988763e03589c401d9875 | [
"MIT"
] | null | null | null | apps/gitrekt/lib/gitrekt/wire_protocol.ex | joshnuss/gitgud | ea32d9d254cfd10a09c988763e03589c401d9875 | [
"MIT"
] | null | null | null | defmodule GitRekt.WireProtocol do
@moduledoc """
Conveniences for Git transport protocol and server side commands.
"""
alias GitRekt.Git
alias GitRekt.Packfile
alias GitRekt.WireProtocol.{Service, ReceivePack, UploadPack}
@upload_caps ~w(multi_ack multi_ack_detailed)
@receive_caps ~w(report-status del... | 31.324138 | 97 | 0.628798 |
e8183a0934154596c2a4d9d642bf5f50a91405ff | 2,403 | exs | Elixir | test/controllers/user_controller_test.exs | cjen07/social_network | 91011db115c2e7c9806652c1fff197049c9d62eb | [
"MIT"
] | 17 | 2017-01-02T10:38:28.000Z | 2021-02-28T22:16:54.000Z | test/controllers/user_controller_test.exs | cjen07/social_network | 91011db115c2e7c9806652c1fff197049c9d62eb | [
"MIT"
] | null | null | null | test/controllers/user_controller_test.exs | cjen07/social_network | 91011db115c2e7c9806652c1fff197049c9d62eb | [
"MIT"
] | 2 | 2017-01-09T13:02:13.000Z | 2018-06-16T22:01:53.000Z | defmodule SocialNetwork.UserControllerTest do
use SocialNetwork.ConnCase
# alias SocialNetwork.User
# @valid_attrs %{}
# @invalid_attrs %{}
# test "lists all entries on index", %{conn: conn} do
# conn = get conn, user_path(conn, :index)
# assert html_response(conn, 200) =~ "Listing users"
# end
... | 35.865672 | 100 | 0.648356 |
e8183ee88ba70b7a2e06da6c1fdae775c5bcdd18 | 1,430 | ex | Elixir | lib/taex/points/bollinger.ex | benyblack/Taex | a98bb1523497c455ce626cadd345185ecc03cea8 | [
"MIT"
] | 20 | 2017-07-17T13:08:21.000Z | 2021-07-15T05:58:19.000Z | lib/taex/points/bollinger.ex | benyblack/Taex | a98bb1523497c455ce626cadd345185ecc03cea8 | [
"MIT"
] | 3 | 2017-09-06T12:23:45.000Z | 2021-05-25T07:11:06.000Z | lib/taex/points/bollinger.ex | benyblack/Taex | a98bb1523497c455ce626cadd345185ecc03cea8 | [
"MIT"
] | 6 | 2017-09-01T15:43:17.000Z | 2019-12-30T07:58:25.000Z | defmodule Taex.Points.Bollinger do
alias Statistics
alias Taex.MovingAverage
@moduledoc """
The calculation for this was taken from http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:bollinger_bands
Bollinger Band is a registered trademark of John Bollinger.
"""
@type t :: %{up... | 34.878049 | 133 | 0.704196 |
e818b525e727f27d11caabc8ee7569206844f321 | 373 | ex | Elixir | apps/route_patterns/lib/repo_api.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/route_patterns/lib/repo_api.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/route_patterns/lib/repo_api.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule RoutePatterns.RepoApi do
@moduledoc """
Behavior for an API client for fetching route pattern data.
"""
alias RoutePatterns.RoutePattern
alias Routes.Route
@doc """
Return all route patterns for a route ID
"""
@callback by_route_id(Route.id_t()) :: [RoutePattern.t()]
@callback by_route_i... | 24.866667 | 70 | 0.705094 |
e818cad49d0afd8ad02e03f5fc4aec2d307cf369 | 386 | ex | Elixir | lib/osm_points_web/router.ex | OSM-Browser/points-api | 7022d4e61318fc8da507809302a57bf38223207a | [
"MIT"
] | 2 | 2018-01-18T20:38:08.000Z | 2020-01-19T17:44:20.000Z | lib/osm_points_web/router.ex | OSM-Browser/points-api | 7022d4e61318fc8da507809302a57bf38223207a | [
"MIT"
] | 85 | 2018-02-26T05:30:01.000Z | 2021-07-26T06:22:02.000Z | lib/osm_points_web/router.ex | OSM-Browser/points-api | 7022d4e61318fc8da507809302a57bf38223207a | [
"MIT"
] | 1 | 2018-10-07T06:57:34.000Z | 2018-10-07T06:57:34.000Z | defmodule OsmPointsWeb.Router do
use OsmPointsWeb, :router
use Plugsnag
pipeline :api do
plug :accepts, ["json"]
end
scope "/" do
pipe_through :api
get "/points", OsmPointsWeb.PointController, :index
forward "/graphiql", Absinthe.Plug.GraphiQL,
schema: OsmPointsWeb.Schema
forwar... | 18.380952 | 55 | 0.681347 |
e818ce69c3897267ae1fc754ebd3109a70115e08 | 3,419 | exs | Elixir | mix.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | mix.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | mix.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | defmodule Cizen.MixProject do
use Mix.Project
def project do
[
app: :cizen,
version: "0.18.1",
package: package(),
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Cizen",
docs: docs(),
... | 23.57931 | 102 | 0.548113 |
e818d287e4b6dfeb9c3d9df8658e0d2abd0c78a9 | 1,439 | exs | Elixir | config/dev.exs | infinitered/phoenix_base | 8c8ddd63ff1412f9f90cbe7cf24278618bcb2e11 | [
"MIT"
] | 71 | 2016-01-07T18:36:47.000Z | 2021-02-26T00:21:58.000Z | config/dev.exs | infinitered/phoenix_base | 8c8ddd63ff1412f9f90cbe7cf24278618bcb2e11 | [
"MIT"
] | 15 | 2016-01-15T17:48:07.000Z | 2017-07-18T16:00:03.000Z | config/dev.exs | infinitered/phoenix_base | 8c8ddd63ff1412f9f90cbe7cf24278618bcb2e11 | [
"MIT"
] | 22 | 2016-02-02T23:49:21.000Z | 2019-08-08T12:53:49.000Z | 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 :phoenix_base, PhoenixBase.Endpoint,
http: [po... | 29.367347 | 60 | 0.715775 |
e81917a183f43dd391c51945e618de9e8de08d58 | 3,332 | exs | Elixir | test/task_bunny/status/worker_test.exs | spencerdcarlson/task_bunny | 2a4b1be32110858f1466d945e5b3248862ef60a2 | [
"MIT"
] | null | null | null | test/task_bunny/status/worker_test.exs | spencerdcarlson/task_bunny | 2a4b1be32110858f1466d945e5b3248862ef60a2 | [
"MIT"
] | 55 | 2020-05-12T05:18:41.000Z | 2022-03-24T04:04:17.000Z | test/task_bunny/status/worker_test.exs | jnylen/task_bunny | 72f014960b71b3e4b2685f9296c28819cd85929f | [
"MIT"
] | 2 | 2018-12-14T23:35:00.000Z | 2019-05-17T20:40:53.000Z | defmodule TaskBunny.Status.WorkerTest do
use ExUnit.Case, async: false
import TaskBunny.QueueTestHelper
alias TaskBunny.{Config, Queue, JobTestHelper}
alias JobTestHelper.TestJob
@host :worker_test
@supervisor :worker_test_supervisor
@worker_supervisor :worker_test_worker_supervisor
@publisher :worker... | 25.829457 | 80 | 0.669868 |
e8191b78e3251b3ac58b60c484a38c1007cfb630 | 319 | exs | Elixir | 01_test.exs | ivanrosolen/how-to-elixir | 46386a1316a39ac083cb4efa96eaf4641b2ac3ac | [
"MIT"
] | null | null | null | 01_test.exs | ivanrosolen/how-to-elixir | 46386a1316a39ac083cb4efa96eaf4641b2ac3ac | [
"MIT"
] | null | null | null | 01_test.exs | ivanrosolen/how-to-elixir | 46386a1316a39ac083cb4efa96eaf4641b2ac3ac | [
"MIT"
] | null | null | null | #IO.puts("Ivan")
#IO.puts "Rosolen"
#IO.puts "Ivan" <> "Rosolen"
ExUnit.start
defmodule IvanTest do
use ExUnit.Case
test "sucesso" do
assert 1 + 1 == 2
end
test 'erro' do
refute 1 + 1 == 3
end
test :atom_assert_raise do
assert_raise ArithmeticError, fn ->
1 + "x"
end
end
end | 13.291667 | 39 | 0.605016 |
e8192f1fd9197199bf8c739d58ce583d71077a4f | 158 | ex | Elixir | lib/excoveralls_linter/coverage_tool.ex | miros/excoveralls_linter | 661e9d4019d9f8842340c172d78341e8822d4d6c | [
"Apache-2.0"
] | 4 | 2019-11-25T15:32:45.000Z | 2020-01-29T23:27:45.000Z | lib/excoveralls_linter/coverage_tool.ex | miros/excoveralls_linter | 661e9d4019d9f8842340c172d78341e8822d4d6c | [
"Apache-2.0"
] | null | null | null | lib/excoveralls_linter/coverage_tool.ex | miros/excoveralls_linter | 661e9d4019d9f8842340c172d78341e8822d4d6c | [
"Apache-2.0"
] | null | null | null | defmodule ExCoverallsLinter.CoverageTool do
alias ExCoverallsLinter.SourceFile
@type t :: module
@callback get_coverage() :: list(SourceFile.t())
end
| 19.75 | 50 | 0.765823 |
e8193ec609d1348b24faf4c1b0090a7bee3570e4 | 5,595 | exs | Elixir | lib/elixir/test/elixir/map_set_test.exs | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | 1 | 2019-06-27T08:47:13.000Z | 2019-06-27T08:47:13.000Z | lib/elixir/test/elixir/map_set_test.exs | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/map_set_test.exs | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule MapSetTest do
use ExUnit.Case, async: true
doctest MapSet
test "new/1" do
result = MapSet.new(1..5)
assert MapSet.equal?(result, Enum.into(1..5, MapSet.new()))
end
test "new/2" do
result = MapSet.new(1..5, &(&1 + 2))
assert MapSet.equ... | 32.52907 | 88 | 0.640393 |
e8194515e46ab5a5a2d85e9372a6692124452ac1 | 1,371 | ex | Elixir | test/support/data_case.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/support/data_case.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/support/data_case.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | defmodule Chankins.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every tes... | 25.388889 | 74 | 0.681255 |
e81965bf6e4ad693f639e7d3c414a233f4a5b21a | 2,203 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.365385 | 642 | 0.76305 |
e819ab63d7015432f11d668a673e78aa828ae231 | 1,495 | ex | Elixir | clients/access_approval/lib/google_api/access_approval/v1/model/dismiss_decision.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/model/dismiss_decision.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/model/dismiss_decision.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... | 31.808511 | 116 | 0.743813 |
e819b5afd6398bddc101fa5dc75c5c4bea8c7b11 | 571 | ex | Elixir | lib/zaryn/p2p/endpoint/supervisor.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/p2p/endpoint/supervisor.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/p2p/endpoint/supervisor.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.P2P.Endpoint.Supervisor do
@moduledoc false
use Supervisor
alias Zaryn.P2P.Endpoint.Listener
alias Zaryn.Utils
def start_link(args) do
Supervisor.start_link(__MODULE__, args, name: __MODULE__)
end
def init(args) do
static_children = [
{Task.Supervisor, strategy: :one_for_... | 21.148148 | 94 | 0.709282 |
e819ce0acfb8a956281930557307e2049864aeae | 4,535 | exs | Elixir | test/magnemite/accounts/account_opening_requests_test.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | test/magnemite/accounts/account_opening_requests_test.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | test/magnemite/accounts/account_opening_requests_test.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | defmodule Magnemite.Accounts.AccountOpeningRequestsTest do
use Magnemite.DataCase, async: true
alias Magnemite.Accounts.{
Account,
AccountOpeningRequest,
AccountOpeningRequests
}
describe "list_done_by_referrer_id/1" do
test "lists complete requests matching referrer_id" do
%{id: account... | 37.479339 | 96 | 0.716869 |
e819de097462cd44ec8c5d4c66b142b218df5684 | 7,032 | ex | Elixir | lib/ex_twilio/url_generator.ex | mirego/ex_twilio | 0b4b9c530c151fd5748520ac95a3a9d54f15720b | [
"MIT"
] | null | null | null | lib/ex_twilio/url_generator.ex | mirego/ex_twilio | 0b4b9c530c151fd5748520ac95a3a9d54f15720b | [
"MIT"
] | null | null | null | lib/ex_twilio/url_generator.ex | mirego/ex_twilio | 0b4b9c530c151fd5748520ac95a3a9d54f15720b | [
"MIT"
] | 1 | 2021-11-09T07:56:11.000Z | 2021-11-09T07:56:11.000Z | defmodule ExTwilio.UrlGenerator do
@moduledoc """
Generates Twilio URLs for modules. See `build_url/3` for more information.
"""
alias ExTwilio.Config
@doc """
Infers the proper Twilio URL for a resource when given a module, an optional
SID, and a list of options.
Note that the module should have the... | 30.977974 | 96 | 0.64434 |
e819e356b4589d446c2c5e4f8f244b81e832ec58 | 1,097 | ex | Elixir | lib/mix/bonny.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | lib/mix/bonny.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | lib/mix/bonny.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | defmodule Mix.Bonny do
@moduledoc """
Mix task helpers
"""
@doc "Parse CLI input"
def parse_args(args, defaults, cli_opts \\ []) do
{opts, parsed, invalid} = OptionParser.parse(args, cli_opts)
merged_opts = Keyword.merge(defaults, opts)
{merged_opts, parsed, invalid}
end
@doc """
Render t... | 21.509804 | 82 | 0.654512 |
e81a19bc2280f045b22a97c4576728042aa1d647 | 3,117 | exs | Elixir | apps/game_services_web/test/game_services_web/controllers/ticket_controller_test.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 4 | 2018-11-09T16:57:06.000Z | 2021-03-02T22:57:17.000Z | apps/game_services_web/test/game_services_web/controllers/ticket_controller_test.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 29 | 2018-10-26T08:29:37.000Z | 2018-12-09T21:02:05.000Z | apps/game_services_web/test/game_services_web/controllers/ticket_controller_test.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | null | null | null | defmodule GameServicesWeb.TicketControllerTest do
use GameServicesWeb.ConnCase
alias GameServices.Authentication
@create_attrs %{
client_token: "some client_token",
salt: "some salt",
server_token: "some server_token",
username: "some username"
}
@update_attrs %{
client_token: "some upda... | 31.17 | 89 | 0.669875 |
e81a45b8ddfd28f61a76ddaad042b41a47ce4140 | 2,589 | exs | Elixir | deps/earmark/tasks/readme.exs | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/earmark/tasks/readme.exs | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/earmark/tasks/readme.exs | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-09-15T17:47:35.000Z | 2020-09-15T17:47:35.000Z | defmodule Mix.Tasks.Readme do
use Mix.Task
@shortdoc "Build README.md by including module docs"
@moduledoc """
Imagine a README.md that contains
# Overview
<!-- moduledoc: Earmark -->
# Typical calling sequence
<!-- doc: Earmark.to_html -->
Run this task, and the README will be ... | 24.196262 | 76 | 0.543453 |
e81a50525d8aad9e02e26f58ae5e615aa41972f4 | 705 | ex | Elixir | lib/hydra_web/gettext.ex | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | lib/hydra_web/gettext.ex | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | lib/hydra_web/gettext.ex | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | defmodule HydraWeb.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 HydraWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
e81aa382e9dd530233dc5b29bf9a46725e31b7ea | 2,121 | exs | Elixir | test/live_beats_web/live/profile_live_test.exs | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | 547 | 2022-02-02T14:11:31.000Z | 2022-03-31T12:34:03.000Z | test/live_beats_web/live/profile_live_test.exs | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | 24 | 2022-02-02T14:11:36.000Z | 2022-02-23T20:14:43.000Z | test/live_beats_web/live/profile_live_test.exs | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | 63 | 2022-02-02T15:59:36.000Z | 2022-03-23T05:30:43.000Z | defmodule LiveBeatsWeb.ProfileLiveTest do
use LiveBeatsWeb.ConnCase
import Phoenix.LiveViewTest
import LiveBeats.AccountsFixtures
alias LiveBeats.MediaLibrary
alias LiveBeatsWeb.LiveHelpers
setup %{conn: conn} do
current_user = user_fixture(%{username: "chrismccord"})
user2 = user_fixture(%{usern... | 28.28 | 90 | 0.585573 |
e81aaa6fcc0ad3031f4614b4adf0461d23924798 | 870 | ex | Elixir | lib/wow/jobs/icon_crawler.ex | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | lib/wow/jobs/icon_crawler.ex | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | lib/wow/jobs/icon_crawler.ex | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | defmodule Wow.Jobs.IconCrawler do
use Toniq.Worker, max_concurrency: 10
import Wow.Helpers, only: [with_logs: 1]
@base_url "https://render-us.worldofwarcraft.com/icons"
@extension ".jpg"
@spec perform([{:name, String.t} | {:size, String.t}]) :: :ok
def perform(name: name, size: size) do
with_logs(fn -... | 27.1875 | 97 | 0.590805 |
e81adabb95b23298124d82b2d982dfd4caec1b78 | 2,121 | ex | Elixir | lib/zstream/encryption_coder/traditional.ex | derrimahendra/zstream | 81a777af16c1657fc5b607d49dab8e520fa8c890 | [
"MIT"
] | null | null | null | lib/zstream/encryption_coder/traditional.ex | derrimahendra/zstream | 81a777af16c1657fc5b607d49dab8e520fa8c890 | [
"MIT"
] | null | null | null | lib/zstream/encryption_coder/traditional.ex | derrimahendra/zstream | 81a777af16c1657fc5b607d49dab8e520fa8c890 | [
"MIT"
] | null | null | null | defmodule Zstream.EncryptionCoder.Traditional do
@behaviour Zstream.EncryptionCoder
@moduledoc """
Implements the trandition encryption
"""
use Bitwise
defmodule State do
@moduledoc false
defstruct key0: 0x12345678,
key1: 0x23456789,
key2: 0x34567890,
head... | 24.37931 | 83 | 0.602546 |
e81b465bba2546cad997cefab4dda7ce6d5c05dc | 797 | exs | Elixir | mix.exs | evnu/rusty | 3655002b1584e9203f2cf93f0209e09961ec7c16 | [
"Apache-2.0"
] | 1 | 2019-09-27T05:52:36.000Z | 2019-09-27T05:52:36.000Z | mix.exs | evnu/rusty | 3655002b1584e9203f2cf93f0209e09961ec7c16 | [
"Apache-2.0"
] | null | null | null | mix.exs | evnu/rusty | 3655002b1584e9203f2cf93f0209e09961ec7c16 | [
"Apache-2.0"
] | null | null | null | defmodule Rusty.Mixfile do
use Mix.Project
def project do
[
app: :rusty,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates()
]
end
# Run "mix help compi... | 19.439024 | 83 | 0.558344 |
e81b6b435f2323baeb565dcf8e671e4c7eeb5173 | 1,213 | exs | Elixir | bench/witchcraft/semigroup/map_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 454 | 2019-06-05T22:56:45.000Z | 2022-03-27T23:03:02.000Z | bench/witchcraft/semigroup/map_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 26 | 2019-07-08T09:29:08.000Z | 2022-02-04T02:40:48.000Z | bench/witchcraft/semigroup/map_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 36 | 2019-06-25T17:45:27.000Z | 2022-03-21T01:53:42.000Z | defmodule Witchcraft.Semigroup.MapBench do
use Benchfella
use Witchcraft.Semigroup
#########
# Setup #
#########
# ---------- #
# Data Types #
# ---------- #
@list_a 11..100 |> Enum.to_list() |> Enum.shuffle()
@list_b 99..999 |> Enum.to_list() |> Enum.shuffle()
@map_a @list_a |> Enum.zip(@list... | 22.886792 | 64 | 0.521022 |
e81b9c3c60665f7208ab1ead827675fcd7510cc9 | 11,552 | ex | Elixir | lib/nerves/artifact.ex | amclain/nerves | 054e9b378d33280a4cf2eb30937d6137e95d6acf | [
"Apache-2.0"
] | 1,944 | 2016-01-25T14:04:50.000Z | 2022-03-30T13:25:53.000Z | lib/nerves/artifact.ex | amclain/nerves | 054e9b378d33280a4cf2eb30937d6137e95d6acf | [
"Apache-2.0"
] | 397 | 2016-05-19T21:17:51.000Z | 2022-03-30T18:02:49.000Z | lib/nerves/artifact.ex | LaudateCorpus1/nerves | 2028efffc184cefb2616c49446828ef93c92db58 | [
"Apache-2.0"
] | 191 | 2016-01-30T01:56:25.000Z | 2022-03-30T17:58:57.000Z | defmodule Nerves.Artifact do
@moduledoc """
Package artifacts are the product of compiling a package with a
specific toolchain.
"""
alias Nerves.Artifact.{Cache, BuildRunners, Resolvers}
@checksum_short 7
@doc """
Builds the package and produces an See Nerves.Artifact
for more information.
"""
... | 27.053864 | 115 | 0.620499 |
e81b9d4e7cee63e2f64c801348e7d5f57b61d7dc | 24,539 | ex | Elixir | lib/ex_hl7.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | null | null | null | lib/ex_hl7.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | null | null | null | lib/ex_hl7.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | null | null | null | defmodule HL7 do
@moduledoc """
Main module of the **ex_hl7** library.
"""
alias HL7.{Codec, Message, Reader, Segment, Type, Writer}
@type segment_id :: Type.segment_id()
@type sequence :: Type.sequence()
@type composite_id :: Type.composite_id()
@type field :: Type.field()
@type item_type :: Type.it... | 33.753783 | 141 | 0.680875 |
e81ba05f5c80c48ad0eb9b1b091485e69e27748b | 954 | ex | Elixir | test/support/channel_case.ex | shawnonthenet/mathmatical | d0f8d9e77dc71edfdc88776daca973fcd9cd106b | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | shawnonthenet/mathmatical | d0f8d9e77dc71edfdc88776daca973fcd9cd106b | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | shawnonthenet/mathmatical | d0f8d9e77dc71edfdc88776daca973fcd9cd106b | [
"Apache-2.0"
] | null | null | null | defmodule MathmaticalWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interac... | 25.105263 | 73 | 0.720126 |
e81bad1c7c4ce11f3b5ffcd205e756edb5e64942 | 4,489 | ex | Elixir | lib/xmlmetaprogramming.ex | dkuhlman/xmlelixirstructs | 466b7c163703a1a8b9eb4553e3e3f7cf0404e53d | [
"BSD-3-Clause"
] | 1 | 2020-01-27T11:30:32.000Z | 2020-01-27T11:30:32.000Z | lib/xmlmetaprogramming.ex | dkuhlman/xmlelixirstructs | 466b7c163703a1a8b9eb4553e3e3f7cf0404e53d | [
"BSD-3-Clause"
] | null | null | null | lib/xmlmetaprogramming.ex | dkuhlman/xmlelixirstructs | 466b7c163703a1a8b9eb4553e3e3f7cf0404e53d | [
"BSD-3-Clause"
] | null | null | null | defmodule XmerlAccess do
@moduledoc """
Use Elixir meta-programming to generate test and accessor functions.
For each Xmerl record type generate the following:
- A test function, e.g. `is_element/1`, `is_attribute/1`, etc.
- A set of assessor functions, one for each field, e.g. `get_element_name/1`,
`... | 30.127517 | 104 | 0.648474 |
e81bc99ebb5589222310c7f7ae269f712a4b0567 | 2,898 | exs | Elixir | apps/sherbet_api/test/sherbet.api.contact/email_test.exs | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | 3 | 2017-05-02T12:52:54.000Z | 2017-05-28T11:53:17.000Z | apps/sherbet_api/test/sherbet.api.contact/email_test.exs | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | null | null | null | apps/sherbet_api/test/sherbet.api.contact/email_test.exs | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | 2 | 2017-05-02T13:13:25.000Z | 2019-10-24T11:55:39.000Z | defmodule Sherbet.API.Contact.EmailTest do
use Sherbet.Service.Case
alias Sherbet.API.Contact.Email
setup do
{ :ok, %{ identity: Ecto.UUID.generate() } }
end
test "associate email with identity", %{ identity: identity } do
assert { :ok, false } == Email.contact?(identity, "foo@foo... | 42.617647 | 158 | 0.6294 |
e81bcbc1d3e86da3b7b4bc99673e3c1a70448a65 | 1,185 | ex | Elixir | lib/csv_uploader_web/channels/user_socket.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | lib/csv_uploader_web/channels/user_socket.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | lib/csv_uploader_web/channels/user_socket.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | defmodule CsvUploaderWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", CsvUploaderWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to veri... | 31.184211 | 86 | 0.706329 |
e81bef9de19be241ef9075dfc707d60f2808f219 | 1,011 | exs | Elixir | test/cli_test.exs | erikvullings/issues | ccfc7086891b2fd793a519996a9a2eb7ca29dbb0 | [
"MIT"
] | null | null | null | test/cli_test.exs | erikvullings/issues | ccfc7086891b2fd793a519996a9a2eb7ca29dbb0 | [
"MIT"
] | null | null | null | test/cli_test.exs | erikvullings/issues | ccfc7086891b2fd793a519996a9a2eb7ca29dbb0 | [
"MIT"
] | null | null | null | defmodule CliTest do
use ExUnit.Case
import Issues.CLI, only: [
parse_args: 1,
sort_into_ascending_order: 1,
convert_to_list_of_hashdicts: 1
]
test ":help returned by option parsing with -h and --help options" do
assert parse_args(["-h", "anything"]) == :help
assert parse_args(["--help", "... | 28.885714 | 77 | 0.652819 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.