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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abd55af264fde231769b99148483b7c88a9a9b75 | 120 | ex | Elixir | web/asset.ex | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 1 | 2018-04-26T08:40:13.000Z | 2018-04-26T08:40:13.000Z | web/asset.ex | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 14 | 2018-04-02T09:12:03.000Z | 2019-10-08T04:43:39.000Z | web/asset.ex | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 2 | 2018-04-26T05:50:06.000Z | 2021-09-01T18:48:43.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
defmodule Testgear.Asset do
use Antikythera.Asset
end
| 20 | 62 | 0.766667 |
abd569400f808692cabb4e502e63da8163d10b7b | 517 | ex | Elixir | lib/globalsat_tracker.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/globalsat_tracker.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/globalsat_tracker.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
# ELEMENT IoT Parser for GlobalsSat GPS Tracker
# According to documentation provided by GlobalSat
# Link: http://www.globalsat.com.tw/en/product-199335/LoRaWAN%E2%84%A2-Compliant-GPS-Tracker-LT-100-Series.html#a
def parse(event, _meta) do
<<foo::size(8... | 25.85 | 115 | 0.628627 |
abd56fac25f6796f29a4141d650cc3d18933289d | 92 | exs | Elixir | 2020/otp/counter/test/counter_test.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/counter/test/counter_test.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/counter/test/counter_test.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule CounterTest do
use ExUnit.Case
test "it's true" do
assert true
end
end
| 11.5 | 24 | 0.695652 |
abd57882a4967245eba0fc172483082486e06918 | 1,077 | exs | Elixir | mix.exs | 5ebec/requiem | dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a | [
"MIT"
] | null | null | null | mix.exs | 5ebec/requiem | dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a | [
"MIT"
] | null | null | null | mix.exs | 5ebec/requiem | dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a | [
"MIT"
] | null | null | null | defmodule Requiem.MixProject do
use Mix.Project
def project do
[
app: :requiem,
version: "0.3.9",
elixir: "~> 1.11",
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def applicati... | 23.413043 | 73 | 0.538533 |
abd585b7d0440ebe399c263d8bdaf4eae41f9713 | 2,588 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_system_version.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_system_version.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_system_version.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... | 41.741935 | 158 | 0.710201 |
abd58e7de73f76958dc6ca04fb02e3a15d7c1fb2 | 226 | ex | Elixir | test/support/comment.ex | sztosz/ecto_paginator | 10b3d6ef770e1f34557ebfaf71bfeb8fef3f7e59 | [
"MIT"
] | null | null | null | test/support/comment.ex | sztosz/ecto_paginator | 10b3d6ef770e1f34557ebfaf71bfeb8fef3f7e59 | [
"MIT"
] | null | null | null | test/support/comment.ex | sztosz/ecto_paginator | 10b3d6ef770e1f34557ebfaf71bfeb8fef3f7e59 | [
"MIT"
] | null | null | null | defmodule EctoMultitenantPaginator.Ecto.Comment do
@moduledoc false
use Ecto.Schema
schema "comments" do
field(:body, :string)
belongs_to(:post, EctoMultitenantPaginator.Ecto.Post)
timestamps()
end
end
| 16.142857 | 57 | 0.734513 |
abd5adb779d47141e70d37b40ab1c923ecd025b7 | 3,537 | ex | Elixir | lib/scenic/primitive/quad.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1,716 | 2018-09-07T21:55:43.000Z | 2022-03-31T16:16:30.000Z | lib/scenic/primitive/quad.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 220 | 2018-09-08T01:28:00.000Z | 2022-03-22T03:55:17.000Z | lib/scenic/primitive/quad.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 137 | 2018-09-07T21:55:56.000Z | 2022-03-26T04:07:27.000Z | #
# Created by Boyd Multerer on 2017-05-06.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Quad do
@moduledoc """
Draw a quad on the screen.
## Data
`{point_a, point_b, point_c, point_d}`
The data for a line is a tuple containing four points.
* `point_a` - posit... | 29.974576 | 124 | 0.568561 |
abd5c922d2c275e8153dc8ee7b98d4764e76adff | 507 | ex | Elixir | lib/ann/training/backpropagation.ex | rdk08/annex | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | 1 | 2021-02-04T07:03:31.000Z | 2021-02-04T07:03:31.000Z | lib/ann/training/backpropagation.ex | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | lib/ann/training/backpropagation.ex | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | defmodule ANN.Training.Backpropagation do
alias ANN.Network
alias ANN.Training.Backpropagation.{PropagateErrors, UpdateWeights}
@doc """
Runs one iteration of backpropagation algorithm.
"""
@spec process(%Network{}, list(float), list(float), map) :: %Network{}
def process(network, output, expected_output... | 33.8 | 79 | 0.753452 |
abd5e8df131f1b2c4a185fc9af8c731e77d77a92 | 5,450 | exs | Elixir | test/ex_audit_test.exs | redmandarin/ex_audit | e9338de924b2b8e13b3cc0987680d76892a4fde9 | [
"MIT"
] | null | null | null | test/ex_audit_test.exs | redmandarin/ex_audit | e9338de924b2b8e13b3cc0987680d76892a4fde9 | [
"MIT"
] | null | null | null | test/ex_audit_test.exs | redmandarin/ex_audit | e9338de924b2b8e13b3cc0987680d76892a4fde9 | [
"MIT"
] | null | null | null | defmodule ExAuditTest do
use ExUnit.Case
doctest ExAudit
import Ecto.Query
alias ExAudit.Test.{Repo, User, Version, BlogPost, Util}
test "should document lifecycle of an entity" do
params = %{
name: "Moritz Schmale",
email: "foo@bar.com"
}
changeset = User.changeset(%User{}, params... | 29.781421 | 112 | 0.621468 |
abd5fc6ae847265ab01d125e826c9406b6a3b2a0 | 2,021 | ex | Elixir | lib/ex_saferpay/transaction.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 1 | 2017-12-12T17:09:02.000Z | 2017-12-12T17:09:02.000Z | lib/ex_saferpay/transaction.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 4 | 2017-12-12T17:08:28.000Z | 2018-03-01T08:04:56.000Z | lib/ex_saferpay/transaction.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | null | null | null | defmodule ExSaferpay.Transaction do
@moduledoc """
Transaction API Calls
See http://saferpay.github.io/jsonapi/1.2/#ChapterTransaction
"""
require ExSaferpay
alias ExSaferpay.Request
alias ExSaferpay.Response
@doc """
See http://saferpay.github.io/jsonapi/1.2/#Payment_v1_Transaction_Initialize
""... | 30.164179 | 83 | 0.764473 |
abd6504154add27e9688105ae98af1905cd7132b | 8,307 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/contest.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/contest.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/contest.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... | 68.090164 | 389 | 0.698688 |
abd66a98b88010e163c5293e2f8ee24c50ff9e97 | 3,923 | ex | Elixir | lib/edgedb/protocol/codecs/builtin/array.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | lib/edgedb/protocol/codecs/builtin/array.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | lib/edgedb/protocol/codecs/builtin/array.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.Protocol.Codecs.Builtin.Array do
use EdgeDB.Protocol.Codec
import EdgeDB.Protocol.Types.{
ArrayElement,
Dimension
}
alias EdgeDB.Protocol.{
Datatypes,
Error,
Types
}
@reserved0 0
@reserved1 0
@empty_list_iodata [
Datatypes.Int32.encode(0),
Datatypes.Int32.... | 27.822695 | 116 | 0.68366 |
abd6b8d01cf3dd0ad5ddf430b2d8ec7a606ef22e | 13,110 | ex | Elixir | lib/codes/codes_v85.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v85.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v85.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_V85 do
alias IcdCode.ICDCode
def _V850XXA do
%ICDCode{full_code: "V850XXA",
category_code: "V85",
short_code: "0XXA",
full_name: "Driver of special construction vehicle injured in traffic accident, initial encounter",
short_name: "Driver of ... | 52.44 | 132 | 0.705873 |
abd708514ac68a24205b93572d7d2c81385bd16f | 499 | exs | Elixir | test/godfist/status_test.exs | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 6 | 2017-07-27T08:23:25.000Z | 2020-01-14T19:17:52.000Z | test/godfist/status_test.exs | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 7 | 2017-08-26T06:01:16.000Z | 2018-04-03T18:30:44.000Z | test/godfist/status_test.exs | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 2 | 2017-08-26T05:50:29.000Z | 2018-10-01T20:44:42.000Z | defmodule Godfist.StatusTest do
@moduledoc false
use ExUnit.Case, async: true
alias Godfist.{Status, LeagueRates}
setup do
bypass = Bypass.open()
LeagueRates.start_link(bypass.port)
{:ok, bypass: bypass}
end
# Status
test "return shard data from server", %{bypass: bypass} do
Bypass.ex... | 19.96 | 60 | 0.643287 |
abd7153b26399a2ad2dc600c97e91eca69a65d11 | 645 | ex | Elixir | lib/key_store.ex | skylerparr/dynamic_env | 15c619d5daa08f2a228bde02f0e8a721adbbd252 | [
"MIT"
] | null | null | null | lib/key_store.ex | skylerparr/dynamic_env | 15c619d5daa08f2a228bde02f0e8a721adbbd252 | [
"MIT"
] | null | null | null | lib/key_store.ex | skylerparr/dynamic_env | 15c619d5daa08f2a228bde02f0e8a721adbbd252 | [
"MIT"
] | null | null | null | defmodule DynamicEnv.KeyStore do
@moduledoc """
Meant to store just the keys of environment variables.
This is to keep track of when keys are deleted that
the environment variables are removed too.
"""
use GenServer
def start_link do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
... | 21.5 | 58 | 0.699225 |
abd762ead0d79bfee9c69620d821d8f3a9db9afa | 424 | exs | Elixir | priv/repo/migrations/20210419095209_add_game_board_table.exs | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | priv/repo/migrations/20210419095209_add_game_board_table.exs | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | priv/repo/migrations/20210419095209_add_game_board_table.exs | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule Quadquizaminos.Repo.Migrations.AddGameBoardTable do
use Ecto.Migration
def change do
create table("game_boards") do
add :start_time, :utc_datetime_usec
add :end_time, :utc_datetime_usec
add :user_id, references("users", column: :user_id), on_delete: :delete_all
add :score, :in... | 28.266667 | 81 | 0.712264 |
abd76c6f37397c17c457f8417a49add8cb8ed938 | 329 | exs | Elixir | priv/repo/migrations/20210125193914_add_settings_to_account.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20210125193914_add_settings_to_account.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20210125193914_add_settings_to_account.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.AddSettingsToAccount do
use Ecto.Migration
def change do
alter table(:accounts) do
# NB: eventually it may make sense to have a separate `account_settings` table,
# but for now I'm not sure it necessarily needs to be relational?
add(:settings, :map)
end
... | 27.416667 | 85 | 0.711246 |
abd7731bc3954c496fc88ebcdbd251adcbe1ea1b | 2,366 | ex | Elixir | lib/mix/tasks/news/historic.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/mix/tasks/news/historic.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/mix/tasks/news/historic.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Mix.Tasks.Changelog.News.Historic do
use Mix.Task
import ChangelogWeb.Router.Helpers
alias Changelog.{Episode, NewsItem, Person, Post, Repo, UrlKit}
alias ChangelogWeb.{Endpoint}
@shortdoc "Generates news items for all historic episodes and posts"
def run(_) do
Mix.Task.run("app.start")
... | 29.209877 | 104 | 0.616653 |
abd7fb0cd2b9b0337c7f751c72d615fe543e1214 | 191 | ex | Elixir | lib/moneybirx/resources/event.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2019-10-16T11:33:39.000Z | 2019-10-16T11:33:39.000Z | lib/moneybirx/resources/event.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | null | null | null | lib/moneybirx/resources/event.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2021-07-27T17:54:20.000Z | 2021-07-27T17:54:20.000Z | defmodule Moneybirx.Event do
defstruct [
:administration_id,
:user_id,
:action,
:link_entity_id,
:link_entity_type,
:data,
:created_at,
:updated_at,
]
end
| 14.692308 | 28 | 0.633508 |
abd83e7fa52e41053e004f7cefae13cde1e75e31 | 496 | ex | Elixir | apps/neoscan_node/lib/neoscan_node/utils.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan_node/lib/neoscan_node/utils.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan_node/lib/neoscan_node/utils.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule NeoscanNode.Utils do
def pmap(collection, func, timeout) do
collection
|> Enum.map(&Task.async(fn -> func.(&1) end))
|> Enum.map(&(Task.yield(&1, timeout) || Task.shutdown(&1)))
|> Enum.filter(&(is_tuple(&1) and elem(&1, 0) == :ok))
|> Enum.map(fn {:ok, result} -> result end)
end
de... | 31 | 64 | 0.620968 |
abd8495fce190c5d68dde1f69f88ae45771d1858 | 17,174 | exs | Elixir | test/ex_doc/formatter/html/templates_test.exs | joaquinalcerro/ex_doc | 6d608635dde995f67bb6b7e7e521f83b4a2f5b00 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/templates_test.exs | joaquinalcerro/ex_doc | 6d608635dde995f67bb6b7e7e521f83b4a2f5b00 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/templates_test.exs | joaquinalcerro/ex_doc | 6d608635dde995f67bb6b7e7e521f83b4a2f5b00 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.TemplatesTest do
use ExUnit.Case, async: true
alias ExDoc.Formatter.HTML
alias ExDoc.Formatter.HTML.Templates
@empty_nodes_map %{modules: [], exceptions: [], protocols: [], tasks: []}
defp source_url do
"https://github.com/elixir-lang/elixir"
end
defp homepage_url do... | 40.600473 | 227 | 0.580936 |
abd84b5fe339eae8716a23752c1992b61adf46bb | 1,004 | ex | Elixir | lib/calculator_web/controllers/api/operation_controller.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | lib/calculator_web/controllers/api/operation_controller.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | lib/calculator_web/controllers/api/operation_controller.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | defmodule CalculatorWeb.Api.OperationController do
use CalculatorWeb, :controller
alias Calculator.Operations.Services.CreateOperationService
alias Calculator.Operations.Services.ListOperationsService
alias CalculatorWeb.Api.Params.OperationParams
action_fallback CalculatorWeb.FallbackController
def index... | 31.375 | 86 | 0.723108 |
abd85886d8c45c6d1ea428f5c6d52872498424d2 | 1,143 | ex | Elixir | clients/hydra/elixir/lib/ory/model/o_auth2_token_introspection.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/hydra/elixir/lib/ory/model/o_auth2_token_introspection.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/hydra/elixir/lib/ory/model/o_auth2_token_introspection.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.OAuth2TokenIntrospection do
@moduledoc """
https://tools.ietf.org/html/rfc7662
"""
@derive [Poison.Encoder]
defstruct [
:"act... | 21.980769 | 91 | 0.56343 |
abd86f96e67bf99be1f884dbc6978c9d55df87ec | 36,837 | ex | Elixir | lib/iex/lib/iex/helpers.ex | inoas/elixir | 55954483d57f059fc899c62a4310a3054a7808f0 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | inoas/elixir | 55954483d57f059fc899c62a4310a3054a7808f0 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | inoas/elixir | 55954483d57f059fc899c62a4310a3054a7808f0 | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Helpers do
@moduledoc """
Welcome to Interactive Elixir. You are currently
seeing the documentation for the module `IEx.Helpers`
which provides many helpers to make Elixir's shell
more joyful to work with.
This message was triggered by invoking the helper `h()`,
usually referred to as `h/0`... | 27.822508 | 97 | 0.645058 |
abd8701565cec30d9855adf794aab41a0eef290b | 1,174 | ex | Elixir | web/views/api_folder_view.ex | allen-garvey/bookmarker-phoenix | 1a2518cb14ba3559f54fc0edee0b551b0db3752c | [
"MIT"
] | 1 | 2020-07-02T22:27:41.000Z | 2020-07-02T22:27:41.000Z | web/views/api_folder_view.ex | allen-garvey/bookmarker-phoenix | 1a2518cb14ba3559f54fc0edee0b551b0db3752c | [
"MIT"
] | 1 | 2022-02-10T17:17:17.000Z | 2022-02-10T17:17:17.000Z | web/views/api_folder_view.ex | allen-garvey/bookmarker-phoenix | 1a2518cb14ba3559f54fc0edee0b551b0db3752c | [
"MIT"
] | null | null | null | defmodule Bookmarker.ApiFolderView do
use Bookmarker.Web, :view
@doc """
Returns JSON array of folders with count of bookmarks in
http://jsonapi.org/ json api v1.0 format specification
"""
def render("index.json", %{folders: folders}) do
%{
data: Enum.map(folders, &folder_json/1)
}
end
@... | 23.48 | 69 | 0.633731 |
abd8797a8e54f3335adfb8d3129bd5f83e2c364a | 1,445 | ex | Elixir | Chapter06/apps/elixir_drip/lib/elixir_drip/storage/pipeline/starter.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter06/apps/elixir_drip/lib/elixir_drip/storage/pipeline/starter.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter06/apps/elixir_drip/lib/elixir_drip/storage/pipeline/starter.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDrip.Storage.Pipeline.Starter do
@moduledoc false
require Logger
alias ElixirDrip.Storage.Workers.QueueWorker
# @queue_polling 5000
@queue_polling 30 * 1000
use ElixirDrip.Pipeliner.Producer, args: [:type]
@impl ElixirDrip.Pipeliner.Producer
def prepare_state([type]) do
Logger.... | 30.104167 | 118 | 0.678201 |
abd88ca9f6968158229b97e3944160beee7d1c1f | 5,093 | exs | Elixir | test/sauce_block_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | 7 | 2018-11-01T15:47:05.000Z | 2021-05-19T10:07:23.000Z | test/sauce_block_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | test/sauce_block_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | defmodule Saucexages.SauceBlockTest do
use ExUnit.Case, async: true
doctest Saucexages.SauceBlock
alias Saucexages.{SauceBlock, MediaInfo}
test "comment_lines/1 returns the number of comment lines in a SAUCE block" do
comments = ["a", "hello", "to my friend,", " ", "the 5th line"]
sauce_block = MediaIn... | 40.420635 | 128 | 0.66503 |
abd890f3b94faed6327374719693a89449edf9c4 | 1,056 | exs | Elixir | mix.exs | chazsconi/elixir_docker_build | 1906a6cf1b4bfab5b29c27d1ddd8eeb7814cf250 | [
"MIT"
] | 2 | 2020-11-24T08:01:27.000Z | 2021-04-07T14:59:46.000Z | mix.exs | chazsconi/elixir_docker_build | 1906a6cf1b4bfab5b29c27d1ddd8eeb7814cf250 | [
"MIT"
] | null | null | null | mix.exs | chazsconi/elixir_docker_build | 1906a6cf1b4bfab5b29c27d1ddd8eeb7814cf250 | [
"MIT"
] | null | null | null | defmodule DockerBuild.MixProject do
use Mix.Project
def project do
[
app: :docker_build,
version: "0.4.0",
elixir: ">= 1.6.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "DockerBuild",
source_url... | 19.924528 | 78 | 0.590909 |
abd891ca30560922eacff9ec7bf84b432eaff2f3 | 745 | ex | Elixir | lib/compiler/syntax/location.ex | lycus/flect | a52a4d4e74cd64c2d39b0a5ecda561fd30370233 | [
"MIT"
] | 17 | 2015-02-10T11:41:20.000Z | 2021-12-17T08:37:26.000Z | lib/compiler/syntax/location.ex | lycus/flect | a52a4d4e74cd64c2d39b0a5ecda561fd30370233 | [
"MIT"
] | null | null | null | lib/compiler/syntax/location.ex | lycus/flect | a52a4d4e74cd64c2d39b0a5ecda561fd30370233 | [
"MIT"
] | 3 | 2016-01-28T13:30:26.000Z | 2019-09-05T00:47:55.000Z | defrecord Flect.Compiler.Syntax.Location, file: "",
line: 1,
column: 0 do
@moduledoc """
Represents a location in a Flect source code document.
`file` is be a binary containing the file name of the document.
`line` is a... | 33.863636 | 68 | 0.557047 |
abd8d97b5ce6c19ec87bcc785e6e4cb34d4d236e | 7,105 | exs | Elixir | test/mongooseice/udp/channel_bind_test.exs | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | 90 | 2017-09-26T12:20:06.000Z | 2022-01-30T17:58:11.000Z | test/mongooseice/udp/channel_bind_test.exs | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | 39 | 2017-01-20T08:54:13.000Z | 2017-09-13T11:30:14.000Z | test/mongooseice/udp/channel_bind_test.exs | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | 13 | 2018-03-29T07:03:25.000Z | 2022-03-06T10:21:45.000Z | defmodule MongooseICE.UDP.ChannelBindTest do
use ExUnit.Case, async: false
use Helper.Macros
alias Helper.UDP
alias Jerboa.Params
alias Jerboa.Format
alias Jerboa.Format.Body.Attribute.XORPeerAddress, as: XPA
alias Jerboa.Format.Body.Attribute.ChannelNumber
import Mock
setup ctx do
udp = UDP.c... | 31.026201 | 79 | 0.665306 |
abd8ed5c19e61ee38c3661094628109d29887b59 | 134 | exs | Elixir | test/aadhaar_validator_test.exs | sasikumar87/ex_aadhaar_validator | a039783ec29115de5a71f1c29a893a569557c9ae | [
"MIT"
] | null | null | null | test/aadhaar_validator_test.exs | sasikumar87/ex_aadhaar_validator | a039783ec29115de5a71f1c29a893a569557c9ae | [
"MIT"
] | null | null | null | test/aadhaar_validator_test.exs | sasikumar87/ex_aadhaar_validator | a039783ec29115de5a71f1c29a893a569557c9ae | [
"MIT"
] | null | null | null | defmodule AadhaarValidatorTest do
use ExUnit.Case
doctest AadhaarValidator
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.888889 | 33 | 0.716418 |
abd8f3453211245ae457858f15fcc9c31a8c4c0a | 1,214 | ex | Elixir | lib/pow/extension/phoenix/controllers/controller_callbacks/base.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/pow/extension/phoenix/controllers/controller_callbacks/base.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | lib/pow/extension/phoenix/controllers/controller_callbacks/base.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | defmodule Pow.Extension.Phoenix.ControllerCallbacks.Base do
@moduledoc """
Used for the Phoenix Controller Callbacks module in extensions.
## Usage
defmodule MyPowExtension.Phoenix.ControllerCallbacks do
use Pow.Extension.Phoenix.ControllerCallbacks.Base
@impl true
def before_resp... | 26.391304 | 102 | 0.6771 |
abd92fbab483c6c5cad728a024b8c9d17b97def8 | 1,965 | exs | Elixir | clients/cloud_search/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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... | 29.328358 | 203 | 0.668193 |
abd949fe8602747da5710fca714e2a814cd431f9 | 3,366 | ex | Elixir | lib/guss.ex | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2018-11-29T01:04:51.000Z | 2020-01-29T17:55:37.000Z | lib/guss.ex | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2018-12-14T00:33:44.000Z | 2020-02-24T03:53:28.000Z | lib/guss.ex | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2019-08-24T21:01:07.000Z | 2020-02-20T18:43:23.000Z | defmodule Guss do
@moduledoc """
Guss generates Signed URLs for Google Cloud Storage.
Signed URLs provide a mechanism for query-string authentication for storage objects.
For more information, see the Storage Docs for [Signed URLs](https://cloud.google.com/storage/docs/access-control/signed-urls).
"""
ali... | 31.166667 | 129 | 0.654783 |
abd951cf3a59e8ceb58257920e3c302921496a5a | 1,819 | exs | Elixir | api/config/prod.exs | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2020-08-17T21:31:04.000Z | 2020-08-17T21:31:04.000Z | api/config/prod.exs | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | null | null | null | api/config/prod.exs | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2021-03-21T16:17:29.000Z | 2021-03-21T16:17:29.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.666667 | 66 | 0.705882 |
abd9761fd7ea04fb057f41a94cbdd7fa626691aa | 1,616 | ex | Elixir | apps/ewallet/lib/ewallet/web/emails/invite_email.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/emails/invite_email.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/emails/invite_email.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 27.862069 | 74 | 0.678837 |
abd98842a4330cc38b7a1cce81c35039a5303981 | 23,499 | ex | Elixir | lib/teiserver/telemetry.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | lib/teiserver/telemetry.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | lib/teiserver/telemetry.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | defmodule Teiserver.Telemetry do
import Telemetry.Metrics
import Ecto.Query, warn: false
alias Central.Helpers.QueryHelpers
alias Central.Repo
alias Teiserver.Telemetry.TelemetryServer
alias Teiserver.Telemetry.TelemetryMinuteLog
alias Teiserver.Telemetry.TelemetryMinuteLogLib
alias Teiserver.Telemetr... | 24.761855 | 110 | 0.664709 |
abd99039acabc537d141b5fd6e597c3784e1a622 | 2,024 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_list_select.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2019-01-03T22:30:36.000Z | 2019-01-03T22:30:36.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_list_select.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_list_select.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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.625 | 108 | 0.738636 |
abd99d309755da36e7a6d20c4db8501847fd5c1b | 1,857 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_image_annotation_context.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_image_annotation_context.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_image_annotation_context.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.763636 | 167 | 0.729672 |
abd9b2363628cf5f9c499fd2699df7dd9b1d7442 | 937 | ex | Elixir | lib/spawn_api/application.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | 2 | 2018-12-19T16:12:41.000Z | 2020-01-20T17:37:15.000Z | lib/spawn_api/application.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | lib/spawn_api/application.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | defmodule SpawnApi.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
SpawnApi.Repo,
... | 29.28125 | 67 | 0.716115 |
abd9b98cd40fdcddc1e78ac50f5c9be4e099bb9d | 2,534 | exs | Elixir | test/event_bus/event_source_test.exs | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 557 | 2018-01-24T13:34:57.000Z | 2022-03-31T20:19:09.000Z | test/event_bus/event_source_test.exs | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 62 | 2018-02-05T05:14:11.000Z | 2022-02-26T13:04:24.000Z | test/event_bus/event_source_test.exs | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 37 | 2018-02-23T16:49:15.000Z | 2021-09-03T18:11:06.000Z | defmodule EventBus.EventSourceTest do
use ExUnit.Case
use EventBus.EventSource
doctest EventSource
setup do
EventBus.register_topic(:user_created)
:ok
end
test "build with all params" do
id = 1
topic = :user_created
data = %{id: 1, name: "me", email: "me@example.com"}
transaction_... | 22.034783 | 74 | 0.620758 |
abd9c061e9d1e713ee6ffd4b6df5bbc99049c936 | 2,654 | ex | Elixir | clients/container/lib/google_api/container/v1/model/usable_subnetwork.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/usable_subnetwork.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/usable_subnetwork.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 39.61194 | 327 | 0.742653 |
abd9d356018859e8a953b2ab7b3b5b09bc6b336d | 469 | exs | Elixir | test/models/episode_channel_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/models/episode_channel_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/models/episode_channel_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Changelog.EpisodeChannelTest do
use Changelog.ModelCase
alias Changelog.EpisodeChannel
@valid_attrs %{position: 42}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = EpisodeChannel.changeset(%EpisodeChannel{}, @valid_attrs)
assert changeset.valid?
end
test "cha... | 24.684211 | 75 | 0.759062 |
abd9e7b518eb4a8f0f6aaa50a86ba89bfd948d99 | 837 | exs | Elixir | server/config/test.exs | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | 1 | 2020-06-03T10:49:40.000Z | 2020-06-03T10:49:40.000Z | server/config/test.exs | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | null | null | null | server/config/test.exs | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | null | null | null | import Config
config :realtime,
secure_channels: false,
# ecto_repos: [RLS.Repo],
publications: "[\"supabase_realtime\"]"
config :realtime, Realtime.RLS.Repo,
database: "realtime_test#{System.get_env("MIX_TEST_PARTITION")}",
username: "postgres",
password: "postgres",
hostname: "localhost",
port: 5432... | 25.363636 | 67 | 0.732378 |
abda2bcd2e88ac7067b98e19fd1511383413a064 | 1,403 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/instance_auth_string.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/lib/google_api/redis/v1/model/instance_auth_string.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/lib/google_api/redis/v1/model/instance_auth_string.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... | 29.851064 | 92 | 0.734854 |
abda90a38a23039ef4b73255884b1ec732167ef4 | 1,349 | ex | Elixir | test/support/conn_case.ex | ricardopadua/introduction_phoenix_liveview | 3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | ricardopadua/introduction_phoenix_liveview | 3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | ricardopadua/introduction_phoenix_liveview | 3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed | [
"Apache-2.0"
] | null | null | null | defmodule IntroductionPhoenixLiveviewWeb.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 data structures and query the data laye... | 33.725 | 108 | 0.756857 |
abdaa2f18045b7b21202cb062a4c004a64a21352 | 242 | ex | Elixir | lib/changelog/repo.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog/repo.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog/repo.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Repo do
use Ecto.Repo, otp_app: :changelog, adapter: Ecto.Adapters.Postgres
use Scrivener, page_size: 25
require Ecto.Query
def count(query) do
one(Ecto.Query.from(r in query, select: count(r.id)))
end
end
| 22 | 69 | 0.727273 |
abdaa96ad638ed689f6d612aedb8aefd742e4866 | 1,237 | ex | Elixir | lib/koans/17_agents.ex | russellmatbouli/elixir-koans | 0a1ef05d793576e752a6e8b51552f1ede1df9acc | [
"MIT"
] | null | null | null | lib/koans/17_agents.ex | russellmatbouli/elixir-koans | 0a1ef05d793576e752a6e8b51552f1ede1df9acc | [
"MIT"
] | null | null | null | lib/koans/17_agents.ex | russellmatbouli/elixir-koans | 0a1ef05d793576e752a6e8b51552f1ede1df9acc | [
"MIT"
] | null | null | null | defmodule Agents do
use Koans
@intro "Agents"
koan "Agents maintain state, so you can ask them about it" do
{:ok, pid} = Agent.start_link(fn -> "Hi there" end)
assert Agent.get(pid, & &1) == "Hi there"
end
koan "Agents may also be named so that you don't have to keep the pid around" do
Agent.st... | 26.891304 | 82 | 0.636217 |
abdae6e51d8bea8556ceb441a5e492558fda2822 | 957 | exs | Elixir | test/crit_web/views/reservations/reservation_view_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/crit_web/views/reservations/reservation_view_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/crit_web/views/reservations/reservation_view_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule CritWeb.Reservations.ReservationViewTest do
use CritWeb.ConnCase, async: true
alias CritWeb.Reservations.ReservationView
describe "date_or_dates_header" do
test "two dates" do
actual = ReservationView.date_or_dates_header(~D[2020-02-03], ~D[2020-02-24])
expected = "Reservations from Feb... | 36.807692 | 83 | 0.718913 |
abdb0327aa6e8bc5e5ad931274c8a8f9ef35e538 | 262 | ex | Elixir | apps/institute_web/lib/institute_web/thesis_auth.ex | hui-ad/institute | 28242d9d324d710a0e70678ec2d79099f1d3a98d | [
"MIT"
] | 4 | 2019-06-12T19:05:34.000Z | 2019-08-18T15:02:56.000Z | apps/institute_web/lib/institute_web/thesis_auth.ex | hui-ad/institute | 28242d9d324d710a0e70678ec2d79099f1d3a98d | [
"MIT"
] | 33 | 2019-06-12T18:59:21.000Z | 2021-03-31T15:45:22.000Z | apps/institute_web/lib/institute_web/thesis_auth.ex | hui-ad/institute | 28242d9d324d710a0e70678ec2d79099f1d3a98d | [
"MIT"
] | 1 | 2019-06-16T09:38:08.000Z | 2019-06-16T09:38:08.000Z | defmodule InstituteWeb.ThesisAuth do
@moduledoc """
Contains functions for handling Thesis authorization.
"""
@behaviour Thesis.Auth
import InstituteWeb.AuthPlug, only: [logged_in?: 1]
def page_is_editable?(conn) do
logged_in?(conn)
end
end
| 18.714286 | 55 | 0.732824 |
abdb1c92637e04c52c2efec891acc44382bcd89e | 809 | exs | Elixir | test/users/user_test.exs | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | test/users/user_test.exs | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | test/users/user_test.exs | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | defmodule ExliveryTest.Users.UserTest do
use ExUnit.Case
import ExliveryTest.Support.Factory
alias Exlivery.Users.User
describe "build/5" do
test "when all params are valid, returns the user" do
response =
User.build(
"Username",
"test@mail.com",
"12345678910",... | 20.225 | 57 | 0.573548 |
abdb3704f307614b3e4eb70920f91d5366667e98 | 3,753 | exs | Elixir | test/oban/testing_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | test/oban/testing_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | test/oban/testing_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | defmodule Oban.TestingTest do
use Oban.Case
use Oban.Testing, repo: Oban.Test.Repo
@moduletag :integration
describe "all_enqueued/1" do
test "retrieving a filtered list of enqueued jobs" do
insert_job!(%{id: 1, ref: "a"}, worker: Ping, queue: :alpha)
insert_job!(%{id: 2, ref: "b"}, worker: Pi... | 32.634783 | 83 | 0.622968 |
abdb50e9eb30b8c893e21511eec23a956a8fbf53 | 1,199 | ex | Elixir | lib/graphql_with_absinthe_on_phoenix/application.ex | wbotelhos/graphql-with-absinthe-on-phoenix | f831d4c78bbba821ef2dd6deee5e3640aff864a5 | [
"MIT"
] | 1 | 2021-08-03T20:30:49.000Z | 2021-08-03T20:30:49.000Z | lib/graphql_with_absinthe_on_phoenix/application.ex | wbotelhos/graphql-with-absinthe-on-phoenix | f831d4c78bbba821ef2dd6deee5e3640aff864a5 | [
"MIT"
] | null | null | null | lib/graphql_with_absinthe_on_phoenix/application.ex | wbotelhos/graphql-with-absinthe-on-phoenix | f831d4c78bbba821ef2dd6deee5e3640aff864a5 | [
"MIT"
] | null | null | null | defmodule GraphqlWithAbsintheOnPhoenix.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
GraphqlWithAbsintheOnPhoenix.Repo,
# St... | 34.257143 | 86 | 0.748957 |
abdb52fbc878e506e177c742d1bfc72ffc89c84c | 916 | exs | Elixir | mix.exs | abhurtun/GelfLogger | 99c248a22c34f623a378741a5f8fc702f975258d | [
"MIT"
] | null | null | null | mix.exs | abhurtun/GelfLogger | 99c248a22c34f623a378741a5f8fc702f975258d | [
"MIT"
] | null | null | null | mix.exs | abhurtun/GelfLogger | 99c248a22c34f623a378741a5f8fc702f975258d | [
"MIT"
] | null | null | null | defmodule GelfLogger.Mixfile do
use Mix.Project
def project do
[app: :gelf_logger,
version: "0.2.0",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
description: description,
package: package
]
end
# Configuration for... | 20.355556 | 83 | 0.601528 |
abdb5ae8bf8c1807834f94d3a605b73c0960cb71 | 6,528 | ex | Elixir | lib/ecto/query/builder/update.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/update.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/update.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.Update do
@moduledoc false
@keys [:set, :inc, :push, :pull]
alias Ecto.Query.Builder
@doc """
Escapes a list of quoted expressions.
iex> escape([], [], __ENV__)
{[], [], %{}}
iex> escape([set: []], [], __ENV__)
{[], []... | 32.477612 | 100 | 0.589001 |
abdb60a5207c5b9cfacd0aa08a4907343560f63d | 71,689 | ex | Elixir | lib/elixir/lib/module.ex | Apelsinka223/elixir | 7c62eb61935b474f53ee23fe5a02ff3f23b1a65e | [
"Apache-2.0"
] | 1 | 2021-03-29T14:28:49.000Z | 2021-03-29T14:28:49.000Z | lib/elixir/lib/module.ex | Apelsinka223/elixir | 7c62eb61935b474f53ee23fe5a02ff3f23b1a65e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module.ex | Apelsinka223/elixir | 7c62eb61935b474f53ee23fe5a02ff3f23b1a65e | [
"Apache-2.0"
] | null | null | null | defmodule Module do
@moduledoc ~S'''
Provides functions to deal with modules during compilation time.
It allows a developer to dynamically add, delete and register
attributes, attach documentation and so forth.
After a module is compiled, using many of the functions in
this module will raise errors, since... | 32.306895 | 113 | 0.662668 |
abdb73b910b61c9fe33681d642c8af7c2b97b0ba | 1,411 | ex | Elixir | server/lib/prepply_web/resolvers/accounts.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | 2 | 2021-03-04T15:21:14.000Z | 2021-03-21T13:43:07.000Z | server/lib/prepply_web/resolvers/accounts.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | null | null | null | server/lib/prepply_web/resolvers/accounts.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | null | null | null | defmodule PrepplyWeb.Resolvers.Accounts do
alias Prepply.Accounts
alias Prepply.Accounts.Email
alias Prepply.Mailer
def signin(_, %{username: username, password: password}, _) do
case Accounts.authenticate(username, password) do
:error ->
{:error, "Invalid credentials!"}
{:ok, user} ->... | 26.622642 | 85 | 0.592488 |
abdb7c338df431be71e23216f22048c363a1f233 | 634 | exs | Elixir | test/xgit/content_source_test.exs | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 94 | 2019-05-28T05:29:54.000Z | 2022-02-18T20:03:20.000Z | test/xgit/content_source_test.exs | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 156 | 2019-05-26T03:27:24.000Z | 2020-10-08T05:44:26.000Z | test/xgit/content_source_test.exs | scouten/redo | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 5 | 2019-05-28T16:35:55.000Z | 2021-06-16T14:25:17.000Z | defmodule Xgit.ContentSourceTest do
use ExUnit.Case, async: true
alias Xgit.ContentSource
describe "implementation for list" do
test "length/1" do
assert ContentSource.length('1234') == 4
end
test "stream/1" do
assert ContentSource.stream('1234') == '1234'
end
end
describe "imp... | 22.642857 | 67 | 0.646688 |
abdbd7f1102984b04b4b5a2f22c304c5501c3aa1 | 885 | exs | Elixir | test/vintage_net_mobile/asu_calculator_test.exs | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 18 | 2020-03-08T21:06:10.000Z | 2022-02-05T00:44:55.000Z | test/vintage_net_mobile/asu_calculator_test.exs | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 27 | 2020-02-28T16:07:07.000Z | 2022-01-19T03:51:02.000Z | test/vintage_net_mobile/asu_calculator_test.exs | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 7 | 2020-03-25T20:08:22.000Z | 2021-10-22T03:20:17.000Z | defmodule VintageNetMobile.ASUCalculatorTest do
use ExUnit.Case
alias VintageNetMobile.ASUCalculator
test "computes gsm dbm" do
assert ASUCalculator.from_gsm_asu(2).dbm == -109
assert ASUCalculator.from_gsm_asu(9).dbm == -95
assert ASUCalculator.from_gsm_asu(15).dbm == -83
assert ASUCalculator.fr... | 32.777778 | 55 | 0.727684 |
abdc30f29aaddd56f84f764b43b5eab4fed26010 | 705 | ex | Elixir | lib/advent_of_code/day_13_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | 3 | 2017-12-26T20:51:47.000Z | 2019-05-14T04:59:38.000Z | lib/advent_of_code/day_13_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | lib/advent_of_code/day_13_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day13A do
def severity(input) do
input
|> Stream.reject(& &1 == "")
|> Stream.map(&String.trim/1)
|> Stream.map(& String.split &1, ": ")
|> Stream.map(fn [depth, range] -> {String.to_integer(depth), String.to_integer(range)} end)
|> Stream.filter(fn {depth, range} -> r... | 22.741935 | 96 | 0.558865 |
abdc4320562a74cd0e6b29cf173d45574e292931 | 815 | ex | Elixir | lib/util/expires.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/util/expires.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/util/expires.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnector.Util.Expires do
@moduledoc """
Helpers to record and track how long until a date
"""
@key "expires"
alias TwitchDiscordConnector.Util.H
def expired?(e, offset \\ 0)
def expired?(%{"expires" => exp}, offset) do
case DateTime.compare(H.now(offset), dt(exp)) do
:... | 22.027027 | 66 | 0.634356 |
abdc5fb1589ec9614251c2fe9104843b921ab773 | 4,742 | exs | Elixir | apps/tai/test/tai/venues/config_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venues/config_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venues/config_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Venues.ConfigTest do
use ExUnit.Case, async: true
doctest Tai.Venues.Config
describe ".parse" do
test "returns a map of adapters parsed from the config" do
config =
Tai.Config.parse(
venues: %{
venue_a: [enabled: true, adapter: MyAdapterA],
venue_... | 26.79096 | 89 | 0.512442 |
abdc62ce8c87abbde7a487f6c332a0a8af6ea814 | 1,089 | exs | Elixir | test/codex/result_test.exs | maartenvanvliet/codex | 4026a5bc64f5aafd94ce21ee4ec922ea79af49c9 | [
"MIT"
] | 3 | 2021-05-16T14:13:18.000Z | 2021-05-18T18:51:06.000Z | test/codex/result_test.exs | maartenvanvliet/codex | 4026a5bc64f5aafd94ce21ee4ec922ea79af49c9 | [
"MIT"
] | 11 | 2021-09-22T04:15:16.000Z | 2022-03-24T04:14:17.000Z | test/codex/result_test.exs | maartenvanvliet/codex | 4026a5bc64f5aafd94ce21ee4ec922ea79af49c9 | [
"MIT"
] | null | null | null | defmodule Codex.ResultTest do
use ExUnit.Case
defmodule AcceptTerms do
use Codex
defstruct [:accepted]
step :agree
step :two
def agree(args) do
%AcceptTerms{accepted: args[:test]}
end
def two(args) do
{:ok, Map.put(args, :two, 2)}
end
end
defimpl Codex.Result, f... | 22.22449 | 80 | 0.640037 |
abdc6a2950578c5d48f10168200662fc092105ac | 511 | ex | Elixir | channel-sender/lib/channel_sender_ex/transport/cowboy_starter.ex | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 2 | 2022-01-11T21:03:44.000Z | 2022-03-15T15:13:11.000Z | channel-sender/lib/channel_sender_ex/transport/cowboy_starter.ex | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 3 | 2021-12-21T21:04:20.000Z | 2022-03-15T16:16:45.000Z | channel-sender/lib/channel_sender_ex/transport/cowboy_starter.ex | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 2 | 2022-02-08T22:33:36.000Z | 2022-03-25T19:55:18.000Z | defmodule ChannelSenderEx.Transport.CowboyStarter do
@moduledoc false
def start_listeners(routes_config) do
routes_config
|> Enum.map(fn {name, port, paths} ->
protocol_opts = %{env: %{dispatch: compile_routes(paths)}}
:cowboy.start_clear(name, tcp_opts(port), protocol_opts)
end)
end
d... | 21.291667 | 64 | 0.663405 |
abdc6d4cb3d2752ae814b31b951613c7b97ce9d1 | 600 | exs | Elixir | priv/repo/migrations/20160204100009_create_countries.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | priv/repo/migrations/20160204100009_create_countries.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | priv/repo/migrations/20160204100009_create_countries.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Repo.Migrations.CreateCountries do
use Ecto.Migration
def change do
create table(:countries) do
add :name, :string
add :iso, :string
add :iso3, :string
add :iso_name, :string
add :numcode, :string
add :has_states, :boolean, default: false
timestamps
... | 27.272727 | 79 | 0.673333 |
abdc926de6d5390311f917825c3a57f9261780b7 | 796 | exs | Elixir | mix.exs | torrick/ueberauth_active_directory | f79379b8a894e1d2ae2bb1d55ceac2af607de341 | [
"MIT"
] | 12 | 2016-06-13T20:39:43.000Z | 2022-01-20T08:47:21.000Z | mix.exs | torrick/ueberauth_active_directory | f79379b8a894e1d2ae2bb1d55ceac2af607de341 | [
"MIT"
] | 1 | 2017-11-11T17:49:06.000Z | 2017-11-11T17:49:06.000Z | mix.exs | torrick/ueberauth_active_directory | f79379b8a894e1d2ae2bb1d55ceac2af607de341 | [
"MIT"
] | 4 | 2017-03-20T02:54:18.000Z | 2019-01-14T15:43:31.000Z | defmodule UeberauthActiveDirectory.Mixfile do
use Mix.Project
def project do
[app: :ueberauth_active_directory,
version: "0.1.0",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# ... | 22.742857 | 77 | 0.605528 |
abdcaa7380c6dc8025c349e4aceac4554a3be2ca | 2,558 | exs | Elixir | test/tesla/middleware/path_params_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2021-08-18T06:48:51.000Z | 2021-08-18T06:48:51.000Z | test/tesla/middleware/path_params_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | null | null | null | test/tesla/middleware/path_params_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2020-05-25T10:18:54.000Z | 2020-05-25T10:18:54.000Z | defmodule Tesla.Middleware.PathParamsTest do
use ExUnit.Case, async: true
alias Tesla.Env
@middleware Tesla.Middleware.PathParams
test "no params" do
assert {:ok, env} = @middleware.call(%Env{url: "/users/:id"}, [], nil)
assert env.url == "/users/:id"
end
test "passed params" do
opts = [path_... | 29.402299 | 98 | 0.599687 |
abdcbc9b5b763ecf8cc81642fc8beeb84e5966b4 | 1,948 | ex | Elixir | lib/crudimentary/absinthe/resolvers/services/authorization.ex | CRUDimentary/crudimentary_absinthe | af903e9e87b4e0931d1f3a0a220f5114ae8de460 | [
"MIT"
] | null | null | null | lib/crudimentary/absinthe/resolvers/services/authorization.ex | CRUDimentary/crudimentary_absinthe | af903e9e87b4e0931d1f3a0a220f5114ae8de460 | [
"MIT"
] | 1 | 2019-01-21T18:00:00.000Z | 2019-01-21T18:00:00.000Z | lib/crudimentary/absinthe/resolvers/services/authorization.ex | CRUDimentary/crudimentary_absinthe | af903e9e87b4e0931d1f3a0a220f5114ae8de460 | [
"MIT"
] | null | null | null | defmodule CRUDimentary.Absinthe.Resolvers.Services.Authorization do
@moduledoc false
def permitted_params(params, account, policy) do
permitted_params = policy.permitted_params(account)
filter_map(params, permitted_params)
end
def authorized?(policy, account, action) do
authorized?(policy, nil, ac... | 29.074627 | 87 | 0.705339 |
abdcbf7f4f1ce1eff2bec4bfbc3c75dbb19c5fdd | 384 | ex | Elixir | apps/cat_feeder_web/web/views/error_view.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 20 | 2016-01-16T17:08:00.000Z | 2021-01-15T15:46:23.000Z | apps/cat_feeder_web/web/views/error_view.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | null | null | null | apps/cat_feeder_web/web/views/error_view.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 5 | 2016-01-09T16:52:44.000Z | 2017-02-09T16:03:25.000Z | defmodule CatFeederWeb.ErrorView do
use CatFeederWeb.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(... | 21.333333 | 47 | 0.705729 |
abdccd2d95ebba0e19a5712cec330acddc48e6e6 | 163 | exs | Elixir | priv/repo/migrations/20170403172044_add_index_on_episode_pub_date.exs | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170403172044_add_index_on_episode_pub_date.exs | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170403172044_add_index_on_episode_pub_date.exs | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | defmodule Podcatcher.Repo.Migrations.AddIndexOnEpisodePubDate do
use Ecto.Migration
def change do
create index(:episodes_episodes, [:pub_date])
end
end
| 20.375 | 64 | 0.785276 |
abdce8be0d7d27d97042f01801d5211d0dd1caa7 | 656 | ex | Elixir | lib/strava/map.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/map.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/map.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.Map do
@moduledoc """
Activity and segment API requests may include summary polylines of their respective routes.
The values are string encodings of the latitude and longitude points using the [Google encoded polyline algorithm format](https://developers.google.com/maps/documentation/utilities/po... | 28.521739 | 202 | 0.684451 |
abdced38baf90399b4cf1527bca5795502dd6142 | 9,444 | exs | Elixir | test/xgit/dir_cache/to_iodevice_test.exs | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 94 | 2019-05-28T05:29:54.000Z | 2022-02-18T20:03:20.000Z | test/xgit/dir_cache/to_iodevice_test.exs | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 156 | 2019-05-26T03:27:24.000Z | 2020-10-08T05:44:26.000Z | test/xgit/dir_cache/to_iodevice_test.exs | scouten/redo | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 5 | 2019-05-28T16:35:55.000Z | 2021-06-16T14:25:17.000Z | defmodule Xgit.DirCache.ToIoDeviceTest do
use ExUnit.Case, async: true
alias Xgit.DirCache
alias Xgit.Test.OnDiskRepoTestCase
alias Xgit.Util.TrailingHashDevice
import FolderDiff
describe "to_iodevice/1" do
test "happy path: matches empty index generated by command-line git" do
%{xgit_path: ref... | 26.453782 | 96 | 0.50593 |
abdcf5c817aa5ae9c4c9196cbafabaf2f8e85ef6 | 323 | exs | Elixir | priv/repos/configuration/migrations/20161031153642_alter_uid2string.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | priv/repos/configuration/migrations/20161031153642_alter_uid2string.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | priv/repos/configuration/migrations/20161031153642_alter_uid2string.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.Configuration.Repo.Migrations.AlterUid2string do
use Ecto.Migration
def change do
alter table(:consumers) do
remove :external_id
add :external_id, :string
end
alter table(:consumer_plugin_settings) do
remove :external_id
add :external_id, :string
end
end
e... | 20.1875 | 64 | 0.705882 |
abdd052cdbccf698950bf5fcbfb803441d6e5219 | 1,722 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/recipient.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/recipient.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/recipient.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... | 32.490566 | 139 | 0.710221 |
abdd1cd47330a1efe523e3c0eba93d8e17f2e8af | 706 | ex | Elixir | lib/phx_api_web/gettext.ex | trevligare/phx_api | ea622cfe15b2c3248374a70aaa65edca53cc3171 | [
"MIT"
] | null | null | null | lib/phx_api_web/gettext.ex | trevligare/phx_api | ea622cfe15b2c3248374a70aaa65edca53cc3171 | [
"MIT"
] | null | null | null | lib/phx_api_web/gettext.ex | trevligare/phx_api | ea622cfe15b2c3248374a70aaa65edca53cc3171 | [
"MIT"
] | null | null | null | defmodule PhxApiWeb.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 PhxApiWeb.Gettext
# Simple translation
gettext "Here is the... | 28.24 | 72 | 0.679887 |
abdd2e7b644e579fb32e86070d28db9d4d22c8f7 | 93 | ex | Elixir | lib/spike/stable_entry.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | 1 | 2019-04-16T22:13:23.000Z | 2019-04-16T22:13:23.000Z | lib/spike/stable_entry.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | lib/spike/stable_entry.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | defmodule Spike.StableEntry do
@enforce_keys [:key, :value]
defstruct [:key, :value]
end
| 18.6 | 30 | 0.72043 |
abdd3bc163e1aaddd58a55e5d98420a6afd6a085 | 2,098 | exs | Elixir | test/root_test.exs | codebay/finance | e8bd1c0427911ed353c15d07b7ab3c55467fcc87 | [
"Apache-2.0"
] | null | null | null | test/root_test.exs | codebay/finance | e8bd1c0427911ed353c15d07b7ab3c55467fcc87 | [
"Apache-2.0"
] | null | null | null | test/root_test.exs | codebay/finance | e8bd1c0427911ed353c15d07b7ab3c55467fcc87 | [
"Apache-2.0"
] | null | null | null | defmodule Finance.Numerical.RootTest do
use ExUnit.Case
doctest Finance.Numerical.Root
alias Finance.Numerical.Root, as: Root
alias Finance.Numerical.Examples, as: Ex
test "bisection - root outside the bounds to the right" do
assert Root.bisection(&Ex.f1/1, -3, -2) ==
{:error,
... | 36.172414 | 102 | 0.609152 |
abdd583cfd2ae02d4bf068091103b8477bb4baee | 1,612 | ex | Elixir | lib/go_champs_api_web/views/phase_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/views/phase_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/views/phase_view.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.PhaseView do
use GoChampsApiWeb, :view
alias GoChampsApiWeb.DrawView
alias GoChampsApiWeb.EliminationView
alias GoChampsApiWeb.PhaseView
def render("index.json", %{phases: phases}) do
%{data: render_many(phases, PhaseView, "phase.json")}
end
def render("batch_list.json", %{p... | 26.42623 | 91 | 0.633375 |
abdd8901fff834304ce8f6f609537af88f871c66 | 789 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/target.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/target.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/target.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.Target do
@moduledoc """
The target of the event.
"""
@derive [Poison.Encoder]
defstruct [
... | 20.763158 | 82 | 0.623574 |
abdd9b8ed3bbd58b94deff5043e3d99eef9093c4 | 187 | ex | Elixir | lib/inflex/parameterize.ex | augnustin/inflex | 8d1da68d38ed7be49e0980ba6ee7156e92264090 | [
"Apache-2.0"
] | null | null | null | lib/inflex/parameterize.ex | augnustin/inflex | 8d1da68d38ed7be49e0980ba6ee7156e92264090 | [
"Apache-2.0"
] | null | null | null | lib/inflex/parameterize.ex | augnustin/inflex | 8d1da68d38ed7be49e0980ba6ee7156e92264090 | [
"Apache-2.0"
] | null | null | null | defmodule Inflex.Parameterize do
@moduledoc false
def parameterize(word, option\\"-") do
Regex.split(~r/\s|\%20/, word) |>
Enum.join(option) |>
String.downcase
end
end
| 18.7 | 40 | 0.652406 |
abdde5771068d21751f2ae0f9bbdad0813b12dc9 | 2,056 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accounts_auth_info_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_auth_info_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_auth_info_response.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... | 38.792453 | 184 | 0.743677 |
abdde62472de5accbed6125ea5c69cc7a8b5853b | 73 | exs | Elixir | test/views/layout_view_test.exs | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | 1 | 2016-09-13T10:40:53.000Z | 2016-09-13T10:40:53.000Z | test/views/layout_view_test.exs | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | defmodule Spaces.LayoutViewTest do
use Spaces.ConnCase, async: true
end | 24.333333 | 34 | 0.821918 |
abde6e51be93f894851237bc2a2b275b90722c14 | 1,577 | ex | Elixir | lib/erlef/inputs.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef/inputs.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef/inputs.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Inputs do
@moduledoc """
Erlef.Inputs provides re-useable input validations
"""
@doc ~S"""
Validates an email address.
Specifically, this function checks that the overall size of the email address and its parts
are of the right byte size per [RFC 2822](https://tools.ietf.org/html/rfc2822... | 21.310811 | 94 | 0.55929 |
abde97e00ecca47af9fb4003ef2875c49ddc8f6b | 2,196 | ex | Elixir | lib/phoenix/live_dashboard/live/port_info_component.ex | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | 1 | 2020-04-23T11:36:03.000Z | 2020-04-23T11:36:03.000Z | lib/phoenix/live_dashboard/live/port_info_component.ex | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/live/port_info_component.ex | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | 1 | 2021-02-04T03:06:20.000Z | 2021-02-04T03:06:20.000Z | defmodule Phoenix.LiveDashboard.PortInfoComponent do
use Phoenix.LiveDashboard.Web, :live_component
alias Phoenix.LiveDashboard.SystemInfo
@info_keys [
:name,
:links,
:id,
:connected,
:input,
:output,
:os_pid
]
@impl true
def render(assigns) do
~L"""
<div class="tabula... | 28.894737 | 113 | 0.566029 |
abdec835b90b55cd78792f267615d83fcd0eb3fc | 12,483 | ex | Elixir | lib/xema/validation_error.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | lib/xema/validation_error.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | lib/xema/validation_error.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.ValidationError do
@moduledoc """
Raised when a validation fails.
"""
alias Xema.ValidationError
defexception [:message, :reason]
@type t :: %ValidationError{
message: String.t() | nil,
reason: map
}
@type path :: [atom | integer | String.t()]
@type opts ::... | 29.863636 | 96 | 0.607867 |
abdedd018c1b6d4cf91181745c942a930fa2fe8e | 1,850 | exs | Elixir | clients/translate/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/translate/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/translate/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.61194 | 103 | 0.658378 |
abdf038a00eb5e2c814b76aeebf146ec9f09eeb9 | 1,127 | exs | Elixir | config/config.exs | alejandrodnm/nine_digits_server | 5f3bf3b25fb6af8dae60be916441f057d6aa7f8a | [
"MIT"
] | null | null | null | config/config.exs | alejandrodnm/nine_digits_server | 5f3bf3b25fb6af8dae60be916441f057d6aa7f8a | [
"MIT"
] | null | null | null | config/config.exs | alejandrodnm/nine_digits_server | 5f3bf3b25fb6af8dae60be916441f057d6aa7f8a | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.354839 | 73 | 0.755989 |
abdf0a95dc47f58c528006e30f792bbc078129be | 4,969 | ex | Elixir | lib/plug.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/plug.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | null | null | null | lib/plug.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2020-11-16T05:08:58.000Z | 2020-11-16T05:08:58.000Z | defmodule Plug do
@moduledoc """
The plug specification.
There are two kind of plugs: function plugs and module plugs.
#### Function plugs
A function plug is any function that receives a connection and a set of
options and returns a connection. Its type signature must be:
(Plug.Conn.t, Plug.opts) ... | 28.394286 | 97 | 0.626484 |
abdf0c1c6fcb74e9a4560cd44d3a4e57824453a9 | 828 | ex | Elixir | lib/brando/images/conversion_parameters.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/images/conversion_parameters.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/images/conversion_parameters.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Images.ConversionParameters do
@moduledoc """
Store data we need for doing image resizing and cropping
"""
defstruct id: nil,
image: nil,
size_key: nil,
size_cfg: nil,
image_src_path: nil,
image_dest_path: nil,
image_dest_... | 27.6 | 58 | 0.525362 |
abdf6d192dd4a530e53d167320facacf98fe2919 | 95 | exs | Elixir | make_the_page/elixir_version/test/onepg_ex_test.exs | notactuallypagemcconnell/onepg | 0429c872543143c8329c2d69e84196d1e6dc0ea2 | [
"MIT"
] | 1 | 2018-12-25T09:12:53.000Z | 2018-12-25T09:12:53.000Z | make_the_page/elixir_version/test/onepg_ex_test.exs | notactuallypagemcconnell/onepg | 0429c872543143c8329c2d69e84196d1e6dc0ea2 | [
"MIT"
] | 1 | 2019-01-16T02:37:43.000Z | 2019-01-16T02:37:43.000Z | make_the_page/elixir_version/test/onepg_ex_test.exs | notactuallypagemcconnell/onepg | 0429c872543143c8329c2d69e84196d1e6dc0ea2 | [
"MIT"
] | 1 | 2018-12-26T01:34:24.000Z | 2018-12-26T01:34:24.000Z | defmodule OnepgExTest do
use ExUnit.Case
doctest OnepgEx
test "html docs" do
end
end
| 10.555556 | 24 | 0.726316 |
abdf85bb960ae663295692cb2077f7e3f6b7fc6f | 1,138 | ex | Elixir | lib/hl7/2.5/segments/pcr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/pcr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/pcr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.PCR do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
implicated_product: DataTypes.Ce,
generic_product: nil,
product_class: DataTypes.Ce,
total_duration_of_therapy: DataTypes.Cq,
product_m... | 32.514286 | 58 | 0.739016 |
abdf8f3a2a3436c94399713c16fe82e36124e035 | 162 | ex | Elixir | lib/sitemapper/store/store.ex | kotsius/sitemapper | 67807a9c4d609a86feb7fd890f5ff48c7bb08223 | [
"MIT"
] | 23 | 2019-10-17T22:13:21.000Z | 2021-06-26T05:25:22.000Z | lib/sitemapper/store/store.ex | kotsius/sitemapper | 67807a9c4d609a86feb7fd890f5ff48c7bb08223 | [
"MIT"
] | 5 | 2020-07-17T15:20:18.000Z | 2021-06-27T10:20:56.000Z | lib/sitemapper/store/store.ex | kotsius/sitemapper | 67807a9c4d609a86feb7fd890f5ff48c7bb08223 | [
"MIT"
] | 6 | 2019-11-25T15:02:12.000Z | 2021-06-26T05:06:59.000Z | defmodule Sitemapper.Store do
@callback write(filename :: String.t(), body :: IO.chardata(), config :: Keyword.t()) ::
:ok | {:error, atom()}
end
| 32.4 | 90 | 0.592593 |
abdf95ec012f09e6549e189a0b13a1b29e04db80 | 2,344 | exs | Elixir | apps/discovery_api/test/integration/discovery_api/data/presto_integration_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 18 | 2020-11-13T15:38:24.000Z | 2021-05-26T00:40:08.000Z | apps/discovery_api/test/integration/discovery_api/data/presto_integration_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 365 | 2020-09-21T12:31:40.000Z | 2021-09-25T14:54:21.000Z | apps/discovery_api/test/integration/discovery_api/data/presto_integration_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 3 | 2020-10-06T16:17:49.000Z | 2021-09-03T17:11:41.000Z | defmodule DiscoveryApi.Data.PrestoIngrationTest do
use ExUnit.Case
use DiscoveryApi.DataCase
alias SmartCity.TestDataGenerator, as: TDG
alias DiscoveryApi.Test.Helper
import SmartCity.Event, only: [dataset_update: 0]
import SmartCity.TestHelper, only: [eventually: 3]
@instance_name DiscoveryApi.instance... | 28.240964 | 94 | 0.666809 |
abdf9c59a8f23345a19f3d3f95e0d236ceb16eff | 2,856 | ex | Elixir | lib/distributions/frechet.ex | piisgaaf/chi2fit | 64e1c6719142e74979a407749953b892d4ccd985 | [
"Apache-2.0"
] | 4 | 2017-11-06T20:08:40.000Z | 2021-07-01T13:42:48.000Z | lib/distributions/frechet.ex | piisgaaf/chi2fit | 64e1c6719142e74979a407749953b892d4ccd985 | [
"Apache-2.0"
] | null | null | null | lib/distributions/frechet.ex | piisgaaf/chi2fit | 64e1c6719142e74979a407749953b892d4ccd985 | [
"Apache-2.0"
] | null | null | null | defmodule Distribution.Frechet do
# Copyright 2019 Pieter Rijken
#
# 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
#
# Unle... | 29.443299 | 142 | 0.637605 |
abdfa032c41ece7f6e4000481fe49563fff3b864 | 1,274 | ex | Elixir | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/server_properties_for_geo_restore.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.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/server_properties_for_geo_restore.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/server_properties_for_geo_restore.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.Database.MySql.Model.ServerPropertiesForGeoRestore do
@moduledoc """
The properties used to create a new server by ... | 35.388889 | 119 | 0.744113 |
abdfaf6de7b2095305d8c89f5983bca476b4e004 | 2,072 | exs | Elixir | test/actions/url_test.exs | dominikknafelj/arc | f8850cafae821d0c00b6f6803c5196e7bbc1e332 | [
"Apache-2.0"
] | null | null | null | test/actions/url_test.exs | dominikknafelj/arc | f8850cafae821d0c00b6f6803c5196e7bbc1e332 | [
"Apache-2.0"
] | null | null | null | test/actions/url_test.exs | dominikknafelj/arc | f8850cafae821d0c00b6f6803c5196e7bbc1e332 | [
"Apache-2.0"
] | null | null | null | defmodule ArcTest.Actions.Url do
use ExUnit.Case, async: false
import Mock
defmodule DummyDefinition do
use Arc.Actions.Url
def __versions, do: [:original, :thumb]
def default_url(version, scope) when is_nil(scope), do: "dummy-#{version}"
def default_url(version, scope), do: "dummy-#{version}-#{... | 43.166667 | 120 | 0.676641 |
abdffc17783dd41bed95873a2600e9507734e963 | 273 | exs | Elixir | test/morphic_pro_web/plugs/navbar_small_test.exs | MorphicPro/morphic.pro | 9098da267344e025f262a344de6a2fb5cfea50a8 | [
"MIT"
] | 5 | 2020-04-23T21:12:17.000Z | 2020-09-30T00:16:58.000Z | test/morphic_pro_web/plugs/navbar_small_test.exs | joshchernoff/morphic.pro | 9098da267344e025f262a344de6a2fb5cfea50a8 | [
"MIT"
] | 232 | 2020-04-24T00:52:24.000Z | 2021-08-05T17:23:12.000Z | test/morphic_pro_web/plugs/navbar_small_test.exs | MorphicPro/morphic.pro | 9098da267344e025f262a344de6a2fb5cfea50a8 | [
"MIT"
] | 1 | 2020-04-04T02:19:44.000Z | 2020-04-04T02:19:44.000Z | defmodule MorphicProWeb.Plugs.NavbarSmallTest do
use MorphicProWeb.ConnCase
test "assigns navbar-small to nav_class", %{conn: conn} do
conn =
conn |> MorphicProWeb.Plugs.NavbarSmall.call(%{})
assert conn.assigns[:nav_class] == "navbar-small"
end
end
| 27.3 | 60 | 0.714286 |
abdffc990a83232d96c8b501e539cf6c479885ef | 19,219 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/api/activities.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/activities.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/activities.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 85.039823 | 676 | 0.705396 |
abe04ffd777ec1e956eb9d48a26179d2f9e6f2c8 | 4,262 | ex | Elixir | lib/sentinel/web/controllers/html/auth_controller.ex | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | lib/sentinel/web/controllers/html/auth_controller.ex | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | lib/sentinel/web/controllers/html/auth_controller.ex | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | defmodule Sentinel.Controllers.Html.AuthController do
@moduledoc """
Handles the session create and destroy actions
"""
require Ueberauth
use Phoenix.Controller
alias Sentinel.AfterRegistrator
alias Sentinel.Config
alias Sentinel.RedirectHelper
alias Sentinel.RegistratorHelper
alias Sentinel.Ueberau... | 29.393103 | 158 | 0.63679 |
abe05b8fca676a3ec18859258faa3e36eec7312d | 876 | exs | Elixir | mix.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | mix.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | mix.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | defmodule ESpec.Mixfile do
use Mix.Project
@version "1.5.1"
def project do
[
app: :espec,
name: "ESpec",
version: @version,
elixir: ">= 1.3.4",
description: description(),
package: package(),
deps: deps(),
source_url: "https://github.com/antonmi/espec",
... | 19.043478 | 62 | 0.546804 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.