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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b29683c467d4d28c45d8c84b8d23e2e6810ea0a6 | 4,842 | ex | Elixir | lib/ex_maps.ex | susana-garcia/ex_maps | a0debf01d0322d95b22a438d7481d2842d3e6d10 | [
"MIT"
] | 5 | 2018-09-09T19:05:59.000Z | 2019-02-15T15:11:48.000Z | lib/ex_maps.ex | susana-garcia/ex_maps | a0debf01d0322d95b22a438d7481d2842d3e6d10 | [
"MIT"
] | 2 | 2019-02-12T18:12:07.000Z | 2019-02-19T11:32:28.000Z | lib/ex_maps.ex | susana-garcia/ex_maps | a0debf01d0322d95b22a438d7481d2842d3e6d10 | [
"MIT"
] | 3 | 2019-02-06T11:25:12.000Z | 2020-07-28T16:36:23.000Z | defmodule ExMaps do
@moduledoc """
Public ExMaps application interface.
"""
alias ExMaps.{DirectionsCoordinator, DistanceMatrixCoordinator}
@typedoc """
General params.
Format of the output of Google Maps API call.
Please note that json is recommended by Google docs.
"""
@type output_format :: :js... | 39.688525 | 129 | 0.694548 |
b2969278e549d78422a80a44c83f37250f33e14b | 1,423 | ex | Elixir | lib/ex_propriate/full_module.ex | pyzlnar/ex_propriate | ad9b88f77815cd097f731e6f27cd44b3760c9591 | [
"MIT"
] | null | null | null | lib/ex_propriate/full_module.ex | pyzlnar/ex_propriate | ad9b88f77815cd097f731e6f27cd44b3760c9591 | [
"MIT"
] | 1 | 2022-02-21T03:30:22.000Z | 2022-02-21T03:30:22.000Z | lib/ex_propriate/full_module.ex | pyzlnar/ex_propriate | ad9b88f77815cd097f731e6f27cd44b3760c9591 | [
"MIT"
] | null | null | null | defmodule ExPropriate.FullModule do
@moduledoc """
This module handles expropriation of module-level granularity.
It can be set up like this:
```
defmodule MyModule do
use ExPropriate,
expropriate_all: true
defp my_private_function do
:has_been_expropriated
end
end
MyModule.my_... | 27.365385 | 99 | 0.709065 |
b296938391ec4e0a3868c3e60fcd378dc670bb3f | 340 | ex | Elixir | lib/sentinel/helpers/injected_changeset_helper.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/helpers/injected_changeset_helper.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/helpers/injected_changeset_helper.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | defmodule Sentinel.Helpers.InjectedChangesetHelper do
@moduledoc false
def apply(changeset, nil, _params), do: changeset
def apply(changeset, {module, function}, params) do
Kernel.apply(module, function, [changeset, params])
end
def apply(changeset, anon_function, params) do
anon_function.(changeset... | 28.333333 | 55 | 0.75 |
b296a41724bd0d75054e76089375212aed4f3f7d | 669 | exs | Elixir | tooling/pbt/test/stats_property_test.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | tooling/pbt/test/stats_property_test.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | tooling/pbt/test/stats_property_test.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule StatsPropertyTest do
use ExUnit.Case
use ExUnitProperties
describe "Stats on lists of ints" do
property "single element lists are their own sum" do
check all number <- integer() do
assert Stats.sum([number]) == number
end
end
property "count not negative" do
... | 23.892857 | 57 | 0.591928 |
b296b1f7e01a2071676c162f26ca6d39271d23fb | 2,497 | exs | Elixir | test/grizzly/smart_start/meta_extension/smart_start_inclusion_setting_test.exs | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | test/grizzly/smart_start/meta_extension/smart_start_inclusion_setting_test.exs | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | test/grizzly/smart_start/meta_extension/smart_start_inclusion_setting_test.exs | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.SmartStart.MetaExtension.SmartStartInclusionSettingTest do
use ExUnit.Case, async: true
alias Grizzly.SmartStart.MetaExtension.SmartStartInclusionSetting
test "creates a new setting pending" do
expected_setting = %SmartStartInclusionSetting{setting: :pending}
assert {:ok, expected_sett... | 31.607595 | 87 | 0.744894 |
b296e7ab520935a1a69ed95dea6ea60159ce3b3b | 65 | exs | Elixir | example/test/test/test_helper.exs | luochen52/mapd-charting | 88e3f049dc10921c5eff63a3b1b539af2a2a71d0 | [
"Apache-2.0"
] | 123 | 2018-10-08T01:05:11.000Z | 2022-02-20T12:06:24.000Z | example/test/test/test_helper.exs | luochen52/mapd-charting | 88e3f049dc10921c5eff63a3b1b539af2a2a71d0 | [
"Apache-2.0"
] | 63 | 2018-10-04T18:47:00.000Z | 2022-02-11T18:35:15.000Z | example/test/test/test_helper.exs | luochen52/mapd-charting | 88e3f049dc10921c5eff63a3b1b539af2a2a71d0 | [
"Apache-2.0"
] | 28 | 2018-11-02T07:19:56.000Z | 2022-02-27T14:26:28.000Z | Application.ensure_all_started :hound
ExUnit.start(max_cases: 3)
| 21.666667 | 37 | 0.846154 |
b29707b03c885b34afba361083afbf65dbdd0e12 | 638 | exs | Elixir | test/buffer_test.exs | davebryson/hyperex | e95923600419c4701e2d0d86adb509cf1839a36d | [
"Apache-2.0"
] | null | null | null | test/buffer_test.exs | davebryson/hyperex | e95923600419c4701e2d0d86adb509cf1839a36d | [
"Apache-2.0"
] | null | null | null | test/buffer_test.exs | davebryson/hyperex | e95923600419c4701e2d0d86adb509cf1839a36d | [
"Apache-2.0"
] | null | null | null | defmodule Hyperex.BufferTest do
use ExUnit.Case, async: true
alias Hyperex.Storage.Buffer
test "buffer test" do
{:ok, buf} = Buffer.new()
# 4
b1 = Buffer.write(buf, 0, <<"dave">>)
# 3
b2 = Buffer.write(b1, 8, <<"bob">>)
# 4
b3 = Buffer.write(b2, 16, <<"carl">>)
<<"bob">> = Buffer... | 22.785714 | 41 | 0.521944 |
b29747ae79fa29a1b3a66f4c35c0817e1ce36b17 | 84 | exs | Elixir | test/swiss/enum_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 2 | 2020-11-06T21:02:47.000Z | 2020-11-06T23:27:35.000Z | test/swiss/enum_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 4 | 2020-03-05T17:37:46.000Z | 2021-10-06T10:13:51.000Z | test/swiss/enum_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 1 | 2021-09-22T13:43:58.000Z | 2021-09-22T13:43:58.000Z | defmodule Swiss.EnumTest do
use ExUnit.Case, async: true
doctest Swiss.Enum
end
| 16.8 | 30 | 0.77381 |
b29752d56087dd895dccd96fc89240279e97010e | 1,220 | ex | Elixir | lib/changelog_web/controllers/episode_request_controller.ex | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/episode_request_controller.ex | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/episode_request_controller.ex | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.EpisodeRequestController do
use ChangelogWeb, :controller
alias Changelog.{EpisodeRequest}
plug RequireUser, "before submitting" when action in [:create]
def new(conn = %{assigns: %{podcasts: podcasts}}, params) do
podcast = Enum.find(podcasts, fn(p) -> p.slug == params["slug"] end... | 31.282051 | 97 | 0.655738 |
b29756ab2386951e9c389408b989272d16d45614 | 493 | ex | Elixir | test/support/mock_event_store_case.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/support/mock_event_store_case.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/support/mock_event_store_case.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.MockEventStoreCase do
@moduledoc false
use ExUnit.CaseTemplate
import Mox
alias Commanded.EventStore.Adapters.Mock, as: MockEventStore
alias Commanded.MockedApp
using do
quote do
import Mox
alias Commanded.EventStore.Adapters.Mock, as: MockEventStore
end
end
... | 17 | 87 | 0.705882 |
b297571828917e327f24bffe8e0ae7430373eaf7 | 1,176 | exs | Elixir | priv/repo/migrations/20210905021010_create_user_auth.exs | dsdshcym/live_beats | 554c97fde490b75cf1868e152a73f4066d8470b6 | [
"MIT"
] | 547 | 2022-02-02T14:11:31.000Z | 2022-03-31T12:34:03.000Z | priv/repo/migrations/20210905021010_create_user_auth.exs | dsdshcym/live_beats | 554c97fde490b75cf1868e152a73f4066d8470b6 | [
"MIT"
] | 24 | 2022-02-02T14:11:36.000Z | 2022-02-23T20:14:43.000Z | priv/repo/migrations/20210905021010_create_user_auth.exs | dsdshcym/live_beats | 554c97fde490b75cf1868e152a73f4066d8470b6 | [
"MIT"
] | 63 | 2022-02-02T15:59:36.000Z | 2022-03-23T05:30:43.000Z | defmodule LiveBeats.Repo.Migrations.CreateUserAuth do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:users) do
add :email, :citext, null: false
add :username, :string, null: false
add :name, :string
add :role, :string, null: false... | 30.153846 | 77 | 0.664116 |
b297711159139906fb1ae7da022af3da04245d23 | 4,985 | ex | Elixir | lib/xlack/bot.ex | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | lib/xlack/bot.ex | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | lib/xlack/bot.ex | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | defmodule Xlack.Bot do
require Logger
@behaviour :websocket_client
@moduledoc """
This module is used to spawn bots and is used to manage the connection to Xlack
while delegating events to the specified bot module.
"""
@doc """
Connects to Xlack and delegates events to `bot_handler`.
## Options
... | 25.829016 | 110 | 0.618255 |
b2977d9a76825e9838136707389e69b6869de030 | 79 | exs | Elixir | test/cep_test.exs | ciareis/cep-promise-elixir | 6039cdaf6130e88da9389af3046c782368122be5 | [
"MIT"
] | 2 | 2021-03-31T05:50:00.000Z | 2021-03-31T14:06:32.000Z | test/cep_test.exs | ciareis/cep-promise-elixir | 6039cdaf6130e88da9389af3046c782368122be5 | [
"MIT"
] | null | null | null | test/cep_test.exs | ciareis/cep-promise-elixir | 6039cdaf6130e88da9389af3046c782368122be5 | [
"MIT"
] | null | null | null | defmodule CepPromise.CepTest do
use ExUnit.Case
doctest CepPromise.Cep
end
| 15.8 | 31 | 0.810127 |
b29799f87f3ff0ef966226ab34739d724eb5b7f7 | 3,987 | ex | Elixir | lib/ex_p2p.ex | SoCal-Software-Labs/ExP2P | 2104c37904e89f32ea84418fd002d19efe4c4bfb | [
"MIT"
] | null | null | null | lib/ex_p2p.ex | SoCal-Software-Labs/ExP2P | 2104c37904e89f32ea84418fd002d19efe4c4bfb | [
"MIT"
] | null | null | null | lib/ex_p2p.ex | SoCal-Software-Labs/ExP2P | 2104c37904e89f32ea84418fd002d19efe4c4bfb | [
"MIT"
] | null | null | null | defmodule ExP2P do
use Rustler,
otp_app: :ex_p2p,
crate: :exp2p
def start(_waiting, _bind, _bootstrap, _client_mode \\ false, _foward_port \\ false),
do: :erlang.nif_error(:nif_not_loaded)
def set_controlling_pid(_resp_channel, _pid), do: :erlang.nif_error(:nif_not_loaded)
def send_stream_respons... | 27.122449 | 87 | 0.662403 |
b297a1497ee7b751fc9a2610b3110f04eab96bd4 | 2,397 | exs | Elixir | test/elixir/fast_xml_test.exs | boshra-pardaz/fast_xml | 6a11b828c7053afaaa60ea6cad30a5ec5f27bea7 | [
"Apache-2.0"
] | 1 | 2019-05-14T11:36:42.000Z | 2019-05-14T11:36:42.000Z | test/elixir/fast_xml_test.exs | boshra-pardaz/fast_xml | 6a11b828c7053afaaa60ea6cad30a5ec5f27bea7 | [
"Apache-2.0"
] | null | null | null | test/elixir/fast_xml_test.exs | boshra-pardaz/fast_xml | 6a11b828c7053afaaa60ea6cad30a5ec5f27bea7 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2002-2019 ProcessOne, SARL. All Rights Reserved.
#
# 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... | 39.295082 | 123 | 0.697539 |
b297aec3e84cc185a26b9ca6c8c5097273243fe5 | 1,695 | exs | Elixir | mix.exs | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | mix.exs | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | mix.exs | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | defmodule AWS.Mixfile do
use Mix.Project
@version "0.7.0"
@repo_url "https://github.com/aws-beam/aws-elixir"
@auto_generated_files_dir "lib/aws/generated"
def project do
[
app: :aws,
description: "AWS clients for Elixir",
package: package(),
version: @version,
name: "aws-el... | 23.873239 | 94 | 0.562832 |
b297b00df00dd76deae213c2e71fa82056ad4b7a | 149 | ex | Elixir | lib/cloudex/deleted_image.ex | davepersing/cloudex | 2d37b913ac55b28bece4c4b3a470cc4607490716 | [
"WTFPL"
] | null | null | null | lib/cloudex/deleted_image.ex | davepersing/cloudex | 2d37b913ac55b28bece4c4b3a470cc4607490716 | [
"WTFPL"
] | null | null | null | lib/cloudex/deleted_image.ex | davepersing/cloudex | 2d37b913ac55b28bece4c4b3a470cc4607490716 | [
"WTFPL"
] | null | null | null | defmodule Cloudex.DeletedImage do
@moduledoc "A simple struct that holds the public id of a deleted image response"
defstruct public_id: nil
end
| 29.8 | 83 | 0.798658 |
b297b2b5ca1f3380358ea98af3e048f86b5cb0b7 | 2,028 | ex | Elixir | lib/ex_double_entry/schemas/line.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | lib/ex_double_entry/schemas/line.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | lib/ex_double_entry/schemas/line.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | defmodule ExDoubleEntry.Line do
use Ecto.Schema
import Ecto.Changeset
alias ExDoubleEntry.{AccountBalance, EctoType, Line, MoneyProxy}
@schema_prefix ExDoubleEntry.db_schema()
schema "#{ExDoubleEntry.db_table_prefix()}lines" do
field :account_identifier, EctoType.Identifier
field :account_scope, Ect... | 27.04 | 91 | 0.687377 |
b297c3d9f45dcadeeb3fbb6f41c52dd9bc978f34 | 281 | ex | Elixir | lib/messaging_status_service.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | lib/messaging_status_service.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | lib/messaging_status_service.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | defmodule MessagingStatusService do
@moduledoc """
MessagingStatusService 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
| 28.1 | 67 | 0.779359 |
b297d600ccdbd9ef7ac0f43b1d134a3073a0a965 | 288 | ex | Elixir | lib/test/notifications/notifiers/slack.ex | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | 1 | 2018-11-20T15:23:59.000Z | 2018-11-20T15:23:59.000Z | lib/test/notifications/notifiers/slack.ex | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | 14 | 2018-10-29T09:43:13.000Z | 2019-01-18T11:06:08.000Z | lib/test/notifications/notifiers/slack.ex | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | 1 | 2020-02-24T18:21:26.000Z | 2020-02-24T18:21:26.000Z | defmodule Test.Notifications.Notifiers.Slack do
use Tilex.Notifications.Notifier
def handle_post_created(_post, _developer, _channel, _url) do
:ok
end
def handle_post_liked(_post, _developer, _url) do
:ok
end
def handle_page_views_report(_pid) do
:ok
end
end
| 18 | 63 | 0.743056 |
b297f56627c1527d3a7f6a50db7d4150b9196e46 | 947 | ex | Elixir | lib/koans/11_sigils.ex | camisetags/elixir-koans | 7bb1655d0f290c0834276091efa5a28b416dd91a | [
"MIT"
] | 1,944 | 2016-04-24T02:46:10.000Z | 2022-03-29T00:19:17.000Z | lib/koans/11_sigils.ex | camisetags/elixir-koans | 7bb1655d0f290c0834276091efa5a28b416dd91a | [
"MIT"
] | 157 | 2016-04-23T18:40:24.000Z | 2022-02-10T14:00:45.000Z | lib/koans/11_sigils.ex | camisetags/elixir-koans | 7bb1655d0f290c0834276091efa5a28b416dd91a | [
"MIT"
] | 636 | 2016-04-23T17:18:00.000Z | 2022-03-23T10:04:06.000Z | defmodule Sigils do
use Koans
@intro "Sigils"
koan "The ~s sigil is a different way of expressing string literals" do
assert ~s{This is a string} == ___
end
koan "Sigils are useful to avoid escaping quotes in strings" do
assert "\"Welcome to the jungle\", they said." == ___
end
koan "Sigils ca... | 24.282051 | 73 | 0.634636 |
b297f73a1151c8142e915c40f0624965909bab6d | 953 | ex | Elixir | apps/core/lib/core/contract_requests/reimbursement/contract_requests.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/contract_requests/reimbursement/contract_requests.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/contract_requests/reimbursement/contract_requests.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.ReimbursementContractRequests do
@moduledoc false
alias Core.ContractRequests.ReimbursementContractRequest
use Core.ContractRequests, schema: ReimbursementContractRequest
import Ecto.Query
@read_repo Application.get_env(:core, :repos)[:read_repo]
def get_contract_requests_to_deactivate(leg... | 34.035714 | 69 | 0.730325 |
b29802a2ed7f48ccd97e87fa4f8011ed5ec1be1c | 270 | exs | Elixir | test/saitama_web/views/layout_view_test.exs | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | 5 | 2020-06-18T11:44:20.000Z | 2021-08-28T10:39:57.000Z | test/saitama_web/views/layout_view_test.exs | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | 1 | 2021-03-10T07:41:31.000Z | 2021-03-10T07:41:31.000Z | test/saitama_web/views/layout_view_test.exs | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | null | null | null | defmodule SaitamaWeb.LayoutViewTest do
use SaitamaWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30 | 65 | 0.766667 |
b2987379a488324c053b63d228c7764524b0aa4c | 1,836 | ex | Elixir | lib/google_api/big_query/v2/model/model_definition_model_options.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/model_definition_model_options.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/model_definition_model_options.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"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... | 32.210526 | 200 | 0.735294 |
b2988afea49af24a2363f68d76ab90cede065b82 | 391 | exs | Elixir | test/groups_test.exs | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | test/groups_test.exs | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | test/groups_test.exs | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.GroupsTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
test "gets user's groups" do
use_cassette "groups_get" do
params = %{
access_token:
"e215ad8bb75b336f84212421d5e93e95eb8bd513bef513d98dfd17f06835f66705b4788e8d7038205f864"
}
... | 24.4375 | 97 | 0.713555 |
b298f262b3f8ece9007fcf5c1995c7497f735ada | 218 | ex | Elixir | apps/viztube_web/lib/viztube_web/current_user.ex | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | null | null | null | apps/viztube_web/lib/viztube_web/current_user.ex | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | 3 | 2020-07-16T23:48:01.000Z | 2021-05-08T15:54:04.000Z | apps/viztube_web/lib/viztube_web/current_user.ex | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | null | null | null | defmodule ViztubeWeb.Plug.CurrentUser do
def init(opts), do: opts
def call(conn, _opts) do
current_user = Guardian.Plug.current_resource(conn)
Plug.Conn.assign(conn, :current_user, current_user)
end
end
| 24.222222 | 55 | 0.747706 |
b298fbc64982ca7ce0cda0df448da33d00e084b3 | 453 | ex | Elixir | apps/rest_api/lib/application.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/rest_api/lib/application.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/rest_api/lib/application.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule RestAPI.Application do
@moduledoc false
use Application
@doc false
def start(_type, _args) do
Supervisor.start_link(children(), strategy: :one_for_one, name: RestAPI.Supervisor)
end
defp children do
:rest_api
|> Application.get_env(__MODULE__, [])
|> Keyword.get(:children)
end... | 19.695652 | 87 | 0.708609 |
b2992012f4e88b8e8d30c52ea9671540794ecaca | 7,735 | ex | Elixir | lib/system/facade.ex | exponentially/extreme_system | c3a63af286ace236726b32cc28b7b5445a9a9a29 | [
"MIT"
] | 9 | 2017-03-16T00:19:09.000Z | 2022-01-28T21:22:21.000Z | lib/system/facade.ex | exponentially/extreme_system | c3a63af286ace236726b32cc28b7b5445a9a9a29 | [
"MIT"
] | 16 | 2018-09-05T07:44:17.000Z | 2019-04-29T09:18:09.000Z | lib/system/facade.ex | exponentially/extreme_system | c3a63af286ace236726b32cc28b7b5445a9a9a29 | [
"MIT"
] | 7 | 2017-12-24T22:36:25.000Z | 2020-08-26T17:40:45.000Z | defmodule Extreme.System.Facade do
@moduledoc """
defmodule MyFacade do
use Extreme.System.Facade
route :do_something, MyController # calls MyController.do_something(params)
route :do_something_else, {MyController, :else} # calls MyController.else(params)
on_a... | 30.816733 | 125 | 0.575566 |
b2996ec9b39f2109ac627db3b726e3f4c9e7148a | 201 | exs | Elixir | test/faker/pokemon_test.exs | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | test/faker/pokemon_test.exs | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | test/faker/pokemon_test.exs | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | defmodule PokemonTest do
use ExUnit.Case, async: true
test "name/0" do
assert is_binary(Faker.Pokemon.name)
end
test "location/0" do
assert is_binary(Faker.Pokemon.location)
end
end | 18.272727 | 44 | 0.721393 |
b299af1f9774e40da1417761f7452474489476cd | 2,281 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/apk_manifest.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/apk_manifest.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/apk_manifest.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.016667 | 135 | 0.727313 |
b299d493c66bb59849054ac570d243ce3135c31d | 24,186 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/addresses.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/api/addresses.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/addresses.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... | 59.571429 | 1,174 | 0.6505 |
b299d9778fb80788c5ea4055956a04cb984a03ec | 3,461 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_context.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 ... | 43.810127 | 184 | 0.741115 |
b29a0319c88c435d8bfbe09c5822f8e20a098daf | 4,125 | ex | Elixir | clients/content/lib/google_api/content/v21/model/free_listings_program_status_region_status.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/free_listings_program_status_region_status.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/free_listings_program_status_region_status.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... | 53.571429 | 318 | 0.731636 |
b29a0bc8164400bc4485b8c53f69d21a062898c0 | 4,318 | ex | Elixir | lib/ryan_web/live/domain_price_live.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | 1 | 2019-07-31T13:43:21.000Z | 2019-07-31T13:43:21.000Z | lib/ryan_web/live/domain_price_live.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | null | null | null | lib/ryan_web/live/domain_price_live.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | null | null | null | defmodule RyanWeb.DomainPriceLive do
use Phoenix.LiveView
alias Ryan.DomainApi
@min 200_000
@max 5_000_000
@increments 1_000
@clamp %{min: @min, max: @max, match: nil}
def render(assigns), do: RyanWeb.LiveView.render("domain_price.html", assigns)
def mount(_params, socket) do
{:ok,
assign(s... | 27.679487 | 83 | 0.625521 |
b29a156e7f7b99d2d12f29e83363b71d5da8bdcb | 3,292 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.729412 | 195 | 0.71294 |
b29a37d3bd00a1f31b1d50d4fc651aaa5ece4f1f | 1,822 | ex | Elixir | lib/warehouse/inventory/inventory.ex | riebeekn/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | 14 | 2019-02-27T18:49:28.000Z | 2020-12-24T21:39:16.000Z | lib/warehouse/inventory/inventory.ex | ammy-bajwa/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | null | null | null | lib/warehouse/inventory/inventory.ex | ammy-bajwa/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | 5 | 2019-07-16T17:50:36.000Z | 2020-08-12T22:14:41.000Z | defmodule Warehouse.Inventory do
@moduledoc """
The Inventory context.
"""
import Ecto.Query, warn: false
alias Warehouse.Repo
alias Warehouse.Inventory.Product
@doc """
Returns the list of products.
## Examples
iex> list_products()
[%Product{}, ...]
"""
def list_products do
... | 17.352381 | 62 | 0.603732 |
b29a47b8ad7da55f4fe7020550a44ac03100b390 | 1,533 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/create_asset_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/create_asset_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/create_asset_response.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... | 32.617021 | 120 | 0.746249 |
b29a6b2887e3d8b3b394341554a1c7b09629c565 | 1,884 | exs | Elixir | test/rfx/ops/proto/no_op_test.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 31 | 2021-05-29T22:57:04.000Z | 2022-03-13T16:24:57.000Z | test/rfx/ops/proto/no_op_test.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-04T23:34:38.000Z | 2021-07-16T16:01:20.000Z | test/rfx/ops/proto/no_op_test.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-11T13:10:04.000Z | 2022-02-11T13:33:16.000Z | defmodule Rfx.Ops.Proto.NoOpTest do
use ExUnit.Case
alias Rfx.Ops.Proto.NoOp
alias Rfx.Util.Tst
@base_source """
InputSource
"""
doctest NoOp
describe "#cl_code" do
test "changelist length" do
assert [] = NoOp.cl_code(@base_source)
end
test "expected fields" do
assert [] = N... | 21.168539 | 45 | 0.624204 |
b29a915327e6f18e216a71d0c0bb368c4b35769a | 826 | exs | Elixir | test/etdpay_web/views/users_view_test.exs | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | test/etdpay_web/views/users_view_test.exs | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | test/etdpay_web/views/users_view_test.exs | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | defmodule EtdpayWeb.UsersViewTest do
use EtdpayWeb.ConnCase, async: true
import Phoenix.View
alias Etdpay.{Account, User}
alias EtdpayWeb.UsersView
test "renders create.json" do
params = %{
name: "Fulano De Tal",
password: "12345678",
nickname: "fulano",
email: "fulano@dominio.c... | 21.736842 | 100 | 0.590799 |
b29aa07f98012f6547b1979a270d3189c6246eea | 2,603 | exs | Elixir | test/controllers/html_region_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | test/controllers/html_region_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | test/controllers/html_region_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.HtmlRegionControllerTest do
use Tox.ConnCase
alias Tox.HtmlRegion
@valid_attrs %{division: 42, name: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, html_region_path(conn, :index)
assert html_response(conn, 200) =~ "Listing region... | 38.850746 | 98 | 0.70995 |
b29aa5cef7012e1df105d9cb3ce133cde4f08453 | 748 | exs | Elixir | mix.exs | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | mix.exs | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | mix.exs | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | defmodule Esquew.MixProject do
use Mix.Project
def project do
[
app: :esquew,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_apps: [:ex_unit, :mix], ignore_warnings: "config/dialyzer.ignore"]
]
end
# Run "m... | 22 | 91 | 0.545455 |
b29ad011d9f7ed18f8f8d691f6cbc97372c389a6 | 49,097 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/api/users.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/api/users.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/api/users.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"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... | 50.983385 | 1,813 | 0.632197 |
b29ad132b16637843731aef7a1dc9b0515ff133c | 991 | exs | Elixir | config/runtime.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | config/runtime.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | config/runtime.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | import Config
if System.get_env("PHX_SERVER") && System.get_env("RELEASE_NAME") do
config :frontend, FrontendWeb.Endpoint, server: true
end
if config_env() == :prod do
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
environment variable SECRET_KEY_BASE is missing.
You can ge... | 26.783784 | 84 | 0.671039 |
b29af3c669e5ad4f4d182156f434864fcb4d2cd2 | 4,493 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/auth_provider.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/auth_provider.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/auth_provider.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... | 72.467742 | 747 | 0.742266 |
b29b22b813a608e30b762b8a8b79b03604d1cf75 | 3,138 | ex | Elixir | lib/admint/page.ex | tiberiuc/admint | 6d1bd5462f49053c7c3999c35cc301c7b8f08a70 | [
"MIT"
] | null | null | null | lib/admint/page.ex | tiberiuc/admint | 6d1bd5462f49053c7c3999c35cc301c7b8f08a70 | [
"MIT"
] | null | null | null | lib/admint/page.ex | tiberiuc/admint | 6d1bd5462f49053c7c3999c35cc301c7b8f08a70 | [
"MIT"
] | null | null | null | defmodule Admint.Page do
@callback validate_config(map()) :: :ok | {:error, String.t()}
@callback compile_config(map()) :: {:ok, map()} | {:error, String.t()}
@callback render(map()) :: term()
@type t :: %__MODULE__{
__stacktrace__: Admint.Stacktrace.t(),
config: map
}
@enforce_k... | 24.138462 | 86 | 0.558636 |
b29b330d4e8689a08dad2c43983ff07beeaf7e15 | 271 | ex | Elixir | lib/cgrates_web_jsonapi.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapi do
@moduledoc """
CgratesWebJsonapi 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
| 27.1 | 66 | 0.771218 |
b29b3a6ab6966c1c8102496b44e43213f6324445 | 68,239 | ex | Elixir | lib/elixir/lib/module.ex | jayashe/elixir | 6803c87465552624dac017de53156e806762047d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module.ex | jayashe/elixir | 6803c87465552624dac017de53156e806762047d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module.ex | jayashe/elixir | 6803c87465552624dac017de53156e806762047d | [
"Apache-2.0"
] | null | null | null | defmodule Module do
@moduledoc ~S'''
Provides functions to deal with modules during compilation time.
It allows a developer to dynamically add, delete and register
attributes, attach documentation and so forth.
After a module is compiled, using many of the functions in
this module will raise errors, since... | 32.233821 | 113 | 0.66399 |
b29b4eaeb2d11466f7e578cf8868eae51d65b15c | 1,248 | ex | Elixir | apps/lana/lib/lana/views/error_helpers.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/lana/lib/lana/views/error_helpers.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/lana/lib/lana/views/error_helpers.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | defmodule Lana.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
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
content_tag :spa... | 30.439024 | 70 | 0.665865 |
b29b5830d30b063fbbecb669c983cc3a718dda4c | 3,397 | exs | Elixir | priv/repo/migrations/20210303204631_fix_on_delete_account_associations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20210303204631_fix_on_delete_account_associations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20210303204631_fix_on_delete_account_associations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.FixOnDeleteAccountAssociations do
use Ecto.Migration
def up do
drop(constraint(:messages, "messages_account_id_fkey"))
drop(constraint(:conversations, "conversations_account_id_fkey"))
drop(constraint(:users, "users_account_id_fkey"))
drop(constraint(:customers, "c... | 37.744444 | 98 | 0.725052 |
b29b69dff71bb2480cf73fe5289d9d8ddb4cde1e | 157 | ex | Elixir | programacao_funcional/06/compara.ex | MatheusPSantos/functional-prog-lessons | 79ecc40798f5aadb895b5c2a1875010de48998b5 | [
"MIT"
] | null | null | null | programacao_funcional/06/compara.ex | MatheusPSantos/functional-prog-lessons | 79ecc40798f5aadb895b5c2a1875010de48998b5 | [
"MIT"
] | null | null | null | programacao_funcional/06/compara.ex | MatheusPSantos/functional-prog-lessons | 79ecc40798f5aadb895b5c2a1875010de48998b5 | [
"MIT"
] | null | null | null | defmodule ComparaNumero do
def maior(n1, n2) do
check(n1 >= n2, n1, n2)
end
defp check(true, n1, _), do: n1
defp check(false, _, n2), do: n2
end
| 19.625 | 34 | 0.624204 |
b29bb36a7330fdca8fecf9c5f2d30024cbd07139 | 526 | ex | Elixir | priv/catalogue/hergetto_web/logo_icon/example02.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 8 | 2021-03-07T16:24:05.000Z | 2022-02-28T02:36:35.000Z | priv/catalogue/hergetto_web/logo_icon/example02.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 126 | 2021-02-15T10:51:07.000Z | 2022-03-28T02:25:01.000Z | priv/catalogue/hergetto_web/logo_icon/example02.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | null | null | null | defmodule HergettoWeb.Components.LogoIcon.Example02 do
@moduledoc """
Example for fontawesome.
"""
use Surface.Catalogue.Example,
subject: Elixir.HergettoWeb.Components.LogoIcon,
height: "500px",
title: "Logo icon with fontawesome"
alias Elixir.HergettoWeb.Components.LogoIcon
def render(assig... | 21.916667 | 62 | 0.644487 |
b29c0f2bc7f06df7ee63ff1c04a3819e57012b97 | 2,724 | ex | Elixir | lib/logger_json/plug/metadata_formatters/elk.ex | austinsmorris/logger_json | 6fc1ca9755dc9ec34c684041f4b5c10e425cc570 | [
"MIT"
] | 1 | 2020-12-19T18:20:40.000Z | 2020-12-19T18:20:40.000Z | lib/logger_json/plug/metadata_formatters/elk.ex | austinsmorris/logger_json | 6fc1ca9755dc9ec34c684041f4b5c10e425cc570 | [
"MIT"
] | null | null | null | lib/logger_json/plug/metadata_formatters/elk.ex | austinsmorris/logger_json | 6fc1ca9755dc9ec34c684041f4b5c10e425cc570 | [
"MIT"
] | 3 | 2020-10-14T07:47:47.000Z | 2020-10-14T10:54:15.000Z | if Code.ensure_loaded?(Plug) do
defmodule LoggerJSON.Plug.MetadataFormatters.ELK do
@moduledoc """
Formats connection into Logger metadata:
* `connection.type` - type of connection (Sent or Chunked);
* `connection.method` - HTTP request method;
* `connection.request_path` - HTTP request pat... | 34.923077 | 112 | 0.629222 |
b29c287d7e64590ee8ad4e34185c1e394e2463b7 | 280 | ex | Elixir | lib/phone/nanp/us/md.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/nanp/us/md.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/nanp/us/md.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.NANP.US.MD do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(240|301|410|443|667)([2-9].{6})$/
def area_name, do: "Maryland"
def area_type, do: "state"
def area_abbreviation, do: "MD"
matcher(["1240", "1301", "1410", "1443", "1667"])
end
| 21.538462 | 58 | 0.628571 |
b29c42bb7c8812fce510bf4dd4de0c59eba80db9 | 1,654 | ex | Elixir | lib/auto_api/capabilities/firmware_version_capability.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | lib/auto_api/capabilities/firmware_version_capability.ex | highmobility/auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | lib/auto_api/capabilities/firmware_version_capability.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 38.465116 | 79 | 0.753325 |
b29c47373c64fb27800fef501089878540751243 | 927 | ex | Elixir | lib/zwarm/manager.ex | walkr/zwarm | 5878580a336f2b9436915ebe0b4437be13dc13b9 | [
"MIT"
] | 1 | 2017-07-19T04:00:47.000Z | 2017-07-19T04:00:47.000Z | lib/zwarm/manager.ex | walkr/zwarm | 5878580a336f2b9436915ebe0b4437be13dc13b9 | [
"MIT"
] | null | null | null | lib/zwarm/manager.ex | walkr/zwarm | 5878580a336f2b9436915ebe0b4437be13dc13b9 | [
"MIT"
] | null | null | null | defmodule Zwarm.Manager do
### API #####
@doc """
Createa swarm of `count` processes
"""
def create(count) do
:ok = maybe_create_swarm_manager()
call({:swarm_create, count})
end
def create(count, fun, args \\ []) do
:ok = maybe_create_swarm_manager()
call({... | 25.054054 | 92 | 0.579288 |
b29c792f5d2ea9db00887832d8bdda9008de0133 | 445 | exs | Elixir | apps/incident_bridge_web/test/incident_comm_web/views/error_view_test.exs | LivewareProblems/incident-comm-hq | c0c35f30c2a0f99a640be2988bae836d3a2abd5a | [
"Apache-2.0"
] | null | null | null | apps/incident_bridge_web/test/incident_comm_web/views/error_view_test.exs | LivewareProblems/incident-comm-hq | c0c35f30c2a0f99a640be2988bae836d3a2abd5a | [
"Apache-2.0"
] | 12 | 2019-05-11T22:47:51.000Z | 2019-05-18T17:18:44.000Z | apps/incident_bridge_web/test/incident_comm_web/views/error_view_test.exs | LivewareProblems/incident-comm-hq | c0c35f30c2a0f99a640be2988bae836d3a2abd5a | [
"Apache-2.0"
] | null | null | null | defmodule IncidentBridgeWeb.ErrorViewTest do
use IncidentBridgeWeb.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(IncidentBridgeWeb.ErrorView, "404.html", []) == "Not Found"
end
test "render... | 29.666667 | 99 | 0.750562 |
b29c7e119d59998573a3743ad6fb859130869158 | 117 | ex | Elixir | hello_world/lib/hello_world.ex | kkrull/elixir-sandbox | 03059e959d645100d23145ddcf8f020cd11a93f3 | [
"MIT"
] | null | null | null | hello_world/lib/hello_world.ex | kkrull/elixir-sandbox | 03059e959d645100d23145ddcf8f020cd11a93f3 | [
"MIT"
] | null | null | null | hello_world/lib/hello_world.ex | kkrull/elixir-sandbox | 03059e959d645100d23145ddcf8f020cd11a93f3 | [
"MIT"
] | null | null | null | defmodule HelloWorld do
def hello do
"Hello World!"
end
def hello(name) do
"Hello #{name}!"
end
end
| 11.7 | 23 | 0.623932 |
b29ca82328ae2ae2340f4770e67d3a541a4bf8b9 | 972 | exs | Elixir | test/grizzly/zip_gateway_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zip_gateway_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zip_gateway_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZIPGatewayTest do
use ExUnit.Case, async: true
alias Grizzly.{Options, ZIPGateway}
alias GrizzlyTest.Utils
test "get IP for node id 1 with IPv6" do
assert {0xFD00, 0xBBBB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01} ==
ZIPGateway.host_for_node(1, Options.new())
end
test "get IP... | 30.375 | 66 | 0.647119 |
b29ce6f4f83d2def25922bf63cddcdf728f663a5 | 571 | ex | Elixir | lib/nlw_05_elixir/supplies/get_by_expiration.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir/supplies/get_by_expiration.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir/supplies/get_by_expiration.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | defmodule Nlw05Elixir.Supplies.GetByExpiration do
import Ecto.Query
alias Nlw05Elixir.{Repo, Supply, Restaurant}
def call do
today = Date.utc_today()
beginninig_of_week = Date.beginning_of_week(today)
end_of_week = Date.end_of_week(today)
query =
from supply in Supply,
where:
... | 25.954545 | 99 | 0.688266 |
b29cf0ed63a69a734530b6c2b0dc23e3944c762f | 11,819 | ex | Elixir | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v1/api/groups.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v1/api/groups.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v1/api/groups.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 52.763393 | 713 | 0.717827 |
b29d02e3e87736aae20dcd9ccdd60e6b8204b9cb | 241 | exs | Elixir | config/config.exs | apellizzn/avrora | 02a5eb563d85f06b6af25fbed220c508bc2bf410 | [
"MIT"
] | null | null | null | config/config.exs | apellizzn/avrora | 02a5eb563d85f06b6af25fbed220c508bc2bf410 | [
"MIT"
] | null | null | null | config/config.exs | apellizzn/avrora | 02a5eb563d85f06b6af25fbed220c508bc2bf410 | [
"MIT"
] | null | null | null | use Mix.Config
config :avrora,
schemas_path: Path.expand("./test/fixtures/schemas"),
registry_url: nil,
registry_auth: nil,
names_cache_ttl: :infinity
config :logger, :console, format: "$time $metadata[$level] $levelpad$message\n"
| 24.1 | 79 | 0.73444 |
b29d209b725ac4a59436abda6d3c1562ad807095 | 1,038 | exs | Elixir | mix.exs | nicbet/essence | f3371c33839d4db00020181c9ec980d449d2a00b | [
"MIT"
] | 68 | 2016-09-10T20:04:37.000Z | 2022-03-16T14:53:27.000Z | mix.exs | nicbet/essence | f3371c33839d4db00020181c9ec980d449d2a00b | [
"MIT"
] | 1 | 2018-02-14T20:22:45.000Z | 2018-02-14T20:22:45.000Z | mix.exs | nicbet/essence | f3371c33839d4db00020181c9ec980d449d2a00b | [
"MIT"
] | 8 | 2017-02-11T19:28:56.000Z | 2021-04-13T08:07:55.000Z | defmodule Essence.Mixfile do
use Mix.Project
def project do
[app: :essence,
version: "0.3.0",
elixir: "~> 1.3",
description: description(),
package: package(),
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def ... | 21.625 | 67 | 0.552987 |
b29d21881a8981ca3e44ea935ef2504ec04c050c | 342 | ex | Elixir | lib/attempt/retry/backoff/exponential_decorrelated_jitter.ex | kipcole9/attempt | 4f085702982b591cc258f703b345aa038d35db8d | [
"Apache-2.0"
] | 2 | 2018-01-04T07:48:49.000Z | 2018-01-06T10:20:46.000Z | lib/attempt/retry/backoff/exponential_decorrelated_jitter.ex | kipcole9/attempt | 4f085702982b591cc258f703b345aa038d35db8d | [
"Apache-2.0"
] | 1 | 2018-01-12T22:28:00.000Z | 2018-01-12T22:28:00.000Z | lib/attempt/retry/backoff/exponential_decorrelated_jitter.ex | kipcole9/attempt | 4f085702982b591cc258f703b345aa038d35db8d | [
"Apache-2.0"
] | null | null | null | defmodule Attempt.Retry.Backoff.ExponentialDecorrelatedJitter do
@behaviour Attempt.Retry.Backoff
alias Attempt.Retry
@base_delay 0
@max_delay 500
def delay(%Retry.Budget{current_try: 1}), do: 0
def delay(%Retry.Budget{last_sleep: last_sleep}) do
Enum.random(@base_delay..(last_sleep * 3))
|> min(... | 22.8 | 64 | 0.733918 |
b29d679086d8a7e0d7692c4077047406f2641db3 | 258 | exs | Elixir | implementations/elixir/ockam/ockam_hub/config/releases.exs | fmterrorf/ockam | 05ce6fd0720e42499d2250f1457fbdd9b7d5dc34 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/config/releases.exs | fmterrorf/ockam | 05ce6fd0720e42499d2250f1457fbdd9b7d5dc34 | [
"Apache-2.0"
] | 110 | 2021-08-06T17:16:52.000Z | 2022-03-28T17:20:54.000Z | implementations/elixir/ockam/ockam_hub/config/releases.exs | feniks65/ockam | 4c4cf86b1d3f33d7f3c0f62097fcceea7578ea7e | [
"Apache-2.0"
] | null | null | null | import Config
config :telemetry_influxdb,
host: System.get_env("INFLUXDB_HOST"),
port: System.get_env("INFLUXDB_PORT"),
bucket: System.get_env("INFLUXDB_BUCKET"),
org: System.get_env("INFLUXDB_ORG"),
token: File.read!("/mnt/secrets/influx/token")
| 28.666667 | 48 | 0.744186 |
b29d87b652810b61f6a4950e14aeabf7aa92203e | 769 | ex | Elixir | example/server/test/support/channel_case.ex | vip30/vue-phoenix | fe85a5f7c10fbc92c0f0b4e3cfd9d7752d4e5235 | [
"MIT"
] | 9 | 2019-01-21T07:16:44.000Z | 2022-02-18T05:53:15.000Z | example/server/test/support/channel_case.ex | vip30/vue-phoenix | fe85a5f7c10fbc92c0f0b4e3cfd9d7752d4e5235 | [
"MIT"
] | null | null | null | example/server/test/support/channel_case.ex | vip30/vue-phoenix | fe85a5f7c10fbc92c0f0b4e3cfd9d7752d4e5235 | [
"MIT"
] | 2 | 2020-07-13T12:44:14.000Z | 2021-09-26T14:38:17.000Z | defmodule EventWeb.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 common data structures and query the data layer.
Finally, if the test case interacts wit... | 24.03125 | 59 | 0.725618 |
b29d98c76b732b5583644cba051f84e6097b2e76 | 1,283 | exs | Elixir | test/lib/date_helper_test.exs | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 184 | 2015-11-23T20:51:50.000Z | 2022-03-30T01:01:39.000Z | test/lib/date_helper_test.exs | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 15 | 2015-11-26T16:00:20.000Z | 2018-05-25T20:13:39.000Z | test/lib/date_helper_test.exs | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 21 | 2015-11-26T21:34:40.000Z | 2022-03-26T02:56:42.000Z | defmodule ExMoney.DateHelperTest do
use ExUnit.Case
alias ExMoney.DateHelper
test "parse_date when argument is nil" do
result = DateHelper.parse_date(nil)
assert result.year == Timex.local.year
assert result.month == Timex.local.month
assert result.day == Timex.local.day
end
test "parse_da... | 24.673077 | 83 | 0.67576 |
b29dee7104fa3a8a0583e926f8adae0ae86bb337 | 2,259 | ex | Elixir | lib/makeup.ex | RudolfMan/makeup | 18d38e76f8a2fdb98ccee93f74a57a6430843e3a | [
"BSD-2-Clause"
] | 31 | 2020-10-02T09:01:30.000Z | 2022-03-18T14:58:01.000Z | lib/makeup.ex | RudolfMan/makeup | 18d38e76f8a2fdb98ccee93f74a57a6430843e3a | [
"BSD-2-Clause"
] | 21 | 2020-09-29T12:59:58.000Z | 2022-03-07T15:21:48.000Z | lib/makeup.ex | RudolfMan/makeup | 18d38e76f8a2fdb98ccee93f74a57a6430843e3a | [
"BSD-2-Clause"
] | 5 | 2020-12-01T20:17:51.000Z | 2022-03-07T09:10:13.000Z | defmodule Makeup do
@moduledoc """
Syntax highlighting library for code, inspired by Pygments.
By default, it doesn't include any lexers. You must import
them separately (even the Elixir lexer).
"""
alias Makeup.Formatters.HTML.HTMLFormatter
alias Makeup.Lexers.ElixirLexer
alias Makeup.Styles.HTML.Styl... | 28.961538 | 83 | 0.694112 |
b29dfb0052a654f81e54a8394bad02b96a19a260 | 619 | exs | Elixir | mix.exs | zeam-vm/pelemay_fp_benchmark | 4ab31006d27b46fe15cbb6a39d0240f3b7da873d | [
"Apache-2.0"
] | null | null | null | mix.exs | zeam-vm/pelemay_fp_benchmark | 4ab31006d27b46fe15cbb6a39d0240f3b7da873d | [
"Apache-2.0"
] | 1 | 2020-12-28T08:16:26.000Z | 2021-01-05T20:04:51.000Z | mix.exs | zeam-vm/pelemay_fp_benchmark | 4ab31006d27b46fe15cbb6a39d0240f3b7da873d | [
"Apache-2.0"
] | 1 | 2020-12-28T00:10:38.000Z | 2020-12-28T00:10:38.000Z | defmodule PelemayFpBenchmark.MixProject do
use Mix.Project
@version "0.1.2"
def project do
[
app: :pelemay_fp_benchmark,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applicatio... | 18.757576 | 59 | 0.557351 |
b29e14ca85f017af496b680795ed018c0625b9d7 | 2,180 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/content_category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/content_category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/content_category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.928571 | 208 | 0.715596 |
b29e32d71b74b9c5ec8d946fa6875a20a477f2b6 | 60,499 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.650072 | 196 | 0.610043 |
b29e3f798ed0d46cbc6166b877cfb84ba9a36669 | 1,140 | ex | Elixir | lib/backpack/moment/calculator.ex | imranismail/backpack | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | 2 | 2017-09-03T15:16:19.000Z | 2018-02-07T02:25:10.000Z | lib/backpack/moment/calculator.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | lib/backpack/moment/calculator.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | defprotocol Backpack.Moment.Calculator do
def shift(value, opts)
def ago(value, seconds)
def from_now(value, seconds)
def minutes_ago(value, minutes)
def minutes_from_now(value, minutes)
def hours_ago(value, hours)
def hours_from_now(value, hours)
def days_ago(value, days)
def days_from_now(va... | 14.615385 | 41 | 0.733333 |
b29e4fce72b77749368d0c0fec90edb18f005384 | 1,171 | exs | Elixir | mix.exs | sevenmind/ecto-cassandra | a96afa164e4c7ef389299a366bd3cc2519490786 | [
"Apache-2.0"
] | 93 | 2016-11-14T12:02:52.000Z | 2021-10-10T17:39:23.000Z | mix.exs | kiopro/ecto_cassandra | da0929185032abce33b8332d711d601ba2b4c588 | [
"Apache-2.0"
] | 24 | 2017-03-14T19:00:27.000Z | 2020-12-21T05:44:26.000Z | mix.exs | kiopro/ecto_cassandra | da0929185032abce33b8332d711d601ba2b4c588 | [
"Apache-2.0"
] | 18 | 2016-12-23T08:00:08.000Z | 2021-08-22T19:15:27.000Z | defmodule EctoCassandra.Mixfile do
use Mix.Project
def project, do: [
app: :ecto_cassandra,
version: "1.0.2",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls": :test,
"... | 26.022222 | 85 | 0.58497 |
b29e580750bbdd01bca4924c781e75e46b1dbbc0 | 83 | exs | Elixir | test/bodyguard/bodyguard_test.exs | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | 608 | 2016-09-09T19:35:31.000Z | 2022-03-30T15:46:26.000Z | test/bodyguard/bodyguard_test.exs | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | 69 | 2016-09-08T14:21:36.000Z | 2021-08-04T00:10:41.000Z | test/bodyguard/bodyguard_test.exs | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | 45 | 2016-09-08T20:06:51.000Z | 2021-12-20T18:04:54.000Z | defmodule BodyguardTest do
use ExUnit.Case, async: false
doctest Bodyguard
end
| 16.6 | 31 | 0.795181 |
b29e7e039b6359af1585f04ba9020edcb07f9942 | 3,696 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.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 ... | 42.976744 | 238 | 0.661255 |
b29e9d31008cd82dcf72f0c850f06f2cf4458597 | 710 | ex | Elixir | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/immutability_policy_property.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/immutability_policy_property.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/immutability_policy_property.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Storage.Model.ImmutabilityPolicyProperty do
@moduledoc """
The properties of an ImmutabilityPolicy of a blob contai... | 25.357143 | 99 | 0.739437 |
b29ee2619e3511b707e9322c975d71783ca9426a | 259 | ex | Elixir | lib/salty.ex | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 23 | 2017-07-04T19:29:43.000Z | 2021-02-16T19:44:38.000Z | lib/salty.ex | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 16 | 2017-08-13T15:31:25.000Z | 2019-06-19T14:44:13.000Z | lib/salty.ex | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 19 | 2017-08-10T19:01:49.000Z | 2021-06-20T01:34:59.000Z | defmodule Salty do
@moduledoc """
Salty
"""
alias Salty.Nif, as: Nif
@doc """
Salty.equals compares binaries a and b in a side-channel free way.
"""
def equals(a, b), do: Nif.memcmp(a, b)
#def keygen(size), do: Nif.randombytes(size)
end
| 17.266667 | 68 | 0.633205 |
b29efb8f8767c8f7f0b12755686ec1f6cb2b9708 | 1,798 | ex | Elixir | lib/flix_web/telemetry.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | lib/flix_web/telemetry.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | lib/flix_web/telemetry.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule FlixWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn mor... | 32.107143 | 86 | 0.667964 |
b29f0e60e48430245b58693c38f06545607c963d | 2,134 | ex | Elixir | lib/credo/code/parameters.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/code/parameters.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/code/parameters.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Code.Parameters do
@moduledoc """
This module provides helper functions to analyse the parameters taken by a
function.
"""
@def_ops [:def, :defp, :defmacro]
@doc "Returns the parameter count for the given function's AST"
def count(nil), do: 0
for op <- @def_ops do
def count({unquo... | 22.702128 | 96 | 0.63074 |
b29f1448c68fcf57103d98bb73cce942b5f99c27 | 2,337 | exs | Elixir | elixir/test/homework/accounts_test.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/test/homework/accounts_test.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/test/homework/accounts_test.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | defmodule Homework.AccountsTest do
use Homework.DataCase
alias Homework.Accounts
describe "companies" do
alias Homework.Accounts.Company
@valid_attrs %{available_credit: 42, credit_line: 42, name: "some name"}
@update_attrs %{available_credit: 43, credit_line: 43, name: "some updated name"}
@in... | 33.869565 | 91 | 0.688062 |
b29f4180ac1d48784b5c6239a76cd8820d93dc8b | 2,117 | ex | Elixir | lib/ring_central.ex | ringcentral-elixir/ringcentral_elixir | 51c5bec661cc469f3fa44933223bfd0e8a0d63d8 | [
"MIT"
] | 4 | 2019-03-12T15:22:16.000Z | 2020-01-19T03:51:52.000Z | lib/ring_central.ex | linjunpop/ringcentral_elixir | dd7b758778a29f590a27fd7798c449a38a231ccf | [
"MIT"
] | null | null | null | lib/ring_central.ex | linjunpop/ringcentral_elixir | dd7b758778a29f590a27fd7798c449a38a231ccf | [
"MIT"
] | null | null | null | defmodule RingCentral do
@moduledoc """
A thin [RingCentral API](https://developer.ringcentral.com/api-reference) wrapper in Elixir.
"""
@enforce_keys [:client_id, :client_secret]
defstruct server_url: nil,
client_id: nil,
client_secret: nil,
token_info: nil,
... | 32.075758 | 137 | 0.680208 |
b29f44da6230664731e76c8cefbdf0116447241d | 607 | ex | Elixir | lib/churn/processor/times_edited.ex | patrykwozinski/churn | 5a5ad6442da8ae0dc46064d4f80e5404c397d90d | [
"MIT"
] | 78 | 2021-05-18T09:55:12.000Z | 2022-03-02T22:11:53.000Z | lib/churn/processor/times_edited.ex | patrykwozinski/churn | 5a5ad6442da8ae0dc46064d4f80e5404c397d90d | [
"MIT"
] | 14 | 2021-05-12T23:00:43.000Z | 2022-03-02T08:16:01.000Z | lib/churn/processor/times_edited.ex | patrykwozinski/churn | 5a5ad6442da8ae0dc46064d4f80e5404c397d90d | [
"MIT"
] | 2 | 2021-05-20T14:54:08.000Z | 2021-06-08T18:01:40.000Z | defmodule Churn.Processor.TimesEdited do
@moduledoc false
alias Churn.File
@spec calculate(File.t(), String.t()) ::
{:ok, pos_integer()} | {:error, :can_not_calculate_total_edited}
def calculate(%File{path: file_path}, commits_since) do
System.cmd("git", [
"rev-list",
"--since",
... | 23.346154 | 74 | 0.571664 |
b29f666f8e8f8aed4988162026790ed7f9801b63 | 548 | ex | Elixir | lib/iris_web/views/message_view.ex | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 17 | 2017-07-10T09:01:40.000Z | 2022-03-08T23:47:27.000Z | lib/iris_web/views/message_view.ex | 7-iris/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 7 | 2017-07-09T16:22:13.000Z | 2018-06-09T21:34:03.000Z | lib/iris_web/views/message_view.ex | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | null | null | null | defmodule IrisWeb.MessageView do
use IrisWeb, :view
def render("index.json", %{messages: messages}) do
%{data: render_many(messages, IrisWeb.MessageView, "message.json")}
end
def render("show.json", %{message: message}) do
render_one(message, IrisWeb.MessageView, "message.json")
end
def render("m... | 26.095238 | 71 | 0.678832 |
b29f6acceeade21eefff99346234c58fd99d2f10 | 30 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_call_operation/no_parentheses_many_arguments_strict_parsing_test_case/OctalWholeNumber.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_call_operation/no_parentheses_many_arguments_strict_parsing_test_case/OctalWholeNumber.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_call_operation/no_parentheses_many_arguments_strict_parsing_test_case/OctalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0o7 positional,
key: value | 15 | 15 | 0.7 |
b29f7bdc9cd9c0a47bcd027663e99388220f5d9f | 1,815 | ex | Elixir | lib/oli_web/live/projects/table_model.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/table_model.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/table_model.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 1 | 2021-10-30T05:58:19.000Z | 2021-10-30T05:58:19.000Z | defmodule OliWeb.Projects.TableModel do
alias OliWeb.Common.Table.{ColumnSpec, SortableTableModel}
use Surface.LiveComponent
alias OliWeb.Router.Helpers, as: Routes
def new(author, sections, include_status?) do
column_specs =
[
%ColumnSpec{
name: :title,
label: "Title",
... | 22.974684 | 101 | 0.514601 |
b29f805b490151e1339e3ebdfdcc76197c797dd2 | 660 | ex | Elixir | lib/petfinder/animals.ex | petfinder-com/petfinder_ex | 33d116ade25cf66cab8071e4e6569dec93a7f6e9 | [
"BSD-3-Clause"
] | null | null | null | lib/petfinder/animals.ex | petfinder-com/petfinder_ex | 33d116ade25cf66cab8071e4e6569dec93a7f6e9 | [
"BSD-3-Clause"
] | null | null | null | lib/petfinder/animals.ex | petfinder-com/petfinder_ex | 33d116ade25cf66cab8071e4e6569dec93a7f6e9 | [
"BSD-3-Clause"
] | 1 | 2021-01-11T18:28:38.000Z | 2021-01-11T18:28:38.000Z | defmodule Petfinder.Animals do
alias Petfinder.Helpers
def get_animals(params \\ %{}) do
"#{Helpers.base_url()}/v2/animals"
|> Helpers.process_get(params)
end
def get_animal_by_id(id) do
"#{Helpers.base_url()}/v2/animals/#{id}"
|> Helpers.process_get()
end
def get_animal_types() do
"#... | 22.758621 | 56 | 0.674242 |
b29f85310dd10711d46d51fb7b6f1bb8b6b9c518 | 1,798 | exs | Elixir | rel/config/prod_runtime_config.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | null | null | null | rel/config/prod_runtime_config.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | null | null | null | rel/config/prod_runtime_config.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | null | null | null | use Mix.Config
config :slax, Slax.Repo,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
port = String.to_integer(System.get_env("PORT"))
config :slax, SlaxWeb.Endpoint,
http: [port: port, compress: true],
url: [scheme: "https", host: System.get_env("APP_... | 33.296296 | 88 | 0.726363 |
b29f930195ab801414cf3bfe1d280994a576843e | 25,049 | ex | Elixir | lib/elixir/lib/map.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | defmodule Map do
@moduledoc """
Maps are the "go to" key-value data structure in Elixir.
Maps can be created with the `%{}` syntax, and key-value pairs can be
expressed as `key => value`:
iex> %{}
%{}
iex> %{"one" => :two, 3 => "four"}
%{3 => "four", "one" => :two}
Key-value pairs i... | 25.850361 | 98 | 0.580582 |
b29faee3f321acf4f0f7e046c94bc199595637dd | 1,095 | exs | Elixir | config/config.exs | dbishai/bible-study-spreadsheet | 9009cf8c343c215b2d8d6c1d8d24fd1ed2219434 | [
"MIT"
] | null | null | null | config/config.exs | dbishai/bible-study-spreadsheet | 9009cf8c343c215b2d8d6c1d8d24fd1ed2219434 | [
"MIT"
] | 1 | 2021-03-10T06:25:15.000Z | 2021-03-10T06:25:15.000Z | config/config.exs | dbishai/bible-study-spreadsheet | 9009cf8c343c215b2d8d6c1d8d24fd1ed2219434 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :bible_study_spreadsheet,
ecto_repos: [... | 35.322581 | 86 | 0.789041 |
b29fda61170de685ae3660d0774c738eb021410d | 711 | ex | Elixir | lib/conduit_web/gettext.ex | efrenfuentes/realworld-app-elixir-phoenix | e8e5b19695c0d9c8edfc892d585506ca688d6ee8 | [
"MIT"
] | null | null | null | lib/conduit_web/gettext.ex | efrenfuentes/realworld-app-elixir-phoenix | e8e5b19695c0d9c8edfc892d585506ca688d6ee8 | [
"MIT"
] | null | null | null | lib/conduit_web/gettext.ex | efrenfuentes/realworld-app-elixir-phoenix | e8e5b19695c0d9c8edfc892d585506ca688d6ee8 | [
"MIT"
] | null | null | null | defmodule ConduitWeb.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 ConduitWeb.Gettext
# Simple translation
gettext("Here is t... | 28.44 | 72 | 0.677918 |
b29ffa912ebe76a0db714989ea75a034e845319b | 111 | ex | Elixir | lib/ex_zkb/pathfinder/repo.ex | no-vacancies/ex-zkb | eb9b13318b0c68f5b0562786027e218507fe3abc | [
"MIT"
] | null | null | null | lib/ex_zkb/pathfinder/repo.ex | no-vacancies/ex-zkb | eb9b13318b0c68f5b0562786027e218507fe3abc | [
"MIT"
] | null | null | null | lib/ex_zkb/pathfinder/repo.ex | no-vacancies/ex-zkb | eb9b13318b0c68f5b0562786027e218507fe3abc | [
"MIT"
] | null | null | null | defmodule ExZkb.Pathfinder.Repo do
use Ecto.Repo,
otp_app: :ex_zkb,
adapter: Ecto.Adapters.MyXQL
end
| 18.5 | 34 | 0.72973 |
b2a003f5f836eb4cef2048959e18d9067c873700 | 71 | exs | Elixir | config/test.exs | subvisual/http_stream | 081fb87a7eadc4680560291fb3e39670d47fd115 | [
"0BSD"
] | 11 | 2019-09-13T13:44:52.000Z | 2022-01-27T01:14:06.000Z | config/test.exs | subvisual/http_stream | 081fb87a7eadc4680560291fb3e39670d47fd115 | [
"0BSD"
] | 2 | 2020-09-29T22:02:21.000Z | 2020-09-30T23:05:48.000Z | config/test.exs | subvisual/http_stream | 081fb87a7eadc4680560291fb3e39670d47fd115 | [
"0BSD"
] | 1 | 2020-09-22T19:00:36.000Z | 2020-09-22T19:00:36.000Z | use Mix.Config
config :http_stream, HTTPStream.HTTPServer, port: 3000
| 17.75 | 54 | 0.802817 |
b2a00ad3c403b9c37ffa92031297b62b0077a64f | 285 | exs | Elixir | priv/repo/migrations/20180311233128_create_leads.exs | paulfioravanti/phoenix-and-elm-landing-page | 8453cf0209bca8da46248d78a17092982e5a7e62 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180311233128_create_leads.exs | paulfioravanti/phoenix-and-elm-landing-page | 8453cf0209bca8da46248d78a17092982e5a7e62 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180311233128_create_leads.exs | paulfioravanti/phoenix-and-elm-landing-page | 8453cf0209bca8da46248d78a17092982e5a7e62 | [
"MIT"
] | null | null | null | defmodule LandingPage.Repo.Migrations.CreateLeads do
use Ecto.Migration
def change do
create table(:leads) do
add(:full_name, :string, null: false)
add(:email, :string, null: false)
timestamps()
end
create(unique_index(:leads, [:email]))
end
end
| 19 | 52 | 0.663158 |
b2a04a4da818c1320442efefb140fd584d04dcf8 | 1,398 | ex | Elixir | lib/jeopardy_web/live/wager_component.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy_web/live/wager_component.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy_web/live/wager_component.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule JeopardyWeb.WagerComponent do
use Phoenix.LiveComponent
use Phoenix.HTML
alias JeopardyWeb.WagerView
alias Jeopardy.Games.{Wager, Player}
require Logger
def render(assigns) do
WagerView.render("wager.html", assigns)
end
def update(assigns, socket) do
socket = assign(socket, assigns)
... | 25.418182 | 82 | 0.625894 |
b2a04dbab577dacd0ce14a09b4a5d1ee2a1f8a2a | 262 | exs | Elixir | elixir/elixir-sips/samples/erlcloud_playground/test/erlcloud_playground_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/erlcloud_playground/test/erlcloud_playground_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/erlcloud_playground/test/erlcloud_playground_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule ErlcloudPlaygroundTest do
use ExUnit.Case
test "should list all EC2 images" do
assert Enum.count(:erlcloud_ec2.describe_images) == 0
end
test "should list all S3 buckets" do
assert Enum.count(:erlcloud_s3.list_buckets) == 0
end
end
| 21.833333 | 57 | 0.736641 |
b2a05f193c7600b38d7736b7b03cfc63a2e973e3 | 1,164 | ex | Elixir | web/channels/user_socket.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | 1 | 2016-09-13T10:40:53.000Z | 2016-09-13T10:40:53.000Z | web/channels/user_socket.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | defmodule Spaces.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", Spaces.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authenti... | 30.631579 | 83 | 0.701031 |
b2a07df6cd40f4fe678215f6e796b0b663d28ca2 | 19,275 | ex | Elixir | lib/hacd.ex | red-kingdom-labs/hacd | bafe62de8d0ba370ad222180d7d9ace8c7936ba0 | [
"MIT"
] | null | null | null | lib/hacd.ex | red-kingdom-labs/hacd | bafe62de8d0ba370ad222180d7d9ace8c7936ba0 | [
"MIT"
] | null | null | null | lib/hacd.ex | red-kingdom-labs/hacd | bafe62de8d0ba370ad222180d7d9ace8c7936ba0 | [
"MIT"
] | null | null | null | defmodule Hacd do
@moduledoc """
Provides inspection and rendering capabilities for Hacash Diamonds.
"""
use Phoenix.Component
use Phoenix.HTML
@color_list [
["041B2D", "004E9A"],
["004E9A", "428CD4"],
["8A5082", "6F5F90"],
["6F5F90", "758EB7"],
["8A5082", "FF7B89"],
["FF7B89", "A5... | 29.028614 | 161 | 0.410013 |
b2a0b1b2e4bbe8365c71f2f622683b6ea33dd99e | 280 | exs | Elixir | test/yahoo_wrapper_web/views/layout_view_test.exs | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | test/yahoo_wrapper_web/views/layout_view_test.exs | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | test/yahoo_wrapper_web/views/layout_view_test.exs | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | defmodule YahooWrapperWeb.LayoutViewTest do
use YahooWrapperWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 31.111111 | 65 | 0.775 |
b2a0d5fe6d95787e68e562d91edaa3433c316c47 | 1,053 | ex | Elixir | lib/supabase_surface/components/badge.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/badge.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/badge.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Badge do
use Surface.Component
@doc "The color for the badge"
prop color, :string,
values: ["gray", "red", "yellow", "green", "blue", "indigo", "purple", "pink"]
@doc "The size of the badge"
prop size, :string, values: ["large", "small"], default: "small"
@doc ""
... | 23.931818 | 93 | 0.594492 |
b2a105fc39afcd3cb2c514f5db2a8fe2f17e537d | 6,214 | ex | Elixir | lib/commanded/event_store/event_store.ex | ThisisGurwinder/commanded | ad7784ce3125022e188ea795771710c4e5e38e71 | [
"MIT"
] | null | null | null | lib/commanded/event_store/event_store.ex | ThisisGurwinder/commanded | ad7784ce3125022e188ea795771710c4e5e38e71 | [
"MIT"
] | null | null | null | lib/commanded/event_store/event_store.ex | ThisisGurwinder/commanded | ad7784ce3125022e188ea795771710c4e5e38e71 | [
"MIT"
] | null | null | null | defmodule Commanded.EventStore do
@moduledoc """
Defines the behaviour to be implemented by an event store adapter to be used by Commanded.
"""
alias Commanded.EventStore.{
EventData,
RecordedEvent,
SnapshotData,
}
@type stream_uuid :: String.t
@type start_from :: :origin | :current | intege... | 34.910112 | 183 | 0.729965 |
b2a117b6b8465c91829c3b7e426094efb5f1c47c | 2,563 | ex | Elixir | backend/lib/edgehog/geolocation.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/lib/edgehog/geolocation.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/lib/edgehog/geolocation.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-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 b... | 28.477778 | 76 | 0.688256 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.