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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9354a9a3f66e65282c91528cdefbe36481721107 | 8,176 | ex | Elixir | lib/ecto/adapters/tds/types.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/ecto/adapters/tds/types.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 1 | 2020-06-29T20:59:38.000Z | 2020-06-29T20:59:38.000Z | lib/ecto/adapters/tds/types.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 1 | 2019-05-31T02:43:25.000Z | 2019-05-31T02:43:25.000Z | if Code.ensure_loaded?(Tds) do
defmodule Tds.Ecto.UUID do
@moduledoc """
An TDS adapter type for UUIDs strings.
If you are using Tds adapter and UUIDs in your project, instead of `Ecto.UUID`
you should use Tds.Ecto.UUID to generate correct bytes that should be stored
in database.
"""
use... | 26.718954 | 96 | 0.488748 |
9354bef2239ed52545e1971b1ef8f7876bc72f32 | 1,146 | ex | Elixir | apps/artemis_web/lib/artemis_web/views/user_view.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis_web/lib/artemis_web/views/user_view.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 3 | 2019-03-05T23:55:09.000Z | 2019-05-29T13:46:34.000Z | apps/artemis_web/lib/artemis_web/views/user_view.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule ArtemisWeb.UserView do
use ArtemisWeb, :view
import Artemis.Helpers, only: [keys_to_atoms: 2]
alias Artemis.UserRole
@doc """
Returns a matching `user_role` record based on the passed `role.id` match value.
The `user_role` data could come from:
1. The existing record in the database.
2. T... | 26.651163 | 87 | 0.682373 |
9354c3606a71326e89d570bb4fed12e0b00f7f61 | 5,833 | ex | Elixir | apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule MerklePatriciaTree.Trie do
@moduledoc File.read!("#{__DIR__}/../../README.md")
alias ExthCrypto.Hash.Keccak
alias MerklePatriciaTree.DB
alias MerklePatriciaTree.Trie.{Builder, Destroyer, Fetcher, Helper, Node, Storage}
defstruct db: nil, root_hash: nil
@behaviour MerklePatriciaTree.TrieStorage
... | 27.257009 | 237 | 0.645637 |
935505d8f797fb4900535ff4c5d5949d79ef4844 | 63 | ex | Elixir | web/views/layout_view.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | defmodule SslBench.LayoutView do
use SslBench.Web, :view
end
| 15.75 | 32 | 0.793651 |
935523fc373f350b5dc0ab5eac843ae2e7420010 | 1,442 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/launch_app_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_management/lib/google_api/android_management/v1/model/launch_app_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_management/lib/google_api/android_management/v1/model/launch_app_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.680851 | 95 | 0.740638 |
935590ee589df1e284d1ef264020aaa67885ac03 | 168 | exs | Elixir | priv/repo/migrations/20181212020415_add_login_to_user.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20181212020415_add_login_to_user.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20181212020415_add_login_to_user.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.AddLoginToUser do
use Ecto.Migration
def change do
alter table(:users) do
add(:login, :string)
end
end
end
| 16.8 | 57 | 0.708333 |
9355c0759d02a1b4395cd329c809b63e484bb74b | 4,117 | ex | Elixir | lib/boggle_engine.ex | rtvu/boggle_engine | ae40c2c95dc3e1c1bcd684a19cba11e583828b9d | [
"MIT"
] | null | null | null | lib/boggle_engine.ex | rtvu/boggle_engine | ae40c2c95dc3e1c1bcd684a19cba11e583828b9d | [
"MIT"
] | null | null | null | lib/boggle_engine.ex | rtvu/boggle_engine | ae40c2c95dc3e1c1bcd684a19cba11e583828b9d | [
"MIT"
] | null | null | null | defmodule BoggleEngine do
@moduledoc """
Boggle board generator and solver.
Versions:
* `:boggle` - 4x4
* `:big_boggle` - 5x5
* `:super_big_boggle` - 6x6
Rules:
* `:standard` - All neighbors are valid
* `:edge` - Only edge neighbors
* `:corner` - Only corner neighbors
* `:wrap` - Out of bo... | 24.951515 | 99 | 0.662133 |
9355c7d807e882501d29d31583bf0b83d2e2114b | 67 | ex | Elixir | web/views/layout_view.ex | wholroyd/fake-elixir | 9d67431d12da9f3500fd62a000d76408c40f3b66 | [
"Apache-2.0"
] | null | null | null | web/views/layout_view.ex | wholroyd/fake-elixir | 9d67431d12da9f3500fd62a000d76408c40f3b66 | [
"Apache-2.0"
] | null | null | null | web/views/layout_view.ex | wholroyd/fake-elixir | 9d67431d12da9f3500fd62a000d76408c40f3b66 | [
"Apache-2.0"
] | null | null | null | defmodule FakeElixir.LayoutView do
use FakeElixir.Web, :view
end
| 16.75 | 34 | 0.80597 |
9355cf65f601b6596281fc6d06f4aa35964fae27 | 1,826 | exs | Elixir | day-1/part2.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | 1 | 2019-05-14T04:42:31.000Z | 2019-05-14T04:42:31.000Z | day-1/part2.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | null | null | null | day-1/part2.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | null | null | null | defmodule AoC.Day1.Part2 do
@moduledoc """
You notice that the device repeats the same frequency change list over and
over. To calibrate the device, you need to find the first frequency it
reaches twice.
For example, using the same list of changes above, the device would loop as
follows:
Current frequen... | 34.45283 | 79 | 0.681271 |
9355f1f2a6a86e7ead64cc7c9d318a01fb1a7897 | 186 | exs | Elixir | priv/repo/migrations/20180806134037_add_handler_to_job_template.exs | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180806134037_add_handler_to_job_template.exs | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | 3 | 2018-08-17T13:42:45.000Z | 2018-08-17T17:05:11.000Z | priv/repo/migrations/20180806134037_add_handler_to_job_template.exs | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | defmodule DataProcessor.Repo.Migrations.AddHandlerToJobTemplate do
use Ecto.Migration
def change do
alter table(:job_templates) do
add :handler, :string
end
end
end
| 18.6 | 66 | 0.741935 |
935668425194a2e7ba7e2d05ce16b8389a502f2e | 3,206 | exs | Elixir | test/phoenix/phoenix_test.exs | rolandtritsch/appsignal-elixir | 27e001f144e7b13ff9d9fd5ea6cb30dd44055569 | [
"MIT"
] | 1 | 2020-08-11T08:13:25.000Z | 2020-08-11T08:13:25.000Z | test/phoenix/phoenix_test.exs | gjaldon/appsignal-elixir | 36d872d96d4c53152e365558bcfe96a3ba689fb9 | [
"MIT"
] | null | null | null | test/phoenix/phoenix_test.exs | gjaldon/appsignal-elixir | 36d872d96d4c53152e365558bcfe96a3ba689fb9 | [
"MIT"
] | 1 | 2020-10-08T20:22:54.000Z | 2020-10-08T20:22:54.000Z | defmodule UsingAppsignalPhoenix do
def call(conn, _opts) do
conn |> Plug.Conn.assign(:called?, true)
end
defoverridable call: 2
use Appsignal.Phoenix
end
defmodule UsingAppsignalPhoenixWithException do
def call(_conn, _opts) do
raise "exception!"
end
defoverridable call: 2
use Appsignal.Pho... | 27.637931 | 98 | 0.662508 |
93566d5941a0fb5dca4df10236a9d00bf251f143 | 1,215 | exs | Elixir | mix.exs | brianlow/ex_aws_transcribe | cc3c136c6432ae77960964422a409dc19da0460f | [
"MIT"
] | 1 | 2020-05-01T00:00:20.000Z | 2020-05-01T00:00:20.000Z | mix.exs | brianlow/ex_aws_transcribe | cc3c136c6432ae77960964422a409dc19da0460f | [
"MIT"
] | 2 | 2019-12-01T08:12:29.000Z | 2020-05-22T18:28:20.000Z | mix.exs | brianlow/ex_aws_transcribe | cc3c136c6432ae77960964422a409dc19da0460f | [
"MIT"
] | 2 | 2020-05-22T06:02:42.000Z | 2021-04-29T23:17:09.000Z | defmodule ExAwsTranscribe.MixProject do
use Mix.Project
@version "0.2.5"
def project do
[
app: :ex_aws_transcribe,
version: @version,
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
description: "AWS Transcribe service module for ex_aws",
source_url: "https://githu... | 22.5 | 75 | 0.541564 |
93566e2a35287b77600ae789c0b58f56d84cedf5 | 1,774 | exs | Elixir | test/object_test.exs | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 8 | 2021-03-12T15:35:09.000Z | 2022-03-06T06:37:49.000Z | test/object_test.exs | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 15 | 2019-09-06T07:58:01.000Z | 2021-03-06T17:04:46.000Z | test/object_test.exs | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 5 | 2021-10-01T12:52:28.000Z | 2022-02-02T19:29:56.000Z | # Diode Server
# Copyright 2021 Diode
# Licensed under the Diode License, Version 1.1
defmodule TicketTest do
use ExUnit.Case
alias Object.Server
# Testing forward compatibility of server tickets
test "forward/backward compatibility" do
classic =
{:server, "host", 1, 2, "a", "signature"}
|> Ob... | 26.878788 | 92 | 0.631342 |
93568b809f1e534861ea510913e0c26439b22aa7 | 2,494 | ex | Elixir | lib/exqlite/sqlite3_nif.ex | mindreframer/exqlite | b7852b65a9b11c0f677138a412d3a656040032d8 | [
"MIT"
] | null | null | null | lib/exqlite/sqlite3_nif.ex | mindreframer/exqlite | b7852b65a9b11c0f677138a412d3a656040032d8 | [
"MIT"
] | null | null | null | lib/exqlite/sqlite3_nif.ex | mindreframer/exqlite | b7852b65a9b11c0f677138a412d3a656040032d8 | [
"MIT"
] | null | null | null | defmodule Exqlite.Sqlite3NIF do
@moduledoc """
This is the module where all of the NIF entry points reside. Calling this directly
should be avoided unless you are aware of what you are doing.
"""
@on_load :load_nifs
@type db() :: reference()
@type statement() :: reference()
@type reason() :: :atom | S... | 38.96875 | 85 | 0.647955 |
935691013e2a355632118ad61083f88638d2c0e1 | 1,068 | ex | Elixir | coherence_demo_confirm_members/test/support/conn_case.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_confirm_members/test/support/conn_case.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_confirm_members/test/support/conn_case.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | defmodule CoherenceDemoWeb.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 datastructures and query the data layer.
Finally, ... | 27.384615 | 75 | 0.727528 |
9356b7c2352e2305311f7577506c8204d9594cac | 3,190 | exs | Elixir | test/setup_worker_test.exs | esl/buildex_poller | dd535ea5cb903a0a476b5310e7d9127672206b08 | [
"Apache-2.0"
] | 4 | 2019-04-06T21:36:13.000Z | 2021-03-11T23:23:30.000Z | test/setup_worker_test.exs | esl/buildex_poller | dd535ea5cb903a0a476b5310e7d9127672206b08 | [
"Apache-2.0"
] | 1 | 2019-01-29T20:02:20.000Z | 2019-01-30T09:22:12.000Z | test/setup_worker_test.exs | esl/buildex_poller | dd535ea5cb903a0a476b5310e7d9127672206b08 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:27:11.000Z | 2022-03-06T10:20:25.000Z | defmodule Buildex.Poller.SetupWorkerTest do
use ExUnit.Case, async: false
import Mox
alias Buildex.Poller
alias Buildex.Poller.{SetupWorker, PollerSupervisor}
alias Buildex.Poller.Repository.GithubFake
# Make sure mocks are verified when the test exits
setup :set_mox_global
setup :verify_on_exit!
d... | 27.264957 | 88 | 0.621944 |
9356cbefa35e1cd8514ecc99c31ea721167dbb7e | 4,780 | ex | Elixir | lib/central/helpers/styling_helpers.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/helpers/styling_helpers.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | null | null | null | lib/central/helpers/styling_helpers.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Helpers.StylingHelper do
alias HTMLIcons
@spec colours(atom) :: {String.t(), String.t(), String.t()}
def colours(:default), do: {"#555555", "#E5E5E5", "secondary"}
def colours(:report), do: {"#843534", "#f2dede", "danger"}
def colours(:primary), do: {"#007bff", "#DDEEFF", "primary"}
def ... | 28.452381 | 118 | 0.580126 |
935719a852894bb724000b79fe99c185fbfea102 | 593 | exs | Elixir | mix.exs | adamu/clova-advent-calendar | 7456ada9e320a9a4dd66c29509d513fe85a85ff9 | [
"Apache-2.0"
] | 1 | 2019-02-12T02:23:52.000Z | 2019-02-12T02:23:52.000Z | mix.exs | adamu/clova-advent-calendar | 7456ada9e320a9a4dd66c29509d513fe85a85ff9 | [
"Apache-2.0"
] | null | null | null | mix.exs | adamu/clova-advent-calendar | 7456ada9e320a9a4dd66c29509d513fe85a85ff9 | [
"Apache-2.0"
] | null | null | null | defmodule Advent.MixProject do
use Mix.Project
def project do
[
app: :advent,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_appli... | 18.53125 | 59 | 0.527825 |
93571c8177e55ffbc934f737a0f94fc990b9d47c | 1,264 | exs | Elixir | config/dev.exs | wsmoak/elm_time | 1f12d8d3267c88a1323a8e5fbae722e1fb392e81 | [
"MIT"
] | 2 | 2016-03-08T05:26:58.000Z | 2016-05-03T15:54:19.000Z | config/dev.exs | wsmoak/elm_time | 1f12d8d3267c88a1323a8e5fbae722e1fb392e81 | [
"MIT"
] | null | null | null | config/dev.exs | wsmoak/elm_time | 1f12d8d3267c88a1323a8e5fbae722e1fb392e81 | [
"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 :elm_time, ElmTime.Endpoint,
http: [port: 4000... | 29.395349 | 74 | 0.709652 |
93572efd40a3209a2623d7087918460afed1184b | 584 | exs | Elixir | mix.exs | volcov/shitty_linq_ex | 647b26030a264a5829b4fde01d1432dd815e4ffb | [
"Unlicense"
] | 4 | 2020-09-28T18:14:08.000Z | 2020-10-03T04:26:56.000Z | mix.exs | volcov/shitty_linq_ex | 647b26030a264a5829b4fde01d1432dd815e4ffb | [
"Unlicense"
] | 57 | 2020-09-28T18:16:50.000Z | 2020-10-06T17:17:06.000Z | mix.exs | volcov/shitty_linq_ex | 647b26030a264a5829b4fde01d1432dd815e4ffb | [
"Unlicense"
] | 6 | 2020-09-28T18:14:09.000Z | 2020-10-05T16:25:24.000Z | defmodule ShittyLinqEx.MixProject do
use Mix.Project
def project do
[
app: :shitty_linq_ex,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.137931 | 87 | 0.585616 |
935732d71386ae9949998193109b85f7c74fc7f9 | 7,234 | ex | Elixir | lib/ace/http2.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | null | null | null | lib/ace/http2.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | null | null | null | lib/ace/http2.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | null | null | null | defmodule Ace.HTTP2 do
@moduledoc """
**Hypertext Transfer Protocol Version 2 (HTTP/2)**
> HTTP/2 enables a more efficient use of network
> resources and a reduced perception of latency by introducing header
> field compression and allowing multiple concurrent exchanges on the
> same connection. It also i... | 28.03876 | 97 | 0.607686 |
935737ff372abc9666562116c1a4d3cd4cf2588f | 406 | ex | Elixir | lib/web/views/admin/error_view.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 5 | 2019-08-29T20:22:25.000Z | 2020-04-01T17:40:48.000Z | lib/web/views/admin/error_view.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 34 | 2019-03-06T17:53:29.000Z | 2021-09-01T01:25:23.000Z | lib/web/views/admin/error_view.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 2 | 2020-01-10T22:12:36.000Z | 2021-01-22T04:37:45.000Z | defmodule Web.Admin.ErrorView do
use Web, :view
def render("500-fallthrough.html", _assigns) do
"Something fell through and reached an error"
end
# By default, Phoenix returns the status message from
# the template name. For example, "404.html" becomes
# "Not Found".
def template_not_found(template,... | 27.066667 | 61 | 0.746305 |
93575b2733dce0fe58010db370c033cd40fa87be | 1,073 | ex | Elixir | lib/livevox/dog-client/api.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | null | null | null | lib/livevox/dog-client/api.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 1 | 2018-01-25T21:49:40.000Z | 2018-01-25T21:49:40.000Z | lib/livevox/dog-client/api.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 2 | 2018-01-25T12:29:59.000Z | 2018-05-25T15:43:26.000Z | defmodule Dog.Api do
use HTTPotion.Base
def default_query do
%{
api_key: Application.get_env(:livevox, :data_dog_api_key),
application_key: Application.get_env(:livevox, :data_dog_application_key)
}
end
# --------------- Process request ---------------
defp process_url(url) do
"https... | 23.844444 | 83 | 0.627213 |
93575b8da71c492374604290f6f885fc8d6c879e | 4,057 | ex | Elixir | lib/astro_ex/unit/radian.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | lib/astro_ex/unit/radian.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | lib/astro_ex/unit/radian.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | defmodule AstroEx.Unit.Radian do
@moduledoc """
Radian
"""
alias AstroEx.Unit.{Arcmin, Arcsec, Degrees, DMS, HMS}
alias AstroEx.Utils.Math
@enforce_keys [:value]
defstruct [:value]
@type t :: %__MODULE__{value: integer() | float()}
@doc """
## Examples
iex> AstroEx.Unit.Radian.new(:math... | 23.725146 | 76 | 0.595267 |
93576294864235539ee7ee4213a8a104b903a6d6 | 1,063 | ex | Elixir | lib/exbee/frames/at_command_queue_frame.ex | msm/exbee | b99b7996c5da9092472371b8bc0bd5e7c2daa3f6 | [
"Apache-2.0"
] | 6 | 2017-06-18T14:29:59.000Z | 2019-07-28T15:47:02.000Z | lib/exbee/frames/at_command_queue_frame.ex | msm/exbee | b99b7996c5da9092472371b8bc0bd5e7c2daa3f6 | [
"Apache-2.0"
] | 3 | 2018-01-28T22:00:06.000Z | 2019-10-14T11:14:47.000Z | lib/exbee/frames/at_command_queue_frame.ex | msm/exbee | b99b7996c5da9092472371b8bc0bd5e7c2daa3f6 | [
"Apache-2.0"
] | 4 | 2016-09-22T02:50:34.000Z | 2019-10-14T07:43:38.000Z | defmodule Exbee.ATCommandQueueFrame do
@moduledoc """
Query or set AT parameters on a local device.
In contrast to the `Exbee.ATCommandFrame`, this frame queues new parameter values and does not
apply them until issuing either an `Exbee.ATCommandFrame`, or an `Exbee.ATCommandQueueFrame` with
`command: "AC"`
... | 33.21875 | 99 | 0.694262 |
9357784eef4c3917f5034f6c02cea04515aed1a5 | 1,879 | ex | Elixir | lib/tellurium/messaging/rabbit_connection.ex | dbuos/tellurium | 20de4468130f99f5a9003231e2c4752c227c9302 | [
"Apache-2.0"
] | null | null | null | lib/tellurium/messaging/rabbit_connection.ex | dbuos/tellurium | 20de4468130f99f5a9003231e2c4752c227c9302 | [
"Apache-2.0"
] | null | null | null | lib/tellurium/messaging/rabbit_connection.ex | dbuos/tellurium | 20de4468130f99f5a9003231e2c4752c227c9302 | [
"Apache-2.0"
] | null | null | null | defmodule RabbitConnection do
use GenServer
require Logger
alias AMQP.Connection
@reconnect_interval 5_000
@max_intents 5
defstruct [:name, :connection, :parent_pid]
def start_link(opts) do
GenServer.start_link(__MODULE__, opts, opts)
end
@impl true
def init(opts) do
url = Keyword.get(op... | 27.231884 | 90 | 0.654071 |
93577924f7ecdefbde45cbe6831f1219aa7e18fb | 841 | ex | Elixir | secounter/test/support/conn_case.ex | webdizz/fun-web-dev | 5059d3e12de4b34c7e7c0e14bd25d7c5a69c2023 | [
"Apache-2.0"
] | null | null | null | secounter/test/support/conn_case.ex | webdizz/fun-web-dev | 5059d3e12de4b34c7e7c0e14bd25d7c5a69c2023 | [
"Apache-2.0"
] | 1 | 2016-11-18T19:08:10.000Z | 2016-11-18T19:08:10.000Z | secounter/test/support/conn_case.ex | webdizz/fun-web-dev | 5059d3e12de4b34c7e7c0e14bd25d7c5a69c2023 | [
"Apache-2.0"
] | 1 | 2016-11-18T18:57:59.000Z | 2016-11-18T18:57:59.000Z | defmodule Secounter.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 and query models.
Finally, if the test case interacts with the d... | 24.028571 | 56 | 0.722949 |
93578c1e6cf4ccb1f8869b962952c766d8a7728a | 110 | ex | Elixir | lib/challenge/repo.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | null | null | null | lib/challenge/repo.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | 4 | 2021-01-18T22:25:19.000Z | 2021-01-20T17:36:23.000Z | lib/challenge/repo.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | null | null | null | defmodule Challenge.Repo do
use Ecto.Repo,
otp_app: :challenge,
adapter: Ecto.Adapters.Postgres
end
| 18.333333 | 35 | 0.736364 |
93579a84c6e1780197f1baace7afa2ab75eef731 | 1,629 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/table_row_style_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/table_row_style_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/table_row_style_suggestion_state.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... | 34.659574 | 166 | 0.754451 |
9357b56b000042a899c5afe6711f4b23487ca70b | 2,284 | exs | Elixir | backend/config/dev.exs | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | backend/config/dev.exs | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | backend/config/dev.exs | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :backend, Backend.Repo,
database: "./db/dev.db"
# 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... | 32.169014 | 86 | 0.709282 |
9357bd5d4a18443a3959dc4a2734fbcc9cebc772 | 376 | ex | Elixir | web/views/error_view.ex | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | defmodule Forensic.ErrorView do
use Forensic.Web, :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(_templat... | 20.888889 | 47 | 0.699468 |
9357d222a3df67523b9c9efc62ed08ce19d8635f | 2,594 | exs | Elixir | kousa/test/broth/_casts/change_room_creator_test.exs | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | 1 | 2021-05-03T17:10:36.000Z | 2021-05-03T17:10:36.000Z | kousa/test/broth/_casts/change_room_creator_test.exs | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | kousa/test/broth/_casts/change_room_creator_test.exs | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | defmodule BrothTest.ChangeRoomCreatorTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias Beef.Users
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
... | 28.822222 | 98 | 0.63377 |
9357daaaa3876c4ab71fb46caffea5ac886fa341 | 29,446 | ex | Elixir | deps/ecto/lib/ecto/repo/schema.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | deps/ecto/lib/ecto/repo/schema.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/repo/schema.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | defmodule Ecto.Repo.Schema do
# The module invoked by user defined repos
# for schema related functionality.
@moduledoc false
alias Ecto.Changeset
alias Ecto.Changeset.Relation
require Ecto.Query
@doc """
Implementation for `Ecto.Repo.insert_all/3`.
"""
def insert_all(repo, adapter, schema, rows, ... | 36.761548 | 114 | 0.628371 |
9357ef53517069f1d1900f50088b045587075e76 | 5,968 | ex | Elixir | lib/distillery/releases/checks/loaded_orphaned_apps.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 3,097 | 2016-07-18T13:59:00.000Z | 2022-03-29T00:27:23.000Z | lib/distillery/releases/checks/loaded_orphaned_apps.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 672 | 2016-07-18T18:25:29.000Z | 2022-02-24T17:39:30.000Z | lib/distillery/releases/checks/loaded_orphaned_apps.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 483 | 2016-07-22T14:08:49.000Z | 2022-03-21T09:35:23.000Z | defmodule Distillery.Releases.Checks.LoadedOrphanedApps do
@moduledoc """
This check determines whether or not any of the applications in the release
satisfy all three of the following conditions:
* Have a start type of `:load` or `:none`
* Are not included by any other application in the release (orphan... | 45.212121 | 124 | 0.707607 |
9358121890eba2ec0c0e793e2522564779076186 | 1,630 | ex | Elixir | lib/blogger_web.ex | andrewbloom37/blog-app | a5e49a88340d172cfee80adc806728b23900ec11 | [
"MIT"
] | null | null | null | lib/blogger_web.ex | andrewbloom37/blog-app | a5e49a88340d172cfee80adc806728b23900ec11 | [
"MIT"
] | 3 | 2020-07-17T06:58:11.000Z | 2021-05-09T03:51:05.000Z | lib/blogger_web.ex | andrewbloom37/blog-app | a5e49a88340d172cfee80adc806728b23900ec11 | [
"MIT"
] | null | null | null | defmodule BloggerWeb 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 BloggerWeb, :controller
use BloggerWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.285714 | 83 | 0.688957 |
93582d9ceea6e8701c5dfc75d32db45d03f5fa57 | 289 | ex | Elixir | apps/tai/lib/tai/venue_adapters/ftx/order_status.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/ftx/order_status.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/ftx/order_status.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Ftx.OrderStatus do
def from_venue("new"), do: :create_accepted
# TODO: This probably needs to handle partially filled also...
def from_venue("open"), do: :open
# TODO: How should closed be properly handled?
def from_venue("closed"), do: :canceled
end
| 36.125 | 64 | 0.737024 |
93583900140ae353118da4d3625bb5002dd3e848 | 412 | ex | Elixir | lib/ex_state/result.ex | 8thlight/ex_state | eb1beb4fe5db271232cb24c6f54668e4f5307c92 | [
"MIT"
] | 99 | 2020-05-17T16:46:22.000Z | 2022-01-14T21:50:18.000Z | lib/ex_state/result.ex | 8thlight/ex_state | eb1beb4fe5db271232cb24c6f54668e4f5307c92 | [
"MIT"
] | 2 | 2020-05-26T18:54:50.000Z | 2020-05-27T16:14:27.000Z | lib/ex_state/result.ex | 8thlight/ex_state | eb1beb4fe5db271232cb24c6f54668e4f5307c92 | [
"MIT"
] | 2 | 2021-12-16T10:52:03.000Z | 2021-12-22T12:57:30.000Z | defmodule ExState.Result do
def get({:ok, result}), do: result
def map({:ok, result}, f), do: {:ok, f.(result)}
def map(e, _), do: e
def flat_map({:ok, result}, f), do: f.(result)
def flat_map(e, _), do: e
defmodule Multi do
def extract({:ok, result}, key) do
{:ok, Map.get(result, key)}
end... | 20.6 | 50 | 0.572816 |
9358391771767c93db43e7e50b9bb0cd9b55f022 | 57 | ex | Elixir | elixir-match/app/lib/match_web/views/page_view.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match_web/views/page_view.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match_web/views/page_view.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule MatchWeb.PageView do
use MatchWeb, :view
end
| 14.25 | 30 | 0.789474 |
9358576deb99626b58984a31a9c139a38d9c2c64 | 1,100 | exs | Elixir | test/unit/token_lexer/token_lexer_test.exs | RobertDober/EarmarkParser2 | a50053a20e7aa2d5e6041d778dd9f19bb043da1b | [
"Apache-2.0"
] | null | null | null | test/unit/token_lexer/token_lexer_test.exs | RobertDober/EarmarkParser2 | a50053a20e7aa2d5e6041d778dd9f19bb043da1b | [
"Apache-2.0"
] | null | null | null | test/unit/token_lexer/token_lexer_test.exs | RobertDober/EarmarkParser2 | a50053a20e7aa2d5e6041d778dd9f19bb043da1b | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkParser2.Unit.TokenLexer.TokenLexerTest do
use Support.LexerTest
describe "tokens that are limited in length" do
test "too long an ol is not an ol" do
input = "1234567890. "
expected = [{:text, "1234567890.", len: 11}, {:ws, " ", len: 2}]
assert tokenize(input) == expected
... | 22.916667 | 71 | 0.502727 |
935859b29c634847286edf432bc3632ebe23f8b1 | 11,994 | exs | Elixir | test/elixir/test/all_docs_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/test/all_docs_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2018-02-08T23:08:43.000Z | 2018-02-08T23:08:43.000Z | test/elixir/test/all_docs_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule AllDocsTest do
use CouchTestCase
@moduletag :all_docs
@moduletag kind: :single_node
@moduledoc """
Test CouchDB _all_docs
This is a port of the all_docs.js suite
"""
# TODO: do we need to bring this in?
# var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"}, {w: 3});
@tag :wit... | 26.712695 | 88 | 0.525096 |
93587d481e72e57117a68a5e023145a027422eec | 2,921 | ex | Elixir | lib/painter.ex | zediogoviana/keyboard_heatmap | 5b99e0055e5fdf857884103531bac5f8a5e34ebf | [
"MIT"
] | 1 | 2021-05-04T21:51:06.000Z | 2021-05-04T21:51:06.000Z | lib/painter.ex | zediogoviana/keyboard_heatmap | 5b99e0055e5fdf857884103531bac5f8a5e34ebf | [
"MIT"
] | null | null | null | lib/painter.ex | zediogoviana/keyboard_heatmap | 5b99e0055e5fdf857884103531bac5f8a5e34ebf | [
"MIT"
] | null | null | null | defmodule Painter do
import Mogrify
@key_size 90
def perform(frequencies, keyboard) do
base_image = draw_base_image(keyboard)
keyboard
|> Enum.with_index()
|> draw_keyboard(base_image, frequencies)
|> create(path: ".")
end
defp draw_keyboard([], image, _frequencies), do: image
defp ... | 24.965812 | 176 | 0.634714 |
9358c480dc168199314e77ee2a23a96fc8497943 | 856 | ex | Elixir | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/service_provider_response_list.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.BotService/lib/microsoft/azure/management/preview/bot_service/model/service_provider_response_list.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/service_provider_response_list.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.BotService.Model.ServiceProviderResponseList do
@moduledoc """
The list of bot service service providers re... | 28.533333 | 113 | 0.741822 |
9358c6636d7bf69f28ba149b802a259e2bac9e5e | 1,412 | exs | Elixir | test/hex/config_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | test/hex/config_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | test/hex/config_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Hex.ConfigTest do
use ExUnit.Case, async: false
alias Hex.Config
test "find_config_home/1 when no env var flags are set" do
System.delete_env("HEX_HOME")
{:ok, dir} = Config.find_config_home(:user_data)
assert dir =~ ".hex"
end
test "find_config_home/1 when HEX_HOME is set" do
Syst... | 31.377778 | 83 | 0.661473 |
93590aee052beaa6b8b856181bca7c8163c2cfd0 | 196 | exs | Elixir | test/kalbu_web/controllers/page_controller_test.exs | KalvadTech/kalbu | a814aad1c276b44bc3366b758118795fb590d2df | [
"BSD-3-Clause"
] | null | null | null | test/kalbu_web/controllers/page_controller_test.exs | KalvadTech/kalbu | a814aad1c276b44bc3366b758118795fb590d2df | [
"BSD-3-Clause"
] | null | null | null | test/kalbu_web/controllers/page_controller_test.exs | KalvadTech/kalbu | a814aad1c276b44bc3366b758118795fb590d2df | [
"BSD-3-Clause"
] | null | null | null | defmodule KalbuWeb.PageControllerTest do
use KalbuWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.777778 | 60 | 0.673469 |
935921459de6574d16a299b366517f9fa859ddbd | 1,916 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/order_by.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/order_by.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/order_by.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 ... | 34.214286 | 132 | 0.707203 |
93594bdfbdd44dac46b01ac8f304da010ba1fa74 | 8,539 | ex | Elixir | lib/docusign/api/connect_configurations.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/api/connect_configurations.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/api/connect_configurations.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # 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 DocuSign.Api.ConnectConfigurations do
@moduledoc """
API calls for all endpoints tagged `ConnectConfigurations`.
"""
alias DocuSign.Conne... | 42.695 | 742 | 0.704766 |
93594cf82621071ea313154fde94e8bde51a16d6 | 73 | exs | Elixir | elixir-patrick/run.exs | therecluse26/challenge-2019-06 | ab531e953334c61a5f75757ac0078a0f6330d91e | [
"MIT"
] | null | null | null | elixir-patrick/run.exs | therecluse26/challenge-2019-06 | ab531e953334c61a5f75757ac0078a0f6330d91e | [
"MIT"
] | null | null | null | elixir-patrick/run.exs | therecluse26/challenge-2019-06 | ab531e953334c61a5f75757ac0078a0f6330d91e | [
"MIT"
] | null | null | null | IO.puts Enum.sum Integer.digits (fn n->Enum.reduce 1..n,1,&*/2 end).(100) | 73 | 73 | 0.671233 |
93595d500bfc0d6e3bc9e585fa7751ff1d3dfba7 | 150 | exs | Elixir | elixir/hangman/dictionnary/test/dictionnary_test.exs | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | elixir/hangman/dictionnary/test/dictionnary_test.exs | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | elixir/hangman/dictionnary/test/dictionnary_test.exs | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | defmodule DictionnaryTest do
use ExUnit.Case
doctest Dictionnary
test "greets the world" do
assert Dictionnary.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
9359853af21909a08492374c6147a4de74852895 | 1,380 | ex | Elixir | lib/groupher_server_web/endpoint.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server_web/endpoint.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server_web/endpoint.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :groupher_server
socket("/socket", GroupherServerWeb.UserSocket)
plug(Plug.RequestId)
plug(Plug.Logger)
plug(
Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Jason
)
plug(Plug.M... | 21.5625 | 96 | 0.627536 |
9359b46398fbde8dada443d2eaa13ee40f9d25f2 | 680 | ex | Elixir | test/support/data_case.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | test/support/data_case.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | 3 | 2020-09-20T22:59:35.000Z | 2020-09-20T23:00:47.000Z | test/support/data_case.ex | SEGURANCA-DA-INFORMACAO-LGPD/sakavault_api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | defmodule SakaVault.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to... | 29.565217 | 60 | 0.745588 |
9359c8037ca4c110e4c7d9a1627bd01afb11d04d | 1,378 | ex | Elixir | lib/still/compiler/collections.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | lib/still/compiler/collections.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | lib/still/compiler/collections.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | defmodule Still.Compiler.Collections do
@moduledoc """
Keeps track of collections.
"""
use GenServer
def start_link(_) do
GenServer.start_link(__MODULE__, %{}, name: __MODULE__)
end
@doc """
Resets the collections.
"""
def reset do
GenServer.call(__MODULE__, :reset)
end
@doc """
Re... | 20.567164 | 79 | 0.634253 |
9359d028c720ac20c1a8529010a938f77055719e | 1,707 | ex | Elixir | lib/mix/lib/mix/tasks/compile.leex.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.leex.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.leex.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Leex do
alias Mix.Tasks.Compile.Erlang
use Mix.Task
@hidden true
@shortdoc "Compile Leex source files"
@recursive true
@manifest ".compile.leex"
@moduledoc """
A task to compile Leex source files.
When this task runs, it will check the modification time of every file, a... | 27.095238 | 84 | 0.671939 |
935a08aeee117f7d433676fd60942ac8a3fd7936 | 3,772 | ex | Elixir | lib/iptools.ex | kianmeng/iptools | 62a51dbdcdc8a25d98bef4b7a45e84e4d36070c4 | [
"MIT"
] | null | null | null | lib/iptools.ex | kianmeng/iptools | 62a51dbdcdc8a25d98bef4b7a45e84e4d36070c4 | [
"MIT"
] | null | null | null | lib/iptools.ex | kianmeng/iptools | 62a51dbdcdc8a25d98bef4b7a45e84e4d36070c4 | [
"MIT"
] | null | null | null | defmodule Iptools do
@rfc1918_ranges [
{"10.0.0.0", "10.255.255.255"},
{"192.168.0.0", "192.168.255.255"},
{"172.16.0.0", "172.31.255.255"}
]
@other_reserved_ranges [
{"0.0.0.0", "0.255.255.255"},
{"100.64.0.0", "100.127.255.255"},
{"127.0.0.0", "127.255.255.255"},
{"169.254.0.0", "16... | 30.666667 | 111 | 0.614263 |
935a2ea43cd91350e209329c40bcc4afb45c4b64 | 634 | ex | Elixir | lib/ambrosia_web/views/api/v1/survey_view.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 2 | 2020-05-25T05:28:31.000Z | 2020-05-25T08:10:43.000Z | lib/ambrosia_web/views/api/v1/survey_view.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 9 | 2020-05-25T16:39:15.000Z | 2020-11-11T16:51:37.000Z | lib/ambrosia_web/views/api/v1/survey_view.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | null | null | null | defmodule AmbrosiaWeb.SurveyView do
use AmbrosiaWeb, :view
alias AmbrosiaWeb.SurveyView
def render("index.json", %{surveys: surveys}) do
%{data: render_many(surveys, SurveyView, "survey.json")}
end
def render("show.json", %{survey: survey}) do
%{data: render_one(survey, SurveyView, "survey.json")}
... | 26.416667 | 60 | 0.675079 |
935a7b28c9a470cfa206704915c280db6c91fb51 | 2,685 | ex | Elixir | apps/omg_watcher_info/test/support/factory.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/test/support/factory.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/test/support/factory.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.816901 | 114 | 0.715084 |
935a84fbfc32e662023109ef0a6148e197f5a369 | 1,257 | ex | Elixir | lib/arrow/repo/migrator.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | lib/arrow/repo/migrator.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | lib/arrow/repo/migrator.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | defmodule Arrow.Repo.Migrator do
@moduledoc """
GenServer which runs on startup to run Ecto migrations, then terminates.
"""
use GenServer, restart: :transient
require Logger
@opts [module: Ecto.Migrator, migrate_synchronously?: false]
def start_link(opts) do
opts = Keyword.merge(@opts, opts)
Ge... | 24.647059 | 84 | 0.648369 |
935a874c7bf5a07d37fb4559ccae2e8799578e66 | 1,895 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_set_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_set_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_set_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.454545 | 151 | 0.741953 |
935ad0c36e107c85c9c004f125569c00c80eabb3 | 1,208 | exs | Elixir | config/config.exs | sebbean/phoenix-trello | c698ef9bdd29553aff941cc1f31778ee09c974d6 | [
"MIT"
] | 1 | 2016-05-25T00:39:55.000Z | 2016-05-25T00:39:55.000Z | config/config.exs | sebbean/phoenix-trello | c698ef9bdd29553aff941cc1f31778ee09c974d6 | [
"MIT"
] | null | null | null | config/config.exs | sebbean/phoenix-trello | c698ef9bdd29553aff941cc1f31778ee09c974d6 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :phoenix_trello, PhoenixTrello.Endpoint,
url: [hos... | 30.2 | 86 | 0.759106 |
935adb86326da7feee933c7db494b975f78cda8a | 392 | ex | Elixir | lib/mipha_web/plugs/current_user.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | lib/mipha_web/plugs/current_user.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | lib/mipha_web/plugs/current_user.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule MiphaWeb.Plug.CurrentUser do
@moduledoc """
A `Plug` to assign `:current_user` && `:user_token` based on the session
"""
import Plug.Conn
import MiphaWeb.Session, only: [current_user: 1, user_token: 1]
def init(opts), do: opts
def call(conn, _opts) do
conn
|> assign(:current_user, cur... | 23.058824 | 74 | 0.681122 |
935ae5de6e74b8c243da12aef99e2828c4e8b989 | 1,113 | exs | Elixir | config/config.exs | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | 7 | 2016-12-25T08:26:08.000Z | 2021-08-15T01:23:53.000Z | config/config.exs | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | null | null | null | config/config.exs | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | 1 | 2020-09-07T06:59:55.000Z | 2020-09-07T06:59:55.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.903226 | 73 | 0.750225 |
935b1b97ff8c1c74159250a11e67047b3ba98f1b | 1,425 | ex | Elixir | web/web.ex | Sam-Dowling/DiscoveryApi | d52c178daa8f6a2a9e5685974976ca9dea020e01 | [
"MIT"
] | null | null | null | web/web.ex | Sam-Dowling/DiscoveryApi | d52c178daa8f6a2a9e5685974976ca9dea020e01 | [
"MIT"
] | null | null | null | web/web.ex | Sam-Dowling/DiscoveryApi | d52c178daa8f6a2a9e5685974976ca9dea020e01 | [
"MIT"
] | null | null | null | defmodule DiscoveryApi.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use DiscoveryApi.Web, :controller
use DiscoveryApi.Web, :view
The definitions below will be executed for every view,
controller, etc, s... | 20.955882 | 88 | 0.690526 |
935b32ce9498e1712f36e00135217026d3a5103b | 4,291 | ex | Elixir | lib/bitcoin/script/opcodes.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | lib/bitcoin/script/opcodes.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 2 | 2019-04-22T04:24:39.000Z | 2019-04-26T07:03:59.000Z | lib/bitcoin/script/opcodes.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.Script.Opcodes do
defmacro __using__(_opts) do
quote do
@op [ # source https://github.com/bitcoin/bitcoin/blob/master/src/script/script.h
# push value
OP_0: 0x00,
OP_FALSE: 0x00,
OP_PUSHDATA1: 0x4c,
OP_PUSHDATA2: 0x4d,
OP_PUSHDATA4: 0x4e,
... | 23.320652 | 134 | 0.523654 |
935bd7b92200bf5f9ee11da2b6fdaf12aea712b7 | 400 | exs | Elixir | presentation/step6.exs | danj3/scripting | b37ec13897368910e04b48a73a40d873258e2897 | [
"Apache-2.0"
] | 9 | 2019-11-20T00:42:54.000Z | 2020-02-24T00:16:47.000Z | presentation/step6.exs | danj3/scripting | b37ec13897368910e04b48a73a40d873258e2897 | [
"Apache-2.0"
] | null | null | null | presentation/step6.exs | danj3/scripting | b37ec13897368910e04b48a73a40d873258e2897 | [
"Apache-2.0"
] | null | null | null | defmodule Step6 do
@moduledoc "Incorporate Scripting"
use Scripting
@switches [ app: :string ]
@aliases [ a: :app ]
@doc "\nhelp documentation for this verb"
command( "verb", [ "alias" ] ) do
IO.inspect( opts: opts ) # parsed switches that precede the verb
IO.inspect( args: args ) # positional arg... | 23.529412 | 68 | 0.68 |
935c3959a24d4cad881682c15e293e6730cbcca0 | 7,864 | ex | Elixir | lib/screens/solari_screen_data.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/solari_screen_data.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/solari_screen_data.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.SolariScreenData do
@moduledoc false
alias Screens.Config.{Query, Solari, State}
alias Screens.Config.Query.{Opts, Params}
alias Screens.Config.Solari.Section
alias Screens.Config.Solari.Section.{Headway, Layout}
alias Screens.Config.Solari.Section.Layout.{Bidirectional, Upcoming}
alias... | 30.599222 | 101 | 0.66264 |
935c6522b0d77b87747a0404e4218ac80c49cde4 | 3,007 | ex | Elixir | lib/ecto/query/builder/distinct.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/distinct.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/distinct.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.Distinct do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a list of quoted expressions.
iex> escape(quote do true end, [], __ENV__)
{true, %{}}
iex> escape(quote do [x.x, 13] end, [x: 0], __ENV__)
{[{:{}, [], [{:{}, [], [:., [], [{:{}, [], [:... | 27.587156 | 92 | 0.59295 |
935c7d25a8c29ff9c6f5c132016141e72e02209c | 2,960 | ex | Elixir | lib/ecto/exceptions.ex | liveforeverx/ecto | 42a812b765762f62cc260a994897a95492ffae28 | [
"Apache-2.0"
] | null | null | null | lib/ecto/exceptions.ex | liveforeverx/ecto | 42a812b765762f62cc260a994897a95492ffae28 | [
"Apache-2.0"
] | null | null | null | lib/ecto/exceptions.ex | liveforeverx/ecto | 42a812b765762f62cc260a994897a95492ffae28 | [
"Apache-2.0"
] | null | null | null | alias Ecto.Query.Util
defmodule Ecto.QueryError do
import Inspect.Ecto.Query, only: [pp_from_query: 2]
defexception [:reason, :type, :query, :expr, :file, :line]
def message(e) do
if e.type && e.query && e.file && e.line do
file = Path.relative_to_cwd(e.file)
"""
#{Exception.format_file_l... | 25.299145 | 91 | 0.640203 |
935c83618bd4be54031f9b842465a229c51562e6 | 1,546 | exs | Elixir | mix.exs | amalbuquerque/interceptor | b34e65a4d28ec3afd00f8abe3b5926a6e98122d0 | [
"MIT"
] | 40 | 2018-09-30T13:39:20.000Z | 2022-01-07T12:47:45.000Z | mix.exs | amalbuquerque/interceptor | b34e65a4d28ec3afd00f8abe3b5926a6e98122d0 | [
"MIT"
] | 6 | 2019-02-17T22:21:17.000Z | 2021-04-26T21:47:59.000Z | mix.exs | amalbuquerque/interceptor | b34e65a4d28ec3afd00f8abe3b5926a6e98122d0 | [
"MIT"
] | 5 | 2020-05-16T00:31:45.000Z | 2021-07-16T13:39:05.000Z | defmodule Interceptor.MixProject do
use Mix.Project
def project do
[
app: :interceptor,
package: package(),
source_url: "https://github.com/amalbuquerque/interceptor",
version: "0.5.4",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_... | 24.15625 | 84 | 0.586028 |
935c8b6469dc77655ade6f1f3a02df5b0517018a | 545 | ex | Elixir | solomon/web/models/system.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | solomon/web/models/system.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | solomon/web/models/system.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | defmodule Solomon.System do
use Solomon.Web, :model
schema "systems" do
field :name, :string
field :description, :string
end
@required_fields ~w(name)a
@optional_fields ~w(description)a
def changeset(model, params \\ :empty) do
model
|> cast(params, @required_fields ++ @optional_fields)
... | 20.961538 | 57 | 0.689908 |
935c9d13d71a73958b6c48656ca015c248099980 | 2,329 | ex | Elixir | apps/core/test/support/prm_factories/legal_entity_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/test/support/prm_factories/legal_entity_factory.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/test/support/prm_factories/legal_entity_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMFactories.LegalEntityFactory do
@moduledoc false
defmacro __using__(_opts) do
quote do
alias Core.LegalEntities.LegalEntity
alias Core.LegalEntities.RelatedLegalEntity
alias Ecto.UUID
def legal_entity_factory do
%LegalEntity{
accreditation: %{
... | 29.858974 | 108 | 0.522112 |
935c9f85b9411689812045e1fa21b2c36dd4c431 | 2,598 | ex | Elixir | lib/nodex/nodes_watcher_supervisor.ex | mendrugory/nodex | 87d878f78b61f134a685c1b034d2f56a40701f8e | [
"MIT"
] | 7 | 2017-11-16T13:32:54.000Z | 2019-05-24T13:45:15.000Z | lib/nodex/nodes_watcher_supervisor.ex | mendrugory/nodex | 87d878f78b61f134a685c1b034d2f56a40701f8e | [
"MIT"
] | null | null | null | lib/nodex/nodes_watcher_supervisor.ex | mendrugory/nodex | 87d878f78b61f134a685c1b034d2f56a40701f8e | [
"MIT"
] | 1 | 2020-04-29T08:00:26.000Z | 2020-04-29T08:00:26.000Z | defmodule Nodex.NodesWatcherSupervisor do
use Supervisor
alias Nodex.NodesWatcher
require Logger
@wait_time_to_connect_default_nodes_watcher 200
@doc """
It starts the `Nodex.NodesWatcherSupervisor`.
"""
def start_link() do
Supervisor.start_link __MODULE__, [], name: __MODULE__
end
def i... | 27.638298 | 90 | 0.671286 |
935cc54dc6c511e8afd1d8b568c25a11098e335e | 1,988 | exs | Elixir | config/prod.exs | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | config/prod.exs | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | config/prod.exs | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"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,
# ... | 35.5 | 66 | 0.711268 |
935ccabd9d352875244edb8c167c3b2369d23751 | 11,506 | ex | Elixir | lib/rtp.ex | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 7 | 2018-12-10T13:50:05.000Z | 2020-10-20T14:16:42.000Z | lib/rtp.ex | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | null | null | null | lib/rtp.ex | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 4 | 2019-01-09T17:46:44.000Z | 2020-02-02T12:00:04.000Z | ### ----------------------------------------------------------------------
###
### Heavily modified version of Peter Lemenkov's STUN encoder. Big ups go to him
### for his excellent work in this area.
###
### @maintainer: Lee Sylvester <lee.sylvester@gmail.com>
###
### Copyright (c) 2012 Peter Lemenkov <lemenkov@gmail.... | 30.199475 | 97 | 0.602468 |
935d01b59fe553bbf52c5adeef4e312c3f9bd8d9 | 404 | ex | Elixir | lib/ua_inspector/result.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/ua_inspector/result.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/ua_inspector/result.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | 1 | 2020-01-30T18:55:12.000Z | 2020-01-30T18:55:12.000Z | defmodule UAInspector.Result do
@moduledoc """
Result struct.
"""
alias UAInspector.Result
@type t :: %__MODULE__{
user_agent: String.t,
client: Result.Client.t | :unknown,
device: Result.Device.t | :unknown,
os: Result.OS.t | :unknown
}
defstruct [
user_agent: "",
... | 18.363636 | 43 | 0.569307 |
935d317befca6cfecd43060562afc32eade514b9 | 3,407 | exs | Elixir | tests/codec/test.exs | pilotier/nimler | bc80503d9e300ba59889f533b79dc51962083ba7 | [
"MIT"
] | 83 | 2019-10-20T12:04:33.000Z | 2022-03-17T01:04:26.000Z | tests/codec/test.exs | pilotier/nimler | bc80503d9e300ba59889f533b79dc51962083ba7 | [
"MIT"
] | 18 | 2019-10-12T17:56:25.000Z | 2022-03-21T03:05:02.000Z | tests/codec/test.exs | pilotier/nimler | bc80503d9e300ba59889f533b79dc51962083ba7 | [
"MIT"
] | 6 | 2020-02-21T14:00:30.000Z | 2021-11-06T04:18:38.000Z |
ExUnit.start(trace: false, seed: 0)
defmodule NimlerCodec.Test do
use ExUnit.Case, async: false
alias NimlerCodec, as: NimlerWrapper
describe "codec_options" do
test "codec_options() type check", do:
assert(:bad_type == NimlerWrapper.codec_options("asdf", 1))
test "codec_optio... | 35.863158 | 98 | 0.584972 |
935d638155f426cd61b6fcd1538c1aa1106da104 | 1,297 | ex | Elixir | test/support/router.ex | rrrene/phoenix_live_view | 140cfb3f2924cb6595b9bb2979a1963ac0de6eb8 | [
"MIT"
] | null | null | null | test/support/router.ex | rrrene/phoenix_live_view | 140cfb3f2924cb6595b9bb2979a1963ac0de6eb8 | [
"MIT"
] | null | null | null | test/support/router.ex | rrrene/phoenix_live_view | 140cfb3f2924cb6595b9bb2979a1963ac0de6eb8 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest.AlternativeLayout do
use Phoenix.View, root: ""
def render("layout.html", assigns) do
["ALTERNATE", render(assigns.view_module, assigns.view_template, assigns)]
end
end
defmodule Phoenix.LiveViewTest.Router do
use Phoenix.Router
import Phoenix.LiveView.Router
pipeline :... | 36.027778 | 112 | 0.703932 |
935d71a2775171b43d5230c835953851f7d8ed58 | 5,863 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_asset_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_asset_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_asset_metadata.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... | 68.976471 | 789 | 0.733925 |
935dc84b6a1b11aaeb4c1f7ab927cf39eb2da67f | 694 | ex | Elixir | debian/debian/preinst.ex | Project-ARTist/module-sdk-gen | 329976ecf10517460abf8a11064ceffc004806b5 | [
"Apache-2.0"
] | 1 | 2018-06-10T14:41:33.000Z | 2018-06-10T14:41:33.000Z | debian/debian/preinst.ex | Project-ARTist/module-sdk-gen | 329976ecf10517460abf8a11064ceffc004806b5 | [
"Apache-2.0"
] | 8 | 2018-06-22T12:04:32.000Z | 2019-01-18T17:04:19.000Z | debian/debian/preinst.ex | Project-ARTist/module-sdk-gen | 329976ecf10517460abf8a11064ceffc004806b5 | [
"Apache-2.0"
] | null | null | null | #!/bin/sh
# preinst script for artist-sdk
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for detai... | 19.277778 | 63 | 0.628242 |
935dcd38fccdd1648511a8db435e335f8777d1b7 | 24,086 | ex | Elixir | lib/ash/actions/read.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | lib/ash/actions/read.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | lib/ash/actions/read.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | defmodule Ash.Actions.Read do
@moduledoc false
alias Ash.Actions.{Helpers, SideLoad}
alias Ash.Engine
alias Ash.Engine.Request
alias Ash.Error.Invalid.{LimitRequired, PaginationRequired}
alias Ash.Error.Query.NoReadAction
alias Ash.Filter
alias Ash.Query.Aggregate
require Logger
require Ash.Query
... | 30.335013 | 101 | 0.565183 |
935df435f729f411c2b2977504171fc05532b1ba | 454 | ex | Elixir | lib/clhn/formatter.ex | nichochar/CLHN | 406e55a2810f93c5510f0a9145f95b2bde0fdd9c | [
"MIT"
] | 7 | 2017-05-15T20:31:13.000Z | 2022-01-02T03:44:13.000Z | lib/clhn/formatter.ex | nichochar/CLHN | 406e55a2810f93c5510f0a9145f95b2bde0fdd9c | [
"MIT"
] | 3 | 2017-02-27T03:30:25.000Z | 2021-04-28T03:59:17.000Z | lib/clhn/formatter.ex | nichochar/CLHN | 406e55a2810f93c5510f0a9145f95b2bde0fdd9c | [
"MIT"
] | null | null | null | defmodule Clhn.Formatter do
@max_columns 150
def print_one_story(story) do
title = [:orange, :bright, "(#{story["score"]}) ", story["title"]]
url = ["|> ", Map.get(story, "url", "")]
lines = [title, url]
print_lines lines
end
def max_width do
term_width = Clhn.Utils.get_term_width
mi... | 18.916667 | 70 | 0.618943 |
935e29bb7b3fec1d4a92769a988465cbcfaf3357 | 1,084 | ex | Elixir | test/support/conn_case.ex | tahmidsadik112/bloom | edf9995535cdb189b47addb7aee7311f590c5a87 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | tahmidsadik112/bloom | edf9995535cdb189b47addb7aee7311f590c5a87 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | tahmidsadik112/bloom | edf9995535cdb189b47addb7aee7311f590c5a87 | [
"MIT"
] | null | null | null | defmodule Bloom.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 and query models.
Finally, if the test case interacts with the datab... | 24.088889 | 67 | 0.701107 |
935e44bac0d75ca9581aa3ed87537a9b214ffc34 | 1,355 | exs | Elixir | test/blog/posts_test.exs | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | null | null | null | test/blog/posts_test.exs | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | 17 | 2021-04-22T00:58:05.000Z | 2021-09-26T04:03:12.000Z | test/blog/posts_test.exs | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | null | null | null | defmodule Blog.PostsTest do
@moduledoc """
this module of test the posts context
"""
use Blog.DataCase
alias Blog.{Posts, Posts.Post}
@valid_post %{
title: "Phoenix framework",
description: "Lorem"
}
@update_post %{
title: "Update Phoenix framework",
description: "Update Lorem"
}
... | 24.636364 | 72 | 0.659779 |
935e4f0dd1637dcdee1c83e4e830facecd688272 | 461 | ex | Elixir | lib/ledemo_web/controllers/page_controller.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | lib/ledemo_web/controllers/page_controller.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | 7 | 2021-05-10T15:57:48.000Z | 2021-05-27T13:05:14.000Z | lib/ledemo_web/controllers/page_controller.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | defmodule LedemoWeb.PageController do
use LedemoWeb, :controller
@milligram {LedemoWeb.LayoutView, "milligram.html"}
@bootstrap {LedemoWeb.LayoutView, "bootstrap.html"}
def index(conn, _params) do
render(conn, "index.html", layout: @milligram)
end
def milligram(conn, _params) do
render(conn, "mil... | 24.263158 | 54 | 0.720174 |
935e61a6ffc266d4fe46b3932fa0e86bb258656c | 1,999 | ex | Elixir | lib/cbclientapi/process.ex | redvers/cbclientapi | 2a2e1987f71e664cbeb2fcc6309db7b982ba3123 | [
"RSA-MD"
] | 1 | 2015-06-22T19:56:20.000Z | 2015-06-22T19:56:20.000Z | lib/cbclientapi/process.ex | redvers/cbclientapi | 2a2e1987f71e664cbeb2fcc6309db7b982ba3123 | [
"RSA-MD"
] | null | null | null | lib/cbclientapi/process.ex | redvers/cbclientapi | 2a2e1987f71e664cbeb2fcc6309db7b982ba3123 | [
"RSA-MD"
] | null | null | null | defmodule Cbclientapi.Process do
def summary(hostdata, id, segment) do
execute(:summary, hostdata, id, segment)
end
def events(hostdata, id, segment) do
execute(:event, hostdata, id, segment)
end
def preview(hostdata, id, segment) do
execute(:preview, hostdata, id, segment)
end
def search(... | 33.881356 | 162 | 0.65933 |
935e97da89dce8824ed1920e65f397791fe16212 | 898 | ex | Elixir | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.259259 | 74 | 0.762806 |
935ea6166ce106e5d89e096f7fcd27db3042624a | 967 | ex | Elixir | debian/postinst.ex | ncode/hot-potato-router | acfe66a54b7e6477823df79aa9f89b27be45c54a | [
"Apache-2.0"
] | 2 | 2019-10-03T13:45:59.000Z | 2020-01-09T06:41:07.000Z | debian/postinst.ex | ncode/hot-potato-router | acfe66a54b7e6477823df79aa9f89b27be45c54a | [
"Apache-2.0"
] | null | null | null | debian/postinst.ex | ncode/hot-potato-router | acfe66a54b7e6477823df79aa9f89b27be45c54a | [
"Apache-2.0"
] | null | null | null | #!/bin/sh
# postinst script for hot-potato-router
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <pac... | 24.175 | 71 | 0.641158 |
935eb0e23ff7c2305a9d7328e85c8046ffcc11bb | 1,865 | exs | Elixir | mix.exs | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | 1 | 2021-03-16T11:09:25.000Z | 2021-03-16T11:09:25.000Z | mix.exs | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | 1 | 2020-03-22T14:15:13.000Z | 2020-03-22T14:15:13.000Z | mix.exs | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | null | null | null | defmodule Dms42.Mixfile do
use Mix.Project
def project do
[
app: :dms42,
version: "0.0.5",
elixir: "~> 1.10.2",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
d... | 27.028986 | 79 | 0.551743 |
935eb1ac2f6dda3afd93a3e74c4e3bebb66da9e7 | 1,893 | ex | Elixir | lib/blog_phx_web.ex | the-harry/blog_phx | db7604259f2a1cd32b0243bb1039694ef986b3aa | [
"MIT"
] | 2 | 2021-09-28T13:06:31.000Z | 2021-10-03T14:41:14.000Z | lib/blog_phx_web.ex | the-harry/blog_phx | db7604259f2a1cd32b0243bb1039694ef986b3aa | [
"MIT"
] | 8 | 2021-09-05T00:40:16.000Z | 2021-12-04T22:41:00.000Z | lib/blog_phx_web.ex | the-harry/blog_phx | db7604259f2a1cd32b0243bb1039694ef986b3aa | [
"MIT"
] | null | null | null | defmodule BlogPhxWeb 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 BlogPhxWeb, :controller
use BlogPhxWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.085366 | 76 | 0.685684 |
935eb2ec76e8bac4c7c1cfa42515fb970c3f730e | 1,372 | exs | Elixir | test/vorm/transform1_test.exs | ianrumford/plymio_ast_vorm | 4ebe9ae6e43889e51066ee7257f3e351797de535 | [
"MIT"
] | null | null | null | test/vorm/transform1_test.exs | ianrumford/plymio_ast_vorm | 4ebe9ae6e43889e51066ee7257f3e351797de535 | [
"MIT"
] | null | null | null | test/vorm/transform1_test.exs | ianrumford/plymio_ast_vorm | 4ebe9ae6e43889e51066ee7257f3e351797de535 | [
"MIT"
] | null | null | null | defmodule PlymioAstTransformTransform1Test do
use PlymioAstVormHelperTest
test "postwalk: single ast w/form_range 200a" do
[
Macro.var(:x, nil),
{:postwalk, 0,
fn
{:x, [], nil} -> Macro.var(:y, nil)
# passthru
any -> any
end},
]
|> helper_vorm_pr... | 17.589744 | 88 | 0.502915 |
935ebeacda84bb4c882e25d839ae1f3c43ff53c4 | 69 | ex | Elixir | lib/events_tools_web/views/room_view.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | lib/events_tools_web/views/room_view.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | lib/events_tools_web/views/room_view.ex | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsToolsWeb.RoomView do
use EventsToolsWeb, :view
end
| 17.25 | 36 | 0.826087 |
935eeb3ce94dac463ad0415a0710029a93c30f24 | 759 | exs | Elixir | test/elixir_lokalise_api/config_test.exs | bodrovis/elixir-lokalise-api | ae49309f0fdf56c634157e78387f3bf50eaa6afb | [
"BSD-3-Clause"
] | 3 | 2021-06-24T14:30:31.000Z | 2021-09-06T11:30:17.000Z | test/elixir_lokalise_api/config_test.exs | bodrovis/elixir-lokalise-api | ae49309f0fdf56c634157e78387f3bf50eaa6afb | [
"BSD-3-Clause"
] | 8 | 2021-09-15T07:30:59.000Z | 2022-02-01T17:40:17.000Z | test/elixir_lokalise_api/config_test.exs | bodrovis/elixir-lokalise-api | ae49309f0fdf56c634157e78387f3bf50eaa6afb | [
"BSD-3-Clause"
] | 2 | 2021-09-07T11:10:51.000Z | 2021-09-26T07:37:39.000Z | defmodule ElixirLokaliseApi.ConfigTest do
use ExUnit.Case, async: true
alias ElixirLokaliseApi.Config
test "from_env returns a plain value" do
assert Config.from_env(:request_options)
end
test "from_env returns a value under system" do
assert Config.from_env(:api_token) != nil
end
test "from_e... | 24.483871 | 57 | 0.722003 |
935ef5fa1d01ea599eafd8fb53e934e09a374e37 | 76 | ex | Elixir | lib/malan/accounts/terms_of_service.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 3 | 2021-04-24T17:54:55.000Z | 2021-09-10T15:40:19.000Z | lib/malan/accounts/terms_of_service.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 57 | 2021-04-24T03:17:16.000Z | 2022-03-27T04:50:22.000Z | lib/malan/accounts/terms_of_service.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | null | null | null | defmodule Malan.Accounts.TermsOfService do
def current_version, do: 1
end
| 19 | 42 | 0.815789 |
935f1fde6fa5e809cf437a744001de690b5af626 | 1,665 | ex | Elixir | lib/graphql/type/definition.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/type/definition.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/type/definition.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | # TODO think of a better name for this protocol:
# Typed, TypeProtocol
defprotocol GraphQL.Types do
@fallback_to_any true
def parse_value(type, value)
def serialize(type, value)
end
defprotocol GraphQL.AbstractType do
@type t :: GraphQL.Type.Union.t | GraphQL.Type.Interface.t
@spec possible_type?(GraphQL.Ab... | 26.854839 | 99 | 0.694294 |
935f2264a5838645dcdb6871a3b32e0ba0eb73fa | 14,399 | exs | Elixir | test/assoc/updater_test.exs | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | null | null | null | test/assoc/updater_test.exs | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | null | null | null | test/assoc/updater_test.exs | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | null | null | null | defmodule Assoc.UpdaterTest do
use ExUnit.Case
use Assoc.DataCase
import Assoc.Test.Factories
alias Assoc.Test.Address
alias Assoc.Test.Tag
alias Assoc.Test.User
doctest Assoc.Updater
# Subject
defmodule Subject do
use Assoc.Updater, repo: Assoc.Test.Repo
def call(parent, params), do: up... | 23.489396 | 84 | 0.572054 |
935f2efe61cac830f3f699b5d9104d832ad6558c | 2,709 | ex | Elixir | lib/chat_api_web/controllers/onboarding_status_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/onboarding_status_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/onboarding_status_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.OnboardingStatusController do
use ChatApiWeb, :controller
alias ChatApi.{
Accounts,
BrowserSessions,
Github,
Google,
Mattermost,
SlackAuthorizations,
Twilio,
Users
}
alias Users.{UserProfile}
action_fallback(ChatApiWeb.FallbackController)
@spec index(... | 30.438202 | 86 | 0.693245 |
935f349144605bed7ab7fd951d85ca7d0b0610cf | 209 | ex | Elixir | lib/rustler_test.ex | korczis/rustler-test | 855d3db7d7b90a3c8d132e5fbed921ac4865621f | [
"MIT"
] | null | null | null | lib/rustler_test.ex | korczis/rustler-test | 855d3db7d7b90a3c8d132e5fbed921ac4865621f | [
"MIT"
] | null | null | null | lib/rustler_test.ex | korczis/rustler-test | 855d3db7d7b90a3c8d132e5fbed921ac4865621f | [
"MIT"
] | null | null | null | defmodule RustlerTest do
@moduledoc """
Documentation for RustlerTest.
"""
@doc """
Hello world.
## Examples
iex> RustlerTest.hello
:world
"""
def hello do
:world
end
end
| 11 | 32 | 0.593301 |
935f3aec254b59bc2440bb9cb971be7fab466979 | 1,053 | exs | Elixir | mix.exs | manme/elasticemail | 1ceada7c3e382039ecf1f9ceb8d098f525937449 | [
"MIT"
] | 1 | 2018-08-30T12:58:56.000Z | 2018-08-30T12:58:56.000Z | mix.exs | manme/elasticemail | 1ceada7c3e382039ecf1f9ceb8d098f525937449 | [
"MIT"
] | null | null | null | mix.exs | manme/elasticemail | 1ceada7c3e382039ecf1f9ceb8d098f525937449 | [
"MIT"
] | null | null | null | defmodule ElasticEmail.Mixfile do
use Mix.Project
def project do
[
app: :elasticemail,
version: "0.1.2",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
source_url: "https://github.com/manme/elasticemail",
description: description(),
package: package(),
deps... | 22.891304 | 67 | 0.574549 |
935f4d35e02d70c023c9773cf04b493324656ef7 | 64 | ex | Elixir | lib/fun_retro_web/views/board_view.ex | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | lib/fun_retro_web/views/board_view.ex | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | lib/fun_retro_web/views/board_view.ex | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | defmodule FunRetroWeb.BoardView do
use FunRetroWeb, :view
end
| 16 | 34 | 0.8125 |
935f4f2d4d684f97b1a4de234fd7074ff981071b | 65 | ex | Elixir | lib/shopix_web/views/admin/user_view.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | lib/shopix_web/views/admin/user_view.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | lib/shopix_web/views/admin/user_view.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule ShopixWeb.Admin.UserView do
use ShopixWeb, :view
end
| 16.25 | 37 | 0.8 |
935f4fa241c2dc47f12590d362c31980a6be5f08 | 1,486 | ex | Elixir | lib/sanbase_web/graphql/resolvers/table_configuration/table_configuration_resolver.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/resolvers/table_configuration/table_configuration_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/resolvers/table_configuration/table_configuration_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Resolvers.TableConfigurationResolver do
alias Sanbase.TableConfiguration
alias Sanbase.Accounts.User
require Logger
# Queries
def table_configuration(_root, %{id: id}, resolution) do
user = get_in(resolution.context, [:auth, :current_user]) || %User{}
TableConfiguration... | 27.518519 | 77 | 0.66218 |
935fc536d2078d1bd135505db80c0a74d00c79d4 | 1,083 | exs | Elixir | mix.exs | NOLAnuffsaid/ex_guard | 513855563d10e3b93abdd29bf46f38ba310e21ea | [
"MIT"
] | null | null | null | mix.exs | NOLAnuffsaid/ex_guard | 513855563d10e3b93abdd29bf46f38ba310e21ea | [
"MIT"
] | null | null | null | mix.exs | NOLAnuffsaid/ex_guard | 513855563d10e3b93abdd29bf46f38ba310e21ea | [
"MIT"
] | null | null | null | defmodule ExGuard.Mixfile do
use Mix.Project
@version "1.4.0"
def project do
[
app: :ex_guard,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: descript... | 24.066667 | 102 | 0.586334 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.