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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9a4ad44f96f3b1d091b84f9b7a7bb36e39f7ef5 | 642 | ex | Elixir | apps/fz_http/lib/fz_http_web/mock_events.ex | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | 1,429 | 2021-07-31T21:25:46.000Z | 2022-03-31T16:31:33.000Z | apps/fz_http/lib/fz_http_web/mock_events.ex | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | 132 | 2021-07-10T14:23:36.000Z | 2022-03-29T18:36:37.000Z | apps/fz_http/lib/fz_http_web/mock_events.ex | CloudFire-LLC/cloudfire | 24ea29bda8a8845a0a9c3b0482cc67e314611245 | [
"Apache-2.0"
] | 48 | 2021-09-14T02:48:38.000Z | 2022-03-24T18:18:50.000Z | defmodule FzHttpWeb.MockEvents do
@moduledoc """
A Mock module for testing external events
XXX: This is used because FzHttp tests will launch multiple FzVpn servers.
Instead, we should find a way to maintain a persistent link to one FzVpn server
inside FzHttp and use that for the tests.
"""
def create_d... | 16.894737 | 81 | 0.680685 |
e9a4cc4a1519e06305ea0c9661c8a19aec73149d | 1,123 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__auto_scaling.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__auto_scaling.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__auto_scaling.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... | 30.351351 | 95 | 0.759573 |
e9a4da01a1e666a62ab52b65a4a4cdf3d0553774 | 644 | exs | Elixir | bowling_game/test/iteration_01/bowling_game_test/day02_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/test/iteration_01/bowling_game_test/day02_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/test/iteration_01/bowling_game_test/day02_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule BowlingGameKataTest.Day02 do
use ExUnit.Case
import BowlingGameKata.Day02
def roll_many(pins, times), do: for _ <- 1..times, do: pins
def roll_spare(), do: [6, 4]
def roll_strike(), do: [10]
test "gutter game",
do: assert score(roll_many(0, 20)) == 0
test "all ones",
do: asse... | 23.851852 | 90 | 0.593168 |
e9a4e5a663708040dad5aaa16d428934df0db7a2 | 3,734 | exs | Elixir | test/yacto/migration/sharding_test.exs | kianmeng/yacto | af25b5a6c5c143303ae17efe0414b568e91c469a | [
"Apache-2.0"
] | 56 | 2017-11-30T02:07:07.000Z | 2022-02-16T17:38:42.000Z | test/yacto/migration/sharding_test.exs | kianmeng/yacto | af25b5a6c5c143303ae17efe0414b568e91c469a | [
"Apache-2.0"
] | 22 | 2018-01-04T00:34:51.000Z | 2021-08-01T06:52:10.000Z | test/yacto/migration/sharding_test.exs | kianmeng/yacto | af25b5a6c5c143303ae17efe0414b568e91c469a | [
"Apache-2.0"
] | 13 | 2018-08-08T05:32:42.000Z | 2021-07-30T14:57:35.000Z | defmodule Yacto.Migration.ShardingTest do
use ExUnit.Case
require Ecto.Query
@databases %{
default: %{module: Yacto.DB.Single, repo: Yacto.ShardingTest.Repo.Default},
player: %{
module: Yacto.DB.Shard,
repos: [Yacto.ShardingTest.Repo.Player0, Yacto.ShardingTest.Repo.Player1]
}
}
set... | 31.644068 | 79 | 0.636583 |
e9a501df2710bbba44135655da9a54886bac9f61 | 2,029 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/metric_rule.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/metric_rule.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/metric_rule.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.784314 | 356 | 0.743223 |
e9a5579e3bddfe6a6e81986ed39ea224f43f1279 | 999 | ex | Elixir | apps/artemis_notify/lib/artemis_notify/view_helpers/slack.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_notify/lib/artemis_notify/view_helpers/slack.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_notify/lib/artemis_notify/view_helpers/slack.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisNotify.ViewHelper.Slack do
@doc """
Converts HTML bitstring to slack markdown
"""
def convert_html_to_slack_markdown!(html) do
html
|> Floki.parse_fragment!()
|> strip_html_tags()
|> Floki.text()
end
defp strip_html_tags(html_tree) do
Enum.map(html_tree, &update_tag(&1)... | 32.225806 | 108 | 0.650651 |
e9a578792e7c38c2a3e25b2afe46c259f6926d32 | 109 | ex | Elixir | lib/docker/container.ex | azukiapp/exdocker | 87ed188d72150df74d030fc8431888dbc61edcd6 | [
"Apache-2.0"
] | 1 | 2015-06-13T03:33:49.000Z | 2015-06-13T03:33:49.000Z | lib/docker/container.ex | azukiapp/exdocker | 87ed188d72150df74d030fc8431888dbc61edcd6 | [
"Apache-2.0"
] | null | null | null | lib/docker/container.ex | azukiapp/exdocker | 87ed188d72150df74d030fc8431888dbc61edcd6 | [
"Apache-2.0"
] | null | null | null | defmodule Docker.Container do
use Docker.Request
root_endpoint "/containers"
entry :all, "/json"
end
| 13.625 | 29 | 0.733945 |
e9a58c368cfd5b38d783a66a2fcf7f0b0dcc4c76 | 2,739 | ex | Elixir | lib/pigeon/apns/shared.ex | stefanzvkvc/pigeon | 3de4179db924e0f003edb0a480a60e616699739e | [
"MIT"
] | 1 | 2021-09-05T13:34:21.000Z | 2021-09-05T13:34:21.000Z | lib/pigeon/apns/shared.ex | stefanzvkvc/pigeon | 3de4179db924e0f003edb0a480a60e616699739e | [
"MIT"
] | null | null | null | lib/pigeon/apns/shared.ex | stefanzvkvc/pigeon | 3de4179db924e0f003edb0a480a60e616699739e | [
"MIT"
] | null | null | null | defmodule Pigeon.APNS.Shared do
@moduledoc false
import Pigeon.Tasks, only: [process_on_response: 2]
alias Pigeon.APNS.{Config, Error, JWTConfig, Notification}
@type config :: Config.t() | JWTConfig.t()
@type headers :: [{String.t(), String.t()}]
@type opts :: Keyword.t()
@apns_id "apns-id"
@apns_t... | 28.53125 | 74 | 0.665206 |
e9a5a584fe96b9dddeee4369e229bf185d03d85d | 259 | ex | Elixir | lib/jabberwocky.ex | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | lib/jabberwocky.ex | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | lib/jabberwocky.ex | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | defmodule Jabberwocky do
@moduledoc """
Jabberwocky keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.9 | 66 | 0.760618 |
e9a5e586bb8e82ffd48c90ea080415b70fcb8976 | 2,786 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_request.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... | 49.75 | 345 | 0.741206 |
e9a62198caed396c86a935572e532a2fc475f17f | 1,241 | ex | Elixir | web/views/error_helpers.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | 1 | 2021-09-24T12:32:05.000Z | 2021-09-24T12:32:05.000Z | defmodule Magnetissimo.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(err... | 30.268293 | 78 | 0.671233 |
e9a6397d4ee85107890b22b6105ae9a5e700b886 | 1,489 | ex | Elixir | lib/spandex_phoenix/plug/add_context.ex | surgeventures/spandex_phoenix | f77bc73b1718deb3d553fd6d171ac23191c09331 | [
"MIT"
] | null | null | null | lib/spandex_phoenix/plug/add_context.ex | surgeventures/spandex_phoenix | f77bc73b1718deb3d553fd6d171ac23191c09331 | [
"MIT"
] | null | null | null | lib/spandex_phoenix/plug/add_context.ex | surgeventures/spandex_phoenix | f77bc73b1718deb3d553fd6d171ac23191c09331 | [
"MIT"
] | null | null | null | defmodule SpandexPhoenix.Plug.AddContext do
@moduledoc false
@behaviour Plug
@init_opts Optimal.schema(
opts: [
customize_metadata: {:function, 1},
tracer: :atom
],
defaults: [
customize_metadata: &SpandexPhoenix.def... | 31.020833 | 79 | 0.566823 |
e9a6a86bc192a70ae56a12206a7e79de3f78f6d2 | 6,883 | ex | Elixir | apps/gitrekt/lib/gitrekt/wire_protocol.ex | anndream/gitgud | 0dee75547f86040df417def209bf62c33cd8dfec | [
"MIT"
] | 1 | 2019-09-08T07:48:10.000Z | 2019-09-08T07:48:10.000Z | apps/gitrekt/lib/gitrekt/wire_protocol.ex | anndream/gitgud | 0dee75547f86040df417def209bf62c33cd8dfec | [
"MIT"
] | null | null | null | apps/gitrekt/lib/gitrekt/wire_protocol.ex | anndream/gitgud | 0dee75547f86040df417def209bf62c33cd8dfec | [
"MIT"
] | null | null | null | defmodule GitRekt.WireProtocol do
@moduledoc """
Conveniences for Git transport protocol and server side commands.
"""
alias GitRekt.Git
alias GitRekt.GitAgent
alias GitRekt.Packfile
@upload_caps ~w(thin-pack multi_ack multi_ack_detailed)
@receive_caps ~w(report-status delete-refs)
@doc """
Callb... | 31.144796 | 134 | 0.637803 |
e9a6ecd9e357826f49293327efb8b05cb28187b9 | 4,229 | ex | Elixir | lib/teiserver/data/matchmaking.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/data/matchmaking.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/data/matchmaking.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | # A struct representing the in-memory version of Teiserver.Game.DBQueue
defmodule Teiserver.Data.QueueStruct do
@enforce_keys [:id, :name, :team_size, :icon, :colour, :settings, :conditions, :map_list]
defstruct [
:id,
:name,
:team_size,
:icon,
:colour,
:settings,
:conditions,
:map_l... | 24.165714 | 91 | 0.643651 |
e9a729e7c500e5ac843215d2cb4d0990828309b2 | 718 | ex | Elixir | web/gettext.ex | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | web/gettext.ex | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | web/gettext.ex | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | defmodule MysteryNight.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import MysteryNight.Gettext
# Simple translation
gettext "Here ... | 28.72 | 72 | 0.685237 |
e9a7768057906067825b3e1c06f8e9e32ccb3261 | 437 | exs | Elixir | config/test.exs | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | 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 :spelt, SpeltWeb.Endpoint,
http: [port: 4002],
server: false
# Matrix /.well-known/matrix/client URLs
# `homeserver` is required; `identity_server` is optional.
config :spelt, :well_known, %{
... | 25.705882 | 58 | 0.7254 |
e9a77f63e5760680892efdaab3681c003a148959 | 5,573 | ex | Elixir | clients/container/lib/google_api/container/v1/model/node_pool.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_pool.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_pool.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... | 54.106796 | 168 | 0.705006 |
e9a780ec21317a3975bed9a261a8789a0bfd131d | 3,330 | ex | Elixir | lib/bandwidth/resources/applications.ex | dtolb/elixir-bandwidth | 58dbc1ab8b04be737c08e894d36755d49eb95e87 | [
"MIT"
] | 4 | 2018-11-19T16:22:15.000Z | 2021-01-23T08:44:25.000Z | lib/bandwidth/resources/applications.ex | dtolb/elixir-bandwidth | 58dbc1ab8b04be737c08e894d36755d49eb95e87 | [
"MIT"
] | 3 | 2017-11-07T14:39:10.000Z | 2019-02-18T14:17:52.000Z | lib/bandwidth/resources/applications.ex | wtcross/elixir-bandwidth | 58dbc1ab8b04be737c08e894d36755d49eb95e87 | [
"MIT"
] | 5 | 2017-11-06T22:41:45.000Z | 2019-08-09T03:17:37.000Z | defmodule Bandwidth.Resources.Applications do
@moduledoc """
The Applications resource lets you define call and message handling applications.
You write an application on your own servers and have Bandwidth API send events
to it by configuring a callback URL.
[Bandwidth Docs](http://ap.bandwidth.com/docs/res... | 33.3 | 124 | 0.66997 |
e9a78589a9b542db59999cf999146873176a20f3 | 187 | exs | Elixir | priv/repo/migrations/20210513170343_create_keywords.exs | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210513170343_create_keywords.exs | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210513170343_create_keywords.exs | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | defmodule WatchFaces.Repo.Migrations.CreateKeywords do
use Ecto.Migration
def change do
create table(:keywords) do
add :name, :string
timestamps()
end
end
end
| 15.583333 | 54 | 0.68984 |
e9a7977e243bfdc233ff5ba6ae949266dca182ae | 482 | ex | Elixir | lib/echo_ip/router.ex | potch8228/ex-echo-ip | ca794cc3cf0945c7833e33c91d4fb37aafbe824f | [
"MIT"
] | null | null | null | lib/echo_ip/router.ex | potch8228/ex-echo-ip | ca794cc3cf0945c7833e33c91d4fb37aafbe824f | [
"MIT"
] | null | null | null | lib/echo_ip/router.ex | potch8228/ex-echo-ip | ca794cc3cf0945c7833e33c91d4fb37aafbe824f | [
"MIT"
] | null | null | null | defmodule EchoIp.Router do
use Sugar.Router
plug Sugar.Plugs.HotCodeReload
if Sugar.Config.get(:sugar, :show_debugger, false) do
use Plug.Debugger, otp_app: :echo_ip
end
plug Plug.Static, at: "/static", from: :echo_ip
# Uncomment the following line for session store
# plug Plug.Session, store: :ets... | 26.777778 | 77 | 0.707469 |
e9a7cd53d0cd0db1303b9c8b4f39e2ae90951df7 | 2,981 | ex | Elixir | lib/credo/check/warning/application_config_in_module_attribute.ex | rands0n/credo | c787a726ac7a521e21da5a098bd966af8862beb6 | [
"MIT"
] | 1 | 2021-12-27T01:30:05.000Z | 2021-12-27T01:30:05.000Z | lib/credo/check/warning/application_config_in_module_attribute.ex | rands0n/credo | c787a726ac7a521e21da5a098bd966af8862beb6 | [
"MIT"
] | null | null | null | lib/credo/check/warning/application_config_in_module_attribute.ex | rands0n/credo | c787a726ac7a521e21da5a098bd966af8862beb6 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Warning.ApplicationConfigInModuleAttribute do
use Credo.Check,
base_priority: :high,
tags: [:controversial],
category: :warning,
explanations: [
check: """
Module attributes are evaluated at compile time and not at run time. As
a result, certain configuration re... | 27.348624 | 116 | 0.632674 |
e9a7f1d7c99245adf0f62be72591c722c7ca785b | 2,357 | ex | Elixir | lib/loom_web.ex | simonfraserduncan/my-copy | 03c618035a06a63d8fcf9f6511ef59d3e4cf2da9 | [
"Apache-2.0"
] | 4 | 2021-02-20T02:47:36.000Z | 2021-06-08T18:42:40.000Z | lib/loom_web.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | null | null | null | lib/loom_web.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | 1 | 2021-02-17T18:28:35.000Z | 2021-02-17T18:28:35.000Z | defmodule LoomWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use LoomWeb, :controller
use LoomWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 22.235849 | 78 | 0.678405 |
e9a82ba94f197bb0d62d2bbce7eaa56f9551746e | 240 | ex | Elixir | lib/pmj/source/stackoverflow_jobs/client.ex | Mehonoshin/pmj | d16e6af7f136cb69c9008e55886ef4619974fc1e | [
"MIT"
] | 1 | 2020-01-12T20:08:37.000Z | 2020-01-12T20:08:37.000Z | lib/pmj/source/stackoverflow_jobs/client.ex | Mehonoshin/pmj | d16e6af7f136cb69c9008e55886ef4619974fc1e | [
"MIT"
] | null | null | null | lib/pmj/source/stackoverflow_jobs/client.ex | Mehonoshin/pmj | d16e6af7f136cb69c9008e55886ef4619974fc1e | [
"MIT"
] | null | null | null | defmodule Pmj.Source.StackoverflowJobs.Client do
@moduledoc """
This module runs HTTP calls to SO RSS
"""
use HTTPoison.Base
@site_url "https://stackoverflow.com/jobs/feed"
def get do
{:ok, get!(@site_url).body}
end
end
| 18.461538 | 49 | 0.691667 |
e9a854f38d1158fbdea9078f4b9e4b9a22a9fb17 | 1,137 | exs | Elixir | mix.exs | szlend/clickhousex | ff6b67a8407432311bea903c16b6b576d4f59bd8 | [
"Apache-2.0"
] | null | null | null | mix.exs | szlend/clickhousex | ff6b67a8407432311bea903c16b6b576d4f59bd8 | [
"Apache-2.0"
] | null | null | null | mix.exs | szlend/clickhousex | ff6b67a8407432311bea903c16b6b576d4f59bd8 | [
"Apache-2.0"
] | 2 | 2019-12-10T14:12:40.000Z | 2020-03-23T13:32:18.000Z | defmodule Clickhousex.Mixfile do
use Mix.Project
def project do
[
app: :clickhousex,
version: "0.4.0",
elixir: "~> 1.5",
deps: deps(),
package: package(),
source_url: "https://github.com/appodeal/clickhousex"
]
end
# Run "mix help compile.app" to learn about applica... | 22.294118 | 96 | 0.579595 |
e9a85729ff6a61f79f3b06add90cecb7cf68252b | 889 | exs | Elixir | config/prod.secret.exs | vheathen/esp32-simple-control-panel | f463c82927d05129614cadb81f7138c992b23d01 | [
"MIT"
] | 2 | 2020-06-24T22:13:10.000Z | 2021-01-07T18:01:14.000Z | config/prod.secret.exs | vheathen/esp32-simple-control-panel | f463c82927d05129614cadb81f7138c992b23d01 | [
"MIT"
] | null | null | null | config/prod.secret.exs | vheathen/esp32-simple-control-panel | f463c82927d05129614cadb81f7138c992b23d01 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 32.925926 | 76 | 0.737908 |
e9a865ca2970c339505a57d7229ac00bd3dbca59 | 795 | ex | Elixir | examples/nested/lib/nested.ex | dengjie-ys/ex_ray | 2715b44d8a8d6a17632e8cb9a9dfb98043f471d9 | [
"Apache-2.0"
] | 60 | 2017-10-27T22:24:47.000Z | 2021-07-15T23:58:46.000Z | examples/nested/lib/nested.ex | dengjie-ys/ex_ray | 2715b44d8a8d6a17632e8cb9a9dfb98043f471d9 | [
"Apache-2.0"
] | 2 | 2018-05-29T01:29:20.000Z | 2020-04-14T09:05:56.000Z | examples/nested/lib/nested.ex | dengjie-ys/ex_ray | 2715b44d8a8d6a17632e8cb9a9dfb98043f471d9 | [
"Apache-2.0"
] | 9 | 2017-10-27T18:52:45.000Z | 2020-11-13T19:47:27.000Z | defmodule Nested do
use ExRay, pre: :before_fun, post: :after_fun
require Logger
alias ExRay.Span
@req_id :os.system_time(:milli_seconds) |> Integer.to_string
@trace kind: :critical
@spec fred(integer, integer) :: integer
def fred(a, b), do: blee(a, b)
@trace kind: :coolness
def blee(a, b) do
... | 22.714286 | 66 | 0.610063 |
e9a87b41488971d6c2ecfd3f4b1ddb49bfa24712 | 2,016 | exs | Elixir | web/elm-stuff/packages/simonh1000/elm-jwt/5.2.2/examples/phoenix/config/prod.exs | Woody88/AnkiProject | 91ce73e058e6d98678073d53a7b84c0b6571aacc | [
"BSD-3-Clause"
] | 1 | 2018-02-21T20:01:51.000Z | 2018-02-21T20:01:51.000Z | web/elm-stuff/packages/simonh1000/elm-jwt/5.2.2/examples/phoenix/config/prod.exs | Woody88/AnkiProject | 91ce73e058e6d98678073d53a7b84c0b6571aacc | [
"BSD-3-Clause"
] | 1 | 2021-04-21T07:08:26.000Z | 2021-04-21T07:08:26.000Z | examples/phoenix/config/prod.exs | JonRowe/elm-jwt | 54a65b33b362cb8daa2fcc4dd574aeec2d3c02b6 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.516129 | 67 | 0.717262 |
e9a87e0333108d3302cc0e8e2fc2bfde7cf01099 | 55 | ex | Elixir | MixProject/help/lib/help_web/views/page_view.ex | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | MixProject/help/lib/help_web/views/page_view.ex | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | MixProject/help/lib/help_web/views/page_view.ex | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | defmodule HelpWeb.PageView do
use HelpWeb, :view
end
| 13.75 | 29 | 0.781818 |
e9a88aaf16c93f080a74716d6242edb37db0a722 | 651 | exs | Elixir | implementations/elixir/ockam/ockam_services/config/config.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/config/config.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/config/config.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | ## Application configuration used in release as sys.config or mix run
## THIS CONFIGURATION IS NOT LOADED IF THE APP IS LOADED AS A DEPENDENCY
import Config
config :ockam_services,
tcp_transport_port: 4000,
udp_transport_port: 7000
config :ockam_services,
service_providers: [
# default services
Ockam.S... | 26.04 | 72 | 0.751152 |
e9a8997740395ab319fa8f1359686d6a106d71be | 1,829 | exs | Elixir | clients/dataproc/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.298507 | 103 | 0.653909 |
e9a8a0c4c7044f0e527f600a2cbbb6c1689ac7ce | 1,903 | exs | Elixir | test/phoenix_client_ssl/plug/add_client_certificate_to_absinthe_context_test.exs | Prato/phoenix-client-ssl | 510c2381e6d95c9baa6de9985d86d0a5dfe27b29 | [
"MIT"
] | 17 | 2017-12-01T09:12:41.000Z | 2021-04-16T07:53:37.000Z | test/phoenix_client_ssl/plug/add_client_certificate_to_absinthe_context_test.exs | Prato/phoenix-client-ssl | 510c2381e6d95c9baa6de9985d86d0a5dfe27b29 | [
"MIT"
] | 2 | 2018-01-29T13:04:26.000Z | 2018-05-24T11:03:55.000Z | test/phoenix_client_ssl/plug/add_client_certificate_to_absinthe_context_test.exs | Prato/phoenix-client-ssl | 510c2381e6d95c9baa6de9985d86d0a5dfe27b29 | [
"MIT"
] | 6 | 2018-05-24T07:42:22.000Z | 2020-11-14T17:41:35.000Z | defmodule PhoenixClientSsl.Plug.AddClientCertificateToAbsintheContextTest do
@moduledoc false
use ExUnit.Case
alias PhoenixClientSsl.Plug.AddClientCertificateToAbsintheContext
alias Plug.Conn
doctest AddClientCertificateToAbsintheContext
describe "init/1" do
test "empty config passes" do
asser... | 29.734375 | 95 | 0.645822 |
e9a8b4f1b03fb46fd8311ce764f71c56852e2032 | 1,694 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_style_font.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_style_font.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_style_font.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... | 33.88 | 174 | 0.727863 |
e9a8bbe39bab80f4c6be457a4e1c5da93d40ba09 | 9,457 | exs | Elixir | apps/site/test/site_web/controllers/event_controller_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | apps/site/test/site_web/controllers/event_controller_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | 65 | 2021-05-06T18:38:33.000Z | 2022-03-28T20:50:04.000Z | apps/site/test/site_web/controllers/event_controller_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | defmodule SiteWeb.EventControllerTest do
use SiteWeb.ConnCase
import SiteWeb.EventController
import Mock
@current_date ~D[2019-04-15]
setup_with_mocks([
{SiteWeb.Plugs.Date, [],
[
call: fn conn, _ -> Plug.Conn.assign(conn, :date, @current_date) end
]}
]) do
:ok
end
describe ... | 37.232283 | 114 | 0.643016 |
e9a8eb23d660ded68d8e55c090a4a8908a9debd3 | 72 | ex | Elixir | lib/bloggex_web/views/admin/dashboard_view.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | 1 | 2020-01-14T03:17:51.000Z | 2020-01-14T03:17:51.000Z | lib/bloggex_web/views/admin/dashboard_view.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | lib/bloggex_web/views/admin/dashboard_view.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | defmodule BloggexWeb.Admin.DashboardView do
use BloggexWeb, :view
end
| 18 | 43 | 0.819444 |
e9a8f5215b86370d1a99d0402b5a43403ebc0743 | 12,294 | ex | Elixir | lib/dissolver.ex | joshchernoff/dissolver | 474ba48fd4d3afa5668039d8651663160c513b63 | [
"MIT"
] | null | null | null | lib/dissolver.ex | joshchernoff/dissolver | 474ba48fd4d3afa5668039d8651663160c513b63 | [
"MIT"
] | 4 | 2020-04-04T19:34:54.000Z | 2020-04-04T20:47:50.000Z | lib/dissolver.ex | joshchernoff/dissolver | 474ba48fd4d3afa5668039d8651663160c513b63 | [
"MIT"
] | null | null | null | defmodule Dissolver do
@moduledoc """
# Dissolver
### NOTE: This is a wip repo. So be warned there maybe be bugs.
This project is a fork of https://github.com/elixirdrops/kerosene.
I thought to take it over because it does not look as if its being activly developed
and I wanted more features.
TODO: ... | 30.658354 | 288 | 0.672523 |
e9a9132d6cebbda5670bb7f7437bf32a96fc77cb | 427 | ex | Elixir | lib/mu_dispatcher.ex | bdevloed/mu-dispatcher | a2e5b3d2ab4068fbafcd96242f9365082a5475e1 | [
"MIT"
] | 5 | 2015-07-26T13:33:58.000Z | 2020-09-09T14:12:13.000Z | lib/mu_dispatcher.ex | bdevloed/mu-dispatcher | a2e5b3d2ab4068fbafcd96242f9365082a5475e1 | [
"MIT"
] | 8 | 2017-08-01T13:05:32.000Z | 2021-09-09T13:35:35.000Z | lib/mu_dispatcher.ex | bdevloed/mu-dispatcher | a2e5b3d2ab4068fbafcd96242f9365082a5475e1 | [
"MIT"
] | 5 | 2016-03-02T14:50:44.000Z | 2021-07-19T07:17:55.000Z | defmodule MuDispatcher do
@moduledoc """
MuDispatcher forwards messages to desired microservices
"""
use Application
require Logger
def start(_argv, _args) do
port = 80
children = [
{Plug.Cowboy, scheme: :http, plug: PlugRouterDispatcher, options: [port: port]}
]
Logger.info("Mu Di... | 20.333333 | 85 | 0.690867 |
e9a95d97b61a6c8480274a0af27a9a8c7fe468ae | 330 | ex | Elixir | lib/arrow_web/auth_manager.ex | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | null | null | null | lib/arrow_web/auth_manager.ex | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | lib/arrow_web/auth_manager.ex | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | defmodule ArrowWeb.AuthManager do
@moduledoc false
use Guardian, otp_app: :arrow
@impl true
def subject_for_token(resource, _claims) do
{:ok, resource}
end
@impl true
def resource_from_claims(%{"sub" => username}) do
{:ok, username}
end
def resource_from_claims(_), do: {:error, :invalid_cl... | 18.333333 | 60 | 0.69697 |
e9a96300bbda6206b8576e1221ca04a06d0872f0 | 2,320 | ex | Elixir | apps/andi/lib/andi_web/router.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web/router.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web/router.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule AndiWeb.Router do
use AndiWeb, :router
require Ueberauth
@csp "default-src 'self';" <>
"style-src 'self' 'unsafe-inline' 'unsafe-eval' https://fonts.googleapis.com;" <>
"script-src 'self' 'unsafe-inline' 'unsafe-eval';" <>
"font-src https://fonts.gstatic.com data: 'self';" <>... | 31.351351 | 140 | 0.684914 |
e9a9676cd2eb62d9ad1a4cbadc34efdb9209610d | 1,308 | exs | Elixir | test/test_helper.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 8 | 2021-10-02T16:25:19.000Z | 2022-02-03T17:50:34.000Z | test/test_helper.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 1 | 2022-01-19T12:10:49.000Z | 2022-01-19T12:10:49.000Z | test/test_helper.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 2 | 2022-01-10T07:48:16.000Z | 2022-02-06T17:05:57.000Z | ExUnit.start()
Logger.configure(level: :info)
# Logger.configure(level: :debug)
defmodule TestData do
use ExUnit.Case
@test_data_path Path.join(__DIR__, "data")
def test_data_path() do
@test_data_path
end
def network_path(network) when network in [:mainnet, :testnet, :devnet] do
Path.join(test_da... | 24.679245 | 76 | 0.684251 |
e9a97a293a246bb41c8029a04d8bc0fd0ce486f5 | 2,331 | ex | Elixir | lib/active_jorb/queue_adapter/test.ex | jherdman/active_jorb | f0d5006f3de9813883e25c316ac4f2233a52fd5b | [
"MIT"
] | null | null | null | lib/active_jorb/queue_adapter/test.ex | jherdman/active_jorb | f0d5006f3de9813883e25c316ac4f2233a52fd5b | [
"MIT"
] | 10 | 2018-04-06T16:24:59.000Z | 2018-04-10T16:12:10.000Z | lib/active_jorb/queue_adapter/test.ex | PrecisionNutrition/active_jorb | f0d5006f3de9813883e25c316ac4f2233a52fd5b | [
"MIT"
] | 1 | 2018-04-08T22:03:32.000Z | 2018-04-08T22:03:32.000Z | defmodule ActiveJorb.QueueAdapter.Test do
@moduledoc """
Use this module to facilitate testing. This will not execute the jobs (we can't,
they're on a remote system), but we can verify that you enqueued a job with
the correct parameters.
"""
@behaviour ActiveJorb.QueueAdapter
alias ActiveJorb.Job
@do... | 24.797872 | 82 | 0.650365 |
e9a98845370a9bfc914c5478c7d276b0eb8a23e1 | 3,835 | exs | Elixir | test/argon2_test.exs | kianmeng/argon2_elixir | 4a35c24d53ee75a91ef17d6859b065a87c84d19a | [
"Apache-2.0"
] | 203 | 2016-10-25T12:08:48.000Z | 2022-03-28T22:15:10.000Z | test/argon2_test.exs | kianmeng/argon2_elixir | 4a35c24d53ee75a91ef17d6859b065a87c84d19a | [
"Apache-2.0"
] | 53 | 2016-10-23T09:44:05.000Z | 2022-01-22T01:03:13.000Z | test/argon2_test.exs | kianmeng/argon2_elixir | 4a35c24d53ee75a91ef17d6859b065a87c84d19a | [
"Apache-2.0"
] | 32 | 2016-11-02T20:23:28.000Z | 2022-03-07T08:38:49.000Z | defmodule Argon2Test do
use ExUnit.Case
doctest Argon2
import Comeonin.BehaviourTestHelper
alias Argon2.Base
test "implementation of Comeonin.PasswordHash behaviour" do
password = Enum.random(ascii_passwords())
assert correct_password_true(Argon2, password)
assert wrong_password_false(Argon2, p... | 33.938053 | 87 | 0.708475 |
e9a993bc008f8e828943b55aa45914b5c01c4f1a | 2,203 | exs | Elixir | config/prod.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 4 | 2020-04-11T23:00:13.000Z | 2022-02-07T14:51:18.000Z | config/prod.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 2 | 2021-03-10T13:32:34.000Z | 2021-05-11T09:27:10.000Z | config/prod.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"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.716667 | 75 | 0.725374 |
e9a99f8f4b58ab868317a2c5110788777053532d | 1,644 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/filter_expression_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/filter_expression_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/filter_expression_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.978723 | 144 | 0.758516 |
e9a9cac45c5fda655003295e023f1a301b1636b6 | 1,261 | ex | Elixir | test/support/conn_case.ex | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | 3 | 2020-03-09T04:29:49.000Z | 2020-07-14T16:09:50.000Z | test/support/conn_case.ex | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | null | null | null | defmodule PortisheadWeb.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... | 29.325581 | 72 | 0.72958 |
e9a9f0187aafcc52d84d9eeb6e603b52acba03f4 | 1,132 | exs | Elixir | mix.exs | KamilZielinski/ecto_enum | 4cbcb359b63102edea3db4e984a33d4d09e3f0c0 | [
"MIT"
] | null | null | null | mix.exs | KamilZielinski/ecto_enum | 4cbcb359b63102edea3db4e984a33d4d09e3f0c0 | [
"MIT"
] | null | null | null | mix.exs | KamilZielinski/ecto_enum | 4cbcb359b63102edea3db4e984a33d4d09e3f0c0 | [
"MIT"
] | null | null | null | defmodule EctoEnum.Mixfile do
use Mix.Project
@version "1.2.0"
def project do
[
app: :ecto_enum,
version: @version,
elixir: "~> 1.2",
deps: deps(),
description: "Ecto extension to support enums in models",
test_paths: test_paths(Mix.env()),
package: package(),
... | 24.085106 | 92 | 0.553887 |
e9aa6178c4116b583d3dfb68557dcff82f0feaa0 | 1,512 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_category_description.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_category_description.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_category_description.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... | 31.5 | 102 | 0.760582 |
e9aa8433760a97d40542c986419bb85fd54d4f74 | 10,731 | ex | Elixir | lib/phoenix/presence.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2019-07-15T21:58:09.000Z | 2019-07-15T21:58:09.000Z | lib/phoenix/presence.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | lib/phoenix/presence.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | defmodule Phoenix.Presence do
@moduledoc """
Provides Presence tracking to processes and channels.
This behaviour provides presence features such as fetching
presences for a given topic, as well as handling diffs of
join and leave events as they occur in real-time. Using this
module defines a supervisor an... | 36.131313 | 135 | 0.646631 |
e9aa8602d1a0ee0ea49f870fcf0565762443c58c | 4,563 | exs | Elixir | mix.exs | sorentwo/hex | 92e71162bdf1d7b17a4c641b900c81868ccab56c | [
"Apache-2.0"
] | null | null | null | mix.exs | sorentwo/hex | 92e71162bdf1d7b17a4c641b900c81868ccab56c | [
"Apache-2.0"
] | null | null | null | mix.exs | sorentwo/hex | 92e71162bdf1d7b17a4c641b900c81868ccab56c | [
"Apache-2.0"
] | null | null | null | defmodule Hex.MixProject do
use Mix.Project
@version "0.21.2-dev"
{:ok, system_version} = Version.parse(System.version())
@elixir_version {system_version.major, system_version.minor, system_version.patch}
def project do
[
app: :hex,
version: @version,
elixir: "~> 1.0",
aliases: ... | 30.42 | 95 | 0.624808 |
e9aa87ce59d525441bfa0053af8190920766f6d3 | 413 | exs | Elixir | priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/test/foo_bar_web/views/error_view_test.exs | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/test/foo_bar_web/views/error_view_test.exs | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/test/foo_bar_web/views/error_view_test.exs | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | defmodule FooBarWeb.ErrorViewTest do
use FooBarWeb.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(FooBarWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
e9aa9033a535ba7d8c77added780ac036a04332d | 5,462 | ex | Elixir | lib/bolt/cogs/lastjoins.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | lib/bolt/cogs/lastjoins.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | lib/bolt/cogs/lastjoins.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.Cogs.LastJoins do
@moduledoc false
@behaviour Nosedrum.Command
alias Bolt.{Constants, Helpers, Paginator, Parsers}
alias Nosedrum.MessageCache.Agent, as: MessageCache
alias Nosedrum.Predicates
alias Nostrum.Api
alias Nostrum.Cache.GuildCache
alias Nostrum.Struct.Embed
alias Nostrum.St... | 30.513966 | 114 | 0.658367 |
e9aa945f7f90efc9706287deb32a4e0b4dbacc1d | 827 | ex | Elixir | lib/app/c.ex | andrzej-mag/meshx_node | c91526e0d7059373aa02fa9e43888456157dbcfb | [
"Apache-2.0"
] | 2 | 2021-05-20T07:09:58.000Z | 2021-05-24T14:19:01.000Z | lib/app/c.ex | andrzej-mag/meshx_node | c91526e0d7059373aa02fa9e43888456157dbcfb | [
"Apache-2.0"
] | null | null | null | lib/app/c.ex | andrzej-mag/meshx_node | c91526e0d7059373aa02fa9e43888456157dbcfb | [
"Apache-2.0"
] | null | null | null | defmodule MeshxNode.App.C do
@moduledoc false
@lib Mix.Project.config() |> Keyword.fetch!(:app)
def lib, do: @lib
def mesh_adapter, do: Application.fetch_env!(@lib, :mesh_adapter)
def service_params,
do: Application.get_env(@lib, :service_params, &MeshxNode.Default.service_params/2)
def service_reg... | 28.517241 | 89 | 0.735187 |
e9aaa78dc3e4b4648c9f5aef8a8869f590280c5d | 3,393 | exs | Elixir | test/vintage_net/name_resolver_test.exs | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | test/vintage_net/name_resolver_test.exs | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | test/vintage_net/name_resolver_test.exs | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.Interface.NameResolverTest do
use VintageNetTest.Case
alias VintageNet.NameResolver
import ExUnit.CaptureLog
@resolvconf_path "resolv.conf"
setup do
# Run the tests with the application stopped.
capture_log(fn ->
Application.stop(:vintage_net)
end)
on_exit(fn -> A... | 26.507813 | 73 | 0.597406 |
e9aab1eff954bbcdbd86f356435a972b0a1fe07e | 1,890 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/customer_index_stats.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/customer_index_stats.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/customer_index_stats.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... | 37.8 | 158 | 0.746032 |
e9aad6efdf9fd5e076d362d6452fc260ff1caa83 | 283 | exs | Elixir | priv/repo/migrations/20210430011049_create_payment_method_type.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | priv/repo/migrations/20210430011049_create_payment_method_type.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | priv/repo/migrations/20210430011049_create_payment_method_type.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule Rockelivery.Repo.Migrations.CreatePaymentMethodType do
use Ecto.Migration
def change do
up_query = "CREATE TYPE payment_method AS ENUM ('money', 'credit_card', 'debit_card')"
down_query = "DROP TYPE payment_method"
execute(up_query, down_query)
end
end
| 25.727273 | 90 | 0.75265 |
e9aaea166960925230b03c8a673ecf3d40fdb1ae | 1,556 | ex | Elixir | lib/zss_service/error.ex | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | lib/zss_service/error.ex | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | 13 | 2017-05-20T12:19:37.000Z | 2017-07-16T10:31:34.000Z | lib/zss_service/error.ex | nickve28/zss_service_suite_service_ex | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | defmodule ZssService.Error do
@moduledoc """
Provides convenience functions for coercing errors
"""
@errors ZssService.ErrorCodes.errors
@internal "500"
@messages ["developer_message", "user_message", "validation_errors"]
@doc """
Creates an error model based on the code. Unknown codes get coerced to... | 23.575758 | 115 | 0.674165 |
e9ab41e97530f8f628e4de22bd0417c752c6fc36 | 877 | ex | Elixir | lib/sandwar/application.ex | DarkMarmot/sandwar | 48d5a4b18e313b055f93088355fb0cf6685c836c | [
"Apache-2.0"
] | 6 | 2019-08-30T17:40:40.000Z | 2020-11-10T18:59:27.000Z | lib/sandwar/application.ex | DarkMarmot/sandwar | 48d5a4b18e313b055f93088355fb0cf6685c836c | [
"Apache-2.0"
] | 2 | 2021-03-09T12:39:20.000Z | 2021-05-10T02:44:45.000Z | lib/sandwar/application.ex | DarkMarmot/sandwar | 48d5a4b18e313b055f93088355fb0cf6685c836c | [
"Apache-2.0"
] | null | null | null | defmodule Sandwar.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 28.290323 | 66 | 0.719498 |
e9ab5ff8482bca5e4d574bdd3497bc2281dbe55a | 1,003 | ex | Elixir | test/support/channel_case.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | defmodule Scrawler.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be ... | 22.795455 | 70 | 0.701894 |
e9ab93eaa1ed55db259b8ad47b1d3909584d38d3 | 2,695 | ex | Elixir | lib/tai_shang/ethereum/transaction.ex | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 17 | 2021-06-10T07:39:18.000Z | 2021-12-16T03:26:53.000Z | lib/tai_shang/ethereum/transaction.ex | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 4 | 2021-05-19T02:09:53.000Z | 2021-07-03T09:34:09.000Z | lib/tai_shang/ethereum/transaction.ex | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 4 | 2021-07-06T02:50:29.000Z | 2021-12-21T09:33:20.000Z | defmodule TaiShang.Ethereum.Transaction do
@moduledoc """
Tx about Ethereum.
"""
alias Utils.Crypto
alias Ethereumex.HttpClient
alias TaiShang.Ethereum.Transaction
@gas %{price: 0, limit: 3_000_000}
defstruct nonce: 0,
gas_price: 0,
gas_limit: 0,
to: <<>>,
... | 22.090164 | 92 | 0.535065 |
e9ab98c7e2f4e6c2a338269a778b4a6e5e6279db | 619 | exs | Elixir | test/elixir/mix.exs | Spotme/couchdb | 147b708c91f14be06c3cd0d779e9b9e4863c0515 | [
"Apache-2.0"
] | null | null | null | test/elixir/mix.exs | Spotme/couchdb | 147b708c91f14be06c3cd0d779e9b9e4863c0515 | [
"Apache-2.0"
] | 1 | 2018-10-01T11:37:24.000Z | 2018-10-03T08:57:30.000Z | test/elixir/mix.exs | Spotme/couchdb | 147b708c91f14be06c3cd0d779e9b9e4863c0515 | [
"Apache-2.0"
] | 1 | 2018-02-13T16:17:04.000Z | 2018-02-13T16:17:04.000Z | defmodule Foo.Mixfile do
use Mix.Project
def project do
[
app: :foo,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: ... | 19.967742 | 88 | 0.546042 |
e9ac0af3c890bacd509327b00227545d96f26796 | 2,894 | exs | Elixir | exercises/concept/bread-and-potions/test/rpg_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 200 | 2019-12-12T13:50:59.000Z | 2022-02-20T22:38:42.000Z | exercises/concept/bread-and-potions/test/rpg_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 1,938 | 2019-12-12T08:07:10.000Z | 2021-01-29T12:56:13.000Z | exercises/concept/bread-and-potions/test/rpg_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 239 | 2019-12-12T14:09:08.000Z | 2022-03-18T00:04:07.000Z | defmodule RPGTest do
use ExUnit.Case
alias RPG.{Edible, Character, LoafOfBread, ManaPotion, Poison, EmptyBottle}
defmodule NewItem do
defstruct []
end
describe "Edible" do
# @tag :pending
test "is a protocol" do
assert Edible.__protocol__(:functions) == [eat: 2]
end
@tag :pending... | 26.072072 | 93 | 0.638908 |
e9ac162da6691bae66aaafad4a7e520d4843e23b | 6,922 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/document.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/document.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/document.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 67.203883 | 861 | 0.694741 |
e9ac26c889bafa11b8e0fb0dab6731bc98e34938 | 480 | exs | Elixir | config/dev.exs | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | 3 | 2018-07-23T01:50:50.000Z | 2018-08-13T13:12:05.000Z | config/dev.exs | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | config/dev.exs | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :arp_server,
chain_id: 1000,
token_contract_address: "0xe1c62093f55e8d7a86198dd8186e6de414b3fae4",
registry_contract_address: "0xf806be137e1b3b8a8bd324873fe63ec70c78c139",
bank_contract_address: "0x2d240cfa28c9d3702acd77425d0a12fa41dda35a",
first_registry_block: "0x1"
config :ethereume... | 30 | 74 | 0.785417 |
e9ac4c39fdf1fbe4232561d088236624307e93e7 | 911 | ex | Elixir | lib/elixir_ravelry_web/controllers/project_controller.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 21 | 2017-08-27T13:59:18.000Z | 2020-10-07T03:35:22.000Z | lib/elixir_ravelry_web/controllers/project_controller.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 2 | 2017-09-02T15:49:47.000Z | 2017-09-02T17:43:29.000Z | lib/elixir_ravelry_web/controllers/project_controller.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 7 | 2017-09-02T15:11:49.000Z | 2019-08-20T19:00:48.000Z | defmodule ElixirRavelryWeb.ProjectController do
use ElixirRavelryWeb, :controller
alias ElixirRavelry.Repo
def index(conn, _params) do
project = conn
|> bolt_sips_conn()
|> Repo.Project.list()
json conn, project
end
def show(conn, %{"id"=>id}) do
conn
|> bolt_sips_... | 23.358974 | 61 | 0.555434 |
e9ac8aa2a574a9605386166e2f2198b056101bd1 | 2,027 | ex | Elixir | lib/app_web/router.ex | vsyrovat/inn-checker | 03cb3f282af598c7d62ea96c483540edead4ba1e | [
"MIT"
] | null | null | null | lib/app_web/router.ex | vsyrovat/inn-checker | 03cb3f282af598c7d62ea96c483540edead4ba1e | [
"MIT"
] | null | null | null | lib/app_web/router.ex | vsyrovat/inn-checker | 03cb3f282af598c7d62ea96c483540edead4ba1e | [
"MIT"
] | null | null | null | defmodule AppWeb.Router do
use AppWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :with_session do
plug Guardian.Plug.Pipeline,
module: App.Guardian,
err... | 26.671053 | 70 | 0.697583 |
e9ac98b0a0252fe1674e491b657e14acc5c758e6 | 1,127 | exs | Elixir | config/config.exs | xing/game_of_life | ee35f9c65fd3e70b69d3f2e9a88546ee66e803c8 | [
"MIT"
] | 57 | 2016-04-28T09:02:27.000Z | 2021-12-16T20:03:05.000Z | apps/game_of_life/config/config.exs | tslim/elixir-phoenix-life | c86fd69198c9193bdcd5b3b1b504f41f67268139 | [
"MIT"
] | 1 | 2016-05-30T05:51:10.000Z | 2016-05-31T21:32:44.000Z | apps/game_of_life/config/config.exs | tslim/elixir-phoenix-life | c86fd69198c9193bdcd5b3b1b504f41f67268139 | [
"MIT"
] | 4 | 2016-05-27T18:38:23.000Z | 2019-05-30T11:03:45.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.354839 | 73 | 0.753327 |
e9ac9df8c7794fccdbe79c57eb6349d2da1d0b48 | 3,691 | exs | Elixir | config/config.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 1 | 2020-07-02T19:17:09.000Z | 2020-07-02T19:17:09.000Z | config/config.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 19 | 2020-03-03T18:36:30.000Z | 2022-02-20T21:57:34.000Z | config/config.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 2 | 2020-05-14T16:34:14.000Z | 2020-12-16T09:13:42.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
use Mix.Config
config :lowendinsight_get, LowendinsightGet.Endpoint,
port: String.to_integer(System.get_env("PORT") || "... | 39.265957 | 96 | 0.727174 |
e9accb5016a34a484b2c498bf1147ac45263cc9e | 4,589 | ex | Elixir | lib/ash/error.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/error.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/error.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Error do
@moduledoc false
@type error_class() :: :invalid | :authorization | :framework | :unknown
# We use these error classes also to choose a single error
# to raise when multiple errors have occured. We raise them
# sorted by their error classes
@error_classes [
:forbidden,
:inval... | 26.373563 | 95 | 0.608629 |
e9acd398a1027b2d7306bae1134e534b18a08098 | 2,008 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/autoscaler_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/autoscaler_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/autoscaler_list_warning_data.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 ... | 40.16 | 527 | 0.740538 |
e9ad4acca08780ffb112888ffb6b2c6d1209971e | 13,685 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/webapps.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/webapps.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/webapps.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... | 38.549296 | 170 | 0.668688 |
e9ad94ab477d9d9ac16b9487205e55ad8d8993d9 | 3,062 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/report_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/report_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/report_response.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... | 57.773585 | 884 | 0.7629 |
e9ad9b8102a294dc50dccf892cd1c0eeaf1978a8 | 744 | exs | Elixir | mix.exs | mackstar/rextify | 150fb79c183393700b92cee95bbda0fe82af6bc3 | [
"MIT"
] | null | null | null | mix.exs | mackstar/rextify | 150fb79c183393700b92cee95bbda0fe82af6bc3 | [
"MIT"
] | null | null | null | mix.exs | mackstar/rextify | 150fb79c183393700b92cee95bbda0fe82af6bc3 | [
"MIT"
] | null | null | null | defmodule Rextify.Mixfile do
use Mix.Project
def project do
[app: :rextify,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 20.666667 | 77 | 0.579301 |
e9ada9756e32a8810073ae80e2e94e0f9c4edcad | 111 | ex | Elixir | lib/protocol/resolution_unit.ex | mpichette/hippy | 46d7140b6374426812b2c21e7369345fbdf67b17 | [
"MIT"
] | 8 | 2018-04-02T14:14:28.000Z | 2021-05-04T19:39:48.000Z | lib/protocol/resolution_unit.ex | mpichette/hippy | 46d7140b6374426812b2c21e7369345fbdf67b17 | [
"MIT"
] | 1 | 2018-04-06T01:55:04.000Z | 2018-04-06T05:15:47.000Z | lib/protocol/resolution_unit.ex | mpichette/hippy | 46d7140b6374426812b2c21e7369345fbdf67b17 | [
"MIT"
] | 3 | 2018-04-02T23:45:51.000Z | 2021-04-04T20:14:49.000Z | defmodule Hippy.Protocol.ResolutionUnit do
use Hippy.Protocol.Enum, %{
dpi: 0x03,
dpcm: 0x04
}
end
| 15.857143 | 42 | 0.684685 |
e9adcc527c379e328d33b9fde7e8d78fe6a40ff4 | 2,352 | ex | Elixir | clients/content/lib/google_api/content/v21/model/delivery_area_postal_code_range.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/delivery_area_postal_code_range.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/delivery_area_postal_code_range.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.04 | 584 | 0.743197 |
e9addb22185ad4038251032db40917443c0bf4b9 | 2,750 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/address_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/address_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/address_list.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... | 44.354839 | 393 | 0.710182 |
e9ae074b218ed060a1b95cccdc926bdeaf8cc720 | 183 | exs | Elixir | priv/repo/migrations/20200529071028_add_oban_jobs_table.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20200529071028_add_oban_jobs_table.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20200529071028_add_oban_jobs_table.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddObanJobsTable do
use Ecto.Migration
def up do
Oban.Migrations.up()
end
def down do
Oban.Migrations.down(version: 1)
end
end
| 15.25 | 55 | 0.726776 |
e9ae5264c7e2fc2a48b2bc2472dba094789e982e | 4,340 | ex | Elixir | lib/mix/tasks/test_the_pipes.ex | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 244 | 2016-10-10T15:30:32.000Z | 2021-08-11T08:45:53.000Z | lib/mix/tasks/test_the_pipes.ex | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 242 | 2016-10-10T19:34:44.000Z | 2020-11-20T18:56:43.000Z | lib/mix/tasks/test_the_pipes.ex | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 35 | 2016-12-04T07:33:04.000Z | 2020-06-17T20:22:11.000Z | defmodule Mix.Tasks.Timber.TestThePipes do
@moduledoc """
Tests and verifies log delivery to the Timber.io service.
Run this whenever you have problems are want to verify setup. This is typically
run immediately after installation.
## Run
mix timber.test_the_pipes
If you installed Timber for produ... | 23.333333 | 92 | 0.534793 |
e9ae69f1838af8c7907c01e66c0347d21f2a7ca6 | 24 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/UnaryNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/UnaryNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/UnaryNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | !1 <- not 2
not 1 \\ !2
| 8 | 11 | 0.416667 |
e9ae9919917c314b0a0189ca000eb8a86c254eb9 | 667 | ex | Elixir | lib/codes/codes_c30.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c30.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c30.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_C30 do
alias IcdCode.ICDCode
def _C300 do
%ICDCode{full_code: "C300",
category_code: "C30",
short_code: "0",
full_name: "Malignant neoplasm of nasal cavity",
short_name: "Malignant neoplasm of nasal cavity",
category_name: "Maligna... | 26.68 | 61 | 0.62069 |
e9aed78ddba78db24f0312603948adb8a1fc0746 | 331 | exs | Elixir | test/binary_search_test.exs | jdanielnd/elixir-algo | 41f93b316567dd8445706b2dadb7a2866f668b49 | [
"MIT"
] | null | null | null | test/binary_search_test.exs | jdanielnd/elixir-algo | 41f93b316567dd8445706b2dadb7a2866f668b49 | [
"MIT"
] | null | null | null | test/binary_search_test.exs | jdanielnd/elixir-algo | 41f93b316567dd8445706b2dadb7a2866f668b49 | [
"MIT"
] | null | null | null | defmodule BinarySearchTest do
use ExUnit.Case
doctest BinarySearch
test "recursive implementation" do
assert BinarySearch.search([3,8,9,12,22,39,41,44,48,61], 48) == 8
end
test "recursive implementation with element not present" do
assert BinarySearch.search([3,8,9,12,22,39,41,44,48,61], 99) == nil
... | 23.642857 | 71 | 0.716012 |
e9aee0d79da2f91f27a33a58ff7bd8b2e9cf6089 | 1,492 | exs | Elixir | test/xlsx_reader/package_test.exs | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 40 | 2019-12-20T16:11:47.000Z | 2022-02-08T22:59:53.000Z | test/xlsx_reader/package_test.exs | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 4 | 2020-05-17T11:35:33.000Z | 2022-02-08T21:29:46.000Z | test/xlsx_reader/package_test.exs | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 6 | 2020-04-24T16:31:06.000Z | 2022-03-22T07:51:51.000Z | defmodule XlsxReader.PackageLoaderTest do
use ExUnit.Case
alias XlsxReader.{PackageLoader, ZipArchive}
describe "open/1" do
test "opens a xlsx file" do
zip_handle = ZipArchive.handle(TestFixtures.path("test.xlsx"), :path)
assert {:ok, package} = PackageLoader.open(zip_handle)
assert pack... | 27.62963 | 79 | 0.571716 |
e9aee65acfdd95a0a9f9586b0c9d736b1d1e0992 | 1,838 | exs | Elixir | apps/writer_kafka/test/writer/kafka/topic_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/writer_kafka/test/writer/kafka/topic_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/writer_kafka/test/writer/kafka/topic_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Writer.Kafka.TopicTest do
use ExUnit.Case
use Divo
use Placebo
import AssertAsync
@moduletag integration: true, divo: true
alias Writer.Kafka.Topic
@server [localhost: 9092]
setup do
test = self()
handler_function = fn event_name, event_measurements, event_metadata, handler_config... | 29.174603 | 98 | 0.636017 |
e9af1267861d92e79f778e3405c0130b14b854ec | 2,607 | ex | Elixir | lib/credo/execution/task/validate_config.ex | starbelly/credo | 7ca19dd06ba20f74763beda269ab2e3fde2144a4 | [
"MIT"
] | null | null | null | lib/credo/execution/task/validate_config.ex | starbelly/credo | 7ca19dd06ba20f74763beda269ab2e3fde2144a4 | [
"MIT"
] | null | null | null | lib/credo/execution/task/validate_config.ex | starbelly/credo | 7ca19dd06ba20f74763beda269ab2e3fde2144a4 | [
"MIT"
] | null | null | null | defmodule Credo.Execution.Task.ValidateConfig do
@moduledoc false
use Credo.Execution.Task
alias Credo.Check
alias Credo.Check.Params
alias Credo.CLI.Output.UI
def call(exec, _opts) do
exec
|> validate_checks()
|> remove_missing_checks()
|> inspect_config_if_debug()
end
defp validate... | 25.067308 | 96 | 0.639816 |
e9af351af98a8e9d3855d17b917ad0b74197e982 | 69 | ex | Elixir | lib/glimesh_web/views/user_settings_view.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh_web/views/user_settings_view.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh_web/views/user_settings_view.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.UserSettingsView do
use GlimeshWeb, :view
end
| 17.25 | 40 | 0.826087 |
e9af6552586d313e67a9d5de2557783d6b2137a7 | 861 | ex | Elixir | elixir/lib/homework/util/paginator.ex | adaugherty42/web-homework | c3a729db5ff554abe9db515ae225c0f2afec6e48 | [
"MIT"
] | null | null | null | elixir/lib/homework/util/paginator.ex | adaugherty42/web-homework | c3a729db5ff554abe9db515ae225c0f2afec6e48 | [
"MIT"
] | null | null | null | elixir/lib/homework/util/paginator.ex | adaugherty42/web-homework | c3a729db5ff554abe9db515ae225c0f2afec6e48 | [
"MIT"
] | 1 | 2021-12-27T15:33:07.000Z | 2021-12-27T15:33:07.000Z | defmodule Homework.Util.Paginator do
import Ecto.Query
alias Homework.Repo
@doc """
Use the provided page/page_size params to return a slice of the total results.
"""
def page(query, %{page: page, page_size: page_size}) do
paged_query = query
|> limit(^page_size)
|> offset((^page - 1) * ^pag... | 25.323529 | 82 | 0.657375 |
e9af70f43504c319fca0e7b6d085dd5d22c96054 | 3,242 | exs | Elixir | .credo.exs | mirego/html_test_helpers | 8a05fe6d2ac4cc8b6635b84d8580b4d898d61082 | [
"BSD-3-Clause"
] | 3 | 2020-01-13T09:15:37.000Z | 2021-01-17T20:13:52.000Z | .credo.exs | mirego/html_test_helpers | 8a05fe6d2ac4cc8b6635b84d8580b4d898d61082 | [
"BSD-3-Clause"
] | 5 | 2020-01-14T17:01:33.000Z | 2021-08-21T00:30:13.000Z | .credo.exs | mirego/html_test_helpers | 8a05fe6d2ac4cc8b6635b84d8580b4d898d61082 | [
"BSD-3-Clause"
] | null | null | null | %{
configs: [
%{
name: "default",
strict: true,
files: %{
included: ["*.exs", "lib/", "test/", "priv/", "config/", "rel/"],
excluded: []
},
checks: [
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.LineEndings},
{Credo.Check.... | 41.564103 | 96 | 0.646206 |
e9afa37d29c8bd93a3c41747e12fd2424bec845b | 1,201 | ex | Elixir | lib/telegex/marked/node.ex | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 1 | 2020-07-13T00:07:19.000Z | 2020-07-13T00:07:19.000Z | lib/telegex/marked/node.ex | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 12 | 2020-07-10T21:20:35.000Z | 2020-07-26T02:19:51.000Z | lib/telegex/marked/node.ex | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | null | null | null | defmodule Telegex.Marked.Node do
@moduledoc """
Element nodes in Markdown.
"""
@typedoc "All node types."
@type nodetypes ::
:bold
| :italic
| :underline
| :strikethrough
| :link
| :inline_code
| :code_block
| :newline
... | 20.355932 | 52 | 0.554538 |
e9afad17f324290ede2577382ec936d1ae7b7c27 | 1,182 | ex | Elixir | lib/ecto_mysql_extras/queries/records_rank.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | null | null | null | lib/ecto_mysql_extras/queries/records_rank.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | null | null | null | lib/ecto_mysql_extras/queries/records_rank.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | null | null | null | defmodule EctoMySQLExtras.RecordsRank do
@moduledoc """
Query the estimated rows of each table in the Ecto Repo database.
Data is retrieved from the `information_schema` database and the `tables` table.
"""
@behaviour EctoMySQLExtras
def info do
%{
title:
"All tables and the number of ro... | 24.625 | 95 | 0.603215 |
e9afbb160eeca3a551149c86d4ba3d4080f9c48d | 152 | exs | Elixir | test/test_helper.exs | staring-frog/dialyxir | b78735f75b325238b7db20d9eed22f018cca5f26 | [
"Apache-2.0"
] | 1,455 | 2015-01-03T02:53:19.000Z | 2022-03-12T00:31:25.000Z | test/test_helper.exs | staring-frog/dialyxir | b78735f75b325238b7db20d9eed22f018cca5f26 | [
"Apache-2.0"
] | 330 | 2015-05-14T13:53:13.000Z | 2022-03-29T17:12:23.000Z | test/test_helper.exs | staring-frog/dialyxir | b78735f75b325238b7db20d9eed22f018cca5f26 | [
"Apache-2.0"
] | 146 | 2015-02-03T18:19:43.000Z | 2022-03-07T10:05:20.000Z | case System.get_env("OUTPUT_TESTS") do
"true" -> ExUnit.start(exclude: :test, include: :output_tests)
_ -> ExUnit.start(exclude: :output_tests)
end
| 30.4 | 64 | 0.723684 |
e9afc86fe0efc7d526ac35defe046dacb95dd0fa | 1,005 | exs | Elixir | priv/repo/data_import.exs | ZURASTA/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 1 | 2017-06-15T11:20:27.000Z | 2017-06-15T11:20:27.000Z | priv/repo/data_import.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | null | null | null | priv/repo/data_import.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 2 | 2017-07-25T10:16:19.000Z | 2017-08-02T06:54:22.000Z | defmodule Bonbon.Repo.DataImport do
defp load(path), do: File.read!(path) |> Tomlex.load
@path "datasources/Food-Data"
def load_diets(), do: load(Path.join(@path, "translations/diet-names.toml"))
def load_allergens(), do: load(Path.join(@path, "translations/allergen-names.toml"))
def load_ingredi... | 37.222222 | 120 | 0.624876 |
e9afd1eb14102bc4a6953caabec4595c7006ef08 | 2,795 | ex | Elixir | apps/rig_inbound_gateway/lib/rig_inbound_gateway/request_logger/kafka.ex | hlavacek/reactive-interaction-gateway | 6b968b742d8f0456a51c31dbc744ccfacd57191e | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway/request_logger/kafka.ex | hlavacek/reactive-interaction-gateway | 6b968b742d8f0456a51c31dbc744ccfacd57191e | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway/request_logger/kafka.ex | hlavacek/reactive-interaction-gateway | 6b968b742d8f0456a51c31dbc744ccfacd57191e | [
"Apache-2.0"
] | null | null | null | defmodule RigInboundGateway.RequestLogger.Kafka do
@moduledoc """
Kafka request logger implementation.
"""
use Rig.Config, [:log_topic]
require Logger
alias Rig.Kafka, as: RigKafka
alias RigAuth.Jwt.Utils, as: Jwt
alias UUID
@behaviour RigInboundGateway.RequestLogger
@impl RigInboundGateway.Reque... | 27.401961 | 94 | 0.608587 |
e9afdab1ff593745cfa42e3a97b73d3d0f2a24a3 | 28,392 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.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... | 46.090909 | 196 | 0.632326 |
e9afe8963bfc8d03855fd4bbe811615790c1b0da | 1,035 | ex | Elixir | lib/quark.ex | toraritte/quark | acf18de05a86ba4740fdffdbb93918ce4ebfeb5f | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/quark.ex | toraritte/quark | acf18de05a86ba4740fdffdbb93918ce4ebfeb5f | [
"MIT"
] | null | null | null | lib/quark.ex | toraritte/quark | acf18de05a86ba4740fdffdbb93918ce4ebfeb5f | [
"MIT"
] | null | null | null | defmodule Quark do
@moduledoc ~S"""
Top-level module. Provides a convenient `use` macro for importing the most
commonly used functions and macros.
Due to performance reasons, many of the combinators are given non-combinatory
implementations (ie: not everything is expressed in terms `s` and `k`)
"""
defm... | 27.236842 | 79 | 0.707246 |
e9b0055a78749b524c3982be2d0e1427ed544caf | 83 | ex | Elixir | utilities/lib/utilities.ex | w0rd-driven/livebook_notebooks | 4d164f8d568291412ac64ed7dd472e987a1be0c9 | [
"MIT"
] | 1 | 2022-02-25T10:32:41.000Z | 2022-02-25T10:32:41.000Z | utilities/lib/utilities.ex | w0rd-driven/livebook_notebooks | 4d164f8d568291412ac64ed7dd472e987a1be0c9 | [
"MIT"
] | null | null | null | utilities/lib/utilities.ex | w0rd-driven/livebook_notebooks | 4d164f8d568291412ac64ed7dd472e987a1be0c9 | [
"MIT"
] | null | null | null | defmodule Utilities do
@moduledoc """
Documentation for `Utilities`.
"""
end
| 13.833333 | 32 | 0.686747 |
e9b0c504139d2acb7fd5a47192309db94855be11 | 433 | ex | Elixir | lib/dislixir/stage/processor.ex | Tsugami/Dislixir | 9aea2024f6a27cb6fd7511bb627a424e1f6303bb | [
"MIT"
] | 2 | 2020-11-24T22:16:50.000Z | 2020-11-27T18:29:46.000Z | lib/dislixir/stage/processor.ex | Tsugami/Dislixir | 9aea2024f6a27cb6fd7511bb627a424e1f6303bb | [
"MIT"
] | null | null | null | lib/dislixir/stage/processor.ex | Tsugami/Dislixir | 9aea2024f6a27cb6fd7511bb627a424e1f6303bb | [
"MIT"
] | null | null | null | defmodule Dislixir.Stage.Processor do
use GenStage
@moduledoc """
Modulo que processa todos os eventos em structs.
"""
def start_link() do
GenStage.start_link(__MODULE__, [], name: Dislixir.Processor)
end
def init([]) do
{:producer_consumer, {:queue.new, 0}, subscribe_to: [{Dislixir.Producer... | 20.619048 | 95 | 0.683603 |
e9b1124ce06762f6cb495ece04b1921749e1c4af | 1,897 | ex | Elixir | lib/quantum/task_registry.ex | kianmeng/quantum-core | 24997fb649d778f654c1adad0006f7ad529a1184 | [
"Apache-2.0"
] | 1,092 | 2018-03-23T02:29:33.000Z | 2022-03-30T19:17:30.000Z | lib/quantum/task_registry.ex | kianmeng/quantum-core | 24997fb649d778f654c1adad0006f7ad529a1184 | [
"Apache-2.0"
] | 168 | 2018-03-22T12:52:28.000Z | 2022-03-19T22:49:17.000Z | lib/quantum/task_registry.ex | kianmeng/quantum-core | 24997fb649d778f654c1adad0006f7ad529a1184 | [
"Apache-2.0"
] | 79 | 2018-03-22T12:50:24.000Z | 2022-03-07T08:40:50.000Z | defmodule Quantum.TaskRegistry do
@moduledoc false
# Registry to check if a task is already running on a node.
alias __MODULE__.StartOpts
alias Quantum.Job
# Start the registry
@spec start_link(StartOpts.t()) :: GenServer.on_start()
def start_link(%StartOpts{name: name, listeners: listeners}) do
[k... | 27.897059 | 89 | 0.628361 |
e9b12339c582a70ed764056789c81a7ff982d544 | 1,699 | ex | Elixir | clients/eventarc/lib/google_api/eventarc/v1beta1/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/eventarc/lib/google_api/eventarc/v1beta1/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/eventarc/lib/google_api/eventarc/v1beta1/model/test_iam_permissions_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... | 36.148936 | 288 | 0.74691 |
e9b140832e22a3405fea3816122b74a0062914a6 | 16,761 | ex | Elixir | lib/iex/lib/iex.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | defmodule IEx do
@moduledoc ~S"""
Elixir's interactive shell.
This module is the main entry point for Interactive Elixir and
in this documentation we will talk a bit about how IEx works.
Notice that some of the functionalities described here will not be available
depending on your terminal. In particular,... | 29.665487 | 97 | 0.666368 |
e9b14ebf2912263c1356063dde42fcfe1d95012f | 124 | exs | Elixir | Chapter 4/CacheServer/cache_server/test/cache_server_test.exs | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 4/CacheServer/cache_server/test/cache_server_test.exs | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 4/CacheServer/cache_server/test/cache_server_test.exs | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | defmodule CacheServerTest do
use ExUnit.Case
doctest CacheServer
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.777778 | 28 | 0.693548 |
e9b19c016bbc069bd9d7b7ea3d39040561c13d73 | 1,504 | exs | Elixir | test/torch/views/pagination_view_test.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | null | null | null | test/torch/views/pagination_view_test.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | null | null | null | test/torch/views/pagination_view_test.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | null | null | null | defmodule Torch.PaginationViewTest do
@moduledoc false
use ExUnit.Case
import Phoenix.HTML, only: [safe_to_string: 1]
import Torch.PaginationView
doctest Torch.PaginationView, import: true
describe "prev_link/4" do
test "when current page is 1" do
refute prev_link(%Plug.Conn{params: %{}}, 1)
... | 28.923077 | 90 | 0.640293 |
e9b1a9f5422dbb70ba01f1bd35b4470a38c084f9 | 5,445 | ex | Elixir | lib/speediview_ui/scenes/dash.ex | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | 2 | 2019-07-15T01:41:08.000Z | 2020-03-19T17:56:22.000Z | lib/speediview_ui/scenes/dash.ex | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | null | null | null | lib/speediview_ui/scenes/dash.ex | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | 3 | 2020-06-26T12:32:25.000Z | 2021-04-16T08:59:21.000Z | defmodule SpeediViewUI.Scene.Dash do
@moduledoc """
Root scene for the dash display
"""
use Scenic.Scene
alias Scenic.Graph
alias Scenic.ViewPort
import Scenic.Primitives
alias SpeediViewUI.Layout
import SpeediViewUI.Component.Gauge, only: [gauge: 3]
import SpeediViewUI.Component.StatusBar, only: ... | 32.410714 | 95 | 0.591736 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.