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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2830418c56d5a2f18d8c132b78cc2b8037c464d1 | 288 | exs | Elixir | test/farmbot/celery_script/ast/inspect_test.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | test/farmbot/celery_script/ast/inspect_test.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | test/farmbot/celery_script/ast/inspect_test.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.CeleryScript.AST.Inspect do
use ExUnit.Case
alias Farmbot.CeleryScript.AST
@nothing_json "{\"kind\": \"nothing\", \"args\": {}}"
test "Inspects ast node" do
{:ok, %AST{} = ast} = AST.decode(@nothing_json)
assert inspect(ast, []) == "Nothing"
end
end
| 24 | 55 | 0.645833 |
28306fbe269c1fa0361b52619e3bc7a535523738 | 395 | ex | Elixir | exercism/elixir/rpn-calculator/lib/rpn_calculator.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/rpn-calculator/lib/rpn_calculator.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/rpn-calculator/lib/rpn_calculator.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule RPNCalculator do
def calculate!(stack, operation), do: operation.(stack)
def calculate(stack, operation) do
try do
{:ok, calculate!(stack, operation)}
rescue
_ -> :error
end
end
def calculate_verbose(stack, operation) do
try do
{:ok, calculate!(stack, operation)}
... | 19.75 | 57 | 0.637975 |
283072ef9ff2694758a40af772979a81df0276b6 | 108 | ex | Elixir | lib/disclist/repo.ex | ChristopherJHart/disclist | 3a1ce880856ad87f588e902e72004b887064eeb8 | [
"Apache-2.0"
] | 1 | 2021-11-18T03:25:47.000Z | 2021-11-18T03:25:47.000Z | lib/disclist/repo.ex | ChristopherJHart/disclist | 3a1ce880856ad87f588e902e72004b887064eeb8 | [
"Apache-2.0"
] | null | null | null | lib/disclist/repo.ex | ChristopherJHart/disclist | 3a1ce880856ad87f588e902e72004b887064eeb8 | [
"Apache-2.0"
] | 1 | 2021-11-18T03:25:48.000Z | 2021-11-18T03:25:48.000Z | defmodule Disclist.Repo do
use Ecto.Repo,
otp_app: :disclist,
adapter: Ecto.Adapters.Postgres
end
| 18 | 35 | 0.731481 |
2830bd972f1786e6c0a4a8aadb411d8e63e60fb9 | 3,032 | ex | Elixir | apps/cucumber_expressions/lib/cucumber_expressions/parameter_type/lib/base.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-05-18T18:20:05.000Z | 2022-02-13T00:15:06.000Z | apps/cucumber_expressions/lib/cucumber_expressions/parameter_type/lib/base.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-04-22T00:28:17.000Z | 2021-05-19T21:04:20.000Z | apps/cucumber_expressions/lib/cucumber_expressions/parameter_type/lib/base.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 4 | 2021-04-14T03:07:45.000Z | 2021-12-12T21:23:59.000Z | defmodule CucumberExpressions.ParameterType.Base do
@moduledoc false
defmacro __using__(_) do
quote location: :keep do
alias CucumberExpressions.ParameterType.{
Disambiguator,
Transformer,
Validator
}
defstruct [:name, :type, :disambiguator, :validator, :transformer, :... | 43.942029 | 127 | 0.675462 |
2830cbc41e07e2749054fb056c8d0ffdfb3d8684 | 1,878 | exs | Elixir | clients/analytics_reporting/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/analytics_reporting/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 28.029851 | 110 | 0.664004 |
2830e4836cbabd4310cb8f556777a29806ef9c83 | 2,162 | exs | Elixir | test/web/controllers/sync_controller_test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | test/web/controllers/sync_controller_test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | test/web/controllers/sync_controller_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule AccentTest.SyncController do
use Accent.ConnCase
import Ecto.Query, only: [from: 2]
import Mox
setup :verify_on_exit!
alias Accent.{
AccessToken,
Collaborator,
Document,
Language,
Operation,
Project,
Repo,
Revision,
User
}
@user %User{email: "test@test.com"... | 31.794118 | 125 | 0.663275 |
2830e51c7494974304d38f3428bde48157c1d188 | 2,165 | exs | Elixir | mix.exs | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | null | null | null | mix.exs | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | null | null | null | mix.exs | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | null | null | null | defmodule LinkPreview.Mixfile do
use Mix.Project
@version "1.0.2"
def project do
[
aliases: aliases(),
app: :link_preview,
deps: deps(),
description: description(),
docs: [
extras: ["README.md", "CHANGELOG.md"]
],
elixir: "~> 1.3",
elixirc_paths: elixi... | 24.602273 | 95 | 0.559815 |
2831097d23df8768600688b224a21d2bacf7699a | 2,195 | exs | Elixir | Problem017/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 167 | 2015-08-12T19:32:03.000Z | 2022-03-25T12:26:43.000Z | Problem017/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 153 | 2016-02-16T02:05:31.000Z | 2020-11-06T15:35:51.000Z | Problem017/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 84 | 2015-08-12T20:54:04.000Z | 2022-02-27T05:14:53.000Z | # Author: lubien
defmodule Euler17 do
def solve(n) do
1..n
|> Stream.map(&num_to_str/1)
|> Stream.map(&String.length/1)
|> Enum.reduce(&(&1 + &2))
end
# Since 1_000 isn't parsed right by my rules :p
def num_to_str(1000), do: "onethousand"
# Separate the number in a List of digits
def... | 25.523256 | 90 | 0.557175 |
283121fc73beb092974138719f1948d9aa84186d | 13,791 | exs | Elixir | integration_test/cases/type.exs | arcz/ecto_sql | 22ecbe3782af32f50c36387c861db77041247de8 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/type.exs | arcz/ecto_sql | 22ecbe3782af32f50c36387c861db77041247de8 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/type.exs | arcz/ecto_sql | 22ecbe3782af32f50c36387c861db77041247de8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.TypeTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto_sql, :async_integration_tests, true)
alias Ecto.Integration.{Custom, Item, ItemColor, Order, Post, User, Tag, Article}
alias Ecto.Integration.TestRepo
import Ect... | 39.858382 | 128 | 0.628743 |
283132358bd0f27021493b5c5486709898e15da3 | 1,017 | ex | Elixir | elixir/lib/astrum/config.ex | explore-astrum/astrum | 868fa6d28e1c44d0a99a72edc7f6b5b7d818da07 | [
"MIT"
] | 2 | 2019-01-21T17:49:19.000Z | 2019-06-20T03:01:06.000Z | elixir/lib/astrum/config.ex | explore-astrum/astrum | 868fa6d28e1c44d0a99a72edc7f6b5b7d818da07 | [
"MIT"
] | 1 | 2022-01-27T16:05:47.000Z | 2022-01-27T16:05:47.000Z | elixir/lib/astrum/config.ex | explore-astrum/astrum | 868fa6d28e1c44d0a99a72edc7f6b5b7d818da07 | [
"MIT"
] | null | null | null | defmodule Astrum.Config do
use Fig
config :kora, %{
interceptors: [
Astrum.Auth,
Astrum.Ledger,
Astrum.Relic.Create,
Astrum.Relic.Owner,
Astrum.Relic.Position,
Astrum.Plot.Create,
Astrum.Plot.Owner,
Astrum.Plot.Activity,
Astrum.User.Master,
Astrum.Use... | 21.638298 | 63 | 0.631268 |
28315c1c211b868c701e75e367da102aaf9852d6 | 1,971 | ex | Elixir | api/lib/api/directory.ex | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | 1 | 2021-10-04T23:26:37.000Z | 2021-10-04T23:26:37.000Z | api/lib/api/directory.ex | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | 5 | 2021-10-04T23:09:14.000Z | 2022-02-25T09:35:25.000Z | api/lib/api/directory.ex | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | null | null | null | defmodule Api.Directory do
@moduledoc """
The Directory context.
"""
import Ecto.Query, warn: false
alias Api.Repo
alias Api.Directory.University
@doc """
Returns the list of universities.
## Examples
iex> list_universities()
[%University{}, ...]
"""
def list_universities do
... | 18.771429 | 68 | 0.630644 |
2831606f505d1cbe94e5787ad4337102e6cbc0c4 | 58 | ex | Elixir | web/views/etapa_view.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | web/views/etapa_view.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | web/views/etapa_view.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | defmodule Tucano.EtapaView do
use Tucano.Web, :view
end
| 14.5 | 29 | 0.775862 |
283168fe935eaa134585f4e5e65b1e820be7f95b | 316 | ex | Elixir | lib/loaders/loader_nv.ex | olefav/randnews | 5328a5c3ae0b1dd125da345260b43a6bc5ab5be8 | [
"MIT"
] | null | null | null | lib/loaders/loader_nv.ex | olefav/randnews | 5328a5c3ae0b1dd125da345260b43a6bc5ab5be8 | [
"MIT"
] | null | null | null | lib/loaders/loader_nv.ex | olefav/randnews | 5328a5c3ae0b1dd125da345260b43a6bc5ab5be8 | [
"MIT"
] | null | null | null | defmodule Randnews.LoaderNV do
@behaviour Randnews.Loader
@impl Randnews.Loader
def base_url do
"https://nv.ua/ukr/allnews.html"
end
@impl Randnews.Loader
def page_path_modifier(0) do
""
end
@impl Randnews.Loader
def page_path_modifier(page_num) do
"?page=#{page_num + 1}"
end
end
| 16.631579 | 37 | 0.696203 |
28318f55c935f7e035798d0bc67bf3c734df86e2 | 2,246 | ex | Elixir | dashboard/lib/dashboard_web/live/nodes.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | dashboard/lib/dashboard_web/live/nodes.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | 2 | 2021-03-09T20:59:23.000Z | 2021-05-10T18:01:00.000Z | dashboard/lib/dashboard_web/live/nodes.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | defmodule DashboardWeb.NodesLive do
use Phoenix.LiveView
require Logger
alias DashboardWeb.ViewModels.Node
def render(assigns) do
Phoenix.View.render(DashboardWeb.PageView, "nodes.html", assigns)
end
def mount(_, socket) do
if connected?(socket) do
Doorman.subscribe()
end
socket ... | 23.154639 | 86 | 0.668744 |
2831ac6d156f6c7867531d382f7e76dd6213c9a6 | 5,125 | exs | Elixir | implementations/elixir/ockam/ockam_vault_software/mix.exs | iakev/ockam | 24f4b29c5af609e7d173838ee115456325666188 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_vault_software/mix.exs | iakev/ockam | 24f4b29c5af609e7d173838ee115456325666188 | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam_vault_software/mix.exs | iakev/ockam | 24f4b29c5af609e7d173838ee115456325666188 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Vault.Software.MixProject do
use Mix.Project
@version "0.10.1"
@elixir_requirement "~> 1.10"
@ockam_github_repo "https://github.com/ockam-network/ockam"
@ockam_github_repo_path "implementations/elixir/ockam/ockam_vault_software"
def project do
[
app: :ockam_vault_software,
... | 23.617512 | 93 | 0.577366 |
2831f35ff42ab8dddef8d87aa5951e5b3ff44d88 | 5,692 | ex | Elixir | kousa/lib/beef/schemas/user.ex | vijairam20/dogehouse | 80d24f4b5c07ec046a17f78d87275a0352673897 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/lib/beef/schemas/user.ex | vijairam20/dogehouse | 80d24f4b5c07ec046a17f78d87275a0352673897 | [
"MIT"
] | null | null | null | kousa/lib/beef/schemas/user.ex | vijairam20/dogehouse | 80d24f4b5c07ec046a17f78d87275a0352673897 | [
"MIT"
] | null | null | null | defmodule Beef.Schemas.User do
use Ecto.Schema
# the struct defined here can also be pushed to the user
use Broth.Message.Push
import Ecto.Changeset
alias Beef.Schemas.Room
defmodule Preview do
use Ecto.Schema
# TODO: Make this a separate Schema that sees the same table.
@derive {Jason.Encod... | 31.447514 | 264 | 0.632467 |
283204d622660106753b18640172e512bc38b5b7 | 1,046 | exs | Elixir | mix.exs | ninoseki/kanshi | fc6d607e33eb6a7e4a61fd91d0f481a863ea3d9a | [
"MIT"
] | 2 | 2019-01-14T11:17:30.000Z | 2019-01-19T17:40:32.000Z | mix.exs | ninoseki/kanshi | fc6d607e33eb6a7e4a61fd91d0f481a863ea3d9a | [
"MIT"
] | 1 | 2020-08-07T02:41:03.000Z | 2020-08-07T02:41:03.000Z | mix.exs | ninoseki/kanshi | fc6d607e33eb6a7e4a61fd91d0f481a863ea3d9a | [
"MIT"
] | null | null | null | defmodule Kanshi.MixProject do
use Mix.Project
def project do
[
app: :kanshi,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.de... | 24.325581 | 64 | 0.537285 |
28324edb9b0a8d17e05d49eb53b6d4e7a6f6baf9 | 5,709 | ex | Elixir | apps/omg/lib/omg/state/transaction.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg/lib/omg/state/transaction.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg/lib/omg/state/transaction.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.781065 | 117 | 0.714486 |
283281681bd5826781e77d2b3002cdf76d6ad20d | 765 | ex | Elixir | 12-new-project/facade/lib/server_handler.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/facade/lib/server_handler.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/facade/lib/server_handler.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defprotocol ServerHandler do
def start(handler, config_file \\ "README.md")
def stop(handler)
end
defmodule ScheduleServerHandler do
@enforce_keys :server
defstruct [:server]
end
defimpl ServerHandler, for: ScheduleServerHandler do
def start(handler, config_file) do
try do
ScheduleServer.read_syst... | 24.677419 | 74 | 0.71634 |
283298712e27c8a67baaa59d288d794ced2903e6 | 747 | ex | Elixir | apps/re_integrations/lib/pipedrive/client.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re_integrations/lib/pipedrive/client.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_integrations/lib/pipedrive/client.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule ReIntegrations.Pipedrive.Client do
@moduledoc """
Module to wrap pipedrive.com API logic
"""
@http_client Application.get_env(:re_integrations, :http_client, HTTPoison)
@url Application.get_env(:re_integrations, :pipedrive_url, "")
@token Application.get_env(:re_integrations, :pipedrive_token, ""... | 25.758621 | 77 | 0.662651 |
2832bf761a0f99e05d322f3ef328bf895d7f0701 | 2,245 | ex | Elixir | elixir/lib/homework/merchants.ex | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | elixir/lib/homework/merchants.ex | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | elixir/lib/homework/merchants.ex | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | defmodule Homework.Merchants do
@moduledoc """
The Merchants context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Merchants.Merchant
@doc """
Returns the list of merchants.
## Examples
iex> list_merchants([])
[%Merchant{}, ...]
"""
def list_merchants(_ar... | 19.188034 | 71 | 0.612918 |
2832d94369f0f7e9d2699a4322b23e514df76a05 | 818 | exs | Elixir | test/web/controller/admin/item_aspecting_controller_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/web/controller/admin/item_aspecting_controller_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/web/controller/admin/item_aspecting_controller_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Admin.ItemAspectingControllerTest do
use Web.AuthConnCase
alias Web.ItemAspecting
setup do
item = create_item()
item_aspect = create_item_aspect()
%{item: item, item_aspect: item_aspect}
end
test "create an item aspecting", %{conn: conn, item: item, item_aspect: item_aspect} do
... | 29.214286 | 89 | 0.712714 |
28330a5782cb86e2b46e39ef82117e79cd2f472b | 13,263 | ex | Elixir | lib/cabbage/feature.ex | jwilger/cabbage | cb4c118f82ee78b7dcec35c49e1b0eb5ecf58d5b | [
"MIT"
] | null | null | null | lib/cabbage/feature.ex | jwilger/cabbage | cb4c118f82ee78b7dcec35c49e1b0eb5ecf58d5b | [
"MIT"
] | null | null | null | lib/cabbage/feature.ex | jwilger/cabbage | cb4c118f82ee78b7dcec35c49e1b0eb5ecf58d5b | [
"MIT"
] | null | null | null | defmodule Cabbage.Feature do
@moduledoc """
An extension on ExUnit to be able to execute feature files.
## Configuration
In `config/test.exs`
config :cabbage,
# Default is "test/features/"
features: "my/path/to/features/"
# Default is []
global_tags: :integration
- `f... | 32.748148 | 346 | 0.63123 |
28333d0211638fa2e879afa19f8ac111e0c5ffa5 | 4,549 | exs | Elixir | lib/elixir/test/elixir/access_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2018-02-24T19:48:35.000Z | 2018-02-24T19:48:35.000Z | lib/elixir/test/elixir/access_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/elixir/test/elixir/access_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule AccessTest do
use ExUnit.Case, async: true
doctest Access
# Test nil at compilation time does not fail
# and that @config[:foo] has proper precedence.
@config nil
nil = @config[:foo]
@config [foo: :bar]
:bar = @config[:foo]
@mod :lists
[1,... | 30.326667 | 124 | 0.57727 |
28336400f35c3cf7c5eb37dadc1767ada396557b | 1,514 | ex | Elixir | test/support/data_case.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | 1 | 2021-07-06T00:32:19.000Z | 2021-07-06T00:32:19.000Z | test/support/data_case.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | null | null | null | test/support/data_case.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | null | null | null | defmodule Tabi.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to the ... | 27.035714 | 77 | 0.684941 |
283370e718757d5822a126a25e8d522221399ff6 | 9,042 | ex | Elixir | lib/lifelog/accounts.ex | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | lib/lifelog/accounts.ex | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | lib/lifelog/accounts.ex | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | defmodule Lifelog.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Lifelog.Repo
alias Lifelog.Accounts.{User, UserToken, UserNotifier}
## Database getters
@doc """
Gets a user by email.
## Examples
iex> get_user_by_email("foo@example.com")
%... | 25.542373 | 114 | 0.662243 |
28337bbc522158cac1d88d335da2003523d22447 | 11,744 | ex | Elixir | lib/bypass/instance.ex | ananthakumaran/bypass | c2c3db8ac1ad8c2f7a511c3984b12326eee5c6d8 | [
"MIT"
] | null | null | null | lib/bypass/instance.ex | ananthakumaran/bypass | c2c3db8ac1ad8c2f7a511c3984b12326eee5c6d8 | [
"MIT"
] | null | null | null | lib/bypass/instance.ex | ananthakumaran/bypass | c2c3db8ac1ad8c2f7a511c3984b12326eee5c6d8 | [
"MIT"
] | null | null | null | defmodule Bypass.Instance do
@moduledoc false
use GenServer, restart: :transient
import Bypass.Utils
import Plug.Router.Utils, only: [build_path_match: 1]
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, [opts])
end
def call(pid, request) do
debug_log("call(#{inspect(pid)}, #{ins... | 27.059908 | 99 | 0.584809 |
2833a2d56fe052456a5046f71a8f65d5ed323c95 | 4,659 | ex | Elixir | apps/omg_eth/lib/omg_eth/blockchain/transaction/hash.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_eth/lib/omg_eth/blockchain/transaction/hash.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_eth/lib/omg_eth/blockchain/transaction/hash.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 44.798077 | 171 | 0.709809 |
2833c46abda59685a2f6bc50c947a4211767f23a | 3,084 | ex | Elixir | implementations/elixir/ockam/ockam_cloud_node/lib/cloud_node/metrics/telemetry_influxdb.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_cloud_node/lib/cloud_node/metrics/telemetry_influxdb.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_cloud_node/lib/cloud_node/metrics/telemetry_influxdb.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.CloudNode.Metrics.TelemetryInfluxDB do
@moduledoc """
Telemetry InfluxDB metric reporting configuration
"""
def child_spec() do
%{
id: TelemetryInfluxDB,
start: {
TelemetryInfluxDB,
:start_link,
[
[
version: :v2,
protocol:... | 33.521739 | 95 | 0.428988 |
28340944f50362d498dbbe88c35cd26c4c770e78 | 1,252 | ex | Elixir | lib/mix/tasks/otelcol.install.ex | kenichi/otelcol | 33264e930bd10ca5e6aa06afb31ff07ad9606934 | [
"MIT"
] | null | null | null | lib/mix/tasks/otelcol.install.ex | kenichi/otelcol | 33264e930bd10ca5e6aa06afb31ff07ad9606934 | [
"MIT"
] | null | null | null | lib/mix/tasks/otelcol.install.ex | kenichi/otelcol | 33264e930bd10ca5e6aa06afb31ff07ad9606934 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Otelcol.Install do
@moduledoc """
Installs otelcol under `_build`.
```bash
$ mix otelcol.install
$ mix otelcol.install --if-missing
```
By default, it installs #{Otelcol.latest_version()} but you
can configure it in your config files, such as:
config :otelcol, :version, "#{O... | 23.185185 | 68 | 0.619808 |
2834103f167fcf0097635159d3362a9ce7f97106 | 1,516 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/message.ex | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 1,912 | 2019-01-10T14:17:00.000Z | 2022-03-30T19:16:44.000Z | implementations/elixir/ockam/ockam/lib/ockam/message.ex | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 1,473 | 2019-01-16T15:14:47.000Z | 2022-03-31T23:44:50.000Z | implementations/elixir/ockam/ockam/lib/ockam/message.ex | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 219 | 2019-01-11T03:35:13.000Z | 2022-03-31T10:25:56.000Z | defprotocol Ockam.Message do
@moduledoc """
Defines an elixir protocol for a message.
"""
alias Ockam.Address
@fallback_to_any true
@doc "Returns the onward_route of a message."
@spec onward_route(t()) :: [Address.t()]
def onward_route(message)
@doc "Returns the return_route of a message."
@spec... | 33.688889 | 100 | 0.73285 |
2834575da3b428b2835c94a632eff2ae1c9a1a97 | 2,069 | exs | Elixir | config/prod.exs | Cantido/liberator_example | d14014277cdc803a8ef895f80aac0651cea7108e | [
"MIT"
] | null | null | null | config/prod.exs | Cantido/liberator_example | d14014277cdc803a8ef895f80aac0651cea7108e | [
"MIT"
] | null | null | null | config/prod.exs | Cantido/liberator_example | d14014277cdc803a8ef895f80aac0651cea7108e | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.946429 | 66 | 0.722571 |
283461e3cf2143db84bb571b82d80c570f238493 | 1,423 | exs | Elixir | test/saucer_target_test.exs | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 5 | 2016-07-05T13:42:33.000Z | 2020-12-07T14:12:16.000Z | test/saucer_target_test.exs | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 70 | 2016-06-04T11:31:27.000Z | 2020-11-21T20:00:09.000Z | test/saucer_target_test.exs | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 1 | 2016-07-05T17:10:05.000Z | 2016-07-05T17:10:05.000Z | defmodule Elixoids.Saucer.TargetTest do
use ExUnit.Case
alias Elixoids.Saucer.Server, as: Saucer
@targets %Elixoids.Ship.Targets{
origin: %Elixoids.World.Point{x: 4035.6, y: 1445.4728088279473},
rocks: [
%Elixoids.Asteroid.Location{
id: 1637,
pid: self(),
pos: %Elixoids.Wor... | 25.872727 | 81 | 0.551651 |
283469c90d528aa7506e1b2e747f567166e8c7f5 | 2,070 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/create_bitbucket_server_config_operation_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/create_bitbucket_server_config_operation_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/create_bitbucket_server_config_operation_metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"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.689655 | 211 | 0.733333 |
28349b21f5e5770ac2f44330a50b0be1be78acc0 | 6,490 | ex | Elixir | apps/exth_crypto/lib/exth_crypto/signature.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/exth_crypto/lib/exth_crypto/signature.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/exth_crypto/lib/exth_crypto/signature.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExthCrypto.Signature do
@moduledoc """
A variety of functions for calculating cryptographic signatures.
Right now these all rely on the `libsecp256k1` library, and thus only
performs signatures on this Elliptic Curve, but I don't see any reason
why we couldn't switch to standard libraries if they p... | 38.630952 | 148 | 0.653621 |
2834b2b2bf154dc66c3a0a9c7af9fa7187477f7b | 388 | ex | Elixir | lib/ex_no_cache/etag.ex | zentetsukenz/ex_no_cache | b88c02ab0c91d81a1e4d516f843310f2d7db45df | [
"Apache-2.0"
] | null | null | null | lib/ex_no_cache/etag.ex | zentetsukenz/ex_no_cache | b88c02ab0c91d81a1e4d516f843310f2d7db45df | [
"Apache-2.0"
] | null | null | null | lib/ex_no_cache/etag.ex | zentetsukenz/ex_no_cache | b88c02ab0c91d81a1e4d516f843310f2d7db45df | [
"Apache-2.0"
] | null | null | null | defmodule ExNoCache.ETag do
@moduledoc """
An etag generator.
"""
@moduledoc since: "0.1.0"
@doc """
Generate ETag.
Returns `{:ok, binary}`.
"""
@spec generate(iodata()) :: {:ok, binary()}
def generate(term) when is_binary(term) or is_list(term) do
etag =
:sha256
|> :crypto.hash(te... | 17.636364 | 61 | 0.579897 |
2834be74e58fb14a0cb469b5946cbceb9f9a7d01 | 190 | ex | Elixir | lib/elixir_jobs_web/views/shared_view.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/views/shared_view.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/views/shared_view.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | defmodule ElixirJobsWeb.SharedView do
use ElixirJobsWeb, :view
def get_flash_messages(%Plug.Conn{} = conn) do
conn
|> Phoenix.Controller.get_flash()
|> Map.values
end
end
| 19 | 48 | 0.705263 |
2834ccf2e267ab91f97d5fe3810dc3797bd85c9e | 699 | ex | Elixir | apps/admin/lib/admin/gettext.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | apps/admin/lib/admin/gettext.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | apps/admin/lib/admin/gettext.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | defmodule Admin.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 Admin.Gettext
# Simple translation
gettext("Here is the string ... | 27.96 | 72 | 0.672389 |
2834ce4159bae5cfe4d63b5beec17d6ea0767ebf | 10,855 | ex | Elixir | lib/chromic_pdf.ex | williamthome/chromic_pdf | e53a32e576e71279ffd8a4f0643ae7960e9d5479 | [
"Apache-2.0"
] | 177 | 2020-02-28T13:37:23.000Z | 2022-03-25T13:37:46.000Z | lib/chromic_pdf.ex | williamthome/chromic_pdf | e53a32e576e71279ffd8a4f0643ae7960e9d5479 | [
"Apache-2.0"
] | 46 | 2020-02-28T11:31:41.000Z | 2022-03-31T14:49:26.000Z | lib/chromic_pdf.ex | williamthome/chromic_pdf | e53a32e576e71279ffd8a4f0643ae7960e9d5479 | [
"Apache-2.0"
] | 14 | 2020-07-09T02:09:34.000Z | 2022-03-25T13:37:48.000Z | defmodule ChromicPDF do
@moduledoc """
ChromicPDF is a fast HTML-to-PDF/A renderer based on Chrome & Ghostscript.
## Usage
### Start
Start ChromicPDF as part of your supervision tree:
def MyApp.Application do
def start(_type, _args) do
children = [
# other apps...
... | 40.203704 | 210 | 0.732105 |
2834d05e3d6d6559647bf901ee5d649ba28bbb21 | 4,113 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.171233 | 137 | 0.663992 |
2834d5170c5ae76497740b9e0f45f0e913b88529 | 2,123 | exs | Elixir | test/multiaddr_transcoders_test.exs | aratz-lasa/ex-multiaddr | a6f6d6021f2d5c0c6c348df4dcb4a8c8f7ad6597 | [
"MIT"
] | 4 | 2019-12-14T23:38:05.000Z | 2021-05-03T09:36:09.000Z | test/multiaddr_transcoders_test.exs | aratz-lasa/ex-multiaddr | a6f6d6021f2d5c0c6c348df4dcb4a8c8f7ad6597 | [
"MIT"
] | null | null | null | test/multiaddr_transcoders_test.exs | aratz-lasa/ex-multiaddr | a6f6d6021f2d5c0c6c348df4dcb4a8c8f7ad6597 | [
"MIT"
] | null | null | null | defmodule MultiaddrTranscoderTest do
use ExUnit.Case
test "text" do
text_string = "default"
{:ok, text_bytes} = Multiaddr.Transcoder.text_string_to_bytes(text_string)
assert {:ok, text_string} == Multiaddr.Transcoder.text_bytes_to_string(text_bytes)
assert {:ok, text_string} = Multiaddr.Transcoder.... | 37.245614 | 88 | 0.737635 |
2834d966af676520eb0e888873401c04c6311482 | 469 | exs | Elixir | apps/nerves_hub_web_core/priv/repo/migrations/20220325132946_swap_primary_oban_indexes.exs | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | 10 | 2018-04-12T18:16:40.000Z | 2018-04-14T06:05:42.000Z | apps/nerves_hub_web_core/priv/repo/migrations/20220325132946_swap_primary_oban_indexes.exs | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | 13 | 2018-05-25T19:31:49.000Z | 2018-05-31T14:27:43.000Z | apps/nerves_hub_web_core/priv/repo/migrations/20220325132946_swap_primary_oban_indexes.exs | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | 2 | 2018-04-12T18:19:47.000Z | 2018-04-12T18:57:46.000Z | defmodule NervesHubWebCore.Repo.Migrations.SwapPrimaryObanIndexes do
use Ecto.Migration
@disable_ddl_transaction true
@disable_migration_lock true
def change do
create_if_not_exists index(
:oban_jobs,
[:state, :queue, :priority, :scheduled_at, :id],
concurrently: true,
prefix: "publ... | 22.333333 | 68 | 0.671642 |
2834ed0abc17311ff03e9d1b31944345bb751759 | 3,138 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_status.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... | 53.186441 | 441 | 0.747291 |
2834fbdf60766d8b35ffbc5bd6360ae67e2ca8a5 | 1,600 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.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... | 34.042553 | 252 | 0.746875 |
283504a673833180fe8694cd3105dfe819e15b3b | 376 | exs | Elixir | test/exceptional_test.exs | gballet/exceptional | 2ae2c08023382c6bbe7b135e9adec1e63a0a1fc3 | [
"MIT"
] | 284 | 2016-08-28T13:04:13.000Z | 2022-03-28T18:30:58.000Z | test/exceptional_test.exs | gballet/exceptional | 2ae2c08023382c6bbe7b135e9adec1e63a0a1fc3 | [
"MIT"
] | 23 | 2016-09-12T03:28:59.000Z | 2021-06-25T15:18:09.000Z | test/exceptional_test.exs | gballet/exceptional | 2ae2c08023382c6bbe7b135e9adec1e63a0a1fc3 | [
"MIT"
] | 10 | 2017-02-09T03:48:15.000Z | 2019-12-23T08:30:03.000Z | defmodule Exceptional.PipeTest do
use ExUnit.Case
doctest Exceptional.Control, [import: true]
doctest Exceptional.Normalize, [import: true]
doctest Exceptional.Pipe, [import: true]
doctest Exceptional.Raise, [import: true]
doctest Exceptional.Safe, [import: true]
doctest Exceptional.TaggedStatus, [import... | 31.333333 | 50 | 0.765957 |
283579704c2c23918d432cdd4f96616235d85a17 | 1,100 | ex | Elixir | lib/han/iterable.ex | 2players/chinese_translation | 92dd535598ca9f21c4113ab048d12409d9551f80 | [
"MIT"
] | null | null | null | lib/han/iterable.ex | 2players/chinese_translation | 92dd535598ca9f21c4113ab048d12409d9551f80 | [
"MIT"
] | null | null | null | lib/han/iterable.ex | 2players/chinese_translation | 92dd535598ca9f21c4113ab048d12409d9551f80 | [
"MIT"
] | null | null | null | defmodule Han.Iterable do
@moduledoc """
Support for iterable functions.
"""
@not_implemented "not implemented"
def filter_by(iterable, :key_len, comp, value) do
k = key_fun(:key_len)
c = comp_fun(comp)
iterable
|> Stream.filter(&c.(k.(&1), value))
end
def filter_by(iterable, :item_size... | 20.754717 | 73 | 0.538182 |
28357c636302550101dc795d2c512e4c32b19ce4 | 3,114 | exs | Elixir | test/gen_server_client_test.exs | jnederhoff/gen_async_call | f4bdeab81233691b49d99b80252d8ac22f5e2d45 | [
"Apache-2.0"
] | null | null | null | test/gen_server_client_test.exs | jnederhoff/gen_async_call | f4bdeab81233691b49d99b80252d8ac22f5e2d45 | [
"Apache-2.0"
] | null | null | null | test/gen_server_client_test.exs | jnederhoff/gen_async_call | f4bdeab81233691b49d99b80252d8ac22f5e2d45 | [
"Apache-2.0"
] | null | null | null | defmodule GenServerClientTest do
use ExUnit.Case
setup _context do
{:ok, server_pid} = start_supervised(Supervisor.child_spec(TestServer, restart: :temporary))
{:ok, client_pid} = start_supervised(Supervisor.child_spec({GenServerClient, server_pid}, restart: :temporary))
{:ok, server: server_pid, clie... | 38.925 | 122 | 0.693963 |
2835adc432fd25a2ea1494137fec3d429b5da441 | 87 | ex | Elixir | lib/multiple_products_web/views/user_settings_view.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | lib/multiple_products_web/views/user_settings_view.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | lib/multiple_products_web/views/user_settings_view.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | defmodule MultipleProductsWeb.UserSettingsView do
use MultipleProductsWeb, :view
end
| 21.75 | 49 | 0.862069 |
2835b119ca0d72ec8a6b30fd55322c785a791907 | 1,476 | ex | Elixir | lib/polygon_web/views/error_helpers.ex | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | lib/polygon_web/views/error_helpers.ex | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | lib/polygon_web/views/error_helpers.ex | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | defmodule PolygonWeb.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) ->
content_ta... | 32.8 | 76 | 0.670732 |
283615e99dcc63ac7e320d1bf7215eac99151fbe | 2,484 | ex | Elixir | clients/games/lib/google_api/games/v1/model/player_achievement.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/player_achievement.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/player_achievement.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... | 42.827586 | 258 | 0.747585 |
2836312a30f7f7700a4ade033b6f3902f6a76580 | 930 | ex | Elixir | example/lib/example/application.ex | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 20 | 2019-05-21T17:19:07.000Z | 2022-01-22T14:45:46.000Z | example/lib/example/application.ex | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 17 | 2019-05-21T18:38:34.000Z | 2022-03-27T06:07:30.000Z | example/lib/example/application.ex | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 8 | 2016-12-20T17:44:36.000Z | 2019-04-09T11:58:45.000Z | defmodule Example.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the Ecto repository
Example.Repo,
... | 29.0625 | 66 | 0.713978 |
28366afe3ef4ce10a87ed8e71a85255766cdac49 | 1,550 | ex | Elixir | lib/google_api/you_tube/v3/model/live_chat_message_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/live_chat_message_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/live_chat_message_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 31 | 100 | 0.726452 |
283693e0c2b57e995eecae9fa5cd50faf1f7fbe4 | 4,605 | ex | Elixir | lib/zss_service/message.ex | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | lib/zss_service/message.ex | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | 13 | 2017-05-20T12:19:37.000Z | 2017-07-16T10:31:34.000Z | lib/zss_service/message.ex | nickve28/zss_service_suite_service_ex | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | defmodule ZssService.Address do
@moduledoc """
A struct containing all logic on how the ZSS Address Frame should be constructed.
"""
defstruct [
sid: nil,
sversion: nil,
verb: nil
]
@doc """
Constructs a ZSS Address Frame.
## Examples
iex> ZssService.Address.new(%{"sid" => "a", "verb" ... | 29.519231 | 131 | 0.642128 |
2836978bbfea5f6bc90a0d19f623fafd9c475ce4 | 1,965 | ex | Elixir | clients/games/lib/google_api/games/v1/model/metagame_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/metagame_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games/lib/google_api/games/v1/model/metagame_config.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... | 37.075472 | 188 | 0.723155 |
2836b1bec9f63dfe4978d12afa440ffc4527a6bc | 1,289 | ex | Elixir | lib/docker_test2_web/endpoint.ex | JohnB/docker_test2 | ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2 | [
"Apache-2.0"
] | null | null | null | lib/docker_test2_web/endpoint.ex | JohnB/docker_test2 | ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2 | [
"Apache-2.0"
] | null | null | null | lib/docker_test2_web/endpoint.ex | JohnB/docker_test2 | ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2 | [
"Apache-2.0"
] | null | null | null | defmodule DockerTest2Web.Endpoint do
use Phoenix.Endpoint, otp_app: :docker_test2
socket "/socket", DockerTest2Web.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deployi... | 27.425532 | 69 | 0.715283 |
2836bf5206c34ae01297c290332afbb9916d6c23 | 249 | ex | Elixir | lib/bitlog.ex | Soonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | 2 | 2019-12-03T10:38:38.000Z | 2019-12-04T23:52:11.000Z | lib/bitlog.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | lib/bitlog.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | defmodule Bitlog do
@moduledoc """
Bitlog keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.9 | 66 | 0.751004 |
2836cef40d265a3ffd043da12374911b43a16c2b | 389 | exs | Elixir | spawn/link3.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | spawn/link3.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | spawn/link3.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule Link3 do
import :timer, only: [sleep: 1]
def sad_function do
sleep 500
exit(:boom)
end
def run do
Process.flag(:trap_exit, true)
spawn_link(Link3, :sad_function, [])
receive do
msg ->
IO.puts "Message received: #{inspect msg}"
after 1000 ->
IO.puts "No... | 18.52381 | 57 | 0.619537 |
2836e34e4d6da2d2c6afb0e68297ac690ab90b37 | 3,405 | ex | Elixir | lib/payment_method.ex | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 108 | 2016-02-03T12:45:03.000Z | 2022-02-19T16:56:36.000Z | lib/payment_method.ex | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 77 | 2016-02-12T15:52:53.000Z | 2022-02-21T14:38:08.000Z | lib/payment_method.ex | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 64 | 2016-04-04T07:07:24.000Z | 2022-03-24T05:42:05.000Z | defmodule Braintree.PaymentMethod do
@moduledoc """
Create, update, find and delete payment methods. Payment methods
may be a `CreditCard` or a `PaypalAccount`.
"""
alias Braintree.{AndroidPayCard, ApplePayCard, CreditCard, HTTP, PaypalAccount}
alias Braintree.ErrorResponse, as: Error
@doc """
Create ... | 27.909836 | 94 | 0.626725 |
2837429325f2e03421277f6a80c528ac4660b5e5 | 5,518 | ex | Elixir | lib/phoenix_inline_svg/helpers.ex | quero-edu/phoenix_inline_svg | 22b46e2af3059c89519189ddaf270d684513472d | [
"MIT"
] | null | null | null | lib/phoenix_inline_svg/helpers.ex | quero-edu/phoenix_inline_svg | 22b46e2af3059c89519189ddaf270d684513472d | [
"MIT"
] | null | null | null | lib/phoenix_inline_svg/helpers.ex | quero-edu/phoenix_inline_svg | 22b46e2af3059c89519189ddaf270d684513472d | [
"MIT"
] | null | null | null | defmodule PhoenixInlineSvg.Helpers do
@moduledoc """
The module that adds the view helpers to fetch
and render SVG files into safe HTML.
## New Way
The preferred way of using this library is to add the helpers to the quoted
`view` in your `web.ex` file.
```elixir
def view do
quote do
use Ph... | 24.09607 | 85 | 0.640087 |
28376e08a5d80bca1d503382810112b5dd651adf | 65 | ex | Elixir | web/views/layout_view.ex | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | defmodule Otherpool.LayoutView do
use Otherpool.Web, :view
end
| 16.25 | 33 | 0.8 |
2837bd7fe76e691c1c527d47c4f5ed6b9f51bec3 | 7,241 | ex | Elixir | apps/nerves_hub_device/lib/nerves_hub_device/ssl.ex | herozero777/nerves_hub_web | 9b1ea69d0495a7451d1641362c3db37db9b87353 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_device/lib/nerves_hub_device/ssl.ex | herozero777/nerves_hub_web | 9b1ea69d0495a7451d1641362c3db37db9b87353 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_device/lib/nerves_hub_device/ssl.ex | herozero777/nerves_hub_web | 9b1ea69d0495a7451d1641362c3db37db9b87353 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubDevice.SSL do
alias NervesHubWebCore.{Devices, Certificate}
@type pkix_path_validation_reason ::
:cert_expired
| :invalid_issuer
| :invalid_signature
| :name_not_permitted
| :missing_basic_constraint
| :invalid_key_usage
| {:r... | 31.211207 | 94 | 0.637343 |
2837f1aaccaa309ffd51fc0034e77f117acff406 | 8,402 | ex | Elixir | lib/faker/internet.ex | stwf/faker | 8dcc62ba983cce020a3018b3f26e4202a67783e3 | [
"MIT"
] | null | null | null | lib/faker/internet.ex | stwf/faker | 8dcc62ba983cce020a3018b3f26e4202a67783e3 | [
"MIT"
] | null | null | null | lib/faker/internet.ex | stwf/faker | 8dcc62ba983cce020a3018b3f26e4202a67783e3 | [
"MIT"
] | null | null | null | defmodule Faker.Internet do
alias Faker.Lorem
alias Faker.Person.En, as: Person
alias Faker.Util
import Faker.Util, only: [pick: 1]
import Faker, only: [localize: 1]
@moduledoc """
Functions for generating internet related data
"""
@doc """
Returns a complete random domain name
## Examples
... | 24.074499 | 85 | 0.618662 |
28380eb5ffd790577267976c3df755c885db0f09 | 1,131 | exs | Elixir | test/plug_forwarded_peer_test.exs | kiere/plug_forwarded_peer | 9ea546d96798ad03b54e97377628496124fda2c5 | [
"MIT"
] | null | null | null | test/plug_forwarded_peer_test.exs | kiere/plug_forwarded_peer | 9ea546d96798ad03b54e97377628496124fda2c5 | [
"MIT"
] | null | null | null | test/plug_forwarded_peer_test.exs | kiere/plug_forwarded_peer | 9ea546d96798ad03b54e97377628496124fda2c5 | [
"MIT"
] | null | null | null | defmodule PlugForwardedPeerTest do
use ExUnit.Case
use Plug.Test
defp test_conn(header \\ nil, value \\ nil) do
c = %{conn("GET", "/") | remote_ip: {127, 0, 0, 1}}
c = if header, do: put_req_header(c, header, value), else: c
PlugForwardedPeer.call(c, []).remote_ip
end
test "no header keeps peer ... | 36.483871 | 95 | 0.59328 |
28381282846b8989c14f5b3abbd6926f26de8f91 | 108 | exs | Elixir | test/is/validators/in_range_test.exs | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | 17 | 2018-06-23T11:16:17.000Z | 2021-11-17T18:28:37.000Z | test/is/validators/in_range_test.exs | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | null | null | null | test/is/validators/in_range_test.exs | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | 2 | 2018-10-24T20:12:54.000Z | 2019-12-25T17:45:41.000Z | defmodule Is.Validators.InRangeTest do
use ExUnit.Case
doctest Is.Validators.InRange, import: true
end
| 18 | 45 | 0.796296 |
2838143ea9910def94d142b64dfcb693bc83e8b0 | 35,246 | exs | Elixir | test/data/row_filter_integration_test.exs | bzzt/bigtable | 215b104a60596dde6cd459efb73baf8bccdb6b50 | [
"MIT"
] | 17 | 2019-01-22T12:59:38.000Z | 2021-12-13T10:41:52.000Z | test/data/row_filter_integration_test.exs | bzzt/bigtable | 215b104a60596dde6cd459efb73baf8bccdb6b50 | [
"MIT"
] | 17 | 2019-01-27T18:11:33.000Z | 2020-02-24T10:16:08.000Z | test/data/row_filter_integration_test.exs | bzzt/bigtable | 215b104a60596dde6cd459efb73baf8bccdb6b50 | [
"MIT"
] | 3 | 2019-02-04T17:08:09.000Z | 2021-04-07T07:13:53.000Z | defmodule RowFilterIntegration do
@moduledoc false
alias Bigtable.{ChunkReader, MutateRow, MutateRows, Mutations, ReadRows, RowFilter}
alias ChunkReader.ReadCell
alias Google.Protobuf.{BytesValue, StringValue}
use ExUnit.Case
setup do
assert ReadRows.read() == {:ok, %{}}
row_keys = ["Test#1", "Te... | 27.557467 | 85 | 0.481246 |
2838677239c56c0d2c688c43be4f6e142a0842d3 | 783 | exs | Elixir | mix.exs | mirvali/kvstore | 375c30c342dd133eacde86710bb151530d37e4d9 | [
"MIT"
] | null | null | null | mix.exs | mirvali/kvstore | 375c30c342dd133eacde86710bb151530d37e4d9 | [
"MIT"
] | null | null | null | mix.exs | mirvali/kvstore | 375c30c342dd133eacde86710bb151530d37e4d9 | [
"MIT"
] | null | null | null | defmodule KVstore.Mixfile do
use Mix.Project
def project do
[app: :kvstore,
version: "0.1.0",
elixir: "~> 1.9",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 20.076923 | 77 | 0.564496 |
283885b8087b68868fe7ee70169281e521c44b33 | 845 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_exec_request.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_exec_request.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_exec_request.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Containers.Model.ContainerExecRequest do
@moduledoc """
The start container exec request.
"""
@derive [Poison.... | 28.166667 | 131 | 0.749112 |
2838ae5d4a6ad03b51939f80acfd0950e7e345c1 | 993 | ex | Elixir | test/support/channel_case.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | null | null | null | test/support/channel_case.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 3 | 2018-10-03T16:59:21.000Z | 2018-10-06T09:53:51.000Z | test/support/channel_case.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 1 | 2018-10-03T17:06:47.000Z | 2018-10-03T17:06:47.000Z | defmodule Trello.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 be as... | 22.568182 | 68 | 0.698892 |
2838b23efeee50ca326c5781745efb2a1ac3a7c9 | 1,475 | ex | Elixir | lib/mix/tasks/cmake/config.ex | shoz-f/mix_cmake | af37dc09986b3930d2265fde1783f0d5de0ff42c | [
"Apache-2.0"
] | 2 | 2021-10-04T09:49:27.000Z | 2021-10-06T05:14:26.000Z | lib/mix/tasks/cmake/config.ex | shoz-f/mix_cmake | af37dc09986b3930d2265fde1783f0d5de0ff42c | [
"Apache-2.0"
] | 1 | 2021-12-01T01:25:21.000Z | 2021-12-01T01:25:21.000Z | lib/mix/tasks/cmake/config.ex | shoz-f/mix_cmake | af37dc09986b3930d2265fde1783f0d5de0ff42c | [
"Apache-2.0"
] | 1 | 2022-02-13T20:56:39.000Z | 2022-02-13T20:56:39.000Z | defmodule Mix.Tasks.Cmake.Config do
use Mix.Task
alias Mix.Tasks.Cmake
require Cmake
@shortdoc "Generate build scripts based on the CMakeLists.txt"
@moduledoc """
Generate build scripts based on the 'CMakeLists.txt'.
$ mix cmake.config [opt] [build_dir] [source_dir] [++ CMake options]
## Comman... | 26.339286 | 130 | 0.658983 |
2838bedf296ba74ee395e6b23dc368c0deb90985 | 72 | exs | Elixir | core/test/test_helper.exs | Parasrah/cronus | b630a7d62128b03c7cdf65f941af2a2c2bd617e5 | [
"MIT"
] | null | null | null | core/test/test_helper.exs | Parasrah/cronus | b630a7d62128b03c7cdf65f941af2a2c2bd617e5 | [
"MIT"
] | null | null | null | core/test/test_helper.exs | Parasrah/cronus | b630a7d62128b03c7cdf65f941af2a2c2bd617e5 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(CronusCore.Repo, :manual)
| 24 | 56 | 0.791667 |
2838c2b2c0906525b3a4b56490f31f06638949a6 | 4,272 | exs | Elixir | test/phoenix/router/pipeline_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | test/phoenix/router/pipeline_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | test/phoenix/router/pipeline_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | # Define it at the top to guarantee there is no scope
# leakage from the test case.
defmodule Phoenix.Router.PipelineTest.SampleController do
use Phoenix.Controller
def index(conn, _params), do: text(conn, "index")
def crash(_conn, _params), do: raise "crash!"
# Let's also define a custom plug that we will
... | 24.135593 | 91 | 0.649345 |
2838e24bfc31c166709a7fc6067da15da4e1609f | 9,688 | ex | Elixir | lib/unicode/transform/transform.ex | elixir-cldr/unicode_transform | c95e844e7c1bf26577ff73e1fc03746766ab8b8a | [
"Apache-2.0"
] | null | null | null | lib/unicode/transform/transform.ex | elixir-cldr/unicode_transform | c95e844e7c1bf26577ff73e1fc03746766ab8b8a | [
"Apache-2.0"
] | null | null | null | lib/unicode/transform/transform.ex | elixir-cldr/unicode_transform | c95e844e7c1bf26577ff73e1fc03746766ab8b8a | [
"Apache-2.0"
] | null | null | null | defmodule Unicode.Transform do
@moduledoc """
Implements the Unicode transform rules.
The rules are implemented by the macros
`filter/1`, `transform/1` and `replace/3`.
Typically transform modules are generated
from the CLDR transform specifications using
`Unicode.Transform.Generator.generate/1`.
The... | 25.697613 | 94 | 0.641928 |
2838e41dcbba297c76fe502c41ee34f478146753 | 1,547 | ex | Elixir | lib/challenge_web.ex | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | lib/challenge_web.ex | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | lib/challenge_web.ex | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | defmodule ChallengeWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ChallengeWeb, :controller
use ChallengeWeb, :view
The definitions below will be executed for every view,
contro... | 23.8 | 69 | 0.694247 |
2838ef3f2195206cb5e107b9039676f089a4157c | 2,315 | ex | Elixir | lib/yamm_web.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | lib/yamm_web.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | lib/yamm_web.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | defmodule YAMMWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use YAMMWeb, :controller
use YAMMWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 22.259615 | 78 | 0.677322 |
28391b3ecd13e85d0c9eb5420ee0136312d00169 | 1,837 | exs | Elixir | mix.exs | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | null | null | null | mix.exs | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | null | null | null | mix.exs | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | null | null | null | defmodule ElasticsearchElixirBulkProcessor.MixProject do
use Mix.Project
def project do
[
app: :elasticsearch_elixir_bulk_processor,
name: "Elasticsearch Elixir Bulk Processor",
version: String.trim(File.read!("VERSION")),
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
... | 30.114754 | 258 | 0.614045 |
28392e1eaf3e0406dab17ed66fae03a23c1bf0de | 4,855 | ex | Elixir | lib/porter_stemmer.ex | frpaulas/porterstemmer | 193f69d966bb5eceff152d478662b5761c6160d7 | [
"MIT"
] | 6 | 2015-03-04T13:23:26.000Z | 2019-11-08T05:01:11.000Z | lib/porter_stemmer.ex | frpaulas/porterstemmer | 193f69d966bb5eceff152d478662b5761c6160d7 | [
"MIT"
] | 1 | 2016-05-11T09:45:55.000Z | 2016-05-11T09:45:55.000Z | lib/porter_stemmer.ex | frpaulas/porterstemmer | 193f69d966bb5eceff152d478662b5761c6160d7 | [
"MIT"
] | 4 | 2015-03-07T07:37:11.000Z | 2022-03-04T21:03:29.000Z | defmodule PorterStemmer do
require IEx
import String
def stem(input_word) do
word = to_string(input_word)
cond do
String.length(word) <= 2 -> word
# does not stem words beginning with an uppercase letter.
# This is to prevent stemming of acronyms or names.
word =~ ~r/^[A-Z]/ -> wo... | 25.418848 | 157 | 0.502369 |
28393d6813f7ebb0520160c5e4a2c35eed54053c | 2,776 | exs | Elixir | test/xema/not_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/xema/not_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/xema/not_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Xema.NotTest do
use ExUnit.Case, async: true
import Xema, only: [validate: 2]
alias Xema.ValidationError
describe "keyword not:" do
setup do
%{schema: Xema.new({:any, not: :integer})}
end
test "type", %{schema: schema} do
assert schema.schema.type == :any
end
test ... | 23.525424 | 90 | 0.491354 |
28394f366e5519694facc95c81425bfadcc4f1e9 | 1,063 | exs | Elixir | mix.exs | baldmountain/arc_ecto | 50722d8e5c0e6c04648462b16e242fbb983d5494 | [
"Apache-2.0"
] | null | null | null | mix.exs | baldmountain/arc_ecto | 50722d8e5c0e6c04648462b16e242fbb983d5494 | [
"Apache-2.0"
] | null | null | null | mix.exs | baldmountain/arc_ecto | 50722d8e5c0e6c04648462b16e242fbb983d5494 | [
"Apache-2.0"
] | null | null | null | defmodule Arc.Ecto.Mixfile do
use Mix.Project
@version "0.11.3"
def project do
[app: :arc_ecto,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
deps: deps(),
# Hex
description: description(),
package: package()]
end
# Configuration for the ... | 20.843137 | 64 | 0.581373 |
28394f982f080f5707e2839cf4f2ddb75e5583b0 | 1,698 | exs | Elixir | test/meca_test.exs | benknowles/meca500 | 3e03273f6c011228e883f509f4d3af0fe3b976d2 | [
"MIT"
] | null | null | null | test/meca_test.exs | benknowles/meca500 | 3e03273f6c011228e883f509f4d3af0fe3b976d2 | [
"MIT"
] | null | null | null | test/meca_test.exs | benknowles/meca500 | 3e03273f6c011228e883f509f4d3af0fe3b976d2 | [
"MIT"
] | null | null | null | defmodule MecaTest do
use ExUnit.Case
test "answer codes" do
# standard command (ignores state)
assert Meca.answer_codes("BrakesOn", %{}) == [2010]
assert Meca.answer_codes("BrakesOn", %{eob: 1, eom: 1}) == [2010]
# pause motion EOM special case
assert Meca.answer_codes("PauseMotion", %{}) == ... | 39.488372 | 88 | 0.623675 |
28395c88ff6b2a020b82744c4cd84bdff7f42ac9 | 4,631 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.763975 | 137 | 0.669618 |
283991272bc1aa64260a5081ab790af5c275e96c | 2,901 | exs | Elixir | apps/fz_http/test/fz_http_web/live/device_live/unprivileged/index_test.exs | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | null | null | null | apps/fz_http/test/fz_http_web/live/device_live/unprivileged/index_test.exs | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | 1 | 2022-03-30T03:57:41.000Z | 2022-03-30T03:57:41.000Z | apps/fz_http/test/fz_http_web/live/device_live/unprivileged/index_test.exs | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.DeviceLive.Unprivileged.IndexTest do
use FzHttpWeb.ConnCase, async: false
describe "authenticated/device list" do
test "includes the device name in the list", %{
unprivileged_user: user,
unprivileged_conn: conn
} do
{:ok, devices: devices} = create_devices(user_id: use... | 31.193548 | 98 | 0.637366 |
283994dd488e62a3252c47e0f4aef918ea891408 | 1,633 | exs | Elixir | mix.exs | enzoqtvf/ecto_job | ba3cc129ddcbbde49b4e6e885b0073aec485f75f | [
"MIT"
] | null | null | null | mix.exs | enzoqtvf/ecto_job | ba3cc129ddcbbde49b4e6e885b0073aec485f75f | [
"MIT"
] | null | null | null | mix.exs | enzoqtvf/ecto_job | ba3cc129ddcbbde49b4e6e885b0073aec485f75f | [
"MIT"
] | null | null | null | defmodule EctoJob.Mixfile do
use Mix.Project
@version "0.3.0"
@url "https://github.com/mbuhot/ecto_job"
def project do
[
app: :ecto_job,
description: "A transactional job queue built with Ecto, PostgreSQL and GenStage.",
version: @version,
elixir: "~> 1.5",
elixirc_paths: eli... | 22.680556 | 89 | 0.548683 |
2839afbc421822ae895e22a69d19d7c874bf0963 | 12,396 | ex | Elixir | lib/plug/csrf_protection.ex | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | lib/plug/csrf_protection.ex | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | lib/plug/csrf_protection.ex | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.CSRFProtection do
@moduledoc """
Plug to protect from cross-site request forgery.
For this plug to work, it expects a session to have been
previously fetched. It will then compare the token stored
in the session with the one sent by the request to determine
the validity of the request. For a... | 33.502703 | 98 | 0.700871 |
2839b6bed2fa756c9f9817d63bd356709cfbf989 | 260 | ex | Elixir | lib/mix/tasks/git/tags/push.ex | livinginthepast/elixir_sci | 1cb0add7faf46ba8b30dd1a291708f1e0d138ea9 | [
"MIT"
] | 1 | 2017-11-20T23:59:28.000Z | 2017-11-20T23:59:28.000Z | lib/mix/tasks/git/tags/push.ex | livinginthepast/elixir_sci | 1cb0add7faf46ba8b30dd1a291708f1e0d138ea9 | [
"MIT"
] | null | null | null | lib/mix/tasks/git/tags/push.ex | livinginthepast/elixir_sci | 1cb0add7faf46ba8b30dd1a291708f1e0d138ea9 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Git.Tags.Push do
use Mix.Task
@shortdoc "Pushes all git tags"
def run([]) do
Mix.Shell.IO.cmd(command() |> Enum.join(" "))
end
defp command do
[
"git",
"push",
"origin",
"--tags",
]
end
end
| 14.444444 | 49 | 0.534615 |
2839e8c7387a6175bd5036d7d81bc5054ce6b07f | 5,366 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.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... | 72.513514 | 610 | 0.752889 |
2839f0c82eb8a6a13697d8265fc5fa960db3aeb0 | 570 | ex | Elixir | lib/eve_swagger_interface.ex | aquarhead/eve_swagger_interface | 0597ee9601707ca1c53c663e625b0c0d5ef01abf | [
"MIT"
] | null | null | null | lib/eve_swagger_interface.ex | aquarhead/eve_swagger_interface | 0597ee9601707ca1c53c663e625b0c0d5ef01abf | [
"MIT"
] | null | null | null | lib/eve_swagger_interface.ex | aquarhead/eve_swagger_interface | 0597ee9601707ca1c53c663e625b0c0d5ef01abf | [
"MIT"
] | null | null | null | defmodule EVESwaggerInterface do
@moduledoc """
Simple, `use`-able ESI wrapper.
"""
defmacro __using__(opts) do
{:ok, resp} = Tesla.get("https://esi.evetech.net/_latest/swagger.json?datasource=tranquility")
spec = Poison.decode!(resp.body)
quote do
use Tesla
adapter Tesla.Adapter.Hackn... | 21.923077 | 98 | 0.598246 |
283a0f7a946c01200f5402045d703967fb39d198 | 142 | ex | Elixir | web/controllers/page_controller.ex | wsmoak/elm_colors | 94dd2887965274938de4722adfaf19d6bd939b04 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | wsmoak/elm_colors | 94dd2887965274938de4722adfaf19d6bd939b04 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | wsmoak/elm_colors | 94dd2887965274938de4722adfaf19d6bd939b04 | [
"MIT"
] | null | null | null | defmodule ElmColors.PageController do
use ElmColors.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 17.75 | 37 | 0.739437 |
283a21235f45c74196df0e20751ad657ba09e50e | 1,328 | ex | Elixir | lib/distcount_web/endpoint.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | lib/distcount_web/endpoint.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | lib/distcount_web/endpoint.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | defmodule DistcountWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :distcount
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_distc... | 29.511111 | 99 | 0.715361 |
283a227432b09a0104970d84d04d79b4e12e1559 | 1,699 | exs | Elixir | test/credo/check/readability/unnecessary_alias_expansion_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/readability/unnecessary_alias_expansion_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/readability/unnecessary_alias_expansion_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.UnnecessaryAliasExpansionTest do
use Credo.Test.Case
@described_check Credo.Check.Readability.UnnecessaryAliasExpansion
#
# cases NOT raising issues
#
test "it should NOT report violation" do
"""
defmodule Test do
alias App.Module1
alias App.{Module2,... | 18.877778 | 68 | 0.602707 |
283a296fb978d23207a408ada2344779a419d542 | 2,212 | ex | Elixir | lib/log_wrapper.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | lib/log_wrapper.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | lib/log_wrapper.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule LogWrapper do
@moduledoc """
LogWrapper is a wrapper around the `Logger` module that exists solely to
throw away return values. This gets rid of dialyzer `unmatched_returns`
warning noise without sprinkling `_ = Logger.whatever` all over our code or
manually maintaining a bunch of per-line ignore en... | 27.308642 | 78 | 0.677667 |
283a6497147ab2fc56c46573c9ad2d3822caf8e3 | 2,686 | exs | Elixir | apps/subs/test/use_cases/users/update_user_test.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs/test/use_cases/users/update_user_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs/test/use_cases/users/update_user_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule Subs.Test.UseCases.Users.UpdateUserTest do
use Subs.DataCase
import Subs.Test.Support.Factory
alias Subs.UseCases.Users.UpdateUser
@bcrypt Application.get_env(:subs, :bcrypt)
describe "given user and an unknown user to update" do
test "should return user_not_found error" do
{:error, {er... | 31.6 | 106 | 0.677215 |
283a84bef7698a5a911a202d715bfbea40f2d0c8 | 787 | ex | Elixir | debian/watch.ex | Xento/hmcfgusb | 6d7c850828ffc939e2b3861a28d2a8d9d0db2274 | [
"MIT"
] | 1 | 2020-04-17T15:02:23.000Z | 2020-04-17T15:02:23.000Z | debian/watch.ex | Xento/hmcfgusb | 6d7c850828ffc939e2b3861a28d2a8d9d0db2274 | [
"MIT"
] | null | null | null | debian/watch.ex | Xento/hmcfgusb | 6d7c850828ffc939e2b3861a28d2a8d9d0db2274 | [
"MIT"
] | 1 | 2019-11-03T14:15:58.000Z | 2019-11-03T14:15:58.000Z | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.co... | 32.791667 | 70 | 0.722999 |
283aaa0f157a4eb0802ceeafba6c1c4ab0b79124 | 1,182 | ex | Elixir | lib/credo/check/warning/iex_pry.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/check/warning/iex_pry.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/check/warning/iex_pry.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Warning.IExPry do
@moduledoc false
@checkdoc """
While calls to IEx.pry might appear in some parts of production code,
most calls to this function are added during debugging sessions.
This check warns about those calls, because they might have been committed
in error.
"""
@explan... | 23.176471 | 76 | 0.628596 |
283ad7642eb4c79a17698b201d5a7a58c828bafd | 179 | ex | Elixir | lib/retroflect_web/live/page_live.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | 3 | 2021-10-04T15:03:09.000Z | 2021-10-05T00:42:19.000Z | lib/retroflect_web/live/page_live.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | 29 | 2021-10-04T12:56:21.000Z | 2021-10-20T17:38:12.000Z | lib/retroflect_web/live/page_live.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | null | null | null | defmodule RetroflectWeb.PageLive do
use RetroflectWeb, :live_view
@moduledoc """
Root live view
"""
def mount(_params, _session, socket) do
{:ok, socket}
end
end
| 16.272727 | 41 | 0.687151 |
283b2788688682212eb97bab944c3ab2f1922bdf | 491 | exs | Elixir | priv/repo/migrations/20210416003447_create_user_table.exs | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | 2 | 2021-04-20T22:27:53.000Z | 2021-05-13T17:16:15.000Z | priv/repo/migrations/20210416003447_create_user_table.exs | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210416003447_create_user_table.exs | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.Repo.Migrations.CreateUserTable do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :email, :string
add :age, :integer
add :cpf, :string
add :nickname, :string
add :password, :string
timestamps()
end
create ... | 22.318182 | 55 | 0.643585 |
283b62f0fc4021dac071f6cb121bbfd830688709 | 3,630 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/file_occurrence.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/file_occurrence.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/file_occurrence.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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... | 51.126761 | 236 | 0.709917 |
283b6c8fa3f527a28f0fab0f335378dae83963be | 3,090 | ex | Elixir | apps/grenadier/lib/grenadier_web/plugs/authenticate.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/grenadier/lib/grenadier_web/plugs/authenticate.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/grenadier/lib/grenadier_web/plugs/authenticate.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule GrenadierWeb.Plugs.Authenticate do
import Plug.Conn
Code.require_file("config.ex", "#{__DIR__}/../../../../../lib/common/")
alias Grenadier.Account
alias Grenadier.Account.User
alias GrenadierWeb.Router.Helpers, as: Routes
# based on authentication plug from programming phoenix
def init(op... | 27.345133 | 187 | 0.654693 |
283bb1e933aa4454cafbd162e63d8d3fc6efa21b | 969 | ex | Elixir | apps/rig_inbound_gateway/lib/rig_inbound_gateway/application.ex | hlavacek/reactive-interaction-gateway | 6b968b742d8f0456a51c31dbc744ccfacd57191e | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway/application.ex | hlavacek/reactive-interaction-gateway | 6b968b742d8f0456a51c31dbc744ccfacd57191e | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway/application.ex | hlavacek/reactive-interaction-gateway | 6b968b742d8f0456a51c31dbc744ccfacd57191e | [
"Apache-2.0"
] | null | null | null | defmodule RigInboundGateway.Application do
@moduledoc """
This is the main entry point of the RigInboundGateway application.
"""
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
children ... | 31.258065 | 71 | 0.72549 |
283bb88ac7c0ce9a09f7babe4223a16556df15bb | 732 | ex | Elixir | lib/central_web/live/live_helpers.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/central_web/live/live_helpers.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central_web/live/live_helpers.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.LiveHelpers do
@moduledoc false
import Phoenix.LiveView.Helpers
@doc """
Renders a component inside the `CentralWeb.ModalComponent` component.
The rendered modal receives a `:return_to` option to properly update
the URL when the modal is closed.
## Examples
<%= live_modal Ce... | 29.28 | 80 | 0.698087 |
283bbf77e7c068101187696432a15e442b7dc204 | 5,425 | ex | Elixir | lib/radixir/core/request/build_transaction/operation.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 16 | 2022-01-05T20:41:55.000Z | 2022-03-25T09:06:43.000Z | lib/radixir/core/request/build_transaction/operation.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | null | null | null | lib/radixir/core/request/build_transaction/operation.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 1 | 2022-02-10T21:55:26.000Z | 2022-02-10T21:55:26.000Z | defmodule Radixir.Core.Request.BuildTransaction.Operation do
@moduledoc false
# @moduledoc """
# Methods to create each map in `ValidatorSystemMetadata` map.
# """
alias Radixir.StitchPlan
@type stitch_plans :: list(keyword)
@type params :: keyword
@doc """
Generates stitch plan for `type` map in `O... | 29.483696 | 97 | 0.663226 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.