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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffcebbab06176fc90b4b90bcf3026ef635140592 | 1,839 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/range_partitioning_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/range_partitioning_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/range_partitioning_range.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... | 34.698113 | 125 | 0.712344 |
ffcec8e93a90f813d2b1e3f5f21a3824f3e44ec2 | 216 | ex | Elixir | exercises/practice/resistor-color-trio/lib/resistor_color_trio.ex | ryanzidago/elixir | d00ca743340fcc328c70ee351274f91b57fd4c8d | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/resistor-color-trio/lib/resistor_color_trio.ex | ryanzidago/elixir | d00ca743340fcc328c70ee351274f91b57fd4c8d | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/resistor-color-trio/lib/resistor_color_trio.ex | ryanzidago/elixir | d00ca743340fcc328c70ee351274f91b57fd4c8d | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule ResistorColorTrio do
@doc """
Calculate the resistance value in ohm or kiloohm from resistor colors
"""
@spec label(colors :: [atom]) :: {number, :ohms | :kiloohms}
def label(colors) do
end
end
| 24 | 71 | 0.689815 |
ffceecff6c41ddd11d73d342effe2bc7ab76edf8 | 1,495 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/file_io_details.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/file_io_details.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/file_io_details.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... | 31.145833 | 100 | 0.745151 |
ffcf01cfb88c638e23951335fc4f0299fd6cb0c3 | 213 | exs | Elixir | apps/bookmarker/priv/repo/migrations/20161013144009_add_bookmarks_tags_unique_index.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/priv/repo/migrations/20161013144009_add_bookmarks_tags_unique_index.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/priv/repo/migrations/20161013144009_add_bookmarks_tags_unique_index.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.Repo.Migrations.AddBookmarksTagsUniqueIndex do
use Ecto.Migration
def change do
create unique_index(:bookmarks_tags, [:bookmark_id, :tag_id], name: "bookmark_tag_composite")
end
end
| 26.625 | 96 | 0.798122 |
ffcf1bdfd9c0f5bdb499e06e1c14c3b87fe6bfe2 | 303 | ex | Elixir | hippo-backend/lib/graphql/types/types.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 8 | 2019-05-18T10:14:06.000Z | 2021-07-31T20:58:55.000Z | hippo-backend/lib/graphql/types/types.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 7 | 2019-07-20T17:48:03.000Z | 2022-02-26T10:41:56.000Z | hippo-backend/lib/graphql/types/types.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 1 | 2019-07-04T02:30:09.000Z | 2019-07-04T02:30:09.000Z | defmodule Hippo.GraphQL.Types do
@moduledoc false
use Absinthe.Schema.Notation
import_types(Hippo.GraphQL.Types.Identifier)
import_types(Hippo.GraphQL.Types.Project)
import_types(Hippo.GraphQL.Types.Lane)
import_types(Hippo.GraphQL.Types.Card)
import_types(Hippo.GraphQL.Types.Event)
end
| 27.545455 | 46 | 0.808581 |
ffcf1dbbcd1a8533b815751edef8f8e4e3b7e041 | 1,997 | exs | Elixir | test/support/migrations.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | null | null | null | test/support/migrations.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | null | null | null | test/support/migrations.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | 1 | 2021-04-14T16:18:31.000Z | 2021-04-14T16:18:31.000Z | defmodule TestExAdmin.Migrations do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :email, :string
add :active, :boolean
end
create table(:roles) do
add :name, :string
end
create table(:users_roles) do
add :user_id, references(:us... | 24.654321 | 78 | 0.641462 |
ffcf2ebc70bf4d78a0adea93d6c7be977738758e | 5,843 | ex | Elixir | lib/oban/migrations.ex | stefanchrobot/oban | 961015b92b9cae442d2834ad220a85ccdcc9da2d | [
"Apache-2.0"
] | null | null | null | lib/oban/migrations.ex | stefanchrobot/oban | 961015b92b9cae442d2834ad220a85ccdcc9da2d | [
"Apache-2.0"
] | null | null | null | lib/oban/migrations.ex | stefanchrobot/oban | 961015b92b9cae442d2834ad220a85ccdcc9da2d | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Migrations do
@moduledoc """
Migrations create and modify the database tables Oban needs to function.
## Usage
To use migrations in your application you'll need to generate an `Ecto.Migration` that wraps
calls to `Oban.Migrations`:
```bash
mix ecto.gen.migration add_oban
```
Open th... | 26.802752 | 98 | 0.693308 |
ffcf5d315f63ef63f79c2b216d39e738400123b9 | 1,404 | exs | Elixir | lib/perspective/utilities/identifier/tests/identifier_macro_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/utilities/identifier/tests/identifier_macro_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/utilities/identifier/tests/identifier_macro_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.IdentifierMacro.Test do
use Perspective.TestCase
defmodule DefaultExample do
use Perspective.IdentifierMacro
end
defmodule UsageExample do
use Perspective.IdentifierMacro
path([id: id]) do
"usage-example/#{id}"
end
end
test "using Perspective.IdentifierMacro i... | 35.1 | 123 | 0.731481 |
ffcf99adaf555e3fae30aaf8a43a7ae6ac53ccfc | 1,170 | ex | Elixir | lib/codes/codes_z39.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z39.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z39.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Z39 do
alias IcdCode.ICDCode
def _Z390 do
%ICDCode{full_code: "Z390",
category_code: "Z39",
short_code: "0",
full_name: "Encounter for care and examination of mother immediately after delivery",
short_name: "Encounter for care and examinatio... | 34.411765 | 98 | 0.65812 |
ffcfccc836706dc64c8c323f839ff39a770d53d5 | 385 | ex | Elixir | lib/elsol/query/terms.ex | boonious/elsol | ad983b7dddae74f78411334d850dfe37ac6ffbb2 | [
"Apache-2.0"
] | 9 | 2016-06-30T16:49:49.000Z | 2021-04-06T12:12:36.000Z | lib/elsol/query/terms.ex | boonious/elsol | ad983b7dddae74f78411334d850dfe37ac6ffbb2 | [
"Apache-2.0"
] | 11 | 2016-10-11T04:07:01.000Z | 2017-05-10T23:38:17.000Z | lib/elsol/query/terms.ex | boonious/elsol | ad983b7dddae74f78411334d850dfe37ac6ffbb2 | [
"Apache-2.0"
] | 4 | 2016-04-16T02:20:12.000Z | 2020-05-09T04:43:10.000Z | defmodule Elsol.Query.Terms do
defstruct url: nil, name: "/terms", terms: true, terms_fl: nil,
terms_limit: nil, terms_lower: nil, terms_lower_incl: nil, terms_mincount: nil,
terms_maxcount: nil, terms_prefix: nil, terms_raw: nil,
terms_regex: nil, terms_regex_flag: nil, terms_so... | 42.777778 | 91 | 0.675325 |
ffcfd4199e7d435e3bced89c9223cf0c6a0c3a18 | 223 | exs | Elixir | priv/repo/migrations/20190818154452_add_group_id_to_ideas.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 523 | 2017-03-15T15:21:11.000Z | 2022-03-14T03:04:18.000Z | priv/repo/migrations/20190818154452_add_group_id_to_ideas.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 524 | 2017-03-16T18:31:09.000Z | 2022-02-26T10:02:06.000Z | priv/repo/migrations/20190818154452_add_group_id_to_ideas.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 60 | 2017-05-01T18:02:28.000Z | 2022-03-04T21:04:56.000Z | defmodule RemoteRetro.Repo.Migrations.AddGroupIdToIdeas do
use Ecto.Migration
def change do
alter table(:ideas) do
add :group_id, references("groups")
end
create index(:ideas, [:group_id])
end
end
| 18.583333 | 58 | 0.704036 |
ffcff48b32d9aeae985e71c68e0f159d557a42ca | 176 | ex | Elixir | lib/extensions/persistent_session/store/persistent_session_cache.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | 1 | 2021-06-25T10:36:01.000Z | 2021-06-25T10:36:01.000Z | lib/extensions/persistent_session/store/persistent_session_cache.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | lib/extensions/persistent_session/store/persistent_session_cache.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule PowPersistentSession.Store.PersistentSessionCache do
@moduledoc false
use Pow.Store.Base,
ttl: :timer.hours(24) * 30,
namespace: "persistent_session"
end
| 25.142857 | 62 | 0.761364 |
ffd002a580dd5ba2d5af68872029f0c9123d5be3 | 21,454 | ex | Elixir | lib/phoenix/test/conn_test.ex | sjBao/phoenix | e0be71759d83c15f6d1a852d9872d6de1ea0db24 | [
"MIT"
] | 1 | 2019-03-30T16:26:27.000Z | 2019-03-30T16:26:27.000Z | lib/phoenix/test/conn_test.ex | sjBao/phoenix | e0be71759d83c15f6d1a852d9872d6de1ea0db24 | [
"MIT"
] | null | null | null | lib/phoenix/test/conn_test.ex | sjBao/phoenix | e0be71759d83c15f6d1a852d9872d6de1ea0db24 | [
"MIT"
] | null | null | null | defmodule Phoenix.ConnTest do
@moduledoc """
Conveniences for testing Phoenix endpoints and connection related helpers.
You likely want to use this module or make it part of your `ExUnit.CaseTemplate`.
Once used, this module automatically imports all functions defined here as
well as the functions in `Plug.C... | 32.020896 | 116 | 0.67978 |
ffd0146802d465c3e89ef63ceb380211feac843a | 1,800 | ex | Elixir | lib/mux/alarm.ex | fishcakez/elixir-mux | 8be71643a79d8eddd93b78b9c74fd14cac436a21 | [
"Apache-2.0"
] | 2 | 2017-07-26T07:28:33.000Z | 2017-08-08T16:26:05.000Z | lib/mux/alarm.ex | fishcakez/elixir-mux | 8be71643a79d8eddd93b78b9c74fd14cac436a21 | [
"Apache-2.0"
] | null | null | null | lib/mux/alarm.ex | fishcakez/elixir-mux | 8be71643a79d8eddd93b78b9c74fd14cac436a21 | [
"Apache-2.0"
] | 1 | 2021-03-13T23:02:29.000Z | 2021-03-13T23:02:29.000Z | defmodule Mux.Alarm do
@moduledoc false
@behaviour :gen_event
@spec new_table(atom) :: :ets.tab
def new_table(table),
do: :ets.new(table, [:named_table, :public, {:read_concurrency, true}])
@spec delete_table(:ets.tab) :: true
def delete_table(table),
do: :ets.delete(table)
@spec swap_sup_hand... | 29.508197 | 79 | 0.635556 |
ffd0378a8e389c25858d81fb34aee3a444a77d03 | 161 | exs | Elixir | config/prod.exs | r26D/elixir-rasa-action-server | df41d36189f4ed737752343457dfe06d37a8e758 | [
"MIT"
] | 1 | 2021-04-19T18:05:10.000Z | 2021-04-19T18:05:10.000Z | config/prod.exs | r26D/elixir-rasa-action-server | df41d36189f4ed737752343457dfe06d37a8e758 | [
"MIT"
] | null | null | null | config/prod.exs | r26D/elixir-rasa-action-server | df41d36189f4ed737752343457dfe06d37a8e758 | [
"MIT"
] | null | null | null | use Mix.Config
config :rasa_action_server,
port: String.to_integer(System.get_env("PORT") || "4444"),
redirect_url: System.get_env("REDIRECT_URL") | 32.2 | 65 | 0.708075 |
ffd038ec1db3be26e138b98eb1623ca394f09f15 | 9,088 | ex | Elixir | lib/floki/selector/parser.ex | rzane/floki | 16595deef0e6ec7f472ace31347b44c4e8bdc36c | [
"MIT"
] | 1,778 | 2015-01-07T14:12:31.000Z | 2022-03-29T22:42:48.000Z | lib/floki/selector/parser.ex | rzane/floki | 16595deef0e6ec7f472ace31347b44c4e8bdc36c | [
"MIT"
] | 279 | 2015-01-01T15:54:50.000Z | 2022-03-28T18:06:03.000Z | deps/floki/lib/floki/selector/parser.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 166 | 2015-04-24T20:48:02.000Z | 2022-03-28T17:29:05.000Z | defmodule Floki.Selector.Parser do
require Logger
@moduledoc false
# Parses a list of tokens returned from `Tokenizer` and transform into a `Selector`.
alias Floki.Selector
alias Selector.{Functional, Tokenizer, PseudoClass, AttributeSelector, Combinator}
@attr_match_types [
:equal,
:dash_match,... | 34.555133 | 97 | 0.708187 |
ffd0663c216e49a71d547e30df383354bb0f542f | 1,509 | exs | Elixir | mix.exs | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | mix.exs | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | mix.exs | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | defmodule Boilertalk.Mixfile do
use Mix.Project
def project do
[
app: :boilertalk,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
... | 25.576271 | 79 | 0.59112 |
ffd07d8d6c23389064f30f349fb88cbcb64738d1 | 1,943 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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... | 36.660377 | 187 | 0.723109 |
ffd0a4b872ea6ceda019a9f66e3d21431b3eec88 | 1,789 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authorization_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authorization_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authorization_config.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... | 37.270833 | 241 | 0.76076 |
ffd0d4f25aa6c97f68116d5badd7c5a7f043fb5f | 892 | ex | Elixir | clients/play_custom_app/lib/google_api/play_custom_app/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/play_custom_app/lib/google_api/play_custom_app/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/play_custom_app/lib/google_api/play_custom_app/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.037037 | 74 | 0.761211 |
ffd10b77ce6081df93d76aa215e3014a67a1c6a6 | 916 | ex | Elixir | test/support/apps/phx1_4/lib/phx1_4/application.ex | nhphuc412/torch | d2145b9fdb889517c0a36a5367f0b116ee7a6844 | [
"MIT"
] | 528 | 2019-09-13T15:10:36.000Z | 2022-03-31T10:28:27.000Z | test/support/apps/phx1_4/lib/phx1_4/application.ex | nhphuc412/torch | d2145b9fdb889517c0a36a5367f0b116ee7a6844 | [
"MIT"
] | 133 | 2019-09-13T17:46:59.000Z | 2022-03-01T13:37:10.000Z | test/support/apps/phx1_4/lib/phx1_4/application.ex | nhphuc412/torch | d2145b9fdb889517c0a36a5367f0b116ee7a6844 | [
"MIT"
] | 38 | 2019-10-29T20:37:13.000Z | 2022-03-03T05:19:33.000Z | defmodule Phx14.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
Phx14.Repo,
# ... | 28.625 | 64 | 0.709607 |
ffd10e51d935640da76cad64e0d5838ccc93c875 | 795 | ex | Elixir | lib/vocabulary/udhr/multigram.ex | kipcole9/text_corpus_udhr | 8fb948444ebfe6160572bd907617bd1a270e090c | [
"Apache-2.0"
] | 1 | 2020-07-08T11:19:03.000Z | 2020-07-08T11:19:03.000Z | lib/vocabulary/udhr/multigram.ex | kipcole9/text_corpus_udhr | 8fb948444ebfe6160572bd907617bd1a270e090c | [
"Apache-2.0"
] | null | null | null | lib/vocabulary/udhr/multigram.ex | kipcole9/text_corpus_udhr | 8fb948444ebfe6160572bd907617bd1a270e090c | [
"Apache-2.0"
] | 1 | 2020-07-03T17:40:00.000Z | 2020-07-03T17:40:00.000Z | defmodule Text.Vocabulary.Udhr.Multigram do
@moduledoc """
An n-gram vocabulary composed
of n-grams ranging from 2 to 4
characters in length
"""
@behaviour Text.Vocabulary
@app Mix.Project.config[:app]
alias Text.Vocabulary
@ngram_range 2..4
@impl Text.Vocabulary
def load_vocabulary! do
... | 18.928571 | 68 | 0.732075 |
ffd12bab88c2cb6b7455a195f71d018df4202176 | 210 | exs | Elixir | priv/repo/migrations/20180415220954_add_real_names_to_neighbors.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T15:46:49.000Z | 2021-01-13T15:46:49.000Z | priv/repo/migrations/20180415220954_add_real_names_to_neighbors.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T16:42:24.000Z | 2021-01-13T16:42:24.000Z | priv/repo/migrations/20180415220954_add_real_names_to_neighbors.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | null | null | null | defmodule Litelist.Repo.Migrations.AddRealNamesToNeighbors do
use Ecto.Migration
def change do
alter table(:neighbors) do
add :first_name, :string
add :last_name, :string
end
end
end
| 19.090909 | 61 | 0.714286 |
ffd15f3dead0aa1cee5d9a2354629b33cac0e4e1 | 797 | ex | Elixir | lib/mix/tasks/yacto.gen.migration.ex | fossabot/yacto | 07ed65ebe2ab030dcc0abe468600d6b06e8696e9 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/yacto.gen.migration.ex | fossabot/yacto | 07ed65ebe2ab030dcc0abe468600d6b06e8696e9 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:05:53.000Z | 2019-03-06T20:05:54.000Z | lib/mix/tasks/yacto.gen.migration.ex | fossabot/yacto | 07ed65ebe2ab030dcc0abe468600d6b06e8696e9 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:03:49.000Z | 2019-03-06T20:03:49.000Z | defmodule Mix.Tasks.Yacto.Gen.Migration do
use Mix.Task
@shortdoc "Generate migration file"
@switches [version: :integer]
def run(args) do
Mix.Task.run("loadpaths", args)
Mix.Task.run("app.start", args)
case OptionParser.parse(args, switches: @switches) do
{opts, [], _} ->
app = Ke... | 27.482759 | 132 | 0.627353 |
ffd1892c2e14b77d4c588173085dbd14cd4369ad | 5,444 | exs | Elixir | apps/core/test/services/rollable/versions_test.exs | pluralsh/plural | d33d08dee6348126334810e044b3699ef3f74819 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/test/services/rollable/versions_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/test/services/rollable/versions_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Rollable.VersionsTest do
use Core.SchemaCase, async: true
alias Core.PubSub
alias Core.Services.Rollouts
describe "VersionCreated" do
test "it will execute a rollout for a version created event" do
%{chart: chart} = chart_version = insert(:version, version: "0.1.0")
auto_upgraded... | 34.675159 | 96 | 0.646032 |
ffd19ba1c1db409f9ddc5f3099a744ff4cb53092 | 6,271 | ex | Elixir | lib/wallaby/query/error_message.ex | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | null | null | null | lib/wallaby/query/error_message.ex | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | null | null | null | lib/wallaby/query/error_message.ex | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | null | null | null | defmodule Wallaby.Query.ErrorMessage do
@moduledoc false
alias Wallaby.Query
@doc """
Compose an error message based on the error method and query information
"""
@spec message(Query.t, any()) :: String.t
def message(%Query{} = query, :not_found) do
"Expected to find #{found_error_message(query)}"
... | 31.199005 | 236 | 0.659066 |
ffd1a0cc18959d9d950881a1c97ee8ab88fb6b9d | 551 | ex | Elixir | core/ets/ets.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/ets/ets.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/ets/ets.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Ets do
defun init_all() :: :ok do
AntikytheraCore.Ets.SystemCache.init()
AntikytheraCore.Ets.ConfigCache.init()
AntikytheraCore.Ets.GearActionRunnerPools.init()
AntikytheraCore.Ets.TenantToGearsMapping... | 29 | 88 | 0.735027 |
ffd1bcbace48a7ec7e0a2dc118ec9bfc8e6b70ce | 23,925 | ex | Elixir | deps/ecto/lib/ecto/adapters/mysql/connection.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/mysql/connection.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/mysql/connection.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Mariaex.Connection) do
defmodule Ecto.Adapters.MySQL.Connection do
@moduledoc false
@default_port 3306
@behaviour Ecto.Adapters.SQL.Connection
## Connection
def connect(opts) do
opts = Keyword.update(opts, :port, @default_port, &normalize_port/1)
Mariaex.Conn... | 33 | 158 | 0.594316 |
ffd1e3567572dd2b2f635115830d2a219c7acb56 | 692 | ex | Elixir | lib/store_card_web/controllers/fallback_controller.ex | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | lib/store_card_web/controllers/fallback_controller.ex | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | lib/store_card_web/controllers/fallback_controller.ex | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | defmodule StoreCardWeb.FallbackController do
use Phoenix.Controller
alias StoreCardWeb.Router.Helpers, as: Routes
def call(conn, {:error, :not_found}) do
conn
|> put_status(:not_found)
|> put_view(StoreCardWeb.ErrorView)
|> render(:"404")
end
def call(conn, {:error, :unauthorized}) do
co... | 21.625 | 71 | 0.648844 |
ffd1e998fca1a4a2aa411dd3a60fa4ca7c37851c | 3,999 | ex | Elixir | lib/brady.ex | dbernazal/brady | bd8165dc775ca57b9ad38f46a49b215e3d0c4369 | [
"MIT"
] | null | null | null | lib/brady.ex | dbernazal/brady | bd8165dc775ca57b9ad38f46a49b215e3d0c4369 | [
"MIT"
] | 1 | 2021-02-24T08:26:38.000Z | 2021-02-24T08:26:38.000Z | lib/brady.ex | isabella232/brady | 7e5e1a8a3d6cbcff90191410ae00f1f7211308b9 | [
"MIT"
] | null | null | null | defmodule Brady do
alias Phoenix.Controller
require Logger
@doc """
Returns the controller name and controller-action name as a lowercase,
dasherized string.
For example, when the `conn` came from CoolWidgetsController#show:
Brady.body_class(conn) => 'cool-widgets cool-widgets-show'"
"""
@spec... | 28.769784 | 208 | 0.653163 |
ffd21136ace31179d02cc3646a60eeee74e7f275 | 11,328 | ex | Elixir | lib/mix/lib/releases/errors.ex | PhillippOhlandt/distillery | fa6777fdc0c61aa8fcad54ffaabbb6829dd4fb38 | [
"MIT"
] | null | null | null | lib/mix/lib/releases/errors.ex | PhillippOhlandt/distillery | fa6777fdc0c61aa8fcad54ffaabbb6829dd4fb38 | [
"MIT"
] | null | null | null | lib/mix/lib/releases/errors.ex | PhillippOhlandt/distillery | fa6777fdc0c61aa8fcad54ffaabbb6829dd4fb38 | [
"MIT"
] | null | null | null | defmodule Mix.Releases.Errors do
@moduledoc false
@doc """
Formats a list of errors into a human-friendly message.
This expects a list of `{:error, _}` tuples, and will convert them
to a single String at the end.
"""
@spec format_errors(list(term())) :: String.t()
def format_errors([err]), do: format_e... | 38.927835 | 106 | 0.65828 |
ffd235f0e3cec199166db53ba79ed984dac8d851 | 63 | exs | Elixir | test/test_helper.exs | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | 15 | 2016-10-03T18:03:29.000Z | 2021-11-26T14:36:14.000Z | test/test_helper.exs | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | 7 | 2016-11-03T21:51:13.000Z | 2021-12-07T14:45:37.000Z | test/test_helper.exs | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | 5 | 2016-11-03T21:20:27.000Z | 2021-11-18T13:37:52.000Z | Mailroom.TestServer.Application.start(nil, nil)
ExUnit.start()
| 21 | 47 | 0.809524 |
ffd257879f67c2d4f70bf36f9daaf8d26b01ed18 | 24,486 | ex | Elixir | lib/cadet/assessments/assessments.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet/assessments/assessments.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet/assessments/assessments.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | defmodule Cadet.Assessments do
@moduledoc """
Assessments context contains domain logic for assessments management such as
missions, sidequests, paths, etc.
"""
use Cadet, [:context, :display]
import Ecto.Query
alias Cadet.Accounts.User
alias Cadet.Assessments.{Answer, Assessment, Query, Question, Sub... | 31.554124 | 102 | 0.595851 |
ffd25e289b3120aff9c71289493009b6db7d0741 | 1,167 | ex | Elixir | apps/my_app_web/lib/my_app_web/channels/user_socket.ex | robmckinnon/phoenix-umbrella-with-node-js-example | 48cce2d9d9fc4564bc5983840c66d09c6594462d | [
"MIT"
] | null | null | null | apps/my_app_web/lib/my_app_web/channels/user_socket.ex | robmckinnon/phoenix-umbrella-with-node-js-example | 48cce2d9d9fc4564bc5983840c66d09c6594462d | [
"MIT"
] | null | null | null | apps/my_app_web/lib/my_app_web/channels/user_socket.ex | robmckinnon/phoenix-umbrella-with-node-js-example | 48cce2d9d9fc4564bc5983840c66d09c6594462d | [
"MIT"
] | null | null | null | defmodule MyAppWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", MyAppWeb.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 authe... | 30.710526 | 83 | 0.701799 |
ffd2665294cd17e002fcdc3cc3ffeb0272fba66a | 918 | ex | Elixir | robotica_common/lib/eventbus.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_common/lib/eventbus.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_common/lib/eventbus.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaCommon.EventBus do
@moduledoc """
Defines helper functions from EventBus
"""
alias EventBus.Model.Event
alias EventBus.Util.Base62
alias EventBus.Util.MonotonicTime
defmacro __using__(_) do
quote do
require RoboticaCommon.EventBus
@eb_source String.replace("#{__MODULE__... | 22.95 | 91 | 0.669935 |
ffd26d5b30370c4def32a6af8cf73ef4e07b7022 | 13,418 | ex | Elixir | lib/mix/tasks/dialyzer.ex | gabrielpra1/dialyxir | b3fb59c566fce5dd2975a5abf01556b29bf53a38 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/dialyzer.ex | gabrielpra1/dialyxir | b3fb59c566fce5dd2975a5abf01556b29bf53a38 | [
"Apache-2.0"
] | 2 | 2019-11-19T15:45:11.000Z | 2019-11-21T22:38:34.000Z | lib/mix/tasks/dialyzer.ex | kenny-evitt/dialyxir | 62310a9cbcbb88a9ec08061d93946bf0f096bbbc | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Dialyzer do
@shortdoc "Runs dialyzer with default or project-defined flags."
@moduledoc """
This task compiles the mix project, creates a PLT with dependencies if needed and runs `dialyzer`. Much of its behavior can be managed in configuration as described below.
If executed outside of a m... | 34.582474 | 659 | 0.654047 |
ffd288c9e7f5777a30621ffc8d510587378a3fb6 | 1,133 | ex | Elixir | api/lib/designhubapi_web/controllers/user_controller.ex | rchatrath7/designhubapi | c38dafd3ba3a2b86ec3a12e71cbf95a5d366134d | [
"MIT"
] | null | null | null | api/lib/designhubapi_web/controllers/user_controller.ex | rchatrath7/designhubapi | c38dafd3ba3a2b86ec3a12e71cbf95a5d366134d | [
"MIT"
] | null | null | null | api/lib/designhubapi_web/controllers/user_controller.ex | rchatrath7/designhubapi | c38dafd3ba3a2b86ec3a12e71cbf95a5d366134d | [
"MIT"
] | null | null | null | defmodule DesignhubapiWeb.UserController do
use DesignhubapiWeb, :controller
alias Designhubapi.Accounts
alias Designhubapi.Accounts.User
action_fallback DesignhubapiWeb.FallbackController
def index(conn, _params) do
users = Accounts.list_users()
render(conn, "index.json", users: users)
end
de... | 26.348837 | 76 | 0.643425 |
ffd28928911f6e598fbdfc2f003a9649f362961b | 2,402 | exs | Elixir | apps/alert_processor/mix.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/mix.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/mix.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule AlertProcessor.Mixfile do
use Mix.Project
def project do
[
app: :alert_processor,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
elixirc_paths:... | 30.405063 | 80 | 0.534555 |
ffd2914e360dc4b8d94a2b1afa32af9b73e56975 | 2,706 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_process_request.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_process_request.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_process_request.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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... | 38.112676 | 223 | 0.757206 |
ffd2b672aecdb40a526128c435ad65c12e604edb | 12,241 | ex | Elixir | lib/sourceror/range.ex | kianmeng/sourceror | 4d67ce5b3e795032a4df85266db1cb216841fc20 | [
"Apache-2.0"
] | null | null | null | lib/sourceror/range.ex | kianmeng/sourceror | 4d67ce5b3e795032a4df85266db1cb216841fc20 | [
"Apache-2.0"
] | null | null | null | lib/sourceror/range.ex | kianmeng/sourceror | 4d67ce5b3e795032a4df85266db1cb216841fc20 | [
"Apache-2.0"
] | null | null | null | defmodule Sourceror.Range do
@moduledoc false
import Sourceror.Identifier, only: [is_unary_op: 1, is_binary_op: 1]
defp split_on_newline(string) do
String.split(string, ~r/\n|\r\n|\r/)
end
def get_range(quoted, _opts \\ []) do
range = do_get_range(quoted)
comments =
case quoted do
... | 28.075688 | 96 | 0.610816 |
ffd2f7132bcf31fa82a0f12418181c9ef478804a | 255 | ex | Elixir | apps/cashtrail/test/support/factory.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 6 | 2020-05-02T01:12:24.000Z | 2020-06-23T12:31:32.000Z | apps/cashtrail/test/support/factory.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 16 | 2020-05-02T00:07:51.000Z | 2021-06-11T01:54:11.000Z | apps/cashtrail/test/support/factory.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | null | null | null | defmodule Cashtrail.Factory do
@moduledoc false
use ExMachina.Ecto, repo: Cashtrail.Repo
use Cashtrail.Factory.EntitiesFactory
use Cashtrail.Factory.BankingFactory
use Cashtrail.Factory.ContactsFactory
use Cashtrail.Factory.UsersFactory
end
| 23.181818 | 42 | 0.819608 |
ffd34c0f5592dbdd906a2a0ff68a587af5093259 | 2,914 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/google_cloud_servicenetworking_v1beta_connection.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/google_cloud_servicenetworking_v1beta_connection.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/google_cloud_servicenetworking_v1beta_connection.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... | 47.770492 | 389 | 0.742279 |
ffd37e9cbd20f2c6c42d99dfda5a996200b69f51 | 1,691 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_https_proxies_set_ssl_certificates_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_https_proxies_set_ssl_certificates_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_https_proxies_set_ssl_certificates_request.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... | 33.82 | 205 | 0.767002 |
ffd3930305bd776130160c923b7bf64b90910161 | 82 | exs | Elixir | phoenix_crud/test/views/page_view_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_crud/test/views/page_view_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_crud/test/views/page_view_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule PhoenixCrud.PageViewTest do
use PhoenixCrud.ConnCase, async: true
end
| 20.5 | 39 | 0.829268 |
ffd3ae3857220dd4d5b3f68c22378935c1872a00 | 3,192 | exs | Elixir | test/api/worker_definitions_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | test/api/worker_definitions_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | test/api/worker_definitions_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.Api.WorkerDefinitionsTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
alias StepFlow.Router
alias StepFlow.WorkerDefinitions.WorkerDefinition
doctest StepFlow
@opts Router.init([])
setup do
# Explicitly get a connection before each test
:ok = Sandbox.ch... | 24 | 72 | 0.558584 |
ffd3bf9c3e095503130956fd10da170466beb3aa | 655 | ex | Elixir | lib/day_05.ex | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | 1 | 2020-12-19T18:40:00.000Z | 2020-12-19T18:40:00.000Z | lib/day_05.ex | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | lib/day_05.ex | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | defmodule Day05 do
def part1(path) do
path
|> parse()
|> Enum.max()
end
def part2(path) do
uids = MapSet.new(parse(path))
{min, max} = Enum.min_max(uids)
[seat_id] = MapSet.difference(MapSet.new(min..max), uids) |> Enum.to_list()
# |> Enum.filter(fn e -> MapSet.member?(uids, e+1) an... | 18.714286 | 89 | 0.555725 |
ffd3d17b8c636faac206642eb1e009e0ccc3679f | 59 | ex | Elixir | lib/turret_web/views/page_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 1 | 2021-02-03T23:34:04.000Z | 2021-02-03T23:34:04.000Z | lib/turret_web/views/page_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 58 | 2021-02-16T10:16:08.000Z | 2022-03-07T10:57:32.000Z | lib/turret_web/views/page_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | null | null | null | defmodule TurretWeb.PageView do
use TurretWeb, :view
end
| 14.75 | 31 | 0.79661 |
ffd3d3286e8d2eb8b6fa0807c422ff42559b2638 | 1,487 | ex | Elixir | web/controllers/user_controller.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | 3 | 2015-08-24T11:44:19.000Z | 2016-10-01T21:37:05.000Z | web/controllers/user_controller.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | web/controllers/user_controller.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | defmodule Storm.UserController do
use Storm.Web, :controller
alias Storm.User
plug :scrub_params, "user" when action in [:create, :update]
plug :authenticate! when action in [:update]
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.json", users: users)
end
def create(con... | 26.553571 | 74 | 0.616005 |
ffd3e05a6abd708b38e05aef42239caa30729ee3 | 4,146 | ex | Elixir | lib/mix/tasks/ggity_visual_geom_line.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 47 | 2020-06-21T15:23:54.000Z | 2022-03-13T01:24:19.000Z | lib/mix/tasks/ggity_visual_geom_line.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 3 | 2020-11-28T11:00:59.000Z | 2020-11-30T18:20:37.000Z | lib/mix/tasks/ggity_visual_geom_line.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 2 | 2020-11-28T10:40:10.000Z | 2021-05-28T06:44:47.000Z | defmodule Mix.Tasks.Ggity.Visual.Geom.Line do
@shortdoc "Launch a browser and draw sample line geom plots."
@moduledoc @shortdoc
use Mix.Task
alias GGity.{Examples, Plot}
@default_browser "firefox"
@doc false
@spec run(list(any)) :: any
def run([]), do: run([@default_browser])
def run(argv) do
... | 31.409091 | 88 | 0.58273 |
ffd40b3be61cd4075ff855c616c5a4fb8e23fc85 | 152 | ex | Elixir | web/controllers/page_controller.ex | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | defmodule ScratchPhoenix.PageController do
use ScratchPhoenix.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 19 | 42 | 0.756579 |
ffd427c58d5cea9d1020695bdd92a0f2941e41f1 | 171 | ex | Elixir | lib/phoenix_react_playground_web/controllers/page_controller.ex | chaiwa-berian/phoenix_react_playground | 6c0394c05439378af46256de2f303d002c2c8b92 | [
"Unlicense"
] | 88 | 2017-09-01T03:13:00.000Z | 2021-06-26T10:56:29.000Z | lib/phoenix_react_playground_web/controllers/page_controller.ex | chaiwa-berian/phoenix_react_playground | 6c0394c05439378af46256de2f303d002c2c8b92 | [
"Unlicense"
] | 4 | 2020-07-17T07:52:09.000Z | 2021-09-01T06:46:54.000Z | lib/phoenix_react_playground_web/controllers/page_controller.ex | chaiwa-berian/phoenix_react_playground | 6c0394c05439378af46256de2f303d002c2c8b92 | [
"Unlicense"
] | 21 | 2017-09-01T03:18:09.000Z | 2021-09-23T09:07:41.000Z | defmodule PhoenixReactPlaygroundWeb.PageController do
use PhoenixReactPlaygroundWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 21.375 | 53 | 0.783626 |
ffd434c0f2169716c123ddc9978f2aa2ede03f0d | 2,984 | exs | Elixir | config/target.exs | zacky1972/simd_sample | 3f50e698ae3c577e751ee7a5513086b7df7fca49 | [
"Apache-2.0"
] | 1 | 2021-09-03T07:56:54.000Z | 2021-09-03T07:56:54.000Z | config/target.exs | zacky1972/simd_sample | 3f50e698ae3c577e751ee7a5513086b7df7fca49 | [
"Apache-2.0"
] | null | null | null | config/target.exs | zacky1972/simd_sample | 3f50e698ae3c577e751ee7a5513086b7df7fca49 | [
"Apache-2.0"
] | null | null | null | import Config
# Use shoehorn to start the main application. See the shoehorn
# docs for separating out critical OTP applications such as those
# involved with firmware updates.
config :shoehorn,
init: [:nerves_runtime, :nerves_pack],
app: Mix.Project.config()[:app]
# Nerves Runtime can enumerate hardware devices... | 29.254902 | 81 | 0.68063 |
ffd470a585a0b26a45e6abf2bda0a33c429299b1 | 1,974 | ex | Elixir | clients/chrome_ux_report/lib/google_api/chrome_ux_report/v1/model/url_normalization.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chrome_ux_report/lib/google_api/chrome_ux_report/v1/model/url_normalization.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chrome_ux_report/lib/google_api/chrome_ux_report/v1/model/url_normalization.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... | 39.48 | 295 | 0.747214 |
ffd47496d6d0bc8f9a4c7d7a2143207f29cee184 | 1,341 | ex | Elixir | lib/twitch/auth.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/twitch/auth.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/twitch/auth.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnector.Twitch.Auth do
@moduledoc """
Twitch helpers to manage get auth headers based on store secrets.
"""
# http -v POST https://id.twitch.tv/oauth2/token
# client_id=... client_secret=... grant_type=client_credentials scope=''
alias TwitchDiscordConnector.JsonDB.TwitchApiDB
a... | 24.381818 | 89 | 0.62267 |
ffd48446fad3f77c3b382c7a40b69b719d435ff1 | 3,090 | exs | Elixir | test/custom_functions_test.exs | scohen/instruments | 6162bd3280795b544d052fce871acd9975aee542 | [
"MIT"
] | 167 | 2017-11-09T08:25:21.000Z | 2020-03-05T12:26:20.000Z | test/custom_functions_test.exs | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 7 | 2020-05-13T15:16:08.000Z | 2022-03-03T01:39:56.000Z | test/custom_functions_test.exs | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 16 | 2017-11-10T10:35:37.000Z | 2020-02-25T09:54:53.000Z | defmodule Instruments.CustomFunctionsTest do
use ExUnit.Case
alias Instruments.CustomFunctions
import MetricsAssertions
use Instruments
setup do
{:ok, _fake_statsd} = FakeStatsd.start_link(self())
:ok
end
defmodule Custom do
use CustomFunctions, prefix: "custom"
end
describe "adding a ... | 31.85567 | 94 | 0.657282 |
ffd4aa66e516ace391b13f8b448fa6bd2028fca9 | 1,367 | ex | Elixir | lib/podium/api.ex | backdoer/podium_ex | eb790c0f67f8c9765b11fc174beee63c0816ea1c | [
"MIT"
] | null | null | null | lib/podium/api.ex | backdoer/podium_ex | eb790c0f67f8c9765b11fc174beee63c0816ea1c | [
"MIT"
] | null | null | null | lib/podium/api.ex | backdoer/podium_ex | eb790c0f67f8c9765b11fc174beee63c0816ea1c | [
"MIT"
] | null | null | null | defmodule Podium.API do
@moduledoc """
Provides a basic HTTP interface to allow easy communication with the Podium
API, by wrapping `HTTPoison`.
"""
@default_base_url "https://api.podium.com/api/v2"
use HTTPoison.Base
@impl HTTPoison.Base
def process_url(path) do
base_url() <> path
end
@... | 26.803922 | 82 | 0.692758 |
ffd4ab3d16560fe805db1491d55b430a40565d45 | 1,138 | exs | Elixir | test/react_render_test.exs | luisgserrano/elixir_react_render | 4c2e7937b4b1a068b089bec2dfb6c19f09bc1281 | [
"MIT"
] | null | null | null | test/react_render_test.exs | luisgserrano/elixir_react_render | 4c2e7937b4b1a068b089bec2dfb6c19f09bc1281 | [
"MIT"
] | 3 | 2019-11-25T05:00:52.000Z | 2020-01-31T04:54:39.000Z | test/react_render_test.exs | luisgserrano/elixir_react_render | 4c2e7937b4b1a068b089bec2dfb6c19f09bc1281 | [
"MIT"
] | null | null | null | defmodule ReactRender.Test do
use ExUnit.Case
doctest ReactRender
setup_all do
apply(ReactRender, :start_link, [[render_service_path: "./priv/server.js"]])
:ok
end
describe "get_html" do
test "returns html" do
{:ok, html} = ReactRender.get_html("./HelloWorld.js", %{name: "test"})
ass... | 28.45 | 87 | 0.629174 |
ffd4aea4b3c42fd9117b1f5788febcb33fab8feb | 1,208 | exs | Elixir | config/dev.exs | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 3 | 2018-07-14T22:55:23.000Z | 2019-02-25T06:11:55.000Z | config/dev.exs | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 7 | 2020-02-12T03:22:59.000Z | 2022-02-10T20:23:52.000Z | config/dev.exs | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 12 | 2018-03-27T05:27:20.000Z | 2019-04-02T08:19:04.000Z | use Mix.Config
config :bs, snake_api: Bs.Api
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :bs, BsWeb.Endpoi... | 27.454545 | 68 | 0.663907 |
ffd4ba1955938286cc0c00edbcddd9480121600c | 567 | exs | Elixir | mix.exs | xerions/exradius | d6166faeb3d18eed4bbb43fa70f3ae2326b3816c | [
"Apache-2.0"
] | 8 | 2016-01-22T11:33:59.000Z | 2018-02-21T07:49:03.000Z | mix.exs | xerions/exradius | d6166faeb3d18eed4bbb43fa70f3ae2326b3816c | [
"Apache-2.0"
] | 2 | 2016-06-24T10:52:28.000Z | 2019-02-25T07:28:09.000Z | mix.exs | xerions/exradius | d6166faeb3d18eed4bbb43fa70f3ae2326b3816c | [
"Apache-2.0"
] | 7 | 2016-01-22T11:35:44.000Z | 2021-05-07T11:11:15.000Z | defmodule Exradius.Mixfile do
use Mix.Project
def project do
[ app: :exradius,
version: "0.0.1",
deps: deps(Mix.env),
xref: [exclude: [:meck]]]
end
# Configuration for the OTP application
def application do
[]
end
# Returns the list of dependencies in the format:
# { :foobar... | 21.807692 | 77 | 0.610229 |
ffd4c97c87641d4a76449efa68c5a90d8d342cc8 | 1,280 | ex | Elixir | lib/sprint_poker/operations/game_operations.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 199 | 2015-10-22T16:20:09.000Z | 2021-11-08T11:20:45.000Z | lib/sprint_poker/operations/game_operations.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 4 | 2015-10-24T20:43:29.000Z | 2016-03-03T21:09:06.000Z | lib/sprint_poker/operations/game_operations.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 34 | 2015-10-23T06:38:43.000Z | 2019-08-13T23:49:24.000Z | defmodule SprintPoker.GameOperations do
@moduledoc """
Game related operations
"""
import Ecto.Query, only: [from: 2]
alias SprintPoker.Repo
alias SprintPoker.Repo.Game
alias SprintPoker.Repo.Deck
alias SprintPoker.Repo.User
alias SprintPoker.Repo.Ticket
alias SprintPoker.StateOperations
alias E... | 20.645161 | 55 | 0.597656 |
ffd4ccf60da880a76b769728199e06a6196534bb | 1,735 | ex | Elixir | lib/client/analytics.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | 1 | 2021-12-21T14:22:12.000Z | 2021-12-21T14:22:12.000Z | lib/client/analytics.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | lib/client/analytics.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | defmodule PlayfabEx.Client.Analytics do
use Interface
@doc """
Write a PlayStream event to describe the provided player device information. This API method is not designed to be called directly by developers. Each PlayFab client SDK will eventually report this information automatically.
[online docs](https://... | 44.487179 | 226 | 0.748127 |
ffd4d282542420d871ae7620f2474bc89c357fdf | 1,451 | ex | Elixir | lib/absinthe/language/operation_definition.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/language/operation_definition.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/language/operation_definition.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Language.OperationDefinition do
@moduledoc false
alias Absinthe.{Blueprint, Language}
defstruct operation: nil,
name: nil,
variable_definitions: [],
directives: [],
selection_set: nil,
loc: %{start_line: nil}
@type t :: %__MODULE_... | 29.02 | 86 | 0.646451 |
ffd547c9a82f0053638db4d3a9349835d3b48d8a | 1,446 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_verify_draft_token_payload.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_verify_draft_token_payload.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_verify_draft_token_payload.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... | 30.765957 | 100 | 0.751729 |
ffd5cf94abef3d79a6496104d6575ab0cffd0cdb | 1,125 | ex | Elixir | lib/taut/application.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut/application.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut/application.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | defmodule Taut.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Taut.Repo,
# Start the Telemetry supervisor
TautWeb.Telem... | 30.405405 | 75 | 0.695111 |
ffd5e07b84b9a38c393fdcffafd6eb3ffa3a8a0b | 409 | exs | Elixir | test/vix/vips/blob_test.exs | akash-akya/vix | 72c1cc28315aa9913e90565ba2d96f7b0620fb8e | [
"MIT"
] | 40 | 2020-11-28T18:57:41.000Z | 2022-03-30T22:31:10.000Z | test/vix/vips/blob_test.exs | akash-akya/vix | 72c1cc28315aa9913e90565ba2d96f7b0620fb8e | [
"MIT"
] | 17 | 2021-04-24T16:34:46.000Z | 2022-03-31T13:38:04.000Z | test/vix/vips/blob_test.exs | akash-akya/vix | 72c1cc28315aa9913e90565ba2d96f7b0620fb8e | [
"MIT"
] | 3 | 2021-04-26T15:16:27.000Z | 2022-03-08T01:00:30.000Z | defmodule Vix.Vips.BlobTest do
use ExUnit.Case
alias Vix.Vips.Blob
test "to_nif_term" do
blob = Blob.to_nif_term(<<1, 2, 3, 4>>, nil)
{:ok, gtype} = Vix.Nif.nif_g_type_from_instance(blob)
assert Vix.Nif.nif_g_type_name(gtype) == {:ok, "VipsBlob"}
end
test "to_erl_term" do
blob = Blob.to_nif... | 24.058824 | 62 | 0.640587 |
ffd62468de551936e089a36ab86371ae36d256e1 | 47,897 | exs | Elixir | test/nimble_options_test.exs | dashbitco/nimble_options | 8757703a24837135085e40181e3d14a50fe5c721 | [
"Apache-2.0"
] | 293 | 2020-04-03T15:58:27.000Z | 2022-03-29T10:29:32.000Z | test/nimble_options_test.exs | dashbitco/nimble_options | 8757703a24837135085e40181e3d14a50fe5c721 | [
"Apache-2.0"
] | 60 | 2020-04-04T15:46:00.000Z | 2022-02-09T14:09:59.000Z | test/nimble_options_test.exs | dashbitco/nimble_options | 8757703a24837135085e40181e3d14a50fe5c721 | [
"Apache-2.0"
] | 23 | 2020-04-04T15:43:10.000Z | 2022-02-09T13:03:38.000Z | defmodule NimbleOptionsTest do
use ExUnit.Case, async: true
doctest NimbleOptions
import ExUnit.CaptureIO
alias NimbleOptions.ValidationError
describe "validate keys" do
test "known options without types" do
schema = [name: [], context: []]
opts = [name: MyProducer, context: :ok]
as... | 28.612306 | 120 | 0.512704 |
ffd6b3c8088c9c7b24b50f41f10603c47452eba5 | 139 | ex | Elixir | bench/support/sample_worker.ex | zeam-vm/worker_pool_bench | 88941613c88407dd7c1d78f09953bec600381a62 | [
"Apache-2.0"
] | null | null | null | bench/support/sample_worker.ex | zeam-vm/worker_pool_bench | 88941613c88407dd7c1d78f09953bec600381a62 | [
"Apache-2.0"
] | null | null | null | bench/support/sample_worker.ex | zeam-vm/worker_pool_bench | 88941613c88407dd7c1d78f09953bec600381a62 | [
"Apache-2.0"
] | null | null | null | defmodule SampleWorker do
use WorkerPool.Worker
@impl true
def work({pid, list}), do: send(pid, {:ok, Enum.map(list, & &1 * 2)})
end
| 23.166667 | 71 | 0.654676 |
ffd6c613c2c586af47688bb035c6ebc5e3873c15 | 3,020 | ex | Elixir | lib/wechat/web.ex | zhuoyue95/wechat-elixir-sdk | 64d087967c1e9210c8a2dbb12a6ed9364934b166 | [
"MIT"
] | null | null | null | lib/wechat/web.ex | zhuoyue95/wechat-elixir-sdk | 64d087967c1e9210c8a2dbb12a6ed9364934b166 | [
"MIT"
] | null | null | null | lib/wechat/web.ex | zhuoyue95/wechat-elixir-sdk | 64d087967c1e9210c8a2dbb12a6ed9364934b166 | [
"MIT"
] | null | null | null | defmodule Wechat.Web do
use Tesla
plug(Tesla.Middleware.BaseUrl, "https://api.weixin.qq.com/sns")
plug(Tesla.Middleware.JSON)
plug(Wechat.Tesla.Middleware.ForceDecodeJSON)
@app_id Application.get_env(:wechat, :app_id)
@app_secret Application.get_env(:wechat, :app_secret)
@spec authorise_with(String.t()... | 27.454545 | 99 | 0.579801 |
ffd6c82ada6c53d927fd58061a4c2099f045bf11 | 421 | ex | Elixir | lib/hologram/compiler/js_encoders/list_subtraction_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/js_encoders/list_subtraction_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/js_encoders/list_subtraction_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Compiler.{Context, JSEncoder, Opts}
alias Hologram.Compiler.IR.ListSubtractionOperator
defimpl JSEncoder, for: ListSubtractionOperator do
def encode(%{left: left, right: right}, %Context{} = context, %Opts{} = opts) do
left = JSEncoder.encode(left, context, opts)
right = JSEncoder.encode(right... | 35.083333 | 82 | 0.738717 |
ffd6cd28ae60b6fa55929902066458dd6f752455 | 414 | exs | Elixir | ch15/spawn3.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch15/spawn3.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch15/spawn3.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | defmodule Spawn3 do
def greet do
receive do
{sender, msg} ->
send sender, {:ok, "Hello, #{msg}"}
end
end
end
# here's a client
pid = spawn(Spawn3, :greet, [])
send pid, {self(), "World!"}
receive do
{:ok, message} ->
IO.puts message
end
send pid, {self(), "Kermit!"}
receive do
{:ok... | 15.333333 | 43 | 0.584541 |
ffd6d61d4f16b737089fea7dde02fd370cf4f1c0 | 505 | exs | Elixir | lib/iex/mix.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/iex/mix.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/iex/mix.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Mixfile do
use Mix.Project
def project do
[app: :iex, version: System.version]
end
def application do
[ env: [
after_spawn: [],
inspect_opts: [limit: 50, raw: false, pretty: true],
colors: [ enabled: true,
eval_result: "yellow",
... | 22.954545 | 60 | 0.493069 |
ffd6f3485b73b3047ac7ef81f1e625b30cd6b521 | 249 | ex | Elixir | lib/reanix.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | 1 | 2018-05-13T19:28:48.000Z | 2018-05-13T19:28:48.000Z | lib/reanix.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | lib/reanix.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | defmodule Reanix do
@moduledoc """
Reanix 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 |
ffd6fe084f4cd90820543ef7553d2ff8fed169f8 | 2,288 | exs | Elixir | spec/assertions/refute_receive_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | spec/assertions/refute_receive_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | spec/assertions/refute_receive_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule RefuteReceiveSpec do
use ESpec, async: true
describe "ESpec.Assertions.RefuteReceive" do
context "Success" do
it "refutes recieve with no message" do
send(self(), :another_hello)
message = refute_receive :hello_refute_1
expect(message) |> to(eq "Have not received `:hello... | 33.15942 | 85 | 0.594406 |
ffd7158e576ea5f5142db5ee63a7a367ea97d81d | 397 | exs | Elixir | test/day_three_test.exs | bennyhat/advent-of-code-2018 | 3ea45cb0b1589ed4cd112a312d31835eb90b4da9 | [
"MIT"
] | null | null | null | test/day_three_test.exs | bennyhat/advent-of-code-2018 | 3ea45cb0b1589ed4cd112a312d31835eb90b4da9 | [
"MIT"
] | null | null | null | test/day_three_test.exs | bennyhat/advent-of-code-2018 | 3ea45cb0b1589ed4cd112a312d31835eb90b4da9 | [
"MIT"
] | null | null | null | defmodule Advent2018.DayThree.Test do
use ExUnit.Case
test "computes square inches of overlap" do
input = """
#1 @ 1,3: 4x4
#2 @ 3,1: 4x4
#3 @ 3,1: 4x4
#4 @ 5,5: 2x2
"""
assert Advent2018.DayThree.part_one(input) == 16
end
test "finds the common letters for the matching ids" do
... | 19.85 | 57 | 0.622166 |
ffd732afed07b576876e4c004d4f84c82cbb70d1 | 2,145 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volumeseriesinfo_volume_series.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/volumeseriesinfo_volume_series.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volumeseriesinfo_volume_series.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 ... | 38.303571 | 180 | 0.723077 |
ffd737c842ebbed559cd8cbe051c374f50a1c8b7 | 5,399 | exs | Elixir | test/glimesh/chat/parser_test.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | test/glimesh/chat/parser_test.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | test/glimesh/chat/parser_test.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Chat.ParserTest do
use Glimesh.DataCase
import Glimesh.EmotesFixtures
alias Glimesh.Chat.Parser
alias Glimesh.Chat.Token
# If you are making changes to the parser and you'd like to benchmark it
# {benchmark, :ok} =
# :timer.tc(fn ->
# Parser.parse(
# "https://... | 35.519737 | 274 | 0.549917 |
ffd7406314ff3686dc5d5889379b739bc677ef7e | 984 | ex | Elixir | server/test/support/channel_case.ex | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | server/test/support/channel_case.ex | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | 3 | 2016-04-18T18:09:21.000Z | 2016-04-25T07:29:59.000Z | server/test/support/channel_case.ex | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | defmodule TrelloBurndown.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it can... | 23.428571 | 67 | 0.706301 |
ffd778a03b86435b0159be93e9b5a8211f3cc5b3 | 940 | exs | Elixir | deps/buffer/mix.exs | rsnestor/iot_emulator | 6e1a1835801eb180bc97838461ea5a2f44a6a3c4 | [
"MIT"
] | null | null | null | deps/buffer/mix.exs | rsnestor/iot_emulator | 6e1a1835801eb180bc97838461ea5a2f44a6a3c4 | [
"MIT"
] | null | null | null | deps/buffer/mix.exs | rsnestor/iot_emulator | 6e1a1835801eb180bc97838461ea5a2f44a6a3c4 | [
"MIT"
] | null | null | null | defmodule Buffer.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.trim
def project do
[
app: :buffer,
version: @version,
elixir: "~> 1.5",
test_coverage: [tool: ExCoveralls],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
dep... | 24.736842 | 89 | 0.582979 |
ffd7845db2f17d378877ea790f2b6246be652db3 | 6,086 | ex | Elixir | lib/ex_unit/lib/ex_unit.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit do
@moduledoc """
Basic unit testing framework for Elixir.
## Example
A basic setup for ExUnit is shown below:
# File: assertion_test.exs
# 1) Start ExUnit.
ExUnit.start
# 2) Create a new test module (test case) and use `ExUnit.Case`.
defmodule AssertionTest d... | 27.789954 | 91 | 0.633257 |
ffd793cb6bbb8040a640294ffdf8014e2e06b910 | 3,435 | exs | Elixir | test/changelog_web/controllers/admin/metacast_controller_text.exs | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | test/changelog_web/controllers/admin/metacast_controller_text.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | test/changelog_web/controllers/admin/metacast_controller_text.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.Admin.MetacastControllerTest do
use ChangelogWeb.ConnCase
alias Changelog.Metacast
alias ChangelogWeb.Router.Helpers
@valid_attrs %{name: "Polyglot", filter_query: "except"}
@invalid_attrs %{name: ""}
defp valid_attrs(slug), do: Map.put(@valid_attrs, :slug, slug)
@tag :as_admin
... | 32.40566 | 95 | 0.677438 |
ffd7c28214034d993abe05298afdff6b4642cb42 | 2,605 | ex | Elixir | lib/mp_api/accounts/message.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api/accounts/message.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api/accounts/message.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | defmodule MpApi.Accounts.Message do
@moduledoc """
A module for sending messages, by email or phone, to the user.
This module provides functions to be used with the Phauxth authentication
library when confirming users or handling password resets. It uses
Bamboo, with the Mandrill adapter, to email users. For... | 30.647059 | 106 | 0.709021 |
ffd7cfc402a190b9a5d7e262a25523574202831b | 3,110 | exs | Elixir | config/runtime.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | config/runtime.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | config/runtime.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 36.162791 | 82 | 0.689389 |
ffd7d5c85bfd9280ca23f7b13a740798c495892b | 242 | exs | Elixir | priv/repo/migrations/20220411084543_add_resources_number_hosts_number_to_cluster_read_model.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | priv/repo/migrations/20220411084543_add_resources_number_hosts_number_to_cluster_read_model.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | priv/repo/migrations/20220411084543_add_resources_number_hosts_number_to_cluster_read_model.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Repo.Migrations.AddResourcesNumberHostsNumberToClusterReadModel do
use Ecto.Migration
def change do
alter table(:clusters) do
add :resources_number, :integer
add :hosts_number, :integer
end
end
end
| 22 | 83 | 0.752066 |
ffd7d69e2792beec42072f35ccb48978d746b0f7 | 64 | ex | Elixir | lib/skillset_web/views/skill_view.ex | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | lib/skillset_web/views/skill_view.ex | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | lib/skillset_web/views/skill_view.ex | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | defmodule SkillsetWeb.SkillView do
use SkillsetWeb, :view
end
| 16 | 34 | 0.8125 |
ffd7fd395ed1577b349772165fe01189099c0974 | 472 | exs | Elixir | test/absinthe/integration/execution/simple_query_returning_list_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/integration/execution/simple_query_returning_list_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/integration/execution/simple_query_returning_list_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Elixir.Absinthe.Integration.Execution.SimpleQueryReturningListTest do
use Absinthe.Case, async: true
@query """
query {
things {
id
name
}
}
"""
test "scenario #1" do
assert {:ok,
%{
data: %{
"things" => [%{"id" => "bar", "name" =... | 21.454545 | 98 | 0.489407 |
ffd7ff6b17a7099079ad40f08deb1622db20b92d | 815 | exs | Elixir | test/holidays/definitions/br_test.exs | assj/holidays | 158657e296179d858f173cff3656d3fcaf5c653d | [
"MIT"
] | 16 | 2016-01-11T16:18:38.000Z | 2022-02-24T09:41:05.000Z | test/holidays/definitions/br_test.exs | assj/holidays | 158657e296179d858f173cff3656d3fcaf5c653d | [
"MIT"
] | 9 | 2016-08-14T01:26:16.000Z | 2021-02-08T01:00:35.000Z | test/holidays/definitions/br_test.exs | assj/holidays | 158657e296179d858f173cff3656d3fcaf5c653d | [
"MIT"
] | 8 | 2017-06-08T09:23:46.000Z | 2021-08-17T19:03:05.000Z | defmodule Holidays.BrTest do
use ExUnit.Case
import Holidays.TestHelper
setup_all do
restart_application()
Holidays.Definitions.Br.init()
:ok
end
holiday_test "Confraternização Universal", {2018, 1, 1}, :br
holiday_test "Tiradentes", {2018, 4, 21}, :br
holiday_test "Dia do Trabalhador", {20... | 32.6 | 64 | 0.676074 |
ffd834c29b1afe4c58f537292316fc6cc2ea33d5 | 194 | ex | Elixir | apps/snitch_api/lib/snitch_api_web/views/wishlist_item_view.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_api/lib/snitch_api_web/views/wishlist_item_view.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_api/lib/snitch_api_web/views/wishlist_item_view.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule SnitchApiWeb.WishListItemView do
use SnitchApiWeb, :view
use JaSerializer.PhoenixView
has_one(
:variant,
serializer: SnitchApiWeb.VariantView,
include: true
)
end
| 17.636364 | 42 | 0.747423 |
ffd85124d283ea2984fc42070a1534f4a72b34a0 | 492 | ex | Elixir | api/lib/core/config.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/core/config.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/core/config.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | defmodule Api.Core.Config do
require Logger
def get key do
with {:ok, val} <- Application.fetch_env(:api, key) do
val
else
_ -> Logger.error "#{key} not set in config!"
nil
end
end
def get module, key do
with {:ok, val} <- Application.fetch_env(:api, module),
va... | 20.5 | 72 | 0.558943 |
ffd85a65c8865468d2de5905482afb84cadde07d | 7,845 | ex | Elixir | lib/codes/codes_s69.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s69.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s69.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_S69 do
alias IcdCode.ICDCode
def _S6980XA do
%ICDCode{full_code: "S6980XA",
category_code: "S69",
short_code: "80XA",
full_name: "Other specified injuries of unspecified wrist, hand and finger(s), initial encounter",
short_name: "Other speci... | 46.420118 | 114 | 0.659911 |
ffd85ac3ac99dfed7b132ed722addb6e7b31abd1 | 136 | ex | Elixir | test/support/test_repo.ex | sepow/ecto_identifier | 905c18d1221b525fcde1d5b1760692e76fd0bb1e | [
"Apache-2.0"
] | 15 | 2018-09-23T17:13:07.000Z | 2021-11-09T14:54:05.000Z | test/support/test_repo.ex | sepow/ecto_identifier | 905c18d1221b525fcde1d5b1760692e76fd0bb1e | [
"Apache-2.0"
] | 3 | 2021-05-17T16:01:18.000Z | 2021-06-13T20:29:18.000Z | test/support/test_repo.ex | sepow/ecto_identifier | 905c18d1221b525fcde1d5b1760692e76fd0bb1e | [
"Apache-2.0"
] | 5 | 2019-06-21T11:41:36.000Z | 2020-12-27T02:38:32.000Z | defmodule EctoIdentifier.TestRepo do
@moduledoc false
use Ecto.Repo, otp_app: :ecto_identifier, adapter: Ecto.Adapters.Postgres
end
| 27.2 | 75 | 0.808824 |
ffd86f4d8f037994253f1603ce474bf33521270c | 5,496 | ex | Elixir | lib/mix/ex_oauth2_provider/migration.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/mix/ex_oauth2_provider/migration.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/mix/ex_oauth2_provider/migration.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | defmodule Mix.ExOauth2Provider.Migration do
@moduledoc """
Utilities module for ecto migrations in mix tasks.
"""
alias Mix.Generator
@doc """
Creates a migration file for a repo.
"""
@spec create_migration_file(atom(), binary(), binary()) :: any()
def create_migration_file(repo, name, content) do
... | 26.941176 | 262 | 0.609534 |
ffd8704984e7817aa67e1098584f1daa7db2ec12 | 878 | exs | Elixir | test/lib/web/router_test.exs | mfeckie/phoenix_frontend_deploys | 86adf2a7a51ce6757e50dfbca74677a93a6950c2 | [
"MIT"
] | null | null | null | test/lib/web/router_test.exs | mfeckie/phoenix_frontend_deploys | 86adf2a7a51ce6757e50dfbca74677a93a6950c2 | [
"MIT"
] | null | null | null | test/lib/web/router_test.exs | mfeckie/phoenix_frontend_deploys | 86adf2a7a51ce6757e50dfbca74677a93a6950c2 | [
"MIT"
] | null | null | null | defmodule PhoenixFrontendDeploys.RouterTest do
use ExUnit.Case, async: true
use Plug.Test
@endpoint TestApp.Endpoint
test "Get frontend" do
index = conn(:get, "/frontends")
|> TestApp.Router.call([])
status = index.status
assert status == 200
end
test "Get revisions" do
revisions = c... | 26.606061 | 163 | 0.673121 |
ffd872f8e46b98bdb420740f26cd9884cd4f76fd | 4,576 | exs | Elixir | test/meeseeks/selector/xpath/expr/arithmetic_test.exs | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | test/meeseeks/selector/xpath/expr/arithmetic_test.exs | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | test/meeseeks/selector/xpath/expr/arithmetic_test.exs | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.XPath.Expr.ArithmeticTest do
use ExUnit.Case
alias Meeseeks.Document
alias Meeseeks.Selector.Combinator
alias Meeseeks.Selector.XPath.Expr
@document Meeseeks.parse(
{"book", [], [{"chapter", [], [{"page", [], ["1"]}, {"page", [], ["2"]}]}]},
:tuple_tre... | 24.340426 | 96 | 0.559659 |
ffd87bb4ac841c80c5c331b8e6db938ffddc0446 | 1,063 | ex | Elixir | test/support/conn_case.ex | CandN/eliscore-chat | a626077bf1c46b329c15f63db9a25521b43bd61b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | CandN/eliscore-chat | a626077bf1c46b329c15f63db9a25521b43bd61b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | CandN/eliscore-chat | a626077bf1c46b329c15f63db9a25521b43bd61b | [
"MIT"
] | null | null | null | defmodule EliscoreChatWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, i... | 27.25641 | 74 | 0.726246 |
ffd885144758f7a068260c2a80dee0c8e96315ea | 6,169 | exs | Elixir | test/operate/vm/extension/crypto_test.exs | operate-bsv/agent | 4f3d69b7eb33f3afe5c880c10e39485b18b27ec5 | [
"Apache-2.0"
] | 13 | 2019-02-14T05:27:03.000Z | 2019-08-14T03:35:52.000Z | test/operate/vm/extension/crypto_test.exs | operate-bsv/agent | 4f3d69b7eb33f3afe5c880c10e39485b18b27ec5 | [
"Apache-2.0"
] | 3 | 2019-11-28T11:38:39.000Z | 2021-12-15T01:23:09.000Z | test/operate/vm/extension/crypto_test.exs | operate-bsv/agent | 4f3d69b7eb33f3afe5c880c10e39485b18b27ec5 | [
"Apache-2.0"
] | 2 | 2019-12-16T10:46:51.000Z | 2020-10-10T11:23:46.000Z | defmodule Operate.VM.Extension.CryptoTest do
use ExUnit.Case
alias Operate.VM
doctest Operate.VM.Extension.Crypto
setup_all do
aes_key = BSV.Test.symetric_key
ecdsa_key = BSV.Test.ecdsa_key |> BSV.Crypto.ECDSA.PrivateKey.from_sequence
rsa_priv_key = BSV.Crypto.RSA.PrivateKey.from_sequence(BSV.Test.... | 36.502959 | 123 | 0.64581 |
ffd888b1a81c553cfee35b3369469cc124a58c32 | 1,801 | exs | Elixir | config/prod.exs | leifg/byzal | 64b688de4c597808ee82a8222e7c3fd7ce4c295b | [
"MIT"
] | null | null | null | config/prod.exs | leifg/byzal | 64b688de4c597808ee82a8222e7c3fd7ce4c295b | [
"MIT"
] | null | null | null | config/prod.exs | leifg/byzal | 64b688de4c597808ee82a8222e7c3fd7ce4c295b | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.596491 | 67 | 0.702943 |
ffd88ed40d00e60991323d9940c7fa6bb401c12c | 3,980 | ex | Elixir | priv/templates/coh.install/models/coherence/schemas.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | 2 | 2018-01-19T06:12:16.000Z | 2018-03-12T07:17:17.000Z | priv/templates/coh.install/models/coherence/schemas.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | priv/templates/coh.install/models/coherence/schemas.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | 1 | 2019-09-11T10:21:21.000Z | 2019-09-11T10:21:21.000Z | defmodule <%= base %>.Coherence.Schemas do
use Coherence.Config
import Ecto.Query
@user_schema Config.user_schema
@repo Config.repo
def list_user do
@repo.all @user_schema
end
def list_by_user(opts) do
@repo.all query_by(@user_schema, opts)
end
def get_by_user(opts) do
@repo.g... | 22.359551 | 73 | 0.648995 |
ffd89e4eadea0c8e9735606d77570e32cfa10546 | 2,789 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_delta_presence_estimation_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_delta_presence_estimation_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_delta_presence_estimation_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.483333 | 289 | 0.752241 |
ffd8c6a19b3716421eab861e8ddb8940b37dd832 | 177 | exs | Elixir | priv/repo/migrations/20210916131754_disallow_null_shorts.exs | isakal/trimmr.ex | 72b94b399cc0d700f40a1fd2bc7528ae4cd4a81d | [
"MIT"
] | null | null | null | priv/repo/migrations/20210916131754_disallow_null_shorts.exs | isakal/trimmr.ex | 72b94b399cc0d700f40a1fd2bc7528ae4cd4a81d | [
"MIT"
] | null | null | null | priv/repo/migrations/20210916131754_disallow_null_shorts.exs | isakal/trimmr.ex | 72b94b399cc0d700f40a1fd2bc7528ae4cd4a81d | [
"MIT"
] | null | null | null | defmodule Trimmr.Repo.Migrations.DisallowNullShorts do
use Ecto.Migration
def change do
alter table(:urls) do
modify :short, :string, null: false
end
end
end
| 17.7 | 54 | 0.717514 |
ffd8f2afcd01f930c4d5ee672b96fecb3542e51f | 2,484 | ex | Elixir | lib/codes/codes_q42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Q42 do
alias IcdCode.ICDCode
def _Q420 do
%ICDCode{full_code: "Q420",
category_code: "Q42",
short_code: "0",
full_name: "Congenital absence, atresia and stenosis of rectum with fistula",
short_name: "Congenital absence, atresia and stenosis ... | 40.721311 | 104 | 0.663849 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.