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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8b01c16af2d1bb60a41a9a271ffc211fa8bed48 | 864 | exs | Elixir | mix.exs | mwmiller/curve25519_ex | 4afb9ba252fc3496d7e23d349b959f70053049d7 | [
"MIT"
] | 6 | 2016-03-09T20:18:24.000Z | 2021-08-20T15:01:42.000Z | mix.exs | mwmiller/curve25519_ex | 4afb9ba252fc3496d7e23d349b959f70053049d7 | [
"MIT"
] | 5 | 2018-01-22T23:00:43.000Z | 2020-10-28T04:33:16.000Z | mix.exs | mwmiller/curve25519_ex | 4afb9ba252fc3496d7e23d349b959f70053049d7 | [
"MIT"
] | 6 | 2016-07-25T14:23:38.000Z | 2022-02-06T14:42:50.000Z | defmodule Curve25519.Mixfile do
use Mix.Project
def project do
[
app: :curve25519,
version: "1.0.4",
elixir: "~> 1.7",
name: "Curve25519",
source_url: "https://github.com/mwmiller/curve25519_ex",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
... | 19.636364 | 71 | 0.563657 |
e8b01ebb8d9caece3a31f90da29a0006cda0b190 | 1,195 | ex | Elixir | apps/raptor/lib/raptor/schemas/dataset_access_group_relation.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/raptor/lib/raptor/schemas/dataset_access_group_relation.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/raptor/lib/raptor/schemas/dataset_access_group_relation.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Raptor.Schemas.DatasetAccessGroupRelation do
@moduledoc """
This module defines the structure for a dataset access group relation
"""
@derive Jason.Encoder
@type t :: %__MODULE__{
dataset_id: String.t(),
access_group_id: String.t()
}
defstruct [
:dataset_id,
... | 28.452381 | 100 | 0.705439 |
e8b050f25bacc8aaad61f350781aba67c0c4453c | 1,263 | ex | Elixir | lib/functional_todo_list/endpoint.ex | gabriel-letarte/functional-todo-list | 06d292a66219c7a0114059be8b268d4fec4de95f | [
"MIT"
] | null | null | null | lib/functional_todo_list/endpoint.ex | gabriel-letarte/functional-todo-list | 06d292a66219c7a0114059be8b268d4fec4de95f | [
"MIT"
] | null | null | null | lib/functional_todo_list/endpoint.ex | gabriel-letarte/functional-todo-list | 06d292a66219c7a0114059be8b268d4fec4de95f | [
"MIT"
] | null | null | null | defmodule FunctionalTodoList.Endpoint do
use Phoenix.Endpoint, otp_app: :functional_todo_list
socket "/socket", FunctionalTodoList.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 i... | 29.372093 | 69 | 0.7308 |
e8b05dd9da0b4aa503578dc1a7a02adcd4b8aa58 | 2,793 | exs | Elixir | test/azure_ad_openid/verify/claims_test.exs | whossname/azure_ad_openid | f9ba80b509fbbcbb467e9ea8365b11f89bf44036 | [
"MIT"
] | 6 | 2019-06-12T14:36:49.000Z | 2021-01-22T19:53:15.000Z | test/azure_ad_openid/verify/claims_test.exs | whossname/azure_ad_openid | f9ba80b509fbbcbb467e9ea8365b11f89bf44036 | [
"MIT"
] | null | null | null | test/azure_ad_openid/verify/claims_test.exs | whossname/azure_ad_openid | f9ba80b509fbbcbb467e9ea8365b11f89bf44036 | [
"MIT"
] | 2 | 2020-05-02T02:18:11.000Z | 2021-02-03T20:37:22.000Z | defmodule VerifyTest do
alias AzureADOpenId.Verify.Claims
alias AzureADOpenId.NonceStore
use ExUnit.Case
import Mock
@code "0123456789abcdef"
@client_id "example_client"
@tenant "example_tenant"
@nonce "example_nonce"
@env_values [redirect_uri: "https://example.com", client_id: @client_id, tenant: @... | 21.320611 | 91 | 0.611529 |
e8b0cd2d7c0f907d8e8e1ac679732ad1e1e58893 | 71 | ex | Elixir | day08/el.ex | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-13T22:44:09.000Z | 2019-12-13T22:44:09.000Z | day08/el.ex | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | null | null | null | day08/el.ex | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-05T21:06:06.000Z | 2019-12-05T21:06:06.000Z | Code.require_file("../util/util.ex", __DIR__)
defmodule Day08 do
end
| 11.833333 | 45 | 0.732394 |
e8b0cfff360ed3313267ff73b16bb2f2e12261d1 | 4,750 | ex | Elixir | lib/ueberauth/strategy/steam.ex | qwexvf/ueberauth_steam | 80e6f19dd209e7bc7c164cc0d0254506649620a1 | [
"MIT"
] | 1 | 2019-04-23T01:34:18.000Z | 2019-04-23T01:34:18.000Z | lib/ueberauth/strategy/steam.ex | qwexvf/ueberauth_steam | 80e6f19dd209e7bc7c164cc0d0254506649620a1 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/steam.ex | qwexvf/ueberauth_steam | 80e6f19dd209e7bc7c164cc0d0254506649620a1 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Steam do
@moduledoc ~S"""
Steam OpenID for Überauth.
"""
use Ueberauth.Strategy
alias Ueberauth.Auth.Info
alias Ueberauth.Auth.Extra
@doc ~S"""
Handles initial request for Steam authentication.
Redirects the given `conn` to the Steam login page.
"""
@spec handle_re... | 26.836158 | 111 | 0.631158 |
e8b0f5a872f7e049905b84d96bb3af8059a65feb | 3,366 | ex | Elixir | clients/container/lib/google_api/container/v1/model/addons_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/container/lib/google_api/container/v1/model/addons_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/addons_config.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 ... | 51 | 184 | 0.759358 |
e8b10c4efd7903027a38dc94e4e4a7fefbf8c9c2 | 4,253 | ex | Elixir | lib/exvault/kv2.ex | praekeltfoundation/exvault | 338b05855e40dd5547b105a608e6bac39f849e78 | [
"BSD-3-Clause"
] | null | null | null | lib/exvault/kv2.ex | praekeltfoundation/exvault | 338b05855e40dd5547b105a608e6bac39f849e78 | [
"BSD-3-Clause"
] | 61 | 2019-02-12T10:05:29.000Z | 2020-07-27T09:50:15.000Z | lib/exvault/kv2.ex | praekeltfoundation/exvault | 338b05855e40dd5547b105a608e6bac39f849e78 | [
"BSD-3-Clause"
] | 1 | 2019-10-27T10:01:43.000Z | 2019-10-27T10:01:43.000Z | defmodule ExVault.KV2 do
@moduledoc """
A wrapper over the basic operations for working with KV v2 data.
Construct a *backend*--a client paired with the mount path for the `kv`
version 2 secrets engine it interacts with--using the `ExVault.KV2.new/2`
function.
Each of the operations in this module have a ... | 28.543624 | 107 | 0.625676 |
e8b1245f087c5c0b59fc7911a1a6923c41e016c1 | 553 | ex | Elixir | lib/riak/i18n.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | lib/riak/i18n.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | lib/riak/i18n.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | defmodule Riak.I18n do
use Linguist.Vocabulary
locale "en", [
error: [
index: [
unsupported: "Secondary indexes are not supported on bitcask storage backend.",
default: "Unknown secondary index error: %{reason}."
]
]
]
@doc """
Look up the human readable error message an... | 27.65 | 94 | 0.618445 |
e8b132ec32fe14a33a4896643a661f6b1689e5c8 | 713 | exs | Elixir | test/gradient_pattern_test.exs | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | 3 | 2020-03-23T09:41:07.000Z | 2021-06-03T00:14:24.000Z | test/gradient_pattern_test.exs | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | 17 | 2020-03-14T11:54:59.000Z | 2020-06-21T20:01:29.000Z | test/gradient_pattern_test.exs | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | null | null | null | defmodule GradientPatternTest do
alias RayTracer.Color
alias RayTracer.RTuple
alias RayTracer.GradientPattern
alias RayTracer.Pattern
import Pattern, only: [pattern_at: 2]
import RTuple, only: [point: 3]
use ExUnit.Case
doctest RayTracer.GradientPattern
test "A gradient linearly interpolates betwee... | 32.409091 | 82 | 0.69986 |
e8b145251a106844788c77f57a3578d8a7dda931 | 298 | ex | Elixir | lib/drunkard/assets/image.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 2 | 2020-07-05T21:27:33.000Z | 2021-12-12T22:56:00.000Z | lib/drunkard/assets/image.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2021-05-11T08:14:48.000Z | 2021-05-11T08:14:48.000Z | lib/drunkard/assets/image.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2020-07-05T21:27:46.000Z | 2020-07-05T21:27:46.000Z | defmodule Drunkard.Assets.Image do
use Drunkard, :schema
schema "images" do
field :path, :string
field :name, :string
timestamps()
end
@doc false
def changeset(image, attrs) do
image
|> cast(attrs, [:name, :path])
|> validate_required([:name, :path])
end
end
| 16.555556 | 40 | 0.634228 |
e8b14f955fba73ddf4b38e33b91c1edca598fc61 | 3,792 | ex | Elixir | lib/absinthe.ex | RadekMolenda/absinthe | 9ca4d391c76df701174b3b306a9dec021c74008e | [
"MIT"
] | null | null | null | lib/absinthe.ex | RadekMolenda/absinthe | 9ca4d391c76df701174b3b306a9dec021c74008e | [
"MIT"
] | null | null | null | lib/absinthe.ex | RadekMolenda/absinthe | 9ca4d391c76df701174b3b306a9dec021c74008e | [
"MIT"
] | null | null | null | defmodule Absinthe do
@moduledoc """
Documentation for the Absinthe package, a toolkit for building GraphQL
APIs with Elixir.
For usage information, see [the documentation](http://hexdocs.pm/absinthe), which
includes guides, API information for important modules, and links to useful resources.
"""
defmo... | 28.946565 | 88 | 0.619198 |
e8b19be478a5a18dbdf6015e40b5b8bfd40c10b5 | 1,763 | exs | Elixir | apps/tai/test/tai/venues/adapters/accounts_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/venues/adapters/accounts_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/venues/adapters/accounts_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Venues.Adapters.AccountsTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
setup_all do
start_supervised!(Tai.TestSupport.Mocks.Server)
HTTPoison.start()
:ok
end
setup do
on_exit(fn ->
:ok = Application.stop(:tai_events)
:ok = Appli... | 27.123077 | 83 | 0.60692 |
e8b1a443346cddee6b2a12de7b1057fbcb913849 | 2,632 | ex | Elixir | lib/epi_contacts/accounts.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | lib/epi_contacts/accounts.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | lib/epi_contacts/accounts.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContacts.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias EpiContacts.Repo
alias EpiContacts.Accounts.{Admin, AdminToken}
## Database getters
@doc """
Gets a admin by email.
## Examples
iex> get_admin_by_email("foo@example.com")
... | 22.117647 | 89 | 0.672112 |
e8b1d7832d0f398cc98d682e795a143436b066bb | 924 | exs | Elixir | config/config.exs | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"MIT"
] | 1 | 2016-10-07T14:36:21.000Z | 2016-10-07T14:36:21.000Z | config/config.exs | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"MIT"
] | null | null | null | config/config.exs | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"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.
use Mix.Config
# General application configuration
config :pxblog,
ecto_repos: [Pxblog.Repo]
# Co... | 33 | 86 | 0.75974 |
e8b1dfea9fc096ceadedc71d128cfb5f9ea9ef38 | 1,665 | ex | Elixir | lib/cadet_web/views/assessments_view.ex | Source-Academy-Game/cadet | a46af782fec8866b86a232a0bc27f4cec0b2269c | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/views/assessments_view.ex | Source-Academy-Game/cadet | a46af782fec8866b86a232a0bc27f4cec0b2269c | [
"Apache-2.0"
] | 2 | 2020-04-22T09:06:38.000Z | 2020-04-22T09:15:33.000Z | lib/cadet_web/views/assessments_view.ex | Source-Academy-Game/cadet | a46af782fec8866b86a232a0bc27f4cec0b2269c | [
"Apache-2.0"
] | 1 | 2020-06-01T03:26:02.000Z | 2020-06-01T03:26:02.000Z | defmodule CadetWeb.AssessmentsView do
use CadetWeb, :view
use Timex
import CadetWeb.AssessmentsHelpers
def render("index.json", %{assessments: assessments}) do
render_many(assessments, CadetWeb.AssessmentsView, "overview.json", as: :assessment)
end
def render("overview.json", %{assessment: assessment... | 27.295082 | 88 | 0.606607 |
e8b21a247974ea9be9860415a9d9a11578fd1d1a | 2,172 | ex | Elixir | lib/record_server.ex | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | lib/record_server.ex | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | lib/record_server.ex | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | defmodule Beiin.Record do
defstruct metric: "name", tags: %{"default" => "value"}, timestamp: 0, value: 0
end
defmodule Beiin.RecordServer do
use GenServer
alias Beiin.Record
alias Beiin.TimestampGenerator, as: TSG
## Client API
def start_link(metrics, tag_maps, opts \\ []) do
{ins_tsg, opts} = Keyw... | 24.681818 | 85 | 0.612339 |
e8b24154a9059ba3d2613bcfb4918611e5d3e995 | 2,096 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_review_document_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_review_document_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_review_document_operation_metadata.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... | 34.933333 | 188 | 0.755248 |
e8b2622a601fecc31adab4943f28a3b2d718b14c | 425 | ex | Elixir | lib/atlas/database/supervisor.ex | lowks/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 94 | 2015-01-01T16:17:40.000Z | 2021-12-16T02:53:01.000Z | lib/atlas/database/supervisor.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 2 | 2015-09-22T14:45:26.000Z | 2017-08-29T18:16:04.000Z | lib/atlas/database/supervisor.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 11 | 2015-01-06T02:25:00.000Z | 2021-12-16T03:10:11.000Z | defmodule Atlas.Database.Supervisor do
use Supervisor
def stop(repo) do
Process.exit Process.whereis(name(repo)), :shutdown
end
def start_link(repo) do
Supervisor.start_link(__MODULE__, repo, name: name(repo))
end
def init(repo) do
tree = [worker(Atlas.Database.Server, [repo])]
supervise ... | 20.238095 | 61 | 0.703529 |
e8b265ba41c392ef91205fd3744a62188d691bad | 1,552 | exs | Elixir | config/config.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | config/config.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | config/config.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | 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
config :logger,
handle_otp_reports: true,
handle_sasl_reports: false
config :logger, :console,
format: "\n$dateT$time [$level] $metadata$levelpad$message\n",
metadata: [:pid... | 22.823529 | 72 | 0.686856 |
e8b28116d2c5148559dc5d2f443c8d6f0cb9b8e3 | 1,531 | ex | Elixir | clients/books/lib/google_api/books/v1/model/series.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/books/lib/google_api/books/v1/model/series.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/books/lib/google_api/books/v1/model/series.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... | 30.62 | 93 | 0.708687 |
e8b281e266357c75142820a606d2cf39fb69599b | 503 | exs | Elixir | mix.exs | hauleth/elixir-bench | ce3aff85ca5055725d2f2b08ef111706d6976d57 | [
"MIT"
] | null | null | null | mix.exs | hauleth/elixir-bench | ce3aff85ca5055725d2f2b08ef111706d6976d57 | [
"MIT"
] | null | null | null | mix.exs | hauleth/elixir-bench | ce3aff85ca5055725d2f2b08ef111706d6976d57 | [
"MIT"
] | null | null | null | defmodule Bench.MixProject do
use Mix.Project
def project do
[
app: :bench,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 17.344828 | 59 | 0.552684 |
e8b28f7586633e394d482184fa47cdcdef37fa6e | 127 | ex | Elixir | web/views/dock_view.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | web/views/dock_view.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | web/views/dock_view.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.DockView do
use Apiv4.Web, :view
@relationships ~w( cameras histories )a
use Autox.ResourceView
end | 18.142857 | 41 | 0.732283 |
e8b29fadfe037845246c1fdef4085b24496dda85 | 3,864 | exs | Elixir | test/petrovich_test/parser_test/lastname_test.exs | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 38 | 2017-06-11T14:01:56.000Z | 2021-11-27T15:54:47.000Z | test/petrovich_test/parser_test/lastname_test.exs | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 33 | 2017-06-11T11:17:38.000Z | 2021-06-25T15:22:35.000Z | test/petrovich_test/parser_test/lastname_test.exs | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 2 | 2019-03-12T11:16:10.000Z | 2019-09-21T15:12:36.000Z | defmodule PetrovichTest.ParserTest.LastName.Normal do
use ExUnit.Case
alias Petrovich.Parser
setup do
values = %{
nomenative: [
{:male, "Соболев", "Соболев"},
{:female, "Горева", "Горева"}
],
genitive: [
{:male, "Соболев", "Соболева"},
{:female, "Горева", "Г... | 27.6 | 77 | 0.606884 |
e8b2bda4c5dea7520b5e219ccd1aeac029c4cb2f | 2,264 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_matrix.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_matrix.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_matrix.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... | 37.114754 | 304 | 0.715989 |
e8b2c2357dd32827dbf085aed5dd3313dcf0aa9f | 1,134 | exs | Elixir | clients/tpu/mix.exs | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tpu/mix.exs | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/tpu/mix.exs | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.TPU.V1.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[app: :google_api_tpu,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps... | 23.142857 | 105 | 0.583774 |
e8b2f3686300fac4611eca80dc1ff67c98138cad | 513 | ex | Elixir | lib/la_famiglia/combat_result.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 5 | 2016-10-20T10:00:59.000Z | 2017-11-19T08:14:18.000Z | lib/la_famiglia/combat_result.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 39 | 2020-04-22T05:27:32.000Z | 2022-03-13T17:22:26.000Z | lib/la_famiglia/combat_result.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | null | null | null | defmodule LaFamiglia.CombatResult do
defstruct [
:attacker,
:attacker_before_combat,
:attack_value,
:attacker_percent_loss,
:attacker_losses,
:attacker_after_combat,
:attacker_supply_loss,
:defender,
:defender_before_combat,
:defender_buildings,
:defense_value,
:defende... | 21.375 | 36 | 0.711501 |
e8b3062325156d0222df0f7266afd2ac8d07d374 | 1,559 | ex | Elixir | lib/color_wars_web/endpoint.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | 1 | 2020-04-21T10:38:14.000Z | 2020-04-21T10:38:14.000Z | lib/color_wars_web/endpoint.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | null | null | null | lib/color_wars_web/endpoint.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | null | null | null | defmodule ColorWarsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :color_wars
socket "/socket", ColorWarsWeb.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 P... | 28.345455 | 95 | 0.704939 |
e8b36928bf198cddc722145ed989a71ab6c95b0b | 1,197 | exs | Elixir | config/config.exs | tres/elixir-shopifyapi | 57f379fca062126c8752fcba226f34807370403f | [
"Apache-2.0"
] | 18 | 2019-06-07T13:36:39.000Z | 2021-08-03T21:06:36.000Z | config/config.exs | tres/elixir-shopifyapi | 57f379fca062126c8752fcba226f34807370403f | [
"Apache-2.0"
] | 158 | 2018-08-30T22:09:00.000Z | 2021-09-22T01:18:59.000Z | config/config.exs | tres/elixir-shopifyapi | 57f379fca062126c8752fcba226f34807370403f | [
"Apache-2.0"
] | 4 | 2020-09-05T00:48:46.000Z | 2020-09-30T15:53:50.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... | 30.692308 | 70 | 0.749373 |
e8b3cefa0e6cae06318be72ccd09bceca8b926a9 | 1,999 | ex | Elixir | lib/roger/shutdown_handler.ex | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 17 | 2017-01-24T19:00:53.000Z | 2021-08-23T15:14:42.000Z | lib/roger/shutdown_handler.ex | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 8 | 2017-04-25T13:22:48.000Z | 2021-03-18T11:58:15.000Z | lib/roger/shutdown_handler.ex | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 3 | 2018-01-23T21:51:47.000Z | 2019-09-11T07:23:57.000Z | defmodule Roger.ShutdownHandler do
@moduledoc """
This module handles correctly shutting down the workers.
By first stop consuming new jobs and then wait for certain time for workers to finish.
"""
@shutdown_overflow 10_000
@shutdown_timeout Application.get_env(:roger, :shutdown_timeout, 15_000) + @shutdow... | 28.971014 | 115 | 0.676838 |
e8b3eafffb421a5e57a95faa8a3357753cdc2a74 | 9,414 | ex | Elixir | lib/grizzly/inclusions.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/inclusions.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/inclusions.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.Inclusions do
@moduledoc """
Module for adding and removing Z-Wave nodes
In Z-Wave the term "inclusions" means two things:
1. Adding a new Z-Wave device to the Z-Wave Network
2. Removing a Z-Wave device to the Z-Wave Network
In practice though it is more common to speak about adding a Z... | 32.6875 | 104 | 0.720204 |
e8b438150a1212c1c3edd91e0278de0d33c234a4 | 1,334 | ex | Elixir | lib/blue_jet/app/crm/customer/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/crm/customer/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/crm/customer/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.CRM.Customer.Proxy do
use BlueJet, :proxy
alias BlueJet.CRM.{FileStorageService, IdentityService}
def sync_to_user(customer, opts \\ %{})
def sync_to_user(%{user_id: nil}, _), do: {:ok, nil}
def sync_to_user(%{user_id: user_id} = customer, opts) do
identifiers = %{id: user_id}
fi... | 26.68 | 82 | 0.665667 |
e8b442c7f094b1566fddac07aa1c7cc6685baa5c | 59 | ex | Elixir | lib/memo_web/views/user_feed_view.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | lib/memo_web/views/user_feed_view.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | lib/memo_web/views/user_feed_view.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | defmodule MemoWeb.UserFeedView do
use MemoWeb, :view
end
| 14.75 | 33 | 0.79661 |
e8b4969da3d597ab43ce51c7e4115b88776d6f80 | 1,173 | exs | Elixir | lib/perspective/event_chain/page_manifest/tests/page_manifest_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/event_chain/page_manifest/tests/page_manifest_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/event_chain/page_manifest/tests/page_manifest_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.EventChain.PageManifest.Test do
use ExUnit.Case, async: true
use Perspective.BootAppPerTest
test "current_page on boot" do
current_page = Perspective.EventChain.PageManifest.current_page()
assert current_page == "event-chain.0000000.json"
end
test "add_page persists after an e... | 28.609756 | 76 | 0.734015 |
e8b49ad2cbc6dccf848a2b5050e67786f2195892 | 1,563 | exs | Elixir | mix.exs | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | mix.exs | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | mix.exs | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | defmodule SseDemo.MixProject do
use Mix.Project
def project do
[
app: :sse_demo,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 25.622951 | 84 | 0.590531 |
e8b4a8d8676efdadcc2873f0b655a7337b9cba8e | 2,574 | exs | Elixir | 26-frank.exs | feng19/30-days-of-elixir | 8a493366b32c0bb9abc2630c5bfb12f3e4578a83 | [
"MIT"
] | null | null | null | 26-frank.exs | feng19/30-days-of-elixir | 8a493366b32c0bb9abc2630c5bfb12f3e4578a83 | [
"MIT"
] | null | null | null | 26-frank.exs | feng19/30-days-of-elixir | 8a493366b32c0bb9abc2630c5bfb12f3e4578a83 | [
"MIT"
] | null | null | null | # A micro web DSL library called "Frank"
# The motivation was mainly to learn about macros.
# One big bummer is that the way I implemented the macro,
# there is no way to build a route based on a regex,
# which is essential for a web DSL. :-)
# Next version will hopefully support regex paths.
require Record
defmodule... | 24.056075 | 111 | 0.596348 |
e8b4de86de21efeaf5836cd124de9320cd15bf17 | 2,371 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/date.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/date.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/date.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.735849 | 537 | 0.720371 |
e8b4e6b53aa46c9dfc144cb0578f8ca5466f8be4 | 2,020 | ex | Elixir | lib/twitch/common.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/twitch/common.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/twitch/common.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnector.Twitch.Common do
@moduledoc """
Http methods to make requests
"""
# http -v POST https://id.twitch.tv/oauth2/token
# client_id=... client_secret=... grant_type=client_credentials scope=''
defguard success_code(code) when code >= 200 and code <= 300
defp decode_body({atm... | 25.56962 | 88 | 0.60198 |
e8b50dbcda41403952eb7181da7d426bc512d8be | 403 | ex | Elixir | lib/mailman/header.ex | kianmeng/mailman | cf5b6da436fb0d3d1d816c804aa0dbab157a0150 | [
"MIT"
] | null | null | null | lib/mailman/header.ex | kianmeng/mailman | cf5b6da436fb0d3d1d816c804aa0dbab157a0150 | [
"MIT"
] | null | null | null | lib/mailman/header.ex | kianmeng/mailman | cf5b6da436fb0d3d1d816c804aa0dbab157a0150 | [
"MIT"
] | null | null | null | defmodule Mailman.Header do
@moduledoc "Represents a Mime-Mail header"
defstruct name: "",
value: ""
def from_raw(raw) when is_tuple(raw) do
%Mailman.Header{
name: elem(raw, 0),
value: process_value(elem(raw, 0), elem(raw, 1))
}
end
def process_value(name, value) do
case... | 19.190476 | 54 | 0.593052 |
e8b51db9a04c1cb1181de720d7c478367958eb8e | 679 | ex | Elixir | astreu/deps/protobuf/lib/protobuf/protoc/template.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu/deps/protobuf/lib/protobuf/protoc/template.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu/deps/protobuf/lib/protobuf/protoc/template.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | defmodule Protobuf.Protoc.Template do
@msg_tmpl Path.expand("./templates/message.ex.eex", :code.priv_dir(:protobuf))
@enum_tmpl Path.expand("./templates/enum.ex.eex", :code.priv_dir(:protobuf))
@svc_tmpl Path.expand("./templates/service.ex.eex", :code.priv_dir(:protobuf))
require EEx
EEx.function_from_file(... | 28.291667 | 91 | 0.671576 |
e8b5283fad10a0597fb173133b568aa16be84467 | 1,814 | ex | Elixir | examples/swagger_demo/test/support/model_case.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 326 | 2015-08-19T10:05:07.000Z | 2022-03-28T08:49:33.000Z | examples/swagger_demo/test/support/model_case.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 64 | 2015-08-19T06:44:19.000Z | 2022-03-29T06:23:34.000Z | examples/swagger_demo/test/support/model_case.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 66 | 2016-01-08T20:40:40.000Z | 2022-03-03T02:15:15.000Z | defmodule SwaggerDemo.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. ... | 27.484848 | 84 | 0.689085 |
e8b546393f4d39852e89e558ffc5ebcbb5da46d5 | 1,233 | ex | Elixir | apps/engine/lib/engine/ethereum/event/listener/measure.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/lib/engine/ethereum/event/listener/measure.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/lib/engine/ethereum/event/listener/measure.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Ethereum.Event.Listener.Measure do
@moduledoc """
Counting business metrics sent to Datadog.
We don't want to pattern match on :ok to Datadog because the connection
towards the statsd client can be intermittent and sending would be unsuccessful and that
would trigger the removal of telemetry ... | 33.324324 | 94 | 0.726683 |
e8b55408ac5686eec9d968559ef98beaa02e1b48 | 120 | exs | Elixir | test/matchalert/matches/test_status.exs | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | test/matchalert/matches/test_status.exs | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | test/matchalert/matches/test_status.exs | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | defmodule MatchesStatusTest do
use ExUnit.Case
doctest Matches.Status
test "" do
assert 1 + 1 == 2
end
end
| 13.333333 | 30 | 0.683333 |
e8b558fdb7a58f1b9f27e0f38d1a0b5fa115a3ea | 1,047 | ex | Elixir | lib/check/doc_whitespace.ex | smaximov/credo_contrib | dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8 | [
"ISC"
] | 9 | 2019-12-29T05:10:48.000Z | 2022-03-14T17:12:23.000Z | lib/check/doc_whitespace.ex | smaximov/credo_contrib | dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8 | [
"ISC"
] | 6 | 2019-05-09T13:32:26.000Z | 2021-03-31T15:36:35.000Z | lib/check/doc_whitespace.ex | smaximov/credo_contrib | dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8 | [
"ISC"
] | 5 | 2019-03-16T17:09:42.000Z | 2021-03-09T14:23:24.000Z | defmodule CredoContrib.Check.DocWhitespace do
@moduledoc """
`@moduledoc` and `@doc` strings should not have extra whitespace
"""
@explanation [
check: @moduledoc
]
use Credo.Check, base_priority: :high, category: :readability
def run(source_file, params \\ []) do
issue_meta = IssueMeta.for(sou... | 24.928571 | 74 | 0.647564 |
e8b5b80932d7aa8c3e27f4dcca24ef58c8af3672 | 8,260 | exs | Elixir | test/contex_axis_test.exs | srowley/contex | 0e64e41916a6183c0df7d5b451090f3f4b4dada9 | [
"MIT"
] | null | null | null | test/contex_axis_test.exs | srowley/contex | 0e64e41916a6183c0df7d5b451090f3f4b4dada9 | [
"MIT"
] | null | null | null | test/contex_axis_test.exs | srowley/contex | 0e64e41916a6183c0df7d5b451090f3f4b4dada9 | [
"MIT"
] | null | null | null | defmodule ContexAxisTest do
use ExUnit.Case
alias Contex.{Axis, ContinuousLinearScale}
import SweetXml
defp axis_map(axis) do
Axis.to_svg(axis)
|> IO.chardata_to_string()
|> xpath(~x"/g",
transform: ~x"./@transform"s,
text_anchor: ~x"./@text-anchor"s,
path: [
~x"./path",
... | 30.820896 | 88 | 0.561864 |
e8b5c0ad473048c67d74adbd9882b6cbd48a2729 | 1,185 | ex | Elixir | lib/absinthe/relay/node/parse_ids/config.ex | archseer/absinthe_relay | c3c85ca88adb8e925e846a515f75d93224b1f17d | [
"MIT"
] | 176 | 2016-03-02T06:38:55.000Z | 2022-03-11T13:02:24.000Z | lib/absinthe/relay/node/parse_ids/config.ex | archseer/absinthe_relay | c3c85ca88adb8e925e846a515f75d93224b1f17d | [
"MIT"
] | 167 | 2016-03-01T07:28:05.000Z | 2022-03-23T03:36:19.000Z | lib/absinthe/relay/node/parse_ids/config.ex | archseer/absinthe_relay | c3c85ca88adb8e925e846a515f75d93224b1f17d | [
"MIT"
] | 104 | 2016-03-09T22:28:13.000Z | 2022-03-30T17:02:33.000Z | defmodule Absinthe.Relay.Node.ParseIDs.Config do
alias Absinthe.Relay.Node.ParseIDs.{Namespace, Rule}
defstruct children: []
@type node_t :: Namespace.t() | Rule.t()
@type t :: %__MODULE__{
children: [node_t]
}
def parse!(config) when is_map(config) do
parse!(Keyword.new(config))
e... | 24.6875 | 84 | 0.61097 |
e8b601cc428b21ef94d3592f1a5add5b62e5bda8 | 3,800 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_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.860215 | 186 | 0.698421 |
e8b66c07f2bcc41b13222f5f4381f8b2f01b69cb | 2,481 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/variant_set_metadata.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/variant_set_metadata.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/variant_set_metadata.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.050847 | 213 | 0.734784 |
e8b679080f7f95a810d5a33d44b119fb3e47f869 | 1,246 | ex | Elixir | lib/ueberauth_example_web/channels/user_socket.ex | aleciavogel/ueberauth_example | ef281e2ed6b81f1361677da7ab55abe560608cc2 | [
"MIT"
] | null | null | null | lib/ueberauth_example_web/channels/user_socket.ex | aleciavogel/ueberauth_example | ef281e2ed6b81f1361677da7ab55abe560608cc2 | [
"MIT"
] | null | null | null | lib/ueberauth_example_web/channels/user_socket.ex | aleciavogel/ueberauth_example | ef281e2ed6b81f1361677da7ab55abe560608cc2 | [
"MIT"
] | null | null | null | defmodule UeberauthExampleWeb.UserSocket do
@moduledoc false
use Phoenix.Socket
## Channels
# channel "rooms:*", UeberauthExample.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the clien... | 29.666667 | 73 | 0.70305 |
e8b67da3d789b04fc05b06d5c7229d0c7eb09f30 | 533 | ex | Elixir | test/support/assertions/test_results.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | test/support/assertions/test_results.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | test/support/assertions/test_results.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContactsWeb.Assertions.TestResults do
@moduledoc """
Acceptance assertion helper for interacting with the test results step of the questionnaire
"""
use EpiContactsWeb.AcceptanceAssertions
def assert_on_test_results_page(session, name: name) do
session
|> assert_has(css("p", text: "Dear... | 28.052632 | 93 | 0.733583 |
e8b69647f9a082563eee161d10eab13ae07d5e57 | 1,344 | ex | Elixir | lib/covid19_questionnaire_web/operations/create_token.ex | betagouv/covid19-algorithme-orientation-elixir | 7d99c0b79551438bd763ae4293b495096bc8d9ad | [
"MIT"
] | 3 | 2020-04-08T19:15:22.000Z | 2020-05-24T22:37:54.000Z | lib/covid19_questionnaire_web/operations/create_token.ex | betagouv/covid19-algorithme-orientation-elixir | 7d99c0b79551438bd763ae4293b495096bc8d9ad | [
"MIT"
] | 10 | 2020-04-05T17:31:49.000Z | 2020-06-10T11:09:17.000Z | lib/covid19_questionnaire_web/operations/create_token.ex | betagouv/covid19-algorithme-orientation-elixir | 7d99c0b79551438bd763ae4293b495096bc8d9ad | [
"MIT"
] | null | null | null | defmodule Covid19QuestionnaireWeb.Operations.CreateToken do
@moduledoc """
Open API CreateToken operation.
"""
import OpenApiSpex.Operation, only: [response: 3]
alias Covid19QuestionnaireWeb.Schemas.{ErrorResponse, TokenResponse}
alias OpenApiSpex.{Operation, Schema}
@type action :: :create
@type ope... | 28 | 76 | 0.616815 |
e8b6a19cd18a657493eb8923c1f5515b644e9026 | 797 | ex | Elixir | lib/tilex/slack.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | lib/tilex/slack.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | lib/tilex/slack.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | defmodule Tilex.Slack do
def notify(post, developer, channel, url) do
"#{developer.username} created a new post <#{url}|#{post.title}> ##{channel.name}"
|> send_slack_message
end
def notify_of_awards(%Tilex.Post{max_likes: max_likes, title: title}, developer, url) do
appropriate_emoji = [ "🎉", "🎂",... | 31.88 | 99 | 0.580928 |
e8b6be57bf031d760ee76f2a982023db0c920073 | 526 | exs | Elixir | config/test.exs | elcritch/pjon-elixir | 3b80995826778dc86ea124c376bd01a42d0c305d | [
"Apache-2.0"
] | 3 | 2018-11-29T14:23:27.000Z | 2018-11-29T20:11:58.000Z | config/test.exs | elcritch/pjon-elixir-serial | 3b80995826778dc86ea124c376bd01a42d0c305d | [
"Apache-2.0"
] | null | null | null | config/test.exs | elcritch/pjon-elixir-serial | 3b80995826778dc86ea124c376bd01a42d0c305d | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :pjon_elixir_serial, :device, System.get_env("MIX_UART") || "ttyACM0"
# device_type = System.get_env("PJON_DEVICE_TYPE") || "LINUX"
config :pjon_elixir_serial, :compile_options,
device_type: "RPI",
debug_verbose: true,
packet_size: 128,
include_packet_id: true,
max_recent_id... | 22.869565 | 76 | 0.712928 |
e8b6c5096952843d3151adde058be33e9cb38662 | 8,777 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_disk_types.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_disk_types.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_disk_types.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 49.308989 | 434 | 0.653298 |
e8b6cbdd75b083cf95907939a0fc61ce93edc12d | 937 | ex | Elixir | lib/karroake/application.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | lib/karroake/application.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | 1 | 2021-05-10T10:36:59.000Z | 2021-05-10T10:36:59.000Z | lib/karroake/application.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | defmodule Karroake.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the Ecto repository
Karroake.Repo,
... | 29.28125 | 67 | 0.716115 |
e8b6d89c655d6788f7b54429defe8816529abd5e | 1,042 | ex | Elixir | test/support/channel_case.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 73 | 2017-06-06T20:10:11.000Z | 2020-12-05T22:11:31.000Z | test/support/channel_case.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 8 | 2017-05-24T02:08:58.000Z | 2018-05-11T14:54:29.000Z | test/support/channel_case.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 22 | 2017-07-30T02:59:23.000Z | 2020-12-05T22:13:18.000Z | defmodule Elmelixirstarter.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 and query models.
Finally, if the test case interacts with the database,
it ca... | 24.232558 | 78 | 0.714012 |
e8b6db44f3cf8cad20c5f73eb832caa61aa57128 | 92 | exs | Elixir | server.exs | Diong1982/MyBorry | cfd2f9c604cbfd88dd8c37469333875537c92ea7 | [
"MIT"
] | null | null | null | server.exs | Diong1982/MyBorry | cfd2f9c604cbfd88dd8c37469333875537c92ea7 | [
"MIT"
] | null | null | null | server.exs | Diong1982/MyBorry | cfd2f9c604cbfd88dd8c37469333875537c92ea7 | [
"MIT"
] | null | null | null | # Block until the message is received
receive do
{:msg, contents} -> IO.puts contents
end
| 18.4 | 38 | 0.728261 |
e8b6ebd24cbbc19e548cea792285909ea06e9cc5 | 6,157 | exs | Elixir | .credo.exs | NFIBrokerage/volley | 592dc5cbf7cbcfb8648f779fea433c721f3893c0 | [
"Apache-2.0"
] | 3 | 2021-05-03T16:33:37.000Z | 2021-09-12T08:03:23.000Z | .credo.exs | NFIBrokerage/volley | 592dc5cbf7cbcfb8648f779fea433c721f3893c0 | [
"Apache-2.0"
] | 1 | 2021-09-08T15:18:58.000Z | 2021-09-08T15:19:50.000Z | .credo.exs | NFIBrokerage/volley | 592dc5cbf7cbcfb8648f779fea433c721f3893c0 | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 37.773006 | 92 | 0.634887 |
e8b6f792e0fac31fff50b1555df98592210b606f | 924 | exs | Elixir | example/config/config.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 13 | 2018-10-15T10:39:24.000Z | 2019-01-15T06:42:24.000Z | example/config/config.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 19 | 2018-08-10T04:33:46.000Z | 2018-12-02T04:55:48.000Z | example/config/config.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 4 | 2019-07-06T04:38:31.000Z | 2021-02-01T10:45:57.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :example,
ecto_repos: [Example.Repo]
# ... | 34.222222 | 86 | 0.768398 |
e8b71ba3f56b2761ac2a73cfb176cd93778f4e93 | 1,461 | ex | Elixir | lib/dutu/general/chore.ex | charl3sj/dutu | dbc56c863f5874137175ba4ede34f3ff69a004a6 | [
"MIT"
] | null | null | null | lib/dutu/general/chore.ex | charl3sj/dutu | dbc56c863f5874137175ba4ede34f3ff69a004a6 | [
"MIT"
] | null | null | null | lib/dutu/general/chore.ex | charl3sj/dutu | dbc56c863f5874137175ba4ede34f3ff69a004a6 | [
"MIT"
] | null | null | null | defmodule Dutu.General.Chore do
use Ecto.Schema
import Ecto.Changeset
use Dutu.DateHelpers
schema "chores" do
field :title, :string
field :rrule, :map
field :last_done_at, :naive_datetime
end
def changeset(chore, attrs) do
chore
|> cast(attrs, [:title, :rrule, :last_done_at])
|> v... | 27.566038 | 94 | 0.67488 |
e8b741b70a9063bc7d098e0151fd56f5107e3bc4 | 293 | ex | Elixir | lib/fl_hook/handshake_error.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | 1 | 2022-01-26T21:06:26.000Z | 2022-01-26T21:06:26.000Z | lib/fl_hook/handshake_error.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | lib/fl_hook/handshake_error.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | defmodule FLHook.HandshakeError do
@moduledoc """
An error that indicates that the socket connection is not a valid FLHook
socket or the encoding is wrong.
"""
defexception [:actual_message]
@impl true
def message(_error) do
"Socket is not a valid FLHook socket"
end
end
| 20.928571 | 74 | 0.726962 |
e8b74336dcda6d3939bfac66a39adbd8ace80b88 | 1,905 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/list_note_occurrences_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/list_note_occurrences_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/list_note_occurrences_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.634615 | 161 | 0.752231 |
e8b744b6fca814b6d8b3090220a02c2ed8830af0 | 61 | ex | Elixir | lib/loom_web/views/google_auth_view.ex | simonfraserduncan/my-copy | 03c618035a06a63d8fcf9f6511ef59d3e4cf2da9 | [
"Apache-2.0"
] | 4 | 2021-02-20T02:47:36.000Z | 2021-06-08T18:42:40.000Z | lib/loom_web/views/google_auth_view.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | null | null | null | lib/loom_web/views/google_auth_view.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | 1 | 2021-02-17T18:28:35.000Z | 2021-02-17T18:28:35.000Z | defmodule LoomWeb.GoogleAuthView do
use LoomWeb, :view
end
| 15.25 | 35 | 0.803279 |
e8b75e13c484212cb38caa46bfc2e2522fad4bd3 | 160 | ex | Elixir | lib/listeners/echo.ex | asciibeats/elixir_ranch | 5331c101e43b1fb75aa8d53849cad95358ead3b4 | [
"MIT"
] | 30 | 2022-01-23T13:04:02.000Z | 2022-01-30T04:05:45.000Z | lib/listeners/echo.ex | asciibeats/elixir_ranch | 5331c101e43b1fb75aa8d53849cad95358ead3b4 | [
"MIT"
] | null | null | null | lib/listeners/echo.ex | asciibeats/elixir_ranch | 5331c101e43b1fb75aa8d53849cad95358ead3b4 | [
"MIT"
] | 2 | 2022-01-28T13:51:21.000Z | 2022-01-29T04:09:50.000Z | defmodule ElixirRanch.Listeners.Echo do
def child_spec(opts) do
:ranch.child_spec(__MODULE__, :ranch_tcp, opts, ElixirRanch.Protocols.Echo, [])
end
end
| 26.666667 | 83 | 0.7625 |
e8b76293d6d3f603622be913170d6ff406871c16 | 2,335 | ex | Elixir | lib/chat_postoffice.ex | swarnavinash/Elixir-ChatServer | 81c770a5ddfc860bca84d202d25216568c560d9c | [
"RSA-MD"
] | 7 | 2016-06-03T17:30:27.000Z | 2017-05-15T16:17:00.000Z | lib/chat_postoffice.ex | swarnavinash/Elixir-ChatServer | 81c770a5ddfc860bca84d202d25216568c560d9c | [
"RSA-MD"
] | null | null | null | lib/chat_postoffice.ex | swarnavinash/Elixir-ChatServer | 81c770a5ddfc860bca84d202d25216568c560d9c | [
"RSA-MD"
] | null | null | null | defmodule ChatPostOffice do
use GenServer.Behaviour
defmodule State do
defstruct mailboxes: []
end
def init(_args) do
{:ok, %State{}}
end
def start_link() do
:gen_server.start_link {:local, :postoffice}, ChatPostOffice, [], []
end
def stop() do
:gen_server.cast :pos... | 24.840426 | 86 | 0.571306 |
e8b764d8fa086b3692d93dd3e47114f801db8398 | 1,052 | ex | Elixir | lib/flexflow/process_parent_manager.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 2 | 2021-02-05T02:07:17.000Z | 2021-07-31T22:38:54.000Z | lib/flexflow/process_parent_manager.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 79 | 2021-01-14T02:39:36.000Z | 2022-03-31T02:06:27.000Z | lib/flexflow/process_parent_manager.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | null | null | null | defmodule Flexflow.ProcessParentManager do
@moduledoc """
ProcessParentManager
"""
use DynamicSupervisor
alias Flexflow.Tracker
def start_link(init_arg) do
DynamicSupervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
@spec register(module()) :: {:ok, pid()} | {:error, term()}
def re... | 25.047619 | 88 | 0.644487 |
e8b766afeeff8bcbf3b337bf2dfd8f0a69668d61 | 4,799 | ex | Elixir | lib/iex/lib/iex/broker.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2019-08-13T23:22:33.000Z | 2019-08-13T23:22:33.000Z | lib/iex/lib/iex/broker.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/iex/lib/iex/broker.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Broker do
@moduledoc false
@name IEx.Broker
@type take_ref :: {takeover_ref :: reference(), server_ref :: reference()}
use GenServer
## Shell API
@doc """
Finds the IEx server running inside `:user_drv`, on this node exclusively.
"""
@spec shell :: pid | nil
def shell() do
# Lo... | 25.526596 | 89 | 0.603667 |
e8b77664c6e0d1c5b0d4422b27cda76a3026a853 | 162 | ex | Elixir | web/views/tp_filter_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_filter_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_filter_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpDestinationRateImportJobView do
use CgratesWebJsonapi.Web, :view
use JaSerializer.PhoenixView
attributes [:id, :status]
end
| 20.25 | 61 | 0.814815 |
e8b78749b5bdc1448057ad3d3400349f4e30368d | 1,390 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/hangouts_chat_info.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/hangouts_chat_info.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/hangouts_chat_info.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 29.574468 | 87 | 0.727338 |
e8b7a6f7102a21cd1d1af7523392b46b0432760c | 701 | ex | Elixir | lib/anchore_engine_api_server/model/whitelist_item.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/whitelist_item.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/whitelist_item.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule AnchoreEngineAPIServer.Model.WhitelistItem do
@moduledoc """
Identifies a specific gate and trigger match from a policy against an image and i... | 23.366667 | 138 | 0.71184 |
e8b7bf4ae7612a131713236a9b0735c46b0b8194 | 7,531 | ex | Elixir | lib/imagine/cms_templates.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 25 | 2020-09-08T05:13:40.000Z | 2022-03-15T13:35:59.000Z | lib/imagine/cms_templates.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | null | null | null | lib/imagine/cms_templates.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 3 | 2021-08-11T03:48:54.000Z | 2022-02-09T20:11:06.000Z | defmodule Imagine.CmsTemplates do
@moduledoc """
The CmsTemplates context.
"""
import Ecto.Query, warn: false
alias Imagine.Repo
alias Imagine.CmsTemplates.{CmsSnippet, CmsSnippetVersion, CmsTemplate, CmsTemplateVersion}
@doc """
Returns the list of cms_templates.
## Examples
iex> list_cms_... | 20.354054 | 93 | 0.635108 |
e8b7eb21db2b6d299454e8fed449ab8f7f6ddad3 | 1,018 | ex | Elixir | lib/gexbot/github/key_cache.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot/github/key_cache.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot/github/key_cache.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | defmodule Gexbot.Github.KeyCache do
use Agent
@name __MODULE__
def start_link() do
Agent.start_link(fn -> %{} end, name: @name)
end
def show_cache do
Agent.get(@name, fn(map) -> map end)
end
def get_key(type, id) do
with {key, expiry} <- Agent.get(@name, fn(map) -> Map.get(map, "#{type}.#{... | 23.136364 | 89 | 0.590373 |
e8b7f2804414871009f187a48c3efc43f0e90e87 | 71 | exs | Elixir | test/test_helper.exs | juhalehtonen/docknix | 562a26293d48b5dadccbd6340c4e2facc9f82633 | [
"MIT"
] | null | null | null | test/test_helper.exs | juhalehtonen/docknix | 562a26293d48b5dadccbd6340c4e2facc9f82633 | [
"MIT"
] | null | null | null | test/test_helper.exs | juhalehtonen/docknix | 562a26293d48b5dadccbd6340c4e2facc9f82633 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Docknix.Repo, :manual)
| 14.2 | 53 | 0.760563 |
e8b7faedc3e03cecb70e494590826fb8589fdb61 | 2,561 | exs | Elixir | test/mix/tasks/licenses_test.exs | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 70 | 2017-12-12T17:12:22.000Z | 2022-03-28T12:05:32.000Z | test/mix/tasks/licenses_test.exs | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 24 | 2017-12-05T12:15:42.000Z | 2021-08-01T15:51:32.000Z | test/mix/tasks/licenses_test.exs | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 22 | 2018-03-13T20:56:41.000Z | 2021-07-15T21:59:07.000Z | defmodule Licensir.Mix.Tasks.LicensesTest do
use Licensir.Case
import ExUnit.CaptureIO
test "prints a list of dependencies and their licenses" do
output =
capture_io(fn ->
Mix.Tasks.Licenses.run([])
end)
expected =
IO.ANSI.format_fragment([
[:yellow, "Notice: This is no... | 47.425926 | 122 | 0.427567 |
e8b81ffa2ee2e3e598d91b58e681c912a4529d21 | 5,330 | exs | Elixir | test/oban/plugins/cron_test.exs | moogle19/oban | b63036db6fae389832dae3eb9209d33ce4d5f471 | [
"Apache-2.0"
] | null | null | null | test/oban/plugins/cron_test.exs | moogle19/oban | b63036db6fae389832dae3eb9209d33ce4d5f471 | [
"Apache-2.0"
] | null | null | null | test/oban/plugins/cron_test.exs | moogle19/oban | b63036db6fae389832dae3eb9209d33ce4d5f471 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Plugins.CronTest do
use Oban.Case
alias Oban.Plugins.Cron
alias Oban.{Job, PluginTelemetryHandler, Registry}
@moduletag :integration
defmodule WorkerWithoutPerform do
end
describe "validate/1" do
test ":crontab is validated as a list of cron job expressions" do
assert_raise Ar... | 29.611111 | 97 | 0.601689 |
e8b82ad90baa42e351f181c9d282cd13114a6fec | 1,216 | ex | Elixir | elixirpay/lib/elixirpay_web/views/error_helpers.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | elixirpay/lib/elixirpay_web/views/error_helpers.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | elixirpay/lib/elixirpay_web/views/error_helpers.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | defmodule ElixirpayWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static ar... | 35.764706 | 78 | 0.672697 |
e8b86f8c921cc9d995171d712b095d2455838b92 | 2,290 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/plus_domains_aclentry_resource.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/plus_domains_aclentry_resource.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/plus_domains_aclentry_resource.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 ... | 38.813559 | 189 | 0.704803 |
e8b875716b8c2a6571568cfff92b07b673f9f131 | 1,949 | ex | Elixir | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_transfer_entitlements_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_transfer_entitlements_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_transfer_entitlements_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.803571 | 160 | 0.768086 |
e8b895e3e635d83a6c3b169739f945c295d22f4e | 3,495 | ex | Elixir | lib/oli_web/live/sections/table_model.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/table_model.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/table_model.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.Sections.SectionsTableModel do
use Surface.LiveComponent
alias OliWeb.Common.SessionContext
alias OliWeb.Common.Table.{ColumnSpec, SortableTableModel}
alias OliWeb.Router.Helpers, as: Routes
def new(%SessionContext{} = context, sections) do
SortableTableModel.new(
rows: sections,
... | 29.871795 | 113 | 0.614878 |
e8b8a0e18783a2bc58c89759d83e6349f6842727 | 1,738 | exs | Elixir | test/test_helper.exs | ananthakumaran/randex | 3e3783e00cba625c5354638248f82ae84e8c2941 | [
"MIT"
] | 10 | 2018-09-23T07:44:26.000Z | 2021-11-04T05:50:21.000Z | test/test_helper.exs | ananthakumaran/randex | 3e3783e00cba625c5354638248f82ae84e8c2941 | [
"MIT"
] | null | null | null | test/test_helper.exs | ananthakumaran/randex | 3e3783e00cba625c5354638248f82ae84e8c2941 | [
"MIT"
] | null | null | null | defmodule TestHelper do
require Logger
import ExUnit.Assertions
def cases(path) do
File.read!(Path.join([__DIR__, "fixtures", path]))
|> String.trim()
|> String.split("\n\n")
|> Enum.filter(&(!String.starts_with?(&1, "#")))
end
def gen(c, opts, config) do
Logger.info("Regex: " <> inspect... | 24.478873 | 79 | 0.556387 |
e8b8a5770734e07a147ace222409cf93a070cda2 | 11,419 | ex | Elixir | lib/codes/codes_z3a.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z3a.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z3a.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Z3A do
alias IcdCode.ICDCode
def _Z3A00 do
%ICDCode{full_code: "Z3A00",
category_code: "Z3A",
short_code: "00",
full_name: "Weeks of gestation of pregnancy not specified",
short_name: "Weeks of gestation of pregnancy not specified",
... | 32.719198 | 72 | 0.597951 |
e8b8abb9a8329f9e09ddd943c65fb535765efc38 | 2,596 | ex | Elixir | lib/membrane_opus/decoder.ex | JasonTrue/membrane_opus_plugin | 9577ab9941cfcd5737346b645eff93e1800fcc2d | [
"Apache-2.0"
] | null | null | null | lib/membrane_opus/decoder.ex | JasonTrue/membrane_opus_plugin | 9577ab9941cfcd5737346b645eff93e1800fcc2d | [
"Apache-2.0"
] | null | null | null | lib/membrane_opus/decoder.ex | JasonTrue/membrane_opus_plugin | 9577ab9941cfcd5737346b645eff93e1800fcc2d | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Opus.Decoder do
@moduledoc """
This element performs decoding of Opus audio.
"""
use Membrane.Filter
alias __MODULE__.Native
alias Membrane.{Buffer, Opus, RemoteStream}
alias Membrane.Caps.Audio.Raw
alias Membrane.Opus.Util
@avg_opus_packet_size 960
def_options sample_rate: [
... | 28.527473 | 92 | 0.645223 |
e8b8ad63f72361271c1f4569d07cda30ad6a8764 | 2,643 | exs | Elixir | test/mechanize/form/image_input_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 25 | 2020-06-26T02:21:35.000Z | 2022-03-05T18:51:46.000Z | test/mechanize/form/image_input_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 29 | 2019-07-02T21:50:06.000Z | 2020-05-28T18:34:01.000Z | test/mechanize/form/image_input_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 4 | 2020-06-24T02:11:47.000Z | 2022-03-06T00:50:59.000Z | defmodule Mechanize.Form.ImageInputTest do
use ExUnit.Case, async: true
alias Mechanize.Page
alias Mechanize.Form.ImageInput
alias Mechanize.Page.Element
alias Mechanize.Query.BadQueryError
import TestHelper
setup do
{:ok, %{page: page} = vars} = stub_requests("/test/htdocs/image_input_test.html")
... | 30.37931 | 85 | 0.61294 |
e8b8b7ee2ce5c868845f6024423dbad009ed7ed6 | 1,264 | exs | Elixir | mix.exs | jano017/coxir | 81e89e0113a9219685be2b61af7d17c5fcd9e5fb | [
"Apache-2.0"
] | null | null | null | mix.exs | jano017/coxir | 81e89e0113a9219685be2b61af7d17c5fcd9e5fb | [
"Apache-2.0"
] | null | null | null | mix.exs | jano017/coxir | 81e89e0113a9219685be2b61af7d17c5fcd9e5fb | [
"Apache-2.0"
] | null | null | null | defmodule Coxir.Mixfile do
use Mix.Project
def project do
[
app: :coxir,
version: "0.1.0",
elixir: "~> 1.5",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
name: "coxir",
docs: docs(),
package: package(),
descripti... | 20.063492 | 62 | 0.491297 |
e8b8d2d8ab1233d8fd45c186a1aad7305e325e0d | 1,639 | exs | Elixir | mix.exs | alanwilhelm/elixir-ethereum | 42aba002e485524be2981ae05b6f7134f8439dc4 | [
"MIT"
] | null | null | null | mix.exs | alanwilhelm/elixir-ethereum | 42aba002e485524be2981ae05b6f7134f8439dc4 | [
"MIT"
] | null | null | null | mix.exs | alanwilhelm/elixir-ethereum | 42aba002e485524be2981ae05b6f7134f8439dc4 | [
"MIT"
] | null | null | null | defmodule Ethereum.Mixfile do
use Mix.Project
def project do
[app: :ethereum,
version: "0.1.0",
elixir: "~> 1.4",
package: package(),
description: description(),
name: "Ethereum",
source_url: "https://github.com/esprezzo/elixir-ethereum",
build_embedded: Mix.env == :prod,
... | 27.779661 | 169 | 0.594265 |
e8b8fe34bbb1cea8c24207aeee29433caf7069c7 | 23 | ex | Elixir | lib/jirex.ex | Waasi/jirex | 24f43309183c4702c7cdda956a58202847f5c074 | [
"MIT"
] | null | null | null | lib/jirex.ex | Waasi/jirex | 24f43309183c4702c7cdda956a58202847f5c074 | [
"MIT"
] | null | null | null | lib/jirex.ex | Waasi/jirex | 24f43309183c4702c7cdda956a58202847f5c074 | [
"MIT"
] | null | null | null | defmodule Jirex do
end
| 7.666667 | 18 | 0.826087 |
e8b949a6dc3fe75b8cea1356fdff74752f99f92d | 28 | exs | Elixir | .iex.exs | prio101/mix_todo_app | 7fd487d93b350733ec9f25fa7ddfa626a8535c31 | [
"MIT"
] | null | null | null | .iex.exs | prio101/mix_todo_app | 7fd487d93b350733ec9f25fa7ddfa626a8535c31 | [
"MIT"
] | null | null | null | .iex.exs | prio101/mix_todo_app | 7fd487d93b350733ec9f25fa7ddfa626a8535c31 | [
"MIT"
] | null | null | null | alias TodoList.{Action,Repo} | 28 | 28 | 0.821429 |
e8b960ec9bd6eb3c2498080971cc3b4d00e81196 | 144,880 | ex | Elixir | lib/aws/generated/iam.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/iam.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/iam.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.IAM do
@moduledoc """
Identity and Access Management
Identity and Access Management (IAM) is a web service for securely controlling
access to Amazon Web Services services.
With IAM, yo... | 48.584842 | 191 | 0.754963 |
e8b97b6858ef12465184079ed2f786295a1e0353 | 197 | exs | Elixir | priv/repo/migrations/20151013033736_create_post.exs | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | 7 | 2016-12-15T00:33:22.000Z | 2019-04-24T20:42:17.000Z | priv/repo/migrations/20151013033736_create_post.exs | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | 1 | 2017-07-19T16:41:35.000Z | 2017-07-19T16:41:35.000Z | priv/repo/migrations/20151013033736_create_post.exs | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | 2 | 2017-04-28T21:52:38.000Z | 2020-04-24T14:41:31.000Z | defmodule Blog.Repo.Migrations.CreatePost do
use Ecto.Migration
def change do
create table(:posts) do
add :title, :string
add :body, :text
timestamps
end
end
end
| 14.071429 | 44 | 0.649746 |
e8b97f94a553d33136f6e20f856fd796734ff0a7 | 2,586 | ex | Elixir | lib/conform/schema/validator.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 410 | 2015-01-10T13:33:00.000Z | 2022-01-31T20:12:15.000Z | lib/conform/schema/validator.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 140 | 2015-02-05T16:29:32.000Z | 2020-10-22T10:52:33.000Z | lib/conform/schema/validator.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 65 | 2015-02-13T21:02:29.000Z | 2021-06-23T05:49:09.000Z | defmodule Conform.Schema.Validator do
@moduledoc """
This module defines the behaviour for custom validators.
Validators can be defined inline in which case this behaviour need not be used,
but if you want to define reusable validators which you can reference in your
schema, you should implement this behavio... | 35.424658 | 113 | 0.688322 |
e8b98c229c8ac00036465e038de225e81eb6cbad | 4,467 | ex | Elixir | lib/crudry_query.ex | RafaelOFreitas/crudry | bfac04adcc63e4e8a0657114b9801b5e896e20d0 | [
"MIT"
] | 36 | 2020-04-12T15:40:48.000Z | 2022-03-14T19:36:55.000Z | lib/crudry_query.ex | RafaelOFreitas/crudry | bfac04adcc63e4e8a0657114b9801b5e896e20d0 | [
"MIT"
] | 14 | 2019-01-15T21:05:10.000Z | 2020-02-07T12:08:36.000Z | lib/crudry_query.ex | RafaelOFreitas/crudry | bfac04adcc63e4e8a0657114b9801b5e896e20d0 | [
"MIT"
] | 5 | 2021-05-10T14:07:09.000Z | 2021-08-22T18:55:47.000Z | defmodule Crudry.Query do
@moduledoc """
Generates Ecto Queries.
All functions in this module return an `Ecto.Query`.
Combining the functions in this module can be very powerful. For example, to do pagination with filter and search:
pagination_params = %{limit: 10, offset: 1, order_by: "id", sorting_or... | 31.907143 | 130 | 0.653011 |
e8b99ef24c18a0bf787c9bccdb69aed7b6ef754e | 8,455 | exs | Elixir | apps/tai/test/tai/venues/adapters/amend_order_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/venues/adapters/amend_order_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venues/adapters/amend_order_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | defmodule Tai.Venues.Adapters.AmendOrderTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Mock
setup_all do
on_exit(fn ->
Application.stop(:tai)
end)
{:ok, _} = Application.ensure_all_started(:tai)
start_supervised!(Tai.TestSupport.Mocks.Server)
... | 38.431818 | 98 | 0.69249 |
e8ba066274a9230932d1d1fb0096de2a88b7e65f | 916 | ex | Elixir | example/lib/example_web/endpoint.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | 169 | 2016-04-08T10:47:43.000Z | 2021-01-19T15:37:34.000Z | example/lib/example_web/endpoint.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | 36 | 2016-04-07T13:28:02.000Z | 2021-01-27T08:16:35.000Z | example/lib/example_web/endpoint.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | 42 | 2016-04-08T14:31:33.000Z | 2021-01-21T09:24:51.000Z | defmodule ExampleWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :example
socket "/socket", ExampleWeb.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.Sta... | 24.105263 | 65 | 0.704148 |
e8ba2c5ec6cf1d67052c9cb2a56dfbe6a5bb5351 | 1,277 | ex | Elixir | lib/markdown.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | lib/markdown.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | lib/markdown.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | defmodule Markdown do
@doc """
Parses a given string with Markdown syntax and returns the associated HTML for that string.
## Examples
iex> Markdown.parse("This is a paragraph")
"<p>This is a paragraph</p>"
iex> Markdown.parse("#Header!\n* __Bold Item__\n* _Italic Item_")
"<h1>Header!</h1><... | 27.76087 | 95 | 0.593579 |
e8ba3a81aa23de780648008a19c225e6aefa77e2 | 3,930 | exs | Elixir | test/uro/accounts_test.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | test/uro/accounts_test.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | test/uro/accounts_test.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule Uro.AccountsTest do
use Uro.DataCase
alias Uro.Accounts
describe "users" do
alias Uro.Accounts.User
@valid_attrs %{name: "some name"}
@update_attrs %{name: "some updated name"}
@invalid_attrs %{name: nil}
def user_fixture(attrs \\ %{}) do
{:ok, user} =
attrs
... | 31.190476 | 109 | 0.658524 |
e8ba77ee362618e6143d0fd7899b34d1281a481a | 5,034 | exs | Elixir | test/storeHall/ratings_test.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | test/storeHall/ratings_test.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | test/storeHall/ratings_test.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHall.RatingsTest do
use StoreHall.DataCase
use ExUnitProperties
alias StoreHall.Fixture
alias StoreHall.Items
alias StoreHall.Users
alias StoreHall.Ratings
describe "item ratings" do
test "list_ratings returns all ratings" do
user = Fixture.generate_user()
item = Fixture.g... | 32.063694 | 97 | 0.569726 |
e8ba78ef92d44efa0266ab4e8080595ef3d3a343 | 38 | ex | Elixir | lib/conreality/knowledge.ex | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 2 | 2015-09-23T19:18:50.000Z | 2015-09-24T21:08:13.000Z | lib/conreality/knowledge.ex | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 3 | 2015-09-24T20:38:41.000Z | 2015-09-26T21:26:49.000Z | lib/conreality/knowledge.ex | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | null | null | null | defmodule Conreality.Knowledge do
end
| 12.666667 | 33 | 0.868421 |
e8ba8527c517d28f15d5790734356915039df2a9 | 1,503 | ex | Elixir | lib/flowr_web/endpoint.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr_web/endpoint.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr_web/endpoint.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule FlowrWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :flowr
@session_options [
store: :cookie,
key: "_flowr_key",
signing_salt: "1bXUv4li"
]
socket "/socket", FlowrWeb.UserSocket,
websocket: true,
longpoll: false
socket "/live", Phoenix.LiveView.Socket, websocket: [connect_info... | 26.839286 | 97 | 0.71324 |
e8ba8788c1f4c7bbb180a6f232ad01a9046b5167 | 9,004 | ex | Elixir | farmbot_os/lib/farmbot_os/sys_calls/pin_control.ex | EarthEngineering/facetop_os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_os/lib/farmbot_os/sys_calls/pin_control.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/sys_calls/pin_control.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.SysCalls.PinControl do
@moduledoc false
alias FarmbotCore.{Asset, Leds}
alias FarmbotCore.Asset.{
BoxLed,
Peripheral,
Sensor
}
require FarmbotCore.Logger
def read_cached_pin(%_{pin: number}) do
read_cached_pin(number)
end
def read_cached_pin(pin_number) do
Fa... | 26.023121 | 79 | 0.595069 |
e8ba8b23aaa80d051cf1b0ab7c22210c99f91c90 | 641 | ex | Elixir | lib/app_store/api/error.ex | linjunpop/app_store | 7fab554f580e99772d2ce611fa12940e6e50c48e | [
"MIT"
] | 5 | 2021-08-19T16:12:40.000Z | 2022-02-22T04:17:33.000Z | lib/app_store/api/error.ex | linjunpop/app_store | 7fab554f580e99772d2ce611fa12940e6e50c48e | [
"MIT"
] | 2 | 2021-08-19T13:40:57.000Z | 2021-08-19T13:41:31.000Z | lib/app_store/api/error.ex | linjunpop/app_store | 7fab554f580e99772d2ce611fa12940e6e50c48e | [
"MIT"
] | null | null | null | defmodule AppStore.API.Error do
@moduledoc """
The struct representing the error from the API.
"""
@enforce_keys [:code, :detail]
defstruct [:code, :detail]
@type t :: %__MODULE__{
code: atom() | integer(),
detail: any()
}
@type client_error :: %{
code: :client_err... | 20.03125 | 49 | 0.461778 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.