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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c85fb5d8a17de83144c7d5c1327af502bd122cb7 | 1,533 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/nesting_level.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/nesting_level.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/nesting_level.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... | 31.9375 | 97 | 0.753425 |
c85fb6e56d8ee4d8e547bf529a97372d5c565c5d | 739 | ex | Elixir | web/gettext.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | web/gettext.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | web/gettext.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | defmodule SimilarfilmsPhoenix.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 SimilarfilmsPhoenix.Gettext
# Simple translation
... | 29.56 | 72 | 0.694181 |
c8600a2c12a7b3e17efeb190e6e37c2fc0386191 | 2,123 | ex | Elixir | lib/phoenix_client_ssl/plug/extract_client_certificate.ex | jshmrtn/phoenix-client-ssl | 60055f6b7a54d38d006732ad72a48f7aa55c5c08 | [
"MIT"
] | 17 | 2017-12-01T09:12:41.000Z | 2021-04-16T07:53:37.000Z | lib/phoenix_client_ssl/plug/extract_client_certificate.ex | jshmrtn/phoenix-client-ssl | 60055f6b7a54d38d006732ad72a48f7aa55c5c08 | [
"MIT"
] | 2 | 2018-01-29T13:04:26.000Z | 2018-05-24T11:03:55.000Z | lib/phoenix_client_ssl/plug/extract_client_certificate.ex | jshmrtn/phoenix-client-ssl | 60055f6b7a54d38d006732ad72a48f7aa55c5c08 | [
"MIT"
] | 6 | 2018-05-24T07:42:22.000Z | 2020-11-14T17:41:35.000Z | defmodule PhoenixClientSsl.Plug.ExtractClientCertificate do
@moduledoc """
This Plug extracts the TLS Client Certificate from eligible connections.
### Installation
The plug can be installed in any `pipeline` of the Phoenix Router. It takes no options.
defmodule Aceme.Web.Router do
use Acme.Web... | 26.209877 | 89 | 0.647668 |
c86013e8a065fa8022a81021555ab7d3c36ac1fa | 1,381 | exs | Elixir | builder/mix.exs | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | builder/mix.exs | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | builder/mix.exs | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule QuenyaBuilder.MixProject do
use Mix.Project
@version "0.3.9"
def project do
[
app: :quenya_builder,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "QuenyaBuilder",
docs: [
extras: ["READM... | 21.920635 | 58 | 0.501086 |
c860291af3ae8169d8c0464592cdb03440558f54 | 778 | exs | Elixir | samples/nodes_wobserver/mix.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | 11 | 2017-05-05T12:28:35.000Z | 2020-02-26T09:16:10.000Z | samples/nodes_wobserver/mix.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | null | null | null | samples/nodes_wobserver/mix.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | null | null | null | defmodule NodesWobserver.Mixfile do
use Mix.Project
def project do
[app: :nodes_wobserver,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help comp... | 22.882353 | 79 | 0.628535 |
c860302b62862bb3687725a9297c025002cac3da | 139 | ex | Elixir | lib/game_of_life/event_manager.ex | xing/game_of_life | ee35f9c65fd3e70b69d3f2e9a88546ee66e803c8 | [
"MIT"
] | null | null | null | lib/game_of_life/event_manager.ex | xing/game_of_life | ee35f9c65fd3e70b69d3f2e9a88546ee66e803c8 | [
"MIT"
] | null | null | null | lib/game_of_life/event_manager.ex | xing/game_of_life | ee35f9c65fd3e70b69d3f2e9a88546ee66e803c8 | [
"MIT"
] | null | null | null | defmodule GameOfLife.EventManager do
use GenEvent
def start_link do
{:ok, _pid} = GenEvent.start_link(name: __MODULE__)
end
end
| 17.375 | 55 | 0.741007 |
c86053127a8bc859701e9a07d6bdd078cee39cd1 | 563 | exs | Elixir | priv/repo/migrations/20191008201717_add_activitiy_indices.exs | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | priv/repo/migrations/20191008201717_add_activitiy_indices.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | priv/repo/migrations/20191008201717_add_activitiy_indices.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Repo.Migrations.AddActivitiyIndices do
use Ecto.Migration
def change do
create_if_not_exists(index("hotspot_activity", ["poc_req_txn_block_height"], name: "poc_req_txn_block_height"))
create_if_not_exists(index("hotspot_activity", ["poc_req_txn_block_time"], name: "poc_req_txn_block... | 51.181818 | 115 | 0.79929 |
c860a6bab87babcd934f0d7d6140c45a2dcc7bf9 | 1,304 | ex | Elixir | lib/andrex/blog/cache.ex | amalbuquerque/andrex | 20c298a7203c96655a992570ece6f3998739ae21 | [
"MIT"
] | null | null | null | lib/andrex/blog/cache.ex | amalbuquerque/andrex | 20c298a7203c96655a992570ece6f3998739ae21 | [
"MIT"
] | null | null | null | lib/andrex/blog/cache.ex | amalbuquerque/andrex | 20c298a7203c96655a992570ece6f3998739ae21 | [
"MIT"
] | null | null | null | defmodule Andrex.Blog.Cache do
require Logger
use GenServer
@name __MODULE__
@ets_options [:set, :named_table, {:read_concurrency, true}]
def start_link(_) do
{:ok, pid} = GenServer.start_link(@name, [], name: @name)
Logger.info("📓 Started Andrex.Blog.Cache 📓", pid: pid)
{:ok, pid}
end
... | 19.757576 | 71 | 0.598926 |
c860d9b2940c9825f041acf959bfa36c788eb85a | 1,346 | exs | Elixir | mix.exs | membraneframework/membrane-common-c | 7b43008a7c24fb84ac694cd179338eb72270e349 | [
"Apache-2.0"
] | 5 | 2018-07-27T20:36:22.000Z | 2018-09-11T02:27:04.000Z | mix.exs | membraneframework/membrane-common-c | 7b43008a7c24fb84ac694cd179338eb72270e349 | [
"Apache-2.0"
] | 1 | 2019-01-04T11:11:26.000Z | 2019-01-04T11:11:26.000Z | mix.exs | membraneframework/membrane-common-c | 7b43008a7c24fb84ac694cd179338eb72270e349 | [
"Apache-2.0"
] | 1 | 2018-07-28T02:54:53.000Z | 2018-07-28T02:54:53.000Z | defmodule Membrane.Common.C.Mixfile do
use Mix.Project
@version "0.12.0"
@github_url "https://github.com/membraneframework/membrane-common-c"
def project do
[
app: :membrane_common_c,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:... | 24.035714 | 97 | 0.560178 |
c8611338f7acc81da6d696607ce9e9c0660477ac | 3,873 | exs | Elixir | test/course_test.exs | stevegrossi/lessonly-elixir | abd767bc1171c6ac6f2de6086a5e42361e2421bb | [
"MIT"
] | 1 | 2016-09-06T20:04:38.000Z | 2016-09-06T20:04:38.000Z | test/course_test.exs | stevegrossi/lessonly-elixir | abd767bc1171c6ac6f2de6086a5e42361e2421bb | [
"MIT"
] | 3 | 2016-04-03T21:03:19.000Z | 2016-04-03T21:38:02.000Z | test/course_test.exs | stevegrossi/lessonly-elixir | abd767bc1171c6ac6f2de6086a5e42361e2421bb | [
"MIT"
] | null | null | null | defmodule CourseTest do
use Lessonly.ApiTest
test "all" do
use_cassette "course.all" do
response = Lessonly.Course.all(client)
assert response == [
%{"id" => 3466, "title" => "Test Course 1"},
%{"id" => 3467, "title" => "Test Course 2"}
]
end
end
test "find" do
us... | 28.688889 | 93 | 0.449781 |
c8611aa3cfcd108bb1cc7a25622fec012a7b34f4 | 903 | exs | Elixir | test/floki/selector_test.exs | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | null | null | null | test/floki/selector_test.exs | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | null | null | null | test/floki/selector_test.exs | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | null | null | null | defmodule Floki.SelectorTest do
use ExUnit.Case, async: true
alias Floki.Selector
alias Selector.{AttributeSelector, PseudoClass, Combinator}
test "to_string/1 (String.Chars protocol)" do
attribute1 = %AttributeSelector{match_type: :equal, attribute: "href", value: "#home"}
pseudo_class1 = %PseudoClas... | 30.1 | 90 | 0.647841 |
c861619cdf54f0b12c5b4d6e54bb68a1bd7bf125 | 1,150 | ex | Elixir | lib/ecto_pg_geom/circle.ex | aseigo/ecto_pg_geom | bf90436794e91912ba67e7778bcbe11c4010de6e | [
"Apache-2.0"
] | 3 | 2020-08-30T12:08:17.000Z | 2021-03-20T21:38:41.000Z | lib/ecto_pg_geom/circle.ex | aseigo/ecto_pg_geom | bf90436794e91912ba67e7778bcbe11c4010de6e | [
"Apache-2.0"
] | null | null | null | lib/ecto_pg_geom/circle.ex | aseigo/ecto_pg_geom | bf90436794e91912ba67e7778bcbe11c4010de6e | [
"Apache-2.0"
] | null | null | null | defmodule EctoPgGeom.Circle do
@moduledoc """
An Ecto type for [circles](https://www.postgresql.org/docs/current/datatype-geometric.html#DATATYPE-CIRCLE).
May be used as a field in an `Ecto.Schema` for automatic use of circle data stored in the database:
field :circle, EctoPgGeom.Circle
Assigning to a ... | 30.263158 | 110 | 0.666957 |
c861668af2f4dc3e83cab65a2c1de83c3e1a3101 | 467 | exs | Elixir | config/test.exs | theanht1/vim_snake | a7650acf579721917a27d2f6c65f3e0d03e2d893 | [
"MIT"
] | 19 | 2020-01-15T05:34:44.000Z | 2022-03-01T14:11:00.000Z | config/test.exs | theanht1/vim_snake | a7650acf579721917a27d2f6c65f3e0d03e2d893 | [
"MIT"
] | 2 | 2021-09-14T03:06:58.000Z | 2022-02-12T04:31:34.000Z | config/test.exs | theanht1/vim_snake | a7650acf579721917a27d2f6c65f3e0d03e2d893 | [
"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 :vim_snake, VimSnakeWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :vim_snake, VimSn... | 24.578947 | 56 | 0.736617 |
c86168b71958c1d967222d0901cb0f9828cb5779 | 995 | ex | Elixir | elixir_runtime/lib/mix/tasks/bootstrap.ex | patternmatch/aws-lambda-elixir-runtime | c9c894573f94eecc304ab83b8a779dc03cfee1c9 | [
"MIT-0"
] | 1 | 2019-03-20T20:30:17.000Z | 2019-03-20T20:30:17.000Z | elixir_runtime/lib/mix/tasks/bootstrap.ex | patternmatch/aws-lambda-elixir-runtime | c9c894573f94eecc304ab83b8a779dc03cfee1c9 | [
"MIT-0"
] | null | null | null | elixir_runtime/lib/mix/tasks/bootstrap.ex | patternmatch/aws-lambda-elixir-runtime | c9c894573f94eecc304ab83b8a779dc03cfee1c9 | [
"MIT-0"
] | null | null | null | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
defmodule Mix.Tasks.Bootstrap do
@moduledoc """
Generate a bootstrap script for the project in the release directory.
This task will fail if it's run before `mix release`.
"""
use Mix.Task
@runtime_... | 22.613636 | 73 | 0.664322 |
c86171c0bdb33d659cdbadf5ea101d7c3b23244e | 31,649 | ex | Elixir | clients/chat/lib/google_api/chat/v1/api/spaces.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chat/lib/google_api/chat/v1/api/spaces.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chat/lib/google_api/chat/v1/api/spaces.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... | 48.765794 | 559 | 0.619514 |
c8617d15d77d1bd7513b75e068598aa15974303c | 2,761 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/lease_work_item_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/lease_work_item_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/lease_work_item_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.014493 | 146 | 0.701195 |
c86199f5c4bb856e4322c905d60399107b7f084f | 3,046 | exs | Elixir | mix.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 139 | 2018-12-17T13:52:42.000Z | 2022-03-27T02:58:55.000Z | mix.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 25 | 2019-08-07T16:49:03.000Z | 2022-03-14T18:17:54.000Z | mix.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 30 | 2019-01-09T12:36:16.000Z | 2022-03-14T18:03:28.000Z | defmodule Cloak.Ecto.MixProject do
use Mix.Project
def project do
[
app: :cloak_ecto,
version: "1.2.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test... | 27.441441 | 83 | 0.545305 |
c861c3d0253d0c2dded8aba3d4f5f0c8f582f256 | 91 | exs | Elixir | test/akd/base/build/distillery_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | test/akd/base/build/distillery_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | test/akd/base/build/distillery_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | defmodule Akd.Build.DistilleryTest do
use ExUnit.Case
doctest Akd.Build.Distillery
end
| 18.2 | 37 | 0.813187 |
c861e938777a6a43241f6bd3500a1f38f302b977 | 1,851 | ex | Elixir | weather/lib/weather/cli.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | weather/lib/weather/cli.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | weather/lib/weather/cli.ex | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | defmodule Weather.CLI do
@moduledoc """
Handle the command line parsing and the dispatch to
various functions that end up generating a
table of the weather conditions for requested city using city code
"""
def main(argv) do
argv
|> parse_args
|> process
end
@doc """
`argv` can be -h or --help, which r... | 33.654545 | 106 | 0.709887 |
c862035d224e037bd9d094c5daf258a6e8e138a2 | 3,227 | exs | Elixir | apps/artemis/test/artemis/schemas/role_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis/test/artemis/schemas/role_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/test/artemis/schemas/role_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule Artemis.RoleTest do
use Artemis.DataCase
use ExUnit.Case, async: true
import Ecto.Repo
import Artemis.Factories
alias Artemis.Permission
alias Artemis.Repo
alias Artemis.Role
alias Artemis.UserRole
@preload [:permissions, :user_roles]
describe "attributes - constraints" do
test "na... | 23.903704 | 96 | 0.613573 |
c8623313fe9c829f4b5f30836bff1731c285677f | 672 | ex | Elixir | xarb/lib/xarb_web/controllers/user_session_controller.ex | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | xarb/lib/xarb_web/controllers/user_session_controller.ex | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | xarb/lib/xarb_web/controllers/user_session_controller.ex | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | defmodule XarbWeb.UserSessionController do
use XarbWeb, :controller
alias Xarb.Accounts
alias XarbWeb.UserAuth
def new(conn, _params) do
render(conn, "new.html", error_message: nil)
end
def create(conn, %{"user" => user_params}) do
%{"email" => email, "password" => password} = user_params
if... | 24.888889 | 74 | 0.688988 |
c862460f9d12344c6a55e0552ff8bbe8a3f76a7a | 5,859 | ex | Elixir | lib/vow/map.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | 2 | 2020-06-18T06:24:24.000Z | 2021-02-21T02:16:37.000Z | lib/vow/map.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | 45 | 2019-11-21T10:49:14.000Z | 2021-08-02T10:21:01.000Z | lib/vow/map.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | null | null | null | defmodule Vow.Map do
@moduledoc false
use Vow.Utils.AccessShortcut
defstruct key_vow: nil,
val_vow: nil,
min_length: 0,
max_length: nil,
conform_keys?: false
@type t :: %__MODULE__{
key_vow: Vow.t(),
val_vow: Vow.t(),
min_length: no... | 29.892857 | 88 | 0.562212 |
c8624cb631e04f508dafa618e56e76d3404735d0 | 872 | ex | Elixir | clients/iam/lib/google_api/iam/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.296296 | 74 | 0.755734 |
c86278df1dc0d1c8d06766510642745d8d692b0d | 3,700 | exs | Elixir | test/mix/tasks/ecto.create_drop_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | test/mix/tasks/ecto.create_drop_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/ecto.create_drop_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.CreateDropTest do
use ExUnit.Case, async: true
alias Mix.Tasks.Ecto.{Create, Drop}
# Mocked adapters
defmodule Adapter do
@behaviour Ecto.Adapter
@behaviour Ecto.Adapter.Storage
defmacro __before_compile__(_), do: :ok
def dumpers(_, _), do: raise "not implemented"
... | 32.45614 | 121 | 0.686757 |
c862c11fea6af8196415a3bc8dca17cbe431941a | 6,021 | exs | Elixir | test/git_pair_ex/cli_test.exs | PZiaugra/git_pair_ex | cebfe9b7b26519e8f7664ecba48aa86b8f41f30a | [
"MIT"
] | null | null | null | test/git_pair_ex/cli_test.exs | PZiaugra/git_pair_ex | cebfe9b7b26519e8f7664ecba48aa86b8f41f30a | [
"MIT"
] | 2 | 2022-02-22T20:24:09.000Z | 2022-02-22T20:24:56.000Z | test/git_pair_ex/cli_test.exs | PZiaugra/git_pair_ex | cebfe9b7b26519e8f7664ecba48aa86b8f41f30a | [
"MIT"
] | 1 | 2022-02-22T20:26:23.000Z | 2022-02-22T20:26:23.000Z | defmodule GitPairEx.CLITest do
use ExUnit.Case
import ExUnit.CaptureIO
describe "git-pair CLI" do
test "prints usage instructions when the help switch is supplied" do
execute_main = fn ->
GitPairEx.CLI.main(["-h"])
end
assert capture_io(execute_main) =~ "USAGE"
end
test "... | 29.955224 | 116 | 0.587776 |
c862d9397b4f5da3885d0d4228a2d6f16da66fff | 6,434 | ex | Elixir | apps/opentelemetry_api/lib/open_telemetry/tracer.ex | ferd/opentelemetry-erlang | 4a001bc4c846efea1677cc322803e2b2095ca2b5 | [
"Apache-2.0"
] | null | null | null | apps/opentelemetry_api/lib/open_telemetry/tracer.ex | ferd/opentelemetry-erlang | 4a001bc4c846efea1677cc322803e2b2095ca2b5 | [
"Apache-2.0"
] | null | null | null | apps/opentelemetry_api/lib/open_telemetry/tracer.ex | ferd/opentelemetry-erlang | 4a001bc4c846efea1677cc322803e2b2095ca2b5 | [
"Apache-2.0"
] | null | null | null | defmodule OpenTelemetry.Tracer do
@moduledoc """
This module contains macros for Tracer operations around the lifecycle of the Spans within a Trace.
The Tracer is able to start a new Span as a child of the active Span of the current process, set
a different Span to be the current Span by passing the Span's con... | 32.00995 | 101 | 0.694125 |
c86358697eb97aadfc5701246bd42f5943f2712c | 1,020 | exs | Elixir | elixir/isogram/isogram_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/isogram/isogram_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/isogram/isogram_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("isogram.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule IsogramTest do
use ExUnit.Case
test "isogram lowercase" do
assert Isogram.isogram?("subdermatoglyphic")
end
#@tag :pending
test "not is... | 20.4 | 61 | 0.69902 |
c8635aa6aa5a653ce7d035c9fec474198358e340 | 856 | ex | Elixir | lib/subscription_web/controllers/user_registration_controller.ex | manojsamanta/stripe-subscription | d544a9dbde4c1c05998561ba4d77c966f00b18a5 | [
"MIT"
] | null | null | null | lib/subscription_web/controllers/user_registration_controller.ex | manojsamanta/stripe-subscription | d544a9dbde4c1c05998561ba4d77c966f00b18a5 | [
"MIT"
] | null | null | null | lib/subscription_web/controllers/user_registration_controller.ex | manojsamanta/stripe-subscription | d544a9dbde4c1c05998561ba4d77c966f00b18a5 | [
"MIT"
] | null | null | null | defmodule SubscriptionWeb.UserRegistrationController do
use SubscriptionWeb, :controller
alias Subscription.Accounts
alias Subscription.Accounts.User
alias SubscriptionWeb.UserAuth
def new(conn, _params) do
changeset = Accounts.change_user_registration(%User{})
render(conn, "new.html", changeset: ch... | 27.612903 | 61 | 0.658879 |
c8636ffba837b32290cde2b94cd3d9bc55353625 | 3,985 | ex | Elixir | deps/absinthe/lib/absinthe/type/custom.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | lib/absinthe/type/custom.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | lib/absinthe/type/custom.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Type.Custom do
use Absinthe.Schema.Notation
@moduledoc """
This module contains the following additional data types:
- datetime (UTC)
- naive_datetime
- date
- time
- decimal (only if [Decimal](https://hex.pm/packages/decimal) is available)
Further description of these types can b... | 29.962406 | 98 | 0.686826 |
c863a09d69844d8e0717a76f8b8926d0f1e5bf0b | 9,606 | exs | Elixir | test/subtype_test.exs | skirino/croma | b3853e94580a9d8f71f76a9c69a3020802bc3d72 | [
"MIT"
] | 123 | 2015-08-12T07:45:52.000Z | 2022-02-06T21:42:03.000Z | test/subtype_test.exs | skirino/croma | b3853e94580a9d8f71f76a9c69a3020802bc3d72 | [
"MIT"
] | 11 | 2015-07-30T01:08:54.000Z | 2021-03-29T04:00:20.000Z | test/subtype_test.exs | skirino/croma | b3853e94580a9d8f71f76a9c69a3020802bc3d72 | [
"MIT"
] | 16 | 2015-07-29T16:09:24.000Z | 2021-05-23T14:20:20.000Z | defmodule Croma.SubtypeTest do
use ExUnit.Case
defmodule I1 do
use Croma.SubtypeOfInt, min: 1
end
defmodule I2 do
use Croma.SubtypeOfInt, min: 0, max: 10
end
defmodule I3 do
use Croma.SubtypeOfInt, max: -1, default: -5
end
defmodule I4 do
use Croma.SubtypeOfInt, min: -5, max: 5, default... | 26.46281 | 92 | 0.564751 |
c863a70d1447afd71391990f88650838c9e816f3 | 699 | exs | Elixir | priv/repo/migrations/20170523165017_create_invite.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | priv/repo/migrations/20170523165017_create_invite.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | priv/repo/migrations/20170523165017_create_invite.exs | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.Repo.Migrations.CreateInvite do
use Ecto.Migration
def change do
create table(:invites, primary_key: false) do
add :id, :uuid, primary_key: true
add :open, :boolean, default: false, null: false
add :accepted, :boolean, default: false, null: false
add :description, :text
... | 31.772727 | 75 | 0.666667 |
c863b9c058388da748062dfbe5587d5b267b6b3a | 67 | ex | Elixir | lib/onde_server_web/views/page_view.ex | ufra-lca/bage_server | 3fd7592707624b7221035225b1a5113de856a7ff | [
"MIT"
] | null | null | null | lib/onde_server_web/views/page_view.ex | ufra-lca/bage_server | 3fd7592707624b7221035225b1a5113de856a7ff | [
"MIT"
] | 3 | 2021-03-09T18:21:20.000Z | 2021-09-01T22:58:23.000Z | lib/onde_server_web/views/page_view.ex | ufra-lca/bage_server | 3fd7592707624b7221035225b1a5113de856a7ff | [
"MIT"
] | null | null | null | defmodule OndeServerWeb.PageView do
use OndeServerWeb, :view
end
| 16.75 | 35 | 0.820896 |
c863c9a9fe0d8888bee06c68451f4357f405055a | 2,520 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_permission.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... | 40.645161 | 205 | 0.708333 |
c863d253cd807c4287f3e0718528e9d570d85e22 | 3,561 | ex | Elixir | lib/shopify/graphql/limiter/producer.ex | aalfson/shopify-graphql-elixir | ef197c0463834d4f76ec1a11d57b1af3cfb1890b | [
"MIT"
] | null | null | null | lib/shopify/graphql/limiter/producer.ex | aalfson/shopify-graphql-elixir | ef197c0463834d4f76ec1a11d57b1af3cfb1890b | [
"MIT"
] | null | null | null | lib/shopify/graphql/limiter/producer.ex | aalfson/shopify-graphql-elixir | ef197c0463834d4f76ec1a11d57b1af3cfb1890b | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(GenStage) do
defmodule Shopify.GraphQL.Limiter.Producer do
use GenStage
alias Shopify.GraphQL.{ Config, Helpers, Limiter, Request }
#
# client
#
@spec idle?(Limiter.name_t()) :: boolean
def idle?(partition) do
GenStage.call(name(partition), :idle?)
end
... | 29.188525 | 97 | 0.609379 |
c863e3d380a7e5e21e53064f043bb14f43435fac | 1,119 | exs | Elixir | webrtc/videoroom/mix.exs | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | null | null | null | webrtc/videoroom/mix.exs | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | null | null | null | webrtc/videoroom/mix.exs | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | null | null | null | defmodule VideoRoom.MixProject do
use Mix.Project
def project do
[
app: :membrane_videoroom_demo,
version: "0.1.0",
elixir: "~> 1.12",
aliases: aliases(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
mod: {VideoRoom.Applicat... | 21.941176 | 54 | 0.495979 |
c864587a16746ee050c637e3dc593fb6e5199e96 | 323 | ex | Elixir | AlchemistCamp/the_greeter/greeter.ex | CuriousPhysicist/ElixirProjects | 986cfb3c44349c815e165e8b53d89fca6d050cda | [
"Unlicense"
] | null | null | null | AlchemistCamp/the_greeter/greeter.ex | CuriousPhysicist/ElixirProjects | 986cfb3c44349c815e165e8b53d89fca6d050cda | [
"Unlicense"
] | null | null | null | AlchemistCamp/the_greeter/greeter.ex | CuriousPhysicist/ElixirProjects | 986cfb3c44349c815e165e8b53d89fca6d050cda | [
"Unlicense"
] | null | null | null | # The solution provided by the tutor 'Mark'
defmodule Greeter do
def start do
name = IO.gets("Hi there! What's your name?\n")
case String.trim(name) do
"Mark" -> "Wow! Mark is my favourite name. I was programmed by someone named Mark!"
name -> "Hi #{name}, it's nice to meet you."
end
end
e... | 24.846154 | 89 | 0.640867 |
c8649aec16c75ab5d33fd7c0984cd09c40971ca3 | 2,282 | exs | Elixir | test/lib/powerdnsex/config_test.exs | daviluis321/power_dnsex | 724393c284c7df3565c7922278f3bb060eaa4f85 | [
"MIT"
] | null | null | null | test/lib/powerdnsex/config_test.exs | daviluis321/power_dnsex | 724393c284c7df3565c7922278f3bb060eaa4f85 | [
"MIT"
] | null | null | null | test/lib/powerdnsex/config_test.exs | daviluis321/power_dnsex | 724393c284c7df3565c7922278f3bb060eaa4f85 | [
"MIT"
] | null | null | null | defmodule PowerDNSex.ConfigTest do
use ExUnit.Case, async: false
alias PowerDNSex.FakeConfig, as: Config
setup do: Config.set_url()
setup do: Config.set_token()
setup do: Config.set_timeout()
setup do: Config.set_url() && Config.set_token()
describe "Config.powerdns_token/0" do
@tag :configs
te... | 28.525 | 85 | 0.676599 |
c864de1d0b3a80a28a36a997aeca911c0206f050 | 1,061 | ex | Elixir | lib/cheerland_reservas_web/controllers/session_controller.ex | fskinner/cheerland-reservas | 48a782d7e49736a89b4fd2136c98906269b6351e | [
"MIT"
] | 2 | 2019-03-14T20:03:44.000Z | 2019-08-30T13:30:42.000Z | lib/cheerland_reservas_web/controllers/session_controller.ex | fskinner/cheerland-reservas | 48a782d7e49736a89b4fd2136c98906269b6351e | [
"MIT"
] | 1 | 2021-05-08T08:23:18.000Z | 2021-05-08T08:23:18.000Z | lib/cheerland_reservas_web/controllers/session_controller.ex | fskinner/cheerland-reservas | 48a782d7e49736a89b4fd2136c98906269b6351e | [
"MIT"
] | null | null | null | defmodule CheerlandReservasWeb.SessionController do
use CheerlandReservasWeb, :controller
alias CheerlandReservas.Authentication
alias CheerlandReservasWeb.Guardian
plug(:scrub_params, "user" when action in [:create])
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user"... | 23.577778 | 60 | 0.63902 |
c864e79a46e433a088f726935345d0da35658bfc | 2,966 | exs | Elixir | test/client/servers/subusers_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/client/servers/subusers_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/client/servers/subusers_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | defmodule Elidactyl.Client.Server.SubusersTest do
use ExUnit.Case, async: false
use Elidactyl.RequestCase
alias Elidactyl.MockedServer
alias Elidactyl.Schemas.Server.SubuserV1
alias Elidactyl.Client
setup do
%{attributes: user1} = MockedServer.put(:server_subuser, server: 1)
%{attributes: user2} =... | 37.075 | 96 | 0.678355 |
c865284a01117c48a381d8fbcc85135f7d07a046 | 3,894 | ex | Elixir | lib/rig_api/v3/responses.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/rig_api/v3/responses.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/rig_api/v3/responses.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigApi.V3.Responses do
@moduledoc "Controller for submitting (backend) responses to asynchronous (frontend) requests."
require Logger
use RigApi, :controller
use PhoenixSwagger
alias RigInboundGateway.ApiProxy.ResponseFromParser
@prefix "/v3"
action_fallback(RigApi.Fallback)
swagger_path ... | 33.568966 | 97 | 0.599384 |
c86548befe5de76eca1bc5fcb6fb2187a74d9489 | 2,687 | ex | Elixir | lib/ipfinder/Validation/Firewallvalidation.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | null | null | null | lib/ipfinder/Validation/Firewallvalidation.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | 1 | 2019-08-29T23:23:08.000Z | 2019-08-29T23:23:08.000Z | lib/ipfinder/Validation/Firewallvalidation.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | 2 | 2019-08-29T23:19:07.000Z | 2022-02-02T03:00:16.000Z | defmodule Ipfinder.Validation.Firewallvalidation do
@moduledoc """
# IPFinder elixir Client Library
The official elixir client library for the [IPFinder.io](https://ipfinder.io) get details for :
- IP address details (city, region, country, postal code, latitude and more ..)
- ASN details (Organization... | 57.170213 | 591 | 0.670264 |
c8658388a88627504d544524037dca1e60844788 | 1,078 | ex | Elixir | test/support/conn_case.ex | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | 1 | 2017-04-22T12:36:19.000Z | 2017-04-22T12:36:19.000Z | test/support/conn_case.ex | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | null | null | null | defmodule Ruru.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 databa... | 23.955556 | 66 | 0.699443 |
c865ae6b2c4038df8bc2c54575f4dcb6a09cb080 | 2,325 | ex | Elixir | lib/boundary/mix_compiler.ex | Geekfish/boundary | 6ee30502759bc0f9eef2364429f4af58ba5ce881 | [
"MIT"
] | null | null | null | lib/boundary/mix_compiler.ex | Geekfish/boundary | 6ee30502759bc0f9eef2364429f4af58ba5ce881 | [
"MIT"
] | null | null | null | lib/boundary/mix_compiler.ex | Geekfish/boundary | 6ee30502759bc0f9eef2364429f4af58ba5ce881 | [
"MIT"
] | null | null | null | defmodule Boundary.MixCompiler do
@moduledoc false
# credo:disable-for-this-file Credo.Check.Readability.Specs
def check(opts \\ []) do
opts
|> Boundary.Checker.errors()
|> Stream.map(&to_diagnostic_error/1)
|> Enum.sort_by(&{&1.file, &1.position})
rescue
e in Boundary.DefinitionError ->
... | 31.418919 | 117 | 0.659785 |
c865c7a8f7890de6b147e3f139d486fe6145f728 | 854 | exs | Elixir | exercises/isogram/test/isogram_test.exs | nathanchere/elixir | 86f6e8017141671eb312741641d3275227af2760 | [
"MIT"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/isogram/test/isogram_test.exs | nathanchere/elixir | 86f6e8017141671eb312741641d3275227af2760 | [
"MIT"
] | null | null | null | exercises/isogram/test/isogram_test.exs | nathanchere/elixir | 86f6e8017141671eb312741641d3275227af2760 | [
"MIT"
] | null | null | null | defmodule IsogramTest do
use ExUnit.Case
test "isogram lowercase" do
assert Isogram.isogram?("subdermatoglyphic")
end
@tag :pending
test "not isogram lowercase " do
refute Isogram.isogram?("eleven")
end
@tag :pending
test "isogram uppercase" do
assert Isogram.isogram?("DEMONSTRABLY")
en... | 19.860465 | 61 | 0.693208 |
c865c93f52b5fc3031fdb571ab9d694bab654f61 | 99 | ex | Elixir | lib/exeex/utils.ex | khattori/exeex | cc7b907afb87b29f116d6ae94e3a2ca8cecb6d81 | [
"MIT"
] | null | null | null | lib/exeex/utils.ex | khattori/exeex | cc7b907afb87b29f116d6ae94e3a2ca8cecb6d81 | [
"MIT"
] | null | null | null | lib/exeex/utils.ex | khattori/exeex | cc7b907afb87b29f116d6ae94e3a2ca8cecb6d81 | [
"MIT"
] | null | null | null | defmodule ExEEx.Utils do
def split_path(path), do: {Path.dirname(path), Path.basename(path)}
end
| 24.75 | 69 | 0.747475 |
c865fac44ce8295bb771d32ee7b2a3685d26ad89 | 2,322 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_firebase_links_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_firebase_links_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_firebase_links_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.451613 | 295 | 0.752369 |
c865fdcce2fa762da42fec5c0de88773629d84d1 | 404 | exs | Elixir | test/absinthe/integration/execution/input_object_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/input_object_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/input_object_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Elixir.Absinthe.Integration.Execution.InputObjectTest do
use ExUnit.Case, async: true
@query """
mutation {
updateThing(id: "foo", thing: {value: 100}) {
name
value
}
}
"""
test "scenario #1" do
assert {:ok, %{data: %{"updateThing" => %{"name" => "Foo", "value" => 100}}}}... | 22.444444 | 84 | 0.584158 |
c8660e38689ad057261dcb42f9e4aac670066672 | 1,756 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/size_suggestion_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/size_suggestion_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/size_suggestion_state.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... | 35.12 | 161 | 0.731207 |
c8665e84023f9acb05498a6acd0608c95f7ed9ec | 800 | ex | Elixir | lib/recase/cases/camel_case.ex | kempt09/recase | d6bebb6e801c3d70e585ee58bbf6bc142670e3e1 | [
"MIT"
] | 186 | 2017-07-12T08:38:38.000Z | 2022-01-09T15:29:20.000Z | lib/recase/cases/camel_case.ex | kempt09/recase | d6bebb6e801c3d70e585ee58bbf6bc142670e3e1 | [
"MIT"
] | 116 | 2017-07-08T20:32:48.000Z | 2022-01-18T02:21:14.000Z | lib/recase/cases/camel_case.ex | kempt09/recase | d6bebb6e801c3d70e585ee58bbf6bc142670e3e1 | [
"MIT"
] | 29 | 2017-12-25T02:49:51.000Z | 2021-12-18T05:48:55.000Z | defmodule Recase.CamelCase do
@moduledoc """
Module to convert strings to `camelCase`.
This module should not be used directly.
## Examples
iex> Recase.to_camel "foo_barBaz-λambdaΛambda-привет-Мир"
"fooBarBazΛambdaΛambdaПриветМир"
Read about `camelCase` here:
https://en.wikipedia.org/wiki/Ca... | 25.806452 | 68 | 0.66 |
c86687fe3add7917684653588456b56fcdd1f7f4 | 2,271 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1_video_annotation_progress.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1_video_annotation_progress.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1_video_annotation_progress.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 35.484375 | 139 | 0.743725 |
c8668da715a6381e91358eacd7941e92a9e852ae | 205 | ex | Elixir | test/support/ecto/users/username_user.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | test/support/ecto/users/username_user.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | test/support/ecto/users/username_user.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule Pow.Test.Ecto.Users.UsernameUser do
@moduledoc false
use Ecto.Schema
use Pow.Ecto.Schema,
user_id_field: :username
schema "users" do
pow_user_fields()
timestamps()
end
end
| 17.083333 | 45 | 0.717073 |
c8668ed41ed86a24b4dee0720a1f32cc7cb45f67 | 41,294 | ex | Elixir | lib/baiji/service/sqs.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/sqs.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/sqs.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | defmodule Baiji.SQS do
@moduledoc """
Welcome to the *Amazon Simple Queue Service API Reference*.
Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable
hosted queue for storing messages as they travel between applications or
microservices. Amazon SQS moves data between distributed applica... | 60.905605 | 14,969 | 0.651499 |
c866b372697536bb822cdbb7214cc87f3739d3c9 | 49,811 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/memcache/lib/google_api/memcache/v1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/memcache/lib/google_api/memcache/v1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.727017 | 607 | 0.615667 |
c866b8be974f8dfb6b060cbdd8bcc33f18a09734 | 294 | ex | Elixir | kousa/lib/kousa/github.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/lib/kousa/github.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/lib/kousa/github.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Kousa.Github do
def pick_primary_email([]) do
nil
end
def pick_primary_email(emails) do
primary_email = Enum.find(emails, &(&1["primary"] == true))
if(is_nil(primary_email),
do: Enum.at(emails, 0)["email"],
else: primary_email["email"]
)
end
end
| 19.6 | 63 | 0.639456 |
c8672212997324eb51f73b09ae6575abac5db32b | 1,925 | ex | Elixir | lib/freddy/adapter/sandbox/connection.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 10 | 2017-06-28T11:39:39.000Z | 2021-11-19T23:23:16.000Z | lib/freddy/adapter/sandbox/connection.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 16 | 2017-01-07T15:34:36.000Z | 2021-05-05T11:07:31.000Z | lib/freddy/adapter/sandbox/connection.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 4 | 2018-10-08T19:54:46.000Z | 2021-05-05T10:49:10.000Z | defmodule Freddy.Adapter.Sandbox.Connection do
@moduledoc false
use GenServer
def open(_opts) do
GenServer.start_link(__MODULE__, nil)
end
def link(pid) do
Process.link(pid)
end
def close(pid) do
GenServer.stop(pid)
end
def set_on_open_channel(connection, response) do
GenServer.ca... | 23.765432 | 83 | 0.657662 |
c8674b8d558d4fc649f9009934d70fa749670c72 | 3,710 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/test_specification.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/testing/lib/google_api/testing/v1/model/test_specification.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/test_specification.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 ... | 49.466667 | 157 | 0.72345 |
c8675144885edc4120a24a595c03b67e56b61786 | 2,519 | ex | Elixir | lib/game/command/typo.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/command/typo.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/command/typo.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Game.Command.Typo do
@moduledoc """
The "typo" command
"""
use Game.Command
use Game.Command.Editor
alias Data.Typo
alias Data.Repo
commands(["typo"])
@impl Game.Command
def help(:topic), do: "Typo"
def help(:short), do: "Report a typo"
def help(:full) do
"""
Report a typo... | 25.444444 | 110 | 0.612148 |
c86779d3d21b39d72d54ab6143c4a135767f795a | 5,247 | ex | Elixir | lib/hexpm/web/controllers/package_controller.ex | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/package_controller.ex | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/package_controller.ex | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.PackageController do
use Hexpm.Web, :controller
@packages_per_page 30
@sort_params ~w(name recent_downloads total_downloads inserted_at updated_at)
@letters for letter <- ?A..?Z, do: <<letter>>
def index(conn, params) do
letter = Hexpm.Utils.parse_search(params["letter"])
search ... | 28.82967 | 93 | 0.636364 |
c8677bd0ae25a3e652dbe0f239c2c64d6e1b9300 | 1,502 | ex | Elixir | lib/mix/tasks/people/subscriptions.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/mix/tasks/people/subscriptions.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/mix/tasks/people/subscriptions.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Mix.Tasks.Changelog.Subscriptions do
use Mix.Task
alias Changelog.{Faker, Person, Podcast, Repo, Subscription}
alias ChangelogWeb.PersonView
alias NimbleCSV.RFC4180, as: CSV
@shortdoc "Imports people and subscriptions from CSV"
def run([import_file]),
do: run([import_file, "you subscribed w... | 25.033333 | 80 | 0.655792 |
c8678f943310d4dd9c8225ee4e6c8848fca15161 | 1,173 | ex | Elixir | lib/pumpkin_web/channels/user_socket.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | lib/pumpkin_web/channels/user_socket.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | lib/pumpkin_web/channels/user_socket.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | defmodule PumpkinWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PumpkinWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and a... | 30.868421 | 83 | 0.703325 |
c867a29b8b50bfe69c4224e4418030667d6e828a | 11,122 | ex | Elixir | lib/tesla_api/auth.ex | flacjacket/teslamate | de4725d92273b3f3cb92d4c9cfe8b4ca4175b24c | [
"MIT"
] | 1 | 2021-05-20T07:40:58.000Z | 2021-05-20T07:40:58.000Z | lib/tesla_api/auth.ex | flacjacket/teslamate | de4725d92273b3f3cb92d4c9cfe8b4ca4175b24c | [
"MIT"
] | null | null | null | lib/tesla_api/auth.ex | flacjacket/teslamate | de4725d92273b3f3cb92d4c9cfe8b4ca4175b24c | [
"MIT"
] | null | null | null | defmodule TeslaApi.Auth do
use Tesla
require Logger
alias TeslaApi.Error
@web_client_id "ownerapi"
@client_id "81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384"
@client_secret "c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3"
@redirect_uri "https://auth.tesla.com/void/c... | 29.42328 | 98 | 0.594947 |
c867c6c0e38b598db777e342fbe677b4a6ecb610 | 2,033 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/set_iam_policy_request.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... | 40.66 | 306 | 0.73635 |
c867ddbe5e80098c1b3f0259b2ecc79be406d9e9 | 2,482 | ex | Elixir | lib/nostrum/cache/presence_cache.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 2 | 2020-03-03T02:51:57.000Z | 2021-01-18T02:24:42.000Z | lib/nostrum/cache/presence_cache.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/cache/presence_cache.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Cache.PresenceCache do
@moduledoc """
Cache for presences.
The ETS table name associated with the User Cache is `:presences`. Besides the
methods provided below you can call any other ETS methods on the table.
## Example
```elixir
info = :ets.info(:presences)
[..., heir: :none, name:... | 28.204545 | 86 | 0.636986 |
c868628c9459121a7234e6b9b0b7976a005fa3b6 | 430 | exs | Elixir | test/nys_etl/monitoring/supervisor_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | test/nys_etl/monitoring/supervisor_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | test/nys_etl/monitoring/supervisor_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Monitoring.SupervisorTest do
use NYSETL.SimpleCase, async: false
import ExUnit.CaptureLog
alias NYSETL.Monitoring.Supervisor
test "validation of metric configurations" do
metrics = Supervisor.metrics()
assert capture_log(fn ->
# validate_metrics is limited in what it exa... | 26.875 | 71 | 0.716279 |
c868788031e0edc52efba8cc077f84ce8e7ca16f | 10,694 | exs | Elixir | apps/ewallet_config/test/ewallet_config/config_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_config/test/ewallet_config/config_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_config/test/ewallet_config/config_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.177843 | 94 | 0.627642 |
c868a5d3cfc9ae25c0278290f38b5c5f3459a458 | 988 | ex | Elixir | lib/resource/mutation.ex | TheFirstAvenger/ash_graphql | 64d2e241b71cb6a86a6f556a54a2507823261c19 | [
"MIT"
] | null | null | null | lib/resource/mutation.ex | TheFirstAvenger/ash_graphql | 64d2e241b71cb6a86a6f556a54a2507823261c19 | [
"MIT"
] | null | null | null | lib/resource/mutation.ex | TheFirstAvenger/ash_graphql | 64d2e241b71cb6a86a6f556a54a2507823261c19 | [
"MIT"
] | null | null | null | defmodule AshGraphql.Resource.Mutation do
@moduledoc "Represents a configured mutation on a resource"
defstruct [:name, :action, :type]
@create_schema [
name: [
type: :atom,
doc: "The name to use for the mutation.",
default: :get
],
action: [
type: :atom,
doc: "The actio... | 20.583333 | 61 | 0.577935 |
c868aefcc08e6505d558997321116b35f1e2a662 | 1,125 | exs | Elixir | config/config.exs | marconi/pubsubplus | e32ce3d00bba584b231687e4616e034f6bc5b61f | [
"MIT"
] | 2 | 2016-09-19T08:11:25.000Z | 2021-11-09T23:44:30.000Z | config/config.exs | marconi/elixir_pubsub_plus | e32ce3d00bba584b231687e4616e034f6bc5b61f | [
"MIT"
] | null | null | null | config/config.exs | marconi/elixir_pubsub_plus | e32ce3d00bba584b231687e4616e034f6bc5b61f | [
"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... | 36.290323 | 73 | 0.752889 |
c868df53adba4979e76d23dca6e49108285ba5ec | 1,113 | exs | Elixir | config/config.exs | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | 3 | 2018-02-05T03:37:27.000Z | 2020-02-19T23:58:22.000Z | config/config.exs | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | null | null | null | config/config.exs | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"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.903226 | 73 | 0.75292 |
c868e64f3a147f56613a22ce7b419733d96e243b | 1,187 | exs | Elixir | test/oli/notifications/worker_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | test/oli/notifications/worker_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | test/oli/notifications/worker_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Groups.WorkerTest do
use Oban.Testing, repo: Oli.Repo
use Oli.DataCase
import Oli.Factory
alias Oli.Notifications
alias Oli.Notifications.Worker
test "enqueues a job when updating a system message" do
system_message = insert(:system_message)
attrs = params_for(:active_system_message... | 26.377778 | 94 | 0.697557 |
c868f538a5a55799148bb076281d04a082b75ddd | 3,495 | ex | Elixir | server/lib/domsegserver_web/router.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | server/lib/domsegserver_web/router.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | 9 | 2021-12-09T18:19:21.000Z | 2022-01-09T03:45:33.000Z | server/lib/domsegserver_web/router.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | defmodule DOMSegServerWeb.Router do
use DOMSegServerWeb, :router
import DOMSegServerWeb.UserAuth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {DOMSegServerWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_... | 30.929204 | 86 | 0.722175 |
c8690dffbe60d9ee69340cd61f76b4734769f552 | 417 | ex | Elixir | kousa/lib/data-layer/user_block.ex | maskeynihal/dogehouse | 915a9648bfb7a368caea5d10551385ec5ab6b04e | [
"MIT"
] | 1 | 2021-04-19T19:02:21.000Z | 2021-04-19T19:02:21.000Z | kousa/lib/data-layer/user_block.ex | maskeynihal/dogehouse | 915a9648bfb7a368caea5d10551385ec5ab6b04e | [
"MIT"
] | null | null | null | kousa/lib/data-layer/user_block.ex | maskeynihal/dogehouse | 915a9648bfb7a368caea5d10551385ec5ab6b04e | [
"MIT"
] | null | null | null | defmodule Kousa.Data.UserBlock do
import Ecto.Query
def is_blocked(user_id, user_id_blocked) do
not is_nil(
from(ub in Beef.UserBlock,
where: ub.userId == ^user_id and ub.userIdBlocked == ^user_id_blocked,
limit: 1
)
|> Beef.Repo.one()
)
end
def insert(data) do
%B... | 20.85 | 78 | 0.635492 |
c86914addd17ac60c1968e7c98679be76c2bc0c9 | 448 | exs | Elixir | code/mm/times1.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/mm/times1.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/mm/times1.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 40.727273 | 85 | 0.741071 |
c8691cc48d0c4b003be983e15062710b9d933635 | 935 | ex | Elixir | elixir/matching-brackets/lib/matching_brackets.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | null | null | null | elixir/matching-brackets/lib/matching_brackets.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | null | null | null | elixir/matching-brackets/lib/matching_brackets.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | 1 | 2021-03-15T11:02:40.000Z | 2021-03-15T11:02:40.000Z | defmodule MatchingBrackets do
@doc """
Checks that all the brackets and braces in the string are matched correctly, and nested correctly
"""
@spec check_brackets(String.t()) :: boolean
def check_brackets(str) do
Regex.scan(~r/\(|\)|\{|\}|\[|\]/, str)
|> List.flatten
|> Enum.reduce("", fn char, ac... | 28.333333 | 99 | 0.570053 |
c8692c86120fc9349964f0598d3281ce68eba0d0 | 132 | exs | Elixir | jpcarver+elixir/day05/test/day05_test.exs | NashFP/avent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | 2 | 2021-11-24T12:54:15.000Z | 2022-01-20T11:02:11.000Z | jpcarver+elixir/day05/test/day05_test.exs | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | jpcarver+elixir/day05/test/day05_test.exs | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | defmodule Day05Test do
use ExUnit.Case
doctest Day05
test "greets the world" do
assert Day05.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
c8697aa1f641e63a33557963360031d0f8672275 | 1,050 | ex | Elixir | lib/github/github/commit.ex | MarkSRobinson/bors-ng | c47499b8f91905cce1f3539ccf19a4357c4c5c15 | [
"Apache-2.0"
] | null | null | null | lib/github/github/commit.ex | MarkSRobinson/bors-ng | c47499b8f91905cce1f3539ccf19a4357c4c5c15 | [
"Apache-2.0"
] | null | null | null | lib/github/github/commit.ex | MarkSRobinson/bors-ng | c47499b8f91905cce1f3539ccf19a4357c4c5c15 | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.GitHub.Commit do
@moduledoc """
The structure of GitHub commit data.
"""
defstruct sha: "", author_name: "", author_email: "", commit_message: ""
@type tjson :: map
@type t :: %BorsNG.GitHub.Commit{
sha: bitstring,
author_name: bitstring,
author_email: bitstring,
commit_m... | 20.192308 | 74 | 0.588571 |
c8697e02c8bf5bb14cc0942db29378e16e1c2afa | 597 | ex | Elixir | apps/room_book_web/lib/room_book_web/controllers/registration_controller.ex | adrianomota/room_book_umbrella | 701d4ad89b45739418df831156288b94346287df | [
"MIT"
] | null | null | null | apps/room_book_web/lib/room_book_web/controllers/registration_controller.ex | adrianomota/room_book_umbrella | 701d4ad89b45739418df831156288b94346287df | [
"MIT"
] | null | null | null | apps/room_book_web/lib/room_book_web/controllers/registration_controller.ex | adrianomota/room_book_umbrella | 701d4ad89b45739418df831156288b94346287df | [
"MIT"
] | null | null | null | defmodule RoomBookWeb.RegistrationController do
use RoomBookWeb, :controller
alias RoomBookWeb.Auth
def new(conn, _params) do
render(conn, "new.html", changeset: conn)
end
def create(conn, %{"registration" => registration_params}) do
case Auth.register(registration_params) do
{:ok, user} ->
... | 27.136364 | 63 | 0.654941 |
c8699906b8510d7b9c805f0bfdaba59a448c5919 | 518 | ex | Elixir | lib/afterglow/widgets/widget_item.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow/widgets/widget_item.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow/widgets/widget_item.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.Widgets.WidgetItem do
use AfterGlow.Web, :model
alias AfterGlow.Widgets.Widget
schema "widget_items" do
field(:text, :string)
field(:value, :string)
field(:config, {:map, :string})
belongs_to(:widget, Widget)
timestamps()
end
@doc """
Builds a changeset based on the... | 23.545455 | 57 | 0.650579 |
c869da0abeefc520dedb94456261888935339f10 | 435 | ex | Elixir | lib/elaborate_image_web/views/error_view.ex | bionikspoon/elaborate_image | bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf | [
"MIT"
] | null | null | null | lib/elaborate_image_web/views/error_view.ex | bionikspoon/elaborate_image | bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf | [
"MIT"
] | null | null | null | lib/elaborate_image_web/views/error_view.ex | bionikspoon/elaborate_image | bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf | [
"MIT"
] | null | null | null | defmodule ElaborateImageWeb.ErrorView do
use ElaborateImageWeb, :view
def render("404.json", _assigns) do
%{errors: %{detail: "Page not found"}}
end
def render("500.json", _assigns) do
%{errors: %{detail: "Internal server error"}}
end
# In case no render clause matches or no
# template is found... | 24.166667 | 49 | 0.694253 |
c869f9a3cfc72cdbc272a13117ba5e60987e178e | 911 | exs | Elixir | test/authex_test.exs | Waasi/authex | 8e1c55ccbbbcef72bd958080e42c1e1b53359029 | [
"MIT"
] | 3 | 2016-12-17T13:36:16.000Z | 2017-01-28T11:17:23.000Z | test/authex_test.exs | Waasi/authex | 8e1c55ccbbbcef72bd958080e42c1e1b53359029 | [
"MIT"
] | null | null | null | test/authex_test.exs | Waasi/authex | 8e1c55ccbbbcef72bd958080e42c1e1b53359029 | [
"MIT"
] | null | null | null | defmodule AuthexTest do
use ExUnit.Case, async: true
use Plug.Test
alias Authex.TokenAuth
alias Authex.LoadCurrentResource
setup do
Application.put_env(:authex, :auth_id, TestHelpers.audience)
Application.put_env(:authex, :auth_secret, Base.url_encode64(TestHelpers.secret))
valid_conn = conn(:g... | 31.413793 | 85 | 0.686059 |
c86a16afac5731b3aed7a9aaa26494fbd35f323f | 867 | exs | Elixir | test/loki/directory_test.exs | Selvaticus/loki | 58006dcf5752595ed7b875bee265423074895ae4 | [
"MIT"
] | 83 | 2016-11-27T11:15:58.000Z | 2021-12-24T21:04:04.000Z | test/loki/directory_test.exs | Selvaticus/loki | 58006dcf5752595ed7b875bee265423074895ae4 | [
"MIT"
] | 28 | 2016-12-08T14:18:32.000Z | 2019-01-08T10:57:54.000Z | test/loki/directory_test.exs | Selvaticus/loki | 58006dcf5752595ed7b875bee265423074895ae4 | [
"MIT"
] | 9 | 2017-02-08T21:56:18.000Z | 2019-06-09T02:14:07.000Z | defmodule Loki.DirectoryTest do
use ExUnit.Case, async: false
import Loki.Directory
import ExUnit.CaptureIO
describe "Directory" do
test "#create_directory" do
assert capture_io(fn ->
create_directory("temp/test")
end) == "\e[32m * creating \e[0mdirectory temp/test\e[0m\n"
end
... | 24.083333 | 90 | 0.643599 |
c86a65f79ad1bc9122eda56ca4dbac9093a12072 | 2,781 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/people_feed.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/people_feed.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/people_feed.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.784615 | 262 | 0.695433 |
c86a6b475c5bbaffdd65b95343fb31b50b4e7663 | 237 | ex | Elixir | lib/athrill_device_grpc_ex.ex | takasehideki/athrill_device_grpc_ex | c2aa2eb94337368b3d11c4318eebc5923e992af9 | [
"Apache-2.0"
] | 1 | 2021-01-05T03:46:55.000Z | 2021-01-05T03:46:55.000Z | lib/athrill_device_grpc_ex.ex | takasehideki/athrill_device_grpc_ex | c2aa2eb94337368b3d11c4318eebc5923e992af9 | [
"Apache-2.0"
] | null | null | null | lib/athrill_device_grpc_ex.ex | takasehideki/athrill_device_grpc_ex | c2aa2eb94337368b3d11c4318eebc5923e992af9 | [
"Apache-2.0"
] | null | null | null | defmodule AthrillDeviceGrpcEx do
@moduledoc """
Documentation for `AthrillDeviceGrpcEx`.
"""
@doc """
Hello world.
## Examples
iex> AthrillDeviceGrpcEx.hello()
:world
"""
def hello do
:world
end
end
| 12.473684 | 42 | 0.624473 |
c86a76713090c91c66041c4d6863b1fcb1721820 | 2,705 | ex | Elixir | clients/verified_access/lib/google_api/verified_access/v1/model/verify_challenge_response_result.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/verified_access/lib/google_api/verified_access/v1/model/verify_challenge_response_result.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/verified_access/lib/google_api/verified_access/v1/model/verify_challenge_response_result.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.984848 | 145 | 0.736414 |
c86a77c2a5b73b0a071a59f5d7ae6bc73aa9133e | 24,298 | ex | Elixir | lib/aws/generated/kinesis_video_archived_media.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/kinesis_video_archived_media.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/kinesis_video_archived_media.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.KinesisVideoArchivedMedia do
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
api_version: "2017-09-30",
content_type: "appl... | 47.089147 | 213 | 0.751255 |
c86a785999c399f4dbb7fe37066fc34cd606cc6f | 1,189 | ex | Elixir | currency/lib/currency_web/router.ex | ziminyuri/currency_exchange | 3d65d466a519816f606b16bb2f304db65105ca9a | [
"Apache-2.0"
] | null | null | null | currency/lib/currency_web/router.ex | ziminyuri/currency_exchange | 3d65d466a519816f606b16bb2f304db65105ca9a | [
"Apache-2.0"
] | null | null | null | currency/lib/currency_web/router.ex | ziminyuri/currency_exchange | 3d65d466a519816f606b16bb2f304db65105ca9a | [
"Apache-2.0"
] | null | null | null | defmodule CurrencyWeb.Router do
use CurrencyWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", CurrencyWeb do
pi... | 26.422222 | 70 | 0.703953 |
c86a78f9b9b7297113e4c70692376be38ca6a839 | 3,148 | ex | Elixir | lib/hui/query/facet_interval.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | 13 | 2018-09-06T12:42:18.000Z | 2021-06-15T15:13:13.000Z | lib/hui/query/facet_interval.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | 27 | 2019-08-22T07:02:27.000Z | 2022-02-05T05:27:30.000Z | lib/hui/query/facet_interval.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | 7 | 2019-08-22T06:29:05.000Z | 2021-10-16T15:39:21.000Z | defmodule Hui.Query.FacetInterval do
@moduledoc """
Struct related to [interval faceting](http://lucene.apache.org/solr/guide/faceting.html#interval-faceting) query.
### Example
iex> x = %Hui.Query.FacetInterval{interval: "price", set: ["[0,10]", "(10,100]"]}
%Hui.Query.FacetInterval{
interv... | 30.563107 | 139 | 0.559403 |
c86aadd5d76463083678d5de17b745263180ae7b | 2,598 | ex | Elixir | lib/etherscan/api.ex | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | null | null | null | lib/etherscan/api.ex | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | null | null | null | lib/etherscan/api.ex | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | null | null | null | defmodule Etherscan.API do
@moduledoc """
Etherscan base API module.
"""
use Etherscan.Constants
alias Etherscan.Util
defmacro __using__(_opts) do
quote do
import Etherscan.API
end
end
@doc """
Checks if the provided value is a valid Ethereum address.
Currently very naive...
"""
... | 26.242424 | 115 | 0.613549 |
c86b002322a34a009295af907710913a13645f03 | 1,931 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_processor_version_deprecation_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_processor_version_deprecation_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_processor_version_deprecation_info.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... | 35.109091 | 142 | 0.751942 |
c86b3ef29e3ee45340cbe48bca2c7cda5a2243e6 | 5,700 | exs | Elixir | test/test_helper.exs | mainframe2/postgrex | 7c3312f69b6b787e7d1831eedff32be36c3ee953 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | mainframe2/postgrex | 7c3312f69b6b787e7d1831eedff32be36c3ee953 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | mainframe2/postgrex | 7c3312f69b6b787e7d1831eedff32be36c3ee953 | [
"Apache-2.0"
] | null | null | null | pg_version =
case System.get_env("PGVERSION") do
nil -> nil
version ->
destructure [major, minor], String.split(version, ".")
{String.to_integer(major), String.to_integer(minor || "0")}
end
otp_release = :otp_release |> :erlang.system_info() |> List.to_integer()
unix_socket_dir = System.get_env... | 29.533679 | 139 | 0.630702 |
c86b4c4f750de5774874fe6d2cb840c7f4b6c8c1 | 1,845 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/batch_modify_messages_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/batch_modify_messages_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/batch_modify_messages_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.166667 | 119 | 0.724119 |
c86b7a2680ac1a2f767ddb70d87f6d31578a3c6b | 1,799 | ex | Elixir | lib/virgo_web/views/contest_problem_view.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo_web/views/contest_problem_view.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo_web/views/contest_problem_view.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | defmodule AstraeaVirgoWeb.ContestProblemView do
use AstraeaVirgoWeb, :view
@moduledoc """
Response for Contest Problem API
"""
@doc """
Response
## index.json
Response for index Problem API: `GET /api/contests/<contest_id>/problems`
Response: list of Object
| field | type | required | d... | 34.596154 | 75 | 0.42746 |
c86b829656b53d535d0dc250bac8d5a0c4d11309 | 2,445 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/named_style_suggestion_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/named_style_suggestion_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/named_style_suggestion_state.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... | 45.277778 | 245 | 0.758282 |
c86b981204bcbb566cae2da7a8b6bdeba6e40903 | 892 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.037037 | 74 | 0.761211 |
c86bcb36f4d88e63bd62b4ca548a176a2a6655f9 | 462 | exs | Elixir | config/test.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 139 | 2018-12-17T13:52:42.000Z | 2022-03-27T02:58:55.000Z | config/test.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 25 | 2019-08-07T16:49:03.000Z | 2022-03-14T18:17:54.000Z | config/test.exs | nickdichev/cloak_ecto | 4e7c49dc3eaf623162aa5d55e91b83c49f3b2854 | [
"MIT"
] | 30 | 2019-01-09T12:36:16.000Z | 2022-03-14T18:03:28.000Z | use Mix.Config
config :cloak_ecto, Cloak.Ecto.TestVault,
json_library: Jason,
ciphers: [
default:
{Cloak.Ciphers.AES.GCM,
tag: "AES.GCM.V1", key: Base.decode64!("3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE=")},
secondary:
{Cloak.Ciphers.AES.CTR,
tag: "AES.CTR.V1", key: Base.decode... | 27.176471 | 95 | 0.694805 |
c86c2a0e8e333a29f813f4a3b5b35b64cdc84f38 | 1,595 | ex | Elixir | lib/massively_multiplayer_ttt_web/views/error_helpers.ex | DylanSp/massively-multiplayer-ttt | abf4fea2853a4691a31f0d9f9a6cb71d9cce6d05 | [
"MIT"
] | null | null | null | lib/massively_multiplayer_ttt_web/views/error_helpers.ex | DylanSp/massively-multiplayer-ttt | abf4fea2853a4691a31f0d9f9a6cb71d9cce6d05 | [
"MIT"
] | 9 | 2021-09-09T19:17:59.000Z | 2021-09-09T19:32:12.000Z | lib/massively_multiplayer_ttt_web/views/error_helpers.ex | DylanSp/massively-multiplayer-ttt | abf4fea2853a4691a31f0d9f9a6cb71d9cce6d05 | [
"MIT"
] | null | null | null | defmodule MassivelyMultiplayerTttWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
... | 33.229167 | 92 | 0.675235 |
c86c33f26a6b8d58cdf3efab18d8d78403b007cd | 66 | exs | Elixir | config/dev.exs | jeffkreeftmeijer/hunter | a5ccf0849c8aeaee3dd90b431067924ff603a651 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | jeffkreeftmeijer/hunter | a5ccf0849c8aeaee3dd90b431067924ff603a651 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | jeffkreeftmeijer/hunter | a5ccf0849c8aeaee3dd90b431067924ff603a651 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :hunter, hunter_api: Hunter.Api.HTTPClient
| 16.5 | 49 | 0.80303 |
c86c353576d8bde14c5b9ef61ad1055f57ab7b50 | 5,715 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/mobile_carriers.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/mobile_carriers.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/mobile_carriers.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 ... | 41.413043 | 187 | 0.647769 |
c86c38a02bb07bf12fdbc080d364549a86f2c161 | 1,087 | ex | Elixir | lib/ref_web/live/comment_live/form_component.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | lib/ref_web/live/comment_live/form_component.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | lib/ref_web/live/comment_live/form_component.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | defmodule RefWeb.CommentLive.FormComponent do
use RefWeb, :live_component
alias Ref.Timeline
@impl true
def update(%{comment: comment} = assigns, socket) do
changeset = Timeline.change_comment(comment)
{:ok,
socket
|> assign(assigns)
|> assign(:changeset, changeset)}
end
@impl ... | 23.12766 | 73 | 0.662374 |
c86c636cb6e4e6602964172ebb9cfe9fc2d6a938 | 2,764 | exs | Elixir | integration_test/mysql/test_helper.exs | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | null | null | null | integration_test/mysql/test_helper.exs | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | null | null | null | integration_test/mysql/test_helper.exs | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | 1 | 2020-01-09T14:22:12.000Z | 2020-01-09T14:22:12.000Z | Logger.configure(level: :info)
# Configure Ecto for support and tests
Application.put_env(:ecto, :primary_key_type, :id)
Application.put_env(:ecto, :async_integration_tests, false)
Application.put_env(:ecto_sql, :lock_for_update, "FOR UPDATE")
Code.require_file "../support/repo.exs", __DIR__
# Configure MySQL connec... | 26.834951 | 84 | 0.728292 |
c86c64afc83938b8776da53691ea94783c0ee1e5 | 2,994 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/operation_metadata.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/operation_metadata.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/operation_metadata.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 45.363636 | 265 | 0.742485 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.