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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
857161c0f058b88c491795c36ff631b6f0e98f2d | 929 | ex | Elixir | lib/tweetyodel_live/application.ex | kpanic/tweetyodel_live | fd294ae2e171c215f8048f48e919d2de0757059a | [
"Apache-2.0"
] | 1 | 2020-01-12T21:52:15.000Z | 2020-01-12T21:52:15.000Z | lib/tweetyodel_live/application.ex | kpanic/tweetyodel_live | fd294ae2e171c215f8048f48e919d2de0757059a | [
"Apache-2.0"
] | null | null | null | lib/tweetyodel_live/application.ex | kpanic/tweetyodel_live | fd294ae2e171c215f8048f48e919d2de0757059a | [
"Apache-2.0"
] | null | null | null | defmodule TweetyodelLive.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 endpoint when the application sta... | 29.03125 | 80 | 0.714747 |
8571742027ce6e91d338d4da6d202ebb24db5857 | 697 | exs | Elixir | priv/repo/migrations/20160710122632_create_transaction_line_item.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | priv/repo/migrations/20160710122632_create_transaction_line_item.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | priv/repo/migrations/20160710122632_create_transaction_line_item.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338.Repo.Migrations.CreateTransactionLineItem do
use Ecto.Migration
def change do
create table(:transaction_line_items) do
add :action, :string
add :roster_transaction_id, references(:roster_transactions,
on_delete: :delete_all)
add :f... | 34.85 | 79 | 0.707317 |
8571cb47e4c458b14521a9c588cd9e4ababe2d44 | 9,187 | ex | Elixir | test/support/test_helpers.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.TestHelpers do
alias Oli.Repo
alias Oli.Accounts
alias Oli.Institutions
alias Oli.Accounts.User
alias Oli.Accounts.Author
alias Oli.Authoring.Course
alias Oli.Authoring.Course.Project
alias Oli.Delivery.Sections.Section
alias Oli.Publishing
alias Oli.PartComponents
import Mox
Mox... | 27.261128 | 96 | 0.635899 |
8571db6cf48c1b8ee3333ef266688ae2975e8d9f | 5,669 | ex | Elixir | lib/cadet_web/controllers/auth_controller.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/controllers/auth_controller.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/controllers/auth_controller.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | null | null | null | defmodule CadetWeb.AuthController do
@moduledoc """
Handles user login and authentication.
"""
use CadetWeb, :controller
use PhoenixSwagger
alias Cadet.Accounts
alias Cadet.Accounts.User
alias Cadet.Auth.{Guardian, Provider}
@doc """
Receives a /login request with valid attributes.
If the user ... | 29.373057 | 97 | 0.633445 |
8571f644eb20cffdb3dc15ec37792c2a3080fcea | 164 | ex | Elixir | web/controllers/page_controller.ex | h4cc/elixir-badges | e10ad5ba2083236fb26bbfac9e284621fca547a6 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | h4cc/elixir-badges | e10ad5ba2083236fb26bbfac9e284621fca547a6 | [
"MIT"
] | 3 | 2015-04-24T12:28:05.000Z | 2015-04-28T19:54:36.000Z | web/controllers/page_controller.ex | h4cc/elixir-badges | e10ad5ba2083236fb26bbfac9e284621fca547a6 | [
"MIT"
] | null | null | null | defmodule ElixirBadges.PageController do
use ElixirBadges.Web, :controller
plug :action
def index(conn, _params) do
render conn, "index.html"
end
end
| 16.4 | 40 | 0.737805 |
857201cb0674051d0bfca5e3e62c6951bd2f329a | 1,091 | ex | Elixir | apps/rayyan_site/test/support/conn_case.ex | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | apps/rayyan_site/test/support/conn_case.ex | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | apps/rayyan_site/test/support/conn_case.ex | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | defmodule RayyanSiteWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if... | 28.710526 | 64 | 0.737855 |
85721833ac9a4f5c2a70761d9719402a1ecbd541 | 2,761 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 43.825397 | 381 | 0.738863 |
85723eca923fb8834c1bfdbcd5697b11bcaac5d3 | 316 | exs | Elixir | config/test.exs | techgaun/darkskyx | 81e66f9f1bbda074831cafe9a8538950dfa8b946 | [
"Apache-2.0"
] | 16 | 2016-10-03T23:04:33.000Z | 2020-03-04T17:54:43.000Z | config/test.exs | techgaun/darkskyx | 81e66f9f1bbda074831cafe9a8538950dfa8b946 | [
"Apache-2.0"
] | 9 | 2018-01-07T12:13:42.000Z | 2020-04-12T23:38:26.000Z | config/test.exs | techgaun/darkskyx | 81e66f9f1bbda074831cafe9a8538950dfa8b946 | [
"Apache-2.0"
] | 3 | 2018-01-07T11:20:42.000Z | 2018-08-22T20:05:38.000Z | use Mix.Config
config :darkskyx,
api_key: System.get_env("DARKSKY_API_KEY"),
defaults: [
units: "us",
lang: "en"
]
config :exvcr,
vcr_cassette_library_dir: "test/fixture/vcr_cassettes",
filter_sensitive_data: [
[pattern: System.get_env("DARKSKY_API_KEY"), placeholder: "DARKSKY_API_KEY"]
]
| 21.066667 | 80 | 0.705696 |
85727482e08b484f47cde0e77f0ea907849fa2a2 | 855 | exs | Elixir | test/08_game_console_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | test/08_game_console_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | test/08_game_console_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | defmodule Advent20.GameConsoleTest do
use ExUnit.Case, async: true
alias Advent20.GameConsole
@input "08_game_console.txt" |> Path.expand("input_files") |> File.read!()
@unit_test_input """
nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
jmp -4
acc +6
"""
describe "1" do
test "un... | 21.375 | 80 | 0.68655 |
8572eb711772674316f42a61561c09663cbe5600 | 1,734 | ex | Elixir | lib/whenever/numeric_seconds.ex | styx/whenever.ex | c3d57d6323f3681b790599291a3009e2000782d9 | [
"MIT"
] | null | null | null | lib/whenever/numeric_seconds.ex | styx/whenever.ex | c3d57d6323f3681b790599291a3009e2000782d9 | [
"MIT"
] | null | null | null | lib/whenever/numeric_seconds.ex | styx/whenever.ex | c3d57d6323f3681b790599291a3009e2000782d9 | [
"MIT"
] | null | null | null | defmodule Whenever.NumericSeconds do
@moduledoc """
Helper module to convert time to seconds
"""
@doc """
just returns value passed in
Example:
iex> Whenever.NumericSeconds.seconds(42)
42
"""
def seconds(number) do
number
end
@doc "alias for seconds"
def second(number) do
seconds(n... | 13.872 | 42 | 0.645905 |
8572f7ca12097b0e97792a8ed324cf0d850c4bc0 | 1,081 | exs | Elixir | nucleotide-count/nucleotide_count_test.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count_test.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count_test.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("nucleotide_count.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule NucleotideCountTest do
use ExUnit.Case
test "empty dna string has no adenine" do
assert NucleotideCount.count('', ?A) == 0
end
test... | 27.717949 | 80 | 0.677151 |
85732d790e7f371cf43a01ae973241df20e1f88f | 5,885 | ex | Elixir | lib/discourse/sso.ex | lubien/discourse | 650c8473cdd902383b8448db211ad9dfdef8d989 | [
"MIT"
] | null | null | null | lib/discourse/sso.ex | lubien/discourse | 650c8473cdd902383b8448db211ad9dfdef8d989 | [
"MIT"
] | null | null | null | lib/discourse/sso.ex | lubien/discourse | 650c8473cdd902383b8448db211ad9dfdef8d989 | [
"MIT"
] | null | null | null | defmodule Discourse.SSO do
@moduledoc """
kDiscourse SSO.
Reference: https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045
"""
require Logger
@string_fields ~w(
avatar_url
bio
card_background_url
email
external_id
locale
name
nonce
profile_backgro... | 28.02381 | 216 | 0.657774 |
85732f5581c92f01e23f1a3430b11923dc8e9c5d | 5,258 | ex | Elixir | lib/elastic/document/api.ex | WhileHappy/elastic | 648fcaa4ecb772e05b1a0f1f6cb1f6961eb07932 | [
"MIT"
] | 63 | 2016-10-19T15:48:22.000Z | 2021-12-21T02:55:39.000Z | lib/elastic/document/api.ex | WhileHappy/elastic | 648fcaa4ecb772e05b1a0f1f6cb1f6961eb07932 | [
"MIT"
] | 33 | 2016-11-13T02:41:07.000Z | 2021-05-25T11:12:51.000Z | lib/elastic/document/api.ex | WhileHappy/elastic | 648fcaa4ecb772e05b1a0f1f6cb1f6961eb07932 | [
"MIT"
] | 27 | 2016-11-13T02:47:29.000Z | 2022-01-25T02:16:39.000Z | defmodule Elastic.Document.API do
@moduledoc ~S"""
The Document API provides some helpers for interacting with documents.
The Document API extracts away a lot of the repetition of querying /
indexing of a particular index. Here's an example:
```
defmodule Answer do
@es_type "answer"
@es_index "ans... | 22.86087 | 99 | 0.587105 |
857337060ab28381e3d0bd2fbe11db891f332728 | 1,385 | exs | Elixir | test/schema_test.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | defmodule SchemaTest do
use ExUnit.Case, async: true
import Postgrex.TestHelper
alias Postgrex, as: P
setup do
opts = [ database: "postgrex_test_with_schemas" ]
{:ok, pid} = P.start_link(opts)
{:ok, [pid: pid]}
end
@tag min_pg_version: "9.1"
test "encode hstore", context do
assert [[%{"... | 49.464286 | 174 | 0.565343 |
85733a925955d6e4472eb37a8f11c9ee2f209f4c | 4,147 | exs | Elixir | test/doumi/ecto_case_helper_test.exs | nallwhy/doumi | 6324c340e0ad1974000f7ce2903fc0cccfae12f4 | [
"MIT"
] | 1 | 2020-08-25T23:43:51.000Z | 2020-08-25T23:43:51.000Z | test/doumi/ecto_case_helper_test.exs | nallwhy/doumi | 6324c340e0ad1974000f7ce2903fc0cccfae12f4 | [
"MIT"
] | null | null | null | test/doumi/ecto_case_helper_test.exs | nallwhy/doumi | 6324c340e0ad1974000f7ce2903fc0cccfae12f4 | [
"MIT"
] | null | null | null | defmodule Doumi.EctoCaseHelperTest do
use Doumi.EctoCase, async: true
alias Doumi.EctoCaseHelper
alias Doumi.TestRepo
@changeset %Ecto.Changeset{
types: %{field0: :string, field1: :integer},
action: :update,
changes: %{field0: "value0", field1: 1},
errors: [],
data: %{},
valid?: false
... | 27.832215 | 100 | 0.638775 |
8573418ccd46f8839368e1ba8c1ccafdce662334 | 73,568 | ex | Elixir | examples/install.ex | pjmaker/nana | 6d70617db8b9972e6c1008265fc228aba91c2042 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 22 | 2015-01-04T22:05:15.000Z | 2022-01-21T00:27:48.000Z | examples/install.ex | pjmaker/nana | 6d70617db8b9972e6c1008265fc228aba91c2042 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2015-01-02T07:36:07.000Z | 2018-09-03T06:40:33.000Z | examples/install.ex | pjmaker/nana | 6d70617db8b9972e6c1008265fc228aba91c2042 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2021-01-06T21:40:18.000Z | 2021-01-06T21:40:18.000Z | Script started on Mon Apr 21 19:16:17 1997
% tar zxvf ../nana/nana-1.00.tar.gz
nana-1.00/Makefile.in
nana-1.00/doc/Makefile.in
nana-1.00/doc/Makefile.am
nana-1.00/doc/mdate-sh
nana-1.00/doc/stamp-vti
nana-1.00/doc/version.texi
nana-1.00/doc/nana.texi
nana-1.00/doc/nana.info
nana-1.00/doc/nana.info-1
nana-1.00/doc/nana... | 48.980027 | 164 | 0.552033 |
857361533e03f97ae699a33eaf7a8a448bd2b44c | 1,061 | ex | Elixir | test/support/conn_case.ex | learntogrowbaguz/semaphore-demo-elixir-phoenix | a1a3280e213b4e36e8eaa7b4ea3ba156584a295a | [
"MIT"
] | 1 | 2020-03-19T13:26:01.000Z | 2020-03-19T13:26:01.000Z | test/support/conn_case.ex | learntogrowbaguz/semaphore-demo-elixir-phoenix | a1a3280e213b4e36e8eaa7b4ea3ba156584a295a | [
"MIT"
] | 6 | 2019-05-29T16:34:19.000Z | 2021-09-01T02:10:43.000Z | test/support/conn_case.ex | learntogrowbaguz/semaphore-demo-elixir-phoenix | a1a3280e213b4e36e8eaa7b4ea3ba156584a295a | [
"MIT"
] | 68 | 2019-05-16T15:40:51.000Z | 2022-03-20T06:30:53.000Z | defmodule SemaWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the t... | 26.525 | 66 | 0.712535 |
857365b5b6a84805f247cab98dfa61e30b85b8f9 | 345 | ex | Elixir | test/support/models/user.ex | ByteDecoder/ex_machina | 012e957e7ab1e22eca18b62e8f3fcc2a98a7f286 | [
"MIT"
] | 1 | 2019-05-20T04:59:57.000Z | 2019-05-20T04:59:57.000Z | test/support/models/user.ex | ByteDecoder/ex_machina | 012e957e7ab1e22eca18b62e8f3fcc2a98a7f286 | [
"MIT"
] | null | null | null | test/support/models/user.ex | ByteDecoder/ex_machina | 012e957e7ab1e22eca18b62e8f3fcc2a98a7f286 | [
"MIT"
] | null | null | null | defmodule ExMachina.User do
use Ecto.Schema
schema "users" do
field :name, :string
field :admin, :boolean
field :net_worth, :decimal
field :password, :string, virtual: true
has_many :articles, ExMachina.Article
has_many :editors, through: [:articles, :editor]
has_one :best_article, ExM... | 23 | 52 | 0.701449 |
857372f4d252308db9d7a61143bfb4a0d2f74768 | 806 | ex | Elixir | test/support/fixtures/accounts_fixtures.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | test/support/fixtures/accounts_fixtures.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | test/support/fixtures/accounts_fixtures.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraper.AccountsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `ElixirGoogleScraper.Users` context.
"""
alias ElixirGoogleScraper.Account.Users
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
def valid_user_password,... | 24.424242 | 73 | 0.665012 |
85739da3a0b382af0dcd7c5e5ea130563660a9f8 | 1,394 | ex | Elixir | apps/ewallet/lib/ewallet/policies/account_membership_policy.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/account_membership_policy.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/account_membership_policy.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.418605 | 74 | 0.748207 |
8573a8821b482dad66ce4a10acf826486fb01a94 | 2,663 | exs | Elixir | protein-translation/test/protein_translation_test.exs | matheuscas/my-exercism-io-elixir-track | 6c676d84f6bc4dd24192e2aea04324c238f436ee | [
"MIT"
] | null | null | null | protein-translation/test/protein_translation_test.exs | matheuscas/my-exercism-io-elixir-track | 6c676d84f6bc4dd24192e2aea04324c238f436ee | [
"MIT"
] | null | null | null | protein-translation/test/protein_translation_test.exs | matheuscas/my-exercism-io-elixir-track | 6c676d84f6bc4dd24192e2aea04324c238f436ee | [
"MIT"
] | null | null | null | defmodule ProteinTranslationTest do
use ExUnit.Case
# # @tag :pending
test "AUG translates to methionine" do
assert ProteinTranslation.of_codon("AUG") == {:ok, "Methionine"}
end
# @tag :pending
test "identifies Phenylalanine codons" do
assert ProteinTranslation.of_codon("UUU") == {:ok, "Phenylalanin... | 30.965116 | 94 | 0.683815 |
8573bb9097d771548410381002be1f3488a7d9a5 | 2,270 | ex | Elixir | lib/scaffolding/common/sphinx/nullable_integer.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/common/sphinx/nullable_integer.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/common/sphinx/nullable_integer.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings <keith.brings@noizu.com>
# Copyright (C) 2021 Noizu Labs Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedScaffolding.Sphinx.Type.Nu... | 26.091954 | 82 | 0.464758 |
8573c238dbd26f65a73d76be78dcb8bfa67a5491 | 4,801 | ex | Elixir | lib/mix/lib/mix/tasks/escript.install.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.install.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.install.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Escript.Install do
use Mix.Task
@shortdoc "Installs an escript locally"
@moduledoc """
Installs an escript locally.
If no argument is supplied but there is an escript in the project's root directory
(created with `mix escript.build`), then the escript will be installed
locally. For ... | 33.573427 | 96 | 0.678192 |
8573ce1381dcc342f3a7eb6f209e4a0048951488 | 372 | exs | Elixir | plugins/one_chat/test/ucc_chat/settings/settings_test.exs | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/test/ucc_chat/settings/settings_test.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/test/ucc_chat/settings/settings_test.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChatTest.Settings do
use OneChat.DataCase
alias OneChat.Settings
setup do
OneSettings.init_all
:ok
end
test "getters" do
assert Settings.grouping_period_seconds == 300
assert Settings.maximum_file_upload_size_kb == 2000
assert Settings.enable_favorite_rooms == true
asse... | 19.578947 | 55 | 0.747312 |
8573d83257b3cbb78979cfcc742781b4b957c974 | 4,775 | exs | Elixir | test/unit/rest_v3_test.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/unit/rest_v3_test.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/unit/rest_v3_test.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | defmodule RestV3Test do
use ExUnit.Case, async: false
import Mock
alias HTTPoison.Response
@url "/v3/notification/f534534543"
setup do
TestHelper.reload_app()
end
test "incorrect path returns 404" do
assert 404 = post("/notification", %{})
assert 404 = post("/v3/notification", %{})
asser... | 30.608974 | 92 | 0.576335 |
8573de1d1e7e710cc33204e463c8a6249b3c28dc | 606 | ex | Elixir | lib/edgedb/protocol/type_descriptors/scalar_type_name_annotation.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/type_descriptors/scalar_type_name_annotation.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/type_descriptors/scalar_type_name_annotation.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.TypeDescriptors.ScalarTypeNameAnnotation do
@moduledoc false
use EdgeDB.Protocol.TypeDescriptor
alias EdgeDB.Protocol.{
Codecs,
Datatypes
}
# id of type here is always known, so no need to parse
deftypedescriptor(
type: 0xFF,
parse: false
)
# update existing... | 22.444444 | 70 | 0.731023 |
8573e075eed80d6b9ce69d6e09823d362434ffb0 | 1,201 | ex | Elixir | graphql-elixir/lib/graphql_sample_web/endpoint.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | 1 | 2019-04-14T04:19:37.000Z | 2019-04-14T04:19:37.000Z | graphql-elixir/lib/graphql_sample_web/endpoint.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | null | null | null | graphql-elixir/lib/graphql_sample_web/endpoint.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | null | null | null | defmodule GraphqlSampleWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :graphql_sample
socket "/socket", GraphqlSampleWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when d... | 26.688889 | 63 | 0.712739 |
8573e917936e74a9396015b08d093c65e612822d | 570 | ex | Elixir | lib/chat_api_web/views/note_view.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | 1 | 2021-01-18T09:57:23.000Z | 2021-01-18T09:57:23.000Z | lib/chat_api_web/views/note_view.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | lib/chat_api_web/views/note_view.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.NoteView do
use ChatApiWeb, :view
alias ChatApiWeb.NoteView
def render("index.json", %{notes: notes}) do
%{data: render_many(notes, NoteView, "note.json")}
end
def render("show.json", %{note: note}) do
%{data: render_one(note, NoteView, "note.json")}
end
def render("note.js... | 22.8 | 54 | 0.635088 |
8573fd289e1f09aeba3c1e86289d27f8a7587774 | 97 | exs | Elixir | test/tyrion_test.exs | LupineDev/tyrion | 3113538204d5d739b32a1c797f83caa92509e6cc | [
"MIT"
] | null | null | null | test/tyrion_test.exs | LupineDev/tyrion | 3113538204d5d739b32a1c797f83caa92509e6cc | [
"MIT"
] | null | null | null | test/tyrion_test.exs | LupineDev/tyrion | 3113538204d5d739b32a1c797f83caa92509e6cc | [
"MIT"
] | null | null | null | defmodule TyrionTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.125 | 23 | 0.649485 |
85740a2caf10d17faa963773b925d28c60013873 | 868 | ex | Elixir | lib/inspect/mfa.ex | ElixirWerkz/exlogger | 57e2da8c0883b5e83be00fe0764628f4b5f3bdf5 | [
"MIT"
] | 2 | 2015-08-25T09:23:21.000Z | 2016-04-14T12:30:06.000Z | lib/inspect/mfa.ex | ElixirWerkz/exlogger | 57e2da8c0883b5e83be00fe0764628f4b5f3bdf5 | [
"MIT"
] | null | null | null | lib/inspect/mfa.ex | ElixirWerkz/exlogger | 57e2da8c0883b5e83be00fe0764628f4b5f3bdf5 | [
"MIT"
] | null | null | null | defimpl ExLogger.Inspect, for: ExLogger.MFA do
alias ExLogger.MFA
import Kernel, except: [to_string: 1]
def to_string(MFA[module: m, function: f, arguments: a, properties: properties]) when is_list(a) do
"#{inspect m}.#{f}" <>
(Inspect.Algebra.surround_many("(", a, ")", :infinity, &inspect(&1, pretty... | 34.72 | 127 | 0.672811 |
85740c7eb4b9f18c383a61fe2d93209f7e1e78c9 | 237 | ex | Elixir | lib/blockchain_api_web/controllers/four_oh_four_controller.ex | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | lib/blockchain_api_web/controllers/four_oh_four_controller.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | lib/blockchain_api_web/controllers/four_oh_four_controller.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPIWeb.FourOhFourController do
use BlockchainAPIWeb, :controller
def index(conn, _params) do
conn
|> put_status(:not_found)
|> put_view(BlockchainAPIWeb.ErrorView)
|> render("404.json")
end
end
| 21.545455 | 50 | 0.725738 |
857411cd6cd9f5d0f7b2c1fda875604ebb440c50 | 838 | ex | Elixir | lib/sobelow/fingerprint.ex | vraravam/sobelow | 0c38479c12cc45e499896c78002913f4c1eb27d7 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/fingerprint.ex | vraravam/sobelow | 0c38479c12cc45e499896c78002913f4c1eb27d7 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/fingerprint.ex | vraravam/sobelow | 0c38479c12cc45e499896c78002913f4c1eb27d7 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow.Fingerprint do
@moduledoc false
use Agent
def start_link() do
Agent.start_link(fn -> {MapSet.new(), MapSet.new()} end, name: __MODULE__)
end
def value do
Agent.get(__MODULE__, & &1)
end
def new_skips do
Agent.get(__MODULE__, fn {total_set, ignore_set} ->
MapSet.diff... | 23.277778 | 92 | 0.684964 |
857418c1f60c330a155f677e9b05c28c2a2a48fb | 1,575 | exs | Elixir | mix.exs | akoutmos/unplug | da8a775e6a8232016d36cdfe1871c807e9e6eb01 | [
"MIT"
] | 26 | 2020-04-13T04:31:42.000Z | 2022-01-19T21:12:21.000Z | mix.exs | akoutmos/unplug | da8a775e6a8232016d36cdfe1871c807e9e6eb01 | [
"MIT"
] | null | null | null | mix.exs | akoutmos/unplug | da8a775e6a8232016d36cdfe1871c807e9e6eb01 | [
"MIT"
] | 1 | 2021-09-21T00:17:28.000Z | 2021-09-21T00:17:28.000Z | defmodule Unplug.MixProject do
use Mix.Project
def project do
[
app: :unplug,
version: "0.2.1",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
name: "Unplug",
source_url: "https://github.com/akoutmos/unplug",
homepage_url: "https://hex.pm/packages/unplug",
... | 25.819672 | 83 | 0.579683 |
85742012fafa0988ffc15231e983c1b81329fa09 | 604 | ex | Elixir | lib/mix/tasks/bonny.gen.dockerfile.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 227 | 2018-12-30T20:13:47.000Z | 2022-03-26T03:49:07.000Z | lib/mix/tasks/bonny.gen.dockerfile.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 104 | 2018-12-20T02:16:28.000Z | 2022-03-28T07:18:06.000Z | lib/mix/tasks/bonny.gen.dockerfile.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 24 | 2019-02-14T10:18:09.000Z | 2022-02-08T04:18:32.000Z | defmodule Mix.Tasks.Bonny.Gen.Dockerfile do
@moduledoc """
Generates a Dockerfile for this operator
"""
use Mix.Task
@switches [out: :string]
@default_opts [out: "Dockerfile"]
@aliases [o: :out]
@shortdoc "Generate operator Dockerfile"
@spec run([binary()]) :: nil | :ok
def run(args) do
{opts... | 21.571429 | 87 | 0.637417 |
857438f716444ba39dbfb1fcb1b0f808d157704c | 7,711 | ex | Elixir | lib/plausible_release.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | lib/plausible_release.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | lib/plausible_release.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | defmodule Plausible.Release do
use Plausible.Repo
@app :plausible
@start_apps [
:postgrex,
:ecto
]
def init_admin do
{admin_email, admin_user, admin_pwd} =
validate_admin(
{Application.get_env(:plausible, :admin_email),
Application.get_env(:plausible, :admin_user),
... | 29.208333 | 96 | 0.66243 |
85743e58d1dd295d59a377a5fe50d1809fdbeee2 | 199 | exs | Elixir | priv/repo/migrations/20160328154532_add_rating_price_to_bottle.exs | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160328154532_add_rating_price_to_bottle.exs | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160328154532_add_rating_price_to_bottle.exs | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | defmodule Cellar.Repo.Migrations.AddRatingPriceToBottle do
use Ecto.Migration
def change do
alter table(:bottles) do
add :rating, :integer
add :price, :integer
end
end
end
| 18.090909 | 58 | 0.698492 |
857478592e3c98504a0c61a18960b685cf2a3b72 | 12,561 | ex | Elixir | lib/ash/engine/runner.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/engine/runner.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/engine/runner.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Engine.Runner do
@moduledoc false
defstruct [
:engine_pid,
notified_of_complete?: false,
requests: [],
errors: [],
data: %{},
pid_info: %{},
dependencies: %{},
verbose?: false
]
alias Ash.Engine
alias Ash.Engine.{Request, RequestHandler}
alias Ash.Error.Framewo... | 28.809633 | 96 | 0.616671 |
85750315f0f6f17a216c57230601ee8d385ad986 | 994 | exs | Elixir | combo/phxexibee/config/config.exs | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | combo/phxexibee/config/config.exs | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | combo/phxexibee/config/config.exs | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"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.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :phxexibee, Phx... | 34.275862 | 87 | 0.769618 |
8575075c93d64ffd4b9ce7ed0ef645279e7fd96e | 1,759 | exs | Elixir | mix.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | mix.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | mix.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | defmodule Pos.MixProject do
use Mix.Project
def project do
[
app: :pos,
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(),
deps:... | 26.651515 | 84 | 0.57419 |
857524f0b77195398f7db673e7f91a5f45005ede | 570 | exs | Elixir | priv/ecto_repo/migrations/00000000000000_create_feature_flags_table.exs | sendle/fun_with_flags | c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1 | [
"MIT"
] | null | null | null | priv/ecto_repo/migrations/00000000000000_create_feature_flags_table.exs | sendle/fun_with_flags | c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1 | [
"MIT"
] | 1 | 2019-01-21T00:38:49.000Z | 2019-01-31T03:49:17.000Z | priv/ecto_repo/migrations/00000000000000_create_feature_flags_table.exs | sendle/fun_with_flags | c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1 | [
"MIT"
] | null | null | null | defmodule FunWithFlags.Dev.EctoRepo.Migrations.CreateFeatureFlagsTable do
use Ecto.Migration
def up do
create table(:fun_with_flags_toggles, primary_key: false) do
add :id, :bigserial, primary_key: true
add :flag_name, :string
add :gate_type, :string
add :target, :string
add :enab... | 23.75 | 73 | 0.684211 |
85756aaaabeb172d4dc71d666be84ca97a729feb | 479 | ex | Elixir | lib/app_api_web/v1/serializers/json/cart_game_item_serializer.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-07-05T15:13:12.000Z | 2021-12-16T08:58:56.000Z | lib/app_api_web/v1/serializers/json/cart_game_item_serializer.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | null | null | null | lib/app_api_web/v1/serializers/json/cart_game_item_serializer.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-08-13T21:37:00.000Z | 2021-11-10T04:08:26.000Z | defmodule AppApiWeb.V1.JSON.CartGameItemSerializer do
alias AppApi.{Cart, CartItem, Convert, Game, Repo}
alias AppApiWeb.V1.JSON.GameSerializer
require Logger
@moduledoc """
Serializes data into V1 JSON response format.
"""
use AppApiWeb.V1
def serialize(%CartItem{} = c) when not is_nil(c) do
c = c... | 21.772727 | 54 | 0.659708 |
8575851c581c88ab50f1f5dd0c3f75fc061f5b74 | 987 | ex | Elixir | lib/spotify/models/users/play_history.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/users/play_history.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/users/play_history.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | defmodule Spotify.Users.PlayHistory do
@moduledoc """
A Play History object.
[Spotify Docs](https://beta.developer.spotify.com/documentation/web-api/reference/object-model/#play-history-object)
"""
@behaviour Spotify.ObjectModel
alias Spotify.Users
alias Spotify.Tracks.TrackSimple
alias Spotify.Co... | 23.5 | 120 | 0.64539 |
857585930d25a001a11483b6e614ce99ae8aefdf | 2,058 | ex | Elixir | lib/wallaby/phantom.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | lib/wallaby/phantom.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | lib/wallaby/phantom.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Phantom do
use Supervisor
alias Wallaby.Phantom.Driver
@moduledoc false
@pool_name Wallaby.ServerPool
def start_link(opts\\[]) do
Supervisor.start_link(__MODULE__, :ok, opts)
end
def init(:ok) do
children = [
:poolboy.child_spec(@pool_name, poolboy_config(), []),
... | 24.5 | 101 | 0.678328 |
857586d14164d153228f250cd3b45de409f21fe5 | 380 | ex | Elixir | apps/interface/lib/interface_web/views/error_view.ex | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | apps/interface/lib/interface_web/views/error_view.ex | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | apps/interface/lib/interface_web/views/error_view.ex | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | defmodule InterfaceWeb.ErrorView do
use InterfaceWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_tem... | 21.111111 | 47 | 0.705263 |
8575910a2feb8db9cd60fa9b98921c6cec556217 | 1,402 | ex | Elixir | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/deserializer.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/deserializer.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/deserializer.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.Containers.Deserializer do
@moduledoc """
Helper functions for deserializing responses into models
"""
... | 35.948718 | 139 | 0.6398 |
8575d0a0fc8fe005c2032453a7ec89d17db451e5 | 2,726 | ex | Elixir | lib/plugin/videoroom/publisher_config.ex | lorantkurthy/elixir-janus-plugin-videoroom | 48af3e6bf0ed5dc085ffa0eb8cec33882919afca | [
"Apache-2.0"
] | 4 | 2020-08-17T17:11:12.000Z | 2021-12-04T09:20:00.000Z | lib/plugin/videoroom/publisher_config.ex | lorantkurthy/elixir-janus-plugin-videoroom | 48af3e6bf0ed5dc085ffa0eb8cec33882919afca | [
"Apache-2.0"
] | null | null | null | lib/plugin/videoroom/publisher_config.ex | lorantkurthy/elixir-janus-plugin-videoroom | 48af3e6bf0ed5dc085ffa0eb8cec33882919afca | [
"Apache-2.0"
] | 2 | 2020-11-06T18:44:22.000Z | 2020-11-30T07:34:58.000Z | defmodule Janus.Plugin.VideoRoom.PublisherConfig do
@moduledoc """
Struct with configuration of a publisher sent with `publish` and `configure` requests
Contains following fields:
- `:relay_audio?` - true|false, whether or not audio should be relayed; true by default
- `:relay_video?` - true|false, whether o... | 37.342466 | 112 | 0.667645 |
8576075ec810643a1e0dd0bc243f6c6527ff3aa6 | 480 | ex | Elixir | poolboy_app/lib/test.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | 1 | 2019-03-28T09:08:16.000Z | 2019-03-28T09:08:16.000Z | poolboy_app/lib/test.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | poolboy_app/lib/test.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | defmodule PoolboyApp.Test do
@timeout 60000
def start do
1..20
|> Enum.map(fn i -> async_call_square_root(i) end)
|> Enum.each(fn task -> await_and_inspect(task) end)
end
defp async_call_square_root(i) do
Task.async(fn ->
:poolboy.transaction(
:worker,
fn pid -> GenServer... | 22.857143 | 80 | 0.622917 |
85763b0d593082ff5b7dd7fa1f7c96fd283278b9 | 764 | ex | Elixir | examples/route_guide/lib/app.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | examples/route_guide/lib/app.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | examples/route_guide/lib/app.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | defmodule Routeguide.App do
use Application
@cert_path Path.expand("./tls/server1.pem", :code.priv_dir(:route_guide))
@key_path Path.expand("./tls/server1.key", :code.priv_dir(:route_guide))
def start(_type, _args) do
import Supervisor.Spec
children = [
supervisor(RouteGuide.Data, []),
su... | 26.344828 | 81 | 0.679319 |
85765976b5537709e209b63bed1d576675c56ed1 | 5,257 | ex | Elixir | lib/exq/worker/server.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | null | null | null | lib/exq/worker/server.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | null | null | null | lib/exq/worker/server.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | 3 | 2021-04-07T14:50:17.000Z | 2021-04-07T14:50:30.000Z | defmodule Exq.Worker.Server do
@moduledoc """
Worker process is responsible for the parsing and execution of a Job. It then
broadcasts results to Stats / Manager.
Currently uses the `terminate` callback to track job success/failure .
## Initialization:
* `job_serialized` - Full JSON payload of the Job.
... | 30.923529 | 139 | 0.647898 |
85769f10046a9929bf8bd8677313e9b28be34692 | 74 | ex | Elixir | lib/rondo/affordance.ex | exstruct/rondo | 8ec1a8754d594086065020bc45a801620fdda79d | [
"MIT"
] | 1 | 2016-08-09T21:45:21.000Z | 2016-08-09T21:45:21.000Z | lib/rondo/affordance.ex | exstruct/rondo | 8ec1a8754d594086065020bc45a801620fdda79d | [
"MIT"
] | null | null | null | lib/rondo/affordance.ex | exstruct/rondo | 8ec1a8754d594086065020bc45a801620fdda79d | [
"MIT"
] | null | null | null | defmodule Rondo.Affordance do
defstruct [:ref, :schema_id, :schema]
end
| 18.5 | 39 | 0.756757 |
8576d0127130ccd799e2777d8a51f6e558b410d4 | 208 | ex | Elixir | 03-chapter/02_geometry.ex | herminiotorres/elixir-in-action | 25db6f50ce4d2587d5a8e44a0362a3dd8981741c | [
"MIT"
] | null | null | null | 03-chapter/02_geometry.ex | herminiotorres/elixir-in-action | 25db6f50ce4d2587d5a8e44a0362a3dd8981741c | [
"MIT"
] | null | null | null | 03-chapter/02_geometry.ex | herminiotorres/elixir-in-action | 25db6f50ce4d2587d5a8e44a0362a3dd8981741c | [
"MIT"
] | null | null | null | # Multiclause function
defmodule Geometry do
@pi 3.14
def area({:rectangle, a, b}) do
a * b
end
def area({:square, a}) do
a * a
end
def area({:circle, r}) do
r * r * @pi
end
end
| 11.555556 | 33 | 0.552885 |
857717c847c6571e64414561069660c4b7df78bb | 1,890 | ex | Elixir | lib/cadet/jobs/autograder/result_store_worker.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | lib/cadet/jobs/autograder/result_store_worker.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | lib/cadet/jobs/autograder/result_store_worker.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | defmodule Cadet.Autograder.ResultStoreWorker do
@moduledoc """
This module writes results from the autograder to db. Separate worker is created with lower
concurrency on the assumption that autograding time >> db IO time so as to reduce db load.
"""
use Que.Worker, concurrency: 5
require Logger
import C... | 26.25 | 98 | 0.641799 |
85773992d470fecf4bac8846ed56a9bc7a14c700 | 1,428 | exs | Elixir | exercises/minesweeper/example.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | exercises/minesweeper/example.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | exercises/minesweeper/example.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | defmodule Minesweeper do
@doc """
Annotate empty spots next to mines with the number of mines next to them.
"""
@spec annotate([String.t]) :: [String.t]
def annotate([]), do: []
def annotate(board) do
h = length(board)
w = String.length(hd(board)) # Only 7-bit ASCII in the board, so this is safe
... | 31.733333 | 85 | 0.504202 |
85773bbd3dce997138c677722efa04241b3d4364 | 431 | ex | Elixir | lib/mix/tasks/fernet_sign.ex | populimited/fernetex | a5c3ce9a246946ba8e3f3c98b6ba457d470953eb | [
"MIT"
] | 7 | 2015-09-08T15:16:43.000Z | 2022-02-14T04:30:55.000Z | lib/mix/tasks/fernet_sign.ex | populimited/fernetex | a5c3ce9a246946ba8e3f3c98b6ba457d470953eb | [
"MIT"
] | 6 | 2016-04-04T20:42:35.000Z | 2022-03-10T18:46:53.000Z | lib/mix/tasks/fernet_sign.ex | populimited/fernetex | a5c3ce9a246946ba8e3f3c98b6ba457d470953eb | [
"MIT"
] | 6 | 2016-02-16T00:05:06.000Z | 2021-06-16T10:24:31.000Z | defmodule Mix.Tasks.Fernet.Sign do
@moduledoc """
Sign STDIN using the given key
mix fernet.sign key
"""
use Mix.Task
@shortdoc "Sign STDIN using fernet"
def run([key]) do
{:ok, _} = Application.ensure_all_started(:timex)
:stdio
|> IO.read(:all)
|> Fernet.generate(key: key)
|>... | 16.576923 | 53 | 0.61949 |
85775cc07a1155592b1fbf2a1ac66301efd06313 | 1,508 | exs | Elixir | test/db/rocksdb_test.exs | tyrchen/merkle_patricia_tree | 5af83bb1555e4b3b5836e731c069924022c4bce7 | [
"MIT"
] | 1 | 2019-01-07T00:13:14.000Z | 2019-01-07T00:13:14.000Z | test/db/rocksdb_test.exs | tyrchen/merkle_patricia_tree | 5af83bb1555e4b3b5836e731c069924022c4bce7 | [
"MIT"
] | null | null | null | test/db/rocksdb_test.exs | tyrchen/merkle_patricia_tree | 5af83bb1555e4b3b5836e731c069924022c4bce7 | [
"MIT"
] | 1 | 2020-03-07T08:55:36.000Z | 2020-03-07T08:55:36.000Z | defmodule MerklePatriciaTree.DB.RocksDBTest do
use ExUnit.Case, async: false
alias MerklePatriciaTree.DB
alias MerklePatriciaTree.DB.RocksDB
test "init creates an rocks table" do
db_name = "/tmp/db#{MerklePatriciaTree.Test.random_string(20)}"
{_, db_ref} = RocksDB.init(db_name)
RocksDB.close(db_re... | 31.416667 | 90 | 0.653183 |
8577af0262a066f52b69ffaf2a95bd4c47bccb9e | 1,472 | ex | Elixir | lib/elixir_leaderboard/entry.ex | payomdousti/elixir_leaderboard | af41620bb6cc44c05a121586c26b81ca04a4b598 | [
"Apache-2.0"
] | 2 | 2019-03-02T00:38:03.000Z | 2020-05-22T01:53:23.000Z | lib/elixir_leaderboard/entry.ex | payomdousti/elixir_leaderboard | af41620bb6cc44c05a121586c26b81ca04a4b598 | [
"Apache-2.0"
] | null | null | null | lib/elixir_leaderboard/entry.ex | payomdousti/elixir_leaderboard | af41620bb6cc44c05a121586c26b81ca04a4b598 | [
"Apache-2.0"
] | 1 | 2019-02-28T00:08:52.000Z | 2019-02-28T00:08:52.000Z | defmodule ElixirLeaderboard.Entry do
@moduledoc """
Entry is the tuple-based structure that you send into the leaderboard.
"""
@typedoc """
Use this format when sending your entries to a leaderboard. See below for
breakdowns of each type.
"""
@type t :: {key, payload}
@type key :: {score, id} | {sco... | 27.259259 | 80 | 0.641984 |
8577c894be506d691cf7ea8c7d9aa2d4091d8e2e | 1,826 | ex | Elixir | lib/couch_gears/database/metadata.ex | Zatvobor/couch_gears | 5ebfdec4d79fb3734d7d2cb36e495b6e408eac21 | [
"Apache-2.0"
] | 1 | 2015-09-29T03:07:04.000Z | 2015-09-29T03:07:04.000Z | lib/couch_gears/database/metadata.ex | Zatvobor/couch_gears | 5ebfdec4d79fb3734d7d2cb36e495b6e408eac21 | [
"Apache-2.0"
] | null | null | null | lib/couch_gears/database/metadata.ex | Zatvobor/couch_gears | 5ebfdec4d79fb3734d7d2cb36e495b6e408eac21 | [
"Apache-2.0"
] | null | null | null | defmodule CouchGears.Database.Metadata do
@moduledoc """
This module provides ability to get a CouchDB related records for particular `db` and `doc_id` accordingly.
"""
alias CouchGears.Records, as: Records
@doc """
Returns a `CouchGears.Records.Db` record or `:no_db_file` instead.
"""
def to_db(nam... | 26.463768 | 109 | 0.590361 |
8577d0c269826e636d21855bb7436a06ab518643 | 1,429 | exs | Elixir | mix.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 16 | 2016-05-26T10:11:57.000Z | 2021-01-08T15:09:19.000Z | mix.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 9 | 2016-08-11T00:48:27.000Z | 2020-09-16T22:10:07.000Z | mix.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 11 | 2016-08-10T08:13:36.000Z | 2021-04-03T10:20:11.000Z | defmodule Exdns.Mixfile do
use Mix.Project
def project do
[app: :exdns,
version: "0.0.2",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps()]
end
# Configuration for the OTP ... | 24.220339 | 103 | 0.572428 |
8577d9563f64a4a29e0a275d2eecf876f0f89aec | 63,602 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/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... | 42.57162 | 196 | 0.619336 |
8577dbc902169c75234a8a7dbac4b9664955267b | 1,613 | ex | Elixir | lib/mixduty.ex | bradediger/mixduty | 7dd18dc4b7166a362a00cba7da038fe337cc5923 | [
"MIT"
] | null | null | null | lib/mixduty.ex | bradediger/mixduty | 7dd18dc4b7166a362a00cba7da038fe337cc5923 | [
"MIT"
] | null | null | null | lib/mixduty.ex | bradediger/mixduty | 7dd18dc4b7166a362a00cba7da038fe337cc5923 | [
"MIT"
] | null | null | null | defmodule Mixduty do
use HTTPoison.Base
require Logger
alias Mixduty.Client
alias Poison, as: JSON
@endpoint "https://api.pagerduty.com/"
def get(path, client, params \\ [], options \\ []) do
url = @endpoint <> path <> "?" <> URI.encode_query(params)
raw_request(:get, url, client, options)
end
... | 26.016129 | 103 | 0.644141 |
857821e8df0f028a09122b24950f2e8850aac1da | 1,704 | ex | Elixir | web/web.ex | albertchan/phoenix_admin | 74a9bbb01d7574db887b19a13f2934b7372f7d20 | [
"MIT"
] | 1 | 2018-03-07T17:21:58.000Z | 2018-03-07T17:21:58.000Z | web/web.ex | albertchan/phoenix_admin | 74a9bbb01d7574db887b19a13f2934b7372f7d20 | [
"MIT"
] | null | null | null | web/web.ex | albertchan/phoenix_admin | 74a9bbb01d7574db887b19a13f2934b7372f7d20 | [
"MIT"
] | null | null | null | defmodule PhoenixAdmin.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use PhoenixAdmin.Web, :controller
use PhoenixAdmin.Web, :view
The definitions below will be executed for every view,
controller, etc, s... | 20.53012 | 88 | 0.678404 |
8578299c91bb6707c174757031fe71e416ab4872 | 3,046 | ex | Elixir | lib/exist/oauth.ex | jmnsf/exist_extras | 1cb8a28908e1f0b35ba923be4471473bd7307238 | [
"MIT"
] | 3 | 2017-08-02T13:06:31.000Z | 2020-01-20T19:53:30.000Z | lib/exist/oauth.ex | jmnsf/exist_extras | 1cb8a28908e1f0b35ba923be4471473bd7307238 | [
"MIT"
] | null | null | null | lib/exist/oauth.ex | jmnsf/exist_extras | 1cb8a28908e1f0b35ba923be4471473bd7307238 | [
"MIT"
] | null | null | null | defmodule ExistExtras.Exist.OAuth do
@moduledoc """
Functions for dealing with Exist's OAuth flow. Tokens are persisted in a Redis
DB.
"""
require Logger
@doc """
Uses the given code to authorize the current User with Exist. Saves the
received Access & Refresh Tokens to Redis.
"""
def authorize(us... | 27.441441 | 91 | 0.66612 |
857846a721f9fedffa9a6b9db0e15bda34b29fa9 | 9,706 | ex | Elixir | lib/pa_ess/http_updater.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | lib/pa_ess/http_updater.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | lib/pa_ess/http_updater.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | defmodule PaEss.HttpUpdater do
use Bitwise
@moduledoc """
Fetches from the MessageQueue messages from the various signs, and serializes and POSTs
them to the PA/ESS head-end server.
"""
@type t :: %{
http_poster: module(),
queue_mod: module(),
uid: integer()
}
@type... | 28.973134 | 101 | 0.57212 |
857876e8544a231c8944bd680921dcd38176ebd3 | 1,571 | ex | Elixir | lib/ex_riak/secondary_index/result.ex | activeprospect/ex_riak | f0f084c3fe9bbf64eca70f0fde455c39e9c67ed8 | [
"MIT"
] | null | null | null | lib/ex_riak/secondary_index/result.ex | activeprospect/ex_riak | f0f084c3fe9bbf64eca70f0fde455c39e9c67ed8 | [
"MIT"
] | null | null | null | lib/ex_riak/secondary_index/result.ex | activeprospect/ex_riak | f0f084c3fe9bbf64eca70f0fde455c39e9c67ed8 | [
"MIT"
] | null | null | null | defmodule ExRiak.SecondaryIndex.Result do
@moduledoc """
Struct representing a secondary index result.
This is the struct version of the `:index_results_v1` record.
See #{ExRiak.Docs.erlang_doc_link(:riakc_pb_socket)}.
"""
import Record
alias ExRiak.SecondaryIndex
@record_tag :index_results_v1
@... | 29.641509 | 85 | 0.674729 |
8578815054fa07b96c3fd8ef445b03faa5a9bac9 | 63 | ex | Elixir | backend/web/views/layout_view.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 14 | 2018-01-12T08:47:00.000Z | 2020-06-18T04:59:27.000Z | backend/web/views/layout_view.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 1 | 2017-03-17T13:15:47.000Z | 2017-03-17T13:15:47.000Z | backend/web/views/layout_view.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 4 | 2018-07-31T12:29:15.000Z | 2021-01-05T19:22:49.000Z | defmodule EmojiMap.LayoutView do
use EmojiMap.Web, :view
end
| 15.75 | 32 | 0.793651 |
8578864f0cc4b43c44a3aa4ba4a6c9688fb28351 | 2,464 | exs | Elixir | mix.exs | devoutsalsa/lib_lat_lon | a9fef01e67ad92f1b5ff042173f6986ad6f5fd48 | [
"MIT"
] | null | null | null | mix.exs | devoutsalsa/lib_lat_lon | a9fef01e67ad92f1b5ff042173f6986ad6f5fd48 | [
"MIT"
] | null | null | null | mix.exs | devoutsalsa/lib_lat_lon | a9fef01e67ad92f1b5ff042173f6986ad6f5fd48 | [
"MIT"
] | null | null | null | defmodule LibLatLon.MixProject do
use Mix.Project
@app :lib_lat_lon
@app_name "LibLatLon"
@version "0.4.1"
def project do
[
app: @app,
name: @app_name,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
description: description(),
docs: d... | 24.156863 | 88 | 0.542614 |
8578a61d35632d8e4c0b9ba60343355f1aa701f4 | 2,675 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__text_segment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__text_segment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__text_segment.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 ... | 37.152778 | 206 | 0.748037 |
857919744656f6afec609e1cba78e3fcb702e7e8 | 126 | ex | Elixir | examples/hello_world/rpc/hello_world/hello_world_handler.ex | wojtekmach/twirp | 3f4f6858d4cb3558f3d47f28d8bac1984fa29105 | [
"Apache-2.0"
] | 2 | 2019-08-23T17:26:30.000Z | 2021-01-30T08:08:36.000Z | examples/hello_world/rpc/hello_world/hello_world_handler.ex | wojtekmach/twirp | 3f4f6858d4cb3558f3d47f28d8bac1984fa29105 | [
"Apache-2.0"
] | 10 | 2019-11-04T12:42:59.000Z | 2020-05-28T11:06:19.000Z | examples/hello_world/rpc/hello_world/hello_world_handler.ex | wojtekmach/twirp | 3f4f6858d4cb3558f3d47f28d8bac1984fa29105 | [
"Apache-2.0"
] | null | null | null | defmodule HelloWorld.RPC.HelloWorldHandler do
def handle_hello(%{name: name}) do
%{message: "Hello #{name}!"}
end
end
| 21 | 45 | 0.698413 |
857928af12db5e4d5aa73b361d63c3c7277b7210 | 1,956 | ex | Elixir | apps/kv_server/lib/command.ex | rockerBOO/kv_umbrella | 1dbf121b48022c0aaaf1b75d29085d9d2130451d | [
"MIT"
] | null | null | null | apps/kv_server/lib/command.ex | rockerBOO/kv_umbrella | 1dbf121b48022c0aaaf1b75d29085d9d2130451d | [
"MIT"
] | null | null | null | apps/kv_server/lib/command.ex | rockerBOO/kv_umbrella | 1dbf121b48022c0aaaf1b75d29085d9d2130451d | [
"MIT"
] | null | null | null | defmodule KVServer.Command do
@doc ~S"""
Parses the given `line` into a command.
## Examples
iex> KVServer.Command.parse "CREATE shopping\r\n"
{:ok, {:create, "shopping"}}
iex> KVServer.Command.parse "CREATE shopping \r\n"
{:ok, {:create, "shopping"}}
iex> KVServer.Command.parse "PUT shopping ... | 24.148148 | 70 | 0.591002 |
85793a9a26686340db27603292d393b62d970a32 | 1,831 | ex | Elixir | lib/slack.ex | zvkemp/elixir-bot-server | 0db6b6ce57ddccaac980bf659eb2d540a077de38 | [
"MIT"
] | 8 | 2016-03-15T17:15:26.000Z | 2021-12-11T11:21:53.000Z | lib/slack.ex | zvkemp/elixir-bot-server | 0db6b6ce57ddccaac980bf659eb2d540a077de38 | [
"MIT"
] | 1 | 2017-10-15T20:13:15.000Z | 2017-10-15T20:13:15.000Z | lib/slack.ex | zvkemp/elixir-bot-server | 0db6b6ce57ddccaac980bf659eb2d540a077de38 | [
"MIT"
] | null | null | null | defmodule Slack do
use Application
def start(_type, _args) do
Slack.Supervisor.start_link()
end
def default_channel do
Application.get_env(:slack, :default_channel)
end
end
defmodule Slack.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, nil, name: __MODULE_... | 24.413333 | 89 | 0.676679 |
857954c25c466f4eec05ede78161433fe3ac82a7 | 5,943 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/training_options.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_options.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_options.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... | 55.542056 | 610 | 0.72741 |
85798be412daa0b376e60f0cce6eff6f213de6f8 | 954 | ex | Elixir | lib/chat.ex | ankurp/chat | a9fced84898c9d47a17ea14fda6ed78e57ef04e8 | [
"MIT"
] | 212 | 2016-02-13T16:29:29.000Z | 2021-11-14T18:32:43.000Z | lib/chat.ex | ankurp/chat | a9fced84898c9d47a17ea14fda6ed78e57ef04e8 | [
"MIT"
] | 1 | 2016-10-19T20:56:27.000Z | 2016-12-07T01:47:10.000Z | lib/chat.ex | ankurp/chat | a9fced84898c9d47a17ea14fda6ed78e57ef04e8 | [
"MIT"
] | 46 | 2016-02-15T21:57:12.000Z | 2021-07-06T21:53:37.000Z | defmodule Chat do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Chat.Endpoin... | 30.774194 | 71 | 0.704403 |
8579a1487a30a769af8d007cd14607eca8ed410f | 1,091 | ex | Elixir | lib/kitto/time.ex | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 1,047 | 2016-05-11T16:09:29.000Z | 2022-03-29T17:17:26.000Z | lib/kitto/time.ex | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 132 | 2016-10-28T19:44:26.000Z | 2020-12-06T21:16:53.000Z | lib/kitto/time.ex | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 70 | 2016-10-26T00:11:05.000Z | 2022-01-02T21:43:06.000Z | defmodule Kitto.Time do
@moduledoc """
This module defines functions to handle time conversions.
"""
@doc """
Return the number of milliseconds for the given arguments.
When a tuple is passed the first element is interpreted as the number to be converted
in milliseconds and the second element as the tim... | 33.060606 | 87 | 0.67461 |
8579ba07adc7f2411c56fc9fe2a59684ff5a1789 | 1,948 | exs | Elixir | mix.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | mix.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | mix.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | defmodule Badges.MixProject do
use Mix.Project
def project do
[
app: :badges,
version: "0.5.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 28.231884 | 84 | 0.571869 |
8579fec07d9e6f13489dd49e227edefb83d4f7a4 | 14,398 | exs | Elixir | test/hm_crypto/container_test.exs | highmobility/hmkit-crypto-elixir | 5d263f58747394d5c420a465be8c66ceac6e2367 | [
"MIT"
] | 1 | 2019-11-03T12:53:10.000Z | 2019-11-03T12:53:10.000Z | test/hm_crypto/container_test.exs | highmobility/hm-crypto-elixir | 5d263f58747394d5c420a465be8c66ceac6e2367 | [
"MIT"
] | 2 | 2018-11-17T14:30:19.000Z | 2019-12-09T12:55:51.000Z | test/hm_crypto/container_test.exs | highmobility/hm-crypto-elixir | 5d263f58747394d5c420a465be8c66ceac6e2367 | [
"MIT"
] | null | null | null | defmodule HmCrypto.ContainerTest do
use ExUnit.Case
use PropCheck
# doctest HmCrypto.Container
alias HmCrypto.{Container, Crypto, EncryptedContainer, ErrorContainer}
@target_serial <<0xFF, 151, 197, 254, 242, 65, 186, 175, 0x00>>
@serial_number <<93, 151, 197, 254, 242, 65, 186, 175, 170>>
@nonce <<0x00,... | 34.280952 | 228 | 0.587026 |
857a08f6e6d2e0ae9215e12399f35c6fb779eaac | 1,615 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/filter_uppercase_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/filter_uppercase_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics/lib/google_api/analytics/v3/model/filter_uppercase_details.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.3 | 136 | 0.726316 |
857a10c49df888094749030098215ced098e8747 | 251 | ex | Elixir | lib/glimesh.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 1 | 2020-08-02T00:12:28.000Z | 2020-08-02T00:12:28.000Z | lib/glimesh.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | lib/glimesh.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | defmodule Glimesh do
@moduledoc """
Glimesh keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.1 | 66 | 0.752988 |
857a5ccd106e2416b43772bfef7a6af1ca19f6d1 | 1,342 | ex | Elixir | clients/service_control/lib/google_api/service_control/v2/model/report_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/service_control/lib/google_api/service_control/v2/model/report_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_control/lib/google_api/service_control/v2/model/report_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 31.952381 | 116 | 0.765276 |
857a818bce04164d9385e4a4ef462724923f579b | 195 | ex | Elixir | apps/ello_v3/lib/ello_v3/resolvers/search_categories.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_v3/lib/ello_v3/resolvers/search_categories.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_v3/lib/ello_v3/resolvers/search_categories.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.V3.Resolvers.SearchCategories do
alias Ello.Core.{Discovery}
def call(_parent, args, _resolver) do
{:ok, %{
categories: Discovery.categories(args),
}}
end
end
| 19.5 | 47 | 0.687179 |
857aba6ccb88fcfb150d7cf13eaf2067dfe63594 | 3,146 | ex | Elixir | lib/ex_aws.ex | JustinTangg/ex_aws | da7bbb933c6c7b4f632cd2a0895630470bd6f7e1 | [
"MIT"
] | null | null | null | lib/ex_aws.ex | JustinTangg/ex_aws | da7bbb933c6c7b4f632cd2a0895630470bd6f7e1 | [
"MIT"
] | null | null | null | lib/ex_aws.ex | JustinTangg/ex_aws | da7bbb933c6c7b4f632cd2a0895630470bd6f7e1 | [
"MIT"
] | null | null | null | defmodule ExAwsForked do
@moduledoc """
Module for making and processing AWS request
"""
use Application
@behaviour ExAws.Behaviour
@doc """
Perform an AWS request
First build an operation from one of the services, and then pass it to this
function to perform it.
If you want to build an operati... | 26.436975 | 91 | 0.668786 |
857acdb33b585ab4fa0c81f12f91194cbad1f19a | 2,592 | ex | Elixir | apps/imposc/lib/dynamics/forcing_phase.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc/lib/dynamics/forcing_phase.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc/lib/dynamics/forcing_phase.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | defmodule ForcingPhase do
@moduledoc """
Functions for converting between time and phase modulo a forcing frequency.
"""
@doc """
Returns the fractional part of a number()ing point number
"""
@spec frac_part(number()) :: number()
def frac_part(x) do
x - trunc(x)
end
@doc """
Returns the rem... | 24.685714 | 120 | 0.604938 |
857ae19f4b07dac746242d7d9e6b58bf48342369 | 2,659 | ex | Elixir | lib/bitcoin/protocol/messages/get_blocks.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | lib/bitcoin/protocol/messages/get_blocks.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 2 | 2017-09-07T13:58:57.000Z | 2018-01-13T10:38:07.000Z | lib/bitcoin/protocol/messages/get_blocks.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.Protocol.Messages.GetBlocks do
@moduledoc """
Return an inv packet containing the list of blocks starting right after the last known hash in the block locator
object, up to hash_stop or 500 blocks, whichever comes first.
The locator hashes are processed by a node in the order as they a... | 40.287879 | 182 | 0.708161 |
857ae1cadde0bef67db21396495441cb28f57ecc | 2,320 | exs | Elixir | test/unit/reaper/decoder/csv_test.exs | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | null | null | null | test/unit/reaper/decoder/csv_test.exs | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | null | null | null | test/unit/reaper/decoder/csv_test.exs | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.Decoder.CsvTest do
use ExUnit.Case
use Placebo
alias Reaper.Decoder
alias SmartCity.TestDataGenerator, as: TDG
@filename "#{__MODULE__}_temp_file"
setup do
on_exit(fn ->
File.rm(@filename)
end)
:ok
end
describe "decode/2" do
test "discards CSV headers" do
... | 27.951807 | 101 | 0.553448 |
857ae4a905affa9072c1929821df8768118c8c90 | 870 | exs | Elixir | test/mdns_lite/responder_test.exs | m13m/mdns_lite | a49529e6444b854ca7b55091b3137281fd1cdb0c | [
"Apache-2.0"
] | null | null | null | test/mdns_lite/responder_test.exs | m13m/mdns_lite | a49529e6444b854ca7b55091b3137281fd1cdb0c | [
"Apache-2.0"
] | null | null | null | test/mdns_lite/responder_test.exs | m13m/mdns_lite | a49529e6444b854ca7b55091b3137281fd1cdb0c | [
"Apache-2.0"
] | null | null | null | defmodule MdnsLite.ResponderTest do
use ExUnit.Case, async: false
alias MdnsLite.{Responder, ResponderSupervisor}
test "can refresh" do
{:ok, responder} = ResponderSupervisor.start_child({127, 1, 1, 6})
some_service = %{
name: "My Service",
txt_payload: [""],
port: 1234,
priorit... | 24.166667 | 95 | 0.670115 |
857af9d98316a920d5294a1fc4674c3a11251a6d | 6,307 | ex | Elixir | lib/tlc59116/led_string.ex | nerves-build/tlc59116 | 6a6a097d1baef701b6c5473a971fc1482a99abcc | [
"MIT"
] | null | null | null | lib/tlc59116/led_string.ex | nerves-build/tlc59116 | 6a6a097d1baef701b6c5473a971fc1482a99abcc | [
"MIT"
] | null | null | null | lib/tlc59116/led_string.ex | nerves-build/tlc59116 | 6a6a097d1baef701b6c5473a971fc1482a99abcc | [
"MIT"
] | null | null | null | defmodule Tlc59116.LedString do
defmodule State do
defstruct leds: [],
ref: nil,
addr: nil,
initialized: false,
last_draw: nil,
start_time: nil
end
use GenServer
require Logger
require Integer
@i2c_handler Application.get_env(:tlc5... | 28.931193 | 88 | 0.576661 |
857b2fbb23428595c0be96faa1ab91290c343691 | 428 | ex | Elixir | services/fc_identity/lib/fc_identity/commands/delete_user.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_identity/lib/fc_identity/commands/delete_user.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_identity/lib/fc_identity/commands/delete_user.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCIdentity.DeleteUser do
use TypedStruct
use Vex.Struct
typedstruct do
field :request_id, String.t()
field :requester_id, String.t()
field :requester_type, String.t()
field :requester_role, String.t()
field :client_id, String.t()
field :client_type, String.t()
field :account... | 22.526316 | 48 | 0.689252 |
857b7624912e01a3e664d696bb134ecc75421c41 | 562 | ex | Elixir | lib/metar_map/display.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | lib/metar_map/display.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | 2 | 2022-02-19T17:09:09.000Z | 2022-02-19T17:10:29.000Z | lib/metar_map/display.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | defmodule MetarMap.Display do
@moduledoc """
Configures and renders LEDs.
This is a wrapper around Blinkchain, so that we can use mock LEDs in the host environment where Blinkchain isn't available.
"""
@behaviour MetarMap.Display.Adapter
def set_pixel(pixel, color) do
adapter().set_pixel(pixel, color... | 21.615385 | 125 | 0.729537 |
857bc92c6892c48945a7b0b40bf06da981fbd3e3 | 6,889 | ex | Elixir | lib/layout/grid.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/layout/grid.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/layout/grid.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | defmodule FloUI.Grid do
@moduledoc """
DEPRECATED - use SnapFramework layouts instead.
"""
# @moduledoc """
# ## Usage in SnapFramework
# Render this with children passed to it to automatically lay the children out in the grid.
# The children must be given width and height styles for it to work. Inspired... | 27.229249 | 132 | 0.537088 |
857bce6077a3cad9690e4e783c86688301fd9c0e | 114 | exs | Elixir | test/metal_test.exs | ponyatov/metalex | 0214ad858c79b374207dbc3350e40b29ee819feb | [
"MIT"
] | null | null | null | test/metal_test.exs | ponyatov/metalex | 0214ad858c79b374207dbc3350e40b29ee819feb | [
"MIT"
] | null | null | null | test/metal_test.exs | ponyatov/metalex | 0214ad858c79b374207dbc3350e40b29ee819feb | [
"MIT"
] | null | null | null | defmodule MetalTest do
use ExUnit.Case
doctest MetaL
test "run" do
assert MetaL.run() == :ok
end
end
| 12.666667 | 29 | 0.666667 |
857bd3f905581c55c652fc359524a46099d59013 | 98 | ex | Elixir | lib/app/repo.ex | vsyrovat/trending-repos | b406d205fb5fd79a9207d14a5b849924e6306e07 | [
"MIT"
] | 7 | 2021-02-25T09:51:25.000Z | 2022-03-09T02:01:04.000Z | lib/app/repo.ex | vsyrovat/trending-repos | b406d205fb5fd79a9207d14a5b849924e6306e07 | [
"MIT"
] | 86 | 2020-01-24T14:53:27.000Z | 2021-05-18T19:16:30.000Z | lib/app/repo.ex | wasi0013/tbud | 19b3931f758cd5c923296a7f64ffc74d320e2243 | [
"MIT"
] | 2 | 2021-10-04T16:58:50.000Z | 2022-03-28T20:47:11.000Z | defmodule App.Repo do
use Ecto.Repo,
otp_app: :app,
adapter: Ecto.Adapters.Postgres
end
| 16.333333 | 35 | 0.704082 |
857be46f4673c09ce5f7a48fa8711099403551e6 | 8,130 | ex | Elixir | lib/ielixir/sandbox.ex | Ljzn/IElixir | af10a9e412823e6b0a2bb073667ee9c8cd6d3197 | [
"Apache-2.0"
] | null | null | null | lib/ielixir/sandbox.ex | Ljzn/IElixir | af10a9e412823e6b0a2bb073667ee9c8cd6d3197 | [
"Apache-2.0"
] | null | null | null | lib/ielixir/sandbox.ex | Ljzn/IElixir | af10a9e412823e6b0a2bb073667ee9c8cd6d3197 | [
"Apache-2.0"
] | null | null | null | defmodule IElixir.Sandbox do
@moduledoc """
This is module responsible for running user's code.
"""
@typedoc "Yes or no atoms"
@type yes_or_no :: :yes | :no
@typedoc "Execution response"
@type execution_response :: {
status :: :ok,
result :: :"this is raw html" | :"do not show this result in outp... | 31.389961 | 154 | 0.624846 |
857bf4a2382b7e83e0c5dd0db524724ba29ff890 | 1,636 | ex | Elixir | lib/absinthe/phase/document/validation/lone_anonymous_operation.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/phase/document/validation/lone_anonymous_operation.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/phase/document/validation/lone_anonymous_operation.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Phase.Document.Validation.LoneAnonymousOperation do
@moduledoc false
# Validates document to ensure that only one operation is provided without
# a name.
alias Absinthe.{Blueprint, Phase}
use Absinthe.Phase
use Absinthe.Phase.Validation
@doc """
Run the validation.
"""
@spec r... | 25.169231 | 89 | 0.669927 |
857bf65b484d98d0ab4e54fd27fc30e47371ca1b | 2,463 | ex | Elixir | clients/plus/lib/google_api/plus/v1/connection.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/connection.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/connection.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... | 28.639535 | 121 | 0.709298 |
857c4333229ca3ab985bd5870ff1cb6cc6bcffae | 1,806 | exs | Elixir | getting-started/config/dev.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 274 | 2017-08-25T06:39:51.000Z | 2022-03-15T21:03:27.000Z | getting-started/config/dev.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 15 | 2017-10-03T17:05:48.000Z | 2021-11-23T00:33:23.000Z | getting-started/config/dev.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 42 | 2017-08-28T20:08:47.000Z | 2022-01-18T07:51:02.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :getting_started_elixir, GettingStartedElixirWeb... | 36.12 | 170 | 0.714839 |
857c50d27af4a72489e5c00a3df56c127061d731 | 1,792 | ex | Elixir | clients/games/lib/google_api/games/v1/model/room_auto_match_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/room_auto_match_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room_auto_match_status.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 ... | 35.84 | 182 | 0.737723 |
857c8fbfbca71a6473c2e14645331446f990833c | 5,693 | ex | Elixir | lib/ecto/adapters/riak_kv.ex | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | 3 | 2016-07-28T14:26:38.000Z | 2017-10-24T14:14:37.000Z | lib/ecto/adapters/riak_kv.ex | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/riak_kv.ex | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.RiakKV do
@moduledoc """
Adapter module for Riak (KV).
"""
# require Logger
# @behaviour Ecto.Adapter
# defmacro __before_compile__(_env) do
# :ok
# end
# def ensure_all_started(_, _options) do
# {:ok, []}
# end
# def child_spec(_repo, options) do
# Ecto.Riak... | 30.607527 | 105 | 0.538029 |
857c9385af95672c870c3b076cec34d1bf0113f6 | 1,135 | ex | Elixir | lib/ttr_core/board/router.ex | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 6 | 2018-09-23T21:04:50.000Z | 2021-03-13T02:56:23.000Z | lib/ttr_core/board/router.ex | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 23 | 2018-08-24T17:09:18.000Z | 2021-08-02T12:15:23.000Z | lib/ttr_core/board/router.ex | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 1 | 2018-08-24T16:59:45.000Z | 2018-08-24T16:59:45.000Z | defmodule TtrCore.Board.Router do
@moduledoc false
alias TtrCore.Board.Route
defmacro __using__(_opts) do
quote do
import unquote(__MODULE__)
Module.register_attribute __MODULE__, :routes, accumulate: true, persist: true
@before_compile unquote(__MODULE__)
end
end
defmacro defrout... | 27.02381 | 84 | 0.668722 |
857c96e0b7e574ddd1e254df7ba94bc6e0fc93f8 | 401 | ex | Elixir | lib/ex_pix_brcode/payments/models/dynamic_pix_payment_with_due_date.ex | renanlage/ex-pix-brcode | 93f31ab39c11eb7cc38a369a5c3f4732cce6f1ac | [
"Apache-2.0"
] | null | null | null | lib/ex_pix_brcode/payments/models/dynamic_pix_payment_with_due_date.ex | renanlage/ex-pix-brcode | 93f31ab39c11eb7cc38a369a5c3f4732cce6f1ac | [
"Apache-2.0"
] | null | null | null | lib/ex_pix_brcode/payments/models/dynamic_pix_payment_with_due_date.ex | renanlage/ex-pix-brcode | 93f31ab39c11eb7cc38a369a5c3f4732cce6f1ac | [
"Apache-2.0"
] | null | null | null | defmodule ExPixBRCode.Payments.Models.DynamicPixPaymentWithDueDate do
@moduledoc """
A dynamic Pix payment with due date.
This has extra complexity when dealing with interests and due dates.
"""
use ExPixBRCode.ValueObject
embedded_schema do
field :revisao, :integer
end
@doc false
def changese... | 20.05 | 70 | 0.715711 |
857cab5a82232d63993bb6eb1efc4d1d86650e4d | 959 | ex | Elixir | Phoenix_Sockets/example1/lib/example1/application.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | Phoenix_Sockets/example1/lib/example1/application.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | null | null | null | Phoenix_Sockets/example1/lib/example1/application.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | defmodule Example1.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the a... | 31.966667 | 86 | 0.722628 |
857cb180fed7eb0ab832029c9ea9ed11a1cef219 | 478 | exs | Elixir | config/config.exs | fuelen/phone_verification | 7b053c0ceca1c64d9783e49f0670fa540b763ac3 | [
"Apache-2.0"
] | 6 | 2018-10-25T16:29:38.000Z | 2021-06-24T00:30:42.000Z | config/config.exs | fuelen/phone_verification | 7b053c0ceca1c64d9783e49f0670fa540b763ac3 | [
"Apache-2.0"
] | 15 | 2019-05-09T12:04:17.000Z | 2022-03-24T03:16:11.000Z | config/config.exs | fuelen/phone_verification | 7b053c0ceca1c64d9783e49f0670fa540b763ac3 | [
"Apache-2.0"
] | 3 | 2019-08-02T01:31:14.000Z | 2022-03-31T09:37:00.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :phone_verification,
provider: PhoneVerification.Provider.Authy,
default: [locale: :en, code_length: 4, via: :sms]
config :phone_verification, PhoneVerification.Provider.... | 34.142857 | 70 | 0.73431 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.