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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff8d52f968363a7c2efd81c823d455893e3c76aa | 1,379 | ex | Elixir | lib/hierbautberlin/geo_data/geo_item.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | null | null | null | lib/hierbautberlin/geo_data/geo_item.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | null | null | null | lib/hierbautberlin/geo_data/geo_item.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | null | null | null | defmodule Hierbautberlin.GeoData.GeoItem do
use Ecto.Schema
import Ecto.Changeset
alias Hierbautberlin.GeoData.Source
@states [
"intended",
"in_preparation",
"in_planning",
"under_construction",
"active",
"finished",
nil
]
schema "geo_items" do
field :external_id, :string
... | 22.241935 | 60 | 0.649021 |
ff8d55d43f707336174bd60e4a518175156e5506 | 16,268 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_ssl_certificates.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_ssl_certificates.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/api/region_ssl_certificates.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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... | 49.90184 | 434 | 0.651647 |
ff8d836252d05f193acc23f68983d57b093c833c | 167 | exs | Elixir | test/builds_test.exs | kddeisz/travis.ex | 5d54cf61342f1b470d363c10b608a28ce97ee580 | [
"MIT"
] | null | null | null | test/builds_test.exs | kddeisz/travis.ex | 5d54cf61342f1b470d363c10b608a28ce97ee580 | [
"MIT"
] | null | null | null | test/builds_test.exs | kddeisz/travis.ex | 5d54cf61342f1b470d363c10b608a28ce97ee580 | [
"MIT"
] | null | null | null | defmodule Travis.BuildsTest do
use ExUnit.Case
test "#show" do
%{"commit" => %{"committer_name" => "José Valim"}} = Travis.Builds.show("149411520")
end
end
| 20.875 | 88 | 0.658683 |
ff8d9184e50e683a4096fcb768cd86688ddb3f54 | 1,871 | ex | Elixir | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/list_crawled_urls_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/list_crawled_urls_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/list_crawled_urls_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.42 | 157 | 0.747728 |
ff8dc513dc8cb1e85344df37d2c6047a9db80ab1 | 1,787 | exs | Elixir | apps/ewallet/test/ewallet/fetchers/user_fetcher_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/fetchers/user_fetcher_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/fetchers/user_fetcher_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.716981 | 90 | 0.698937 |
ff8dd888fdb04d51b8215ec1ea52888be89516aa | 4,561 | ex | Elixir | lib/plug_cache_control/header.ex | krasenyp/plug_cache_control | e179b96cc02df92ff53c891ec625b5b5e824448a | [
"Apache-2.0"
] | 6 | 2021-11-05T21:35:57.000Z | 2021-11-12T01:31:20.000Z | lib/plug_cache_control/header.ex | krasenyp/plug_cache_control | e179b96cc02df92ff53c891ec625b5b5e824448a | [
"Apache-2.0"
] | 4 | 2021-11-06T17:05:30.000Z | 2022-01-15T13:16:48.000Z | lib/plug_cache_control/header.ex | krasenyp/plug_cache_control | e179b96cc02df92ff53c891ec625b5b5e824448a | [
"Apache-2.0"
] | null | null | null | defmodule PlugCacheControl.Header do
@moduledoc false
@typep maybe(t) :: t | nil
@type t :: %__MODULE__{
must_revalidate: maybe(boolean()),
no_cache: maybe(boolean()),
no_store: maybe(boolean()),
no_transform: maybe(boolean()),
proxy_revalidate: maybe(boolean()),... | 29.050955 | 96 | 0.645911 |
ff8de857cbeed410c0970c240f140bb1af25a3a9 | 185 | exs | Elixir | day11/dumbo_octopus/test/dumbo_octopus_web/controllers/page_controller_test.exs | alopezz/advent_of_code-2021 | 90f0d7e3290a5c8ba5d18b2a5d9240ea6b1682bd | [
"MIT"
] | null | null | null | day11/dumbo_octopus/test/dumbo_octopus_web/controllers/page_controller_test.exs | alopezz/advent_of_code-2021 | 90f0d7e3290a5c8ba5d18b2a5d9240ea6b1682bd | [
"MIT"
] | null | null | null | day11/dumbo_octopus/test/dumbo_octopus_web/controllers/page_controller_test.exs | alopezz/advent_of_code-2021 | 90f0d7e3290a5c8ba5d18b2a5d9240ea6b1682bd | [
"MIT"
] | null | null | null | defmodule DumboOctopusWeb.PageControllerTest do
use DumboOctopusWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200)
end
end
| 20.555556 | 47 | 0.702703 |
ff8df8c1665d61c2d782815cd468694905c72e24 | 33,400 | exs | Elixir | lib/elixir/test/elixir/file_test.exs | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/file_test.exs | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/file_test.exs | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule Elixir.FileCase do
use ExUnit.CaseTemplate
import PathHelpers
using do
quote do
import PathHelpers
end
end
setup do
File.mkdir_p!(tmp_path)
:ok
end
teardown do
File.rm_rf(tmp_path)
:ok
end
end
defmodule FileTest do... | 26.012461 | 180 | 0.594251 |
ff8e077b8182babd521f006321d0e8bf428d0823 | 233 | exs | Elixir | priv/repo/migrations/20191220203015_alter_distributions.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | priv/repo/migrations/20191220203015_alter_distributions.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | priv/repo/migrations/20191220203015_alter_distributions.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule Webapp.Repo.Migrations.AlterDistributions do
use Ecto.Migration
def change do
alter table(:distributions) do
add(:archived_at, :utc_datetime, default: nil, null: true)
end
end
end
| 23.3 | 68 | 0.660944 |
ff8e0a6f249735112713c47ddcb3b22b18162a39 | 1,995 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/env_var_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/env_var_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/env_var_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.9 | 180 | 0.753383 |
ff8e316118fc39ae86332fa0f036cf72d047480a | 1,417 | exs | Elixir | problem33.exs | greenfork/project_euler | aeee87404f91e71c4e25c039fb2ec8be769964a8 | [
"Unlicense"
] | 1 | 2018-03-11T04:03:20.000Z | 2018-03-11T04:03:20.000Z | problem33.exs | greenfork/project_euler | aeee87404f91e71c4e25c039fb2ec8be769964a8 | [
"Unlicense"
] | null | null | null | problem33.exs | greenfork/project_euler | aeee87404f91e71c4e25c039fb2ec8be769964a8 | [
"Unlicense"
] | null | null | null | defmodule DigitCancellingFractions do
def run do
{numerator, denominator} =
Enum.reduce(fractions(), {1, 1}, fn {a, b, _, _}, {n, d} ->
{n * a, d * b}
end)
gcd = gcd(numerator, denominator)
div(denominator, gcd)
end
def fractions do
for n <- 10..98,
k <- (n + 1)..99,
... | 22.492063 | 71 | 0.425547 |
ff8e35dc1acf88ae58d9cc1b54d068136af96d09 | 1,673 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/order.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/order.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/order.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 ... | 33.46 | 119 | 0.727436 |
ff8e4da0ebbfbf1a872beb964de16ec4f116673a | 2,880 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/game_server_cluster.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/game_server_cluster.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/game_server_cluster.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... | 44.307692 | 321 | 0.709722 |
ff8e55bc9f1519cae9c0a75858808fb668bea333 | 3,110 | exs | Elixir | mix.exs | iboard/ax_webclient | e192a0534671bf036ad36bcece03940c337958dd | [
"MIT"
] | null | null | null | mix.exs | iboard/ax_webclient | e192a0534671bf036ad36bcece03940c337958dd | [
"MIT"
] | null | null | null | mix.exs | iboard/ax_webclient | e192a0534671bf036ad36bcece03940c337958dd | [
"MIT"
] | null | null | null | defmodule WebClient.MixProject do
use Mix.Project
@deps [
# Phoenix and tools
{:phoenix, "~> 1.6.6"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.17.5"},
{:floki, ">= 0.30.0"},
{:phoenix_live_dashboard, "~> 0.6"},
{:esbuild, "~... | 27.767857 | 98 | 0.581672 |
ff8e63d43a8a4953f1ceef342597e1381aa13a33 | 124 | exs | Elixir | test/washer_dryer_test.exs | martijn/washer_dryer | 619659e9672d3688035d8167d8d3d898dfc79a32 | [
"Unlicense"
] | 4 | 2017-01-07T17:46:37.000Z | 2017-02-17T19:34:39.000Z | test/washer_dryer_test.exs | martijn/washer_dryer | 619659e9672d3688035d8167d8d3d898dfc79a32 | [
"Unlicense"
] | null | null | null | test/washer_dryer_test.exs | martijn/washer_dryer | 619659e9672d3688035d8167d8d3d898dfc79a32 | [
"Unlicense"
] | null | null | null | defmodule WasherDryerTest do
use ExUnit.Case
doctest WasherDryer
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.777778 | 28 | 0.693548 |
ff8ebc753d37db3cde92c6eae033ef071448ba31 | 1,154 | exs | Elixir | test/cards/card_test.exs | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | 6 | 2015-11-16T08:13:08.000Z | 2016-05-26T04:00:58.000Z | test/cards/card_test.exs | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | null | null | null | test/cards/card_test.exs | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | null | null | null | defmodule PinElixirTest.Card do
use ExUnit.Case
use HyperMock
alias PinElixir.Card
alias PinElixirTest.Fixtures.Card, as: CardFixture
import PinElixirTest.Utils
test "Creates a card token from a credit card" do
request = %HyperMock.Request{
headers: ["Content-Type": "application/json"],
m... | 28.146341 | 77 | 0.697574 |
ff8ec06020b7fb4a652120243313311821e06781 | 9,293 | ex | Elixir | lib/ex_clubhouse/api/epic.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/api/epic.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/api/epic.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Api.Epic do
@moduledoc """
Epic API
"""
alias ExClubhouse.Ops
alias ExClubhouse.{Client, Session, Config}
alias ExClubhouse.Parse.Parser
alias ExClubhouse.Model.Input
##############################################
### Default config based utility functions ###
################... | 41.672646 | 143 | 0.670397 |
ff8ec2e114cbd49d970bd374130dfdb94ab9538d | 3,841 | ex | Elixir | lib/astarte_flow/blocks/json_mapper.ex | Annopaolo/astarte_flow | d6846917d2adb87127cb06ab6aeb11d6c0d10de8 | [
"Apache-2.0"
] | 11 | 2020-01-30T17:44:35.000Z | 2022-01-13T19:17:21.000Z | lib/astarte_flow/blocks/json_mapper.ex | Annopaolo/astarte_flow | d6846917d2adb87127cb06ab6aeb11d6c0d10de8 | [
"Apache-2.0"
] | 100 | 2020-02-11T10:01:35.000Z | 2022-02-17T10:39:35.000Z | lib/astarte_flow/blocks/json_mapper.ex | Annopaolo/astarte_flow | d6846917d2adb87127cb06ab6aeb11d6c0d10de8 | [
"Apache-2.0"
] | 7 | 2020-01-30T11:33:20.000Z | 2021-05-03T09:48:41.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... | 28.664179 | 98 | 0.631086 |
ff8ecd3d68070c091135b269cb0a56b96184165e | 4,436 | ex | Elixir | lib/noven_web/controllers/user_auth.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 8 | 2020-09-10T09:18:17.000Z | 2022-03-25T03:43:25.000Z | lib/noven_web/controllers/user_auth.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | null | null | null | lib/noven_web/controllers/user_auth.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 4 | 2020-12-28T06:13:51.000Z | 2021-04-27T18:00:06.000Z | defmodule NovenWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias Noven.Accounts
alias NovenWeb.Router.Helpers, as: Routes
# Make the remember me cookie valid for 60 days.
# If you want bump or reduce this value, also change
# the token expiry itself in UserToken.
@max_age 60 * 60 * 24 *... | 29.377483 | 84 | 0.694545 |
ff8ed624f4c573621b479829303489356f7219a4 | 1,312 | exs | Elixir | config/config.exs | nayed/noaax | ef694a36b44a490a7c54341d5cd9ea8b3d53bbd0 | [
"MIT"
] | null | null | null | config/config.exs | nayed/noaax | ef694a36b44a490a7c54341d5cd9ea8b3d53bbd0 | [
"MIT"
] | null | null | null | config/config.exs | nayed/noaax | ef694a36b44a490a7c54341d5cd9ea8b3d53bbd0 | [
"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
config :elixir, ansi_enabled: true
config :noaax, noaa_url: "http://w1.weather.gov/xml/current_obs"
config :noaax, state_station_url: "http://w1.weather.gov/xml/current_obs/seek.ph... | 35.459459 | 89 | 0.752287 |
ff8ed6d2a2b20c4b153c8ef873dbed217da1b326 | 968 | exs | Elixir | test/Day2_test.exs | joaopgmaria/aoc-solutions-elixir | c5eb35b698b7cccd754876be600a73ee0fedbf0e | [
"MIT"
] | null | null | null | test/Day2_test.exs | joaopgmaria/aoc-solutions-elixir | c5eb35b698b7cccd754876be600a73ee0fedbf0e | [
"MIT"
] | null | null | null | test/Day2_test.exs | joaopgmaria/aoc-solutions-elixir | c5eb35b698b7cccd754876be600a73ee0fedbf0e | [
"MIT"
] | null | null | null | defmodule Day2Test do
use ExUnit.Case
doctest Day2
@tag day: 2
test "executes stop instruction" do
program = [1,1,1,1,1,1,1,1,1]
assert {:stop, program} == Day2.execute([99,0,0,0], program)
end
@tag day: 2
test "executes instruction 1" do
assert {:ok, [2,1,1,1,1,1,1,1,1]} == Day2.execute([1,... | 30.25 | 91 | 0.56095 |
ff8eddf4dfe5fbf0b750b55a09cfc5404d197eb7 | 2,382 | exs | Elixir | test/file_utils_test.exs | bitchef/exocco | b0e93b01794d71c0458f52907b2f66b03e3f207e | [
"MIT"
] | null | null | null | test/file_utils_test.exs | bitchef/exocco | b0e93b01794d71c0458f52907b2f66b03e3f207e | [
"MIT"
] | 1 | 2016-02-09T12:27:42.000Z | 2016-02-09T12:27:42.000Z | test/file_utils_test.exs | bitchef/exocco | b0e93b01794d71c0458f52907b2f66b03e3f207e | [
"MIT"
] | null | null | null | defmodule FileUtilsTest do
use ExUnit.Case, async: true
import DirHelpers
import PathHelpers
import :hamcrest, only: [ assert_that: 2 ]
import :hamcrest_matchers
setup_all do
:ok = setupDirTree(fixture_path)
on_exit fn -> deleteDirTree(fixture_path) end
:ok
end
test "FileUtils.list_files/... | 37.21875 | 114 | 0.730898 |
ff8ee55c7d1d5cb9ec79595b63d3b0f18ed12bd7 | 9,527 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/paragraph_style.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/paragraph_style.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/paragraph_style.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... | 52.346154 | 169 | 0.704314 |
ff8ef9b70485566a8d3c4e76031811942683d14c | 653 | exs | Elixir | test/unit/extra/atom_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 30 | 2021-06-01T16:59:35.000Z | 2022-03-25T16:56:19.000Z | test/unit/extra/atom_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 35 | 2021-06-10T17:05:31.000Z | 2022-02-11T22:30:36.000Z | test/unit/extra/atom_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 4 | 2021-08-13T20:38:18.000Z | 2022-01-31T04:32:35.000Z | defmodule Playwright.Extra.AtomTest do
use ExUnit.Case, async: true
alias Playwright.Extra
describe "from_string" do
test "string", do: assert(Extra.Atom.from_string("banana") == :banana)
test "already an atom", do: assert(Extra.Atom.from_string(:banana) == :banana)
test "nil", do: assert_raise(Argu... | 36.277778 | 86 | 0.698315 |
ff8f16bd2880375d97b73dabf5d796dae523ea60 | 1,866 | ex | Elixir | test/process_managers/support/example_process_manager.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/process_managers/support/example_process_manager.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/process_managers/support/example_process_manager.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.ProcessManagers.ExampleProcessManager do
@moduledoc false
alias Commanded.ProcessManagers.ExampleApp
alias Commanded.ProcessManagers.ExampleProcessManager
alias Commanded.ProcessManagers.ExampleAggregate.Commands.Stop
alias Commanded.ProcessManagers.ExampleAggregate.Events.{
Errored,... | 34.555556 | 97 | 0.751876 |
ff8f3fd72ed8c131f3e34c844ebd027ce3cc6149 | 2,344 | exs | Elixir | lib/elixir/test/elixir/test_helper.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/test/elixir/test_helper.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/elixir/test/elixir/test_helper.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2021-09-30T01:21:02.000Z | 2021-09-30T01:21:02.000Z | # Beam files compiled on demand
path = Path.expand("../../tmp/beams", __DIR__)
File.rm_rf!(path)
File.mkdir_p!(path)
Code.prepend_path(path)
Code.compiler_options(debug_info: true)
defmodule PathHelpers do
def fixture_path() do
Path.expand("fixtures", __DIR__)
end
def tmp_path() do
Path.expand("../../t... | 24.416667 | 86 | 0.673635 |
ff8f40ca0937c654a7d5ea9296c039bbc4862ec6 | 301 | ex | Elixir | src/lib/changelog_web/views/live_view.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog_web/views/live_view.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog_web/views/live_view.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.LiveView do
use ChangelogWeb, :public_view
alias Changelog.Wavestreamer
alias ChangelogWeb.{EpisodeView, PersonView, PodcastView}
def host_or_guest(episode, person) do
if Enum.member?(episode.hosts, person) do
"Host"
else
"Guest"
end
end
end
| 20.066667 | 59 | 0.72093 |
ff8f5e32617f97e56b2eaaae03845dc6d2776b5b | 577 | exs | Elixir | mix.exs | LuizFerK/Freelancex | baa35cb02920a95e207e9dc246b4e97d7ad6c10e | [
"MIT"
] | null | null | null | mix.exs | LuizFerK/Freelancex | baa35cb02920a95e207e9dc246b4e97d7ad6c10e | [
"MIT"
] | null | null | null | mix.exs | LuizFerK/Freelancex | baa35cb02920a95e207e9dc246b4e97d7ad6c10e | [
"MIT"
] | null | null | null | defmodule GenReport.MixProject do
use Mix.Project
def project do
[
app: :gen_report,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ext... | 19.896552 | 87 | 0.580589 |
ff8f69b48f6cab0e22a5d04c8cc8e95f4789cb41 | 767 | exs | Elixir | apps/engine/test/engine/ethereum/event/listener/storage_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/engine/ethereum/event/listener/storage_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/engine/ethereum/event/listener/storage_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Ethereum.Event.Listener.StorageTest do
use ExUnit.Case, async: true
alias Engine.Ethereum.Event.Listener.Storage
describe "listener_chickin/0/1" do
test "that the ets table is a set", %{test: name} do
Storage.listener_checkin(name)
info = :ets.info(name)
assert Keyword.fet... | 31.958333 | 65 | 0.701434 |
ff8fbe760708ce1b8e9150c3754d169530932e31 | 738 | ex | Elixir | server/lib/domsegserver/datasets/segment_type.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | server/lib/domsegserver/datasets/segment_type.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | 9 | 2021-12-09T18:19:21.000Z | 2022-01-09T03:45:33.000Z | server/lib/domsegserver/datasets/segment_type.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | defmodule DOMSegServer.Datasets.SegmentType do
use Ecto.Schema
import Ecto.Changeset
embedded_schema do
field :name, :string
field :color, :string
field :temp_id, :string, virtual: true, default: nil
field :delete, :boolean, virtual: true, default: false
end
def changeset(segtype, attrs \\ ... | 23.0625 | 78 | 0.670732 |
ff8fbf2fcf54830915e51a5cb158a0a055dac271 | 935 | ex | Elixir | back/lib/zx_web/views/partner_view.ex | giovanecosta/zebra-xantis | 92e5937d51c44e75544bb539f5d95f6b0cc61b94 | [
"MIT"
] | null | null | null | back/lib/zx_web/views/partner_view.ex | giovanecosta/zebra-xantis | 92e5937d51c44e75544bb539f5d95f6b0cc61b94 | [
"MIT"
] | null | null | null | back/lib/zx_web/views/partner_view.ex | giovanecosta/zebra-xantis | 92e5937d51c44e75544bb539f5d95f6b0cc61b94 | [
"MIT"
] | 1 | 2019-08-29T17:37:51.000Z | 2019-08-29T17:37:51.000Z | defmodule ZxWeb.PartnerView do
use ZxWeb, :view
alias ZxWeb.PartnerView
def render("index.json", %{partners: partners}) do
%{data: render_many(partners, PartnerView, "partner.json")}
end
def render("show.json", %{partner: partner}) do
%{data: render_one(partner, PartnerView, "partner.json")}
end
... | 27.5 | 78 | 0.631016 |
ff8fcd1c6f845d9b717cb9c1291f472f4893ed7c | 4,219 | ex | Elixir | lib/couchjitsu_track/activity_history.ex | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | lib/couchjitsu_track/activity_history.ex | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | lib/couchjitsu_track/activity_history.ex | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | defmodule CouchjitsuTrack.ActivityHistory do
@moduledoc """
A collection of queries for activities.
"""
import Ecto.Query
alias CouchjitsuTrack.Record
alias CouchjitsuTrack.Activity
@doc """
Gets all activities for a specified user id.
Will return a list of %{date, name, time, not... | 34.024194 | 122 | 0.529035 |
ff8fcf2c7aa06afe46230f13ae7b4d4a86fdd20d | 6,665 | ex | Elixir | lib/confispex/schema.ex | prosapient/confispex | 340d3dd8fe9bd5673bb07ccb5da23298c293898c | [
"Apache-2.0"
] | 7 | 2021-05-12T11:03:47.000Z | 2021-12-16T08:26:28.000Z | lib/confispex/schema.ex | prosapient/confispex | 340d3dd8fe9bd5673bb07ccb5da23298c293898c | [
"Apache-2.0"
] | 2 | 2021-11-20T23:09:33.000Z | 2021-12-03T22:09:46.000Z | lib/confispex/schema.ex | prosapient/confispex | 340d3dd8fe9bd5673bb07ccb5da23298c293898c | [
"Apache-2.0"
] | 2 | 2021-07-19T09:40:39.000Z | 2021-11-20T20:09:02.000Z | defmodule Confispex.Schema do
@moduledoc """
## Example
defmodule MyApp.RuntimeConfigSchema do
import Confispex.Schema
@behaviour Confispex.Schema
alias Confispex.Type
defvariables(%{
"RUNTIME_CONFIG_REPORT" => %{
cast: {Type.Enum, values: ["disabled", "... | 34.179487 | 291 | 0.587247 |
ff8fe7889be024cac5d1870ee5c5a2137b2e0278 | 259 | exs | Elixir | apps/gingerbread_shop_service/priv/repo/migrations/20170620140350_enable_extension_post_gis.exs | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | apps/gingerbread_shop_service/priv/repo/migrations/20170620140350_enable_extension_post_gis.exs | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | apps/gingerbread_shop_service/priv/repo/migrations/20170620140350_enable_extension_post_gis.exs | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | defmodule GingerbreadShop.Service.Repo.Migrations.EnableExtensionPostGIS do
use Ecto.Migration
def up do
execute "CREATE EXTENSION IF NOT EXISTS postgis"
end
def down do
execute "DROP EXTENSION IF EXISTS postgis"
end
end
| 21.583333 | 75 | 0.714286 |
ff8ff980ff464560f6529dc06b0afb8f674dcc2c | 974 | ex | Elixir | apps/service_receive/lib/receive/accept/supervisor.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_receive/lib/receive/accept/supervisor.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_receive/lib/receive/accept/supervisor.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Receive.Accept.Supervisor do
@moduledoc """
Supervision helpers wrapping `DynamicSupervisor` usage.
"""
use DynamicSupervisor
def start_link(args) do
DynamicSupervisor.start_link(__MODULE__, args, name: __MODULE__)
end
@impl DynamicSupervisor
def init(_args) do
DynamicSupervisor.init... | 23.190476 | 68 | 0.687885 |
ff903226b59f00c17b022e74dbf51c2a0088ca17 | 1,552 | ex | Elixir | lib/env.ex | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | 2 | 2017-05-02T14:15:11.000Z | 2021-12-11T11:13:15.000Z | lib/env.ex | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | null | null | null | lib/env.ex | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | null | null | null | defmodule Sammal.Env do
@moduledoc """
Sammal evaluation environment.
"""
defstruct parent: nil, vars: %{}, macros: %{}
# Handle basic arithmetic operators as outlined in the Scheme spec:
# https://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/Numerical-operations.html
def subtract([]), do... | 25.866667 | 98 | 0.603093 |
ff9045180fb9d1a14d8efe1eeb2cc05bcf4899f7 | 1,263 | ex | Elixir | farmbot_core/lib/farmbot_core/config_storage/network_interface.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_core/lib/farmbot_core/config_storage/network_interface.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/config_storage/network_interface.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config.NetworkInterface do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
schema "network_interfaces" do
field(:name, :string, null: false)
field(:type, :string, null: false)
## For wireless interfaces
field(:ssid, :string)
field(:psk, :string)
field(:sec... | 22.963636 | 55 | 0.638955 |
ff9050d7d68c62588e0aadfd3760174e6d36c7a7 | 828 | ex | Elixir | nashelixir+elixir/apps/cqrs_bank/lib/cqrs_bank/account.ex | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 7 | 2017-05-17T00:36:50.000Z | 2021-11-02T03:02:03.000Z | nashelixir+elixir/apps/cqrs_bank/lib/cqrs_bank/account.ex | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 3 | 2017-05-17T00:31:28.000Z | 2017-05-18T04:50:37.000Z | nashelixir+elixir/apps/cqrs_bank/lib/cqrs_bank/account.ex | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 5 | 2017-05-16T23:13:19.000Z | 2021-12-02T06:45:25.000Z | defmodule CqrsBank.Account do
use GenServer
def create_bank_account(account_id, account_holder, pin) do
registration = via_tuple(account_id)
GenServer.start_link(__MODULE__, [account_id], name: registration)
via_tuple(account_id)
|> GenServer.call({:create_account, account_id, ... | 30.666667 | 88 | 0.692029 |
ff909f4c4167b7d174e8a5c7b372808f9b8d2585 | 2,168 | exs | Elixir | example/config/prod.exs | rstacruz/phoenix_expug | ba14a81728cecbd3af23bb7f3e7d33d50d005544 | [
"MIT"
] | 24 | 2016-06-28T09:40:44.000Z | 2022-01-14T23:00:26.000Z | example/config/prod.exs | edjroot/phoenix_expug | d6d235597cd3dc56c307541e4ba9ba822c81782b | [
"MIT"
] | 5 | 2017-10-18T12:13:18.000Z | 2020-02-19T22:41:51.000Z | example/config/prod.exs | edjroot/phoenix_expug | d6d235597cd3dc56c307541e4ba9ba822c81782b | [
"MIT"
] | 8 | 2016-11-15T11:12:25.000Z | 2019-09-18T05:09:07.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.848485 | 67 | 0.712177 |
ff90ad45a9da42c67e8988e5ab84b33630ec0acd | 1,313 | ex | Elixir | backend/lib/edgehog/config/geolocation_providers.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/lib/edgehog/config/geolocation_providers.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/lib/edgehog/config/geolocation_providers.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Edgehog.
#
# Copyright 2022 SECO Mind 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 app... | 25.745098 | 74 | 0.686215 |
ff90c4e755d39e15c721bd09e315b7f8045f878b | 195 | ex | Elixir | lib/docception/error.ex | axelson/docception | 09ba947b483518c1e123de24f64de912d996cbba | [
"Apache-2.0"
] | 3 | 2019-04-03T08:23:40.000Z | 2019-09-02T17:22:14.000Z | lib/docception/error.ex | axelson/docception | 09ba947b483518c1e123de24f64de912d996cbba | [
"Apache-2.0"
] | 5 | 2019-09-02T21:49:40.000Z | 2021-10-04T14:12:05.000Z | lib/docception/error.ex | axelson/docception | 09ba947b483518c1e123de24f64de912d996cbba | [
"Apache-2.0"
] | 2 | 2019-09-02T17:46:56.000Z | 2021-05-07T12:44:42.000Z | defmodule Docception.Error do
@moduledoc """
An error during Docception.
"""
defexception [:message]
@impl true
def exception(message) do
%__MODULE__{message: message}
end
end
| 16.25 | 33 | 0.697436 |
ff910182b0fa389d5da82ae0f597c66f6c8d12a2 | 2,321 | exs | Elixir | apps/omg_child_chain_rpc/test/omg_child_chain_rpc/release_tasks/set_endpoint_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_child_chain_rpc/test/omg_child_chain_rpc/release_tasks/set_endpoint_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/test/omg_child_chain_rpc/release_tasks/set_endpoint_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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... | 34.132353 | 102 | 0.711331 |
ff91265fe4b250273be0e0fd139cda03caecba24 | 1,215 | ex | Elixir | lib/pogo.ex | mtwilliams/pogo | f427970bac860f538cdfe258eb0950e6c06edfb0 | [
"MIT"
] | 1 | 2015-12-07T09:24:33.000Z | 2015-12-07T09:24:33.000Z | lib/pogo.ex | envato/pogo | 74459ff08e8fc40ad9361a191657b1cab3bdb798 | [
"MIT"
] | null | null | null | lib/pogo.ex | envato/pogo | 74459ff08e8fc40ad9361a191657b1cab3bdb798 | [
"MIT"
] | null | null | null | defmodule Pogo do
def alive?(node) do
:net_adm.ping(node) == :pong
end
def alive!(node) do
unless alive?(node), do: exit(1)
exit(0)
end
def stop(node, timeout \\ 5000) do
rpc(node, :init, :stop, timeout)
end
def restart(node, timeout \\ 10000) do
rpc(node, :init, :restart, timeout)
... | 21.696429 | 73 | 0.6 |
ff9129955cf9f3404b1597eb9509ded27ca3f7c7 | 7,433 | ex | Elixir | lib/annex/layer/dense.ex | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | 1 | 2020-10-23T13:41:07.000Z | 2020-10-23T13:41:07.000Z | lib/annex/layer/dense.ex | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | null | null | null | lib/annex/layer/dense.ex | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | null | null | null | defmodule Annex.Layer.Dense do
@moduledoc """
`rows` are the number outputs and `columns` are the number of inputs.
"""
use Annex.Debug, debug: true
alias Annex.{
Data,
Data.DMatrix,
Data.List1D,
Layer.Backprop,
Layer.Dense,
LayerConfig,
Shape,
Utils
}
require Data
us... | 25.19661 | 84 | 0.576214 |
ff912dc215545651e828be6e48e14e12a9355936 | 819 | exs | Elixir | apps/monitoring/mix.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/monitoring/mix.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/monitoring/mix.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule Monitoring.MixProject do
use Mix.Project
def project do
[
app: :monitoring,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.11",
start_permanent: Mi... | 23.4 | 88 | 0.571429 |
ff9167b36ccc0f7d48d3b65dc472e5e7cab239cd | 1,949 | exs | Elixir | clients/android_device_provisioning/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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.089552 | 142 | 0.67214 |
ff919a545887c47dfe5f7c93e79835e178992651 | 498 | exs | Elixir | prag-programing/Part2/MultipleProcesses/example2.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | 1 | 2017-03-29T04:10:50.000Z | 2017-03-29T04:10:50.000Z | prag-programing/Part2/MultipleProcesses/example2.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | prag-programing/Part2/MultipleProcesses/example2.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | defmodule TokenPasser do
def reply(sender) do
receive do
token ->
send sender, token
end
end
def run() do
pid1 = spawn(TokenPasser, :reply, [self])
pid2 = spawn(TokenPasser, :reply, [self])
send pid1, "fred"
send pid2, "betty"
receive do
name when is_bi... | 17.785714 | 45 | 0.558233 |
ff91b90d717bda868792fc600504a2c0cf4201f4 | 75,844 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/sites.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/sites.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/sites.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.83709 | 345 | 0.62378 |
ff91c48d396e045d5517de5248989afdad2edc78 | 82 | exs | Elixir | test/shelving_web/views/page_view_test.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | test/shelving_web/views/page_view_test.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | test/shelving_web/views/page_view_test.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | defmodule ShelvingWeb.PageViewTest do
use ShelvingWeb.ConnCase, async: true
end
| 20.5 | 39 | 0.829268 |
ff91c8f1a2e7dedff794011dd10df7597bf161e7 | 2,106 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_shipping.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_shipping.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_shipping.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.290909 | 351 | 0.743115 |
ff91ce8769934f322a80d937224c99c7298b2fc3 | 572 | ex | Elixir | lib/trento/domain/cluster/events/cluster_details_updated.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento/domain/cluster/events/cluster_details_updated.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento/domain/cluster/events/cluster_details_updated.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Domain.Events.ClusterDetailsUpdated do
@moduledoc """
This event is emitted when cluster details are updated.
"""
use Trento.Event
alias Trento.Domain.HanaClusterDetails
defevent do
field :cluster_id, :string
field :name, :string
field :type, Ecto.Enum, values: [:hana_scale_u... | 26 | 79 | 0.715035 |
ff91d3bc20fef1ae6c30d6cf2b5eaf1dc00bd249 | 1,255 | exs | Elixir | deps/poison/mix.exs | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | 4 | 2017-10-01T18:00:25.000Z | 2022-02-23T18:26:53.000Z | deps/poison/mix.exs | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | 107 | 2016-08-03T18:16:51.000Z | 2021-07-23T08:42:51.000Z | deps/poison/mix.exs | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | 10 | 2017-10-31T16:16:05.000Z | 2022-02-16T10:31:04.000Z | defmodule Poison.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.strip
def project do
[app: :poison,
version: @version,
elixir: "~> 1.0",
description: "The fastest JSON library for Elixir",
deps: deps,
package: package,
consolidate_protocols: Mix.env != :tes... | 26.145833 | 75 | 0.607171 |
ff91f73787f80c5c7e943c27dcefd43d651710bb | 58 | exs | Elixir | test/lib/timber/context_test.exs | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 244 | 2016-10-10T15:30:32.000Z | 2021-08-11T08:45:53.000Z | test/lib/timber/context_test.exs | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 242 | 2016-10-10T19:34:44.000Z | 2020-11-20T18:56:43.000Z | test/lib/timber/context_test.exs | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 35 | 2016-12-04T07:33:04.000Z | 2020-06-17T20:22:11.000Z | defmodule Timber.ContextTest do
use Timber.TestCase
end
| 14.5 | 31 | 0.827586 |
ff91ff890f6ab6f09f410d162cea69e51e0127be | 2,657 | exs | Elixir | test/stub_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | test/stub_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | test/stub_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Celery.SysCallGlue.StubsTest do
use ExUnit.Case
alias FarmbotCore.Celery.SysCallGlue.Stubs
test "various stubs" do
# This test is to:
# * Catch early problems caused by a downstream stub
# * Keep coverage consistent
# * Detect unusued stubs over time.
args = "args"
... | 27.677083 | 57 | 0.665036 |
ff920108d450a65ad142a55a33312cd84ac7408b | 780 | ex | Elixir | 9-elixir-phoenix/web/channels/post_channel.ex | smddzcy/learning-new-technologies | cf3645ff649f6dfe89c77e90ceaf089b66da2482 | [
"MIT"
] | 3 | 2017-02-22T08:45:53.000Z | 2017-04-29T13:40:23.000Z | 9-elixir-phoenix/web/channels/post_channel.ex | smddzcy/learning-new-technologies | cf3645ff649f6dfe89c77e90ceaf089b66da2482 | [
"MIT"
] | null | null | null | 9-elixir-phoenix/web/channels/post_channel.ex | smddzcy/learning-new-technologies | cf3645ff649f6dfe89c77e90ceaf089b66da2482 | [
"MIT"
] | null | null | null | defmodule AwesomeprojectBackend.PostChannel do
use AwesomeprojectBackend.Web, :channel
def join("room:posts", payload, socket) do
if authorized?(payload) do
{:ok, socket}
else
{:error, %{reason: "unauthorized"}}
end
end
# Channels can be used in a request/response fashion
# by sendin... | 26 | 61 | 0.69359 |
ff9211a2e22b296afd0133793155a4691368be26 | 52,163 | ex | Elixir | lib/codes/codes_m48.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m48.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m48.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M48 do
alias IcdCode.ICDCode
def _M4800 do
%ICDCode{full_code: "M4800",
category_code: "M48",
short_code: "00",
full_name: "Spinal stenosis, site unspecified",
short_name: "Spinal stenosis, site unspecified",
category_name: "Spinal... | 48.796071 | 161 | 0.684872 |
ff922a95190637355de967a367766a685696a251 | 304 | ex | Elixir | lib/graphql/validation.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 719 | 2016-03-18T03:10:46.000Z | 2022-02-02T10:07:29.000Z | lib/graphql/validation.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 51 | 2015-08-30T03:15:17.000Z | 2016-03-02T07:13:26.000Z | lib/graphql/validation.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 34 | 2016-03-30T12:56:11.000Z | 2021-08-30T09:21:54.000Z |
defmodule GraphQL.Validation do
@moduledoc ~S"""
Helpers that are useful within validation rules.
"""
@doc """
Returns an updated accumulator containing the validation error.
"""
def report_error(acc, error) do
%{acc | validation_errors: [error] ++ acc[:validation_errors]}
end
end
| 21.714286 | 66 | 0.700658 |
ff9267b2547ac220e9929e5848e9ae43c20980b2 | 3,079 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/goals.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics/lib/google_api/analytics/v3/model/goals.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics/lib/google_api/analytics/v3/model/goals.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.279412 | 299 | 0.692433 |
ff927c7c7912891af824c8a5bf40a80a86fed75c | 4,992 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/device.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... | 47.542857 | 171 | 0.666266 |
ff92a9574e6f08c2a9c4071921e2838bd1823bde | 6,533 | ex | Elixir | lib/mix/tasks/siwapp.demo.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 4 | 2015-02-12T09:23:47.000Z | 2022-03-09T18:11:06.000Z | lib/mix/tasks/siwapp.demo.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 254 | 2021-12-09T14:40:41.000Z | 2022-03-31T08:09:37.000Z | lib/mix/tasks/siwapp.demo.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 1 | 2022-03-07T10:25:49.000Z | 2022-03-07T10:25:49.000Z | defmodule Mix.Tasks.Siwapp.Demo do
@shortdoc "Deletes all data and puts some demo data"
@moduledoc """
Only 'force' option can be provided in order to avoid
being asked for confirmation. If any other is given,
task won't be completed
## Examples
$ mix siwapp.demo
This will remove all data in datab... | 26.995868 | 101 | 0.603551 |
ff92b3544e216503a4e47e4f5ac27a084a2189ad | 108 | exs | Elixir | test/adz_test.exs | operable/adz | 648c292d40740f96e26deb42b23308218de7e66a | [
"Apache-2.0"
] | null | null | null | test/adz_test.exs | operable/adz | 648c292d40740f96e26deb42b23308218de7e66a | [
"Apache-2.0"
] | null | null | null | test/adz_test.exs | operable/adz | 648c292d40740f96e26deb42b23308218de7e66a | [
"Apache-2.0"
] | null | null | null | defmodule AdzTest do
use ExUnit.Case
doctest Adz
test "the truth" do
assert 1 + 1 == 2
end
end
| 12 | 21 | 0.648148 |
ff92d6600b5f54a06108212c78419e618e301c85 | 16,241 | ex | Elixir | lib/breaker.ex | awochna/breaker | 84a7855939b1350376bac555fb1ee1475a842e9a | [
"MIT"
] | 33 | 2017-01-26T23:37:00.000Z | 2021-05-17T16:39:35.000Z | lib/breaker.ex | awochna/breaker | 84a7855939b1350376bac555fb1ee1475a842e9a | [
"MIT"
] | 9 | 2017-02-14T22:12:02.000Z | 2019-08-06T20:46:41.000Z | lib/breaker.ex | awochna/breaker | 84a7855939b1350376bac555fb1ee1475a842e9a | [
"MIT"
] | 4 | 2018-01-23T02:36:14.000Z | 2019-08-06T15:42:01.000Z | defmodule Breaker do
@moduledoc """
A circuit-breaker wrapped around `HTTPotion` to make requests to external
resources and help your application gracefully fail.
Defines a function for each HTTP method (ie `Breaker.get()`) that returns a
Task that will execute the HTTP request (using `HTTPotion`) and record... | 29.854779 | 83 | 0.64799 |
ff92d77a8e628e7061ace82150751744ff7146c0 | 12,885 | ex | Elixir | lib/commanded/process_managers/process_manager.ex | SimpleBet/commanded | dc89737bd22daf4f6c5b3333b5d8d8de47fea5b8 | [
"MIT"
] | 1 | 2020-03-09T11:50:38.000Z | 2020-03-09T11:50:38.000Z | lib/commanded/process_managers/process_manager.ex | perzanko/commanded | fd18ee3981cd237cbb874d1ccd8155e98d35d178 | [
"MIT"
] | null | null | null | lib/commanded/process_managers/process_manager.ex | perzanko/commanded | fd18ee3981cd237cbb874d1ccd8155e98d35d178 | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.ProcessManager do
@moduledoc """
Macro used to define a process manager.
A process manager is responsible for coordinating one or more aggregates.
It handles events and dispatches commands in response. Process managers have
state that can be used to track which aggregates ... | 35.108992 | 97 | 0.691579 |
ff92e7f9275c1e3104da1ed2094468a47a64ec89 | 1,234 | exs | Elixir | test/livebook_web/plugs/user_plug_test.exs | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | null | null | null | test/livebook_web/plugs/user_plug_test.exs | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:09:08.000Z | 2021-09-18T01:09:08.000Z | test/livebook_web/plugs/user_plug_test.exs | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.UserPlugTest do
use ExUnit.Case, async: true
use Plug.Test
defp call(conn) do
LivebookWeb.UserPlug.call(conn, LivebookWeb.UserPlug.init([]))
end
test "given no user id in the session, generates a new user id" do
conn =
conn(:get, "/")
|> init_test_session(%{})
... | 23.730769 | 68 | 0.612642 |
ff92f512e64d1dae5bce3305f9fb08c5ddb8db94 | 1,326 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disks_scoped_list_warning.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disks_scoped_list_warning.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disks_scoped_list_warning.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... | 32.341463 | 111 | 0.751131 |
ff92f9939e107b1738f1b2abca535377c55c1b55 | 213 | exs | Elixir | lib/cli.exs | uoysip/augcart | 9323d3a525c0614c2585197779528ffa8cee68a2 | [
"MIT"
] | 1 | 2020-01-12T21:44:41.000Z | 2020-01-12T21:44:41.000Z | lib/cli.exs | uoysip/augcart | 9323d3a525c0614c2585197779528ffa8cee68a2 | [
"MIT"
] | null | null | null | lib/cli.exs | uoysip/augcart | 9323d3a525c0614c2585197779528ffa8cee68a2 | [
"MIT"
] | null | null | null | require Logger
defmodule CLI do
def start() do
Logger.info("Starting server. Press Ctrl+C to exit...")
Task.async(ShoppingListServer, :start, [])
|> Task.await(:infinity)
end
end
CLI.start()
| 14.2 | 60 | 0.657277 |
ff933193a47fc8cb453b694b17d860cb8285393d | 1,690 | exs | Elixir | test/img_test.exs | betrybe/markright | 1b81a2d9931b70645f9eff70d2605f0e9a58f396 | [
"MIT"
] | 15 | 2017-01-12T19:24:35.000Z | 2021-04-27T14:44:08.000Z | test/img_test.exs | betrybe/markright | 1b81a2d9931b70645f9eff70d2605f0e9a58f396 | [
"MIT"
] | 8 | 2017-02-13T17:01:35.000Z | 2021-07-27T16:20:52.000Z | test/img_test.exs | betrybe/markright | 1b81a2d9931b70645f9eff70d2605f0e9a58f396 | [
"MIT"
] | 1 | 2021-04-24T18:40:11.000Z | 2021-04-24T18:40:11.000Z | defmodule Markright.Parsers.Img.Test do
use ExUnit.Case
doctest Markright.Parsers.Img
@input ~S"""
Hello, .
Hello, .
Hello, ![Atlassian|https://atlassian.com].
Hello, ![https://example.com normal link].
"""
@output {:article, %{},
... | 26.40625 | 82 | 0.321893 |
ff933dd437a3fcf1ffbcd1360208949482e6abcd | 613 | exs | Elixir | test/web/views/error_view_test.exs | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | test/web/views/error_view_test.exs | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | 4 | 2021-03-01T21:25:42.000Z | 2022-02-10T23:50:11.000Z | test/web/views/error_view_test.exs | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | 1 | 2020-03-20T12:58:37.000Z | 2020-03-20T12:58:37.000Z | defmodule FirestormWeb.Web.ErrorViewTest do
use FirestormWeb.Web.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(FirestormWeb.Web.ErrorView, "404.html", []) ==
"Page not found"
end
... | 27.863636 | 74 | 0.69168 |
ff9357e4f86cbfaca2c116fd7358197b0130e0d5 | 6,776 | ex | Elixir | lib/central/helpers/timex_helper.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/helpers/timex_helper.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/helpers/timex_helper.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Helpers.TimexHelper do
@moduledoc """
"""
alias Timex.{Timezone, Timezone.Local}
# Was finding that in April it moved the time up an hour
# every time I saved, turns out the issue was it was stored
# as UTC but printed as +1 hour
defp convert(timestamp, tz) do
new_timestamp = times... | 28.957265 | 99 | 0.566263 |
ff938a537ece922eab116454bb1a76548e2c9929 | 557 | exs | Elixir | test/ucx_ucc/tab_bar_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | test/ucx_ucc/tab_bar_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | test/ucx_ucc/tab_bar_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UcxUcc.TabBarTest do
use ExUnit.Case
doctest UcxUcc.TabBar
alias UcxUcc.TabBar
setup do
TabBar.delete_all
:ok
end
test "remembers open tabs when switching" do
TabBar.open_ftab 1, 2, "test", nil
assert TabBar.get_ftab(1, 2) == {"test", nil}
TabBar.open_ftab 1, 2, "other", %{n... | 25.318182 | 61 | 0.628366 |
ff939a1bbb9c6aa107cf029b3040f446b2abff83 | 244 | ex | Elixir | lib/ouidata/basic_data_map.ex | shamanime/ouidata | 4acba55f56195c6f939b4eefd68472480548e7fe | [
"MIT"
] | null | null | null | lib/ouidata/basic_data_map.ex | shamanime/ouidata | 4acba55f56195c6f939b4eefd68472480548e7fe | [
"MIT"
] | null | null | null | lib/ouidata/basic_data_map.ex | shamanime/ouidata | 4acba55f56195c6f939b4eefd68472480548e7fe | [
"MIT"
] | null | null | null | defmodule Ouidata.BasicDataMap do
@moduledoc false
alias Ouidata.Parser
def from_file_in_dir(dir_name) do
make_map(Parser.read_file("latest.txt", dir_name))
end
def make_map(vendors) do
{:ok, %{vendors: vendors}}
end
end
| 17.428571 | 54 | 0.721311 |
ff93a03a8ae725ac774c2d9598717d553a688fe9 | 374 | ex | Elixir | web/views/error_view.ex | FunctioningIdiots/jilo-server | a5911608bff636c1e50afbc1a0244bc25a363eb7 | [
"MIT"
] | null | null | null | web/views/error_view.ex | FunctioningIdiots/jilo-server | a5911608bff636c1e50afbc1a0244bc25a363eb7 | [
"MIT"
] | 1 | 2016-01-26T13:08:13.000Z | 2020-07-09T16:40:23.000Z | web/views/error_view.ex | FunctioningIdiots/jilo-server | a5911608bff636c1e50afbc1a0244bc25a363eb7 | [
"MIT"
] | null | null | null | defmodule Jilosrv.ErrorView do
use Jilosrv.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template,... | 20.777778 | 47 | 0.697861 |
ff93a0ea00bed1ad85b50e5ff1ea0caac4301d02 | 123 | exs | Elixir | priv/repo/seeds.exs | RobertDober/tamyda | ebcf60366a0475554b49c7b531c18c40a748e345 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | RobertDober/tamyda | ebcf60366a0475554b49c7b531c18c40a748e345 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | RobertDober/tamyda | ebcf60366a0475554b49c7b531c18c40a748e345 | [
"Apache-2.0"
] | null | null | null | IO.puts """
#{IO.ANSI.yellow}Automatic seeding disabled, you can seed the database with:#{IO.ANSI.white}
mix seed
"""
| 24.6 | 92 | 0.691057 |
ff93d9ce531895c62324553c59bf1bfa466d853b | 1,488 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/org_unit_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vault/lib/google_api/vault/v1/model/org_unit_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vault/lib/google_api/vault/v1/model/org_unit_info.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... | 31.659574 | 203 | 0.733871 |
ff93fabab3d18013ae0eeb76647740878ea5963f | 3,193 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_item_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_item_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_item_list_response.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 ... | 44.971831 | 184 | 0.700595 |
ff94013aac333b7fbe3ce4847c1e62dbaf01bba4 | 26,069 | exs | Elixir | test/xema/ref_remote_test.exs | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | test/xema/ref_remote_test.exs | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | test/xema/ref_remote_test.exs | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | defmodule Xema.RefRemoteTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2, validate: 2]
alias Test.{FileLoader, RemoteLoaderExon}
alias Xema.{Ref, Schema, SchemaError, ValidationError}
test "http server" do
assert %{body: body} = HTTPoison.get!("http://localhost:1234/folder/folderInteg... | 29.7252 | 98 | 0.439603 |
ff94161411a6abdbda27f96047117924f88db7c5 | 1,794 | ex | Elixir | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/set_iam_policy_request.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.170213 | 322 | 0.75864 |
ff9416fd2d2d7a66bc830e4489ced9e47822d432 | 998 | ex | Elixir | backend/lib/edgehog/astarte/device/battery_status/battery_slot.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/lib/edgehog/astarte/device/battery_status/battery_slot.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/lib/edgehog/astarte/device/battery_status/battery_slot.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind 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 app... | 27.722222 | 74 | 0.697395 |
ff9439845ca70262e36eeb7aa5b3e31ca3681e29 | 1,036 | ex | Elixir | kousa/lib/broth/message/cast.ex | AhmetEsad/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | 1 | 2021-04-22T08:37:55.000Z | 2021-04-22T08:37:55.000Z | kousa/lib/broth/message/cast.ex | mateuszklysz/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/cast.ex | mateuszklysz/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | null | null | null | defmodule Broth.Message.Cast do
@moduledoc """
API contract statement for cast message modules
"""
defmacro __using__(_) do
quote do
use Ecto.Schema
import Ecto.Changeset
@behaviour Broth.Message.Cast
Module.register_attribute(__MODULE__, :directions, accumulate: true, persist: tr... | 27.263158 | 89 | 0.646718 |
ff9441cc5a98c31dc5104eb6baeb3e64135f1812 | 349 | exs | Elixir | priv/repo/migrations/20170820142925_create_businesses.exs | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170820142925_create_businesses.exs | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170820142925_create_businesses.exs | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | defmodule LleCymraeg.Repo.Migrations.CreateBusinesses do
use Ecto.Migration
def change do
create table(:businesses) do
add :name, :string, null: false
add :description, :text
add :type_id, references(:business_types, on_delete: :nilify_all)
timestamps()
end
create index(:busin... | 21.8125 | 71 | 0.690544 |
ff94643e1df395a725f5d8b57f61e45c43c09ce9 | 1,550 | ex | Elixir | hacker_news/test/support/data_case.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/test/support/data_case.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/test/support/data_case.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | defmodule HackerNews.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done t... | 27.678571 | 77 | 0.692258 |
ff9482f3d91960c9e078112c5ccb8708b38d409e | 1,572 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag_field_enum_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag_field_enum_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag_field_enum_value.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... | 30.230769 | 96 | 0.750636 |
ff94ab3d69f44403fe1a5f245e0c76be1782969e | 1,619 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/named_styles.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/named_styles.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/named_styles.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.745098 | 107 | 0.735022 |
ff94ae97c282aed0513f357f5077bad3aea0e7d1 | 14,525 | ex | Elixir | lib/bamboo/adapters/smtp_adapter.ex | smigit/bamboo_smtp | 4b2d64a23880f097b476aa9a4c34f9953c0ab2bc | [
"MIT"
] | null | null | null | lib/bamboo/adapters/smtp_adapter.ex | smigit/bamboo_smtp | 4b2d64a23880f097b476aa9a4c34f9953c0ab2bc | [
"MIT"
] | null | null | null | lib/bamboo/adapters/smtp_adapter.ex | smigit/bamboo_smtp | 4b2d64a23880f097b476aa9a4c34f9953c0ab2bc | [
"MIT"
] | null | null | null | defmodule Bamboo.SMTPAdapter do
@moduledoc """
Sends email using SMTP.
Use this adapter to send emails through SMTP. This adapter requires
that some settings are set in the config. See the example section below.
*Sensitive credentials should not be committed to source control and are best kept in environmen... | 29.284274 | 111 | 0.697005 |
ff94bbc2487851b4f92d450ba1802d72b3137a3f | 1,216 | ex | Elixir | lib/bank_stone_web/views/error_helpers.ex | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 3 | 2020-04-25T11:35:06.000Z | 2021-10-06T19:59:47.000Z | lib/bank_stone_web/views/error_helpers.ex | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 12 | 2019-11-04T11:06:37.000Z | 2019-11-21T11:03:57.000Z | lib/bank_stone_web/views/error_helpers.ex | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 1 | 2020-12-11T07:05:04.000Z | 2020-12-11T07:05:04.000Z | defmodule BankStoneWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static ar... | 35.764706 | 78 | 0.672697 |
ff951a4eedcc7da71529f22354fa81c2ba4d786c | 2,048 | exs | Elixir | config/prod.exs | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | config/prod.exs | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | config/prod.exs | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.571429 | 66 | 0.719727 |
ff9527bcda45d829de81cd8c5c85e90a5f4801b2 | 65 | ex | Elixir | lib/bounce_out_web/views/page_view.ex | tlietz/bounce-out | cefbb7ebcdb4e39b6afa8e1b3791d222674e0681 | [
"WTFPL"
] | 1 | 2022-01-16T16:07:37.000Z | 2022-01-16T16:07:37.000Z | lib/bounce_out_web/views/page_view.ex | tlietz/slideball | cefbb7ebcdb4e39b6afa8e1b3791d222674e0681 | [
"WTFPL"
] | null | null | null | lib/bounce_out_web/views/page_view.ex | tlietz/slideball | cefbb7ebcdb4e39b6afa8e1b3791d222674e0681 | [
"WTFPL"
] | null | null | null | defmodule BounceOutWeb.PageView do
use BounceOutWeb, :view
end
| 16.25 | 34 | 0.815385 |
ff953cc933724764096b48f2c529d0936f6dad6f | 1,632 | ex | Elixir | lib/ie_chat_bot_web/endpoint.ex | IE-bourgeois-union/ie_chat_bot | c0f155288170f558ff26bfc5cbd37f777c79a05b | [
"MIT"
] | null | null | null | lib/ie_chat_bot_web/endpoint.ex | IE-bourgeois-union/ie_chat_bot | c0f155288170f558ff26bfc5cbd37f777c79a05b | [
"MIT"
] | null | null | null | lib/ie_chat_bot_web/endpoint.ex | IE-bourgeois-union/ie_chat_bot | c0f155288170f558ff26bfc5cbd37f777c79a05b | [
"MIT"
] | null | null | null | defmodule IeChatBotWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ie_chat_bot
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_ie_... | 29.672727 | 97 | 0.721814 |
ff953f7477de0794bb8088d2bc7cb4d2e25e799b | 2,626 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/renew_lease_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/renew_lease_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/renew_lease_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.745455 | 513 | 0.755141 |
ff955aa9552d97804707c807347f8052bf194688 | 75 | ex | Elixir | chromoid_web/lib/chromoid_web/views/user_confirmation_view.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/lib/chromoid_web/views/user_confirmation_view.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/lib/chromoid_web/views/user_confirmation_view.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule ChromoidWeb.UserConfirmationView do
use ChromoidWeb, :view
end
| 18.75 | 45 | 0.84 |
ff959b792a33b6dfb4b0a4ddb97c4d3d92dd995c | 1,671 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/managed_zone_cloud_logging_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dns/lib/google_api/dns/v1/model/managed_zone_cloud_logging_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dns/lib/google_api/dns/v1/model/managed_zone_cloud_logging_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.42 | 155 | 0.732496 |
ff95b43fa01a82f9adf6408dafb0511d4f8da978 | 1,247 | ex | Elixir | test/support/conn_case.ex | gjlbro/testdelivery | 3d667cca67b3a561d7395673b6b968523ed3270a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gjlbro/testdelivery | 3d667cca67b3a561d7395673b6b968523ed3270a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gjlbro/testdelivery | 3d667cca67b3a561d7395673b6b968523ed3270a | [
"MIT"
] | null | null | null | defmodule DeliveryWeb.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 t... | 27.108696 | 62 | 0.724138 |
ff95b65b8060daac1a15968b76b2d9da40987418 | 3,548 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/beacon_attachment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/beacon_attachment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/beacon_attachment.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... | 41.741176 | 138 | 0.714487 |
ff95e224345c2fd29466408fac7f063431565400 | 1,034 | ex | Elixir | test/support/conn_case.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 2 | 2020-08-28T19:17:33.000Z | 2020-09-13T18:49:20.000Z | test/support/conn_case.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 5 | 2018-10-28T14:39:26.000Z | 2019-01-31T17:23:36.000Z | test/support/conn_case.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | null | null | null | defmodule MarsWeb.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 t... | 25.219512 | 59 | 0.710832 |
ff960f644fe03e5b14b50bd6fcd198a4e55969b1 | 123 | ex | Elixir | debian/menu.ex | certik/python2.6 | 3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59 | [
"PSF-2.0"
] | 4 | 2015-12-07T13:37:48.000Z | 2021-03-24T16:27:52.000Z | debian/menu.ex | certik/python2.6 | 3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59 | [
"PSF-2.0"
] | null | null | null | debian/menu.ex | certik/python2.6 | 3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59 | [
"PSF-2.0"
] | null | null | null | ?package(python):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="python" command="/usr/bin/python"
| 41 | 79 | 0.739837 |
ff960fd7294be9ac184718d04079b2239fd12b04 | 110 | exs | Elixir | test/ssdp_test.exs | rosetta-home/ssdp | 80bd4b75868d2605be5d497b5b9f36ac051ae459 | [
"Apache-2.0"
] | 1 | 2020-03-22T23:36:34.000Z | 2020-03-22T23:36:34.000Z | test/ssdp_test.exs | rosetta-home/ssdp | 80bd4b75868d2605be5d497b5b9f36ac051ae459 | [
"Apache-2.0"
] | null | null | null | test/ssdp_test.exs | rosetta-home/ssdp | 80bd4b75868d2605be5d497b5b9f36ac051ae459 | [
"Apache-2.0"
] | null | null | null | defmodule SsdpTest do
use ExUnit.Case
doctest SSDP
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.222222 | 21 | 0.654545 |
ff96122e8a1c1620b2634cacc3be15d2b8aa09b4 | 83 | ex | Elixir | lib/rube/erc20/events/burn.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | null | null | null | lib/rube/erc20/events/burn.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | null | null | null | lib/rube/erc20/events/burn.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | null | null | null | defmodule Rube.Erc20.Events.Burn do
defstruct ~w(sender amount0 amount1 to)a
end
| 20.75 | 42 | 0.795181 |
ff9639ea272fae2d59e1f30e65a9633a18010823 | 220 | exs | Elixir | priv/repo/migrations/20150903145437_create_contacts.exs | cncgl/phoenix-sample | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | 1 | 2016-01-01T12:55:25.000Z | 2016-01-01T12:55:25.000Z | priv/repo/migrations/20150903145437_create_contacts.exs | cncgl/phoenix-todo | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | 1 | 2015-09-10T13:41:51.000Z | 2015-09-10T13:41:51.000Z | priv/repo/migrations/20150903145437_create_contacts.exs | cncgl/phoenix-todo | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.Repo.Migrations.CreateContacts do
use Ecto.Migration
def change do
create table(:contacts) do
add :name, :string
add :phone, :string
timestamps
end
end
end
| 16.923077 | 56 | 0.659091 |
ff964a6f0acd410d0e1a4bec14c06c317d30ae6c | 1,037 | ex | Elixir | lib/queerlink/application.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 38 | 2015-11-07T23:54:26.000Z | 2021-04-09T04:14:25.000Z | lib/queerlink/application.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 2 | 2015-11-23T15:00:34.000Z | 2015-11-26T09:59:26.000Z | lib/queerlink/application.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 6 | 2015-11-26T00:25:22.000Z | 2020-03-04T22:13:59.000Z | defmodule Queerlink.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.40625 | 87 | 0.717454 |
ff96b37eb088ad1da75475b17858f01b415fe4f6 | 2,564 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec_release_type.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec_release_type.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec_release_type.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.377358 | 365 | 0.75156 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.