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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1abe817c3e56fc95d582583204fdae72d14e8dd4 | 1,836 | ex | Elixir | apps/eth_blockchain/lib/eth_blockchain/application.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/eth_blockchain/lib/eth_blockchain/application.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/eth_blockchain/lib/eth_blockchain/application.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 34 | 88 | 0.735294 |
1abe833859a5f557f0dc89a4c2d9b2588fc98bd2 | 1,281 | exs | Elixir | test/acceptance/ast/html/permissive_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/html/permissive_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/html/permissive_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Ast.Html.PermissiveTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1]
@verbatim %{meta: %{verbatim: true}}
describe "some nesting" do
test "simple case" do
markdown = "<div>\ncontent\n </div>"
ast = [{"div", [], ["content"], @verbatim}]
... | 31.243902 | 101 | 0.546448 |
1abe8a72540e607504ef15e5690eda36083a16d2 | 17,169 | exs | Elixir | test/unit/compaction_test.exs | rustra/jsonld-ex | 4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc | [
"MIT"
] | 12 | 2020-06-18T18:23:34.000Z | 2022-01-05T15:00:09.000Z | test/unit/compaction_test.exs | rustra/jsonld-ex | 4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc | [
"MIT"
] | 5 | 2020-06-16T16:18:14.000Z | 2021-08-19T20:23:03.000Z | test/unit/compaction_test.exs | rustra/jsonld-ex | 4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc | [
"MIT"
] | 6 | 2020-06-17T22:25:51.000Z | 2021-08-19T19:55:49.000Z | defmodule JSON.LD.CompactionTest do
use ExUnit.Case, async: false
alias RDF.NS.{RDFS, XSD}
test "Flattened form of a JSON-LD document (EXAMPLES 57-59 of https://www.w3.org/TR/json-ld/#compacted-document-form)" do
input =
Jason.decode!("""
[
{
"http://xmlns.com/foaf/0.1/name": [... | 28.807047 | 124 | 0.392044 |
1abe92e4ae374f1e8dedb07ff25c71901539e994 | 5,079 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/tzdata/lib/tzdata/far_future_dynamic_periods.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/tzdata/lib/tzdata/far_future_dynamic_periods.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/tzdata/lib/tzdata/far_future_dynamic_periods.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule Tzdata.FarFutureDynamicPeriods do
# This module is for calculating periods far into the future
# for time zones with DST. It is assumed that there are two
# rules per year: one for going off of DST and one for going on DST.
#
# Instead of caching 10000 years worth of periods, we can use this
# mod... | 41.292683 | 140 | 0.735184 |
1abef8afe76e31f28ba984543285dd9455be8198 | 2,762 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/smime_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/smime_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/gmail/lib/google_api/gmail/v1/model/smime_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.492308 | 376 | 0.698045 |
1abf4bd2d88dd226a76e5ad4912b150a0aa907c7 | 334 | exs | Elixir | priv/repo/migrations/20210115092331_cascade_site_deletion_to_spike_notification.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20210115092331_cascade_site_deletion_to_spike_notification.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20210115092331_cascade_site_deletion_to_spike_notification.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.CascadeSiteDeletionToSpikeNotification do
use Ecto.Migration
def change do
drop constraint("spike_notifications", "spike_notifications_site_id_fkey")
alter table(:spike_notifications) do
modify :site_id, references(:sites, on_delete: :delete_all), null: false
... | 27.833333 | 78 | 0.778443 |
1abf6ecea77e7a1b8582e9296e28cbec62b02913 | 2,790 | ex | Elixir | installer/templates/phx_umbrella/apps/app_name_web/lib/app_name.ex | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/lib/app_name.ex | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/lib/app_name.ex | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | defmodule <%= @web_namespace %> do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use <%= @web_namespace %>, :controller
use <%= @web_namespace %>, :view
The definitions below will be execut... | 24.910714 | 95 | 0.64086 |
1abf8eedd0f4792b0294ab09aefb1eb82a54f19b | 2,356 | exs | Elixir | apps/authenticator/test/authenticator/sign_out/commands/revoke_tokens_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authenticator/test/authenticator/sign_out/commands/revoke_tokens_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authenticator/test/authenticator/sign_out/commands/revoke_tokens_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authenticator.SignOut.Commands.RevokeTokensTest do
@moduledoc false
use Authenticator.DataCase, async: true
alias Authenticator.SignOut.Commands.Inputs.RevokeTokens, as: Input
alias Authenticator.SignOut.Commands.RevokeTokens, as: Commands
describe "#{Commands}.execute/1" do
setup do
sc... | 27.717647 | 95 | 0.571307 |
1abfb5d299532b0bfeef7b5853e690bbb702b641 | 6,027 | ex | Elixir | lib/himamo/baum_welch/step_e.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | 2 | 2017-09-25T07:24:26.000Z | 2019-08-23T19:55:10.000Z | lib/himamo/baum_welch/step_e.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | null | null | null | lib/himamo/baum_welch/step_e.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | null | null | null | defmodule Himamo.BaumWelch.StepE do
alias Himamo.Logzero
import Logzero
@moduledoc ~S"""
Defines components of the E-step of the Baum-Welch algorithm (Expectation).
Calculates required statistics for the given model.
"""
alias Himamo.{Matrix, Model, ObsSeq}
@doc ~S"""
Computes alpha variable for B... | 30.135 | 98 | 0.618052 |
1ac0428549b39632b0fcaf3d12dc795e1146564f | 64 | ex | Elixir | lib/eulars.ex | echenim/eular-solution-elixir | 334c6df2a2cd9f9afc885f194ddc730236756f83 | [
"MIT"
] | null | null | null | lib/eulars.ex | echenim/eular-solution-elixir | 334c6df2a2cd9f9afc885f194ddc730236756f83 | [
"MIT"
] | null | null | null | lib/eulars.ex | echenim/eular-solution-elixir | 334c6df2a2cd9f9afc885f194ddc730236756f83 | [
"MIT"
] | null | null | null | defmodule Eulars do
def hello do
"Hello world"
end
end | 10.666667 | 19 | 0.671875 |
1ac04cf1010ca39b04b22f05164a57d8c0b1b04e | 1,433 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/submit_job_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/submit_job_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/submit_job_request.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... | 29.854167 | 77 | 0.747383 |
1ac09de778dd39459986251e3d72dbdd89267ee9 | 259 | exs | Elixir | priv/repo/migrations/20200324132431_make_cookie_fields_non_required.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20200324132431_make_cookie_fields_non_required.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20200324132431_make_cookie_fields_non_required.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.MakeCookieFieldsNonRequired do
use Ecto.Migration
def up do
alter table(:events) do
modify :new_visitor, :bool, null: true
modify :user_id, :binary_id, null: true
end
end
def down do
end
end
| 18.5 | 66 | 0.702703 |
1ac0b707f84bcb6e8dc93a5d35b067f1190c9207 | 328 | exs | Elixir | integration_test/tds/explain_test.exs | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | null | null | null | integration_test/tds/explain_test.exs | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | null | null | null | integration_test/tds/explain_test.exs | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.ExplainTest do
use Ecto.Integration.Case, async: true
alias Ecto.Integration.TestRepo
alias Ecto.Integration.Post
test "explain options" do
assert_raise(Tds.Error, "EXPLAIN is not supported by Ecto.Adapters.TDS at the moment", fn ->
TestRepo.explain(:all, Post)
end)
... | 25.230769 | 96 | 0.737805 |
1ac0b8264227c883e98cd0be9bfc484039ab49a5 | 205 | exs | Elixir | test/controllers/page_controller_test.exs | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | defmodule FilmIsNotDead.PageControllerTest do
use FilmIsNotDead.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.777778 | 60 | 0.692683 |
1ac0dbe6dd97391280931ad1cd9e20c54cea3147 | 2,229 | ex | Elixir | lib/glimesh_web/live/components/user_card.ex | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/components/user_card.ex | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/components/user_card.ex | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.Components.UserCard do
use GlimeshWeb, :live_component
def render(assigns) do
user = assigns.user
~H"""
<div class="card">
<div class="card-body">
<h4 class={Glimesh.Chat.Effects.get_username_color(user, "text-color-link")}>
<%= user.displayna... | 46.4375 | 231 | 0.440556 |
1ac104a69a0d62f5cc18aac12fa7367bc5d128b1 | 22,392 | ex | Elixir | lib/scenic/view_port/input.ex | GregMefford/scenic | ac38d768c9c1c2e00bc8e552dd9bbf3eb174b45d | [
"Apache-2.0"
] | 1 | 2020-09-20T14:07:49.000Z | 2020-09-20T14:07:49.000Z | lib/scenic/view_port/input.ex | GregMefford/scenic | ac38d768c9c1c2e00bc8e552dd9bbf3eb174b45d | [
"Apache-2.0"
] | null | null | null | lib/scenic/view_port/input.ex | GregMefford/scenic | ac38d768c9c1c2e00bc8e552dd9bbf3eb174b45d | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-11-05.
# Rewritten: 3/25/2018
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.ViewPort.Input do
@moduledoc """
The main helpers and organizers for input.
*Resizing is temporarily not supported.*
"""
alias Scenic.Scene
alias Scenic.ViewP... | 30.382632 | 97 | 0.533628 |
1ac1184ea081a7a7a88713c1385b2e19000021c3 | 1,863 | ex | Elixir | lib/watch_faces/accounts/user.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces/accounts/user.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces/accounts/user.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | defmodule WatchFaces.Accounts.User do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :password, :string, virtual: true
field :password_hash, :string
field :role, :string
field :username, :string
field :email, :string
has_many :faces, WatchFaces.Faces.Face... | 23.884615 | 90 | 0.61621 |
1ac1571caa17739fe6e20714a05e8c1eeb41e4d2 | 3,610 | exs | Elixir | test/context_test.exs | ScriptDrop/sentry-elixir | 984b56eb529c592d95a8332eab3aaa8268b81fa2 | [
"MIT"
] | null | null | null | test/context_test.exs | ScriptDrop/sentry-elixir | 984b56eb529c592d95a8332eab3aaa8268b81fa2 | [
"MIT"
] | null | null | null | test/context_test.exs | ScriptDrop/sentry-elixir | 984b56eb529c592d95a8332eab3aaa8268b81fa2 | [
"MIT"
] | null | null | null | defmodule Sentry.ContextTest do
use ExUnit.Case
import Sentry.TestEnvironmentHelper
test "storing extra context appears when generating event" do
Sentry.Context.set_extra_context(%{"key" => "345"})
exception = RuntimeError.exception("error")
event = Sentry.Event.transform_exception(exception, [])
... | 36.1 | 96 | 0.655125 |
1ac1670ff034f1d7a1c405145639fbf8040d1ab0 | 594 | ex | Elixir | lib/rbt/application.ex | cloud8421/rbt | b536d5f9cde56d0be380f065ad6a2ad54f5341c7 | [
"MIT"
] | null | null | null | lib/rbt/application.ex | cloud8421/rbt | b536d5f9cde56d0be380f065ad6a2ad54f5341c7 | [
"MIT"
] | 1 | 2018-09-28T16:16:58.000Z | 2019-05-17T14:21:01.000Z | lib/rbt/application.ex | cloud8421/rbt | b536d5f9cde56d0be380f065ad6a2ad54f5341c7 | [
"MIT"
] | null | null | null | defmodule Rbt.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
Rbt.Registry.Consumer.child_spec(),
Rbt.Registry.Producer.child_spec(),
Supervisor.child_spec({Task.Supervisor, name: Rbt.Consumer.DefaultTaskSupervisor},
id: Rbt.Consumer.DefaultT... | 27 | 88 | 0.698653 |
1ac1c13ae6612d33d2d16c100b0e8e49266a8ded | 61 | ex | Elixir | web/views/layout_view.ex | ClubNix/familix | acedc6487e0b462ad5747fc3eb0acd6441a4b91c | [
"MIT"
] | 1 | 2017-03-02T08:45:43.000Z | 2017-03-02T08:45:43.000Z | web/views/layout_view.ex | minijackson/familix | acedc6487e0b462ad5747fc3eb0acd6441a4b91c | [
"MIT"
] | null | null | null | web/views/layout_view.ex | minijackson/familix | acedc6487e0b462ad5747fc3eb0acd6441a4b91c | [
"MIT"
] | null | null | null | defmodule Familix.LayoutView do
use Familix.Web, :view
end
| 15.25 | 31 | 0.786885 |
1ac1f7e1246e32ca82d2959cdf7136fc6019bc27 | 2,364 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_output_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_output_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_output_config.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... | 46.352941 | 559 | 0.759306 |
1ac208b3abe7a49d0573401f8de466a2c9d4bbad | 638 | exs | Elixir | test/httparrot_test.exs | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 68 | 2015-01-07T20:29:02.000Z | 2022-03-03T16:44:31.000Z | test/httparrot_test.exs | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 29 | 2015-01-11T05:12:46.000Z | 2021-12-23T13:07:47.000Z | test/httparrot_test.exs | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 29 | 2015-01-08T22:33:15.000Z | 2022-03-16T00:31:31.000Z | defmodule HTTParrotTest do
use ExUnit.Case
import :meck
import HTTParrot
setup do
new(:cowboy_req)
on_exit(fn -> unload() end)
:ok
end
test "'prettify_json' prettifies body response if it's a JSON" do
expect(:cowboy_req, :reply, [
{[:status, %{"content-length" => '14'}, "{\n \"a\": ... | 25.52 | 95 | 0.603448 |
1ac2095961af120c0f392c81e911cc3b30def498 | 1,895 | ex | Elixir | clients/content/lib/google_api/content/v21/model/postal_code_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/postal_code_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/postal_code_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.754717 | 143 | 0.720317 |
1ac211c2a1178a82f3437aaacf0b9e9ed4c7ac0b | 1,763 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/cm_tracking_ad.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/cm_tracking_ad.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/cm_tracking_ad.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... | 33.264151 | 116 | 0.714691 |
1ac2592b83bba7d18ded730a177e36dc3a2b9a67 | 193 | ex | Elixir | apps/legion/lib/identity/information/information.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/lib/identity/information/information.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/lib/identity/information/information.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Identity.Information do
@moduledoc """
Delegates contextual functions to use the identity APIs.
"""
defdelegate get_user(id), to: Legion.Identity.Information.User
end
| 24.125 | 64 | 0.766839 |
1ac27bc4b34c17810edb8ced578e354588d9174e | 400 | ex | Elixir | lib/pfkit/character_creation/background.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit/character_creation/background.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit/character_creation/background.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | defmodule Pfkit.CharacterCreation.Background do
use Pfkit.Schema
alias Pfkit.CharacterCreation
schema "ancestry_backgrounds" do
field :name, :string
embeds_many :ability_boosts, CharacterCreation.AbilityBoost
embeds_many :skill_boosts, CharacterCreation.SkillBoost
belongs_to :ancestry, CharacterC... | 30.769231 | 63 | 0.8075 |
1ac2a63bf110be64652c49b20a6c3083b6d92bce | 351 | exs | Elixir | priv/repo/migrations/20220222063951_add_tags_table.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | priv/repo/migrations/20220222063951_add_tags_table.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | priv/repo/migrations/20220222063951_add_tags_table.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | defmodule Purple.Repo.Migrations.AddTagsTable do
use Ecto.Migration
def change do
create table(:tags) do
add :name, :string, null: false
timestamps()
end
create table(:item_tags) do
add :item_id, references(:items), null: false
add :tag_id, references(:tags), null: false
... | 20.647059 | 51 | 0.652422 |
1ac2ae322b44b7b1129f056917cf3707953fc295 | 8,823 | ex | Elixir | apps/routes/lib/route.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | null | null | null | apps/routes/lib/route.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | 65 | 2021-05-06T18:38:33.000Z | 2022-03-28T20:50:04.000Z | apps/routes/lib/route.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | null | null | null | defmodule Routes.Route do
@moduledoc "Data model and helpers corresponding to the V3 API Route resource."
alias Routes.Repo
@derive Jason.Encoder
defstruct id: "",
type: 0,
name: "",
long_name: "",
color: "",
sort_order: 99_999,
directio... | 32.318681 | 112 | 0.633005 |
1ac32febe715305626f706e756bbd45171199906 | 7,108 | exs | Elixir | .credo.exs | jdfrens/ex_pfds | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | 7 | 2016-12-13T22:15:35.000Z | 2021-12-14T14:37:10.000Z | .credo.exs | jdfrens/ex_pfds | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | 31 | 2019-04-26T19:46:51.000Z | 2022-03-23T11:56:12.000Z | .credo.exs | jdfrens/purely | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | 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 ... | 38.215054 | 97 | 0.61072 |
1ac35882264a84e04625261f3541ab870f048654 | 816 | exs | Elixir | mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule Thundermoon.Umbrella.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.7.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: [
thundermoon_umbrella: [
applications: [
thundermoon_web: :permanent
... | 22.054054 | 77 | 0.588235 |
1ac35cef1daddb39c36297fafeaea204a4f3a2c2 | 12,571 | ex | Elixir | lib/bitpal/backends/flowee/flowee.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal/backends/flowee/flowee.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal/backends/flowee/flowee.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.Backend.Flowee do
@behaviour BitPal.Backend
use GenServer
alias BitPal.Addresses
alias BitPal.Backend
alias BitPal.Backend.Flowee.Connection
alias BitPal.Backend.Flowee.Connection.Binary
alias BitPal.Backend.Flowee.Protocol
alias BitPal.Backend.Flowee.Protocol.Message
alias BitPal.BCH... | 30.291566 | 112 | 0.673693 |
1ac36179211fe5b045f981f677f2d4d7fab1bebf | 650 | exs | Elixir | mix.exs | netDalek/mix_eunit | 11e2a25e042945d6a2e969fbbf020f9776b7542a | [
"MIT"
] | null | null | null | mix.exs | netDalek/mix_eunit | 11e2a25e042945d6a2e969fbbf020f9776b7542a | [
"MIT"
] | null | null | null | mix.exs | netDalek/mix_eunit | 11e2a25e042945d6a2e969fbbf020f9776b7542a | [
"MIT"
] | null | null | null | defmodule MixEunit.Mixfile do
use Mix.Project
def project do
[app: :mix_eunit,
version: "0.3.0",
elixir: "~> 1.0",
description: "A mix task to run eunit tests, works for umbrella projects",
package: package(),
deps: deps()]
end
defp package do
[
files: [
... | 19.69697 | 79 | 0.483077 |
1ac363ede6f1ec58449870042a582614390fc212 | 1,518 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_row.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_row.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_row.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... | 31.625 | 81 | 0.748353 |
1ac37099b759e0b727d9eab794b7a57289c010c6 | 1,685 | ex | Elixir | lib/ecto/query/builder/limit_offset.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/limit_offset.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/limit_offset.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | import Kernel, except: [apply: 3]
defmodule Ecto.Query.Builder.LimitOffset do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Builds a quoted expression.
The quoted expression should evaluate to a query at runtime.
If possible, it does all calculations at compile time to avoid
runtime work.
"""
... | 29.561404 | 86 | 0.61365 |
1ac3777b4d80600514dead2ef9e3ab1856b909ee | 880 | ex | Elixir | clients/storage/lib/google_api/storage/v1/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/storage/lib/google_api/storage/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.592593 | 74 | 0.757955 |
1ac3816da919f190736b3e0f3b0ed911ceeaa611 | 4,275 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 80.660377 | 1,970 | 0.752982 |
1ac3a5091fa8a7fabd9f56337e67de80a7ef68c4 | 1,361 | ex | Elixir | apps/web/test/support/data_case.ex | 9renpoto/phx | 06457b5e5630e45e17add8cb5097004dc1ff7e9d | [
"MIT"
] | null | null | null | apps/web/test/support/data_case.ex | 9renpoto/phx | 06457b5e5630e45e17add8cb5097004dc1ff7e9d | [
"MIT"
] | 80 | 2020-03-02T20:34:55.000Z | 2022-03-30T12:11:21.000Z | apps/web/test/support/data_case.ex | 9renpoto/phx | 06457b5e5630e45e17add8cb5097004dc1ff7e9d | [
"MIT"
] | 1 | 2019-07-28T19:45:59.000Z | 2019-07-28T19:45:59.000Z | defmodule Web.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test run... | 24.745455 | 77 | 0.673769 |
1ac3c52ade6ef0d4141983522ef6d1d7c68b54e2 | 408 | ex | Elixir | lib/app/main/trending_list.ex | vsyrovat/trending-repos | b406d205fb5fd79a9207d14a5b849924e6306e07 | [
"MIT"
] | null | null | null | lib/app/main/trending_list.ex | vsyrovat/trending-repos | b406d205fb5fd79a9207d14a5b849924e6306e07 | [
"MIT"
] | null | null | null | lib/app/main/trending_list.ex | vsyrovat/trending-repos | b406d205fb5fd79a9207d14a5b849924e6306e07 | [
"MIT"
] | null | null | null | defmodule App.Main.TrendingList do
@moduledoc """
Entity representing query result for trending repos from Github
"""
use Ecto.Schema
import Ecto.Changeset
schema "trending_lists" do
field :data, {:array, :map}
timestamps()
end
@doc false
def changeset(trending_list, attrs) do
trending... | 18.545455 | 65 | 0.67402 |
1ac3c5a549ef61c3a0947b85be5c8d8796e36ef1 | 683 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/examples/messaging/shuffle.ex | Szymongib/ockam | b6d8c62ec2516c8e0dac243a02c1d1aaf9094622 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/messaging/shuffle.ex | Szymongib/ockam | b6d8c62ec2516c8e0dac243a02c1d1aaf9094622 | [
"Apache-2.0"
] | 108 | 2021-10-30T14:46:14.000Z | 2021-10-30T16:00:08.000Z | implementations/elixir/ockam/ockam/lib/ockam/examples/messaging/shuffle.ex | frazar/ockam | 2229a22cb95fc40485304fac9b2236384b544ad4 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Examples.Messaging.Shuffle do
@moduledoc """
Worker to shuffle forwarded messages
Spawns a process for each message
"""
use Ockam.Worker
alias Ockam.Message
require Logger
@impl true
def handle_message(message, state) do
spawn(fn ->
forward_message(message, state)
end... | 20.088235 | 56 | 0.685212 |
1ac3c723a2331b365b4012c385e86c60e18bbbf4 | 322 | ex | Elixir | lib/tag_cloud/types.ex | RobertDober/tag_cloud | e3f1fca47b32691c54870d6f8b66a7f66bbd53d6 | [
"Apache-2.0"
] | null | null | null | lib/tag_cloud/types.ex | RobertDober/tag_cloud | e3f1fca47b32691c54870d6f8b66a7f66bbd53d6 | [
"Apache-2.0"
] | 3 | 2021-10-03T16:48:49.000Z | 2022-02-06T10:26:36.000Z | lib/tag_cloud/types.ex | RobertDober/tag_cloud | e3f1fca47b32691c54870d6f8b66a7f66bbd53d6 | [
"Apache-2.0"
] | null | null | null | defmodule TagCloud.Types do
defmacro __using__(_opts \\ []) do
quote do
@type ast_node :: {binary(), attributes(), [ast_node()], map()}
@type attribute :: {binary(), binary()}
@type attributes :: [attribute()]
@type binaries :: [binary()]
@type maybe(t) :: t | nil
end
end
en... | 23 | 70 | 0.568323 |
1ac3ca0474ad698ee7f4b322df22310d66369839 | 1,062 | ex | Elixir | apps/waylon_web/lib/waylon_web/channels/user_socket.ex | thyagostall/waylon | d2298e8b66d7a0e2e4819f11607c0bc94a7e8543 | [
"MIT"
] | null | null | null | apps/waylon_web/lib/waylon_web/channels/user_socket.ex | thyagostall/waylon | d2298e8b66d7a0e2e4819f11607c0bc94a7e8543 | [
"MIT"
] | null | null | null | apps/waylon_web/lib/waylon_web/channels/user_socket.ex | thyagostall/waylon | d2298e8b66d7a0e2e4819f11607c0bc94a7e8543 | [
"MIT"
] | null | null | null | defmodule WaylonWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", WaylonWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels... | 31.235294 | 83 | 0.695857 |
1ac3cb7ee4f89004188c9f7734c9f9d65e69591a | 1,001 | ex | Elixir | refuge/lib/refuge/application.ex | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | refuge/lib/refuge/application.ex | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/pragstudio/refuge/lib/refuge/application.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | defmodule Refuge.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Refuge.Repo,
# Start the Telemetry supervisor
RefugeWeb... | 28.6 | 64 | 0.699301 |
1ac4082f4a3259f5d98ef29e73994bb627d166b8 | 11,913 | ex | Elixir | lib/duplex.ex | diodechain/duplex | e1629efb73908480ebd3281236d387a3b9d55bbe | [
"Apache-2.0"
] | null | null | null | lib/duplex.ex | diodechain/duplex | e1629efb73908480ebd3281236d387a3b9d55bbe | [
"Apache-2.0"
] | null | null | null | lib/duplex.ex | diodechain/duplex | e1629efb73908480ebd3281236d387a3b9d55bbe | [
"Apache-2.0"
] | null | null | null | defmodule Duplex do
@moduledoc """
Duplex allows you to search for similar code blocks inside your Elixir
project.
"""
def help_text do
"""
Duplex escript usage:
--help - show this message
--threshold - filter AST nodes by `node.length + node.depth >= threshold`.
Than l... | 22.778203 | 94 | 0.530849 |
1ac42b0e9533ce338ca4a34c8223f758971be05f | 2,843 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/pivot_filter_criteria.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/pivot_filter_criteria.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_filter_criteria.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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... | 53.641509 | 854 | 0.741822 |
1ac44d6eb6f4ee1870314b1309433f07433ed9e8 | 368 | ex | Elixir | lib/ofh_web/auth_error_handler.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh_web/auth_error_handler.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh_web/auth_error_handler.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | defmodule OfhWeb.AuthErrorHandler do
import Plug.Conn
@http_status 401
@title "Access denied"
def auth_error(conn, {type, reason}, _opts) do
# TODO: JSONAPI helper/plug/something
body = Poison.encode!(%{errors: [%{id: to_string(type), status: @http_status, code: to_string(reason), title: @title}]})
... | 28.307692 | 124 | 0.703804 |
1ac45422c3b9d59430bfa23eb74d86afbad31e5f | 839 | ex | Elixir | demo/lib/nerves_dnssd_demo/application.ex | mtrudel/nerves_dnssd | 36c87aea4932e35adb409d8e5a1e7d02149c84b4 | [
"Apache-2.0"
] | 6 | 2017-06-23T14:47:21.000Z | 2020-06-29T13:37:06.000Z | demo/lib/nerves_dnssd_demo/application.ex | mtrudel/nerves_dnssd | 36c87aea4932e35adb409d8e5a1e7d02149c84b4 | [
"Apache-2.0"
] | 2 | 2017-10-09T19:38:45.000Z | 2020-09-26T21:09:25.000Z | demo/lib/nerves_dnssd_demo/application.ex | mtrudel/nerves_dnssd | 36c87aea4932e35adb409d8e5a1e7d02149c84b4 | [
"Apache-2.0"
] | 4 | 2017-08-16T12:11:17.000Z | 2020-11-06T21:30:49.000Z | defmodule NervesDnssdDemo.Application do
use Application
@interface :eth0
require Logger
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
if Application.get_env(:nerves_dnssd_demo, :networking, true) do
Nerve... | 27.064516 | 99 | 0.719905 |
1ac4bee2eaef05ac7f20d9a93c0c3b3f5d42a5d9 | 962 | ex | Elixir | lib/wobserver/web/router/system.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 984 | 2017-02-06T17:13:48.000Z | 2022-03-18T22:46:55.000Z | lib/wobserver/web/router/system.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 52 | 2017-02-13T16:12:10.000Z | 2021-04-08T22:31:28.000Z | lib/wobserver/web/router/system.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 74 | 2017-02-13T15:23:49.000Z | 2021-07-30T07:43:27.000Z | defmodule Wobserver.Web.Router.System do
@moduledoc ~S"""
System router.
Returns the following resources:
- `/` => `Wobserver.System.overview/0`.
- `/architecture` => `Wobserver.System.Info.architecture/0`.
- `/cpu` => `Wobserver.System.Info.cpu/0`.
- `/memory` => `Wobserver.System.Memory.usage/0... | 19.24 | 64 | 0.648649 |
1ac4fc393485449f5d2911bdee9139551ebdebbd | 817 | ex | Elixir | lib/githubist_web/resolvers/location_resolver.ex | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | lib/githubist_web/resolvers/location_resolver.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | lib/githubist_web/resolvers/location_resolver.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule GithubistWeb.Resolvers.LocationResolver do
@moduledoc false
alias Githubist.GraphQLArgumentParser
alias Githubist.Locations
alias Githubist.Locations.Location
def all(_parent, params, _resolution) do
params =
params
|> GraphQLArgumentParser.parse_limit(max_limit: 81)
|> Graph... | 24.029412 | 91 | 0.689106 |
1ac4fe41758e711d46c173cc838099089bacf0f0 | 197 | ex | Elixir | lib/lexdee/utils.ex | upmaru/lexdee | 77efeb7193826329f3d164dc131b315dea06422e | [
"MIT"
] | 1 | 2021-09-04T13:08:34.000Z | 2021-09-04T13:08:34.000Z | lib/lexdee/utils.ex | upmaru/lexdee | 77efeb7193826329f3d164dc131b315dea06422e | [
"MIT"
] | null | null | null | lib/lexdee/utils.ex | upmaru/lexdee | 77efeb7193826329f3d164dc131b315dea06422e | [
"MIT"
] | 2 | 2021-01-11T21:18:04.000Z | 2021-04-04T20:03:53.000Z | defmodule Lexdee.Utils do
defmacro __using__(_) do
quote do
def get_id(id) do
if id =~ @path,
do: id,
else: Path.join(@path, id)
end
end
end
end
| 16.416667 | 36 | 0.527919 |
1ac5072e09d582f637c642fce7782d7f716aee37 | 312 | exs | Elixir | test/support/ecto/priv/migrations/2_add_pow_last_login_to_users.exs | montebrown/pow_last_login | da6ed81d67f0e55e101ad2402b923c05dcb5f367 | [
"MIT"
] | 7 | 2019-06-07T14:10:29.000Z | 2022-03-28T09:00:35.000Z | test/support/ecto/priv/migrations/2_add_pow_last_login_to_users.exs | montebrown/pow_last_login | da6ed81d67f0e55e101ad2402b923c05dcb5f367 | [
"MIT"
] | 1 | 2020-07-20T19:27:58.000Z | 2020-07-20T19:27:58.000Z | test/support/ecto/priv/migrations/2_add_pow_last_login_to_users.exs | montebrown/pow_last_login | da6ed81d67f0e55e101ad2402b923c05dcb5f367 | [
"MIT"
] | 7 | 2019-07-22T00:14:41.000Z | 2021-09-22T09:18:13.000Z | defmodule PowLastLogin.Test.Repo.Migrations.AddPowLastLoginToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :current_login_at, :utc_datetime
add :current_login_from, :string
add :last_login_at, :utc_datetime
add :last_login_from, :string
end
end
end
| 22.285714 | 69 | 0.724359 |
1ac52eef2307ac1d439985fe63571c8d336e6c98 | 657 | exs | Elixir | mix.exs | san650/subtitle | d0bc4252b1b84fb167d09e68d4f1c977037f7f40 | [
"MIT"
] | null | null | null | mix.exs | san650/subtitle | d0bc4252b1b84fb167d09e68d4f1c977037f7f40 | [
"MIT"
] | 3 | 2019-09-15T16:04:36.000Z | 2019-09-16T13:01:23.000Z | mix.exs | san650/subtitle | d0bc4252b1b84fb167d09e68d4f1c977037f7f40 | [
"MIT"
] | 1 | 2021-04-24T07:40:12.000Z | 2021-04-24T07:40:12.000Z | defmodule Subtitle.MixProject do
use Mix.Project
def project do
[
app: :subtitle,
version: "0.1.0",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
def application do
[
... | 17.289474 | 56 | 0.544901 |
1ac5862a3672cf7033756355fb0369e9376072ca | 2,898 | ex | Elixir | lib/phoenix_component.ex | JonRowe/phoenix_live_view | 2895b18996102ca101bc8f8db86a67e478d90914 | [
"MIT"
] | null | null | null | lib/phoenix_component.ex | JonRowe/phoenix_live_view | 2895b18996102ca101bc8f8db86a67e478d90914 | [
"MIT"
] | null | null | null | lib/phoenix_component.ex | JonRowe/phoenix_live_view | 2895b18996102ca101bc8f8db86a67e478d90914 | [
"MIT"
] | null | null | null | defmodule Phoenix.Component do
@moduledoc """
API for function components.
A function component is any function that receives
an assigns map as argument and returns a rendered
struct built with the `~H` sigil.
Here is an example:
defmodule MyComponent do
use Phoenix.Component
# Opt... | 26.108108 | 95 | 0.646308 |
1ac58e8ce31e0ca13528341f476b2d8850c911d9 | 159 | exs | Elixir | test-project/test/test_test.exs | mijailr/setup-elixir | ca25180aa600122a7c1273f4b78995a8dd3925ba | [
"MIT"
] | 175 | 2019-08-29T02:00:49.000Z | 2022-02-24T21:12:56.000Z | test-project/test/test_test.exs | mijailr/setup-elixir | ca25180aa600122a7c1273f4b78995a8dd3925ba | [
"MIT"
] | 37 | 2019-09-02T16:06:49.000Z | 2021-01-19T20:55:14.000Z | test-project/test/test_test.exs | mijailr/setup-elixir | ca25180aa600122a7c1273f4b78995a8dd3925ba | [
"MIT"
] | 56 | 2019-09-05T02:00:37.000Z | 2021-12-14T03:51:05.000Z | defmodule TestTest do
use ExUnit.Case
doctest Test
test "greets the world" do
out = Logfmt.encode(foo: "bar")
assert out == "foo=bar"
end
end
| 15.9 | 35 | 0.660377 |
1ac5977bfa18aea6922279a085b08bb44269c23e | 317 | ex | Elixir | lib/quasar/web/views/api/v1/file_view.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | 11 | 2017-07-10T10:13:42.000Z | 2021-12-19T16:46:20.000Z | lib/quasar/web/views/api/v1/file_view.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | null | null | null | lib/quasar/web/views/api/v1/file_view.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | 3 | 2017-07-18T20:03:34.000Z | 2019-07-28T13:32:49.000Z | defmodule Quasar.Web.Api.V1.FileView do
use Quasar.Web, :view
attributes [
:uploaded_as,
:content_type,
:size,
:file,
:urls,
]
def urls(upload, _conn) do
for {k,v} <- Quasar.FileUpload.urls({upload.file, upload}), do: {k, v |> String.split("?") |> List.first }, into: %{}
end
end
| 18.647059 | 121 | 0.596215 |
1ac59dd9bbc4acf488ec62cc8a7a2e9385165078 | 2,394 | exs | Elixir | mix.exs | mdwaud/quantum-core | 4162ae474d175b390575fba510fe50d457f9c9eb | [
"Apache-2.0"
] | null | null | null | mix.exs | mdwaud/quantum-core | 4162ae474d175b390575fba510fe50d457f9c9eb | [
"Apache-2.0"
] | null | null | null | mix.exs | mdwaud/quantum-core | 4162ae474d175b390575fba510fe50d457f9c9eb | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.Mixfile do
@moduledoc false
use Mix.Project
@version "2.3.4"
def project do
[
app: :quantum,
build_embedded: Mix.env() == :prod,
deps: deps(),
description: "Cron-like job scheduler for Elixir.",
docs: docs(),
elixir: ">= 1.5.1",
name: "Quantum",... | 26.307692 | 97 | 0.538429 |
1ac5ac7854596ba337c424aa9b8e49182d1c6d06 | 540 | ex | Elixir | lib/elixirdo/instance/monad_trans/state/monad_cont.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | lib/elixirdo/instance/monad_trans/state/monad_cont.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | 5 | 2018-07-20T12:36:25.000Z | 2018-08-01T04:55:46.000Z | lib/elixirdo/instance/monad_trans/state/monad_cont.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | defmodule Elixirdo.Instance.MonadTrans.State.MonadCont do
use Elixirdo.Base
use Elixirdo.Typeclass.Monad.Cont, import_monad_cont: true
alias Elixirdo.Instance.MonadTrans.State, as: StateT
import_type StateT.state_t()
definstance monad_cont(state_t(s, m), m: monad_cont) do
def callCC(f) do
StateT.... | 22.5 | 78 | 0.596296 |
1ac6095a365d9841dcd012898784f2d0cbc04c56 | 1,673 | ex | Elixir | lib/spear/stream_metadata.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 34 | 2021-04-15T22:16:38.000Z | 2022-03-11T10:20:11.000Z | lib/spear/stream_metadata.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 32 | 2021-04-05T18:07:35.000Z | 2021-11-04T19:32:58.000Z | lib/spear/stream_metadata.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 1 | 2021-10-11T15:53:42.000Z | 2021-10-11T15:53:42.000Z | defmodule Spear.StreamMetadata do
@moduledoc """
A struct for describing the metadata about a stream
"""
@reserved_keys ~w[$maxAge $tb $cacheControl $maxCount $acl]
@typedoc """
Internal and custom metadata about a stream
See the EventStoreDB stream metadata documentation for more details.
"""
@typ... | 31.566038 | 83 | 0.617454 |
1ac6575b773a267e7115c52f345f5f7a4b557e08 | 211 | ex | Elixir | lib/publisher/database.ex | MajAhd/elx_logger | b0bd1596ba6d8973f9eece523228984a2ca77d0e | [
"MIT"
] | 1 | 2021-07-03T08:27:50.000Z | 2021-07-03T08:27:50.000Z | lib/publisher/database.ex | MajAhd/elx_logger | b0bd1596ba6d8973f9eece523228984a2ca77d0e | [
"MIT"
] | null | null | null | lib/publisher/database.ex | MajAhd/elx_logger | b0bd1596ba6d8973f9eece523228984a2ca77d0e | [
"MIT"
] | null | null | null | defmodule ElxLogger.Database do
@moduledoc false
alias ElxLogger.LogsAction
def save_to_db(type, log) do
LogsAction.save_log(Atom.to_string(type), log)
:ok
rescue
_ ->
false
end
end
| 16.230769 | 50 | 0.691943 |
1ac66a74a93e0c0ed0df9ce37d33873efc42fc14 | 311 | exs | Elixir | mix.exs | entice/skill | 7fca03ba881edc53c65db8fb2703f69b3cba3acd | [
"WTFPL"
] | 1 | 2015-01-17T01:31:12.000Z | 2015-01-17T01:31:12.000Z | mix.exs | entice/skill | 7fca03ba881edc53c65db8fb2703f69b3cba3acd | [
"WTFPL"
] | null | null | null | mix.exs | entice/skill | 7fca03ba881edc53c65db8fb2703f69b3cba3acd | [
"WTFPL"
] | 1 | 2019-01-09T16:53:34.000Z | 2019-01-09T16:53:34.000Z | defmodule Entice.Skill.Mixfile do
use Mix.Project
def project do
[app: :entice_skill,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
defp deps do
[{:entice_utils, github: "entice/utils", ref: "45fa9369284f92857c4436251a6b995c5d014680"},
{:inflex, "~> 1.0"}]
end
end
| 19.4375 | 94 | 0.623794 |
1ac68610cd806b58ddecf7ae2e25372e9f792718 | 1,004 | exs | Elixir | mix.exs | neysofu/securion | 5c2733b7891df1e754e8e23dc7d3bc3a9fcd7454 | [
"0BSD"
] | null | null | null | mix.exs | neysofu/securion | 5c2733b7891df1e754e8e23dc7d3bc3a9fcd7454 | [
"0BSD"
] | null | null | null | mix.exs | neysofu/securion | 5c2733b7891df1e754e8e23dc7d3bc3a9fcd7454 | [
"0BSD"
] | null | null | null | defmodule Securion.MixProject do
use Mix.Project
@repo "https://github.com/neysofu/securion"
def project do
[
app: :securion,
version: "0.4.0",
description: description(),
package: package(),
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
... | 18.943396 | 61 | 0.521912 |
1ac6994ac08f608dcb6c2287c3bb738b46fafa6c | 119 | exs | Elixir | biggest_len/biggest_len.exs | fvcalderan/Langs-Comparisons | 25d7459eb425fdd620605e301190f2b407d7377a | [
"BSD-3-Clause"
] | 1 | 2021-09-23T14:21:14.000Z | 2021-09-23T14:21:14.000Z | biggest_len/biggest_len.exs | fvcalderan/Langs-Comparisons | 25d7459eb425fdd620605e301190f2b407d7377a | [
"BSD-3-Clause"
] | null | null | null | biggest_len/biggest_len.exs | fvcalderan/Langs-Comparisons | 25d7459eb425fdd620605e301190f2b407d7377a | [
"BSD-3-Clause"
] | null | null | null | # orlando.sh
words = ["Here", "are", "some", "extraordinary", "words"]
words |> Enum.map(&String.length/1) |> Enum.max
| 29.75 | 57 | 0.630252 |
1ac6a57a3308b4199b39aff9d9955ec3c6be4eb7 | 687 | ex | Elixir | apps/ui/web/gettext.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | 4 | 2016-09-21T11:22:27.000Z | 2017-12-09T02:06:52.000Z | apps/ui/web/gettext.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | null | null | null | apps/ui/web/gettext.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | 2 | 2017-12-09T02:07:22.000Z | 2021-01-06T15:30:03.000Z | defmodule Ui.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Ui.Gettext
# Simple translation
gettext "Here is the string to tra... | 27.48 | 72 | 0.671033 |
1ac6c5d3c9d354a40e2f6f2768039e3901ba7039 | 2,126 | ex | Elixir | clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/oidc_token.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/oidc_token.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/oidc_token.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... | 42.52 | 329 | 0.749294 |
1ac6ce808c9606b96f252398d97e33de28acdddf | 13,843 | ex | Elixir | lib/phoenix_live_view/html_algebra.ex | sthagen/phoenixframework-phoenix_live_view | 196ba2f8c9c367ee9e0ff8273f2a9c22a1c7027a | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_algebra.ex | sthagen/phoenixframework-phoenix_live_view | 196ba2f8c9c367ee9e0ff8273f2a9c22a1c7027a | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_algebra.ex | sthagen/phoenixframework-phoenix_live_view | 196ba2f8c9c367ee9e0ff8273f2a9c22a1c7027a | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLAlgebra do
@moduledoc false
import Inspect.Algebra, except: [format: 2]
# TODO: Remove it after versions before Elixir 1.13 are no longer supported.
@compile {:no_warn_undefined, Code}
@languages ~w(style script)
# The formatter has two modes:
#
# * :normal
# * :pres... | 28.425051 | 100 | 0.590334 |
1ac6d95864469b5fd01322178dbfa45fd43ad72d | 596 | exs | Elixir | config/runtime.exs | mcrumm/livebook | b1ceedc2205e64348212fbf7edce568cdb084e97 | [
"Apache-2.0"
] | null | null | null | config/runtime.exs | mcrumm/livebook | b1ceedc2205e64348212fbf7edce568cdb084e97 | [
"Apache-2.0"
] | null | null | null | config/runtime.exs | mcrumm/livebook | b1ceedc2205e64348212fbf7edce568cdb084e97 | [
"Apache-2.0"
] | null | null | null | import Config
require Logger
config :livebook, LivebookWeb.Endpoint,
secret_key_base:
Livebook.Config.secret!("LIVEBOOK_SECRET_KEY_BASE") ||
Base.encode64(:crypto.strong_rand_bytes(48))
config :livebook, :root_path, Livebook.Config.root_path!("LIVEBOOK_ROOT_PATH")
if password = Livebook.Config.password!(... | 29.8 | 78 | 0.77349 |
1ac6f4ffa1340e1e69922475c261a882abed6289 | 2,430 | exs | Elixir | config/prod.exs | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | config/prod.exs | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | config/prod.exs | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 33.75 | 69 | 0.711111 |
1ac6fe1585a5877fd21241f305321235ece4193e | 5,688 | exs | Elixir | apps/ello_serve/test/controllers/webapp/no_content_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_serve/test/controllers/webapp/no_content_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_serve/test/controllers/webapp/no_content_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Serve.Webapp.NoContentControllerTest do
use Ello.Serve.ConnCase
alias Ello.Serve.VersionStore
setup %{conn: conn} do
raw2 = File.read!("test/support/ello.co.2.html")
:ok = VersionStore.put_version("webapp", "abc123", raw2)
{:ok, conn: conn}
end
test "following - it renders - activ... | 39.5 | 159 | 0.649965 |
1ac716ccc1829eb2c431aacec263f52881d74f91 | 2,063 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/disk_utilization.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/disk_utilization.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/disk_utilization.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... | 36.839286 | 108 | 0.728066 |
1ac71e3b083ca0789985f9219580f92a5e17ff08 | 2,478 | exs | Elixir | integration_test/cases/browser/screenshot_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | integration_test/cases/browser/screenshot_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | integration_test/cases/browser/screenshot_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.Browser.ScreenshotTest do
use Wallaby.Integration.SessionCase, async: false
import ExUnit.CaptureIO
import Wallaby.Query, only: [css: 1]
setup %{session: session} do
page =
session
|> visit("/")
{:ok, page: page}
end
test "taking screenshots", %{page: pa... | 25.030303 | 70 | 0.634383 |
1ac729f7e1671b83a0c1946d5da8ccd5c98e859c | 1,747 | exs | Elixir | config/dev.exs | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | config/dev.exs | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | config/dev.exs | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :metro, Metro.Web.Endpoint,
http: [port: 4000]... | 33.596154 | 170 | 0.69834 |
1ac7496fb1c0d25851586a867c29c16457a35597 | 1,938 | exs | Elixir | mix.exs | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | mix.exs | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | mix.exs | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | defmodule VintageNetLTE.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/nerves-networking/vintage_net_lte"
def project do
[
app: :vintage_net_lte,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool... | 22.022727 | 81 | 0.54644 |
1ac76800f5bac9666dc5efa8517262e41de4c614 | 414 | ex | Elixir | lib/abbr_web/controllers/expand_controller.ex | elvanja/abbr | b09954df2f68f71c03f308b01927f032bf692ac4 | [
"MIT"
] | 14 | 2020-03-25T22:10:42.000Z | 2021-02-04T01:31:40.000Z | lib/abbr_web/controllers/expand_controller.ex | elvanja/abbr | b09954df2f68f71c03f308b01927f032bf692ac4 | [
"MIT"
] | null | null | null | lib/abbr_web/controllers/expand_controller.ex | elvanja/abbr | b09954df2f68f71c03f308b01927f032bf692ac4 | [
"MIT"
] | null | null | null | defmodule AbbrWeb.ExpandController do
use AbbrWeb, :controller
alias Abbr.Expand
action_fallback AbbrWeb.FallbackController
def given(conn, %{"short" => short}) do
case Expand.given(short) do
{:ok, original} ->
redirect(conn, external: original)
{:error, :not_found} ->
send_r... | 20.7 | 55 | 0.652174 |
1ac76cb66cadeb70e61d20a7870855d86d14150b | 3,118 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orderinvoices_create_refund_invoice_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderinvoices_create_refund_invoice_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderinvoices_create_refund_invoice_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.542857 | 307 | 0.75433 |
1ac7ce288feb74572e6e963ce9f9d893be75aace | 532 | ex | Elixir | lib/std_json_io.ex | chvanikoff/std_json_io | 973dbfc21dfa28fe88533dcf918e017c5f76aaaf | [
"MIT"
] | 1 | 2017-08-24T19:54:27.000Z | 2017-08-24T19:54:27.000Z | lib/std_json_io.ex | chvanikoff/std_json_io | 973dbfc21dfa28fe88533dcf918e017c5f76aaaf | [
"MIT"
] | 2 | 2016-10-25T01:46:47.000Z | 2018-04-23T20:31:48.000Z | lib/std_json_io.ex | chvanikoff/std_json_io | 973dbfc21dfa28fe88533dcf918e017c5f76aaaf | [
"MIT"
] | 10 | 2016-07-20T12:34:53.000Z | 2018-08-22T21:37:09.000Z | defmodule StdJsonIo do
def json_call!(map, timeout \\ 10000) do
case json_call(map, timeout) do
{:ok, data} -> data
{:error, reason } -> raise "Failed to call to json service, reason: #{to_string(reason)}"
end
end
def json_call(data, timeout \\ 10000) do
result = :poolboy.transaction(StdJ... | 26.6 | 95 | 0.620301 |
1ac7f7b4db2aec1f4f64d4250888381becd6d291 | 405 | ex | Elixir | test/support/process_helpers.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 19 | 2018-07-14T16:54:11.000Z | 2022-03-01T09:02:19.000Z | test/support/process_helpers.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 31 | 2018-06-29T15:30:40.000Z | 2022-02-26T01:07:12.000Z | test/support/process_helpers.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | null | null | null | defmodule Juvet.ProcessHelpers do
@moduledoc """
Test helpers to aid in testing processes
"""
import ExUnit.Callbacks, only: [start_supervised!: 1]
def setup_with_supervised_application!(_context) do
start_supervised_application!()
:ok
end
def start_supervised_application! do
start_supervis... | 20.25 | 55 | 0.683951 |
1ac80889de1df2042c15566e5e403f305a241937 | 98 | ex | Elixir | lib/bubble_match/parse_error.ex | botsquad/bubble-expr | 93efb4376302426fa7d81b2ca8de67662a50599f | [
"MIT"
] | 20 | 2020-05-20T14:27:56.000Z | 2022-01-15T18:43:34.000Z | lib/bubble_match/parse_error.ex | botsquad/bubble-match | c90325fb7ffdcd0b96ae0fd8f8aa0b3ebbe3ea0e | [
"MIT"
] | 3 | 2020-05-22T18:50:34.000Z | 2020-06-23T14:58:04.000Z | lib/bubble_match/parse_error.ex | botsquad/bubble-expr | 93efb4376302426fa7d81b2ca8de67662a50599f | [
"MIT"
] | 1 | 2021-05-19T09:06:54.000Z | 2021-05-19T09:06:54.000Z | defmodule BubbleMatch.ParseError do
@moduledoc false
defexception message: "Parse error"
end
| 16.333333 | 37 | 0.795918 |
1ac83a005fa2d6b7440d5d3ceb2980c2e225c15f | 1,124 | ex | Elixir | lib/fipe_crawler/worker/modelos.ex | teofilosalgado/FipeCrawler | 0e25bc10bb23da2b8cb0204fd1db07a07cc7b4c5 | [
"MIT"
] | 1 | 2021-01-14T01:12:24.000Z | 2021-01-14T01:12:24.000Z | lib/fipe_crawler/worker/modelos.ex | teofilosalgado/FipeCrawler | 0e25bc10bb23da2b8cb0204fd1db07a07cc7b4c5 | [
"MIT"
] | null | null | null | lib/fipe_crawler/worker/modelos.ex | teofilosalgado/FipeCrawler | 0e25bc10bb23da2b8cb0204fd1db07a07cc7b4c5 | [
"MIT"
] | null | null | null | defmodule FipeCrawler.Worker.Modelos do
use GenServer
def start_link(init_arg) do
GenServer.start_link(__MODULE__, init_arg, name: :modelos)
end
def salvar_modelo(form_modelos, marca, modelo) do
resultado = GenServer.call(:database, {:modelo, marca, modelo})
GenServer.cast(:anos, {:fetch, form_mod... | 28.820513 | 96 | 0.692171 |
1ac83f9e0c259701b6a615b17b785594b60f2694 | 577 | ex | Elixir | lib/plaid/identity/address.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | lib/plaid/identity/address.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | lib/plaid/identity/address.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.Identity.Address do
@moduledoc """
[Plaid Identity Address schema.](https://plaid.com/docs/api/products/#identity-get-response-addresses)
"""
@behaviour Plaid.Castable
alias Plaid.Address, as: AddressData
alias Plaid.Castable
@type t :: %__MODULE__{
data: AddressData.t(),
... | 19.896552 | 104 | 0.642981 |
1ac847a4d8cf554f4afdf7a48ee4f0ef39fbf903 | 1,020 | ex | Elixir | lib/pxscratch/endpoint.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | 1 | 2016-06-02T21:21:42.000Z | 2016-06-02T21:21:42.000Z | lib/pxscratch/endpoint.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | null | null | null | lib/pxscratch/endpoint.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | null | null | null | defmodule Pxscratch.Endpoint do
use Phoenix.Endpoint, otp_app: :pxscratch
socket "/socket", Pxscratch.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... | 25.5 | 69 | 0.712745 |
1ac85b980db3cbbdc598478f4989ecd01e7f44ee | 398 | ex | Elixir | lib/codes/codes_l86.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l86.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l86.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_L86 do
alias IcdCode.ICDCode
def _L86 do
%ICDCode{full_code: "L86",
category_code: "L86",
short_code: "",
full_name: "Keratoderma in diseases classified elsewhere",
short_name: "Keratoderma in diseases classified elsewhere",
catego... | 24.875 | 71 | 0.665829 |
1ac872032b7e1c515a047958222b352ad53f53e9 | 863 | exs | Elixir | test/slack_autolinker_test.exs | wojtekmach/slack_autolinker | a3623e406439f387a19456055644263993c974ff | [
"MIT"
] | 3 | 2017-07-28T14:19:20.000Z | 2021-02-09T15:01:25.000Z | test/slack_autolinker_test.exs | socialpaymentsbv/slack_autolinker | a3623e406439f387a19456055644263993c974ff | [
"MIT"
] | 7 | 2017-02-27T08:54:41.000Z | 2020-03-18T10:18:49.000Z | test/slack_autolinker_test.exs | socialpaymentsbv/slack_autolinker | a3623e406439f387a19456055644263993c974ff | [
"MIT"
] | 2 | 2017-03-16T12:13:55.000Z | 2021-01-14T11:51:11.000Z | defmodule SlackAutolinkerTest do
use ExUnit.Case
doctest SlackAutolinker, import: true
import SlackAutolinker
test "reply" do
repo_aliases = %{"bb" => "aa/bb"}
assert reply("", %{}) == nil
assert reply("See: bb#1, bb#2.", repo_aliases) ==
"<https://github.com/aa/bb/issues/1|bb#1> - Test: a... | 27.83871 | 82 | 0.587486 |
1ac8adbc815dce0763fcf9dd23ac02b2cabab793 | 2,852 | exs | Elixir | rel/runtime.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | rel/runtime.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | rel/runtime.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
get_redix_args = fn (host, password) ->
[host: host, password: password]
|> Enum.filter(fn
{_, nil} -> false
{_, ""} -> false
_ -> true
end)
end
redix_args = get_redix_args.(System.get_env("REDIS_HOST"), System.get_env("REDIS_PASSWORD"))
kafka_brokers = System.get_env("KAFKA_BROKERS")
endpoint... | 26.90566 | 98 | 0.717742 |
1ac8c13e483065a215327466da608a6577b1b7b7 | 87 | exs | Elixir | test/wannabe_bool_test.exs | prodis/wannabe_bool_elixir | 3fb7a0e3812610ba0d8725596d248a1283121431 | [
"Apache-2.0"
] | 7 | 2018-12-09T10:47:01.000Z | 2019-08-20T17:39:47.000Z | test/wannabe_bool_test.exs | prodis/wannabe_bool_elixir | 3fb7a0e3812610ba0d8725596d248a1283121431 | [
"Apache-2.0"
] | 2 | 2020-10-19T21:02:52.000Z | 2021-11-04T11:35:22.000Z | test/wannabe_bool_test.exs | prodis/wannabe_bool_elixir | 3fb7a0e3812610ba0d8725596d248a1283121431 | [
"Apache-2.0"
] | null | null | null | defmodule WannabeBoolTest do
use ExUnit.Case, async: true
doctest WannabeBool
end
| 14.5 | 30 | 0.793103 |
1ac8dc97e14c1d758741d8182fb4d1b522887d09 | 4,208 | ex | Elixir | lib/vox/transform.ex | ScrimpyCat/Vox | 5a9ebf0e6b0d1df6b68800d38d5fe69aafd9d3ef | [
"BSD-2-Clause"
] | 1 | 2021-11-10T08:13:01.000Z | 2021-11-10T08:13:01.000Z | lib/vox/transform.ex | ScrimpyCat/Vox | 5a9ebf0e6b0d1df6b68800d38d5fe69aafd9d3ef | [
"BSD-2-Clause"
] | null | null | null | lib/vox/transform.ex | ScrimpyCat/Vox | 5a9ebf0e6b0d1df6b68800d38d5fe69aafd9d3ef | [
"BSD-2-Clause"
] | 1 | 2022-01-22T02:17:47.000Z | 2022-01-22T02:17:47.000Z | defmodule Vox.Transform do
@moduledoc """
The transform struct represents a coordinate transformation. Transforms
can be stacked.
"""
defstruct [:origin, :data]
@type t :: %__MODULE__{ data: Vox.Data.t, origin: Vox.Data.origin }
@side_x [:left, :right]
@side_y [:bottom, :top]
@... | 39.327103 | 188 | 0.520437 |
1ac8dd755e0d624810ff792f43b3c767bc3743c0 | 1,185 | ex | Elixir | lib/stormcaster_web/channels/user_socket.ex | nuclearfurnace/stormcaster | 2ba34f2a6ee18dfa0b8fa546ba82483827785c4c | [
"MIT"
] | null | null | null | lib/stormcaster_web/channels/user_socket.ex | nuclearfurnace/stormcaster | 2ba34f2a6ee18dfa0b8fa546ba82483827785c4c | [
"MIT"
] | null | null | null | lib/stormcaster_web/channels/user_socket.ex | nuclearfurnace/stormcaster | 2ba34f2a6ee18dfa0b8fa546ba82483827785c4c | [
"MIT"
] | null | null | null | defmodule StormcasterWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", StormcasterWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to veri... | 31.184211 | 86 | 0.706329 |
1ac8fdecbb23d83c67066a7f8736cb8b0c2125ed | 563 | ex | Elixir | apps/rappel/lib/rappel/test_data.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | 2 | 2021-08-09T14:37:42.000Z | 2021-11-18T14:54:39.000Z | apps/rappel/lib/rappel/test_data.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | 4 | 2020-05-13T14:04:55.000Z | 2021-07-18T17:03:50.000Z | apps/rappel/lib/rappel/test_data.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | null | null | null | defmodule Rappel.TestData do
def get_integers() do
[rand_int(), rand_int(), rand_int()]
end
def get_integers(n) when is_integer(n) do
get_i(n, [])
end
defp get_i(0, acc), do: acc
defp get_i(n, acc), do: get_i(n - 1, [rand_int() | acc])
defp rand_int(), do: Enum.random(1..255) - 124
def get_floats() do
... | 19.413793 | 57 | 0.625222 |
1ac8ffaa16ffc3f14b4279a95d4832b5ca6fc4a3 | 1,789 | exs | Elixir | test/xdr/operations/create_claimable_balance_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/operations/create_claimable_balance_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/operations/create_claimable_balance_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.CreateClaimableBalanceResultCodeTest do
use ExUnit.Case
alias StellarBase.XDR.Operations.CreateClaimableBalanceResultCode
describe "CreateClaimableBalanceResultCode" do
setup do
%{
code: :CREATE_CLAIMABLE_BALANCE_SUCCESS,
result: CreateClaimableBala... | 33.754717 | 98 | 0.698714 |
1ac907daf9ef72f7893d032648c4ca3107fb5c92 | 3,880 | ex | Elixir | lib/crawly/pipelines/write_to_file.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | 1 | 2020-10-02T18:33:23.000Z | 2020-10-02T18:33:23.000Z | lib/crawly/pipelines/write_to_file.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | lib/crawly/pipelines/write_to_file.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Pipelines.WriteToFile do
@moduledoc """
Stores a given item into Filesystem
Pipeline Lifecycle:
1. When run (by `Crawly.Utils.pipe`), creates a file descriptor if not already created.
2. Performs the write operation
3. File descriptor is reused by passing it through the pipeline state with... | 27.51773 | 182 | 0.599227 |
1ac913529ada91470b368688af140388ce1ab1db | 589 | ex | Elixir | lib/minecraft/crypto/sha.ex | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 29 | 2018-09-03T15:34:33.000Z | 2021-12-30T19:36:42.000Z | lib/minecraft/crypto/sha.ex | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 76 | 2018-07-13T13:19:09.000Z | 2022-03-23T15:27:43.000Z | lib/minecraft/crypto/sha.ex | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 2 | 2020-10-06T15:50:17.000Z | 2021-12-29T08:06:48.000Z | defmodule Minecraft.Crypto.SHA do
@moduledoc """
Minecraft uses a [non-standard SHA encoding](http://wiki.vg/Protocol_Encryption#Authentication), and
this module implements it.
"""
@doc """
Generates the Minecraft SHA of a binary.
"""
@spec sha(binary) :: String.t()
def sha(message) do
... | 28.047619 | 103 | 0.626486 |
1ac93b4e6b4576a49858d168cf3fa2f5d18d871f | 13,693 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/datetime/naivedatetime.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/datetime/naivedatetime.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/datetime/naivedatetime.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defimpl Timex.Protocol, for: NaiveDateTime do
@moduledoc """
This module implements Timex functionality for NaiveDateTime
"""
alias Timex.{Types, Duration}
import Timex.Macros
@epoch_seconds :calendar.datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
@spec now() :: NaiveDateTime.t
def now() do
T... | 40.273529 | 118 | 0.62039 |
1ac9823c45c2fc2bc5b6b09c3140fb9ccde1c4bb | 602 | exs | Elixir | test/test_helper.exs | ianrumford/siariwyd | 2962f2c57ccfacdeefe886f4b97664cca55defa0 | [
"MIT"
] | 2 | 2016-11-18T13:35:39.000Z | 2016-11-24T13:19:33.000Z | test/test_helper.exs | ianrumford/siariwyd | 2962f2c57ccfacdeefe886f4b97664cca55defa0 | [
"MIT"
] | null | null | null | test/test_helper.exs | ianrumford/siariwyd | 2962f2c57ccfacdeefe886f4b97664cca55defa0 | [
"MIT"
] | null | null | null | ExUnit.start()
defmodule SiariwydHelpersTest do
def module_registrations_get(module) do
module.__info__(:attributes)
|> Keyword.get(:siariwyd_registrations)
|> List.first
end
def module_registrations_keys_get(module) do
module
|> module_registrations_get
|> Map.keys
end
def modul... | 18.242424 | 62 | 0.704319 |
1ac997a08ede8cb636ceb191ae24a235e31ffdd8 | 142 | exs | Elixir | test/hello-world/test/hello_world_test.exs | neenjaw/exercism-elixir-test-runner | 5715919d90bf7989a940c0c34e9a267d550722d5 | [
"MIT"
] | null | null | null | test/hello-world/test/hello_world_test.exs | neenjaw/exercism-elixir-test-runner | 5715919d90bf7989a940c0c34e9a267d550722d5 | [
"MIT"
] | null | null | null | test/hello-world/test/hello_world_test.exs | neenjaw/exercism-elixir-test-runner | 5715919d90bf7989a940c0c34e9a267d550722d5 | [
"MIT"
] | null | null | null | defmodule(HelloWorldTest) do
use(ExUnit.Case)
test("says 'Hello, World!'") do
assert(HelloWorld.hello() == "Hello, World!")
end
end
| 20.285714 | 49 | 0.669014 |
1ac99b9169e1818b0afc1698283b4d046cdaf728 | 1,222 | ex | Elixir | lib/log_analyzer/server/api/reports/user_agent.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/api/reports/user_agent.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/api/reports/user_agent.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | defmodule LogAnalyzer.Server.API.Reports.UserAgent do
require Logger
alias LogAnalyzer.Repo
import Plug.Conn
import Ecto.Query, only: [from: 2]
def get_os(conn, id) do
query =
from log in "log_#{id}",
select: %{
os: log.ua_os,
count: count(log.id)
},
wher... | 24.44 | 57 | 0.569558 |
1ac9a3d7317f90c19c9b9674cc9ca9c4a8dd39da | 1,572 | ex | Elixir | clients/url_shortener/lib/google_api/url_shortener/v1/model/string_count.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/url_shortener/lib/google_api/url_shortener/v1/model/string_count.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/url_shortener/lib/google_api/url_shortener/v1/model/string_count.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 ... | 31.44 | 136 | 0.713104 |
1ac9b3f7cd2d95e60fb7f38dabfa4635a3e1c461 | 2,235 | exs | Elixir | test/challenge_gov/challenge_gov_delivery_topics_test.exs | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | test/challenge_gov/challenge_gov_delivery_topics_test.exs | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | test/challenge_gov/challenge_gov_delivery_topics_test.exs | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.ChallengeGovDeliveryTopicsTest do
use ChallengeGov.DataCase
alias ChallengeGov.Challenges
alias ChallengeGov.TestHelpers.AccountHelpers
alias ChallengeGov.TestHelpers.ChallengeHelpers
describe "Challenges to add topics" do
test "open are available" do
user = AccountHelpers.c... | 30.616438 | 90 | 0.720358 |
1ac9b4ec02ffef72ad53734e1fe06e8b1bf03f4e | 598 | exs | Elixir | testserver/test/testserver_web/views/error_view_test.exs | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | testserver/test/testserver_web/views/error_view_test.exs | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | testserver/test/testserver_web/views/error_view_test.exs | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | defmodule TestserverWeb.ErrorViewTest do
use TestserverWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(TestserverWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "re... | 27.181818 | 71 | 0.692308 |
1aca5275b4c9ea7b86880928b678a802584f2a71 | 1,791 | exs | Elixir | bench/lookup.exs | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | bench/lookup.exs | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | bench/lookup.exs | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Benchmark.Lookup do
alias Geolix.Database.Loader
def run do
database = determine_database()
case File.exists?(database) do
true ->
Geolix.load_database(%{
id: :benchmark,
adapter: Geolix.Adapter.MMDB2,
source: database
})
:ok = ... | 22.961538 | 72 | 0.60804 |
1aca7e4a34a4c52725fc0178072f4a1d225ada4a | 1,784 | ex | Elixir | api/test/support/model_case.ex | kevcisme/locals | 042d5c691c5bd29e0d040d03782ee294db8a8380 | [
"MIT"
] | null | null | null | api/test/support/model_case.ex | kevcisme/locals | 042d5c691c5bd29e0d040d03782ee294db8a8380 | [
"MIT"
] | null | null | null | api/test/support/model_case.ex | kevcisme/locals | 042d5c691c5bd29e0d040d03782ee294db8a8380 | [
"MIT"
] | null | null | null | defmodule Locals.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For t... | 27.030303 | 84 | 0.683857 |
1aca8375de62da9c2b68647a67e1e3c71a481fcd | 2,181 | exs | Elixir | made_at_eps/config/dev.exs | EastsidePreparatorySchool/MadeAtEPS | cea5b6db5772ad4ad78b2bfb8ebd6643c35c38cb | [
"MIT"
] | null | null | null | made_at_eps/config/dev.exs | EastsidePreparatorySchool/MadeAtEPS | cea5b6db5772ad4ad78b2bfb8ebd6643c35c38cb | [
"MIT"
] | null | null | null | made_at_eps/config/dev.exs | EastsidePreparatorySchool/MadeAtEPS | cea5b6db5772ad4ad78b2bfb8ebd6643c35c38cb | [
"MIT"
] | null | null | null | import 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 esbuild to bundle .js and .css sources.
config :made_at_eps, MadeAtEpsWeb.Endpoint,
# Binding to lo... | 33.045455 | 86 | 0.710683 |
1aca85eb8d0e8cd6f6efa8fe403bc390fae78bc9 | 266 | exs | Elixir | config/test.exs | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | 1 | 2019-11-21T14:33:52.000Z | 2019-11-21T14:33:52.000Z | config/test.exs | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | 1 | 2021-03-09T23:50:54.000Z | 2021-03-09T23:50:54.000Z | config/test.exs | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :tracker, TrackerWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.181818 | 56 | 0.736842 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.