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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0830eb11ce654801cef47b0ee2f864af272e32a3 | 1,908 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_pools_add_instance_request.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/target_pools_add_instance_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_pools_add_instance_request.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.16 | 247 | 0.751048 |
08310c0b1b3997dc7241ae612b876e60f8aec5cf | 57 | ex | Elixir | lib/habex_web/views/page_view.ex | richardpanda/habex | ba7869f11d8c736db3cbedfb326c754a2d79bec8 | [
"MIT"
] | null | null | null | lib/habex_web/views/page_view.ex | richardpanda/habex | ba7869f11d8c736db3cbedfb326c754a2d79bec8 | [
"MIT"
] | null | null | null | lib/habex_web/views/page_view.ex | richardpanda/habex | ba7869f11d8c736db3cbedfb326c754a2d79bec8 | [
"MIT"
] | null | null | null | defmodule HabexWeb.PageView do
use HabexWeb, :view
end
| 14.25 | 30 | 0.789474 |
083110e4a8137045c70876f23aa7983f68dd4cda | 19,480 | ex | Elixir | lib/phoenix_live_view/upload_config.ex | jonatanklosko/phoenix_live_view | 95d5c7ccd0ac66e04b15c7b6128d44b60767e682 | [
"MIT"
] | 1 | 2021-04-22T16:40:32.000Z | 2021-04-22T16:40:32.000Z | lib/phoenix_live_view/upload_config.ex | jonatanklosko/phoenix_live_view | 95d5c7ccd0ac66e04b15c7b6128d44b60767e682 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/upload_config.ex | jonatanklosko/phoenix_live_view | 95d5c7ccd0ac66e04b15c7b6128d44b60767e682 | [
"MIT"
] | 1 | 2021-01-14T12:58:22.000Z | 2021-01-14T12:58:22.000Z | defmodule Phoenix.LiveView.UploadEntry do
@moduledoc """
The struct representing an upload entry.
"""
alias Phoenix.LiveView.UploadEntry
defstruct progress: 0,
preflighted?: false,
upload_config: nil,
upload_ref: nil,
ref: nil,
uuid: nil,
... | 29.249249 | 102 | 0.600359 |
08312ab6b19eeee1ee80607d3eb22956b2023bb1 | 1,950 | ex | Elixir | lib/estated/property/tax.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property/tax.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property/tax.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | defmodule Estated.Property.Tax do
@moduledoc "Tax record as provided by the assessor."
@moduledoc since: "0.2.0"
defstruct year: nil,
amount: nil,
exemptions: [],
rate_code_area: nil
@typedoc "Tax record as provided by the assessor."
@typedoc since: "0.2.0"
@type t :: %... | 22.159091 | 110 | 0.623077 |
0831317a613a4b5b5dc41a26f78c040ea9262993 | 4,554 | ex | Elixir | lib/make/session.ex | ne-sachirou/docker-elixir | 5b2c04f66229632c72e34668ccb98fe93a3916b3 | [
"Zlib"
] | 1 | 2018-11-02T11:03:57.000Z | 2018-11-02T11:03:57.000Z | lib/make/session.ex | ne-sachirou/docker-elixir | 5b2c04f66229632c72e34668ccb98fe93a3916b3 | [
"Zlib"
] | 36 | 2019-06-14T03:37:31.000Z | 2021-12-20T15:39:47.000Z | lib/make/session.ex | ne-sachirou/docker-elixir | 5b2c04f66229632c72e34668ccb98fe93a3916b3 | [
"Zlib"
] | null | null | null | defmodule Make.Session do
@moduledoc false
alias Make.Target
require Logger
use GenServer
@type name :: atom
@type status :: :none | :creating | :created | :failed
@type target_ref :: {atom, binary}
@type target :: term
@type t :: %__MODULE__{name: name, targets: %{target_ref => target}}
de... | 30.563758 | 95 | 0.599693 |
0831482be3c6aaabb3fc4a6842d2b3e6114ec3a9 | 1,222 | ex | Elixir | lib/code_corps/stripe_service/adapters/stripe_file_upload.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps/stripe_service/adapters/stripe_file_upload.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps/stripe_service/adapters/stripe_file_upload.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.StripeService.Adapters.StripeFileUploadAdapter do
@moduledoc """
Used for conversion between stripe api payload maps and maps
usable for creation of `StripeFileUpload` records locally
"""
import CodeCorps.MapUtils, only: [rename: 3, keys_to_string: 1]
@stripe_attributes [:created, :id,... | 27.155556 | 79 | 0.696399 |
0831506d64a8d47d83cb8c60571a00b7c3eb2670 | 255 | ex | Elixir | lib/glasswing.ex | msaminsky/GlassWing | 1280ad7fe18ed7fd48cb5ff9b8aef35a0be55f1a | [
"MIT"
] | null | null | null | lib/glasswing.ex | msaminsky/GlassWing | 1280ad7fe18ed7fd48cb5ff9b8aef35a0be55f1a | [
"MIT"
] | null | null | null | lib/glasswing.ex | msaminsky/GlassWing | 1280ad7fe18ed7fd48cb5ff9b8aef35a0be55f1a | [
"MIT"
] | null | null | null | defmodule Glasswing do
@moduledoc """
Glasswing 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.5 | 66 | 0.756863 |
08316463a84988b6ae4be74a59206bd08d34a1eb | 68 | exs | Elixir | config/releases.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | config/releases.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | config/releases.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | import Config
# import_config "/etc/mix-deploy-example/config.exs"
| 17 | 52 | 0.779412 |
08317b1de2383cd53888fd49cbc6d2a47805dd32 | 357 | ex | Elixir | farmbot_ext/lib/farmbot_ext.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_ext/lib/farmbot_ext.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_ext/lib/farmbot_ext.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotExt do
@moduledoc false
use Application
def start(_type, _args) do
Supervisor.start_link(children(), opts())
end
def opts, do: [strategy: :one_for_one, name: __MODULE__]
def children do
config = Application.get_env(:farmbot_ext, __MODULE__) || []
Keyword.get(config, :childre... | 21 | 64 | 0.708683 |
08317d3f1dbbc6f34a4237fe3be73d7721219a38 | 12,195 | exs | Elixir | test/hexpm/web/controllers/api/auth_controller_test.exs | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/api/auth_controller_test.exs | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/api/auth_controller_test.exs | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.AuthControllerTest do
use Hexpm.ConnCase, async: true
setup do
owned_org = insert(:organization, public: false)
unowned_org = insert(:organization, public: false)
user = insert(:user)
insert(:organization_user, organization: owned_org, user: user)
user_full_key =
... | 31.269231 | 98 | 0.61312 |
083181cbc189fd10d7d438be8fb5e8b87e81137b | 148 | ex | Elixir | lib/policy/exception.ex | system76/policy | 2d029725b549bb8b7e935abaf77b46cf6253854d | [
"MIT"
] | 4 | 2016-09-03T10:25:32.000Z | 2017-11-15T19:32:16.000Z | lib/policy/exception.ex | system76/policy | 2d029725b549bb8b7e935abaf77b46cf6253854d | [
"MIT"
] | null | null | null | lib/policy/exception.ex | system76/policy | 2d029725b549bb8b7e935abaf77b46cf6253854d | [
"MIT"
] | 2 | 2017-10-16T02:39:00.000Z | 2020-12-08T14:48:51.000Z | defmodule Policy.Exception do
defexception [:message]
end
defimpl Plug.Exception, for: Policy.Exception do
def status(_exception), do: 403
end
| 18.5 | 48 | 0.777027 |
0831876eea2ccd6dcca26cce6ac4eaf62ab84978 | 17,972 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/exit_processor.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 37.598326 | 119 | 0.709771 |
0831a6e95133513126af8d56f0576d8023be8549 | 2,048 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.236364 | 207 | 0.716797 |
0831f1d56f5ac960d403d302188353a240049b9b | 540 | exs | Elixir | apps/cron/test/cron/task/version_scan_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/cron/test/cron/task/version_scan_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/cron/test/cron/task/version_scan_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Cron.Task.VersionScanTest do
use Core.SchemaCase, async: false
alias Cron.Task.VersionScan
alias Core.Schema.Version
use Mimic
setup :set_mimic_global
describe "#run/0" do
test "it will scan old images" do
versions = insert_list(3, :version)
me = self()
expect(Core.Condui... | 21.6 | 100 | 0.631481 |
08322a7fb214bbc7faa974ee3a47b27983c3ef10 | 1,959 | ex | Elixir | lib/phoenix_toggl/reports/reporter.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 207 | 2016-02-24T06:43:04.000Z | 2021-03-05T02:26:47.000Z | lib/phoenix_toggl/reports/reporter.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 6 | 2016-02-26T00:13:06.000Z | 2017-06-15T07:49:02.000Z | lib/phoenix_toggl/reports/reporter.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 24 | 2016-02-24T18:02:21.000Z | 2019-11-11T12:47:06.000Z | defmodule PhoenixToggl.Reports.Reporter do
@moduledoc """
Retrieves necessary data from the database
"""
alias PhoenixToggl.{Repo, TimeEntry}
alias PhoenixToggl.Reports.{Data, Day}
alias Timex.{Date, Time, DateFormat}
@format_string "%Y-%m-%d"
def generate(), do: {:error, :invalid_params}
def genera... | 28.391304 | 109 | 0.663093 |
08323107a4c9515585ae2b0d5752476ba8a8f152 | 1,780 | exs | Elixir | playground/elixir-live-doom-fire/rel/config.exs | allmonty/doom-fire-algorithm | dac483b85973020c5f86962d3d9344018711043b | [
"MIT"
] | null | null | null | playground/elixir-live-doom-fire/rel/config.exs | allmonty/doom-fire-algorithm | dac483b85973020c5f86962d3d9344018711043b | [
"MIT"
] | null | null | null | playground/elixir-live-doom-fire/rel/config.exs | allmonty/doom-fire-algorithm | dac483b85973020c5f86962d3d9344018711043b | [
"MIT"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# T... | 32.962963 | 81 | 0.736517 |
083234bb845b2edf01ce7d67601ef8eeb5a60df3 | 26,195 | exs | Elixir | test/bitwise_ip/mask_test.exs | ajvondrak/bitwise_ip | e8be9f172618361373bcdd4a9083cb0ec9380ffd | [
"MIT"
] | 4 | 2021-07-05T20:43:02.000Z | 2022-01-07T04:06:29.000Z | test/bitwise_ip/mask_test.exs | ajvondrak/bitwise_ip | e8be9f172618361373bcdd4a9083cb0ec9380ffd | [
"MIT"
] | 1 | 2021-08-22T01:34:16.000Z | 2021-08-25T03:34:28.000Z | test/bitwise_ip/mask_test.exs | ajvondrak/bitwise_ip | e8be9f172618361373bcdd4a9083cb0ec9380ffd | [
"MIT"
] | null | null | null | defmodule BitwiseIp.MaskTest do
use ExUnit.Case, async: true
doctest BitwiseIp.Mask
alias BitwiseIp.Mask
describe "IPv4" do
test "encode/1" do
assert 0b00000000000000000000000000000000 == Mask.encode(:v4, 0)
assert 0b10000000000000000000000000000000 == Mask.encode(:v4, 1)
assert 0b1100000... | 115.90708 | 175 | 0.859897 |
083236ebf8c89a93bd96549ffac36244d9dd8b0f | 720 | exs | Elixir | config/config.exs | tiberiuc/admint | 6d1bd5462f49053c7c3999c35cc301c7b8f08a70 | [
"MIT"
] | null | null | null | config/config.exs | tiberiuc/admint | 6d1bd5462f49053c7c3999c35cc301c7b8f08a70 | [
"MIT"
] | null | null | null | config/config.exs | tiberiuc/admint | 6d1bd5462f49053c7c3999c35cc301c7b8f08a70 | [
"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 :esbuild,
version: "0.12.18",
default... | 31.304348 | 83 | 0.723611 |
08327e58f851870abc2d1aec74e35b726d4c7d08 | 1,163 | exs | Elixir | clients/redis/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/redis/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/redis/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Redis.V1beta1.Mixfile do
use Mix.Project
@version "0.3.0"
def project do
[app: :google_api_redis,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
d... | 23.734694 | 105 | 0.592433 |
0832b6c3e36a0a0c5f19d574114fb4217788cbbc | 10,017 | exs | Elixir | test/ecto/datetime_test.exs | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | test/ecto/datetime_test.exs | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | test/ecto/datetime_test.exs | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.DateTest do
use ExUnit.Case, async: true
@date %Ecto.Date{year: 2015, month: 12, day: 31}
test "cast itself" do
assert Ecto.Date.cast(@date) == {:ok, @date}
end
test "cast strings" do
assert Ecto.Date.cast("2015-12-31") == {:ok, @date}
assert Ecto.Date.cast("2015-00-23") == :erro... | 36.9631 | 102 | 0.577418 |
0832bc83283d9c023101ae154bde9cb3275bc0e1 | 288 | exs | Elixir | priv/repo/migrations/20170819223520_create_accounts.exs | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 67 | 2016-10-24T04:11:40.000Z | 2021-11-25T16:46:51.000Z | priv/repo/migrations/20170819223520_create_accounts.exs | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 6 | 2017-08-17T21:43:50.000Z | 2021-11-03T13:13:49.000Z | priv/repo/migrations/20170819223520_create_accounts.exs | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 7 | 2017-08-13T01:43:37.000Z | 2022-01-11T04:38:27.000Z | defmodule Leather.Repo.Migrations.CreateAccounts do
use Ecto.Migration
def change do
create table(:accounts) do
add(:name, :string)
add(:user_id, references(:users, on_delete: :nothing))
timestamps()
end
create(index(:accounts, [:user_id]))
end
end
| 19.2 | 60 | 0.670139 |
0832c8c6ec6bcec669a09559377b86b4c5f33648 | 2,110 | exs | Elixir | test/dynamo_test.exs | azukiapp/dynamo | cad008fe7314e7ba7ef4990908956fbca60e980c | [
"Apache-2.0"
] | 1 | 2015-06-13T03:35:26.000Z | 2015-06-13T03:35:26.000Z | test/dynamo_test.exs | azukiapp/dynamo | cad008fe7314e7ba7ef4990908956fbca60e980c | [
"Apache-2.0"
] | null | null | null | test/dynamo_test.exs | azukiapp/dynamo | cad008fe7314e7ba7ef4990908956fbca60e980c | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __FILE__
defmodule DynamoTest do
use ExUnit.Case, async: true
defmodule App do
use Dynamo
config :dynamo,
root: Path.expand("../fixtures", __FILE__),
endpoint: DynamoTest,
static_root: Path.expand("../fixtures/public", __FILE__),
static_rout... | 27.763158 | 87 | 0.679621 |
0832d579e56cb5929cc36621f5a6d2ce4482ef0c | 92,952 | exs | Elixir | test/broadway_test.exs | kianmeng/broadway | 8bc8b53d4659bad16b22ccca1bf482aa7c839051 | [
"Apache-2.0"
] | null | null | null | test/broadway_test.exs | kianmeng/broadway | 8bc8b53d4659bad16b22ccca1bf482aa7c839051 | [
"Apache-2.0"
] | null | null | null | test/broadway_test.exs | kianmeng/broadway | 8bc8b53d4659bad16b22ccca1bf482aa7c839051 | [
"Apache-2.0"
] | null | null | null | defmodule BroadwayTest do
use ExUnit.Case
import Integer
import ExUnit.CaptureLog
alias Broadway.{Message, BatchInfo, CallerAcknowledger}
defmodule ManualProducer do
@behaviour Broadway.Producer
use GenStage
@impl true
def init(%{test_pid: test_pid}) do
name = Process.info(self())[:r... | 33.837641 | 144 | 0.597319 |
0832dfe80d62a2630cd06817b6be794502ecc131 | 2,956 | ex | Elixir | apps/fz_http/lib/fz_http_web.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | 1 | 2022-03-30T03:57:41.000Z | 2022-03-30T03:57:41.000Z | apps/fz_http/lib/fz_http_web.ex | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb 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 FzHttpWeb, :controller
use FzHttpWeb, :view
The definitions below will be executed for every view,
controller, etc... | 24.429752 | 83 | 0.692828 |
0832e818c79c125d05188cd805521fef7e30706d | 1,168 | ex | Elixir | lib/tmdb/people/people.ex | DonHansDampf/elixir-tmdb | 7a79350dfb0eeb5a37384be4ca9fac0570a3020e | [
"MIT"
] | null | null | null | lib/tmdb/people/people.ex | DonHansDampf/elixir-tmdb | 7a79350dfb0eeb5a37384be4ca9fac0570a3020e | [
"MIT"
] | null | null | null | lib/tmdb/people/people.ex | DonHansDampf/elixir-tmdb | 7a79350dfb0eeb5a37384be4ca9fac0570a3020e | [
"MIT"
] | null | null | null | defmodule Tmdb.People do
use Tmdb.Base
def find(id, params \\ %{}) do
get!("person/#{id}?#{URI.encode_query(params)}").body
end
def popular(params \\ %{}) do
get!("person/popular?#{URI.encode_query(params)}").body
end
def latest(params \\ %{}) do
get!("person/latest?#{URI.encode_query(params)... | 26.545455 | 74 | 0.634418 |
08337659763e7d4c90cf52297adfcca60027502a | 15,935 | exs | Elixir | test/mix_doctor_test.exs | kianmeng/doctor | 2b1eb4bc0698b96169f2ad0049010d5428b48c2e | [
"MIT"
] | null | null | null | test/mix_doctor_test.exs | kianmeng/doctor | 2b1eb4bc0698b96169f2ad0049010d5428b48c2e | [
"MIT"
] | null | null | null | test/mix_doctor_test.exs | kianmeng/doctor | 2b1eb4bc0698b96169f2ad0049010d5428b48c2e | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.DoctorTest do
use ExUnit.Case
setup_all do
original_shell = Mix.shell()
Mix.shell(Mix.Shell.Process)
on_exit(fn ->
Mix.shell(original_shell)
end)
end
describe "mix doctor" do
test "should output the full report when no params are provided" do
Mix.Tasks.Doct... | 57.320144 | 190 | 0.297584 |
0833787b39f7738c70deceb29c1dded9c4836c8c | 5,273 | exs | Elixir | test/payload_test.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/payload_test.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/payload_test.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | defmodule AbsintheErrorPayload.PayloadTest do
@moduledoc """
Test conversion of changeset errors to ValidationMessage structs
"""
use ExUnit.Case
import Ecto.Changeset
import AbsintheErrorPayload.Payload
alias Absinthe.Resolution
alias AbsintheErrorPayload.Payload
alias AbsintheErrorPayload.Validat... | 28.349462 | 119 | 0.644225 |
08337a173d185f0e0a732cb2f41cd087b52b75d5 | 1,220 | ex | Elixir | server/lib/idai_field_server_web/controllers/user_confirmation_controller.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/controllers/user_confirmation_controller.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/controllers/user_confirmation_controller.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | defmodule IdaiFieldServerWeb.UserConfirmationController do
use IdaiFieldServerWeb, :controller
alias IdaiFieldServer.Accounts
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email}}) do
if user = Accounts.get_user_by_email(email) do
Accounts.de... | 27.727273 | 79 | 0.633607 |
0833a87ade993a754776dd9564b729e126310de2 | 16,470 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_notification_endpoints.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_notification_endpoints.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/api/region_notification_endpoints.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.311377 | 434 | 0.651609 |
0833b7552276a446aa5e15db8eeed4fde65681e5 | 425 | ex | Elixir | apps/teaching_management_web/lib/teaching_management_web/resolvers/student_resolver.ex | danielscosta/teaching_management | c703374a27174763d5309b9144ba09488eeb95c4 | [
"MIT"
] | 2 | 2020-07-28T14:10:41.000Z | 2020-10-20T20:32:27.000Z | apps/teaching_management_web/lib/teaching_management_web/resolvers/student_resolver.ex | danielscosta/teaching_management | c703374a27174763d5309b9144ba09488eeb95c4 | [
"MIT"
] | null | null | null | apps/teaching_management_web/lib/teaching_management_web/resolvers/student_resolver.ex | danielscosta/teaching_management | c703374a27174763d5309b9144ba09488eeb95c4 | [
"MIT"
] | null | null | null | defmodule TeachingManagementWeb.Resolvers.StudentResolver do
alias TeachingManagement.Accounts
alias TeachingManagement.Records
def list_students_by_group(_, args, _) do
{:ok, Accounts.list_students_by_group(args[:group_id])}
end
def create_student(_, args, _) do
groups = if is_nil(args[:group_id]),... | 30.357143 | 92 | 0.752941 |
0833d97e1f01e76fb6302ed6f50d32f7cf1cdcb6 | 2,970 | ex | Elixir | clients/secret_manager/lib/google_api/secret_manager/v1/model/audit_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1/model/audit_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/secret_manager/lib/google_api/secret_manager/v1/model/audit_config.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... | 59.4 | 1,106 | 0.748485 |
0833daf33214349af2c9e004430aa84d690947ce | 1,685 | ex | Elixir | lib/metrics/socket_instrumenter.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | lib/metrics/socket_instrumenter.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | lib/metrics/socket_instrumenter.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | defmodule Metrics.SocketInstrumenter do
@moduledoc """
Instrumentation for sockets
"""
use Prometheus.Metric
@doc false
def setup() do
Gauge.declare(
name: :gossip_socket_count,
help: "Number of sockets connected to gossip"
)
Counter.declare(
name: :gossip_socket_heartbeat_c... | 22.77027 | 64 | 0.708012 |
0833fc1dbd11cc67bb173052338fc7ce8adefce2 | 289 | ex | Elixir | lib/elm_phoenix_web_socket_example.ex | phollyer/elm-phoenix-websocket-example | 147da038b5ca4f9304924124c546284f12ecfaa8 | [
"BSD-3-Clause"
] | null | null | null | lib/elm_phoenix_web_socket_example.ex | phollyer/elm-phoenix-websocket-example | 147da038b5ca4f9304924124c546284f12ecfaa8 | [
"BSD-3-Clause"
] | 2 | 2020-12-29T15:13:39.000Z | 2020-12-30T01:01:02.000Z | lib/elm_phoenix_web_socket_example.ex | phollyer/elm-phoenix-websocket-example | 147da038b5ca4f9304924124c546284f12ecfaa8 | [
"BSD-3-Clause"
] | null | null | null | defmodule ElmPhoenixWebSocketExample do
@moduledoc """
ElmPhoenixWebSocketExample 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.9 | 71 | 0.785467 |
08341682f69f800ce79cdabfb5d59d647bf2ce27 | 862 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/operation_list_result.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.Network/lib/microsoft/azure/management/network/model/operation_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/operation_list_result.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.Network.Model.OperationListResult do
@moduledoc """
Result of the request to list Network operations. It contains a... | 28.733333 | 131 | 0.727378 |
0834411231d2ee6c40897452027bc01833475ad7 | 2,019 | exs | Elixir | test/plug/cowboy/translator_test.exs | darrenclark/plug_cowboy | e3bc44285ed0db0e017d2a030c2c05e9baa849fe | [
"Apache-2.0"
] | null | null | null | test/plug/cowboy/translator_test.exs | darrenclark/plug_cowboy | e3bc44285ed0db0e017d2a030c2c05e9baa849fe | [
"Apache-2.0"
] | null | null | null | test/plug/cowboy/translator_test.exs | darrenclark/plug_cowboy | e3bc44285ed0db0e017d2a030c2c05e9baa849fe | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Cowboy.TranslatorTest do
use ExUnit.Case
import ExUnit.CaptureLog
def init(opts) do
opts
end
def call(%{path_info: ["warn"]}, _opts) do
raise Plug.Parsers.UnsupportedMediaTypeError, media_type: "foo/bar"
end
def call(%{path_info: ["error"]}, _opts) do
raise "oops"
end
d... | 29.26087 | 112 | 0.603764 |
083447cc9dcecf2b874f3291a0b9485491ae14bf | 7,214 | ex | Elixir | lib/buckaroo.ex | IanLuites/buckaro | 41e60343f4cf11c3402bcf4ce843ece879f79959 | [
"MIT"
] | null | null | null | lib/buckaroo.ex | IanLuites/buckaro | 41e60343f4cf11c3402bcf4ce843ece879f79959 | [
"MIT"
] | null | null | null | lib/buckaroo.ex | IanLuites/buckaro | 41e60343f4cf11c3402bcf4ce843ece879f79959 | [
"MIT"
] | null | null | null | defmodule Buckaroo do
@moduledoc ~S"""
Simple `:cowboy` (v2) webserver with support for websockets.
"""
alias Plug.Cowboy
require Logger
@doc ~S"""
Setup a simple webserver handling HTTP requests including websockets.
"""
@spec child_spec(Keyword.t()) :: Supervisor.child_spec()
def child_spec(opts ... | 32.062222 | 98 | 0.601331 |
0834724741c38ed2d19e53cd1ca358c6643e5a82 | 4,712 | exs | Elixir | test/test_helper.exs | olafz/mariaex | caa1ec6b251ddde395a610020629603d73aab8ea | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | olafz/mariaex | caa1ec6b251ddde395a610020629603d73aab8ea | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | olafz/mariaex | caa1ec6b251ddde395a610020629603d73aab8ea | [
"Apache-2.0"
] | null | null | null | mdb_socket = System.get_env("MDBSOCKET")
socket? =
match?({:unix, _}, :os.type()) and List.to_integer(:erlang.system_info(:otp_release)) >= 19 and
is_binary(mdb_socket) and File.exists?(mdb_socket)
ExUnit.configure(
exclude: [
ssl_tests: true,
json: System.get_env("JSON_SUPPORT") != "true",
socket... | 27.555556 | 119 | 0.620543 |
0834a1cacabdb4b23c36b561eaa20728785ed533 | 1,549 | ex | Elixir | server/lib/connect_web/views/error_helpers.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | null | null | null | server/lib/connect_web/views/error_helpers.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | 3 | 2021-04-27T14:11:46.000Z | 2021-04-27T16:00:42.000Z | server/lib/connect_web/views/error_helpers.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | null | null | null | defmodule ConnectWeb.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(... | 32.270833 | 76 | 0.665591 |
0834c1ad763b0dda55dc5fee9df3fe15bc305703 | 8,230 | ex | Elixir | lib/flickrex/flickr.ex | christopheradams/flickrex | 67e3a507e128c55969aeda3802f6dacd94bb03c5 | [
"MIT"
] | 13 | 2017-04-02T10:55:10.000Z | 2022-03-02T02:55:40.000Z | lib/flickrex/flickr.ex | christopheradams/flickrex | 67e3a507e128c55969aeda3802f6dacd94bb03c5 | [
"MIT"
] | null | null | null | lib/flickrex/flickr.ex | christopheradams/flickrex | 67e3a507e128c55969aeda3802f6dacd94bb03c5 | [
"MIT"
] | 1 | 2021-01-31T17:47:27.000Z | 2021-01-31T17:47:27.000Z | defmodule Flickrex.Flickr do
@moduledoc """
Flickr API Modules.
These modules and functions map to the methods from the Flickr [API
Documentation](https://www.flickr.com/services/api/).
Arguments for the API functions should be strings, or integers (if the API
accepts a number). Any additional `opts` will... | 29.498208 | 94 | 0.543621 |
0834d9e4b5aac78ff45b89efd3ba75d99671da53 | 1,865 | ex | Elixir | lib/nebulex/helpers.ex | RudolfMan/nebulex | 9cf2a1b66d538ba66e8d0fd195485a32772fdf04 | [
"MIT"
] | 845 | 2017-02-14T14:16:11.000Z | 2022-03-30T04:13:08.000Z | lib/nebulex/helpers.ex | RudolfMan/nebulex | 9cf2a1b66d538ba66e8d0fd195485a32772fdf04 | [
"MIT"
] | 146 | 2017-04-29T16:11:14.000Z | 2022-03-29T08:49:05.000Z | lib/nebulex/helpers.ex | RudolfMan/nebulex | 9cf2a1b66d538ba66e8d0fd195485a32772fdf04 | [
"MIT"
] | 50 | 2017-08-17T13:44:06.000Z | 2022-03-30T11:29:59.000Z | defmodule Nebulex.Helpers do
# Module for general purpose helpers.
@moduledoc false
## API
@spec get_option(Keyword.t(), atom, String.t(), (any -> boolean), term) :: term
def get_option(opts, key, expected, valid?, default \\ nil)
when is_list(opts) and is_atom(key) do
value = Keyword.get(opts, ke... | 30.57377 | 90 | 0.652547 |
0834e42679d806ca96608272d4c8b5949fe67b29 | 5,321 | exs | Elixir | examples/mnist_gan.exs | zeionara/axon | 8b82074b358043c0b685c7831458ec97f8edc378 | [
"Apache-2.0"
] | null | null | null | examples/mnist_gan.exs | zeionara/axon | 8b82074b358043c0b685c7831458ec97f8edc378 | [
"Apache-2.0"
] | null | null | null | examples/mnist_gan.exs | zeionara/axon | 8b82074b358043c0b685c7831458ec97f8edc378 | [
"Apache-2.0"
] | null | null | null | Mix.install([
{:axon, github: "elixir-nx/axon"},
{:exla, github: "elixir-nx/nx", sparse: "exla"},
{:nx, github: "elixir-nx/nx", sparse: "nx", override: true},
{:scidata, "~> 0.1.0"}
])
EXLA.Client.set_preferred_platform(:default, [:tpu, :cuda, :rocm, :host])
defmodule MNISTGAN do
require Axon
alias Axon.L... | 29.561111 | 97 | 0.650442 |
0834e4ea05aa1e97e7d4c398ccd7a950d8abc3e6 | 2,082 | ex | Elixir | lib/aws_auth/utils.ex | lulu-2021/aws_auth | 3645ace9fdb085c6627c8b7bfc2f6db2e8be058a | [
"Apache-2.0"
] | null | null | null | lib/aws_auth/utils.ex | lulu-2021/aws_auth | 3645ace9fdb085c6627c8b7bfc2f6db2e8be058a | [
"Apache-2.0"
] | null | null | null | lib/aws_auth/utils.ex | lulu-2021/aws_auth | 3645ace9fdb085c6627c8b7bfc2f6db2e8be058a | [
"Apache-2.0"
] | null | null | null | defmodule AWSAuth.Utils do
@moduledoc false
def build_canonical_request(http_method, path, params, headers, hashed_payload) do
query_params = URI.encode_query(params) |> String.replace("+", "%20")
header_params = Enum.map(headers, fn({key, value}) -> "#{String.downcase(key)}:#{String.trim(value)}" end)
... | 27.038961 | 118 | 0.653218 |
0834f5758b2070f13186f9833700d78c22d60512 | 1,146 | ex | Elixir | lib/registries/entry_registry.ex | weareyipyip/CachedContentful | b967d46a65af529a453262c076d964f7ae6a57aa | [
"MIT"
] | 2 | 2018-06-08T02:35:18.000Z | 2018-06-08T02:35:33.000Z | lib/registries/entry_registry.ex | weareyipyip/CachedContentful | b967d46a65af529a453262c076d964f7ae6a57aa | [
"MIT"
] | null | null | null | lib/registries/entry_registry.ex | weareyipyip/CachedContentful | b967d46a65af529a453262c076d964f7ae6a57aa | [
"MIT"
] | null | null | null | defmodule CachedContentful.EntryRegistry do
use GenServer
require Logger
alias CachedContentful.RequestHandler
defp get_env_auto_update(), do: Application.get_env(:cached_contentful, :auto_update, false)
defp get_env_update_interval(), do: Application.get_env(:cached_contentful, :update_interval, 1 * 60 * 60 * ... | 24.382979 | 115 | 0.720768 |
083518780cef24deec2262ec5e122e17321276c6 | 1,790 | exs | Elixir | clients/vault/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/vault/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vault/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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... | 26.716418 | 96 | 0.648603 |
083521451f51409430f77fa5aecb6580cfd63c18 | 2,723 | ex | Elixir | lib/bunch/list.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 12 | 2018-09-10T09:59:22.000Z | 2021-08-29T00:37:02.000Z | lib/bunch/list.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 8 | 2018-09-03T08:29:47.000Z | 2022-03-27T16:28:08.000Z | lib/bunch/list.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 2 | 2019-07-23T04:21:26.000Z | 2021-10-15T23:45:57.000Z | defmodule Bunch.List do
@moduledoc """
A bunch of helper functions for list manipulation.
"""
@doc """
Generates a list using generator function and provided inital accumulator.
Successive list elements are generated by calling `f` with the previous accumulator.
The enumeration finishes when it returns ... | 32.807229 | 93 | 0.536173 |
083542084d13021f84e9b56135401dfaddd52df3 | 2,003 | exs | Elixir | apps/flair/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/flair/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/flair/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | defmodule Flair.MixProject do
use Mix.Project
def project do
[
app: :flair,
version: "0.3.1",
elixir: "~> 1.8",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
start_permanent: Mix.env() == ... | 27.819444 | 88 | 0.517224 |
08354381c389cb657beb3c56e6a8cf84013c494f | 13,213 | ex | Elixir | apps/api_web/lib/api_web/controllers/vehicle_controller.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/controllers/vehicle_controller.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/controllers/vehicle_controller.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | defmodule ApiWeb.VehicleController do
@moduledoc """
Controller for Vehicles. Can be filtered by:
* trip
* route (optionally direction)
"""
use ApiWeb.Web, :api_controller
alias State.Vehicle
@filters ~w(trip route direction_id id label route_type)s
@pagination_opts ~w(offset limit order_by)a
@inc... | 40.907121 | 370 | 0.548551 |
08356fb6b521a1a8587e371628cfc52b3c086fde | 77 | ex | Elixir | lib/hook/producers/email.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | lib/hook/producers/email.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/hook/producers/email.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.Hook.Producers.Email do
use Accent.Hook.EventProducer
end
| 19.25 | 40 | 0.831169 |
083577b891cd22f40be60a07a6064e13529c86a3 | 1,737 | ex | Elixir | debian/manpage.1.ex | dreamhost/dpkg-ndn-perl-mod-perl | b22e73bc5bbff804cece98fd2b8138b14883efd3 | [
"Apache-2.0"
] | null | null | null | debian/manpage.1.ex | dreamhost/dpkg-ndn-perl-mod-perl | b22e73bc5bbff804cece98fd2b8138b14883efd3 | [
"Apache-2.0"
] | null | null | null | debian/manpage.1.ex | dreamhost/dpkg-ndn-perl-mod-perl | b22e73bc5bbff804cece98fd2b8138b14883efd3 | [
"Apache-2.0"
] | null | null | null | .\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2015 Chris Weyl <Chris Weyl <cweyl@alumni.drew.edu>>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH NDN-PERL... | 30.473684 | 71 | 0.668394 |
0835a4829054f9847d45c2e1993e3ebb8c3f33c7 | 208 | ex | Elixir | apps/kerostasia/lib/kerostasia.ex | achlysproject/nosos | 59070c8c32115ba6b0670385e596ecd6d7b2f69a | [
"Apache-2.0"
] | null | null | null | apps/kerostasia/lib/kerostasia.ex | achlysproject/nosos | 59070c8c32115ba6b0670385e596ecd6d7b2f69a | [
"Apache-2.0"
] | null | null | null | apps/kerostasia/lib/kerostasia.ex | achlysproject/nosos | 59070c8c32115ba6b0670385e596ecd6d7b2f69a | [
"Apache-2.0"
] | null | null | null | defmodule Kerostasia do
@moduledoc """
Documentation for Kerostasia.
"""
@doc """
Hello world.
## Examples
iex> Kerostasia.hello()
:world
"""
def hello do
:world
end
end
| 10.947368 | 31 | 0.581731 |
0835bc5fe87fc340baf26ed61adba61088bd15fd | 1,034 | exs | Elixir | config/config.exs | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | null | null | null | config/config.exs | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | 2 | 2021-03-10T11:57:02.000Z | 2021-05-11T07:36:34.000Z | config/config.exs | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"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
# Configures the endpoint
config :mmo_game, MmoG... | 33.354839 | 86 | 0.767892 |
0835ce56e98d1d89df9755686ae995a0edee2f2c | 1,545 | ex | Elixir | lib/asteroid/object_store/authentication_event.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 36 | 2019-07-23T20:01:05.000Z | 2021-08-05T00:52:34.000Z | lib/asteroid/object_store/authentication_event.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 19 | 2019-08-23T19:04:50.000Z | 2021-05-07T22:12:25.000Z | lib/asteroid/object_store/authentication_event.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 3 | 2019-09-06T10:47:20.000Z | 2020-09-09T03:43:31.000Z | defmodule Asteroid.ObjectStore.AuthenticationEvent do
@moduledoc """
Behaviour for authentication event store
"""
@type opts :: Keyword.t()
@doc """
Installs the authentication event store
"""
@callback install(opts()) :: :ok | {:error, any()}
@doc """
Starts the authentication event store (non ... | 25.327869 | 91 | 0.642071 |
0835d992e4aa11195d81b428340a166ba28abe5f | 1,056 | ex | Elixir | lib/star_web/channels/user_socket.ex | ModinfinityLLC/star | 6d56cea1c08f88b73984f7ad1197e4337139995f | [
"MIT"
] | 2 | 2019-05-27T22:56:48.000Z | 2019-06-17T14:42:53.000Z | lib/star_web/channels/user_socket.ex | ModinfinityLLC/star | 6d56cea1c08f88b73984f7ad1197e4337139995f | [
"MIT"
] | 3 | 2020-07-17T03:13:04.000Z | 2021-05-08T22:56:26.000Z | lib/star_web/channels/user_socket.ex | ModinfinityLLC/star | 6d56cea1c08f88b73984f7ad1197e4337139995f | [
"MIT"
] | null | null | null | defmodule StarWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", StarWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie... | 31.058824 | 83 | 0.694129 |
0836079b44b707711c57456673572f616797f8f9 | 622 | ex | Elixir | lib/quick_fs_public_api/model/api_usage.ex | nrrso/ex_quickfs | 912ea7a5ebb34ceebd9460608758716952c60752 | [
"MIT"
] | null | null | null | lib/quick_fs_public_api/model/api_usage.ex | nrrso/ex_quickfs | 912ea7a5ebb34ceebd9460608758716952c60752 | [
"MIT"
] | null | null | null | lib/quick_fs_public_api/model/api_usage.ex | nrrso/ex_quickfs | 912ea7a5ebb34ceebd9460608758716952c60752 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule QuickFSPublicAPI.Model.ApiUsage do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"usage"
]
@type t :: %__MODULE__{
... | 22.214286 | 91 | 0.717042 |
0836197646d82bb448095ebd188250ae2440371a | 873 | ex | Elixir | backend/lib/honeyland.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 31.178571 | 74 | 0.756014 |
083661a48d9a77f54dc64b577fcf02304899d077 | 12,380 | exs | Elixir | test/lib/adapters/sendin_blue_adapter_v3_test.exs | maysam/bamboo_sendinblue | 882511499ce8088b46713dbae06eee1bd84c860a | [
"MIT"
] | null | null | null | test/lib/adapters/sendin_blue_adapter_v3_test.exs | maysam/bamboo_sendinblue | 882511499ce8088b46713dbae06eee1bd84c860a | [
"MIT"
] | null | null | null | test/lib/adapters/sendin_blue_adapter_v3_test.exs | maysam/bamboo_sendinblue | 882511499ce8088b46713dbae06eee1bd84c860a | [
"MIT"
] | null | null | null | defmodule Bamboo.SendinBlueAdapterV3Test do
use ExUnit.Case
alias Bamboo.Email
alias Bamboo.Attachment
alias Bamboo.SendinBlueAdapterV3
alias Bamboo.SendinBlueHelper
@config %{adapter: SendinBlueAdapterV3, api_key: "123_abc"}
@config_with_bad_key %{adapter: SendinBlueAdapterV3, api_key: nil}
defmodule... | 32.408377 | 906 | 0.608643 |
08369557afef315cd92d3aee744c314ffd209215 | 2,656 | ex | Elixir | lib/ace/http/worker.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | lib/ace/http/worker.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | lib/ace/http/worker.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | defmodule Ace.HTTP.Worker do
@moduledoc false
use GenServer
def child_spec({module, config}) do
# DEBT is module previously checked to implement Raxx.Application or Raxx.Server
%{
id: __MODULE__,
start: {__MODULE__, :start_link, [{module, config}]},
type: :worker,
restart: :tempor... | 24.592593 | 100 | 0.600151 |
0836c4d61389883dc62680bb5ed5a2f42299864d | 3,774 | ex | Elixir | clients/domains_rdap/lib/google_api/domains_rdap/v1/api/entity.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/domains_rdap/lib/google_api/domains_rdap/v1/api/entity.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/domains_rdap/lib/google_api/domains_rdap/v1/api/entity.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... | 42.886364 | 196 | 0.651828 |
0836fa47b7227b3e3c0d1b96c203e1e2bfcdf9b9 | 2,396 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/insert_dimension_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/insert_dimension_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/insert_dimension_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... | 47.92 | 739 | 0.753756 |
083703db60f18466cdcf9497ff4656dbb9d7301a | 68 | exs | Elixir | 2020/liveview/dazzle/test/test_helper.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/liveview/dazzle/test/test_helper.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/liveview/dazzle/test/test_helper.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Dazzle.Repo, :manual)
| 22.666667 | 52 | 0.779412 |
0837ca8a3183cf90b654d0ec66bb87b84a1634f7 | 160 | ex | Elixir | lib/cep/source.ex | douglascamata/cep | 042aa6d2bcb64b459ac6ac281add2f2f753a6877 | [
"MIT"
] | 11 | 2016-03-23T20:34:19.000Z | 2019-07-16T13:21:48.000Z | lib/cep/source.ex | douglascamata/cep | 042aa6d2bcb64b459ac6ac281add2f2f753a6877 | [
"MIT"
] | 5 | 2016-03-22T05:35:46.000Z | 2019-04-02T16:44:00.000Z | lib/cep/source.ex | douglascamata/cep | 042aa6d2bcb64b459ac6ac281add2f2f753a6877 | [
"MIT"
] | 3 | 2019-03-26T18:54:59.000Z | 2020-07-06T22:41:51.000Z | defmodule Cep.Source do
@callback get_address(cep :: String.t()) ::
{:ok, %Cep.Address{}} | {:not_found, String.t()} | {:error, String.t()}
end
| 32 | 85 | 0.575 |
0837ed46c3ab02a658c495be05625f3e547788c8 | 3,736 | exs | Elixir | test/vutuv_web/controllers/user_controller_test.exs | hendri-tobing/vutuv | 50a3095e236fe96739a79954157b74b4c4025921 | [
"MIT"
] | null | null | null | test/vutuv_web/controllers/user_controller_test.exs | hendri-tobing/vutuv | 50a3095e236fe96739a79954157b74b4c4025921 | [
"MIT"
] | null | null | null | test/vutuv_web/controllers/user_controller_test.exs | hendri-tobing/vutuv | 50a3095e236fe96739a79954157b74b4c4025921 | [
"MIT"
] | null | null | null | defmodule VutuvWeb.UserControllerTest do
use VutuvWeb.ConnCase
import VutuvWeb.AuthCase
alias Vutuv.Accounts
@create_attrs %{email: "bill@example.com", password: "hard2guess"}
@update_attrs %{email: "william@example.com"}
@invalid_attrs %{email: nil}
setup %{conn: conn} = config do
conn = conn |> b... | 34.915888 | 89 | 0.650428 |
0837fa3817c821a446a9ef77bdea1c774ce3c09e | 1,298 | ex | Elixir | lib/tyx/traversal/preset.ex | am-kantox/tyx | da0847cabdf304fbf2f5c56797d75c9e8795994c | [
"MIT"
] | 2 | 2021-06-04T20:35:33.000Z | 2021-11-28T22:26:08.000Z | lib/tyx/traversal/preset.ex | am-kantox/tyx | da0847cabdf304fbf2f5c56797d75c9e8795994c | [
"MIT"
] | null | null | null | lib/tyx/traversal/preset.ex | am-kantox/tyx | da0847cabdf304fbf2f5c56797d75c9e8795994c | [
"MIT"
] | null | null | null | defmodule Tyx.Traversal.Preset do
@moduledoc false
use Boundary, deps: [Tyx.Traversal]
alias Code.Typespec
alias Tyx.Traversal.Typemap
@behaviour Tyx.Traversal
@impl Tyx.Traversal
def lookup(Tyx.Traversal.Binding, :wrap, [key, binding]) do
{:error, stub: [key, binding]}
end
def lookup(Map, :ge... | 32.45 | 100 | 0.51849 |
083808da26bb9d52b1c77fdfa04a69f13260a7ec | 374 | exs | Elixir | config/dev.exs | bancolombia/perf-analizer | 16a90dad045413ee168fd2a45f975f3c03099fb3 | [
"MIT"
] | 1 | 2020-03-03T18:17:37.000Z | 2020-03-03T18:17:37.000Z | config/dev.exs | bancolombia/perf-analizer | 16a90dad045413ee168fd2a45f975f3c03099fb3 | [
"MIT"
] | 3 | 2020-02-20T18:53:59.000Z | 2020-02-20T19:00:06.000Z | config/dev.exs | bancolombia/perf-analizer | 16a90dad045413ee168fd2a45f975f3c03099fb3 | [
"MIT"
] | null | null | null | import Config
config :perf_analyzer,
url: "http://127.0.0.1:8080/wait/1000",
request: %{
method: "GET",
headers: [{"Content-Type", "application/json"}],
body: ""
},
execution: %{
steps: 5,
increment: 1,
duration: 7000,
constant_load: true,
dataset: :none,
separator: ","
},... | 17 | 52 | 0.585561 |
083821e4f4803762e4ca619a06af727f1555b1ee | 1,820 | ex | Elixir | lib/dgraph_ex/query.ex | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 21 | 2017-08-20T06:19:37.000Z | 2021-02-04T23:22:10.000Z | lib/dgraph_ex/query.ex | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 43 | 2017-08-06T21:03:28.000Z | 2018-09-08T13:00:35.000Z | lib/dgraph_ex/query.ex | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 1 | 2017-10-12T02:20:13.000Z | 2017-10-12T02:20:13.000Z | defmodule DgraphEx.Query do
alias DgraphEx.{
# Field,
Query,
}
alias Query.{
As,
Var,
Block,
Groupby,
}
@bracketed [
As,
Var,
Groupby,
]
defstruct [
sequence: [],
]
defmacro __using__(_) do
quote do
alias DgraphEx.{Query, Kwargs}
def query d... | 20 | 92 | 0.587912 |
0838471c95d8b60626e71418a7a40583b565dc83 | 1,870 | ex | Elixir | lib/dashwallet_web/endpoint.ex | benlime/dashwallet | 90754cf9cda72b289d5b802cd9fd7eb094f08acb | [
"MIT"
] | 2 | 2017-11-15T20:47:47.000Z | 2017-12-02T11:29:10.000Z | lib/dashwallet_web/endpoint.ex | benlime/dashwallet | 90754cf9cda72b289d5b802cd9fd7eb094f08acb | [
"MIT"
] | null | null | null | lib/dashwallet_web/endpoint.ex | benlime/dashwallet | 90754cf9cda72b289d5b802cd9fd7eb094f08acb | [
"MIT"
] | null | null | null | defmodule DashwalletWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :dashwallet
socket "/socket", DashwalletWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug... | 30.16129 | 95 | 0.704278 |
0838765f7ce99326773961f10304a63388cd60dd | 380 | ex | Elixir | web/views/error_view.ex | whenther/chopsticks | ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1 | [
"MIT"
] | 2 | 2016-11-08T18:17:41.000Z | 2017-02-23T06:51:56.000Z | web/views/error_view.ex | will-wow/chopsticks | ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1 | [
"MIT"
] | null | null | null | web/views/error_view.ex | will-wow/chopsticks | ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1 | [
"MIT"
] | null | null | null | defmodule Chopsticks.ErrorView do
use Chopsticks.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_tem... | 21.111111 | 47 | 0.702632 |
0838a238168a809a9516255b1eb238578d5590cf | 3,852 | ex | Elixir | lib/teslamate/locations/geocoder.ex | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | 1 | 2020-08-10T03:16:35.000Z | 2020-08-10T03:16:35.000Z | lib/teslamate/locations/geocoder.ex | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | null | null | null | lib/teslamate/locations/geocoder.ex | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Locations.Geocoder do
alias Finch.Response
alias TeslaMate.HTTP
alias TeslaMate.Locations.Address
def reverse_lookup(lat, lon, lang \\ "en") do
with {:ok, address_raw} <-
fetch("https://nominatim.openstreetmap.org/reverse", lang,
format: :jsonv2,
add... | 26.937063 | 95 | 0.579439 |
0838bf7422bcd7e9cbe270c0f224bec060b689ff | 1,888 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_list_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_list_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_list_locations_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... | 37.76 | 180 | 0.751059 |
0838e6a4cd4e0bf67931a47e68b240f395e14652 | 377 | ex | Elixir | lib/jaya_currency_converter_web/controllers/fallback_controller.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter_web/controllers/fallback_controller.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter_web/controllers/fallback_controller.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | defmodule JayaCurrencyConverterWeb.FallbackController do
@moduledoc false
use JayaCurrencyConverterWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_status(:not_acceptable)
|> json(%{error: changeset})
end
def call(conn, {:error, msg}) do
conn
|> put... | 22.176471 | 60 | 0.676393 |
083906a1a38db7eaf0ce2a865a2072d24f7f055c | 1,257 | ex | Elixir | lib/epi_contacts_web/plugs/content_security_policy_header.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | lib/epi_contacts_web/plugs/content_security_policy_header.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | lib/epi_contacts_web/plugs/content_security_policy_header.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContactsWeb.Plugs.ContentSecurityPolicyHeader do
@moduledoc """
Sets the content security policy so that it it sufficiently restrictive while also allowing websocket connections.
Using this plug will allow websocket connections to the configured endpoint.
"""
import Plug.Conn
alias Euclid.Ex... | 24.647059 | 116 | 0.674622 |
0839167a9611e61b9f283d12efadec1b10d37ca0 | 643 | ex | Elixir | Tracer/camera.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | Tracer/camera.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | Tracer/camera.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | defmodule Camera do
defstruct pos: nil, corner: nil, right: nil, down: nil, size: nil
def normal(size) do
{width, height} = size
d = width * 1.2
h = width / 2
v = height / 2
pos = {0,0,0}
corner = {-h, v, d}
right = {1, 0, 0}
down = {0, -1, 0}
%Camera{pos: pos, corner: corner, ... | 22.964286 | 75 | 0.583204 |
08395f17c35aad8dea4a680c419054534783f2cc | 448 | ex | Elixir | lib/free_fall/game/point.ex | Goose-Vic/free_fall | 84d95e33cbd0d6e06dd9170576726929e97b25ac | [
"MIT"
] | null | null | null | lib/free_fall/game/point.ex | Goose-Vic/free_fall | 84d95e33cbd0d6e06dd9170576726929e97b25ac | [
"MIT"
] | null | null | null | lib/free_fall/game/point.ex | Goose-Vic/free_fall | 84d95e33cbd0d6e06dd9170576726929e97b25ac | [
"MIT"
] | null | null | null | defmodule FreeFall.Game.Point do
def new(x, y), do: {x, y}
def left({x, y}), do: {x - 1, y}
def right({x, y}), do: {x + 1, y}
def down({x, y}), do: {x, y + 1}
defp flip({x, y}), do: {x, 5 - y}
defp flop({x, y}), do: {5 - x, y}
def rotate90(point), do: point |> transpose |> flop
def rotate180(poin... | 20.363636 | 54 | 0.535714 |
08396bfe028416bf9506c3bc5794b7cda9d6f630 | 1,299 | ex | Elixir | lib/hexpm/web/controllers/api/repository_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/api/repository_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/api/repository_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.RepositoryController do
use Hexpm.Web, :controller
plug :fetch_repository when action in [:show]
plug :maybe_authorize, [domain: "api", resource: "read"] when action in [:index]
plug :maybe_authorize,
[domain: "api", resource: "read", fun: &organization_access/2]
when act... | 30.209302 | 82 | 0.69746 |
08396d8a52811a1b95bd0a6f5d7d34bdd33ade6d | 1,571 | ex | Elixir | apps/astarte_appengine_api/lib/astarte_appengine_api_web/socket_guardian.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api_web/socket_guardian.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api_web/socket_guardian.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 27.561404 | 93 | 0.698281 |
08397057272a58c43bb55bff57e5c03bcc69dcfa | 8,664 | exs | Elixir | test/tag_cloud/compiler/color/parse_color_test.exs | RobertDober/tag_cloud | e3f1fca47b32691c54870d6f8b66a7f66bbd53d6 | [
"Apache-2.0"
] | null | null | null | test/tag_cloud/compiler/color/parse_color_test.exs | RobertDober/tag_cloud | e3f1fca47b32691c54870d6f8b66a7f66bbd53d6 | [
"Apache-2.0"
] | 3 | 2021-10-03T16:48:49.000Z | 2022-02-06T10:26:36.000Z | test/tag_cloud/compiler/color/parse_color_test.exs | RobertDober/tag_cloud | e3f1fca47b32691c54870d6f8b66a7f66bbd53d6 | [
"Apache-2.0"
] | null | null | null | defmodule Test.TagCloud.Compiler.Color.ParseColorTest do
use ExUnit.Case
import TagCloud.Compiler.Color, only: [parse_color: 1]
describe "gray scales" do
test "0" do
result = parse_color("0")
expected = {0, "000000"}
assert result == expected
end
test "1" do
result = parse_co... | 21.445545 | 97 | 0.53301 |
083978c1df8a730ce4a981ddac9db3c8101fc690 | 2,114 | exs | Elixir | config/releases.exs | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | 1 | 2021-01-18T09:57:23.000Z | 2021-01-18T09:57:23.000Z | config/releases.exs | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | config/releases.exs | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | null | null | null | import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
environment variable DATABASE_URL is missing.
For example: ecto://USER:PASS@HOST/DATABASE
"""
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
environment variable SECRET_KEY_BASE is missing.
You c... | 26.759494 | 64 | 0.668401 |
083990fe891ffbc6d07904f147e78d82124ffbac | 1,409 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/destroy_crypto_key_version_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/destroy_crypto_key_version_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/destroy_crypto_key_version_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 32.767442 | 90 | 0.775727 |
08399697232eac2a36aec20280462b29bb723583 | 2,497 | ex | Elixir | lib/imdb.ex | yatender-oktalk/moviematch | c8de8752a96cfb63b30fc72e28d61501b977f982 | [
"MIT"
] | null | null | null | lib/imdb.ex | yatender-oktalk/moviematch | c8de8752a96cfb63b30fc72e28d61501b977f982 | [
"MIT"
] | null | null | null | lib/imdb.ex | yatender-oktalk/moviematch | c8de8752a96cfb63b30fc72e28d61501b977f982 | [
"MIT"
] | null | null | null | defmodule MovieMatch.Imdb do
@imdb_url Application.get_env(:moviematch, :imdb_url)
def build_url(imdb_user_id) do
String.replace(@imdb_url, "imdb_user_id", imdb_user_id)
end
defp make_request(url) do
# try using tesla library also, HTTPoison and HTTPotion has some limitations
#what if it's not :o... | 29.72619 | 161 | 0.626752 |
0839a3aa88496ab43cbb05c4dbc2d94271b3e02f | 1,438 | exs | Elixir | test/ecto_fields_test.exs | tjamesking/ecto_fields | 17e93f28c0b6ab20f1b2f0ba2fff98eaa5b37559 | [
"MIT"
] | 24 | 2016-06-27T22:24:35.000Z | 2022-02-19T01:16:21.000Z | test/ecto_fields_test.exs | tjamesking/ecto_fields | 17e93f28c0b6ab20f1b2f0ba2fff98eaa5b37559 | [
"MIT"
] | 9 | 2017-07-29T18:41:40.000Z | 2021-11-22T05:37:45.000Z | test/ecto_fields_test.exs | tjamesking/ecto_fields | 17e93f28c0b6ab20f1b2f0ba2fff98eaa5b37559 | [
"MIT"
] | 9 | 2017-07-29T18:14:14.000Z | 2021-03-15T23:16:36.000Z | defmodule EctoFieldsTest do
use ExUnit.Case
use PropCheck
doctest(EctoFields)
doctest(EctoFields.Email)
doctest(EctoFields.IP)
doctest(EctoFields.IPv4)
doctest(EctoFields.IPv6)
doctest(EctoFields.PositiveInteger)
doctest(EctoFields.Slug)
doctest(EctoFields.URL)
doctest(EctoFields.Atom)
doctest... | 25.678571 | 109 | 0.652295 |
0839ae783126d8729dcad1d950e2bdb1c3d601f4 | 29,218 | ex | Elixir | lib/dataloader/ecto.ex | absinthe-graphql/dataloader | 84a5297e28b537b4409ce0987cddafe9d15df55e | [
"MIT"
] | 415 | 2017-10-18T22:27:17.000Z | 2022-03-31T06:28:37.000Z | lib/dataloader/ecto.ex | absinthe-graphql/dataloader | 84a5297e28b537b4409ce0987cddafe9d15df55e | [
"MIT"
] | 108 | 2017-10-24T07:17:06.000Z | 2022-03-20T00:19:57.000Z | lib/dataloader/ecto.ex | absinthe-graphql/dataloader | 84a5297e28b537b4409ce0987cddafe9d15df55e | [
"MIT"
] | 83 | 2017-11-15T06:15:38.000Z | 2022-03-20T00:26:44.000Z | if Code.ensure_loaded?(Ecto) do
defmodule Dataloader.Ecto do
@moduledoc """
Ecto source for Dataloader
This defines a schema and an implementation of the `Dataloader.Source` protocol
for handling Ecto related batching.
A simple Ecto source only needs to know about your application's Repo.
#... | 30.918519 | 98 | 0.586385 |
0839c9e91313c11da8398eb8d52e0a9c565ed46c | 123 | ex | Elixir | apps/firestorm/lib/firestorm_web/views/admin/user_view.ex | firestormforum/firestorm_elixir | 80caba13daa21ef6087aa85f6cf0dd1f016e9aef | [
"MIT"
] | 14 | 2020-01-03T04:13:48.000Z | 2021-12-01T16:16:24.000Z | apps/firestorm/lib/firestorm_web/views/admin/user_view.ex | firestormforum/firestorm_elixir | 80caba13daa21ef6087aa85f6cf0dd1f016e9aef | [
"MIT"
] | 1 | 2019-10-07T23:31:52.000Z | 2019-10-07T23:31:52.000Z | apps/firestorm/lib/firestorm_web/views/admin/user_view.ex | firestormforum/firestorm_elixir | 80caba13daa21ef6087aa85f6cf0dd1f016e9aef | [
"MIT"
] | 4 | 2020-01-20T16:43:18.000Z | 2022-03-03T23:05:37.000Z | defmodule FirestormWeb.Admin.UserView do
use FirestormWeb, :view
import Torch.TableView
import Torch.FilterView
end
| 17.571429 | 40 | 0.804878 |
0839f049ebda0b14f5ab6796d36c404e27c8df6f | 97 | exs | Elixir | test/blueprint/application_test.exs | ScrimpyCat/Blueprint | 3a2e02318a2f09d80b4a18d54644e4567bf86156 | [
"BSD-2-Clause"
] | 1 | 2017-12-04T12:43:04.000Z | 2017-12-04T12:43:04.000Z | test/blueprint/application_test.exs | ScrimpyCat/Blueprint | 3a2e02318a2f09d80b4a18d54644e4567bf86156 | [
"BSD-2-Clause"
] | null | null | null | test/blueprint/application_test.exs | ScrimpyCat/Blueprint | 3a2e02318a2f09d80b4a18d54644e4567bf86156 | [
"BSD-2-Clause"
] | null | null | null | defmodule Blueprint.ApplicationTest do
use ExUnit.Case
doctest Blueprint.Application
end
| 19.4 | 38 | 0.804124 |
083a246f3528cb64648858c4701dfddbc2d97c82 | 1,792 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quasi_id_field.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quasi_id_field.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quasi_id_field.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... | 35.137255 | 119 | 0.741629 |
083a6d627d0d566451fd6c0e3c646453b7ef6e52 | 5,456 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/application_policy.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... | 64.952381 | 1,110 | 0.73717 |
083a7d70e58e22de8e4b642eb03355839c4679fd | 3,239 | exs | Elixir | 11/part1.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | 3 | 2016-01-18T01:14:45.000Z | 2017-05-11T09:14:49.000Z | 11/part1.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | 11/part1.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | defmodule Password do
@invalid_chars [?i, ?o, ?l]
@chars_start ?a
@chars_end ?z
@chars_base_length @chars_end - @chars_start + 1
def inc_char(char, amt) do
base = char - @chars_start + amt
val = rem(base, @chars_base_length) + @chars_start
if val in @invalid_chars do
inc_char(char, amt + 1... | 27.922414 | 104 | 0.642174 |
083abdee0b556307ffd3ab977bb227ac236d7da9 | 1,924 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/volume.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/volume.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/volume.ex | 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... | 38.48 | 229 | 0.735967 |
083abe664c3bc9a781ef105d13272ffefa786aa0 | 10,012 | ex | Elixir | lib/mix/tasks/git_ops.release.ex | garfenter/git_ops | f6e64cf9b798024e0be7cec06fc006a8372cffb3 | [
"MIT"
] | null | null | null | lib/mix/tasks/git_ops.release.ex | garfenter/git_ops | f6e64cf9b798024e0be7cec06fc006a8372cffb3 | [
"MIT"
] | null | null | null | lib/mix/tasks/git_ops.release.ex | garfenter/git_ops | f6e64cf9b798024e0be7cec06fc006a8372cffb3 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.GitOps.Release do
use Mix.Task
@shortdoc "Parses the commit log and writes any updates to the changelog"
@moduledoc """
Updates project changelog, and any other configured release capabilities.
mix git_ops.release
Logs an error for any commits that were not parseable.
In the c... | 31.190031 | 100 | 0.668498 |
083ac66bc1928c0653a02bb036d20a644152293c | 256 | exs | Elixir | template/$PROJECT_NAME$/apps/web/test/web/views/layout_view_test.exs | mitjok/gen_template_litslink_umbrella | eadef26e83a1bb540a360f0bf5db0f519a100f8b | [
"Apache-2.0"
] | 19 | 2020-10-08T14:05:30.000Z | 2022-03-18T08:43:11.000Z | template/$PROJECT_NAME$/apps/web/test/web/views/layout_view_test.exs | mitjok/gen_template_litslink_umbrella | eadef26e83a1bb540a360f0bf5db0f519a100f8b | [
"Apache-2.0"
] | null | null | null | template/$PROJECT_NAME$/apps/web/test/web/views/layout_view_test.exs | mitjok/gen_template_litslink_umbrella | eadef26e83a1bb540a360f0bf5db0f519a100f8b | [
"Apache-2.0"
] | 3 | 2021-02-19T08:31:58.000Z | 2021-12-09T05:28:55.000Z | defmodule Web.LayoutViewTest do
use Web.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
| 28.444444 | 65 | 0.753906 |
083ad328f7a3b8d66eed58f0fff0d54ac7013b51 | 216 | ex | Elixir | lib/chess_app/chess/board/macros.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | 3 | 2017-06-02T20:47:07.000Z | 2018-05-25T11:17:12.000Z | lib/chess_app/chess/board/macros.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | lib/chess_app/chess/board/macros.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | defmodule ChessApp.Chess.Board.Macros do
defmacro is_file(file) do
quote do: unquote(file) in ~w(a b c d e f g h)
end
defmacro is_rank(rank) do
quote do: unquote(rank) in ~w(1 2 3 4 5 6 7 8)
end
end
| 21.6 | 50 | 0.666667 |
083ae605ee3471a1b88396ffabef6df9f5560831 | 2,184 | ex | Elixir | lib/river/stream_handler.ex | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 86 | 2016-08-19T21:59:28.000Z | 2022-01-31T20:14:18.000Z | lib/river/stream_handler.ex | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 7 | 2016-09-27T14:44:16.000Z | 2017-08-08T14:57:45.000Z | lib/river/stream_handler.ex | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 4 | 2016-09-26T10:57:24.000Z | 2018-04-03T14:30:19.000Z | defmodule River.StreamHandler do
alias River.{Response, Frame, Stream, Conn}
def child_spec(_) do
%{
id: __MODULE__,
start: {__MODULE__, :start_link, []}
}
end
def get_pid(%{host: host} = conn, id, parent \\ nil) do
Supervisor.start_child(River.StreamSupervisor, [
[name: :"stream... | 26 | 92 | 0.595696 |
083b07d56af22c31e605f8d0e9298f4c8ac38684 | 6,915 | ex | Elixir | lib/lang_tags/registry.ex | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | lib/lang_tags/registry.ex | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | lib/lang_tags/registry.ex | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | defmodule LangTags.Registry do
@moduledoc false
# For more information about the Registry format, please see:
# https://tools.ietf.org/html/rfc5646#section-3.1
# Source:
# http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
@external_resource path = Application.app_dir(:lang_... | 39.971098 | 149 | 0.632249 |
083b1331e705e20623565a033a497a7603f13f54 | 7,372 | ex | Elixir | clients/books/lib/google_api/books/v1/api/promooffer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/promooffer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/promooffer.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... | 36.676617 | 170 | 0.657623 |
083b35bffe6e3ee75cb5bd5bcceb6ba8ffa8e7b4 | 186 | exs | Elixir | test/test_helper.exs | andrewMacmurray/tic-tac-toe | 8fb698e6db30486be3c96b6e9a5f281004222ef4 | [
"MIT"
] | 2 | 2017-12-02T16:50:50.000Z | 2017-12-05T13:14:58.000Z | test/test_helper.exs | andrewMacmurray/tic-tac-toe | 8fb698e6db30486be3c96b6e9a5f281004222ef4 | [
"MIT"
] | 10 | 2017-12-05T22:18:24.000Z | 2017-12-18T15:33:48.000Z | test/test_helper.exs | andrewMacmurray/tic-tac-toe | 8fb698e6db30486be3c96b6e9a5f281004222ef4 | [
"MIT"
] | null | null | null | helper_files = [
"fake_io.exs",
"board_helper.exs",
"model_helper.exs",
"view_helper.exs"
]
for f <- helper_files do
Code.require_file(f, "test/support/")
end
ExUnit.start()
| 14.307692 | 39 | 0.677419 |
083b3d1b8552088c48e0e3edd87fac2074d29990 | 904 | ex | Elixir | lib/nostrum/struct/event/voice_ready.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/event/voice_ready.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/event/voice_ready.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.Event.VoiceReady do
@moduledoc since: "0.5.0"
@moduledoc """
Struct representing a Nostrum-generated Voice Ready event
Nostrum will generate this event when the bot joins a voice channel
and is ready to play audio.
Listening to this event may be used for bots that begin playing au... | 23.179487 | 71 | 0.678097 |
083b3e216719bcd819129e5f6e2de46695955819 | 2,032 | exs | Elixir | apps/omg_watcher/test/omg_watcher/api/alarm_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/test/omg_watcher/api/alarm_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/omg_watcher/api/alarm_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.75 | 93 | 0.688976 |
083b8d4da88bf64d1948c274c87c76202f8f99f5 | 437 | ex | Elixir | test/factories/competition/session_factory.ex | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 2 | 2021-06-29T02:22:28.000Z | 2022-02-15T06:32:15.000Z | test/factories/competition/session_factory.ex | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 14 | 2021-05-06T04:27:19.000Z | 2021-08-24T11:15:33.000Z | test/factories/competition/session_factory.ex | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 1 | 2021-08-20T07:50:19.000Z | 2021-08-20T07:50:19.000Z | defmodule Codewar.Competition.SessionFactory do
defmacro __using__(_opts) do
quote do
alias Codewar.Competition.Schemas.Session
def session_factory do
%Session{
name: Faker.Lorem.sentence(3)
}
end
def active_session_factory do
struct!(
session_... | 20.809524 | 67 | 0.615561 |
083bae95a9954c11f07baefc3030e3a82a0a93c9 | 230 | ex | Elixir | lib/ido_keido/continent.ex | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 6 | 2019-11-15T20:34:47.000Z | 2021-04-05T03:15:23.000Z | lib/ido_keido/continent.ex | FindHotel/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 1 | 2022-03-20T09:34:42.000Z | 2022-03-20T09:34:42.000Z | lib/ido_keido/continent.ex | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 3 | 2021-06-09T05:58:09.000Z | 2022-03-20T07:05:13.000Z | defmodule IdoKeido.Continent do
@moduledoc """
Continent data.
"""
use TypedStruct
@typedoc """
Continent type.
"""
typedstruct(enforce: true) do
field :code, String.t()
field :name, String.t()
end
end
| 14.375 | 31 | 0.634783 |
083bbf454342b41d07b9060eb182a0bcef30ebda | 3,528 | exs | Elixir | test/absinthe/execution/arguments/list_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/execution/arguments/list_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/execution/arguments/list_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Execution.Arguments.ListTest do
use Absinthe.Case, async: true
@schema Absinthe.Fixtures.ArgumentsSchema
@graphql """
query ($contacts: [ContactInput]) {
contacts(contacts: $contacts)
}
"""
test "when missing for a non-null argument, should raise an error" do
msg = ~s(In argum... | 24.84507 | 98 | 0.562358 |
083bc12c62c1183b9c9d4c9d1b2c4bea021ba23c | 7,125 | ex | Elixir | lib/binance/futures/rest/http_client.ex | quantd2/binance_ex | 74e2a5b2d6d76174f0f8f4d4497ae14224daa93b | [
"MIT"
] | null | null | null | lib/binance/futures/rest/http_client.ex | quantd2/binance_ex | 74e2a5b2d6d76174f0f8f4d4497ae14224daa93b | [
"MIT"
] | null | null | null | lib/binance/futures/rest/http_client.ex | quantd2/binance_ex | 74e2a5b2d6d76174f0f8f4d4497ae14224daa93b | [
"MIT"
] | null | null | null | defmodule Binance.Futures.Rest.HTTPClient do
@endpoint "https://fapi.binance.com"
@used_order_limit "X-MBX-ORDER-COUNT-1M"
@used_weight_limit "X-MBX-USED-WEIGHT-1M"
alias Binance.{Config, Util}
def get_binance(url, headers \\ []) when is_list(headers) do
HTTPoison.get("#{@endpoint}#{url}", headers)
... | 28.963415 | 93 | 0.526316 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.