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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dac028ecfd93a05abe33f3c6310d729fa579f6db | 8,958 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/65.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/65.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/65.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
NA pnoun pnoun cm conj;
SYM pnoun pnoun nst conj;
noun SYM SYM noun conj;
verb_aux verb_aux noun cm conj;
cm noun noun noun noun;
conj pnoun pnoun pnoun conj;
verb_aux verb_aux pn adjective conj;
pn ordinal ordinal noun conj;
noun cardinal cardinal noun conj;
pnoun cm pn nst conj;
noun pnou... | 30.161616 | 46 | 0.76948 |
dac03ae7db1b99ed51bbc282ffd6140b5932cf19 | 430 | ex | Elixir | lib/phoenix_ecto.ex | mikeastock/phoenix_ecto | c45ed42470b47b1f73d85aef7815659cfe37a788 | [
"MIT"
] | null | null | null | lib/phoenix_ecto.ex | mikeastock/phoenix_ecto | c45ed42470b47b1f73d85aef7815659cfe37a788 | [
"MIT"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/phoenix_ecto.ex | mikeastock/phoenix_ecto | c45ed42470b47b1f73d85aef7815659cfe37a788 | [
"MIT"
] | null | null | null | defmodule Phoenix.Ecto do
@moduledoc """
Integrates Phoenix with Ecto.
It implements many protocols that makes it easier to use
Ecto with Phoenix either when working with HTML or JSON.
"""
use Application
import Supervisor.Spec
def start(_type, _args) do
Supervisor.start_link([
supervisor(Ph... | 25.294118 | 61 | 0.730233 |
dac0549d2dbe2e0c646a22c2e049b61a52a56db0 | 337 | exs | Elixir | challenge_1/elixir/csuzw/src/mix.exs | YearOfProgramming/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 271 | 2017-01-01T22:58:36.000Z | 2021-11-28T23:05:29.000Z | challenge_1/elixir/csuzw/src/mix.exs | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 283 | 2017-01-01T23:26:05.000Z | 2018-03-23T00:48:55.000Z | challenge_1/elixir/csuzw/src/mix.exs | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 311 | 2017-01-01T22:59:23.000Z | 2021-09-23T00:29:12.000Z | defmodule Reverse.Mixfile do
use Mix.Project
def project do
[app: :reverse,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[]
end
defp deps do
[{:ex_doc, "~> 0.14.5", only: ... | 16.047619 | 40 | 0.563798 |
dac0637f7896d8ea5503f9dec308ff78fff1a8b8 | 2,181 | exs | Elixir | mix.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 4 | 2020-05-05T18:37:28.000Z | 2022-01-05T00:56:19.000Z | mix.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 21 | 2019-12-01T15:32:02.000Z | 2019-12-19T13:10:36.000Z | mix.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 2 | 2020-09-12T16:07:11.000Z | 2020-12-11T06:46:45.000Z | defmodule Bank.MixProject do
use Mix.Project
def project do
[
app: :bankapi,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_c... | 29.08 | 79 | 0.571298 |
dac06914eb2b4c23483316e58936ac93e9b72078 | 6,839 | ex | Elixir | lib/mox/server.ex | anagromataf/mox | 375f83ce5ecad71a81f6bafcc75b280e6f2f0c4c | [
"Apache-2.0"
] | null | null | null | lib/mox/server.ex | anagromataf/mox | 375f83ce5ecad71a81f6bafcc75b280e6f2f0c4c | [
"Apache-2.0"
] | null | null | null | lib/mox/server.ex | anagromataf/mox | 375f83ce5ecad71a81f6bafcc75b280e6f2f0c4c | [
"Apache-2.0"
] | null | null | null | defmodule Mox.Server do
@moduledoc false
use GenServer
@timeout 30000
# API
def start_link(_options) do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def add_expectation(owner_pid, key, value) do
GenServer.call(__MODULE__, {:add_expectation, owner_pid, key, value}, @timeout)
en... | 28.260331 | 98 | 0.611932 |
dac09e3adde6f4fea62a207fbdd57d42468139c0 | 1,186 | exs | Elixir | test/ann/signal_test.exs | rdk08/annex | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | 1 | 2021-02-04T07:03:31.000Z | 2021-02-04T07:03:31.000Z | test/ann/signal_test.exs | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | test/ann/signal_test.exs | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | defmodule ANN.SignalTest do
use ExUnit.Case, async: true
alias ANN.Signal
alias ANN.Test.Fake
test "build/2 - build initial signal" do
input = %{
value: 0.55,
io: %{random: Fake.Random}
}
output = Signal.build(input.value, input.io)
expected_output = %Signal{value: 0.55, weight: 0... | 21.563636 | 56 | 0.572513 |
dac09f9cd88ac1165c71b09eaebd55ff4ccf826c | 9,693 | ex | Elixir | lib/aws/generated/service_quotas.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/service_quotas.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/service_quotas.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.ServiceQuotas do
@moduledoc """
Service Quotas is a web service that you can use to manage many of your AWS
service quotas. Quotas, also referred to as limits, are the maximum values
for a... | 38.772 | 91 | 0.731662 |
dac0b3d5c5f21c233676ad64650886528a92a364 | 837 | ex | Elixir | test/support/feature_case.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | test/support/feature_case.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | test/support/feature_case.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraperWeb.FeatureCase do
use ExUnit.CaseTemplate
using do
quote do
use Wallaby.Feature
import ElixirGoogleScraper.Factory
alias ElixirGoogleScraperWeb.Router.Helpers, as: Routes
def login(session, email, password) do
session
|> visit(Routes.user... | 26.15625 | 81 | 0.667861 |
dac0b427594e98636a4ba5f33b0ff2ad4d156d10 | 2,820 | exs | Elixir | widget_market_phoenix/config/prod.exs | thegillis/from_rails_to_phoenix | fb230b787fd441e71e93dc8d82b3769eeaeddbf8 | [
"MIT"
] | null | null | null | widget_market_phoenix/config/prod.exs | thegillis/from_rails_to_phoenix | fb230b787fd441e71e93dc8d82b3769eeaeddbf8 | [
"MIT"
] | null | null | null | widget_market_phoenix/config/prod.exs | thegillis/from_rails_to_phoenix | fb230b787fd441e71e93dc8d82b3769eeaeddbf8 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# WidgetMarketPhoenix.Web.Endpoint.load_from_system_env/1 dynamically.
# Any dynamic configuration should be moved to su... | 35.696203 | 116 | 0.728369 |
dac0f877b64be564c367379ef89b165def6cbcbc | 1,625 | ex | Elixir | anagrams-phx/web/web.ex | mcdickenson/anagrams | 3132a98d5ac8b6175e134109386ce1d6a7270d94 | [
"MIT"
] | null | null | null | anagrams-phx/web/web.ex | mcdickenson/anagrams | 3132a98d5ac8b6175e134109386ce1d6a7270d94 | [
"MIT"
] | null | null | null | anagrams-phx/web/web.ex | mcdickenson/anagrams | 3132a98d5ac8b6175e134109386ce1d6a7270d94 | [
"MIT"
] | null | null | null | defmodule Anagrams.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Anagrams.Web, :controller
use Anagrams.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them ... | 19.817073 | 88 | 0.668308 |
dac11b5f61cc1b4515f64b2124f249c39644dfb0 | 1,631 | exs | Elixir | implements/word-count/word_count_test.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | implements/word-count/word_count_test.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | 1 | 2018-06-19T18:59:41.000Z | 2018-06-19T18:59:41.000Z | implements/word-count/word_count_test.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | #if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("word_count.exs", __DIR__)
#end
ExUnit.start()
#ExUnit.configure(exclude: :pending, trace: true)
defmodule WordsTest do
use ExUnit.Case
test "count one word" do
assert Words.count("word") == %{"word" => 1}
end
@tag :pending
test "coun... | 25.888889 | 86 | 0.603924 |
dac18ade46e609fdb97b3fee8ef51dffba57240c | 384 | ex | Elixir | lib/aegis/errors.ex | annkissam/aegis | 9e9d1c15f613c410b5df55c50c86bf4ba47efb1b | [
"MIT"
] | 3 | 2018-05-05T09:28:22.000Z | 2019-08-16T12:13:29.000Z | lib/aegis/errors.ex | annkissam/aegis | 9e9d1c15f613c410b5df55c50c86bf4ba47efb1b | [
"MIT"
] | 4 | 2018-05-29T14:05:07.000Z | 2018-06-12T13:57:48.000Z | lib/aegis/errors.ex | annkissam/aegis | 9e9d1c15f613c410b5df55c50c86bf4ba47efb1b | [
"MIT"
] | 1 | 2018-05-05T09:28:26.000Z | 2018-05-05T09:28:26.000Z | if Code.ensure_loaded?(Phoenix) do
defmodule Aegis.AuthorizationNotPerformedError do
@moduledoc """
Raised when authorization has not been implemented by the end of the Plug
pipeline.
"""
defexception conn: nil, message: "Not Authorized"
end
defimpl Plug.Exception, for: Aegis.AuthorizationNot... | 27.428571 | 77 | 0.739583 |
dac18e6206467635efb00f582103cc0c5dd1141e | 2,080 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_metric.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_metric.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_metric.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... | 29.714286 | 89 | 0.638942 |
dac22435f2546c0f808b2146d1e9b6f825d47ac4 | 2,939 | exs | Elixir | test/membrane_flac_plugin/parser_test.exs | kamidev/membrane_flac_plugin | cdbf0fea6dce46a00a105ca82eceea4129ebfc07 | [
"Apache-2.0"
] | null | null | null | test/membrane_flac_plugin/parser_test.exs | kamidev/membrane_flac_plugin | cdbf0fea6dce46a00a105ca82eceea4129ebfc07 | [
"Apache-2.0"
] | 4 | 2020-07-31T10:17:59.000Z | 2021-08-05T14:43:25.000Z | test/membrane_flac_plugin/parser_test.exs | kamidev/membrane_flac_plugin | cdbf0fea6dce46a00a105ca82eceea4129ebfc07 | [
"Apache-2.0"
] | 1 | 2022-02-08T17:13:31.000Z | 2022-02-08T17:13:31.000Z | defmodule Membrane.FLAC.Parser.EngineTest do
use ExUnit.Case, async: true
alias Membrane.Buffer
alias Membrane.Caps.Audio.FLAC
alias Membrane.FLAC.Parser.Engine
defp fixture(file) do
Path.join([__DIR__, "../fixtures/", file])
end
test "parse noise.flac" do
data = File.read!(fixture("noise.flac")... | 31.265957 | 96 | 0.66179 |
dac230fc660e21ce04948373a64b6ae400001cbe | 539 | ex | Elixir | lib/hl7/2.3.1/segments/qrf.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/qrf.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/qrf.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.QRF do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
where_subject_filter: nil,
when_data_start_date_time: DataTypes.Ts,
when_data_end_date_time: DataTypes.Ts,
what_user_qualifier: nil,
... | 25.666667 | 50 | 0.725417 |
dac241410178ec81501e201d1649a142952fea7c | 2,502 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1/model/subject_alt_names.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/subject_alt_names.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/subject_alt_names.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.40678 | 173 | 0.707034 |
dac245627a9bab0d3eb0c18a09c632694a54cfb4 | 751 | ex | Elixir | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/authentication_request.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/authentication_request.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/authentication_request.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"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 com.github.asyncmc.mojang.authentication.elixir.server.Model.AuthenticationRequest do
@moduledoc """
Request body needed to authenticate the playe... | 26.821429 | 130 | 0.725699 |
dac2663fa99b84cedc94a18a1002d2413fb12099 | 41,259 | ex | Elixir | lib/phoenix/endpoint.ex | minibikini/phoenix | ba55f7ea969f6af5470a71e34a987f2cea848f85 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | minibikini/phoenix | ba55f7ea969f6af5470a71e34a987f2cea848f85 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | minibikini/phoenix | ba55f7ea969f6af5470a71e34a987f2cea848f85 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint do
@moduledoc ~S"""
Defines a Phoenix endpoint.
The endpoint is the boundary where all requests to your
web application start. It is also the interface your
application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
* to provide a w... | 45.945434 | 10,138 | 0.735985 |
dac2742ee41c2c07db5ccfd24db01e4477f94c04 | 76 | exs | Elixir | test/adel_web/views/layout_view_test.exs | zentetsukenz/adel | 08854ec56fb6dfe6912abe79ab8aa25ecc3d541a | [
"MIT"
] | null | null | null | test/adel_web/views/layout_view_test.exs | zentetsukenz/adel | 08854ec56fb6dfe6912abe79ab8aa25ecc3d541a | [
"MIT"
] | null | null | null | test/adel_web/views/layout_view_test.exs | zentetsukenz/adel | 08854ec56fb6dfe6912abe79ab8aa25ecc3d541a | [
"MIT"
] | null | null | null | defmodule AdelWeb.LayoutViewTest do
use AdelWeb.ConnCase, async: true
end
| 19 | 35 | 0.815789 |
dac279e71fbec0f15e63f912bf8830bab64a0201 | 537 | exs | Elixir | test/encoder/encoder_native_test.exs | geometerio/membrane_h264_ffmpeg_plugin | 87a348ea595c74684d1a6724b98718ba416c7b3e | [
"Apache-2.0"
] | 7 | 2021-01-30T07:12:03.000Z | 2021-12-12T05:28:29.000Z | test/encoder/encoder_native_test.exs | geometerio/membrane_h264_ffmpeg_plugin | 87a348ea595c74684d1a6724b98718ba416c7b3e | [
"Apache-2.0"
] | 9 | 2020-11-20T12:54:15.000Z | 2022-03-24T10:26:10.000Z | test/encoder/encoder_native_test.exs | geometerio/membrane_h264_ffmpeg_plugin | 87a348ea595c74684d1a6724b98718ba416c7b3e | [
"Apache-2.0"
] | 1 | 2021-06-21T23:33:50.000Z | 2021-06-21T23:33:50.000Z | defmodule Encoder.NativeTest do
use ExUnit.Case, async: true
alias Membrane.H264.FFmpeg.Encoder.Native, as: Enc
test "Encode 1 240p frame" do
in_path = "../fixtures/reference-100-240p.raw" |> Path.expand(__DIR__)
assert {:ok, file} = File.read(in_path)
assert {:ok, ref} = Enc.create(320, 240, :I420,... | 35.8 | 76 | 0.657356 |
dac28109a9e67c009b30cd165a35462b873c3f87 | 2,765 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/comment.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/comment.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/comment.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.943662 | 179 | 0.713562 |
dac29669b5d4f7a635eb715dc349365c098aa818 | 1,303 | ex | Elixir | test/support/conn_case.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | test/support/conn_case.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | test/support/conn_case.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule KwtoolWeb.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 layer.
Finally, if the... | 27.145833 | 60 | 0.721412 |
dac2a78863b7a901c2a7e4c020228bfae817527f | 2,015 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/signature.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/signature.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/signature.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... | 35.982143 | 151 | 0.706203 |
dac2b931c65af52a4470eff4945c277aedb7a23d | 23,154 | ex | Elixir | lib/elixir/lib/macro.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/elixir/lib/macro.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [to_string: 1]
defmodule Macro do
@moduledoc """
This module provides conveniences for working with macros.
"""
@type t :: { t, t } | { t, Keyword.t, t } | atom | number | binary | list
@doc false
defmacro binary_ops do
[ :===, :!==,
:==, :!=, :<=, :>=,
:&&, :||, :<... | 32.749646 | 122 | 0.592554 |
dac2ede043903b2ecef334cb308fb6bb722a5f20 | 120 | exs | Elixir | test/grax/id/counter/text_file_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | 17 | 2021-01-06T12:11:28.000Z | 2021-05-26T00:39:37.000Z | test/grax/id/counter/text_file_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | test/grax/id/counter/text_file_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | defmodule Grax.Id.Counter.TextFileTest do
use Grax.Id.Counter.Adapter.TestCase, adapter: Grax.Id.Counter.TextFile
end
| 30 | 73 | 0.816667 |
dac34043b9241b41645419d819c65a3a0fa2225c | 525 | exs | Elixir | test/codewars_formatter_test.exs | codewars/codewars_formatter_ex | 40fd236e075c86c6425b6231e49924461b6465f3 | [
"Apache-2.0"
] | null | null | null | test/codewars_formatter_test.exs | codewars/codewars_formatter_ex | 40fd236e075c86c6425b6231e49924461b6465f3 | [
"Apache-2.0"
] | 1 | 2021-04-13T19:19:02.000Z | 2021-04-13T19:19:02.000Z | test/codewars_formatter_test.exs | codewars/codewars_formatter_ex | 40fd236e075c86c6425b6231e49924461b6465f3 | [
"Apache-2.0"
] | null | null | null | defmodule CodewarsFormatterTest do
use ExUnit.Case
import ExUnit.CaptureIO
@config %{
test_timings: [],
failure_counter: 0,
width: 80
}
test ":test_finished event with nil state outputs PASSED" do
test = %ExUnit.Test{
state: nil,
name: "passing",
case: "Example"
}
... | 19.444444 | 86 | 0.622857 |
dac349324681632246ddf097ad8703f8026c002c | 474 | ex | Elixir | lib/parseus/validators/required_validator.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | 2 | 2017-10-18T17:53:43.000Z | 2020-05-01T23:31:36.000Z | lib/parseus/validators/required_validator.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | null | null | null | lib/parseus/validators/required_validator.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | null | null | null | defmodule Parseus.RequiredValidator do
@moduledoc false
def call(input, key) when is_atom(key), do: call(input, [key])
def call(input, keys) when is_list(keys) do
case get_errors(input, keys) do
[] -> :ok
errors -> {:error, errors}
end
end
defp get_errors(input, keys) do
Enum.reduce(... | 21.545455 | 64 | 0.601266 |
dac370b1be673045723eb202996870c60ffa20f7 | 855 | exs | Elixir | mix.exs | okariFrankline/pizza_broadway | 8d95f25c890e8f64aa97107c96e568304caf78df | [
"Apache-2.0"
] | 1 | 2021-07-31T11:55:43.000Z | 2021-07-31T11:55:43.000Z | mix.exs | okariFrankline/pizza_broadway | 8d95f25c890e8f64aa97107c96e568304caf78df | [
"Apache-2.0"
] | null | null | null | mix.exs | okariFrankline/pizza_broadway | 8d95f25c890e8f64aa97107c96e568304caf78df | [
"Apache-2.0"
] | null | null | null | defmodule MystexPizza.MixProject do
use Mix.Project
def project do
[
app: :mystex_pizza_on_broadway,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
def application do
[
extra_applications: [:... | 20.357143 | 79 | 0.507602 |
dac391be25d55351ef524de679ef6c7624f88425 | 1,147 | exs | Elixir | config/config.exs | aleDsz/ecto-polymorphic | 4e29780602fc0028bfb42a4e56efd48b205b7861 | [
"MIT"
] | 1 | 2020-10-02T00:26:38.000Z | 2020-10-02T00:26:38.000Z | config/config.exs | aleDsz/ecto-polymorphic | 4e29780602fc0028bfb42a4e56efd48b205b7861 | [
"MIT"
] | null | null | null | config/config.exs | aleDsz/ecto-polymorphic | 4e29780602fc0028bfb42a4e56efd48b205b7861 | [
"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... | 37 | 73 | 0.755013 |
dac3c90fff5f96159beee8df7f93fcb63919d7fd | 5,747 | ex | Elixir | clients/games/lib/google_api/games/v1/api/leaderboards.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/api/leaderboards.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/leaderboards.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 ... | 45.251969 | 213 | 0.655298 |
dac3cc45884d901a093b966c8ec262b6fb0d9cfa | 2,875 | exs | Elixir | .credo.exs | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | 16 | 2021-12-14T12:25:59.000Z | 2021-12-16T21:56:27.000Z | .credo.exs | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | 19 | 2021-12-06T08:35:30.000Z | 2022-03-23T18:20:46.000Z | .credo.exs | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | null | null | null | common_checks = [
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.LineEndings},
{Credo.Check.Consistency.SpaceAroundOperators},
{Credo.Check.Consistency.SpaceInParentheses},
{Credo.Check.Consistency.TabsOrSpaces},
{Credo.Check.Design.AliasUsage, if_called_more_often_than: 2, if_nested_dee... | 37.337662 | 162 | 0.724174 |
dac4262b4078a06f0576759f1eeddeafe1601957 | 2,948 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.944444 | 171 | 0.682157 |
dac46d64ff9e3b2aa8ddc8423dba96f58f685e99 | 1,727 | ex | Elixir | test/support/test_helpers.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | test/support/test_helpers.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule Health.TestHelper do
alias Health.Accounts
alias Health.Data.Periods
import Plug.Test
@user_attrs %{
name: "some name",
timezone: "America/New_York",
credential: %{email: "user@user.com", password: "password", password_confirmation: "password"}
}
@period_attrs %{name: "some name"}
@... | 18.771739 | 98 | 0.612044 |
dac47356dcfb952df4652212830c1a3aa17759ba | 991 | exs | Elixir | elixir/rf.exs | standupdev/rf | f0ba16cc5491422b43d9df0fb1b4c865033ea4f5 | [
"BSD-3-Clause"
] | 13 | 2018-10-22T23:03:13.000Z | 2021-09-27T02:51:30.000Z | elixir/rf.exs | standupdev/rf | f0ba16cc5491422b43d9df0fb1b4c865033ea4f5 | [
"BSD-3-Clause"
] | null | null | null | elixir/rf.exs | standupdev/rf | f0ba16cc5491422b43d9df0fb1b4c865033ea4f5 | [
"BSD-3-Clause"
] | 1 | 2019-05-26T00:26:33.000Z | 2019-05-26T00:26:33.000Z | #! /usr/bin/env elixir
defmodule RuneFinder do
defp display(code, name) do
rune = <<String.to_integer(code, 16)::utf8>>
IO.puts("U+#{code}\t#{rune}\t#{name}")
end
defp select(line_stream, query_words) do
Enum.reduce(line_stream, 0, fn line, count ->
[code, name | _] = String.split(line, ";")
... | 19.82 | 60 | 0.58224 |
dac48eefb2d7981535699dcb6fd4eccda36b71d3 | 1,674 | exs | Elixir | test/block_types_test.exs | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 1 | 2020-05-20T18:31:40.000Z | 2020-05-20T18:31:40.000Z | test/block_types_test.exs | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 11 | 2020-05-06T13:32:43.000Z | 2020-05-15T19:18:39.000Z | test/block_types_test.exs | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | null | null | null | defmodule ColonelKurtzTest.BlockTypesTest do
@moduledoc false
use ExUnit.Case, async: true
use ColonelKurtzTest.BlockBuilders
use ColonelKurtzTest.TestConfig
alias ColonelKurtzTest.Blocks
alias ColonelKurtzTest.BlockTypes.ExampleBlock
doctest ColonelKurtz.BlockTypes
describe "BlockTypes" do
test ... | 27.9 | 94 | 0.667264 |
dac503d76e8b5728447f698c87ccd9d3e46bb0aa | 10,608 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/mobile_device.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/mobile_device.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/mobile_device.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... | 62.769231 | 570 | 0.68175 |
dac54ee0e931837764a7aed4a1eb9d50025ba6c1 | 579 | ex | Elixir | lib/eetoul/commands/unarchive.ex | ramonsnir/eetoul-dup | b1faf7ca14867332f48eb144a89c97140deeb4e9 | [
"MIT"
] | null | null | null | lib/eetoul/commands/unarchive.ex | ramonsnir/eetoul-dup | b1faf7ca14867332f48eb144a89c97140deeb4e9 | [
"MIT"
] | null | null | null | lib/eetoul/commands/unarchive.ex | ramonsnir/eetoul-dup | b1faf7ca14867332f48eb144a89c97140deeb4e9 | [
"MIT"
] | null | null | null | defmodule Eetoul.Commands.Unarchive do
use Eetoul.CommandDSL
alias Eetoul.RepoUtils
def description, do: "unarchives the Eetoul spec"
command do
archived_release :archived_release
flag :force
end
def run repo, args do
{:ok, _} = RepoUtils.commit repo, "refs/heads/eetoul-spec", "unarchived rel... | 28.95 | 128 | 0.690846 |
dac554576da3dacbf17de0616055985d3294635a | 2,432 | ex | Elixir | lib/rethinkdb/pseudotypes.ex | anandtrex/rethinkdb-elixir | ab80ce6110956acf456a1cce0d9f167034e43e98 | [
"MIT"
] | null | null | null | lib/rethinkdb/pseudotypes.ex | anandtrex/rethinkdb-elixir | ab80ce6110956acf456a1cce0d9f167034e43e98 | [
"MIT"
] | null | null | null | lib/rethinkdb/pseudotypes.ex | anandtrex/rethinkdb-elixir | ab80ce6110956acf456a1cce0d9f167034e43e98 | [
"MIT"
] | null | null | null | defmodule RethinkDB.Pseudotypes do
@moduledoc false
defmodule Binary do
@moduledoc false
defstruct data: nil
def parse(%{"$reql_type$" => "BINARY", "data" => data}) do
%__MODULE__{data: :base64.decode(data)}
end
end
defmodule Geometry do
@moduledoc false
defmodule Point do
... | 29.658537 | 97 | 0.637336 |
dac56059cfb1dc833d7093e9d10e46ae7b54b0ff | 1,111 | ex | Elixir | apps/ewallet/lib/ewallet/policies/token_policy.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/token_policy.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/token_policy.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... | 31.742857 | 74 | 0.738074 |
dac5618c8ed29d500a2a00714c105888aa75838b | 3,772 | exs | Elixir | test/scenic_new_test.exs | crertel/scenic_new | dabf3f7298366a30762a3ab904d824199d13967a | [
"Apache-2.0"
] | null | null | null | test/scenic_new_test.exs | crertel/scenic_new | dabf3f7298366a30762a3ab904d824199d13967a | [
"Apache-2.0"
] | null | null | null | test/scenic_new_test.exs | crertel/scenic_new | dabf3f7298366a30762a3ab904d824199d13967a | [
"Apache-2.0"
] | null | null | null | Code.require_file("mix_helper.exs", __DIR__)
defmodule Mix.Tasks.Scenic.NewTest do
use ExUnit.Case, async: false
import ScenicNew.MixHelper
import ExUnit.CaptureIO
@app_name "scenic_demo"
@module_name "ScenicDemo"
test "new.example with defaults" do
in_tmp("new with defaults", fn ->
assert cap... | 33.981982 | 98 | 0.59438 |
dac5c944b935a86ac329059dcbd907c3f2e88b30 | 2,006 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/linear.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/linear.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/linear.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... | 37.849057 | 383 | 0.701396 |
dac5da1491db7ae1b9119f6cb63e9c6353c3f7be | 3,931 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_suite_overview.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_suite_overview.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_suite_overview.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... | 57.808824 | 372 | 0.720936 |
dac5e59a516bc308a9287bebb90f55f7144f8610 | 2,214 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/user.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/user.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/user.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.525424 | 343 | 0.685185 |
dac63f51e11621712583d7b7a307a20ed6502b69 | 2,914 | exs | Elixir | config/prod.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 19 | 2017-04-27T14:00:16.000Z | 2021-06-08T20:47:39.000Z | config/prod.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 3 | 2017-05-17T13:13:33.000Z | 2017-05-29T15:08:30.000Z | config/prod.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 4 | 2017-07-27T16:15:22.000Z | 2021-06-08T20:47:45.000Z | use Mix.Config
# Configuration for production environment.
# It should read environment variables to follow 12 factor apps convention.
# Do not print debug messages in production
# and handle all other reports by Elixir Logger with JSON back-end
# SASL reports turned off because of their verbosity.
config :logger,
... | 34.282353 | 115 | 0.717227 |
dac65ee77c9dddc3bffaaa2a166ddc9ab2e9cdb7 | 14,905 | exs | Elixir | test/phoenix_live_view/html_tokenizer_test.exs | optikfluffel/phoenix_live_view | d26aade43e85a58e4647abbc17003118d9488b5c | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_tokenizer_test.exs | optikfluffel/phoenix_live_view | d26aade43e85a58e4647abbc17003118d9488b5c | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_tokenizer_test.exs | optikfluffel/phoenix_live_view | d26aade43e85a58e4647abbc17003118d9488b5c | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLTokenizerTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView.HTMLTokenizer.ParseError
defp tokenize(text) do
Phoenix.LiveView.HTMLTokenizer.tokenize(text, "nofile", 0, [])
end
describe "text" do
test "represented as {:text, value}" do
assert tokenize("Hel... | 26.616071 | 102 | 0.503858 |
dac6a878e5da082243e28c3f8478f928af06cdde | 2,334 | exs | Elixir | test/test_helper.exs | moogle19/oban | b63036db6fae389832dae3eb9209d33ce4d5f471 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | moogle19/oban | b63036db6fae389832dae3eb9209d33ce4d5f471 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | moogle19/oban | b63036db6fae389832dae3eb9209d33ce4d5f471 | [
"Apache-2.0"
] | null | null | null | Code.put_compiler_option(:warnings_as_errors, true)
Logger.configure(level: :warn)
ExUnit.start()
Oban.Test.Repo.start_link()
defmodule Oban.Case do
@moduledoc false
use ExUnit.CaseTemplate
alias Oban.Integration.Worker
alias Oban.Job
alias Oban.Test.Repo
using do
quote do
use ExUnitProperti... | 20.295652 | 92 | 0.647815 |
dac6b20623ef581fdde3fb92c24883a8dd4df2dd | 615 | exs | Elixir | test/pushex/apns/client/ssl_test.exs | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 69 | 2016-03-29T15:35:29.000Z | 2018-06-27T14:57:23.000Z | test/pushex/apns/client/ssl_test.exs | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 9 | 2016-04-29T09:14:49.000Z | 2017-10-31T02:08:14.000Z | test/pushex/apns/client/ssl_test.exs | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 6 | 2016-08-26T12:56:05.000Z | 2018-06-21T23:51:00.000Z | defmodule Pushex.APNS.Client.SSLTest do
use Pushex.Case
alias Pushex.APNS.Response
alias Pushex.APNS.Client.SSL
test "generate_response" do
results = [:ok, :ok, {:error, :invalid}]
assert %Response{} = response = SSL.generate_response(results)
assert response.success == 2
assert response.fail... | 27.954545 | 71 | 0.692683 |
dac6c8f6e15463e5e4974ddf0bade03b392e5f46 | 1,549 | exs | Elixir | apps/artemis/test/artemis/schemas/system_task_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/test/artemis/schemas/system_task_test.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/test/artemis/schemas/system_task_test.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.SystemTaskTest do
use Artemis.DataCase
use ExUnit.Case, async: true
import Artemis.Factories
alias Artemis.SystemTask
describe "changeset - validations" do
test "extra_params" do
struct = struct(Artemis.SystemTask)
# With valid value
params = params_for(:system_tas... | 22.128571 | 72 | 0.666882 |
dac72c3437c7bf4daf5d180af9f35ed28454b94b | 450 | ex | Elixir | lib/inmana/Restaurants/restaurant/create.ex | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | null | null | null | lib/inmana/Restaurants/restaurant/create.ex | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | null | null | null | lib/inmana/Restaurants/restaurant/create.ex | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | null | null | null | defmodule Inmana.Restaurants.Restaurant.Create do
alias Inmana.Repo
alias Inmana.Restaurants.InputsVerification.Changeset
alias Inmana.Restaurants.Schemas.Restaurant
def call(params) do
params
|> Changeset.changeset()
|> Repo.insert()
|> handle_insert()
end
defp handle_insert({:ok, %Resta... | 25 | 93 | 0.715556 |
dac7334831256c6ba2456e5c9c43126a22cb0ec6 | 6,749 | exs | Elixir | token_registry/test/token_registry/registry_test.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | 1 | 2021-12-18T16:17:19.000Z | 2021-12-18T16:17:19.000Z | token_registry/test/token_registry/registry_test.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | token_registry/test/token_registry/registry_test.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | defmodule TokenRegistry.RegistryTest do
use TokenRegistry.DataCase
alias TokenRegistry.Registry
describe "tokens" do
alias TokenRegistry.Registry.Token
@valid_attrs %{metadata: %{}, name: "some name", project_uri: "some project_uri", symbol: "some symbol"}
@update_attrs %{metadata: %{}, name: "some... | 34.968912 | 133 | 0.676248 |
dac760b45cd782900052c8fd31c56b8414500868 | 44,291 | ex | Elixir | lib/astarte_realm_management/queries.ex | rbino/astarte_realm_management | 7a7ad91f8f455f8204576c55bacfa801130d73f0 | [
"Apache-2.0"
] | null | null | null | lib/astarte_realm_management/queries.ex | rbino/astarte_realm_management | 7a7ad91f8f455f8204576c55bacfa801130d73f0 | [
"Apache-2.0"
] | null | null | null | lib/astarte_realm_management/queries.ex | rbino/astarte_realm_management | 7a7ad91f8f455f8204576c55bacfa801130d73f0 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# 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 appl... | 33.861621 | 198 | 0.672326 |
dac77942e964757df75fd094372a7f2d00942fdc | 18,247 | exs | Elixir | test/sitemap/builders_url_test.exs | ssbb/sitemap | b18aef246e995aaec854681b9c90066472acabe5 | [
"MIT"
] | null | null | null | test/sitemap/builders_url_test.exs | ssbb/sitemap | b18aef246e995aaec854681b9c90066472acabe5 | [
"MIT"
] | null | null | null | test/sitemap/builders_url_test.exs | ssbb/sitemap | b18aef246e995aaec854681b9c90066472acabe5 | [
"MIT"
] | null | null | null | Code.require_file "../../test_helper.exs", __ENV__.file
defmodule Sitemap.BuildersUrlTest do
use ExUnit.Case
alias Sitemap.Builders.Url
import SweetXml
require XmlBuilder
setup do
Sitemap.Builders.File.finalize_state
Sitemap.Builders.Indexfile.finalize_state
Sitemap.Namer.finalize_state :file
... | 42.043779 | 224 | 0.622678 |
dac77cab47df25cb7c268489f1313472becf8889 | 2,674 | ex | Elixir | lib/wechat/work/customer/welcome.ex | feng19/wechat | 431c22818c60cd01fc5c676aa060feb303d0c444 | [
"Apache-2.0"
] | 7 | 2021-01-22T04:07:29.000Z | 2021-12-14T14:01:30.000Z | lib/wechat/work/customer/welcome.ex | feng19/wechat | 431c22818c60cd01fc5c676aa060feb303d0c444 | [
"Apache-2.0"
] | 1 | 2021-03-17T15:44:26.000Z | 2021-03-17T15:44:26.000Z | lib/wechat/work/customer/welcome.ex | feng19/wechat | 431c22818c60cd01fc5c676aa060feb303d0c444 | [
"Apache-2.0"
] | 2 | 2021-03-17T14:35:56.000Z | 2021-08-10T07:44:10.000Z | defmodule WeChat.Work.Customer.Welcome do
@moduledoc "客户欢迎语"
import WeChat.Utils, only: [work_doc_link_prefix: 0]
alias WeChat.Work
@doc_link "#{work_doc_link_prefix()}/90135"
@typedoc "群欢迎语的素材id"
@type template_id :: String.t()
@doc """
发送新客户欢迎语 -
[官方文档](#{@doc_link}/92137){:target="_blank"}
-... | 33.012346 | 144 | 0.724009 |
dac79984cb682d572099010627ca7e63ea306a13 | 779 | ex | Elixir | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/consistency_policy.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.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/consistency_policy.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/consistency_policy.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.CosmosDb.Model.ConsistencyPolicy do
@moduledoc """
The consistency policy for the Cosmos DB database accou... | 25.966667 | 100 | 0.72914 |
dac7aae07dd03c4d49e871db325e5d1de7e25097 | 266 | exs | Elixir | config/test.exs | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | 5 | 2020-06-18T11:44:20.000Z | 2021-08-28T10:39:57.000Z | config/test.exs | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | 1 | 2021-03-10T07:41:31.000Z | 2021-03-10T07:41:31.000Z | config/test.exs | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :saitama, SaitamaWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.181818 | 56 | 0.736842 |
dac7abb5cd204dcbb413a93a8368a36422b2dc3b | 889 | ex | Elixir | test/fixtures/paginator_data.ex | aai/kerosene | cd960cb7ce4cf4c4a9212f570083639ff4cd2b40 | [
"MIT"
] | 238 | 2016-03-10T05:22:45.000Z | 2022-02-05T11:55:00.000Z | test/fixtures/paginator_data.ex | aai/kerosene | cd960cb7ce4cf4c4a9212f570083639ff4cd2b40 | [
"MIT"
] | 53 | 2016-06-26T16:20:47.000Z | 2021-12-23T12:41:30.000Z | test/fixtures/paginator_data.ex | aai/kerosene | cd960cb7ce4cf4c4a9212f570083639ff4cd2b40 | [
"MIT"
] | 47 | 2016-03-23T09:13:25.000Z | 2021-12-10T05:55:26.000Z | defmodule PaginatorData do
def page_list() do
[
{"First", 1, "/products?category=25&page=1", false},
{"<", 6, "/products?category=25&page=6", false},
{2, 2, "/products?category=25&page=2", false},
{3, 3, "/products?category=25&page=3", false},
{4, 4, "/products?category=25&page=4", f... | 40.409091 | 58 | 0.572553 |
dac7c3ba1129c6eb5e8893fa2abb38621b5350c5 | 39,860 | ex | Elixir | lib/event_store.ex | datafoo/eventstore | b862c3c6c4af75afe44ab882d8d96c940018341f | [
"MIT"
] | null | null | null | lib/event_store.ex | datafoo/eventstore | b862c3c6c4af75afe44ab882d8d96c940018341f | [
"MIT"
] | null | null | null | lib/event_store.ex | datafoo/eventstore | b862c3c6c4af75afe44ab882d8d96c940018341f | [
"MIT"
] | null | null | null | defmodule EventStore do
@moduledoc """
EventStore allows you to define one or more event store modules to append,
read, and subscribe to streams of events.
It uses PostgreSQL (v9.5 or later) as the underlying storage engine.
## Defining an event store
An event store module is defined in your own applicat... | 36.105072 | 101 | 0.66144 |
dac7eac11f812602bc64a0b27710f09d593459be | 1,571 | ex | Elixir | web/web.ex | retrixer/retrixer | 5efeb9cd51fdf728cb06a4be5678ca824dc50568 | [
"MIT"
] | 3 | 2015-11-11T11:49:02.000Z | 2015-11-12T18:20:43.000Z | web/web.ex | retrixer/retrixer | 5efeb9cd51fdf728cb06a4be5678ca824dc50568 | [
"MIT"
] | null | null | null | web/web.ex | retrixer/retrixer | 5efeb9cd51fdf728cb06a4be5678ca824dc50568 | [
"MIT"
] | null | null | null | defmodule Retrixer.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Retrixer.Web, :controller
use Retrixer.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them ... | 20.402597 | 88 | 0.660726 |
dac7f9456245dc808f27ffb0d919302e4471bfb2 | 1,530 | ex | Elixir | lib/rocketpay/accounts/operation.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | 2 | 2021-03-01T09:15:57.000Z | 2021-03-02T23:30:57.000Z | lib/rocketpay/accounts/operation.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | lib/rocketpay/accounts/operation.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | defmodule Rocketpay.Accounts.Operation do
alias Ecto.Multi
alias Rocketpay.Account
def call(%{"id" => id, "value" => value}, operation) do
operation_name = account_operation_name(operation)
Multi.new()
|> Multi.run(operation_name, fn repo, _changes -> get_account(repo, id) end)
|> Multi.run(oper... | 28.333333 | 88 | 0.675163 |
dac817d0471050d0c3f4996a05ea5be767b26de9 | 735 | ex | Elixir | lib/exeex/adapter.ex | khattori/exeex | cc7b907afb87b29f116d6ae94e3a2ca8cecb6d81 | [
"MIT"
] | null | null | null | lib/exeex/adapter.ex | khattori/exeex | cc7b907afb87b29f116d6ae94e3a2ca8cecb6d81 | [
"MIT"
] | null | null | null | lib/exeex/adapter.ex | khattori/exeex | cc7b907afb87b29f116d6ae94e3a2ca8cecb6d81 | [
"MIT"
] | null | null | null | defmodule ExEEx.Adapter do
@moduledoc """
Specifies the minimal API required from storage adapters.
"""
@callback expand_path(filepath :: String.t, rootdir :: String.t) :: String.t
@callback expand_path(filepath :: String.t) :: String.t
@callback read(filepath :: String.t, rootdir :: String.t) :: {:ok, Str... | 25.344828 | 95 | 0.640816 |
dac81f28867ff6d74a831258a2e4683e6bbc9416 | 16,794 | exs | Elixir | test/group_manager/data/message_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | 1 | 2016-04-12T02:05:30.000Z | 2016-04-12T02:05:30.000Z | test/group_manager/data/message_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | null | null | null | test/group_manager/data/message_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | null | null | null | defmodule GroupManager.Data.MessageTest do
use ExUnit.Case
require GroupManager.Data.Message
alias GroupManager.Data.Message
alias GroupManager.Data.LocalClock
alias GroupManager.Data.WorldClock
alias GroupManager.Data.TimedSet
alias GroupManager.Data.TimedItem
alias GroupManager.Data.Item
alias Chat... | 43.172237 | 108 | 0.691854 |
dac84d9c19f5f65e577ed770f53a2a3189538c76 | 1,402 | ex | Elixir | pump-controller/lib/oracle.ex | GabrielaMafra/pump-station | 85cf8145b271f074d412d89c0492e5a877b33071 | [
"MIT"
] | 1 | 2021-07-20T21:58:57.000Z | 2021-07-20T21:58:57.000Z | pump-controller/lib/oracle.ex | GabrielaMafra/pump-station | 85cf8145b271f074d412d89c0492e5a877b33071 | [
"MIT"
] | null | null | null | pump-controller/lib/oracle.ex | GabrielaMafra/pump-station | 85cf8145b271f074d412d89c0492e5a877b33071 | [
"MIT"
] | 1 | 2021-10-10T08:43:53.000Z | 2021-10-10T08:43:53.000Z | defmodule Oracle do
@water_level_changes ["waterLevelUp", "waterLevelDown"]
@pump_status_changes ["successON", "successOFF"]
def start do
:global.register_name("oracle", self())
listen()
end
def listen do
IO.puts("Oracle at [#{inspect(self())}] is listening")
receive do
{p, as} when ... | 23.762712 | 98 | 0.611983 |
dac8cfeee4204398596434e6f7a83cc8f7bec531 | 2,040 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/embedded_object_position.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/embedded_object_position.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/embedded_object_position.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... | 38.490566 | 162 | 0.723529 |
dac8dc4571545608cf68fc0f0b5820be43ef51e4 | 304 | ex | Elixir | lib/tune/spotify/schema.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 206 | 2020-08-23T17:50:03.000Z | 2022-03-28T04:39:01.000Z | lib/tune/spotify/schema.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 112 | 2020-08-21T08:26:38.000Z | 2022-03-31T06:11:06.000Z | lib/tune/spotify/schema.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 15 | 2020-08-25T02:30:23.000Z | 2021-12-16T14:19:35.000Z | defmodule Tune.Spotify.Schema do
@moduledoc """
Includes types and functions shared across schemas.
"""
@type id :: String.t()
@type uri :: String.t()
@type thumbnail_size :: :small | :medium | :large
@type thumbnails :: %{
optional(thumbnail_size()) => String.t()
}
end
| 23.384615 | 53 | 0.618421 |
dac9051403d965d6609ad8df2d1ad51c77effe2e | 150 | exs | Elixir | config/prod.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 22 | 2017-06-22T02:50:34.000Z | 2022-01-26T20:43:21.000Z | config/prod.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 9 | 2018-10-08T22:56:56.000Z | 2018-10-18T20:41:55.000Z | config/prod.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 5 | 2018-10-06T16:30:48.000Z | 2022-01-26T20:43:26.000Z | use Mix.Config
config :logger,
level: :info,
# purge logs with lower level than this - removes calls from code
compile_time_purge_level: :info
| 21.428571 | 67 | 0.746667 |
dac9518d7175e84624caf2a70a3a16b06b4d7b51 | 1,491 | exs | Elixir | exercises/practice/prime-factors/test/prime_factors_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/prime-factors/test/prime_factors_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/prime-factors/test/prime_factors_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule PrimeFactorsTest do
use ExUnit.Case
# @tag :pending
test "1" do
assert PrimeFactors.factors_for(1) == []
end
@tag :pending
test "2" do
assert PrimeFactors.factors_for(2) == [2]
end
@tag :pending
test "3" do
assert PrimeFactors.factors_for(3) == [3]
end
@tag :pending
tes... | 19.88 | 81 | 0.647217 |
dac9543e6b8977557944c89977a9231b7932ca16 | 1,231 | ex | Elixir | test/support/lib/loops_with_friends/jam_collection/stub.ex | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | test/support/lib/loops_with_friends/jam_collection/stub.ex | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | test/support/lib/loops_with_friends/jam_collection/stub.ex | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | defmodule LoopsWithFriends.JamCollection.Stub do
@moduledoc """
Provides a subbed jam collection API for use in testing.
"""
@behaviour LoopsWithFriends.JamCollection
def new(opts \\ []) do
opts = Keyword.put_new(opts, :caller, self())
send opts[:caller], :called_jam_collection_new
%{}
end
... | 24.137255 | 79 | 0.704305 |
dac95bdc8a2e5f81a34af25f206c1e550d83ad49 | 1,125 | exs | Elixir | config/config.exs | hacksu/elixir-basics | 37e791d3f6a6af2ee328aadb1cb31c7f67492363 | [
"MIT"
] | null | null | null | config/config.exs | hacksu/elixir-basics | 37e791d3f6a6af2ee328aadb1cb31c7f67492363 | [
"MIT"
] | null | null | null | config/config.exs | hacksu/elixir-basics | 37e791d3f6a6af2ee328aadb1cb31c7f67492363 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752889 |
dac960c4344a5dcc705cb55f4b6b723db83f3d8f | 1,958 | exs | Elixir | config/prod.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | config/prod.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | config/prod.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | import 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,
# w... | 36.259259 | 79 | 0.706333 |
dac9786106a7c29e8e4a034a511bb6a148674dc5 | 3,677 | ex | Elixir | lib/conduit/plug/unwrap.ex | peek-travel/conduit | f37b96513769bdf70c89eebd77bb03023d248158 | [
"MIT"
] | 119 | 2016-11-21T13:19:22.000Z | 2021-11-07T17:29:05.000Z | lib/conduit/plug/unwrap.ex | peek-travel/conduit | f37b96513769bdf70c89eebd77bb03023d248158 | [
"MIT"
] | 104 | 2018-02-02T20:42:46.000Z | 2021-08-03T05:36:09.000Z | lib/conduit/plug/unwrap.ex | peek-travel/conduit | f37b96513769bdf70c89eebd77bb03023d248158 | [
"MIT"
] | 21 | 2018-08-03T02:38:21.000Z | 2022-03-16T18:26:58.000Z | defmodule Conduit.Plug.Unwrap do
@moduledoc """
Plug to help unwrap headers and fields from the message body
This can be helpful if your broker doesn't support message headers natively.
By default this plug expects the body to be a map containing 3 string keys:
* `"headers"` - will be put into the message ... | 33.427273 | 99 | 0.609464 |
dac99ec315a7874990da5fa37deb874c7010d5f5 | 1,110 | ex | Elixir | test/support/data_case.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/support/data_case.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/support/data_case.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ru... | 23.125 | 66 | 0.684685 |
dac9a04e4d2ce4a0bb134d5297c1a76391af7414 | 816 | exs | Elixir | apps/xee/test/xee/theme_test.exs | xeejp/xee | 669e5a8030948e6d37ee0d33d3b37b4abdc34001 | [
"MIT"
] | 11 | 2015-12-24T07:51:45.000Z | 2019-03-05T12:29:31.000Z | apps/xee/test/xee/theme_test.exs | xeejp/xee | 669e5a8030948e6d37ee0d33d3b37b4abdc34001 | [
"MIT"
] | 62 | 2015-12-25T02:58:20.000Z | 2020-03-04T06:52:11.000Z | apps/xee/test/xee/theme_test.exs | xeejp/xee | 669e5a8030948e6d37ee0d33d3b37b4abdc34001 | [
"MIT"
] | 1 | 2016-07-19T03:28:08.000Z | 2016-07-19T03:28:08.000Z | defmodule XeeWeb.ThemeTest do
use ExUnit.Case
alias Xee.Theme
test "granted?" do
id1 = 1
id2 = 2
id3 = 3
id4 = 4
theme1 = %Theme{}
theme2 = %Theme{granted: MapSet.new}
theme3 = %Theme{granted: MapSet.new [id2, id3]}
assert Theme.granted? theme1, id1
assert Theme.granted? theme... | 27.2 | 51 | 0.678922 |
dac9ba55e32e8fc5019a4e0863defacc24284d36 | 897 | ex | Elixir | lib/chat_api_web/controllers/newsletter_controller.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api_web/controllers/newsletter_controller.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api_web/controllers/newsletter_controller.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.NewsletterController do
use ChatApiWeb, :controller
require Logger
alias ChatApi.{Google, Newsletters}
@spec subscribe(Plug.Conn.t(), map()) :: Plug.Conn.t()
def subscribe(conn, %{"newsletter" => newsletter, "email" => email}) do
# TODO: improve error handling
try do
hand... | 28.03125 | 82 | 0.658863 |
dac9bbce7651680680d5fe965df2068a3902a748 | 764 | ex | Elixir | exercises/concept/freelancer-rates/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/freelancer-rates/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/freelancer-rates/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule FreelancerRates do
def daily_rate(hourly_rate) do
hourly_rate * 8.0
end
def apply_discount(before_discount, discount) do
before_discount - before_discount * (discount / 100.0)
end
def monthly_rate(hourly_rate, discount) do
monthly_rate_before_discount = daily_rate(hourly_rate) * 22.0
... | 33.217391 | 88 | 0.790576 |
dac9c31cf37745474b3925d537fca0789200f34e | 57 | ex | Elixir | lib/axon_web/views/layout_view.ex | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | lib/axon_web/views/layout_view.ex | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | lib/axon_web/views/layout_view.ex | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | defmodule AxonWeb.LayoutView do
use AxonWeb, :view
end
| 14.25 | 31 | 0.789474 |
dac9d36d33258a491dd6acf5ed9bfd1085949e5e | 742 | exs | Elixir | test/direct_output_test.exs | mnussbaumer/cssex | da3b0add68d766faacb459c14a8eb43ca32aa9f4 | [
"MIT"
] | 13 | 2021-03-16T15:02:08.000Z | 2021-09-22T02:40:25.000Z | test/direct_output_test.exs | mnussbaumer/cssex | da3b0add68d766faacb459c14a8eb43ca32aa9f4 | [
"MIT"
] | 3 | 2021-03-19T20:14:19.000Z | 2021-03-29T13:34:17.000Z | test/direct_output_test.exs | mnussbaumer/cssex | da3b0add68d766faacb459c14a8eb43ca32aa9f4 | [
"MIT"
] | null | null | null | defmodule CSSEx.DirectOutput.Test do
use ExUnit.Case, async: true
alias CSSEx.Parser
setup do
{:ok, cwd} = File.cwd()
final_base = Path.join([cwd, "test", "files", "direct_output"])
assert {:ok, _} = File.rm_rf(final_base)
refute File.exists?(final_base)
assert :ok = File.mkdir(final_base)
... | 27.481481 | 74 | 0.661725 |
dac9d85f9b1b3ec46db74a9239d495a3d3f718bc | 150 | exs | Elixir | test/test_helper.exs | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | 1 | 2021-12-13T15:50:00.000Z | 2021-12-13T15:50:00.000Z | test/test_helper.exs | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | null | null | null | test/test_helper.exs | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | 2 | 2022-01-09T18:12:17.000Z | 2022-01-23T22:12:51.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Spaceex.Repo, :manual)
Mox.defmock(Spaceex.SpaceFlight.ClientMock, for: Spaceex.SpaceFlight.Behaviour)
| 30 | 79 | 0.813333 |
dac9ee8fcd6645c45d028d978c724676b589c49c | 473 | exs | Elixir | priv/repo/migrations/20200711092923_add_package_report_comments_table.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | priv/repo/migrations/20200711092923_add_package_report_comments_table.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | priv/repo/migrations/20200711092923_add_package_report_comments_table.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.RepoBase.Migrations.AddCommentsTable do
use Ecto.Migration
def up do
create table(:package_report_comments) do
add(:text, :text, null: false)
add(:author_id, references(:users), null: false)
add(:package_report_id, references(:package_reports), null: false)
timestamps()... | 23.65 | 72 | 0.704017 |
dac9fda7eee9bf5f41f7f7623d8e01193832ace9 | 453 | exs | Elixir | examples/mnesia.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 717 | 2015-06-15T19:30:54.000Z | 2022-03-22T06:10:09.000Z | examples/mnesia.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 106 | 2015-06-25T05:38:05.000Z | 2021-12-08T23:17:19.000Z | examples/mnesia.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 60 | 2015-06-07T00:48:37.000Z | 2022-03-06T08:20:23.000Z | #
# iex --erl "+C multi_time_warp" -S mix run examples/mnesia.exs
#
defmodule Worker do
@behaviour Honeydew.Worker
def hello(thing) do
IO.puts "Hello #{thing}!"
end
end
defmodule App do
def start do
nodes = [node()]
:ok = Honeydew.start_queue(:my_queue, queue: {Honeydew.Queue.Mnesia, [disc_copies... | 19.695652 | 95 | 0.677704 |
daca1fb10caa43c0b47c0aad8af768e0346c361d | 751 | ex | Elixir | exercises/practice/grade-school/lib/school.ex | butterknight/elixir | c0c33b36f010f562ebf7910f81ccbc2ab461f183 | [
"MIT"
] | null | null | null | exercises/practice/grade-school/lib/school.ex | butterknight/elixir | c0c33b36f010f562ebf7910f81ccbc2ab461f183 | [
"MIT"
] | null | null | null | exercises/practice/grade-school/lib/school.ex | butterknight/elixir | c0c33b36f010f562ebf7910f81ccbc2ab461f183 | [
"MIT"
] | null | null | null | defmodule School do
@moduledoc """
Simulate students in a school.
Each student is in a grade.
"""
@type school :: any()
@doc """
Create a new, empty school.
"""
@spec new() :: school
def new() do
end
@doc """
Add a student to a particular grade in school.
"""
@spec add(school, String.t... | 19.763158 | 80 | 0.625832 |
daca4fe868ab766f61d245a73377299a3250bc54 | 5,175 | ex | Elixir | lib/snmp/agent/dsl.ex | mattjg908/elixir-snmp | a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9 | [
"MIT"
] | 6 | 2021-02-26T13:42:47.000Z | 2022-01-17T18:49:25.000Z | lib/snmp/agent/dsl.ex | mattjg908/elixir-snmp | a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9 | [
"MIT"
] | 2 | 2021-02-26T14:09:00.000Z | 2021-04-22T10:49:25.000Z | lib/snmp/agent/dsl.ex | mattjg908/elixir-snmp | a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9 | [
"MIT"
] | 1 | 2021-10-19T21:24:03.000Z | 2021-10-19T21:24:03.000Z | defmodule Snmp.Agent.DSL do
@moduledoc """
Defines macros for building SNMP Agent handler
"""
alias Snmp.Agent.Error
alias Snmp.Agent.Scope
alias Snmp.Mib.Vacm
@doc false
defmacro __using__(_opts) do
Module.register_attribute(__CALLER__.module, :mib, accumulate: true)
Module.register_attribute(... | 24.526066 | 83 | 0.627633 |
dacae4bc306c6ead3ee646c10161405d4ebae289 | 55 | ex | Elixir | lib/fish_web/views/blog_view.ex | wdiechmann/fish | b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8 | [
"MIT"
] | 1 | 2021-02-09T23:49:40.000Z | 2021-02-09T23:49:40.000Z | lib/fish_web/views/blog_view.ex | wdiechmann/fish | b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8 | [
"MIT"
] | null | null | null | lib/fish_web/views/blog_view.ex | wdiechmann/fish | b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8 | [
"MIT"
] | null | null | null | defmodule FishWeb.BlogView do
use FishWeb, :view
end
| 13.75 | 29 | 0.781818 |
dacb8096af69e35f8911c48fb74eb7f3273bbebd | 1,874 | exs | Elixir | test/api/list_test.exs | fuww/ex_chimp | f112fe33b4d6f328d29d822fd055afbb1414b0c4 | [
"MIT"
] | null | null | null | test/api/list_test.exs | fuww/ex_chimp | f112fe33b4d6f328d29d822fd055afbb1414b0c4 | [
"MIT"
] | null | null | null | test/api/list_test.exs | fuww/ex_chimp | f112fe33b4d6f328d29d822fd055afbb1414b0c4 | [
"MIT"
] | null | null | null | defmodule ExChimp.ListTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
setup_all do
HTTPoison.start
end
@fixtures_dir Path.join([__DIR__, "..", "fixtures"])
@lists_success_json File.read!(Path.join(@fixtures_dir, "lists.json"))
@list_members_success_json File.read... | 41.644444 | 106 | 0.623799 |
dacb82d7135a707fadeef63a0a50c4ebbeea06ff | 1,238 | ex | Elixir | lib/ita_web/endpoint.ex | oleksandr-dyachenko/ita | e7287bb79c19b4f7e5decc4cbd5291c70ad53b8f | [
"MIT"
] | null | null | null | lib/ita_web/endpoint.ex | oleksandr-dyachenko/ita | e7287bb79c19b4f7e5decc4cbd5291c70ad53b8f | [
"MIT"
] | null | null | null | lib/ita_web/endpoint.ex | oleksandr-dyachenko/ita | e7287bb79c19b4f7e5decc4cbd5291c70ad53b8f | [
"MIT"
] | null | null | null | defmodule ItaWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ita
socket "/socket", ItaWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static files in p... | 26.340426 | 69 | 0.703554 |
dacbb38d4f87741e222323f8346b5d22a6551b4c | 3,195 | ex | Elixir | lib/is/validators/length.ex | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | 17 | 2018-06-23T11:16:17.000Z | 2021-11-17T18:28:37.000Z | lib/is/validators/length.ex | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | null | null | null | lib/is/validators/length.ex | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | 2 | 2018-10-24T20:12:54.000Z | 2019-12-25T17:45:41.000Z | defmodule Is.Validators.Length do
@moduledoc """
Length validator.
You can implement the protocol `Is.Validators.Length.Of` to get custom structure length.
## Examples
iex> Is.validate("1", length: 1)
[]
iex> Is.validate("123", length: [min: 3])
[]
iex> Is.validate("123", leng... | 26.404959 | 100 | 0.581534 |
dacbed7043a945c4d6e2e243168c69c26a5af615 | 299 | ex | Elixir | otp/stack_stash/lib/stack/subsupervisor.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | otp/stack_stash/lib/stack/subsupervisor.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | otp/stack_stash/lib/stack/subsupervisor.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | defmodule Stack.SubSupervisor do
use Supervisor
def start_link(stash_pid) do
{ok, _pid} = Supervisor.start_child(__MODULE__, stash_pid)
end
def init(stash_pid) do
child_processes = [ worker(Stack.Server, [stash_pid]) ]
supervise child_processes, strategy: :one_for_one
end
end
| 27.181818 | 62 | 0.745819 |
dacbf5576f4b144937fe450a995aa1f7be362866 | 23,523 | exs | Elixir | lib/elixir/test/elixir/module/checker_test.exs | ShPakvel/elixir | 75e5609364a2358f7eb475478ec8bdec98ddf07c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/checker_test.exs | ShPakvel/elixir | 75e5609364a2358f7eb475478ec8bdec98ddf07c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/checker_test.exs | ShPakvel/elixir | 75e5609364a2358f7eb475478ec8bdec98ddf07c | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Module.CheckerTest do
use ExUnit.Case
import ExUnit.CaptureIO
setup_all do
previous = Application.get_env(:elixir, :ansi_enabled, false)
Application.put_env(:elixir, :ansi_enabled, false)
on_exit(fn -> Application.put_env(:elixir, :ansi_ena... | 20.983943 | 117 | 0.493517 |
dacc2168c130b46b3a0bba58adc09f554783b9ad | 1,745 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__explicit_content_detection_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__explicit_content_detection_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__explicit_content_detection_config.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... | 31.160714 | 111 | 0.753582 |
dacc23bae0814a57a1a6b6269b78411e3cbc1945 | 407 | ex | Elixir | lib/akkad_web/CORS.ex | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | 1 | 2022-03-05T00:05:26.000Z | 2022-03-05T00:05:26.000Z | lib/akkad_web/CORS.ex | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | lib/akkad_web/CORS.ex | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | defmodule AkkadWeb.CORS do
use Corsica.Router,
origins: [
"http://0.0.0.0:4000"
],
allow_credentials: true,
max_age: 600,
allow_headers: [
"accept",
"content-type",
"authorization",
"x-requested-with"
],
allow_methods: :all,
log: [rejected: :error, invalid... | 20.35 | 61 | 0.574939 |
dacc2fce0a60adc3391bccb0609812a1e7946bbe | 26,159 | ex | Elixir | lib/sourceror.ex | doorgan/sourceror | df951515262f71723dffee27f84bb6b4017fcb42 | [
"Apache-2.0"
] | 118 | 2021-05-26T05:00:32.000Z | 2022-03-13T16:25:36.000Z | lib/sourceror.ex | doorgan/sourceror | df951515262f71723dffee27f84bb6b4017fcb42 | [
"Apache-2.0"
] | 35 | 2021-06-02T20:18:48.000Z | 2022-03-31T20:52:22.000Z | lib/sourceror.ex | doorgan/sourceror | df951515262f71723dffee27f84bb6b4017fcb42 | [
"Apache-2.0"
] | 5 | 2021-06-15T18:01:04.000Z | 2022-02-13T09:14:28.000Z | defmodule Sourceror do
@external_resource "README.md"
@moduledoc @external_resource
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
alias Sourceror.TraversalState
@line_fields ~w[closing do end end_of_expression]a
# @start_fields ~w[line do]a
@end... | 29.96449 | 106 | 0.604496 |
dacc31bf555fba776201631d2ab3d5e5aee4c211 | 1,601 | ex | Elixir | lib/mix_phoenix_deploy/version_manager.ex | Dania02525/mix_phoenix_deploy | fdb48555d96506f4e57cd38a8abd0f254d7a891e | [
"MIT"
] | 1 | 2017-10-05T17:38:43.000Z | 2017-10-05T17:38:43.000Z | lib/mix_phoenix_deploy/version_manager.ex | Dania02525/mix_phoenix_deploy | fdb48555d96506f4e57cd38a8abd0f254d7a891e | [
"MIT"
] | null | null | null | lib/mix_phoenix_deploy/version_manager.ex | Dania02525/mix_phoenix_deploy | fdb48555d96506f4e57cd38a8abd0f254d7a891e | [
"MIT"
] | null | null | null | defmodule MixPhoenixDeploy.VersionManager do
import MixPhoenixDeploy.Helper
def prepare_folders do
with {:ok, dirs, 0} <- find_release_dirs(),
{:ok, rm_msg, 0} <- remove_old_versions(dirs),
{:ok, _, 0} <- put_new_version()
do
{:ok, "Found #{Enum.count(dirs)} existing versions " <> r... | 25.822581 | 122 | 0.553404 |
dacc348383d2101d69c2560ed9a94733c90665f7 | 169 | exs | Elixir | config/config.exs | Gauthamiv/crawler | 394b09d4e8f4c15abefc6295c1b3e72fb82d5416 | [
"MIT"
] | 1 | 2018-08-15T13:26:19.000Z | 2018-08-15T13:26:19.000Z | config/config.exs | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | null | null | null | config/config.exs | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, backends: [:console], compile_time_purge_level: :info
if File.exists?("config/#{Mix.env}.exs") do
import_config("#{Mix.env}.exs")
end
| 21.125 | 69 | 0.715976 |
dacc3a6c61a7ae53f383a1376333faa40d0a230d | 447 | exs | Elixir | config/test.exs | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | config/test.exs | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | config/test.exs | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :bird_watch, BirdWatchWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :couchdb_connec... | 22.35 | 56 | 0.720358 |
dacc435ba2d0148f553f03852e217d96f87790ba | 170 | exs | Elixir | priv/repo/migrations/20170624215000_add_bg.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | priv/repo/migrations/20170624215000_add_bg.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | priv/repo/migrations/20170624215000_add_bg.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | defmodule Namuraid.Repo.Migrations.AddOrientation do
use Ecto.Migration
def change do
alter table(:sponsor) do
add :background, :string
end
end
end
| 15.454545 | 52 | 0.711765 |
dacc45c067206e85011f0ee0647a77f549f15205 | 1,384 | exs | Elixir | mix.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | mix.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | mix.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Mixfile do
use Mix.Project
@version "0.16.1"
def project do
[app: :wallaby,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
description: "... | 24.280702 | 80 | 0.543353 |
dacc54b5318f5c18b35c6caa166494088411a72f | 4,938 | exs | Elixir | integration_test/chrome/starting_sessions_test.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | null | null | null | integration_test/chrome/starting_sessions_test.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | 3 | 2021-08-18T20:39:11.000Z | 2022-01-11T22:45:06.000Z | integration_test/chrome/starting_sessions_test.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.Chrome.StartingSessionsTest do
use ExUnit.Case, async: false
import Wallaby.SettingsTestHelpers
import Wallaby.TestSupport.ApplicationControl
import Wallaby.TestSupport.TestScriptUtils
import Wallaby.TestSupport.TestWorkspace
alias Wallaby.Chrome
alias Wallaby.TestSupport.C... | 32.27451 | 93 | 0.727825 |
dacc71dd81ad778d49dd44459d9463cc3b26187f | 4,128 | exs | Elixir | test/Neuron/neuron_test.exs | leighshepperson/cerebrum | 58766cc2edde5694e92a8aa45069467e7ca4e49e | [
"Apache-2.0"
] | 2 | 2017-04-05T03:57:22.000Z | 2017-12-03T19:54:07.000Z | test/Neuron/neuron_test.exs | leighshepperson/cerebrum | 58766cc2edde5694e92a8aa45069467e7ca4e49e | [
"Apache-2.0"
] | null | null | null | test/Neuron/neuron_test.exs | leighshepperson/cerebrum | 58766cc2edde5694e92a8aa45069467e7ca4e49e | [
"Apache-2.0"
] | null | null | null | defmodule Cerebrum.Neuron.NeuronTest do
use ExUnit.Case, async: true
import Cerebrum.Neuron
doctest Cerebrum.Neuron
test "Creates n-many neurons" do
bias_function = fn _ -> 0.5 end
activation_function = "sigmoid"
number_of_neurons = 3
expected =
[
%Cerebrum.Neuron{name: "neuron0",... | 34.4 | 110 | 0.640504 |
dacc86663cfec83a84ca6ae3dcb1fb21c35486d7 | 2,131 | ex | Elixir | tools/astarte_import/lib/astarte/import/cli.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | tools/astarte_import/lib/astarte/import/cli.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | tools/astarte_import/lib/astarte/import/cli.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# 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 appl... | 31.80597 | 96 | 0.620366 |
daccb665e41cdb74b22cbb990455e7c2fef544a3 | 6,533 | ex | Elixir | lib/grizzly/zwave/command_classes/network_management_inclusion.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/command_classes/network_management_inclusion.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/command_classes/network_management_inclusion.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.CommandClasses.NetworkManagementInclusion do
@moduledoc """
Network Management Inclusion Command Class
This command class provides the commands for adding and removing Z-Wave nodes
to the Z-Wave network
"""
@behaviour Grizzly.ZWave.CommandClass
alias Grizzly.ZWave.{DSK, CommandC... | 37.982558 | 97 | 0.707485 |
daccc6f8a08d1fb9929fe13c260b1b3c5dfe3325 | 9,509 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/version.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/version.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/version.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 76.072 | 390 | 0.7556 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.