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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8e5e73285a4af7926e6d83ea2d8156a679bdcfb | 83 | ex | Elixir | lib/home_work_manager/repo.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | lib/home_work_manager/repo.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | lib/home_work_manager/repo.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | defmodule HomeWorkManager.Repo do
use Ecto.Repo, otp_app: :home_work_manager
end
| 20.75 | 44 | 0.819277 |
e8e60f3f9cac9edb91a7784d67cd83b3f906b72b | 159 | exs | Elixir | test/logger_exporter_test.exs | TwistingTwists/logger_exporter | 21639b1cf3cf1f7867e241d9a2ec920531b8b693 | [
"MIT"
] | 9 | 2022-01-31T02:16:05.000Z | 2022-02-13T00:30:05.000Z | test/logger_exporter_test.exs | TwistingTwists/logger_exporter | 21639b1cf3cf1f7867e241d9a2ec920531b8b693 | [
"MIT"
] | 5 | 2022-02-08T23:40:07.000Z | 2022-02-22T05:19:38.000Z | test/logger_exporter_test.exs | TwistingTwists/logger_exporter | 21639b1cf3cf1f7867e241d9a2ec920531b8b693 | [
"MIT"
] | 2 | 2022-02-11T05:06:21.000Z | 2022-02-22T03:32:44.000Z | defmodule LoggerExporterTest do
use ExUnit.Case
doctest LoggerExporter
test "greets the world" do
assert LoggerExporter.hello() == :world
end
end
| 17.666667 | 43 | 0.748428 |
e8e61eb9bdaa7c8847dc4aed634c2bbfff7d89d5 | 1,039 | ex | Elixir | lib/protox/json_library.ex | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 176 | 2017-02-01T13:09:25.000Z | 2022-03-18T02:36:17.000Z | lib/protox/json_library.ex | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 94 | 2020-07-20T05:54:51.000Z | 2022-03-09T04:13:03.000Z | lib/protox/json_library.ex | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 19 | 2017-02-13T09:17:14.000Z | 2022-02-22T09:29:18.000Z | defmodule Protox.JsonLibrary do
@moduledoc """
The behaviour to implement when wrapping a JSON library.
"""
@callback load() :: {:ok, atom()} | :error
@doc """
Should wrap any exception of the underlying library in Protox.JsonDecodingError.
"""
@callback decode!(atom(), iodata()) :: term() | no_return... | 28.861111 | 85 | 0.672762 |
e8e62877169ea8b571e22c95dcaa2ed4e184b866 | 1,129 | exs | Elixir | config/config.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 5 | 2019-06-12T11:26:12.000Z | 2022-01-28T19:45:47.000Z | config/config.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 2 | 2019-06-04T13:19:55.000Z | 2021-04-19T07:17:34.000Z | config/config.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 1 | 2019-06-12T11:26:14.000Z | 2019-06-12T11:26:14.000Z | # 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 |
e8e653980454497995c7e58ecf59403d255492f0 | 1,501 | ex | Elixir | lib/gitstat/cake.ex | spawnfest/fuchsia-team | 26aa4ee5a6e8ab023ef9038a35b35f4deed16a7d | [
"MIT"
] | 2 | 2019-05-25T18:34:43.000Z | 2020-01-20T17:35:31.000Z | lib/gitstat/cake.ex | spawnfest/fuchsia-team | 26aa4ee5a6e8ab023ef9038a35b35f4deed16a7d | [
"MIT"
] | 1 | 2019-01-25T19:16:23.000Z | 2019-08-30T18:40:10.000Z | lib/gitstat/cake.ex | spawnfest/fuchsia-team | 26aa4ee5a6e8ab023ef9038a35b35f4deed16a7d | [
"MIT"
] | null | null | null | defmodule Gitstat.Cake do
use GenServer
# Client Interface
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, :ok, opts)
end
def async_run(pid, receiver, path) do
GenServer.cast(pid, { :run, receiver, path })
end
# Server Interface
def init(:ok) do
state = []
{ :ok, stat... | 26.803571 | 83 | 0.628248 |
e8e672edac7253f588a26061673dfbc96f44fa76 | 5,538 | ex | Elixir | lib/elixir_sense/providers/implementation.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 216 | 2019-01-05T02:08:51.000Z | 2022-03-23T23:59:56.000Z | lib/elixir_sense/providers/implementation.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 102 | 2019-01-18T04:59:06.000Z | 2022-01-10T14:21:24.000Z | lib/elixir_sense/providers/implementation.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 31 | 2019-01-16T08:19:34.000Z | 2022-03-07T08:06:22.000Z | defmodule ElixirSense.Providers.Implementation do
@moduledoc """
Provides a function to find out where symbols are implemented.
"""
alias ElixirSense.Core.Binding
alias ElixirSense.Core.Introspection
alias ElixirSense.Core.Normalized
alias ElixirSense.Core.Source
alias ElixirSense.Core.State
alias El... | 25.40367 | 96 | 0.588118 |
e8e68c7bebfa390e4872093dfac155bb9ef522aa | 648 | ex | Elixir | lib/credo/check/consistency/line_endings/collector.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/check/consistency/line_endings/collector.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/check/consistency/line_endings/collector.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Consistency.LineEndings.Collector do
@moduledoc false
use Credo.Check.Consistency.Collector
def collect_matches(source_file, _params) do
source_file
|> SourceFile.lines()
|> Enum.reduce(%{}, fn line, stats ->
Map.update(stats, line_ending(line), 1, &(&1 + 1))
end)
e... | 20.903226 | 58 | 0.641975 |
e8e6adcc756bff815e5a4c129ca5fb2d09cbd9c5 | 632 | ex | Elixir | lib/bitlog_web/open_api_spex/spec.ex | Soonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | 2 | 2019-12-03T10:38:38.000Z | 2019-12-04T23:52:11.000Z | lib/bitlog_web/open_api_spex/spec.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | lib/bitlog_web/open_api_spex/spec.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | defmodule BitlogWeb.OpenApiSpex.Spec do
@moduledoc "The API Spec root"
alias BitlogWeb.{Endpoint, Router}
alias OpenApiSpex.{Info, OpenApi, Paths, Server}
@behaviour OpenApi
@impl OpenApi
def spec do
%OpenApi{
servers: [
# Populate the Server info from a phoenix endpoint
Server.f... | 24.307692 | 58 | 0.653481 |
e8e6c4645426d50a369def0a63d561a9e717f34c | 6,619 | ex | Elixir | lib/ash/data_layer/mnesia.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/data_layer/mnesia.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/data_layer/mnesia.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.DataLayer.Mnesia do
@moduledoc """
An Mnesia backed Ash Datalayer.
In your application intialization, you will need to call `Mnesia.create_schema([node()])`.
Additionally, you will want to create your mnesia tables there.
This data layer is *extremely unoptimized*, fetching all records from a... | 23.895307 | 102 | 0.574256 |
e8e6e9ffd791ff5620287211792b5eb34e8d72a8 | 1,296 | ex | Elixir | lib/movekr_web/resolvers/Projects_resolver.ex | devandcoffee/movekr-be | bff1690e22daec9a545ca7b69495cb928d68c0a5 | [
"MIT"
] | null | null | null | lib/movekr_web/resolvers/Projects_resolver.ex | devandcoffee/movekr-be | bff1690e22daec9a545ca7b69495cb928d68c0a5 | [
"MIT"
] | null | null | null | lib/movekr_web/resolvers/Projects_resolver.ex | devandcoffee/movekr-be | bff1690e22daec9a545ca7b69495cb928d68c0a5 | [
"MIT"
] | null | null | null | defmodule MovekrWeb.ProjectsResolver do
alias Movekr.Projects
def create_project(_root, args, _info) do
case Projects.create_project(args.project) do
{:ok, project} ->
{:ok, project}
{:error, changeset} ->
errors =
Ecto.Changeset.traverse_errors(changeset, fn {msg, opts} ... | 27 | 83 | 0.518519 |
e8e6ef063f1b06d78def54bb14b3953e8769c026 | 1,351 | ex | Elixir | kousa/lib/beef/room_blocks.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/lib/beef/room_blocks.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/lib/beef/room_blocks.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Beef.RoomBlocks do
import Ecto.Query
alias Kousa.Utils.Pagination
alias Beef.Schemas.User
alias Beef.Schemas.RoomBlock
alias Beef.Repo
alias Beef.Users
def unban(room_id, user_id) do
from(rb in RoomBlock, where: rb.userId == ^user_id and rb.roomId == ^room_id)
|> Repo.delete_all()
end... | 24.125 | 98 | 0.628423 |
e8e6f261416d7e89f72296b587af885d5f4fc013 | 1,902 | ex | Elixir | lib/nox.nvm.ex | tableturn/nox | 4fbe1a08196b2f84cca702715e84e6c7a67a42aa | [
"Apache-2.0"
] | null | null | null | lib/nox.nvm.ex | tableturn/nox | 4fbe1a08196b2f84cca702715e84e6c7a67a42aa | [
"Apache-2.0"
] | null | null | null | lib/nox.nvm.ex | tableturn/nox | 4fbe1a08196b2f84cca702715e84e6c7a67a42aa | [
"Apache-2.0"
] | null | null | null | defmodule Nox.Nvm do
@moduledoc """
NVM wrapper
"""
alias Nox.Semver
@type string_type :: :string | :charlist
@doc """
Run NVM command
"""
@spec run(Nox.Env.t(), String.t() | nil) :: :ok | {:error, code :: integer}
def run(env, args) do
exe = Path.join([basedir(env), "bin", "nodenv"])
cas... | 22.116279 | 77 | 0.550473 |
e8e6f8c774e5b897de76f72b15616a7cd7684abd | 142 | exs | Elixir | test/organizing_a_project_1/issues_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | test/organizing_a_project_1/issues_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | 1 | 2020-01-28T00:19:53.000Z | 2020-01-28T00:19:53.000Z | test/organizing_a_project_1/issues_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | defmodule IssuesTest do
use ExUnit.Case
doctest ElixirPractice.OrganizingAProject1
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.777778 | 44 | 0.725352 |
e8e71fba5b606d84d54896edbb6cb8e6f82d9d70 | 1,019 | ex | Elixir | programming/elixir/conduit/lib/conduit_web/views/article_view.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/lib/conduit_web/views/article_view.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/lib/conduit_web/views/article_view.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule ConduitWeb.ArticleView do
use ConduitWeb, :view
alias ConduitWeb.ArticleView
def render("index.json", %{articles: articles, total_count: total_count}) do
%{
articles: render_many(articles, ArticleView, "article.json"),
articlesCount: total_count,
}
end
def render("show.json", %... | 28.305556 | 78 | 0.672228 |
e8e729108b47d5086a013e03425a8e3f9ccec7c3 | 2,777 | exs | Elixir | test/bsv/sig_test.exs | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 26 | 2019-08-31T13:39:50.000Z | 2022-01-18T10:23:26.000Z | test/bsv/sig_test.exs | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-04-24T18:24:01.000Z | 2021-06-15T10:59:33.000Z | test/bsv/sig_test.exs | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-05-21T15:27:31.000Z | 2021-06-13T05:26:47.000Z | defmodule BSV.SigTest do
use ExUnit.Case, async: true
alias BSV.Sig
alias BSV.{OutPoint, PrivKey, PubKey, Script, Tx, TxIn, TxOut, Util}
@prev_txout %TxOut{
satoshis: 50000,
script: %Script{chunks: [
:OP_DUP,
:OP_HASH160,
<<47, 105, 50, 137, 102, 179, 60, 141, 131, 76, 2, 71, 24, 254,... | 32.290698 | 116 | 0.656824 |
e8e74b6b6370a9c93611f344fd21ea9666f0c786 | 1,568 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/get_database_ddl_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/get_database_ddl_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/get_database_ddl_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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.666667 | 146 | 0.75 |
e8e7634ef8323bcb900b042e75d29d96ff223eb4 | 4,333 | exs | Elixir | 2022/w04/bank_kata_ex/test/bank/core/model/account_test.exs | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/test/bank/core/model/account_test.exs | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/test/bank/core/model/account_test.exs | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | defmodule Bank.Core.Model.AccountTest do
use ExUnit.Case
alias Bank.Core.Model.Account
alias Bank.Core.Model.Transaction
alias Bank.Core.Model.Amount
alias Bank.Tests.Support
ExUnit.Case.register_describe_attribute(__MODULE__, :test_fixtures, accumulate: true)
@sample_account_id Support.new_id()
@sa... | 26.260606 | 93 | 0.576737 |
e8e76c074997c560dcaf9bdca18a4399b82fd30f | 6,301 | ex | Elixir | deps/sqlitex/lib/sqlitex.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | deps/sqlitex/lib/sqlitex.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | deps/sqlitex/lib/sqlitex.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | defmodule Sqlitex do
if Version.compare(System.version, "1.3.0") == :lt do
@type charlist :: char_list
end
@type connection :: {:connection, reference(), reference()}
@type string_or_charlist :: String.t | charlist
@type sqlite_error :: {:error, {:sqlite_error, charlist}}
@moduledoc """
Sqlitex give... | 39.628931 | 131 | 0.676242 |
e8e76c427c8a1284b5b936fdb237681dcf809525 | 655 | ex | Elixir | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_web/lib/{{APP_NAME}}_web/router.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_web/lib/{{APP_NAME}}_web/router.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_web/lib/{{APP_NAME}}_web/router.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | defmodule {{MODULE_NAME}}Web.Router do
use {{MODULE_NAME}}Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", {{MODUL... | 22.586207 | 57 | 0.676336 |
e8e7708ad301079991360a62190a3ccd3dbaf98a | 401 | exs | Elixir | test/key_web/views/error_view_test.exs | joaothallis/key | 10e7aa872d907ca585418ca0cd74c4c2a88de033 | [
"MIT"
] | 1 | 2018-09-09T22:30:16.000Z | 2018-09-09T22:30:16.000Z | test/key_web/views/error_view_test.exs | joaothallis/key | 10e7aa872d907ca585418ca0cd74c4c2a88de033 | [
"MIT"
] | 36 | 2018-09-09T15:08:05.000Z | 2022-03-23T09:27:10.000Z | test/key_web/views/error_view_test.exs | joaothallis/key | 10e7aa872d907ca585418ca0cd74c4c2a88de033 | [
"MIT"
] | null | null | null | defmodule KeyWeb.ErrorViewTest do
use KeyWeb.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(KeyWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert render_... | 26.733333 | 88 | 0.723192 |
e8e788b94c06c9e92c9865749ecc803b1d19e561 | 1,724 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/location_context.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/location_context.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/location_context.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 35.916667 | 246 | 0.756961 |
e8e7b736e82169b7718fd15d76b5f720ed404eca | 9,393 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/api/projects.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... | 46.270936 | 293 | 0.681891 |
e8e7f17f46bf7d4dac647731d0f9c6dd27639c9c | 4,774 | ex | Elixir | lib/beam/registry/registry.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/registry/registry.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/registry/registry.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | defmodule Example_Registry do
def start do
{:ok, _} = Registry.start_link(keys: :unique, name: Registry.ViaTest)
name = {:via, Registry, {Registry.ViaTest, "agent"}}
{:ok, _} = Agent.start_link(fn -> 0 end, name: name)
Agent.get(name, & &1)
Agent.update(name, &(&1 + 3))
Agent.get(name, & &1)
... | 39.131148 | 101 | 0.695643 |
e8e81bcccb4401689959c95d152e4f0d9f723b0c | 503 | ex | Elixir | lib/exampleElixir_web/views/error_view.ex | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | lib/exampleElixir_web/views/error_view.ex | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | lib/exampleElixir_web/views/error_view.ex | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | defmodule ExampleElixirWeb.ErrorView do
use ExampleElixirWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the t... | 29.588235 | 61 | 0.741551 |
e8e83226d22f4964f6dcf68f72b8780366ccc0f9 | 659 | exs | Elixir | mix.exs | zekroTJA/lookupex | 547a275e087b1999e254d000234c21bb2dfe8a46 | [
"MIT"
] | 7 | 2021-05-20T12:30:45.000Z | 2021-09-26T13:40:29.000Z | mix.exs | zekroTJA/lookupex | 547a275e087b1999e254d000234c21bb2dfe8a46 | [
"MIT"
] | null | null | null | mix.exs | zekroTJA/lookupex | 547a275e087b1999e254d000234c21bb2dfe8a46 | [
"MIT"
] | null | null | null | defmodule Lookupex.MixProject do
use Mix.Project
def project do
[
app: :lookupex,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_... | 19.382353 | 59 | 0.515933 |
e8e84156d77d38140b31a0238dedacf770a03e4c | 194 | ex | Elixir | lib/igdb/resources/product_family.ex | facto/igdb | 9662e9ffd41e0925c22b1d3cd4774ae49b68e89e | [
"MIT"
] | 2 | 2018-04-09T07:34:37.000Z | 2020-03-08T06:50:03.000Z | lib/igdb/resources/product_family.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | lib/igdb/resources/product_family.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | defmodule Igdb.ProductFamily do
@moduledoc """
Represents a Product Family resource in the IGDB API.
"""
use Igdb.Resource
def resource_collection_name(), do: "product_families"
end
| 19.4 | 56 | 0.742268 |
e8e8801ca241eecb49e320573187880e46fbdba8 | 949 | ex | Elixir | lib/perhap/adapters/eventstore.ex | sobolevn/perhap | 33cf2d1cfaaf8c19db927b70b6cbf9537fb9d295 | [
"BSD-3-Clause"
] | 118 | 2017-04-21T00:53:44.000Z | 2022-01-26T21:13:55.000Z | lib/perhap/adapters/eventstore.ex | sobolevn/perhap | 33cf2d1cfaaf8c19db927b70b6cbf9537fb9d295 | [
"BSD-3-Clause"
] | 1 | 2017-09-17T15:08:26.000Z | 2017-09-17T15:14:38.000Z | lib/perhap/adapters/eventstore.ex | sobolevn/perhap | 33cf2d1cfaaf8c19db927b70b6cbf9537fb9d295 | [
"BSD-3-Clause"
] | 8 | 2017-09-17T14:58:27.000Z | 2019-01-17T12:04:09.000Z | defmodule Perhap.Adapters.Eventstore do
@moduledoc false
@callback start_link(opts: any()) :: {:ok, pid} | :ignore | {:error, {:already_started, pid} | term}
@callback put_event(event: Perhap.Event.t) :: :ok | {:error, term}
@callback get_event(event_id: Perhap.Event.UUIDv1) :: {:ok, Perhap.Event.t} | {:erro... | 35.148148 | 131 | 0.642782 |
e8e8dd896eed38ec01af545e13e593ed6d5e760b | 1,689 | exs | Elixir | test/faktory_worker/push_pipeline_test.exs | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 13 | 2020-02-12T20:29:33.000Z | 2021-04-17T10:18:00.000Z | test/faktory_worker/push_pipeline_test.exs | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 51 | 2020-02-01T05:22:15.000Z | 2021-11-03T15:46:02.000Z | test/faktory_worker/push_pipeline_test.exs | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 4 | 2020-10-26T17:21:59.000Z | 2021-04-17T18:05:10.000Z | defmodule FaktoryWorker.PushPipelineTest do
use ExUnit.Case
alias FaktoryWorker.PushPipeline
describe "child_spec/1" do
test "should return a default child_spec" do
opts = [name: FaktoryWorker]
assert %{
id: FaktoryWorker.PushPipeline,
start: {FaktoryWorker.PushPip... | 24.838235 | 88 | 0.65897 |
e8e8e3a67a93f703915c792e5b3be20768129446 | 6,371 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 51.379032 | 333 | 0.728614 |
e8e8fa8c7057e7adb9433dab7a8755dd77db98f2 | 835 | ex | Elixir | apps/tai/lib/tai/new_orders/submissions/buy_limit_ioc.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/new_orders/submissions/buy_limit_ioc.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/new_orders/submissions/buy_limit_ioc.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.NewOrders.Submissions.BuyLimitIoc do
alias __MODULE__
@type product_type :: Tai.Venues.Product.type()
@type callback :: Tai.NewOrders.OrderCallback.callback()
@type t :: %BuyLimitIoc{
venue: String.t(),
credential: String.t(),
venue_product_symbol: String.t(),
... | 21.410256 | 58 | 0.626347 |
e8e931c1d464b90a453b44d3046d851dd16bfbdd | 2,943 | exs | Elixir | src/mailer/test/mailer_web/controllers/business_controller_test.exs | alexjoybc/elixir-kafka-phoenix | c3d20415f980455081102f3bd4287647bf2292ba | [
"Apache-2.0"
] | null | null | null | src/mailer/test/mailer_web/controllers/business_controller_test.exs | alexjoybc/elixir-kafka-phoenix | c3d20415f980455081102f3bd4287647bf2292ba | [
"Apache-2.0"
] | null | null | null | src/mailer/test/mailer_web/controllers/business_controller_test.exs | alexjoybc/elixir-kafka-phoenix | c3d20415f980455081102f3bd4287647bf2292ba | [
"Apache-2.0"
] | null | null | null | defmodule MailerWeb.BusinessControllerTest do
use MailerWeb.ConnCase
alias Mailer.Directory
alias Mailer.Directory.Business
@create_attrs %{
description: "some description",
name: "some name",
tag: "some tag"
}
@update_attrs %{
description: "some updated description",
name: "some updat... | 30.340206 | 104 | 0.619436 |
e8e94f93d190bd5e08967d00ab1bee2dced167af | 714 | exs | Elixir | mix.exs | rbkmoney/rfc3339 | ee3a1a6b1ee60219c49fdcaa9f36a25e91962bb5 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | rbkmoney/rfc3339 | ee3a1a6b1ee60219c49fdcaa9f36a25e91962bb5 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | rbkmoney/rfc3339 | ee3a1a6b1ee60219c49fdcaa9f36a25e91962bb5 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-12-07T09:51:52.000Z | 2021-12-07T09:51:52.000Z | defmodule RFC3339.Mixfile do
use Mix.Project
@version "0.2.2"
def project do
[app: :rfc3339,
version: @version,
description: description,
elixir: "~> 1.2",
package: package,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def appli... | 19.833333 | 79 | 0.605042 |
e8e94fac2b60b8e7bca01c1eabdc8bf3cc037ddf | 1,745 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_line_item_return_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_line_item_return_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/order_line_item_return_info.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... | 32.924528 | 118 | 0.716332 |
e8e965e5478020ab30f1f28fe0b1f2248e67bd26 | 689 | exs | Elixir | misc-stuff/benchmark.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | misc-stuff/benchmark.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | misc-stuff/benchmark.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | defmodule Benchmark do
def measure(function) do
function |> :timer.tc |> elem(0) |> Kernel./(1_000_000)
end
def open_and_read(fname) do
measure(fn -> File.open(fname) |> elem(1) |> IO.read(:all) end)
end
def open_and_binread(fname) do
measure(fn -> File.open(fname) |> elem(1) |> IO.binread(:all)... | 29.956522 | 98 | 0.682148 |
e8e98c39d0dc3bac777fe770366ee8ff6e45a9d4 | 1,524 | exs | Elixir | mix.exs | moldmn/eximap | 408b80a2ce4b041e8efe0b6481d61a584ed85d2f | [
"Apache-2.0"
] | null | null | null | mix.exs | moldmn/eximap | 408b80a2ce4b041e8efe0b6481d61a584ed85d2f | [
"Apache-2.0"
] | null | null | null | mix.exs | moldmn/eximap | 408b80a2ce4b041e8efe0b6481d61a584ed85d2f | [
"Apache-2.0"
] | null | null | null | defmodule Eximap.Mixfile do
use Mix.Project
@version "0.1.1-dev"
def project do
[
app: :eximap,
version: @version,
elixir: "~> 1.5",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
deps: deps(),
description: "A simple l... | 24.983607 | 84 | 0.573491 |
e8e9cf15b4b8a8d76764abf014e9b19e25a991f0 | 2,130 | exs | Elixir | server/test/taskerito/users_test.exs | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | 5 | 2020-06-18T20:31:11.000Z | 2021-07-23T10:05:56.000Z | server/test/taskerito/users_test.exs | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | server/test/taskerito/users_test.exs | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | defmodule Taskerito.Accounts.UsersTest do
use Taskerito.DataCase
alias Taskerito.Accounts.Users
alias Taskerito.Accounts.User
import Taskerito.Factory
@valid_attrs %{
email: "some email",
name: "some name",
username: "some username",
password: "password"
}
@update_attrs %{
email: "s... | 30.428571 | 80 | 0.682629 |
e8e9e7ca754432475df0c7f37e1373fe6ae494d3 | 4,542 | ex | Elixir | apps/blockchain/lib/blockchain/genesis.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/lib/blockchain/genesis.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/lib/blockchain/genesis.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule Blockchain.Genesis do
@moduledoc """
Defines functions for genesis block generation.
"""
alias Block.Header
alias Blockchain.{Account, Block, Chain}
alias MerklePatriciaTree.{DB, Trie}
@type seal_config :: %{
mix_hash: binary(),
nonce: binary()
}
@type seal :: %{... | 33.153285 | 177 | 0.580361 |
e8e9eb1f8485a62ec268a5acb189586d77814102 | 2,281 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_annotate_file_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_annotate_file_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_annotate_file_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.790323 | 142 | 0.767207 |
e8e9fa12752a6bd4912692959cc446fb326569d1 | 137,214 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/api/namespaces.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/api/namespaces.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/api/namespaces.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.738833 | 196 | 0.618953 |
e8ea7c87f29137b5910be614e3ff83ae1dffeda7 | 2,918 | ex | Elixir | test/support/live_views/params.ex | almirsarajcic/phoenix_live_view | 6cecf857494d4ec43d89be5d6cc4d4d4ff53780d | [
"MIT"
] | 2 | 2021-05-15T05:20:19.000Z | 2021-05-20T17:55:04.000Z | test/support/live_views/params.ex | almirsarajcic/phoenix_live_view | 6cecf857494d4ec43d89be5d6cc4d4d4ff53780d | [
"MIT"
] | 1 | 2021-05-12T12:14:27.000Z | 2021-05-12T12:14:27.000Z | test/support/live_views/params.ex | almirsarajcic/phoenix_live_view | 6cecf857494d4ec43d89be5d6cc4d4d4ff53780d | [
"MIT"
] | 1 | 2021-01-14T12:58:22.000Z | 2021-01-14T12:58:22.000Z | defmodule Phoenix.LiveViewTest.ParamCounterLive do
use Phoenix.LiveView
def render(assigns) do
~L"""
The value is: <%= @val %>
connect: <%= inspect(@connect_params) %>
info: <%= inspect(@connect_info) %>
mount: <%= inspect(@mount_params) %>
params: <%= inspect(@params) %>
"""
end
d... | 27.528302 | 85 | 0.664496 |
e8ea92225d8345f6ce01dd6beb463bf9b535aac7 | 366 | ex | Elixir | lib/chess_app/web/views/credential_view.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | 3 | 2017-06-02T20:47:07.000Z | 2018-05-25T11:17:12.000Z | lib/chess_app/web/views/credential_view.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | lib/chess_app/web/views/credential_view.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | defmodule ChessApp.Web.CredentialView do
use ChessApp.Web, :view
alias ChessApp.Web.CredentialView
def render("show.json", %{credential: credential}) do
%{data: render_one(credential, CredentialView, "credential.json")}
end
def render("credential.json", %{credential: credential}) do
%{id: credential... | 28.153846 | 70 | 0.734973 |
e8ea9284925716e6c142c2af95d455d573fbf330 | 1,558 | ex | Elixir | lib/slax_web.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | lib/slax_web.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | lib/slax_web.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | defmodule SlaxWeb do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use SlaxWeb, :controller
use SlaxWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and clean... | 19.721519 | 88 | 0.669448 |
e8eaa61bb60493394f2ff13795e1dd76e291feb7 | 251 | exs | Elixir | hello/priv/repo/migrations/20180221095529_create_users.exs | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | 5 | 2015-09-11T15:02:54.000Z | 2020-10-14T05:16:18.000Z | hello/priv/repo/migrations/20180221095529_create_users.exs | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | 21 | 2019-12-28T11:18:09.000Z | 2022-01-02T10:32:36.000Z | hello/priv/repo/migrations/20180221095529_create_users.exs | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | 2 | 2016-11-07T23:16:56.000Z | 2020-10-14T05:16:49.000Z | defmodule Hello.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :username, :string
timestamps()
end
create unique_index(:users, [:username])
end
end
| 16.733333 | 46 | 0.661355 |
e8eac4449796cc4d112f69ace4c7fce7874fefad | 892 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.037037 | 74 | 0.761211 |
e8eade5e4b9bda25ac2d45f286895ab33d3f187b | 166 | ex | Elixir | examples/ranges_lookup.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | null | null | null | examples/ranges_lookup.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | 1 | 2019-08-29T23:23:08.000Z | 2019-08-29T23:23:08.000Z | examples/ranges_lookup.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | 2 | 2019-08-29T23:19:07.000Z | 2022-02-02T03:00:16.000Z | defmodule RangesLookup do
use Ipfinder
def ran do
conf = Ipfinder.new("YOUR_TOKEN_GOES_HERE")
{:ok, range} = Ipfinder.getRanges(conf,"Telecom Algeria")
end
end | 23.714286 | 59 | 0.753012 |
e8eb0213729dd78b1f81588fd062e094d070998e | 1,466 | ex | Elixir | lib/re/listings/listing.ex | diemesleno/backend | a55f9c846cc826b5269f3fd6ce19223f0c6a1682 | [
"MIT"
] | 1 | 2020-01-23T04:24:58.000Z | 2020-01-23T04:24:58.000Z | lib/re/listings/listing.ex | diemesleno/backend | a55f9c846cc826b5269f3fd6ce19223f0c6a1682 | [
"MIT"
] | null | null | null | lib/re/listings/listing.ex | diemesleno/backend | a55f9c846cc826b5269f3fd6ce19223f0c6a1682 | [
"MIT"
] | 1 | 2019-12-31T16:11:21.000Z | 2019-12-31T16:11:21.000Z | defmodule Re.Listing do
@moduledoc """
Model for listings, that is, each apartment or real estate piece on sale.
"""
use Ecto.Schema
import Ecto.Changeset
schema "listings" do
field(:type, :string)
field(:complement, :string)
field(:description, :string)
field(:price, :integer)
field(:... | 29.32 | 98 | 0.675989 |
e8eb3c9871836bcc6b4e82148f5d292217c18077 | 2,654 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orderinvoices_create_charge_invoice_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orderinvoices_create_charge_invoice_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orderinvoices_create_charge_invoice_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.830769 | 246 | 0.728711 |
e8eb561cb03b56c03a23273e132fdbef0e1a594d | 108 | ex | Elixir | lib/platform/repo.ex | ruhrjs/ruhrjs-karaoke | 93c6bee18873ead2854e1bbf835a665cc782f7da | [
"Unlicense"
] | 1 | 2020-02-20T21:57:02.000Z | 2020-02-20T21:57:02.000Z | lib/platform/repo.ex | ruhrjs/ruhrjs-karaoke | 93c6bee18873ead2854e1bbf835a665cc782f7da | [
"Unlicense"
] | 1 | 2020-03-23T19:22:48.000Z | 2020-03-23T19:22:48.000Z | lib/platform/repo.ex | ruhrjs/ruhrjs-karaoke | 93c6bee18873ead2854e1bbf835a665cc782f7da | [
"Unlicense"
] | null | null | null | defmodule Platform.Repo do
use Ecto.Repo,
otp_app: :platform,
adapter: Ecto.Adapters.Postgres
end
| 18 | 35 | 0.731481 |
e8eb8152d60c59f99a1e1ffa1ecde32c6608ff50 | 486 | ex | Elixir | lib/firestorm_web/web/views/api/v1/thread_view.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/web/views/api/v1/thread_view.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/web/views/api/v1/thread_view.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | defmodule FirestormWeb.Web.Api.V1.ThreadView do
use FirestormWeb.Web, :view
alias FirestormWeb.Forums.Thread
def render("show.json", %Thread{
id: id,
title: title,
inserted_at: inserted_at,
updated_at: updated_at,
category_id: category_id,
slug: slug
}) do
... | 21.130435 | 47 | 0.606996 |
e8eb89a285e12dab1587fc9cf97cb846cd80ec32 | 8,734 | exs | Elixir | apps/ewallet_db/test/ewallet_db/transaction_consumption_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/test/ewallet_db/transaction_consumption_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/test/ewallet_db/transaction_consumption_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # 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.335878 | 98 | 0.691207 |
e8ebb163e74aa53d1286e630d08f35965f8897d2 | 2,755 | ex | Elixir | lib/botmodules/lastseen.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | 2 | 2015-04-11T04:30:34.000Z | 2015-04-18T19:12:25.000Z | lib/botmodules/lastseen.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | null | null | null | lib/botmodules/lastseen.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | null | null | null | defmodule BotLastSeen do
use Timex
@behaviour BotModule
@moduledoc "Report when an user was last seen."
def doc, do: @moduledoc
def start do
end
def process_message(message) do
if Regex.match? ~r/^!lastseen ([^ ]+)$/, message.text do
[_, nick] = Regex.run ~r/^!lastseen ([^ ]+)$/, message.te... | 27.55 | 144 | 0.570962 |
e8ebb3b5af7fb224c503147f79241aedd77c5bb5 | 26,513 | ex | Elixir | lib/uuid.ex | ryanwinchester/elixir-uuid-fork | 07dcb9a4fb2251272d40f0234435fb5a24947ecc | [
"Apache-2.0"
] | 2 | 2021-02-28T20:19:39.000Z | 2021-09-29T12:31:49.000Z | lib/uuid.ex | ryanwinchester/elixir-uuid-fork | 07dcb9a4fb2251272d40f0234435fb5a24947ecc | [
"Apache-2.0"
] | null | null | null | lib/uuid.ex | ryanwinchester/elixir-uuid-fork | 07dcb9a4fb2251272d40f0234435fb5a24947ecc | [
"Apache-2.0"
] | null | null | null | defmodule UUID do
use Bitwise, only_operators: true
@moduledoc """
UUID generator and utilities for [Elixir](http://elixir-lang.org/).
See [RFC 4122](http://www.ietf.org/rfc/rfc4122.txt).
"""
@typedoc "One of representations of UUID."
@type t :: str | raw | hex | urn
@typedoc "String representation of... | 31.752096 | 117 | 0.617018 |
e8ebd0ef04ce6a7ef818c2d2816d93059fb4cea7 | 1,064 | ex | Elixir | lib/bitty/schemas/url.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | 1 | 2021-06-17T21:49:04.000Z | 2021-06-17T21:49:04.000Z | lib/bitty/schemas/url.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | lib/bitty/schemas/url.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | defmodule Bitty.Schemas.Url do
@moduledoc """
Schema representing a URL in our system
"""
use Ecto.Schema
import Ecto.Changeset
alias Bitty.Repo
alias __MODULE__, as: Url
@tokens String.split("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", "")
@type t :: %Url{
slug: St... | 21.28 | 92 | 0.643797 |
e8ebdf73f12ca5ffc09da69d3f360ec467560667 | 547 | ex | Elixir | lib/exnem/dto/block_meta.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | 1 | 2018-10-01T23:57:04.000Z | 2018-10-01T23:57:04.000Z | lib/exnem/dto/block_meta.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | null | null | null | lib/exnem/dto/block_meta.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | null | null | null | defmodule Exnem.DTO.BlockMeta do
use Ecto.Schema
@primary_key false
import Ecto.Changeset
embedded_schema do
field(:hash, :string)
field(:generationHash, :string)
field(:totalFee, {:array, :integer}, default: 0)
field(:numTransactions, :integer, default: 0)
end
@required [:hash, :generatio... | 24.863636 | 65 | 0.689214 |
e8ebee2e7dded8f8d1bbd86f5d47d8f3321859fd | 1,908 | exs | Elixir | test/policr_mini/schemas/verification_test.exs | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | test/policr_mini/schemas/verification_test.exs | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | test/policr_mini/schemas/verification_test.exs | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | defmodule PolicrMini.Schemas.VerificationTest do
use ExUnit.Case
alias PolicrMini.Factory
alias PolicrMini.Schemas.Verification
describe "schema" do
test "schema metadata" do
assert Verification.__schema__(:source) == "verifications"
assert Verification.__schema__(:fields) ==
[... | 25.44 | 97 | 0.571279 |
e8ebfc5b3a79de18fe0843fd27236bbce725c198 | 595 | exs | Elixir | ch10/countdown.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch10/countdown.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch10/countdown.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | defmodule Countdown do
def sleep(seconds) do
receive do
after seconds*1000 -> nil
end
end
def say(text) do
spawn fn -> :os.cmd('espeak #{text}') end
end
def timer do
Stream.resource(
# the number of seconds to the start of the next minute
fn ->
{_h,_m,s} = :erlang.t... | 21.25 | 62 | 0.534454 |
e8ebfccb2a722617855b61d28fbfe32bfac6a22f | 1,775 | exs | Elixir | exercises/concept/high-school-sweetheart/test/high_school_sweetheart_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 1 | 2021-06-09T06:57:02.000Z | 2021-06-09T06:57:02.000Z | exercises/concept/high-school-sweetheart/test/high_school_sweetheart_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 6 | 2022-03-04T13:05:25.000Z | 2022-03-30T18:36:49.000Z | exercises/concept/high-school-sweetheart/test/high_school_sweetheart_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | null | null | null | defmodule HighSchoolSweetheartTest do
use ExUnit.Case
describe "first_letter/1" do
@task_id 1
test "it gets the first letter" do
assert HighSchoolSweetheart.first_letter("Mary") == "M"
end
@task_id 1
test "it doesn't change the letter's case" do
assert HighSchoolSweetheart.first_le... | 28.174603 | 74 | 0.441127 |
e8ec213216a570ebe1db58f21b853576d8209bc7 | 3,140 | ex | Elixir | lib/cuda/visualize/dot.ex | gridgentoo/cuda | e758c05674605e4601c568160904bcd5e2e7be94 | [
"MIT"
] | 4 | 2019-09-18T14:25:02.000Z | 2021-12-16T12:09:10.000Z | lib/cuda/visualize/dot.ex | gridgentoo/cuda | e758c05674605e4601c568160904bcd5e2e7be94 | [
"MIT"
] | null | null | null | lib/cuda/visualize/dot.ex | gridgentoo/cuda | e758c05674605e4601c568160904bcd5e2e7be94 | [
"MIT"
] | 1 | 2021-11-08T11:50:08.000Z | 2021-11-08T11:50:08.000Z | defmodule Cuda.Graph.Visualize.Dot do
alias Cuda.Graph.Node
alias Cuda.Graph.NodeProto
alias Cuda.Graph.Processing
import Node, only: [input_pin_types: 0, output_pin_types: 0]
def render(graph, opts \\ []) do
gv = render_node(graph)
n = UUID.uuid1()
file = Path.join(System.tmp_dir!, "#{n}.gv")
... | 29.074074 | 93 | 0.532803 |
e8ec309245e8477d1fc355bbbcb89804d26fc3b9 | 507 | exs | Elixir | priv/repo/migrations/20210508155951_create_lectures_mentors_assistants.exs | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 7 | 2020-10-19T14:06:46.000Z | 2022-02-19T09:53:02.000Z | priv/repo/migrations/20210508155951_create_lectures_mentors_assistants.exs | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 5 | 2017-08-24T10:38:46.000Z | 2021-05-26T16:48:22.000Z | priv/repo/migrations/20210508155951_create_lectures_mentors_assistants.exs | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 2 | 2017-08-25T18:38:11.000Z | 2021-07-15T00:57:33.000Z | defmodule Bokken.Repo.Migrations.CreateLecturesMentorsAssistants do
use Ecto.Migration
def change do
create table(:lectures_mentors_assistants, primary_key: false) do
add :lecture_id, references(:lectures, on_delete: :delete_all, type: :binary_id)
add :mentor_id, references(:mentors, on_delete: :no... | 31.6875 | 86 | 0.749507 |
e8eca279944cd338991542ac2fcfd1ed59baebbc | 114 | ex | Elixir | lib/web/views/user_view.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 7 | 2019-12-13T19:23:47.000Z | 2022-01-22T23:02:42.000Z | lib/web/views/user_view.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 11 | 2021-03-10T01:57:00.000Z | 2021-08-31T18:30:54.000Z | lib/web/views/user_view.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | null | null | null | defmodule Web.UserView do
use Web, :view
def full_name(user), do: "#{user.first_name} #{user.last_name}"
end
| 19 | 65 | 0.701754 |
e8ecaace85f65fa323865f8cad4a98fa69cff397 | 575 | ex | Elixir | lib/cforum/messages_tags/message_tag.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum/messages_tags/message_tag.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum/messages_tags/message_tag.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule Cforum.MessagesTags.MessageTag do
use CforumWeb, :model
@primary_key {:message_tag_id, :id, autogenerate: true}
@derive {Phoenix.Param, key: :message_tag_id}
schema "messages_tags" do
belongs_to(:message, Cforum.Messages.Message, references: :message_id)
belongs_to(:tag, Cforum.Tags.Tag, ref... | 27.380952 | 74 | 0.693913 |
e8ecc0c59530b5f2dbd539bb38dc9bef29fa3507 | 365 | exs | Elixir | test/x509/asn1_test.exs | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | 75 | 2018-07-02T12:00:57.000Z | 2022-02-07T14:47:56.000Z | test/x509/asn1_test.exs | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | 30 | 2018-07-04T12:33:01.000Z | 2022-01-14T18:29:00.000Z | test/x509/asn1_test.exs | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | 12 | 2018-09-21T04:34:02.000Z | 2022-02-28T20:11:13.000Z | defmodule X509.ASN1Test do
use ExUnit.Case
import X509.ASN1
test "OID extraction: OTP-PUB-KEY.hrl" do
assert oid(:sha256WithRSAEncryption) == {1, 2, 840, 113_549, 1, 1, 11}
assert oid(:"id-ce-subjectAltName") == {2, 5, 29, 17}
end
test "OID extraction: PKCS-FRAME.hrl" do
assert oid(:"id-PBKDF2")... | 26.071429 | 74 | 0.643836 |
e8ecda9a3f019de9ed5cf7b6445fc1a2bd21f35d | 216 | ex | Elixir | lib/uiar/error.ex | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | 7 | 2019-12-16T02:43:06.000Z | 2022-02-08T21:49:54.000Z | lib/uiar/error.ex | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | null | null | null | lib/uiar/error.ex | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | 1 | 2020-02-24T17:10:22.000Z | 2020-02-24T17:10:22.000Z | defmodule Uiar.Error do
@moduledoc """
Provides error details.
"""
defstruct [
:line,
:message
]
@type t :: %__MODULE__{
line: pos_integer,
message: String.t()
}
end
| 13.5 | 29 | 0.537037 |
e8ece2d5ca169697d12a38ff0af949f9f4390e0c | 988 | exs | Elixir | learningElixir/config/config.exs | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | learningElixir/config/config.exs | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | learningElixir/config/config.exs | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :learningElixir... | 35.285714 | 86 | 0.77834 |
e8ed1c618c03314b2669618cb0c71810eff1d741 | 1,480 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator.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/administrator.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/administrator.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... | 31.489362 | 101 | 0.741216 |
e8ed29030eaf18ecc392e550ae8151d1862498b8 | 1,589 | ex | Elixir | apps/omg_watcher_rpc/lib/web/controllers/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/lib/web/controllers/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/lib/web/controllers/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 29.981132 | 74 | 0.70988 |
e8ed2e4808af92c822ac8c71e1a64b3df95f9bbe | 3,038 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/api/channels.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/channels.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/channels.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... | 39.973684 | 187 | 0.662607 |
e8ed556fa3a394ced5608f544fd7bfc7d1da7cff | 2,813 | ex | Elixir | lib/glimesh/account_follows.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | lib/glimesh/account_follows.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | lib/glimesh/account_follows.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | defmodule Glimesh.AccountFollows do
@moduledoc """
The Followers context
"""
import Ecto.Query, warn: false
alias Glimesh.AccountFollows.Follower
alias Glimesh.Accounts.User
alias Glimesh.ChannelLookups
alias Glimesh.Repo
def get_subscribe_topic(:follows), do: "accounts:follows"
def get_subscribe_... | 27.851485 | 96 | 0.671525 |
e8edad50fb22dfbe782614242c2342280411da0e | 775 | ex | Elixir | lib/decipher_api/datafeed/result_set.ex | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | lib/decipher_api/datafeed/result_set.ex | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | lib/decipher_api/datafeed/result_set.ex | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | defmodule DecipherAPI.Datafeed.ResultSet do
alias DecipherAPI.Datamap
alias __MODULE__
defstruct(
ack: nil,
complete?: false,
errors: %{},
results: []
)
@spec new(%{}) :: %ResultSet{}
def new(results) do
%{
%ResultSet{} |
ack: results["ack"],
complete?: results["comple... | 20.945946 | 69 | 0.592258 |
e8ede0e4b826604e696ba02f35c81543e7297d76 | 7,756 | ex | Elixir | data/web/deps/ecto/lib/ecto/adapter.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/ecto/lib/ecto/adapter.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/ecto/lib/ecto/adapter.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapter do
@moduledoc """
This module specifies the adapter API that an adapter is required to
implement.
"""
@type t :: module
@typedoc "Ecto.Query metadata fields (stored in cache)"
@type query_meta :: %{prefix: binary | nil, sources: tuple, assocs: term,
preload... | 36.242991 | 113 | 0.66065 |
e8edf58512504436b2960d9d490e2ba3d2a6a992 | 1,167 | ex | Elixir | lib/listener.ex | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | 1 | 2020-05-14T18:52:05.000Z | 2020-05-14T18:52:05.000Z | lib/listener.ex | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | lib/listener.ex | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | defmodule Potcu.Listener do
use Nostrum.Consumer
require Logger
def start_link() do
Consumer.start_link(__MODULE__)
end
def relay(command, msg) do
case Potcu.Bot.Registry.get_handler(msg.guild_id) do
{:ok, pid} -> GenServer.cast(pid, {command, msg})
_ -> Logger.debug("No bot found for #{... | 23.34 | 73 | 0.658098 |
e8ee40fd4eccdd920a0a2bf548c33ce0405cba00 | 957 | ex | Elixir | 06-struct-protocols/geometry.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 06-struct-protocols/geometry.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 06-struct-protocols/geometry.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule Geometry do
defmodule Rectangle do
defstruct b: 1, h: 1
end
defmodule Circle do
defstruct r: 1
end
defmodule HiperCube do
# @enforce_keys[:a]
defstruct [:a, :d, b: 1, c: 1]
# defstruct a: nil, b: 1, c: 1, d: nil
# defstruct [a: nil, b: 1, c: 1, d: nil]
end
defprotocol ... | 17.4 | 64 | 0.574713 |
e8ee5433149140e83eb9dd5580ed9d441e869476 | 3,238 | exs | Elixir | test/test_helper.exs | brianrackle/ExFeed | b32e52141368f23f2e1ff00cf1357e83f8b2d259 | [
"MIT"
] | 1 | 2017-06-01T17:40:01.000Z | 2017-06-01T17:40:01.000Z | test/test_helper.exs | brianrackle/ExFeed | b32e52141368f23f2e1ff00cf1357e83f8b2d259 | [
"MIT"
] | null | null | null | test/test_helper.exs | brianrackle/ExFeed | b32e52141368f23f2e1ff00cf1357e83f8b2d259 | [
"MIT"
] | null | null | null | ExUnit.start()
defmodule ExFeedTestFileHelpers do
def feed_formats() do
[:rss, :rdf, :atom]
end
def read_file(format) when is_atom(format) do
case format do
:rss -> File.read!("test/data/rss.xml")
:rdf -> File.read!("test/data/rdf.xml")
:atom -> File.read!("test/data/atom.xml")
en... | 31.745098 | 100 | 0.537986 |
e8ee736263fce9c3829153c8799dc536981d4211 | 13,210 | ex | Elixir | lib/hex/resolver.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | null | null | null | lib/hex/resolver.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | null | null | null | lib/hex/resolver.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | null | null | null | defmodule Hex.Resolver do
@moduledoc false
import Hex.Mix
require Record
alias Hex.Resolver.Backtracks
@ets :hex_ets_states
Record.defrecordp(:info, [:registry, :ets, :repos, :backtracks, :overridden])
Record.defrecordp(:request, [:app, :name, :req, :repo, :parent, :top_level])
Record.defrecordp(:par... | 28.347639 | 96 | 0.59894 |
e8ee9418f749837890eee416c1899ad02ed88656 | 202,543 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.770778 | 302 | 0.62249 |
e8eeb8ae43cc9385477a72eca95df44beffb20f6 | 1,765 | ex | Elixir | lib/sentinel/web/controllers/auth_controller.ex | pauldub/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 125 | 2016-01-29T11:46:20.000Z | 2021-06-08T09:25:38.000Z | lib/sentinel/web/controllers/auth_controller.ex | pauldub/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 54 | 2016-02-18T01:11:58.000Z | 2017-10-19T11:25:26.000Z | lib/sentinel/web/controllers/auth_controller.ex | britton-jb/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 29 | 2016-02-20T12:59:16.000Z | 2018-04-11T14:29:41.000Z | defmodule Sentinel.Controllers.AuthController do
@moduledoc """
Handles the session create and destroy actions
"""
require Ueberauth
use Phoenix.Controller
alias Sentinel.Config
alias Sentinel.Controllers.Html
alias Sentinel.Controllers.Json
plug Ueberauth
plug :put_layout, {Config.layout_view, Co... | 26.742424 | 107 | 0.710482 |
e8eee13053783a38a773151e18e85787d592b2b6 | 1,738 | exs | Elixir | config/dev.exs | benlime/dashwallet | 90754cf9cda72b289d5b802cd9fd7eb094f08acb | [
"MIT"
] | 2 | 2017-11-15T20:47:47.000Z | 2017-12-02T11:29:10.000Z | config/dev.exs | benlime/dashwallet | 90754cf9cda72b289d5b802cd9fd7eb094f08acb | [
"MIT"
] | null | null | null | config/dev.exs | benlime/dashwallet | 90754cf9cda72b289d5b802cd9fd7eb094f08acb | [
"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 :dashwallet, DashwalletWeb.Endpoint,
http: [po... | 34.76 | 170 | 0.703682 |
e8ef18da32a7d74b1514f375dc63b6bf8221d7ce | 1,630 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/capabilities.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/capabilities.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/capabilities.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... | 31.960784 | 78 | 0.731288 |
e8ef19d9a55f1bf82bcfc9a812aa760b72390640 | 2,407 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/yarn_application.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/yarn_application.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/yarn_application.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 41.5 | 280 | 0.737017 |
e8ef5809855d07f78f68137d50559fc2243fef8f | 5,675 | ex | Elixir | apps/bytepack/lib/bytepack/audit_log.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack/lib/bytepack/audit_log.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack/lib/bytepack/audit_log.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule Bytepack.AuditLog do
@moduledoc """
The audit log struct.
The audit log has `audit_context`, `action`, and `params`.
If `audit_context` contains a user, their email address will be
automatically written to the log as `:user_email`. After building
the log, the params are automatically validated a... | 31.882022 | 97 | 0.66696 |
e8ef75b476ae104495934d7d6d8ab6ec6a5b4289 | 644 | ex | Elixir | lib/afterglow/google_sheets/google_sheet.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow/google_sheets/google_sheet.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow/google_sheets/google_sheet.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.GoogleSheets.GoogleSheet do
use Ecto.Schema
import Ecto.Changeset
alias AfterGlow.GoogleSheets.GoogleSheet
schema "sheet_configs" do
field :name, :string
field :refresh_interval, :integer
field :sheet_id, :string
field :subsheet_id, :integer
field :table_name, :string
... | 25.76 | 90 | 0.715839 |
e8ef7938efb348da5addda8e4640aa6d5bf296d8 | 1,371 | ex | Elixir | lib/bolt_sips/internals/pack_stream/encoder_helper.ex | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | 242 | 2016-09-09T22:32:00.000Z | 2022-02-20T18:50:29.000Z | lib/bolt_sips/internals/pack_stream/encoder_helper.ex | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | 100 | 2016-10-18T04:19:09.000Z | 2021-11-15T19:14:47.000Z | lib/bolt_sips/internals/pack_stream/encoder_helper.ex | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | 51 | 2016-10-31T20:05:52.000Z | 2022-01-20T11:45:49.000Z | defmodule Bolt.Sips.Internals.PackStream.EncoderHelper do
@moduledoc false
alias Bolt.Sips.Internals.BoltVersionHelper
alias Bolt.Sips.Internals.PackStreamError
use Bolt.Sips.Internals.PackStream.V1
use Bolt.Sips.Internals.PackStream.V2
use Bolt.Sips.Internals.PackStream.Utils
@available_bolt_versions B... | 30.466667 | 86 | 0.736689 |
e8ef8ec03eca84ddc7457fe2d0e6aa33b1545de0 | 1,641 | exs | Elixir | mix.exs | vukanac/faktory_worker | d3905f4c63988f1374d18e747fdd364a0d1ddbf2 | [
"MIT"
] | null | null | null | mix.exs | vukanac/faktory_worker | d3905f4c63988f1374d18e747fdd364a0d1ddbf2 | [
"MIT"
] | null | null | null | mix.exs | vukanac/faktory_worker | d3905f4c63988f1374d18e747fdd364a0d1ddbf2 | [
"MIT"
] | null | null | null | defmodule FaktoryWorker.MixProject do
use Mix.Project
def project do
[
app: :faktory_worker,
version: "1.3.0",
elixir: "~> 1.8",
description: description(),
package: package(),
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
test_cov... | 23.112676 | 78 | 0.560024 |
e8ef92178b02503a269fb70eac8876387b483723 | 1,181 | ex | Elixir | lib/tesla/middleware/retry.ex | jalcine/tesla | 52d3a3be6787b72b43c1c12bd6152ed2e7f8009e | [
"MIT"
] | null | null | null | lib/tesla/middleware/retry.ex | jalcine/tesla | 52d3a3be6787b72b43c1c12bd6152ed2e7f8009e | [
"MIT"
] | null | null | null | lib/tesla/middleware/retry.ex | jalcine/tesla | 52d3a3be6787b72b43c1c12bd6152ed2e7f8009e | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.Retry do
@behaviour Tesla.Middleware
@moduledoc """
Retry few times in case of connection error (`nxdomain`, `connrefused` etc).
This middleware will NOT retry in case of application error (HTTP status 5xx).
### Example
```
defmodule MyClient do
use Tesla
plug Tesla.M... | 23.156863 | 87 | 0.633362 |
e8efc0a87d5b811ad05204c9e084962d0d808c7e | 1,683 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.0625 | 191 | 0.756387 |
e8efcfedfaed771206b76ae0508779d6811645e9 | 1,642 | exs | Elixir | mix.exs | mike-north/phoenix-fundamentals-workshop | 9e6af6d1e1dde002e4b78ce4292fcf18cf527b49 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | mike-north/phoenix-fundamentals-workshop | 9e6af6d1e1dde002e4b78ce4292fcf18cf527b49 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | mike-north/phoenix-fundamentals-workshop | 9e6af6d1e1dde002e4b78ce4292fcf18cf527b49 | [
"BSD-3-Clause"
] | null | null | null | defmodule Eblog.Mixfile do
use Mix.Project
def project do
[app: :eblog,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: a... | 29.854545 | 89 | 0.600487 |
e8f057680b9585513230d405c8ed7ec2e7c3cf39 | 78 | exs | Elixir | test/sozui_web/views/layout_view_test.exs | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | test/sozui_web/views/layout_view_test.exs | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | test/sozui_web/views/layout_view_test.exs | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | defmodule SozUIWeb.LayoutViewTest do
use SozUIWeb.ConnCase, async: true
end
| 19.5 | 36 | 0.820513 |
e8f057b05f24f9ca23648330106d0b7e7cf3b584 | 2,840 | ex | Elixir | lib/cli/cli.ex | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | lib/cli/cli.ex | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | lib/cli/cli.ex | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | defmodule Beiin.CLI do
require Logger
alias Beiin.Client
def main(args) do
optimus =
Optimus.new!(
name: "beiin",
description: "Beiin TSDB Benchmarking Tool",
version: "0.0.1",
author: "Christopher G Mcintyre me@cgmcintyre.com",
about: "Utility for benchmarking ... | 25.132743 | 97 | 0.502113 |
e8f07865e9b8cc134086b4348c5c3b532350b12f | 1,401 | ex | Elixir | web/models/github.ex | wojtekmach/mr-rebase | d7265a1a672de6c6c68b1f7a884ead13aed9428f | [
"MIT"
] | 2 | 2016-01-03T08:36:55.000Z | 2016-01-03T21:00:52.000Z | web/models/github.ex | wojtekmach/mr-rebase | d7265a1a672de6c6c68b1f7a884ead13aed9428f | [
"MIT"
] | null | null | null | web/models/github.ex | wojtekmach/mr-rebase | d7265a1a672de6c6c68b1f7a884ead13aed9428f | [
"MIT"
] | null | null | null | defmodule GitHub do
defmodule Repository do
defstruct name: ""
end
defmodule PullRequest do
defstruct title: "", url: "", branch: ""
end
@callback pull_requests(any, String.t, String.t) :: [PullRequest.t]
@callback repositories(any, String.t) :: [Repository.t]
end
defmodule GitHub.Real do
@beh... | 25.017857 | 110 | 0.653819 |
e8f0ab4e88814626e78f93ab80d54498e780ed06 | 8,022 | ex | Elixir | lib/strava/segment.ex | jsparling/strava | a3511520428dffd7ef9230a81f9a31533e3a052e | [
"MIT"
] | null | null | null | lib/strava/segment.ex | jsparling/strava | a3511520428dffd7ef9230a81f9a31533e3a052e | [
"MIT"
] | null | null | null | lib/strava/segment.ex | jsparling/strava | a3511520428dffd7ef9230a81f9a31533e3a052e | [
"MIT"
] | null | null | null | defmodule Strava.Segment do
@moduledoc """
Segments are specific sections of road. Athletes’ times are compared on these segments and leaderboards are created.
https://strava.github.io/api/v3/segments/
"""
import Strava.Util, only: [parse_date: 1]
@type t :: %__MODULE__{
id: number,
resource_state... | 31.093023 | 118 | 0.695338 |
e8f0afa96f2fa829e6e788e73ae99cd444cd3fc5 | 1,247 | exs | Elixir | test/ex_vatcheck/countries_test.exs | mtanzi/ex_vatcheck | 936b6aa1d335fac788092d49c7729373188dd58c | [
"MIT"
] | 10 | 2020-01-13T18:56:34.000Z | 2022-03-23T14:52:55.000Z | test/ex_vatcheck/countries_test.exs | mtanzi/ex_vatcheck | 936b6aa1d335fac788092d49c7729373188dd58c | [
"MIT"
] | 3 | 2021-03-19T16:31:59.000Z | 2021-12-10T10:18:53.000Z | test/ex_vatcheck/countries_test.exs | mtanzi/ex_vatcheck | 936b6aa1d335fac788092d49c7729373188dd58c | [
"MIT"
] | 2 | 2020-09-24T16:39:42.000Z | 2021-03-19T20:48:15.000Z | defmodule ExVatcheck.CountriesTest do
use ExUnit.Case
alias ExVatcheck.{Countries, VAT}
@valid_vats [
"ATU99999999",
"BE0999999999",
"BG999999999",
"BG9999999999",
"CY99999999L",
"CZ99999999",
"CZ999999999",
"CZ9999999999",
"DE999999999",
"DK99 99 99 99",
"EE999999999... | 20.112903 | 92 | 0.607057 |
e8f12e94626905460cab7f5f826a8b31d4d2f231 | 1,954 | exs | Elixir | alchemist-server/lib/api/comp.exs | benjcal/vscode-elixir | ccf9457ebed29b80f8ac4f5e855cc9596d1546f6 | [
"MIT"
] | 221 | 2016-05-03T09:46:04.000Z | 2021-02-20T05:08:18.000Z | alchemist-server/lib/api/comp.exs | benjcal/vscode-elixir | ccf9457ebed29b80f8ac4f5e855cc9596d1546f6 | [
"MIT"
] | 104 | 2017-02-28T16:26:12.000Z | 2021-02-19T22:31:03.000Z | alchemist-server/lib/api/comp.exs | benjcal/vscode-elixir | ccf9457ebed29b80f8ac4f5e855cc9596d1546f6 | [
"MIT"
] | 59 | 2017-03-12T07:07:35.000Z | 2021-02-26T19:41:15.000Z | Code.require_file "../helpers/complete.exs", __DIR__
Code.require_file "../code/metadata.exs", __DIR__
Code.require_file "../code/parser.exs", __DIR__
defmodule Alchemist.API.Comp do
@moduledoc false
alias Alchemist.Helpers.Complete
alias Alchemist.Code.Metadata
alias Alchemist.Code.Parser
def request(arg... | 23.542169 | 108 | 0.631013 |
e8f16e2643447f5efd234e81cafa40d35fc6a821 | 9,120 | ex | Elixir | lib/chat_api/conversations.ex | daskycodes/papercups | e716d94372b452d7545d9db79a23a44aee53676e | [
"MIT"
] | null | null | null | lib/chat_api/conversations.ex | daskycodes/papercups | e716d94372b452d7545d9db79a23a44aee53676e | [
"MIT"
] | null | null | null | lib/chat_api/conversations.ex | daskycodes/papercups | e716d94372b452d7545d9db79a23a44aee53676e | [
"MIT"
] | null | null | null | defmodule ChatApi.Conversations do
@moduledoc """
The Conversations context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.Conversations.Conversation
alias ChatApi.Messages.Message
alias ChatApi.Tags.{Tag, ConversationTag}
@spec list_conversations() :: [Conversation.t()]
@do... | 28.952381 | 97 | 0.659211 |
e8f173f3d6e5b46bee8cfc5d9ab02ea8ecaec91b | 1,574 | ex | Elixir | test/support/data_case.ex | andrebrito16/lyov | 9f1cf7b85745db3b8acc6dbe14d1633853a2311b | [
"MIT"
] | 1 | 2022-01-03T02:24:58.000Z | 2022-01-03T02:24:58.000Z | test/support/data_case.ex | andrebrito16/lyov | 9f1cf7b85745db3b8acc6dbe14d1633853a2311b | [
"MIT"
] | 1 | 2022-01-04T12:59:33.000Z | 2022-01-04T12:59:33.000Z | test/support/data_case.ex | andrebrito16/lyov | 9f1cf7b85745db3b8acc6dbe14d1633853a2311b | [
"MIT"
] | 1 | 2022-01-02T17:29:39.000Z | 2022-01-02T17:29:39.000Z | defmodule Cgnaflightsapi.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes do... | 28.107143 | 77 | 0.69695 |
e8f1778936682ed431fa467cf2adadac00645d23 | 167 | exs | Elixir | config/dev.exs | Overbryd/k8s | 7057601b1f191b47294133045c9e5b74bd9dd525 | [
"MIT"
] | null | null | null | config/dev.exs | Overbryd/k8s | 7057601b1f191b47294133045c9e5b74bd9dd525 | [
"MIT"
] | null | null | null | config/dev.exs | Overbryd/k8s | 7057601b1f191b47294133045c9e5b74bd9dd525 | [
"MIT"
] | null | null | null | use Mix.Config
config :k8s,
auth_providers: [],
clusters: %{
dev: %{
conf: "~/.kube/config",
conf_opts: [context: "docker-for-desktop"]
}
}
| 15.181818 | 48 | 0.550898 |
e8f1935b0af66a9a1f1e43a4daef62762db1cf3d | 208 | ex | Elixir | lib/phone/pf.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/pf.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/pf.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.PF do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(689)()(.{8})/
def country, do: "French Polynesia"
def a2, do: "PF"
def a3, do: "PYF"
matcher :regex, ["689"]
end
| 16 | 37 | 0.610577 |
e8f1a245433d65f7550843960c1e0af0c6d7187c | 554 | ex | Elixir | lib/jwt/coding.ex | princemaple/elixir-jwt | 0ca2c8623452a69340969c5cff0ec502dbb7b8a9 | [
"MIT"
] | 13 | 2017-05-15T13:37:11.000Z | 2021-07-29T23:06:23.000Z | lib/jwt/coding.ex | princemaple/elixir-jwt | 0ca2c8623452a69340969c5cff0ec502dbb7b8a9 | [
"MIT"
] | 7 | 2019-01-26T12:42:24.000Z | 2021-03-16T23:01:00.000Z | lib/jwt/coding.ex | princemaple/elixir-jwt | 0ca2c8623452a69340969c5cff0ec502dbb7b8a9 | [
"MIT"
] | 3 | 2019-07-26T06:03:48.000Z | 2020-01-14T20:42:55.000Z | defmodule JWT.Coding do
def encode!(map) do
map
|> Jason.encode!()
|> Base.url_encode64(padding: false)
end
def decode!(binary, opts \\ []) do
binary
|> Base.url_decode64!(padding: false)
|> Jason.decode!(opts)
end
def decode(binary, opts \\ []) do
with {:ok, url_decoded} <- Base... | 23.083333 | 73 | 0.611913 |
e8f1a36262d2a50ce0d33d1a882193a7a4a342c6 | 387 | ex | Elixir | lib/mix/tasks/transcripts.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 1 | 2019-11-02T08:32:25.000Z | 2019-11-02T08:32:25.000Z | lib/mix/tasks/transcripts.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | lib/mix/tasks/transcripts.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Changelog.Transcripts do
use Mix.Task
alias Changelog.{Episode, Github, Repo}
@shortdoc "Refreshes all episode transcripts with latest from GitHub"
def run(_) do
Mix.Task.run("app.start")
episodes =
Episode.with_transcript()
|> Episode.preload_podcast()
|> Repo.... | 20.368421 | 71 | 0.689922 |
e8f1b94ee39d9a17daf64e23f8a417b4457a597b | 693 | exs | Elixir | sips/014_otp_part_1_servers/otp_server_playground/mix.exs | adamzaninovich/learning-elixir | 015d803682bad4eceaacff6e9a0a789b168a5e7a | [
"MIT"
] | null | null | null | sips/014_otp_part_1_servers/otp_server_playground/mix.exs | adamzaninovich/learning-elixir | 015d803682bad4eceaacff6e9a0a789b168a5e7a | [
"MIT"
] | null | null | null | sips/014_otp_part_1_servers/otp_server_playground/mix.exs | adamzaninovich/learning-elixir | 015d803682bad4eceaacff6e9a0a789b168a5e7a | [
"MIT"
] | null | null | null | defmodule OtpServerPlayground.Mixfile do
use Mix.Project
def project do
[app: :otp_server_playground,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix ... | 21 | 77 | 0.623377 |
e8f1d311e1b33cd08258a62ff002ec374804faa4 | 693 | ex | Elixir | web/gettext.ex | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | null | null | null | web/gettext.ex | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | 1 | 2017-08-24T17:58:54.000Z | 2017-08-24T17:58:54.000Z | web/gettext.ex | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | null | null | null | defmodule Ices.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 Ices.Gettext
# Simple translation
gettext "Here is the string to... | 27.72 | 72 | 0.673882 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.