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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62d4864c00af99d0840b661b3ade8070e672df61 | 2,858 | ex | Elixir | lib/secure_random.ex | blueangel0723/secure_random.ex | 4958a1c3422ebe8f3dec8ad23be0ffb32d7c4868 | [
"Apache-2.0"
] | 99 | 2015-01-22T15:16:39.000Z | 2021-11-27T16:23:04.000Z | lib/secure_random.ex | blueangel0723/secure_random.ex | 4958a1c3422ebe8f3dec8ad23be0ffb32d7c4868 | [
"Apache-2.0"
] | 10 | 2015-01-22T19:23:45.000Z | 2019-09-10T13:14:12.000Z | lib/secure_random.ex | blueangel0723/secure_random.ex | 4958a1c3422ebe8f3dec8ad23be0ffb32d7c4868 | [
"Apache-2.0"
] | 18 | 2015-01-22T19:18:33.000Z | 2022-02-08T17:23:27.000Z | defmodule SecureRandom do
use Bitwise
@moduledoc """
Takes my favorite hits from Ruby's SecureRandom and brings em to elixir.
Mostly a convienance wrapper around Erlangs Crypto library, converting
Crypto.strong_rand_bytes/1 into a string.
## Examples
iex> SecureRandom.base64
"xhTcitKZI8YiLGzU... | 21.984615 | 145 | 0.620014 |
62d48a274bc24b83ce5f0f71b89ea2f89f969e1a | 161 | exs | Elixir | elixir/priv/repo/migrations/20210126023444_enable_fuzzystrmatch.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210126023444_enable_fuzzystrmatch.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210126023444_enable_fuzzystrmatch.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | defmodule Homework.Repo.Migrations.EnableFuzzystrmatch do
use Ecto.Migration
def up do
execute "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch"
end
end
| 20.125 | 58 | 0.78882 |
62d497f0f5ac887d4937d5b44f07a0ca00d6b104 | 7,425 | ex | Elixir | apps/omg_eth/lib/omg_eth/release_tasks/set_contract.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/lib/omg_eth/release_tasks/set_contract.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/lib/omg_eth/release_tasks/set_contract.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-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 ... | 34.696262 | 173 | 0.708552 |
62d506b58338fbd6bff83b042cf5498a44a1b2ad | 881 | exs | Elixir | lib/test_helper.exs | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | 6 | 2020-11-09T15:02:45.000Z | 2021-04-17T12:50:25.000Z | lib/test_helper.exs | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | 44 | 2020-12-14T06:55:48.000Z | 2022-03-28T02:04:08.000Z | lib/test_helper.exs | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | null | null | null | # Exclude all external tests from running
ExUnit.configure(exclude: [external: true])
# this can be reversed by running:
# mix test --include external:true
ExUnit.start(capture_log: true)
# In order to get coverage for the BonnyPlug.WebhookHanlder, we need to compile these files when running the tests.
"test_support/... | 28.419355 | 115 | 0.733258 |
62d506d058023f637fb456a3421d1bb107256ae1 | 2,699 | ex | Elixir | lib/access.ex | adept-bits/adept_ecto | 0ae5fdbbef8d8f8aae3e378f2785921d1ff12bc6 | [
"Apache-2.0"
] | null | null | null | lib/access.ex | adept-bits/adept_ecto | 0ae5fdbbef8d8f8aae3e378f2785921d1ff12bc6 | [
"Apache-2.0"
] | null | null | null | lib/access.ex | adept-bits/adept_ecto | 0ae5fdbbef8d8f8aae3e378f2785921d1ff12bc6 | [
"Apache-2.0"
] | null | null | null | defmodule AdeptEcto.Access do
use Ecto.Schema
import Ecto.Query
# import IEx
#----------------------------------------------------------------------------
# count the total number of rows in a column in a repo
def count( repo, schema ) when is_atom(repo) and is_atom(schema) do
schema
|> select([x... | 29.336957 | 96 | 0.62023 |
62d54bc0e8b701f1b019fa7ef4191131c3871d11 | 267 | exs | Elixir | config/test.exs | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | null | null | null | config/test.exs | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | 2 | 2021-03-10T11:57:02.000Z | 2021-05-11T07:36:34.000Z | config/test.exs | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"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 :mmo_game, MmoGameWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.272727 | 56 | 0.737828 |
62d554edd4435d1e1c4a970e9c0e5d8fc2190529 | 2,406 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_request.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... | 40.779661 | 316 | 0.732336 |
62d557465f296f54abcf1499932a72744a502ca2 | 680 | ex | Elixir | lib/job_board/clean_old.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board/clean_old.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board/clean_old.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoard.CleanOld do
alias JobBoard.Jobs
use GenServer
def start_link do
GenServer.start_link(__MODULE__, %{})
end
def init(state) do
schedule_work() # Schedule work to be performed at some point
{:ok, state}
end
def handle_info(:work, state) do
# Do the work you desire here
... | 21.25 | 72 | 0.660294 |
62d568b5e7f0057305332cb447105d32bced5006 | 280 | ex | Elixir | test/support/ecto/user_identities/user_identity.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 193 | 2019-10-30T00:58:21.000Z | 2022-03-09T20:26:37.000Z | test/support/ecto/user_identities/user_identity.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 82 | 2019-10-29T20:19:38.000Z | 2022-03-22T04:09:27.000Z | test/support/ecto/user_identities/user_identity.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 28 | 2019-10-31T12:38:10.000Z | 2021-11-01T18:05:23.000Z | defmodule PowAssent.Test.Ecto.UserIdentities.UserIdentity do
@moduledoc false
use Ecto.Schema
use PowAssent.Ecto.UserIdentities.Schema,
user: PowAssent.Test.Ecto.Users.User
schema "user_identities" do
pow_assent_user_identity_fields()
timestamps()
end
end
| 21.538462 | 60 | 0.775 |
62d5723c15bb6dfb381d19f40fc2901929a7c4a0 | 254,358 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/api/management.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/api/management.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/api/management.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... | 42.252159 | 222 | 0.614822 |
62d5c5736870e8bc6e24237b9b88503854a0331b | 3,486 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details_related_playlists.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details_related_playlists.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details_related_playlists.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42 | 135 | 0.693345 |
62d5d6650f29b1b73332325cb830b6c66f01ca57 | 1,221 | exs | Elixir | episode15/speaker/test/speaker_test.exs | paulfioravanti/learn_elixir | 8424b1a7a89cb9fd1dacb85bcca487601958b8fa | [
"MIT"
] | null | null | null | episode15/speaker/test/speaker_test.exs | paulfioravanti/learn_elixir | 8424b1a7a89cb9fd1dacb85bcca487601958b8fa | [
"MIT"
] | null | null | null | episode15/speaker/test/speaker_test.exs | paulfioravanti/learn_elixir | 8424b1a7a89cb9fd1dacb85bcca487601958b8fa | [
"MIT"
] | null | null | null | defmodule SpeakerTest do
use ExUnit.Case
# import ExUnit.CaptureIO
doctest Speaker
# NOTE: every `setup` has access to a `context` which can be populated
# by `@tag` values, and the `context` of each test contains the return
# value of the `setup` block
setup context do
pid = Kernel.spawn(Speaker, :... | 28.395349 | 77 | 0.651106 |
62d5e1d7f0a5a2c78db9ca820fc0beec54e7eb5b | 1,571 | ex | Elixir | lib/mix/tasks/publish_gh_pages.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/mix/tasks/publish_gh_pages.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/mix/tasks/publish_gh_pages.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule Mix.Tasks.PublishGhPages do
@moduledoc """
Publishes the API reference documentation (mix docs) to the gh-pages branch.
Fails if the branch doesn't exist.
"""
use Mix.Task
require Logger
@target_dir "source_docs"
@shortdoc "Publishes the output of mix docs to the gh-pages branch."
@impl ... | 27.561404 | 91 | 0.651178 |
62d5eaf78a3398cdc08a0799be56f0162aed3e06 | 1,007 | ex | Elixir | test/stub_modules/test_router.ex | starbuildr/botlead | d5a60bfbfbcbe97cce407fb13404c6c016b1ed4f | [
"MIT"
] | 1 | 2019-04-09T13:07:01.000Z | 2019-04-09T13:07:01.000Z | test/stub_modules/test_router.ex | starbuildr/botlead | d5a60bfbfbcbe97cce407fb13404c6c016b1ed4f | [
"MIT"
] | 2 | 2019-04-15T05:51:15.000Z | 2019-10-14T20:32:33.000Z | test/stub_modules/test_router.ex | starbuildr/botlead | d5a60bfbfbcbe97cce407fb13404c6c016b1ed4f | [
"MIT"
] | null | null | null | defmodule Botlead.TestRouter do
use GenRouter
alias Botlead.Controller.TestController
pipeline :authed do
plug(Botlead.Plug.TestPlug)
end
scope :default, "/" do
pipe_through([:authed])
match("/", TestController, :test1)
match("/test1", TestController, :test1)
match("/test2", TestControl... | 20.55102 | 74 | 0.652433 |
62d60ebe446d02b000f0cd6d42e6c11f09ede53e | 206 | exs | Elixir | priv/repo/migrations/20160311111029_add_enabled_status_to_payment_method.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | priv/repo/migrations/20160311111029_add_enabled_status_to_payment_method.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | priv/repo/migrations/20160311111029_add_enabled_status_to_payment_method.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Repo.Migrations.AddEnabledStatusToPaymentMethod do
use Ecto.Migration
def change do
alter table(:payment_methods) do
add :enabled, :boolean, default: false
end
end
end
| 20.6 | 67 | 0.747573 |
62d61939df3cc2e2aeea2ed5e13411e44dbb572d | 348 | ex | Elixir | lib/forget/node_monitor.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | lib/forget/node_monitor.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | lib/forget/node_monitor.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | defmodule Forget.NodeMonitor do
use GenServer
require Logger
def start_link, do: GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
def init(:ok) do
:ok = :net_kernel.monitor_nodes(true, node_type: :visible)
{:ok, []}
end
def handle_info(msg, state) do
:ok = Logger.info(inspect(msg))
... | 21.75 | 77 | 0.683908 |
62d649e75a83b72ff3ab0c8cb6995b087714520c | 4,319 | exs | Elixir | test/cloudex/cloudex_test.exs | edouardmenayde/cloudex | dedac7b19eef68e6d68e0a18d39a2229e2459658 | [
"WTFPL"
] | null | null | null | test/cloudex/cloudex_test.exs | edouardmenayde/cloudex | dedac7b19eef68e6d68e0a18d39a2229e2459658 | [
"WTFPL"
] | null | null | null | test/cloudex/cloudex_test.exs | edouardmenayde/cloudex | dedac7b19eef68e6d68e0a18d39a2229e2459658 | [
"WTFPL"
] | null | null | null | defmodule CloudexTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
setup_all do
ExVCR.Config.cassette_library_dir("test/assets/vcr_cassettes")
:ok
end
doctest Cloudex
test "file not found" do
assert {:error, "File /non/existing/file.jpg does not exist."} =
... | 32.969466 | 105 | 0.600602 |
62d64e180d471ce04099f4f6b5f3223dc9b38d20 | 205 | ex | Elixir | code examples/appd-3.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/appd-3.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/appd-3.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | s1 = "hello world"
s2 = [104,101,108,108,111,32,119,111,114,108,100] # list of integers
s3 = [?h,?e,?l,?l,?o,?\s,?w,?o,?r,?l,?d] # ASCII values of character
s4 = <<"hello world">> # one byte per character
| 41 | 68 | 0.614634 |
62d6679b0287cf5e562eceab2a6af46d6f6fb3a1 | 2,080 | exs | Elixir | config/dev.exs | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | config/dev.exs | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | config/dev.exs | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"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 webpack to recompile .js and .css sources.
config :shopmap, ShopmapWeb.Endpoint,
http: [port: 4000... | 27.368421 | 68 | 0.686538 |
62d673b693b432bacf409a3e9277c64ed9aa299e | 189 | exs | Elixir | apps/alert_processor/priv/repo/migrations/20170504192335_rename_facility_in_informed_entities.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/priv/repo/migrations/20170504192335_rename_facility_in_informed_entities.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/priv/repo/migrations/20170504192335_rename_facility_in_informed_entities.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule MbtaServer.Repo.Migrations.RenameFacilityInInformedEntities do
use Ecto.Migration
def change do
rename table(:informed_entities), :facility, to: :facility_type
end
end
| 23.625 | 72 | 0.798942 |
62d68feac0ac3997db9562075dc37662b52a422a | 1,255 | ex | Elixir | web/views/public_tag_view.ex | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/web/views/public_tag_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/web/views/public_tag_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.PublicTagView do
use Artour.Web, :view
@doc """
Unfortunately can't import this, because it makes the code for getting the display name
in the shared index messier
"""
def display_name(tag) do
Artour.TagView.display_name tag
end
@doc """
Renders list of tags on public site
"""... | 27.888889 | 89 | 0.627092 |
62d69b1ae72274ebc51a7a864ec5af0dd041405f | 18,046 | exs | Elixir | test/edgedb/api_test.exs | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | test/edgedb/api_test.exs | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | test/edgedb/api_test.exs | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule Tests.EdgeDB.APITest do
use Tests.Support.EdgeDBCase
setup :edgedb_connection
describe "EdgeDB.query/4" do
test "returns EdgeDB.Set on succesful query", %{conn: conn} do
assert {:ok, %EdgeDB.Set{}} = EdgeDB.query(conn, "SELECT 1")
end
test "returns error on failed query", %{conn: co... | 33.480519 | 99 | 0.576527 |
62d6fdd3b17d187e963d1ba0b91d6c9dd8299b5e | 674 | ex | Elixir | lib/real_world_web/components/settings/settings_page.ex | razuf/elixir-phoenix-liveview-realworld | 182eb845b2b56f146468d9a095a8d5d72fc44f17 | [
"MIT"
] | 10 | 2020-09-21T23:24:53.000Z | 2022-03-08T02:12:32.000Z | lib/real_world_web/components/settings/settings_page.ex | razuf/elixir-phoenix-liveview-realworld | 182eb845b2b56f146468d9a095a8d5d72fc44f17 | [
"MIT"
] | null | null | null | lib/real_world_web/components/settings/settings_page.ex | razuf/elixir-phoenix-liveview-realworld | 182eb845b2b56f146468d9a095a8d5d72fc44f17 | [
"MIT"
] | 1 | 2021-06-26T19:46:09.000Z | 2021-06-26T19:46:09.000Z | defmodule RealWorldWeb.SettingsPage do
use RealWorldWeb, :live_component
alias RealWorldWeb.FormErrorList
alias RealWorldWeb.SettingsForm
@impl true
def render(assigns) do
~L"""
<div class="settings-page">
<div class="container page">
<div class="row">
<div class="col-md-6 of... | 24.962963 | 115 | 0.605341 |
62d71af396c303bf4669c7f7596fc3aaa44ed911 | 1,343 | exs | Elixir | .formatter.exs | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | 515 | 2018-06-18T11:09:44.000Z | 2020-07-31T07:54:35.000Z | .formatter.exs | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | 120 | 2018-06-07T08:34:06.000Z | 2020-07-30T07:09:50.000Z | .formatter.exs | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | 13 | 2018-07-27T11:58:15.000Z | 2020-05-06T15:19:55.000Z | # FIXME: remove and import from espec once released
espec_locals_without_parens = [
## Test setup
before: 1,
before_all: 1,
after_all: 1,
finally: 1,
subject: :*,
subject!: :*,
let: :*,
let!: :*,
let_error: :*,
let_error!: :*,
let_ok: :*,
let_ok!: :*,
let_overridable: 1,
## Examples
foc... | 15.616279 | 51 | 0.60834 |
62d75018fd4f4def982a4920f3e9c6f24bad4c36 | 909 | exs | Elixir | test/config/csrf_test.exs | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | test/config/csrf_test.exs | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | test/config/csrf_test.exs | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | defmodule SobelowTest.Config.CSRFTest do
use ExUnit.Case
alias Sobelow.Utils
test "checks normal router" do
router = "./test/fixtures/csrf/good_router.ex"
refute Utils.get_pipelines(router)
|> Enum.any?(&Utils.is_vuln_pipeline?(&1, :csrf))
end
test "checks normal router with named sessio... | 27.545455 | 67 | 0.680968 |
62d7714683df4adaa78f2672b02d8ff1ca791750 | 105 | exs | Elixir | test/glitchylicious_test.exs | 0010-IO/glitchylicious | 4f97aaa1889c74baf74704c05513ef60a668d993 | [
"MIT"
] | 2 | 2015-10-14T11:38:05.000Z | 2016-02-05T19:36:20.000Z | test/glitchylicious_test.exs | 0010-IO/glitchylicious | 4f97aaa1889c74baf74704c05513ef60a668d993 | [
"MIT"
] | null | null | null | test/glitchylicious_test.exs | 0010-IO/glitchylicious | 4f97aaa1889c74baf74704c05513ef60a668d993 | [
"MIT"
] | null | null | null | defmodule GlitchyliciousTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.125 | 31 | 0.67619 |
62d77fda495ad04cdff841c5120e04a76983c69a | 9,172 | ex | Elixir | lib/dms42/documents_finder.ex | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | 1 | 2021-03-16T11:09:25.000Z | 2021-03-16T11:09:25.000Z | lib/dms42/documents_finder.ex | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | 1 | 2020-03-22T14:15:13.000Z | 2020-03-22T14:15:13.000Z | lib/dms42/documents_finder.ex | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | null | null | null | defmodule Dms42.DocumentsFinder do
alias Dms42.Models.Document
alias Dms42.Models.DocumentOcr
alias Dms42.Models.DocumentTag
alias Dms42.Models.Tag
alias Dms42.Models.SearchResult
import Ecto.Query
@max_result 20
@spec find_by_tags(String.t()) :: list(Dms42.Models.SearchResult.t())
def find_by_tags... | 28.221538 | 94 | 0.590057 |
62d7ae6b81bf6d96df5ed8de50974ed684af8227 | 432 | exs | Elixir | priv/repo/migrations/20200715121010_create_posts.exs | SerenityIK/phoenix_cms | 2e6f5068c5d3bf0a1372f6da4f910522f7faa6a4 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200715121010_create_posts.exs | SerenityIK/phoenix_cms | 2e6f5068c5d3bf0a1372f6da4f910522f7faa6a4 | [
"Apache-2.0"
] | 17 | 2021-03-22T06:11:32.000Z | 2022-03-28T20:03:58.000Z | priv/repo/migrations/20200715121010_create_posts.exs | SerenityIK/phoenix_cms | 2e6f5068c5d3bf0a1372f6da4f910522f7faa6a4 | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixCms.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :title, :string
add :body, :text
add :published, :boolean, default: false, null: false
add :cover, :string
add :slug, :string, unique: true
add :user_id, referenc... | 21.6 | 62 | 0.645833 |
62d7b042985d03af70e8dbff1df613a437a3fe2d | 27,109 | exs | Elixir | test/livebook_web/live/session_live_test.exs | alaadahmed/livebook | 24668c6edb6ee638a3f5291b27bd42a3dfc0c18d | [
"Apache-2.0"
] | 1,846 | 2021-04-13T14:46:36.000Z | 2021-07-14T20:37:40.000Z | test/livebook_web/live/session_live_test.exs | alaadahmed/livebook | 24668c6edb6ee638a3f5291b27bd42a3dfc0c18d | [
"Apache-2.0"
] | 223 | 2021-04-13T14:55:06.000Z | 2021-07-15T00:25:23.000Z | test/livebook_web/live/session_live_test.exs | alaadahmed/livebook | 24668c6edb6ee638a3f5291b27bd42a3dfc0c18d | [
"Apache-2.0"
] | 130 | 2021-04-13T15:43:55.000Z | 2021-07-12T16:57:46.000Z | defmodule LivebookWeb.SessionLiveTest do
use LivebookWeb.ConnCase
import Phoenix.LiveViewTest
alias Livebook.{Sessions, Session, Delta, Runtime, Users, FileSystem}
alias Livebook.Notebook.Cell
alias Livebook.Users.User
setup do
{:ok, session} = Sessions.create_session(notebook: Livebook.Notebook.new(... | 32.819613 | 107 | 0.623335 |
62d7c5f00f5afca7c9641638b37d11fb7cdba64f | 1,345 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/redact_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/redact_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/redact_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.02381 | 123 | 0.759851 |
62d7caf312844ce691e98aff741a35542c024583 | 18,776 | ex | Elixir | lib/brando_admin/components/form/input/blocks/module_block.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando_admin/components/form/input/blocks/module_block.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando_admin/components/form/input/blocks/module_block.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input.Blocks.ModuleBlock do
use BrandoAdmin, :live_component
use Phoenix.HTML
import Brando.Gettext
import BrandoAdmin.Components.Form.Input.Blocks.Utils
alias Brando.Content
alias Brando.Villain
alias BrandoAdmin.Components.Form.Input
alias BrandoAdmin.Components... | 30.983498 | 524 | 0.561302 |
62d7ccc910f714d5b7d57c6a00a35b854489b4aa | 190 | exs | Elixir | config/test.exs | klacointe/algoliax | 6228d334e52a464162581b4887724a2f1cc357b5 | [
"BSD-2-Clause"
] | null | null | null | config/test.exs | klacointe/algoliax | 6228d334e52a464162581b4887724a2f1cc357b5 | [
"BSD-2-Clause"
] | null | null | null | config/test.exs | klacointe/algoliax | 6228d334e52a464162581b4887724a2f1cc357b5 | [
"BSD-2-Clause"
] | null | null | null | import Config
config :algoliax,
ecto_repos: [Algoliax.Repo]
config :algoliax, Algoliax.Repo,
database: "algoliax_test",
pool: Ecto.Adapters.SQL.Sandbox
config :logger, level: :warn
| 17.272727 | 33 | 0.747368 |
62d7f19d04b452c15239f62b408e0cb5a40677af | 573 | ex | Elixir | whirlwind_tour/id3.ex | ipmsteven/little_elixir | 3d6355de38afb9cd87571028013a760616152332 | [
"MIT"
] | null | null | null | whirlwind_tour/id3.ex | ipmsteven/little_elixir | 3d6355de38afb9cd87571028013a760616152332 | [
"MIT"
] | null | null | null | whirlwind_tour/id3.ex | ipmsteven/little_elixir | 3d6355de38afb9cd87571028013a760616152332 | [
"MIT"
] | null | null | null | defmodule ID3Parser do
def parse(file_name) do
case File.read(file_name) do
{:ok, mp3} ->
mp3_byte_size = byte_size(mp3) - 128
<< _ :: binary-size(mp3_byte_size), id3_tag :: binary>> = mp3
<<"TAG", title :: binary-size(30),
artist :: binary-size(30),
... | 30.157895 | 69 | 0.495637 |
62d823935f00cc872af948fc92e275a17e222a66 | 74 | exs | Elixir | test/mole_web/views/page_view_test.exs | the-mikedavis/mole | 73d884b5dca4e5371b1b399d7e65c0f4a0229851 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T14:39:10.000Z | 2020-07-15T14:39:10.000Z | test/mole_web/views/page_view_test.exs | the-mikedavis/mole | 73d884b5dca4e5371b1b399d7e65c0f4a0229851 | [
"BSD-3-Clause"
] | 59 | 2018-11-05T23:09:10.000Z | 2020-07-11T20:44:14.000Z | test/mole_web/views/page_view_test.exs | the-mikedavis/mole | 73d884b5dca4e5371b1b399d7e65c0f4a0229851 | [
"BSD-3-Clause"
] | null | null | null | defmodule MoleWeb.PageViewTest do
use MoleWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
62d833e5632672fb0bb67ec75713b26190aef22c | 1,092 | ex | Elixir | lib/codes/codes_b51.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b51.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b51.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_B51 do
alias IcdCode.ICDCode
def _B510 do
%ICDCode{full_code: "B510",
category_code: "B51",
short_code: "0",
full_name: "Plasmodium vivax malaria with rupture of spleen",
short_name: "Plasmodium vivax malaria with rupture of spleen",
... | 32.117647 | 76 | 0.650183 |
62d8371c7bc04f14ef1b0d7d3021bb0e5b277762 | 5,244 | ex | Elixir | lib/plug/upload.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/plug/upload.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | null | null | null | lib/plug/upload.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2020-11-16T05:08:58.000Z | 2020-11-16T05:08:58.000Z | defmodule Plug.UploadError do
defexception [:message]
end
defmodule Plug.Upload do
@moduledoc """
A server (a `GenServer` specifically) that manages uploaded files.
Uploaded files are stored in a temporary directory
and removed from that directory after the process that
requested the file dies.
During ... | 26.484848 | 92 | 0.617277 |
62d84f3f0fd07c7914a6a3cdb871653a18d118c3 | 4,445 | exs | Elixir | test/acceptance/belongs_to_required_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 11 | 2020-09-21T22:03:42.000Z | 2022-02-02T23:48:11.000Z | test/acceptance/belongs_to_required_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 44 | 2020-05-02T04:37:42.000Z | 2021-06-25T14:38:44.000Z | test/acceptance/belongs_to_required_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 9 | 2020-08-25T20:23:34.000Z | 2022-02-14T04:40:10.000Z | defmodule Test.Acceptance.BelongsToRequiredTest do
use ExUnit.Case, async: true
defmodule Author do
use Ash.Resource,
data_layer: Ash.DataLayer.Ets,
extensions: [
AshJsonApi.Resource
]
ets do
private?(true)
end
json_api do
type("author")
routes do
... | 20.771028 | 97 | 0.488639 |
62d850bd9ee7d6c5c745b1f79a1aa8edbd83f297 | 2,304 | ex | Elixir | clients/domains/lib/google_api/domains/v1beta1/model/dns_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains/lib/google_api/domains/v1beta1/model/dns_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains/lib/google_api/domains/v1beta1/model/dns_settings.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... | 43.471698 | 180 | 0.741753 |
62d873b35d5d31cb9be02a16add4263ac3fcb711 | 441 | exs | Elixir | elixir/quick-elixir-blog/blog_phoenix/test/models/post_test.exs | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/test/models/post_test.exs | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/test/models/post_test.exs | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | defmodule BlogPhoenix.PostTest do
use BlogPhoenix.ModelCase
alias BlogPhoenix.Post
@valid_attrs %{body: "some body", title: "some title"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Post.changeset(%Post{}, @valid_attrs)
assert changeset.valid?
end
test "changeset w... | 23.210526 | 56 | 0.721088 |
62d87debd47c3ae71cf93b04b65531f542bd38fe | 1,257 | ex | Elixir | lib/cryptofolio/release_tasks.ex | andreihod/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-07-19T17:03:41.000Z | 2017-09-18T12:58:42.000Z | lib/cryptofolio/release_tasks.ex | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 7 | 2017-07-18T23:32:45.000Z | 2017-08-18T01:09:11.000Z | lib/cryptofolio/release_tasks.ex | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-08-03T19:55:21.000Z | 2018-07-01T19:54:22.000Z | defmodule Cryptofolio.ReleaseTasks do
@start_apps [
:crypto,
:ssl,
:postgrex,
:ecto
]
@myapps [
:cryptofolio
]
@repos [
Cryptofolio.Repo
]
def seed do
IO.puts "Loading myapp.."
# Load the code for myapp, but don't start it
:ok = Application.load(:cryptofolio)
I... | 22.446429 | 81 | 0.652347 |
62d892f8aaad76dd6dae8909bb18b0576df678f5 | 2,244 | exs | Elixir | config/prod.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | config/prod.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | config/prod.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# RedPotion.Web.Endpoint.load_from_system_env/1 dynamically.
# Any dynamic configuration should be moved to such functio... | 34.523077 | 67 | 0.723708 |
62d8b851f7e0d7025867dabf1d1b0e9ffa5053a2 | 1,115 | exs | Elixir | config/config.exs | mrblueblue/beagle | 973e3a53a5bc16e3d70e1ea8706ce67e4f38e51b | [
"MIT"
] | null | null | null | config/config.exs | mrblueblue/beagle | 973e3a53a5bc16e3d70e1ea8706ce67e4f38e51b | [
"MIT"
] | null | null | null | config/config.exs | mrblueblue/beagle | 973e3a53a5bc16e3d70e1ea8706ce67e4f38e51b | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# 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.967742 | 73 | 0.750673 |
62d8b9bcac97f73382aa10dfe98e9cd99a895584 | 540 | exs | Elixir | mix.exs | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | 1 | 2020-01-13T19:56:02.000Z | 2020-01-13T19:56:02.000Z | mix.exs | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | mix.exs | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | defmodule Backroll.MixProject do
use Mix.Project
def project do
[
app: :backroll,
version: "1.0.0",
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_a... | 18.62069 | 59 | 0.574074 |
62d8ca28eda4bd7ccd6dee9a4f416e26820c44a3 | 1,037 | ex | Elixir | lib/discovery_api.ex | Sam-Dowling/DiscoveryApi | d52c178daa8f6a2a9e5685974976ca9dea020e01 | [
"MIT"
] | null | null | null | lib/discovery_api.ex | Sam-Dowling/DiscoveryApi | d52c178daa8f6a2a9e5685974976ca9dea020e01 | [
"MIT"
] | null | null | null | lib/discovery_api.ex | Sam-Dowling/DiscoveryApi | d52c178daa8f6a2a9e5685974976ca9dea020e01 | [
"MIT"
] | null | null | null | defmodule DiscoveryApi do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint wh... | 32.40625 | 90 | 0.719383 |
62d8d7ebdf3c459ab562ca32bcb6f26f35340b85 | 1,704 | ex | Elixir | lib/supreme_tsugu_chan_web/endpoint.ex | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | lib/supreme_tsugu_chan_web/endpoint.ex | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | lib/supreme_tsugu_chan_web/endpoint.ex | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | defmodule SupremeTsuguChanWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :supreme_tsugu_chan
socket "/socket", SupremeTsuguChanWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files i... | 29.894737 | 95 | 0.717136 |
62d8f1b5aa40cb2cf2438cfac911b3371da9fc74 | 612 | exs | Elixir | test/test_helper.exs | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 1 | 2020-01-26T18:08:40.000Z | 2020-01-26T18:08:40.000Z | test/test_helper.exs | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 36 | 2017-12-23T20:22:07.000Z | 2018-05-10T09:16:59.000Z | test/test_helper.exs | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | null | null | null | defmodule Test.Helpers do
def fixture_path do
Path.expand("fixtures", __DIR__)
end
def fixture_path(filename) do
case Path.extname(filename) do
"" -> Path.join(fixture_path(), filename <> ".exs")
_ -> Path.join(fixture_path(), filename)
end
end
def fixture(filename) do
path = fix... | 19.125 | 57 | 0.604575 |
62d90bd2b03fd0538797030096b4dab9dd9b5938 | 138 | ex | Elixir | lib/logfmt.ex | timberio/key-value-parser-elixir | 9766367ccb3014b47b0a621a489261011dcea769 | [
"MIT",
"Unlicense"
] | 5 | 2017-03-10T21:30:29.000Z | 2020-08-07T16:35:07.000Z | lib/logfmt.ex | timberio/key-value-parser-elixir | 9766367ccb3014b47b0a621a489261011dcea769 | [
"MIT",
"Unlicense"
] | null | null | null | lib/logfmt.ex | timberio/key-value-parser-elixir | 9766367ccb3014b47b0a621a489261011dcea769 | [
"MIT",
"Unlicense"
] | 1 | 2021-04-13T18:42:02.000Z | 2021-04-13T18:42:02.000Z | defmodule Logfmt do
alias __MODULE__.Decoder
defdelegate decode!(message), to: Decoder
defdelegate decode(message), to: Decoder
end | 23 | 43 | 0.782609 |
62d92bbed7590ea8410e356459ac4cd3f09871d4 | 1,650 | ex | Elixir | lib/mix/tasks/hoplon.absolve.ex | nietaki/hoplon | 505808fee0a1e5cbb72d1b3b55df598e707b13ea | [
"Apache-2.0"
] | 28 | 2018-04-15T19:29:18.000Z | 2021-07-08T10:24:07.000Z | lib/mix/tasks/hoplon.absolve.ex | nietaki/hoplon | 505808fee0a1e5cbb72d1b3b55df598e707b13ea | [
"Apache-2.0"
] | 16 | 2018-04-14T22:27:25.000Z | 2019-04-09T22:03:47.000Z | lib/mix/tasks/hoplon.absolve.ex | nietaki/aspis | 505808fee0a1e5cbb72d1b3b55df598e707b13ea | [
"Apache-2.0"
] | 1 | 2018-04-06T12:46:14.000Z | 2018-04-06T12:46:14.000Z | defmodule Mix.Tasks.Hoplon.Absolve do
use Mix.Task
alias Hoplon.HexPackage
alias Hoplon.Utils
alias Hoplon.Lockfile
@shortdoc "marks the package as OK, even if it differs from source or can't be resolved"
@moduledoc """
Marks the package as "absolved" - considered honest, even if its repository can't b... | 30 | 95 | 0.678182 |
62d93061cc3bb5a41e0645f45176df7390b2fcc6 | 1,439 | ex | Elixir | test/support/data_case.ex | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | test/support/data_case.ex | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | test/support/data_case.ex | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | defmodule CrossValidator.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, eve... | 26.648148 | 77 | 0.687283 |
62d941ba0a0eb2b48476cd5c72807e8b97dc6a47 | 514 | ex | Elixir | lib/brando_pages/menus/pages_menu.ex | twined/brando_pages | cc9905bf9ab47fdcaef9588a056f19dc18f036a9 | [
"MIT"
] | null | null | null | lib/brando_pages/menus/pages_menu.ex | twined/brando_pages | cc9905bf9ab47fdcaef9588a056f19dc18f036a9 | [
"MIT"
] | null | null | null | lib/brando_pages/menus/pages_menu.ex | twined/brando_pages | cc9905bf9ab47fdcaef9588a056f19dc18f036a9 | [
"MIT"
] | null | null | null | defmodule Brando.Pages.Menu do
@moduledoc """
Menu definitions for the Pages Menu. See `Brando.Menu` docs for
more information
"""
use Brando.Menu
import Brando.Pages.Gettext
menu %{
name: gettext("Pages"), anchor: "pages", icon: "fa fa-paper-plane icon",
submenu: [
%{name: gettext("Ind... | 32.125 | 81 | 0.640078 |
62d9462b7e05361f3304e0ec04a173867c2fa448 | 1,532 | exs | Elixir | mix.exs | ramondelemos/gen_rmq | ad64c5e1dea72ec5851d1bb2cbe46ec7d0d6c8a8 | [
"MIT"
] | null | null | null | mix.exs | ramondelemos/gen_rmq | ad64c5e1dea72ec5851d1bb2cbe46ec7d0d6c8a8 | [
"MIT"
] | null | null | null | mix.exs | ramondelemos/gen_rmq | ad64c5e1dea72ec5851d1bb2cbe46ec7d0d6c8a8 | [
"MIT"
] | null | null | null | defmodule GenRMQ.Mixfile do
use Mix.Project
@version "1.2.0"
def project do
[
app: :gen_rmq,
version: @version,
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
test_coverage: [tool: ExCoveralls],
de... | 24.709677 | 85 | 0.561358 |
62d9720a966d8cbd83a8d1a6fc48c3ebc6143d46 | 319 | ex | Elixir | lib/hap/characteristics/pm2_5_density.ex | optikfluffel/hap | f465d21bb8b90f6f0b2ad6d0f4e671636382e590 | [
"MIT"
] | 40 | 2019-10-26T01:58:42.000Z | 2022-03-09T18:18:39.000Z | lib/hap/characteristics/pm2_5_density.ex | optikfluffel/hap | f465d21bb8b90f6f0b2ad6d0f4e671636382e590 | [
"MIT"
] | 11 | 2021-04-02T14:55:02.000Z | 2021-11-05T13:49:55.000Z | lib/hap/characteristics/pm2_5_density.ex | optikfluffel/hap | f465d21bb8b90f6f0b2ad6d0f4e671636382e590 | [
"MIT"
] | 6 | 2020-05-18T09:34:14.000Z | 2021-11-04T11:14:15.000Z | defmodule HAP.Characteristics.PM25Density do
@moduledoc """
Definition of the `public.hap.characteristic.density.pm2_5` characteristic
"""
@behaviour HAP.CharacteristicDefinition
def type, do: "C6"
def perms, do: ["pr", "ev"]
def format, do: "float"
def min_value, do: 0
def max_value, do: 1000
end
| 22.785714 | 76 | 0.708464 |
62d9bc861548b08266a63f98acf60f88abdf45dd | 4,283 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/base_plan.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/base_plan.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/base_plan.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... | 55.623377 | 349 | 0.739902 |
62d9d8789ea4ccc53f8e2a99e45bfbaa124f8007 | 2,191 | ex | Elixir | clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/secret_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/secret_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/secret_version.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... | 39.125 | 258 | 0.716111 |
62d9e793b824aff0705f345c549b6be504454f21 | 432 | ex | Elixir | lib/phone/nanp/us/il.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/nanp/us/il.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/nanp/us/il.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.NANP.US.IL do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(217|224|309|312|331|618|630|708|773|779|815|847|872)([2-9].{6})$/
def area_name, do: "Illinois"
def area_type, do: "state"
def area_abbreviation, do: "IL"
matcher([
"1217",
"1224",
"1309",
"1312",
... | 16 | 90 | 0.537037 |
62da2b79faa64ff8fc7cdf7315fa646452c46047 | 687 | ex | Elixir | lib/animu/account/auth/auth.ex | elarkham/animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | 1 | 2018-01-02T06:59:08.000Z | 2018-01-02T06:59:08.000Z | lib/animu/account/auth/auth.ex | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | lib/animu/account/auth/auth.ex | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | defmodule Animu.Auth do
alias Animu.Account.User
alias Animu.Repo
alias Comeonin.Bcrypt
def authenticate(%{"username" => username, "password" => password}) do
Repo.get_by(User, username: String.downcase(username))
|> check_password(password)
end
defp check_password(nil, _), do: {:error, "Incorrec... | 26.423077 | 77 | 0.688501 |
62da97b2d9531626d13ac2753992af696b7b5ca4 | 1,361 | exs | Elixir | design/data_model_playground/test/schema/category_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | design/data_model_playground/test/schema/category_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | design/data_model_playground/test/schema/category_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule DataModelPlayground.Schema.CategoryTest do
alias DataModelPlayground.Category
use ExUnit.Case
alias DataModelPlayground.Repo
@valid_attributes %{
title: "Something"
}
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
test "it requires a title" do
changeset =
%Cate... | 21.951613 | 82 | 0.64144 |
62daad53f19b8fff6b11e3682381464d6defb9e2 | 6,180 | exs | Elixir | test/empty_web/controllers/user_auth_test.exs | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | test/empty_web/controllers/user_auth_test.exs | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | test/empty_web/controllers/user_auth_test.exs | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | defmodule EmptyWeb.UserAuthTest do
use EmptyWeb.ConnCase, async: true
alias Empty.Accounts
alias EmptyWeb.UserAuth
import Empty.AccountsFixtures
setup %{conn: conn} do
conn =
conn
|> Map.replace!(:secret_key_base, EmptyWeb.Endpoint.config(:secret_key_base))
|> init_test_session(%{})
... | 35.930233 | 98 | 0.670388 |
62dab033f54ddac2ddf550a77cede5a40b6fdb0b | 384 | ex | Elixir | data/web/web/views/error_view.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/web/views/error_view.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/web/views/error_view.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule TrainsElixir.ErrorView do
use TrainsElixir.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(... | 21.333333 | 47 | 0.705729 |
62dacb9138c7e9105c061d76b20fe15994b84458 | 4,113 | exs | Elixir | test/adoptoposs_web/live/settings_live_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | test/adoptoposs_web/live/settings_live_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | test/adoptoposs_web/live/settings_live_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | defmodule AdoptopossWeb.SettingsLiveTest do
use AdoptopossWeb.LiveCase
alias AdoptopossWeb.SettingsLive
alias Adoptoposs.Accounts.Settings
test "disconnected mount of /settings when logged out", %{conn: conn} do
conn = get(conn, Routes.live_path(conn, SettingsLive))
assert html_response(conn, 302)
... | 35.765217 | 89 | 0.660345 |
62daefcbef145c08aa6c12f28f2c70aab10c174b | 1,852 | ex | Elixir | lib/five_hundred_web/telemetry.ex | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 2 | 2021-06-28T07:06:13.000Z | 2021-07-18T01:13:27.000Z | lib/five_hundred_web/telemetry.ex | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 1 | 2021-06-20T07:49:56.000Z | 2021-06-20T07:49:56.000Z | lib/five_hundred_web/telemetry.ex | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 1 | 2021-07-17T10:23:36.000Z | 2021-07-17T10:23:36.000Z | defmodule FiveHundredWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Le... | 33.071429 | 86 | 0.677646 |
62dafd324ec8a75ba75871fe7945738551e8f8b4 | 3,644 | ex | Elixir | lib/sieve_of_atkin.ex | Cantido/sieve_of_atkin | 465af3b2c606fcfb2a21bf6388950d46e3c8adb4 | [
"MIT"
] | null | null | null | lib/sieve_of_atkin.ex | Cantido/sieve_of_atkin | 465af3b2c606fcfb2a21bf6388950d46e3c8adb4 | [
"MIT"
] | 1 | 2022-02-24T11:05:47.000Z | 2022-02-24T11:05:47.000Z | lib/sieve_of_atkin.ex | Cantido/sieve_of_atkin | 465af3b2c606fcfb2a21bf6388950d46e3c8adb4 | [
"MIT"
] | 1 | 2021-11-22T02:42:03.000Z | 2021-11-22T02:42:03.000Z | defmodule SieveOfAtkin do
@moduledoc """
Documentation for `SieveOfAtkin`.
"""
@doc """
Generates prime numbers up to a given maximum.
## Examples
iex> SieveOfAtkin.generate_primes(30) |> Enum.sort()
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
"""
def generate_primes(n)
def generate_primes(n)... | 25.843972 | 83 | 0.472832 |
62dafe24c1ded73fae7db8a015d3630b76737760 | 276 | exs | Elixir | test/live_blog_ex_web/views/layout_view_test.exs | TunkShif/live_blog_ex | 393c8643bdeb7ddeaf3faede869a0afbc94ed2b4 | [
"MIT"
] | null | null | null | test/live_blog_ex_web/views/layout_view_test.exs | TunkShif/live_blog_ex | 393c8643bdeb7ddeaf3faede869a0afbc94ed2b4 | [
"MIT"
] | null | null | null | test/live_blog_ex_web/views/layout_view_test.exs | TunkShif/live_blog_ex | 393c8643bdeb7ddeaf3faede869a0afbc94ed2b4 | [
"MIT"
] | null | null | null | defmodule LiveBlogExWeb.LayoutViewTest do
use LiveBlogExWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.666667 | 65 | 0.771739 |
62db25c795ee730da3e3a2869e9b036ebd5cb85e | 542 | ex | Elixir | lib/simple_nested_resources/user_auth_context/user.ex | normanpatrick/simple-nested-resources | ff93b20d55cc621830942ff7806dec0ded42997f | [
"MIT"
] | null | null | null | lib/simple_nested_resources/user_auth_context/user.ex | normanpatrick/simple-nested-resources | ff93b20d55cc621830942ff7806dec0ded42997f | [
"MIT"
] | null | null | null | lib/simple_nested_resources/user_auth_context/user.ex | normanpatrick/simple-nested-resources | ff93b20d55cc621830942ff7806dec0ded42997f | [
"MIT"
] | null | null | null | defmodule SimpleNestedResources.UserAuthContext.User do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :description, :string
field :is_active, :boolean, default: false
field :name, :string
timestam... | 23.565217 | 59 | 0.697417 |
62db269f7c51b30a48f6cba5575470e3ad8d7369 | 1,254 | exs | Elixir | mix.exs | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | mix.exs | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | mix.exs | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | defmodule Surface.MixProject do
use Mix.Project
@version "0.1.0-alpha.1"
def project do
[
app: :surface,
version: @version,
elixir: "~> 1.7",
description: "A component based library for Phoenix LiveView",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env()... | 21.62069 | 68 | 0.54067 |
62db2d6ee25a9663880cf1f64452b4e66b311baa | 34,415 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/health_checks.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/health_checks.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/health_checks.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... | 61.019504 | 2,276 | 0.654366 |
62db549ed4c4f7a6eb735d48fb1bf4061bb38b3b | 8,607 | exs | Elixir | ex_cubic_ods_ingestion/.credo.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | null | null | null | ex_cubic_ods_ingestion/.credo.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | 2 | 2022-03-10T22:29:35.000Z | 2022-03-18T19:52:27.000Z | ex_cubic_ods_ingestion/.credo.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"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 ... | 40.599057 | 99 | 0.587429 |
62db6a46d7926638ec9c4d05c4cf1465ffb02573 | 138 | ex | Elixir | plugins/ucc_webrtc/lib/ucc_webrtc_web/admin.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/lib/ucc_webrtc_web/admin.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/lib/ucc_webrtc_web/admin.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccWebrtcWeb.Admin do
alias UccWebrtcWeb.Admin.Page.Webrtc
def add_pages(list) do
[Webrtc.add_page | list]
end
end
| 13.8 | 38 | 0.73913 |
62dbad6686ef67c4774d9605cd369b2ae8877cfc | 1,940 | exs | Elixir | test/loom_awormap_test.exs | fribmendes/loom | b370f677f2a183db69337b34c7024410da08c548 | [
"Apache-2.0"
] | 206 | 2015-01-02T02:03:07.000Z | 2021-01-10T11:17:21.000Z | test/loom_awormap_test.exs | fribmendes/loom | b370f677f2a183db69337b34c7024410da08c548 | [
"Apache-2.0"
] | 7 | 2015-06-17T20:14:17.000Z | 2017-05-30T12:10:28.000Z | test/loom_awormap_test.exs | fribmendes/loom | b370f677f2a183db69337b34c7024410da08c548 | [
"Apache-2.0"
] | 16 | 2015-05-05T15:19:41.000Z | 2018-11-15T10:15:50.000Z | defmodule LoomAwormapTest do
use ExUnit.Case, async: false
use Loom
doctest Loom.AWORMap
doctest Loom.CRDT.Loom.AWORMap # The Protocol implementation
test "Basic put" do
ctr = GCounter.new
map = KVSet.new |> KVSet.put(:a, 1, ctr)
assert 0 == KVSet.get_value(map, 1, GCounter)
assert 0 == KVSe... | 35.272727 | 112 | 0.613402 |
62dbe519202e2f440634fd7553593c2f74a5c0cf | 1,646 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume_layer_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_layer_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_layer_info.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... | 34.291667 | 132 | 0.750304 |
62dbefec5c198f45d3d51cae309ed7804fff67ff | 34,930 | exs | Elixir | lib/elixir/test/elixir/kernel/errors_test.exs | cdfuller/elixir | 3bd3f88d57d7fff6cab7b171294b89fb08eedfe7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/errors_test.exs | cdfuller/elixir | 3bd3f88d57d7fff6cab7b171294b89fb08eedfe7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/errors_test.exs | cdfuller/elixir | 3bd3f88d57d7fff6cab7b171294b89fb08eedfe7 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ErrorsTest do
use ExUnit.Case, async: true
defmacro hello do
quote location: :keep do
def hello, do: :world
end
end
test "no optional arguments in fn" do
assert_eval_raise CompileError,
"nofile:1: anonym... | 34.379921 | 144 | 0.541426 |
62dbf48cccf92fe6c669c784c26a107da87d13aa | 972 | ex | Elixir | lib/stripi/customers/sources.ex | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 7 | 2018-03-20T14:18:01.000Z | 2019-10-02T22:40:02.000Z | lib/stripi/customers/sources.ex | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-03-12T16:37:39.000Z | 2019-03-12T18:28:03.000Z | lib/stripi/customers/sources.ex | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-10-04T17:35:44.000Z | 2019-12-04T20:27:52.000Z | defmodule Stripi.Customers.Sources do
use Stripi.Api
@base_url Application.get_env(:stripi, :base_url, "https://api.stripe.com/v1") <> "/customers"
@resource_url "/sources"
@cards_query "object=card"
def create(customer_id, params, opts \\ []), do: Stripi.request(&post/3, [build_url(customer_id), params, op... | 42.26087 | 116 | 0.661523 |
62dc4115e650e6f9775feaff7d0164f5bfe7e92e | 6,415 | exs | Elixir | test/vintage_net/route/calculator_test.exs | jjcarstens/vintage_net | 221b27f4ea5ff2d43d27357eb3b0a008fe364ecc | [
"Apache-2.0"
] | null | null | null | test/vintage_net/route/calculator_test.exs | jjcarstens/vintage_net | 221b27f4ea5ff2d43d27357eb3b0a008fe364ecc | [
"Apache-2.0"
] | null | null | null | test/vintage_net/route/calculator_test.exs | jjcarstens/vintage_net | 221b27f4ea5ff2d43d27357eb3b0a008fe364ecc | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.Route.CalculatorTest do
use ExUnit.Case
alias VintageNet.Route.{Calculator, InterfaceInfo}
alias VintageNet.Interface.Classification
doctest Calculator
test "no interfaces" do
prioritization = Classification.default_prioritization()
state = Calculator.init()
assert {%{}, [... | 33.411458 | 90 | 0.523928 |
62dc62bcc6e2939e121dcdb0820f6b2527c73900 | 8,627 | ex | Elixir | lib/kaffy/resource_schema.ex | Awlexus/kaffy | b32cc5be2e4c46f740549f0a1fb312be61bcd314 | [
"MIT"
] | null | null | null | lib/kaffy/resource_schema.ex | Awlexus/kaffy | b32cc5be2e4c46f740549f0a1fb312be61bcd314 | [
"MIT"
] | null | null | null | lib/kaffy/resource_schema.ex | Awlexus/kaffy | b32cc5be2e4c46f740549f0a1fb312be61bcd314 | [
"MIT"
] | null | null | null | defmodule Kaffy.ResourceSchema do
@moduledoc false
def primary_key(schema) do
schema.__schema__(:primary_key)
end
def excluded_fields(schema) do
{pk, _, _} = schema.__schema__(:autogenerate_id)
autogenerated = schema.__schema__(:autogenerate)
case length(autogenerated) do
1 ->
[... | 26.46319 | 119 | 0.636722 |
62dc727405267375425ac4897224ee457be08cb9 | 961 | ex | Elixir | lib/metro/web/router.ex | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | lib/metro/web/router.ex | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | lib/metro/web/router.ex | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | defmodule Metro.Web.Router do
use Metro.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Guardian.Plug.VerifySession
plug Guardian.Plug.LoadResource
end
pipeline :browser... | 23.439024 | 49 | 0.688866 |
62dc98b86af02fa5fe6d184602b63845618aa62a | 1,759 | ex | Elixir | web/controllers/admin/payment_controller.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/controllers/admin/payment_controller.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/controllers/admin/payment_controller.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Admin.PaymentController do
use Nectar.Web, :admin_controller
alias Nectar.Repo
alias Nectar.Payment
alias Nectar.Order
def show(conn, %{"id" => _payment_id, "order_id" => order_id}) do
{order, payment} = load_order_and_payment(order_id)
render(conn, "show.html", payment: payment, or... | 35.897959 | 82 | 0.664014 |
62dc9f9bc7dfdd81d317ed103b14333dc990815f | 207 | ex | Elixir | apps/arbitrage/lib/arbitrage.ex | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/arbitrage/lib/arbitrage.ex | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/arbitrage/lib/arbitrage.ex | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | defmodule Arbitrage do
@moduledoc """
Documentation for `Arbitrage`.
"""
@doc """
Hello world.
## Examples
iex> Arbitrage.hello()
:world
"""
def hello do
:world
end
end
| 10.894737 | 32 | 0.570048 |
62dcffa814143936270f89259826fdde740506de | 8,978 | ex | Elixir | lib/sbom_poc/accounts.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 2 | 2020-10-04T12:41:58.000Z | 2021-03-11T20:51:26.000Z | lib/sbom_poc/accounts.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 113 | 2020-07-25T02:29:33.000Z | 2022-03-01T01:07:23.000Z | lib/sbom_poc/accounts.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 5 | 2020-07-10T09:57:58.000Z | 2021-03-11T20:51:29.000Z | defmodule SbomPoc.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias SbomPoc.Accounts.{User, UserNotifier, UserToken}
alias SbomPoc.Repo
## Database getters
@doc """
Gets a user by email.
## Examples
iex> get_user_by_email("foo@example.com")
%U... | 25.651429 | 116 | 0.662397 |
62dd0c7db4008f948425e7a2139dfb9c53761389 | 1,968 | exs | Elixir | config/prod.exs | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | config/prod.exs | m13m/noted | efbe7aef012d6ec7ca7fdc23a02d8ce71bb8c787 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | config/prod.exs | m13m/noted | efbe7aef012d6ec7ca7fdc23a02d8ce71bb8c787 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | 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.781818 | 66 | 0.710366 |
62dd5716b23378a48e8415eb9db5534cb10a6a8f | 7,261 | ex | Elixir | lib/crawly/engine.ex | mgibowski/crawly | 5102c8b4acca8c69fe114fe114dfee7bb2187eb0 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine.ex | mgibowski/crawly | 5102c8b4acca8c69fe114fe114dfee7bb2187eb0 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine.ex | mgibowski/crawly | 5102c8b4acca8c69fe114fe114dfee7bb2187eb0 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Engine do
@moduledoc """
Crawly Engine - process responsible for starting and stopping spiders.
Stores all currently running spiders.
"""
require Logger
use GenServer
@type t :: %__MODULE__{
started_spiders: started_spiders(),
known_spiders: [module()]
}
@... | 28.928287 | 226 | 0.642198 |
62dd956261e0415738dc9fed80ede816642cd212 | 1,023 | ex | Elixir | test/support/channel_case.ex | jchartsell/caesar_cipher | bc23b2d8f55a6e25ecefe6539af7e476f69410fb | [
"MIT"
] | null | null | null | test/support/channel_case.ex | jchartsell/caesar_cipher | bc23b2d8f55a6e25ecefe6539af7e476f69410fb | [
"MIT"
] | null | null | null | test/support/channel_case.ex | jchartsell/caesar_cipher | bc23b2d8f55a6e25ecefe6539af7e476f69410fb | [
"MIT"
] | null | null | null | defmodule CaesarCipher.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot... | 23.25 | 74 | 0.707722 |
62ddb21d5260e37e10e4a503c9cd3ecda852991c | 40,190 | ex | Elixir | lib/opc_ua/common.ex | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | lib/opc_ua/common.ex | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | lib/opc_ua/common.ex | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | defmodule OpcUA.Common do
@moduledoc """
This module covers common functions for Client & Server behavior.
"""
alias OpcUA.QualifiedName
alias OpcUA.{ExpandedNodeId, NodeId, QualifiedName}
defmacro __using__(opts) do
quote location: :keep, bind_quoted: [opts: opts] do
use GenServer, op... | 38.644231 | 126 | 0.606594 |
62ddc1300b6cf7e04e5277155f09acd2f3b969ed | 6,319 | ex | Elixir | lib/exq/support/opts.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | lib/exq/support/opts.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | lib/exq/support/opts.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Support.Opts do
@moduledoc """
Exq supported options.
"""
alias Exq.Support.Coercion
alias Exq.Support.Config
@doc """
Returns top supervisor's name default is `Exq.Sup`.
"""
def top_supervisor(name) do
name = name || Config.get(:name)
"#{name}.Sup" |> String.to_atom()
end
... | 30.379808 | 95 | 0.661497 |
62ddd94123dbdbc3338c7189e07811947aa98ade | 768 | ex | Elixir | testData/org/elixir_lang/parser_definition/bit_string_parsing_test_case/One.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/bit_string_parsing_test_case/One.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/bit_string_parsing_test_case/One.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | << &one >>
<< one \\ two >>
<< one :: two >>
<< one | two >>
<< one = two >>
<< one or two >>
<< one || two >>
<< one and two >>
<< one && two >>
<< one != two >>
<< one < two >>
<< one |> two >>
<< one in two >>
<< one ++ two >>
<< one..two >>
<< one + two >>
<< one / two >>
<< one * two >>
<< one ^^^ two >>
<< !one >... | 13.241379 | 26 | 0.330729 |
62ddedd88f4b1096a87fdb0f226c66339f36b33a | 480 | exs | Elixir | 12-new-project/iterator/test/iterator_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/iterator/test/iterator_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/iterator/test/iterator_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule IteratorTest do
use ExUnit.Case
doctest Iterator
test "Creating iterator" do
list = [1, 3, 5, 9, 7]
{:ok, iter} = Iterator.new(list)
each(iter, list, 0)
end
def each(pid, list, index) do
is_there_a_next = Iterator.next?(pid)
assert is_boolean(is_there_a_next)
if is_there_a... | 20.869565 | 55 | 0.639583 |
62de0b1b84c225afb8552fe1878f24be7379b07a | 718 | ex | Elixir | redis_proxy/lib/redis_proxy_web/gettext.ex | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | null | null | null | redis_proxy/lib/redis_proxy_web/gettext.ex | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | 1 | 2018-09-17T19:08:00.000Z | 2018-09-19T18:20:04.000Z | redis_proxy/lib/redis_proxy_web/gettext.ex | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | null | null | null | defmodule RedisProxyWeb.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 RedisProxyWeb.Gettext
# Simple translation
gettext "Her... | 28.72 | 72 | 0.685237 |
62de25a49eb3fbe66622b437a798691e09320870 | 3,730 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/request_metadata.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/jobs/lib/google_api/jobs/v2/model/request_metadata.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/request_metadata.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 39.263158 | 97 | 0.710992 |
62de628f3dcfe819e471825e621dbf4f177fc96b | 2,224 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/retry_policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/retry_policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/retry_policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.48 | 500 | 0.753147 |
62de8fa652a43c1ced913090671e7a3b36dc88f5 | 1,590 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/source_get_metadata_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/source_get_metadata_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/source_get_metadata_request.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... | 33.829787 | 148 | 0.750943 |
62de998f1b508be6a8a3d8fc70b0f6bac8a7ddc3 | 192 | exs | Elixir | Elixir/E7/Testequepassa.exs | incursio26/MATA56 | 338898d45e54deb69f15dd35b2b327537a2e6266 | [
"Unlicense"
] | null | null | null | Elixir/E7/Testequepassa.exs | incursio26/MATA56 | 338898d45e54deb69f15dd35b2b327537a2e6266 | [
"Unlicense"
] | null | null | null | Elixir/E7/Testequepassa.exs | incursio26/MATA56 | 338898d45e54deb69f15dd35b2b327537a2e6266 | [
"Unlicense"
] | null | null | null | #teste para E2
Comecei mais um ano ao lado do cara que toma conta dos meus pensamentos todo fechar e abrir de olhos. A coisa com a fotografia andou dando passos lindos e ate maiores do que eu | 96 | 176 | 0.791667 |
62dea0090ac204a69c279d8bfd526a15bfee9932 | 475 | exs | Elixir | test/2021/day12_test.exs | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | test/2021/day12_test.exs | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | test/2021/day12_test.exs | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | defmodule AOCTest.Y2021.Day12Test do
use ExUnit.Case
alias AOC.Y2021.Day12
setup do
input = """
dc-end
HN-start
start-kj
dc-start
dc-HN
LN-dc
HN-end
kj-sa
kj-HN
kj-dc
"""
|> Day12.parse_input()
%{input: input}
end
test "Day12 part 1", %{input: input} ... | 14.393939 | 41 | 0.581053 |
62debfbc3748d9da3e0cc0882c48adaab8579db8 | 1,706 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_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... | 37.086957 | 296 | 0.783118 |
62decd8b4789ca3edfcda105286604eaf7adcb23 | 234 | exs | Elixir | apps/nerves_hub_web_core/priv/repo/migrations/20190324202024_add_delete_role.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_web_core/priv/repo/migrations/20190324202024_add_delete_role.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_web_core/priv/repo/migrations/20190324202024_add_delete_role.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWebCore.Repo.Migrations.AddDeleteRole do
use Ecto.Migration
@disable_ddl_transaction true
def up do
Ecto.Migration.execute "ALTER TYPE role ADD VALUE IF NOT EXISTS'delete'"
end
def down do
end
end
| 19.5 | 76 | 0.769231 |
62df01241308e47463806bf13ef5e8432c4a288d | 9,875 | ex | Elixir | lib/diversity_in_tech/companies/companies.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | 8 | 2018-06-22T05:43:30.000Z | 2020-04-13T20:31:40.000Z | lib/diversity_in_tech/companies/companies.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | lib/diversity_in_tech/companies/companies.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | defmodule DiversityInTech.Companies do
@moduledoc """
The Companies context.
"""
import Ecto.Query, warn: false
alias DiversityInTech.Repo
alias DiversityInTech.Companies.Company
alias Ecto.Multi
@doc """
Returns the list of companies.
## Examples
iex> list_companies()
[%Company{}, .... | 19.989879 | 78 | 0.622076 |
62df057123e35ba74f2634e52e2e93cf1aaf060c | 723 | ex | Elixir | lib/journey/execution.ex | shipworthy/journey | 95674eb9ca3a1aa932d2ef36753deefe6ce9405e | [
"MIT"
] | 1 | 2021-10-04T15:49:53.000Z | 2021-10-04T15:49:53.000Z | lib/journey/execution.ex | shipworthy/journey | 95674eb9ca3a1aa932d2ef36753deefe6ce9405e | [
"MIT"
] | 1 | 2021-06-14T02:31:57.000Z | 2021-06-14T02:31:57.000Z | lib/journey/execution.ex | shipworthy/journey | 95674eb9ca3a1aa932d2ef36753deefe6ce9405e | [
"MIT"
] | null | null | null | defmodule Journey.ExecutionDbRecord do
use Ecto.Schema
@primary_key {:id, :string, []}
@timestamps_opts [type: :integer, autogenerate: {Journey.Utilities, :curent_unix_time_ms, []}]
schema "execution" do
field(:execution_data, :map)
timestamps()
end
def convert_to_execution_struct!(execution_db_re... | 26.777778 | 96 | 0.699862 |
62df19ab544ba64fc3f441f1442fb998cba885e6 | 376 | ex | Elixir | .credo.ex | studio-elsa/ecto_resource | 4501971f60f48e842f73dde46626b957a481db42 | [
"Apache-2.0"
] | 19 | 2019-11-05T22:22:27.000Z | 2022-01-29T08:35:35.000Z | .credo.ex | studio-elsa/ecto_resource | 4501971f60f48e842f73dde46626b957a481db42 | [
"Apache-2.0"
] | 3 | 2021-02-06T05:49:43.000Z | 2021-07-07T18:22:43.000Z | .credo.ex | studio-elsa/ecto_resource | 4501971f60f48e842f73dde46626b957a481db42 | [
"Apache-2.0"
] | 4 | 2020-03-20T02:12:27.000Z | 2022-03-20T21:01:12.000Z | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "test/"],
excluded: []
},
checks: [
{Credo.Check.Refactor.CyclomaticComplexity, false},
{Credo.Check.Refactor.MapInto, false},
{Credo.Check.Refactor.LongQuoteBlocks, false},
{Cred... | 20.888889 | 59 | 0.521277 |
62df4e3de91ec14d80dbbb553de635ede5d5231a | 3,361 | exs | Elixir | integration_test/support/models.exs | aforward/ecto | 74bf4528abf198b25ff261d127fe7cf54a1ff044 | [
"Apache-2.0"
] | null | null | null | integration_test/support/models.exs | aforward/ecto | 74bf4528abf198b25ff261d127fe7cf54a1ff044 | [
"Apache-2.0"
] | null | null | null | integration_test/support/models.exs | aforward/ecto | 74bf4528abf198b25ff261d127fe7cf54a1ff044 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.Model do
defmacro __using__(_) do
quote do
use Ecto.Model
type =
Application.get_env(:ecto, :primary_key_type) ||
raise ":primary_key_type not set in :ecto application"
@primary_key {:id, type, autogenerate: true}
@foreign_key_type type
end
... | 20.875776 | 83 | 0.687295 |
62df5559fd63fd5bbe904a36c48c52f026505d27 | 813 | exs | Elixir | mix.exs | D-Town44/ptolemy | 5764c48f05e68bc6f7bc7b7af76fc640845b662e | [
"MIT"
] | null | null | null | mix.exs | D-Town44/ptolemy | 5764c48f05e68bc6f7bc7b7af76fc640845b662e | [
"MIT"
] | null | null | null | mix.exs | D-Town44/ptolemy | 5764c48f05e68bc6f7bc7b7af76fc640845b662e | [
"MIT"
] | null | null | null | defmodule Ptolemy.MixProject do
use Mix.Project
def project do
[
app: :ptolemy,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_options: [warnings_as_errors: true]
]
end
# Run "mix help compile.app" to learn about appli... | 23.228571 | 87 | 0.554736 |
62df7069d4a4a3d0e9fe9bf828d3be00fdb67dc0 | 421 | exs | Elixir | config/config.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 354 | 2020-10-21T06:27:15.000Z | 2022-03-29T13:22:46.000Z | config/config.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 111 | 2020-11-25T21:27:13.000Z | 2022-03-28T10:42:59.000Z | config/config.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 45 | 2020-12-31T20:37:11.000Z | 2022-03-18T13:12:21.000Z | import Config
if Mix.env() != :prod do
config :git_hooks,
auto_install: true,
verbose: true,
hooks: [
pre_commit: [
tasks: [
{:cmd, "mix format --check-formatted"},
{:cmd, "mix compile --warnings-as-errors"},
{:cmd, "mix credo --strict"},
{:cmd, "mix ... | 21.05 | 53 | 0.472684 |
62df75495d6c9d9f4e94f05b8c4644827c8153eb | 339 | ex | Elixir | web/controllers/admin/admin_controller.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 38 | 2016-10-21T08:26:15.000Z | 2021-03-19T23:10:40.000Z | web/controllers/admin/admin_controller.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 32 | 2017-02-19T08:57:35.000Z | 2020-02-05T13:15:11.000Z | web/controllers/admin/admin_controller.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 6 | 2017-11-24T16:02:20.000Z | 2022-02-22T07:44:36.000Z | defmodule Kastlex.Admin.AdminController do
use Kastlex.Web, :controller
plug Kastlex.Plug.EnsurePermissions
def reload(conn, _params) do
Kastlex.reload()
send_resp(conn, 204, "")
end
def revoke(conn, %{"username" => user}) do
:ok = Kastlex.TokenStorage.revoke("user:#{user}")
send_resp(conn, ... | 22.6 | 53 | 0.681416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.