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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62916f60e2cc08037bbe48ba4658159efbb9535c | 108 | exs | Elixir | templates/mix/config/test.exs | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 34 | 2016-08-13T17:05:32.000Z | 2019-10-21T07:11:21.000Z | templates/mix/config/test.exs | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 7 | 2016-08-18T11:33:44.000Z | 2017-10-03T12:28:27.000Z | templates/mix/config/test.exs | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 6 | 2016-10-12T08:57:25.000Z | 2021-05-26T04:18:21.000Z | use Mix.Config
# Configuration for test environment
config :ex_unit, capture_log: true
<%= @config_test %>
| 18 | 36 | 0.759259 |
62917b243a781aa2df9533d6c5be37031b9dd898 | 1,710 | ex | Elixir | lib/auto_api/capabilities/weather_conditions_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/weather_conditions_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/weather_conditions_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # 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... | 39.767442 | 79 | 0.757895 |
6291894f2d0d83e76f18bf2989cc5fb095c641aa | 387 | ex | Elixir | apps/service_persist/lib/persist/load/supervisor.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_persist/lib/persist/load/supervisor.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_persist/lib/persist/load/supervisor.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Persist.Load.Supervisor do
use Management.Supervisor, name: __MODULE__
import Definition, only: [identifier: 1]
@impl Management.Supervisor
def say_my_name(%Load{} = load) do
Persist.Load.Registry.via(:"#{identifier(load)}")
end
@impl Management.Supervisor
def on_start_child(%Load{} = loa... | 24.1875 | 53 | 0.715762 |
62918c2e4ba5c6816b8ff8dae90f068c942212ec | 2,776 | exs | Elixir | test/horizons_web/controllers/user_session_controller_test.exs | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | test/horizons_web/controllers/user_session_controller_test.exs | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | test/horizons_web/controllers/user_session_controller_test.exs | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | defmodule HorizonsWeb.UserSessionControllerTest do
use HorizonsWeb.ConnCase, async: true
import Horizons.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/log_in" do
test "renders log in page", %{conn: conn} do
conn = get(conn, Routes.user_session_path(conn, :new))
... | 32.658824 | 89 | 0.612032 |
6291a01ae9cc8e9f5b2d1000c2e16690a1b7f375 | 501 | ex | Elixir | lib/mag.ex | Cyber28/Mag | de4c38314761b7c22b1fbd041a679ddddd4d70ea | [
"MIT"
] | 9 | 2021-05-05T09:32:41.000Z | 2021-12-20T13:37:49.000Z | lib/mag.ex | Cyber28/Mag | de4c38314761b7c22b1fbd041a679ddddd4d70ea | [
"MIT"
] | null | null | null | lib/mag.ex | Cyber28/Mag | de4c38314761b7c22b1fbd041a679ddddd4d70ea | [
"MIT"
] | null | null | null | defmodule Mag do
def get_port() do
case System.fetch_env("MAG_PORT") do
:error -> 8000
{:ok, port} -> String.to_integer(port)
end
end
def get_max_cache() do
case System.fetch_env("MAG_MAX_CACHE") do
:error -> 10
{:ok, max_cache} -> String.to_integer(max_cache)
end
end
... | 21.782609 | 64 | 0.640719 |
6291d96691f67cfb73a26fafc040ca52aded46b5 | 847 | exs | Elixir | apps/web/mix.exs | pinpox/branchpage | e478ed9085c06cc3c5680b0ca4dc20eff2e74653 | [
"MIT"
] | null | null | null | apps/web/mix.exs | pinpox/branchpage | e478ed9085c06cc3c5680b0ca4dc20eff2e74653 | [
"MIT"
] | null | null | null | apps/web/mix.exs | pinpox/branchpage | e478ed9085c06cc3c5680b0ca4dc20eff2e74653 | [
"MIT"
] | null | null | null | defmodule Web.MixProject do
use Mix.Project
def project do
[
app: :web,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.11",
compilers: [:phoenix] ++ Mix.comp... | 21.717949 | 51 | 0.508855 |
6291f0f672db7b70d2f92c4e302715bfdc437326 | 2,670 | ex | Elixir | lib/ecto/adapters/duckdb/codec.ex | mpope9/ecto_duckdb | 9cde0c76ac35cab65bf569bbfe90c1dd4999b94c | [
"MIT"
] | 2 | 2021-12-04T08:38:19.000Z | 2021-12-04T23:52:21.000Z | lib/ecto/adapters/duckdb/codec.ex | mpope9/ecto_duckdb | 9cde0c76ac35cab65bf569bbfe90c1dd4999b94c | [
"MIT"
] | null | null | null | lib/ecto/adapters/duckdb/codec.ex | mpope9/ecto_duckdb | 9cde0c76ac35cab65bf569bbfe90c1dd4999b94c | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.DuckDB.Codec do
@moduledoc false
def bool_decode(nil), do: {:ok, nil}
def bool_decode(0), do: {:ok, false}
def bool_decode("0"), do: {:ok, false}
def bool_decode("FALSE"), do: {:ok, false}
def bool_decode(1), do: {:ok, true}
def bool_decode("1"), do: {:ok, true}
def bool_decode(... | 23.839286 | 78 | 0.630712 |
62924085205d53067dacead8732a696283a04cbf | 3,689 | ex | Elixir | lib/day_2/day_2.ex | hcru20/advent-of-code-2021 | 4cb764b5c6ef2b986214609f9cb8d240797196db | [
"MIT"
] | 1 | 2021-12-07T02:57:40.000Z | 2021-12-07T02:57:40.000Z | lib/day_2/day_2.ex | hcru20/advent-of-code-2021 | 4cb764b5c6ef2b986214609f9cb8d240797196db | [
"MIT"
] | null | null | null | lib/day_2/day_2.ex | hcru20/advent-of-code-2021 | 4cb764b5c6ef2b986214609f9cb8d240797196db | [
"MIT"
] | null | null | null | defmodule Day2 do
@moduledoc """
Solution to Day 2 Advent of Code puzzle 2021: Dive!
Assumptions: All values for command distance are < 10 units
"""
# sort inputs into 2 lists to reduce, x & y
# up/down (up: negative, down: positive)
# - seems like all commands are < 10
# 2 ways to skin this cat -
... | 33.536364 | 125 | 0.633776 |
629256bca979c5562952f9fe153a1413433c161d | 164 | exs | Elixir | .dialyzer_ignore.exs | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 118 | 2021-05-26T05:00:32.000Z | 2022-03-13T16:25:36.000Z | .dialyzer_ignore.exs | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 35 | 2021-06-02T20:18:48.000Z | 2022-03-31T20:52:22.000Z | .dialyzer_ignore.exs | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 5 | 2021-06-15T18:01:04.000Z | 2022-02-13T09:14:28.000Z | [
{"src/sourceror_elixir.erl"},
{"src/sourceror_elixir_parser.yrl"},
{"src/sourceror_elixir_parser.yrl", :no_return},
{"src/sourceror_elixir_parser.erl"}
]
| 23.428571 | 50 | 0.719512 |
6292a2888660bd78096fbab71f8caf5f88010451 | 13,587 | ex | Elixir | lib/ex_force.ex | workplacearcade/ex_force | 0e4b3ebb8b74214402d86264cb31fbf5c7a6a195 | [
"MIT"
] | null | null | null | lib/ex_force.ex | workplacearcade/ex_force | 0e4b3ebb8b74214402d86264cb31fbf5c7a6a195 | [
"MIT"
] | 1 | 2021-03-25T03:35:37.000Z | 2021-03-25T03:35:37.000Z | lib/ex_force.ex | workplacearcade/ex_force | 0e4b3ebb8b74214402d86264cb31fbf5c7a6a195 | [
"MIT"
] | null | null | null | defmodule ExForce do
@moduledoc """
Simple wrapper for Salesforce REST API.
## Installation
The package can be installed by adding `ex_force` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ex_force, "~> 0.3"}
]
end
```
Check out [Choosing a Tesla Adapter](https:... | 35.382813 | 180 | 0.639435 |
6292eb5e676d4e7d55fe19d9357d814cfe6d9882 | 1,581 | ex | Elixir | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/add_note_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/add_note_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/add_note_request.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.638298 | 115 | 0.755218 |
6293005d2b7b82cc0dfb288bcbda66b6b9aa29dd | 1,229 | ex | Elixir | apps/ewallet/test/support/test_endpoint.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/support/test_endpoint.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/support/test_endpoint.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 25.081633 | 74 | 0.659886 |
62930c053c86263ef6ce30b198c9c76b5b9b9410 | 445 | ex | Elixir | lib/schema_loader.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 9 | 2020-04-07T17:22:15.000Z | 2022-01-29T21:56:07.000Z | lib/schema_loader.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 49 | 2020-03-03T16:18:50.000Z | 2021-05-29T13:48:04.000Z | lib/schema_loader.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 3 | 2020-05-14T16:26:03.000Z | 2022-01-24T22:03:40.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
defmodule SchemaLoader do
@moduledoc false
@behaviour Xema.Loader
@spec fetch(URI.t()) :: {:ok, any} | {:error, any... | 24.722222 | 66 | 0.65618 |
6293260d302c04d4ff9c3e1d49da29a733e7fe30 | 2,812 | ex | Elixir | lib/bike_brigade/delivery/task.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade/delivery/task.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade/delivery/task.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Delivery.Task do
use BikeBrigade.Schema
import Ecto.Changeset
import EctoEnum
alias BikeBrigade.EctoPhoneNumber
alias BikeBrigade.Riders.Rider
alias BikeBrigade.Delivery.{Campaign, Item, TaskItem}
alias BikeBrigade.Locations.Location
defenum(DeliveryStatusEnum,
pending: "pen... | 24.452174 | 82 | 0.662162 |
62933eba5a02d517ccb9626e158fdcbd610acc46 | 917 | exs | Elixir | test/distillery_cookies_test.exs | Zorbash/distillery | 2b642bf9bf595e5af4674223e1d09c99b415f202 | [
"MIT"
] | null | null | null | test/distillery_cookies_test.exs | Zorbash/distillery | 2b642bf9bf595e5af4674223e1d09c99b415f202 | [
"MIT"
] | null | null | null | test/distillery_cookies_test.exs | Zorbash/distillery | 2b642bf9bf595e5af4674223e1d09c99b415f202 | [
"MIT"
] | null | null | null | defmodule Distillery.Cookies.Test do
use ExUnit.Case, async: true
use PropCheck
@tag timeout: 60_000 * 5
property "generated cookies are always valid", [:noshrink, :quiet] do
numtests(100, forall c <- Distillery.Cookies.generate() do
is_valid_cookie(c)
end)
end
defp is_valid_cookie(x) when i... | 27.787879 | 98 | 0.591058 |
6293485125c964ada6b5308e409f27209dbd15a8 | 2,475 | ex | Elixir | lib/supabase_surface/plugs/session.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/plugs/session.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/plugs/session.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Plugs.Session do
@moduledoc """
A plug to handle access and refresh tokens.
In case `access_token` and `refresh_token` are not available
in the session, it redirects to a `login_endpoint`.
If the session already contains those tokens, it checks the
expiration time of the access t... | 33 | 97 | 0.67798 |
6293538b5e7770de04c60e1d3f0fdb6678d8c1fb | 968 | ex | Elixir | apps/beagle_client/lib/files_query.ex | msk-access/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 3 | 2020-11-24T07:45:26.000Z | 2021-07-29T13:37:02.000Z | apps/beagle_client/lib/files_query.ex | mskcc/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 52 | 2020-10-21T19:47:59.000Z | 2021-09-09T18:42:33.000Z | apps/beagle_client/lib/files_query.ex | msk-access/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 1 | 2020-12-15T03:33:31.000Z | 2020-12-15T03:33:31.000Z | defmodule FilesQuery do
@moduledoc """
A struct representing parameters to query files
"""
use TypedStruct
typedstruct do
@typedoc "parameters to query files"
field(:page, non_neg_integer(), default: 1)
field(:page_size, non_neg_integer())
field(:file_group, list(String.t()))
field(:path... | 32.266667 | 54 | 0.694215 |
62939f96bf3ca184a67509ceb6662bb719bf74d6 | 1,970 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_interface.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_interface.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_interface.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.4 | 294 | 0.741624 |
6293a08a1b561084147ed522ceb08de6d6c4b9f6 | 1,439 | exs | Elixir | test/oli/part_components_test.exs | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | test/oli/part_components_test.exs | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | test/oli/part_components_test.exs | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.PartComponentsTest do
use Oli.DataCase
alias Oli.PartComponents
import ExUnit.Assertions
setup do
part_component_registration_fixture()
author_project_fixture()
end
describe "add part component to project" do
test "adding a custom part component to a project", %{project: project}... | 34.261905 | 93 | 0.693537 |
6293a2861afe3d8e5f54f8585a348d2ab7a1beb6 | 1,681 | ex | Elixir | lib/mock_me/response_plug.ex | nbriar/mock_me | d04cc6e9dde8ef2e510af74f6daf8383fd0918d5 | [
"MIT"
] | 6 | 2020-11-29T17:20:16.000Z | 2021-07-23T13:54:53.000Z | lib/mock_me/response_plug.ex | nbriar/mock_me | d04cc6e9dde8ef2e510af74f6daf8383fd0918d5 | [
"MIT"
] | null | null | null | lib/mock_me/response_plug.ex | nbriar/mock_me | d04cc6e9dde8ef2e510af74f6daf8383fd0918d5 | [
"MIT"
] | 2 | 2021-02-03T18:00:10.000Z | 2021-02-17T21:33:01.000Z | defmodule MockMe.ResponsePlug do
@moduledoc """
Used to handle the toggling of the responses based on the route flag.
"""
import Plug.Conn
require Logger
def init(options), do: options
def call(%{assigns: %{route: route}} = conn, _opts) do
conn = put_resp_header(conn, "content-type", route.content_t... | 24.362319 | 92 | 0.610946 |
6293d6719c812e2a7b91f631aac4995a7f3e0e30 | 11,566 | ex | Elixir | lib/aws/data_exchange.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/data_exchange.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/data_exchange.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DataExchange do
@moduledoc """
This is the API reference for AWS Data Exchange.
"""
@doc """
This operation cancels a job. Jobs can be cancelled only when they are in
the WAITING stat... | 31.259459 | 122 | 0.634705 |
6293e587a5875bfdd14b81bc915df92edbc30ec8 | 2,308 | ex | Elixir | lib/flow/legacy/entities/transaction.pb.ex | phereford/flow | 25dca2058fa74037dc1283b74df6a349d4fedbd5 | [
"MIT"
] | 1 | 2021-04-09T06:28:53.000Z | 2021-04-09T06:28:53.000Z | lib/flow/legacy/entities/transaction.pb.ex | phereford/flow | 25dca2058fa74037dc1283b74df6a349d4fedbd5 | [
"MIT"
] | null | null | null | lib/flow/legacy/entities/transaction.pb.ex | phereford/flow | 25dca2058fa74037dc1283b74df6a349d4fedbd5 | [
"MIT"
] | null | null | null | defmodule Entities.TransactionStatus do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :UNKNOWN | :PENDING | :FINALIZED | :EXECUTED | :SEALED | :EXPIRED
field :UNKNOWN, 0
field :PENDING, 1
field :FINALIZED, 2
field :EXECUTED, 3
field :SEALED, 4
field :EXPIRED, 5
... | 25.362637 | 88 | 0.667678 |
6293ff44894030c28fd61b70d67ae3f89e88bf4c | 608 | exs | Elixir | test/views/error_view_test.exs | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2016-07-06T02:06:31.000Z | 2016-07-06T02:06:31.000Z | test/views/error_view_test.exs | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2017-04-07T12:58:38.000Z | 2017-04-07T12:58:38.000Z | test/views/error_view_test.exs | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | null | null | null | defmodule PhoenixAuthKata.ErrorViewTest do
use PhoenixAuthKata.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(PhoenixAuthKata.ErrorView, "404.html", []) ==
"Page not found"
end
te... | 27.636364 | 73 | 0.697368 |
629410514b73847adcf41c68c814c416f58d12df | 11,932 | exs | Elixir | lib/mix/test/mix/rebar_test.exs | joerichsen/elixir | 5ba5e7b1687587f5a58019c9e0b5a0b2d0ab96ff | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/rebar_test.exs | joerichsen/elixir | 5ba5e7b1687587f5a58019c9e0b5a0b2d0ab96ff | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/rebar_test.exs | joerichsen/elixir | 5ba5e7b1687587f5a58019c9e0b5a0b2d0ab96ff | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.RebarTest do
use MixTest.Case
# rebar_dep and git_rebar are loaded dynamically
@compile {:no_warn_undefined, [:rebar_dep, :git_rebar]}
defmodule RebarAsDep do
def project do
[
app: :rebar_as_dep,
version: "0.1.0",
... | 34.189112 | 97 | 0.596463 |
6294213f386f80e3157002c697839dbeec4f3f4a | 749 | ex | Elixir | lib/noa/actors/providers.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 9 | 2017-08-16T14:55:48.000Z | 2019-03-06T15:06:49.000Z | lib/noa/actors/providers.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | null | null | null | lib/noa/actors/providers.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 1 | 2022-03-17T18:32:59.000Z | 2022-03-17T18:32:59.000Z | defmodule Noa.Actors.Providers do
@moduledoc false
alias Ecto.{Changeset, Schema}
alias Noa.{Repo, Actors.Provider}
@spec add(map) :: {:ok, Schema.t} | {:error, Changeset.t}
def add(%{} = attrs) do
%Provider{} |> Provider.create_cs(attrs) |> Repo.insert()
end
@spec update(%Noa.Actors.Provider{}, ma... | 29.96 | 86 | 0.64753 |
62942a245c0a6cae3a51c301cf3a819426922245 | 787 | ex | Elixir | debian/watch.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/watch.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/watch.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.co... | 32.791667 | 70 | 0.722999 |
62945d8bbc605194a162a3d110a3217e44a251fc | 145 | ex | Elixir | elixir/63.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/63.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/63.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | defmodule Example do
@author "Dave Thomas"
def get_author do
@author
end
end
IO.puts "Example was written by #{Example.get_author}"
| 13.181818 | 54 | 0.710345 |
6294826c28600f40fa984dd8da2435d710f90cd3 | 1,345 | ex | Elixir | lib/changelog/files/audio.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog/files/audio.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog/files/audio.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Files.Audio do
use Changelog.File, [:mp3]
alias ChangelogWeb.PodcastView
@versions [:original]
def storage_dir(_, {_, episode}), do: expanded_dir("/#{episode.podcast.slug}/#{episode.slug}")
def filename(_, {_, episode}),
do: "#{PodcastView.dasherized_name(episode.podcast)}-#{episod... | 26.9 | 224 | 0.569517 |
6294b7270242b374ce2b43cc3bbe9404bb17177e | 9,963 | ex | Elixir | lib/earmark_parser/line_scanner.ex | RobertDober/earmark_parser | 8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d | [
"Apache-2.0"
] | 32 | 2020-07-01T17:25:08.000Z | 2022-03-23T05:38:38.000Z | lib/earmark_parser/line_scanner.ex | RobertDober/earmark_parser | 8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d | [
"Apache-2.0"
] | 91 | 2020-06-30T09:08:00.000Z | 2022-03-24T18:11:16.000Z | lib/earmark_parser/line_scanner.ex | RobertDober/earmark_parser | 8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d | [
"Apache-2.0"
] | 22 | 2020-07-02T08:50:17.000Z | 2022-02-21T08:31:27.000Z | defmodule EarmarkParser.LineScanner do
@moduledoc false
alias EarmarkParser.Helpers
alias EarmarkParser.Line
alias EarmarkParser.Options
import Options, only: [get_mapper: 1]
# This is the re that matches the ridiculous "[id]: url title" syntax
@id_title_part ~S"""
(?|
" (.*) ... | 36.229091 | 188 | 0.548831 |
6294c0393685f159cb18829943ebcd2e7851b92d | 1,425 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/pretargeting_config_dimensions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/pretargeting_config_dimensions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/pretargeting_config_dimensions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 29.6875 | 96 | 0.752982 |
6294daa007614fe5eb24b2687d455b2849c9db42 | 131 | ex | Elixir | lib/elasticsearch_elixir_bulk_processor/items/item.ex | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | 13 | 2020-01-01T10:49:47.000Z | 2022-01-14T22:03:02.000Z | lib/elasticsearch_elixir_bulk_processor/items/item.ex | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | 12 | 2019-10-03T09:01:33.000Z | 2020-11-23T08:54:33.000Z | lib/elasticsearch_elixir_bulk_processor/items/item.ex | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | 3 | 2019-10-08T11:16:17.000Z | 2020-11-21T16:23:26.000Z | defmodule ElasticsearchElixirBulkProcessor.Items.Item do
@type item :: __MODULE__
@callback to_payload(item) :: String.t()
end
| 26.2 | 56 | 0.778626 |
62951812f138280a6f774f38bf236efbb58b7ba2 | 495 | exs | Elixir | config/test.exs | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:57:08.000Z | 2018-10-08T13:57:08.000Z | config/test.exs | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | null | null | null | config/test.exs | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:55:44.000Z | 2018-10-08T13:55:44.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :twaddler, TwaddlerWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :twaddler, Twaddle... | 24.75 | 56 | 0.735354 |
62951e0db23527059061815fad516871a5ff4c57 | 1,895 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/operation_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/operation_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/operation_metadata.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... | 34.454545 | 102 | 0.730871 |
62951f612a7b24b2e441d9313b6faa6bc1aafede | 7,021 | ex | Elixir | lib/roger/job.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | lib/roger/job.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | lib/roger/job.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | defmodule Roger.Job do
@moduledoc """
Base module for implementing Roger jobs.
To start, `use Roger.Job` in your module. The only required callback
to implement is the `perform/1` function.
defmodule TestJob do
use Roger.Job
def perform(_args) do
# perform some work here...
... | 28.77459 | 109 | 0.649907 |
629529d494ea1ba1e6853176f3b6aedf1abade76 | 9,310 | ex | Elixir | lib/solid/parser.ex | karlseguin/solid | c7d435e6ec8ec82d9b62fb2a6abb03a1ec654d32 | [
"MIT"
] | null | null | null | lib/solid/parser.ex | karlseguin/solid | c7d435e6ec8ec82d9b62fb2a6abb03a1ec654d32 | [
"MIT"
] | null | null | null | lib/solid/parser.ex | karlseguin/solid | c7d435e6ec8ec82d9b62fb2a6abb03a1ec654d32 | [
"MIT"
] | null | null | null | defmodule Solid.Parser do
import NimbleParsec
defp when_join(whens) do
for {:when, [value: value, result: result]} <- whens, into: %{} do
{value, result}
end
end
identifier = ascii_string([?a..?z, ?A..?Z, ?0..?9, ?_], min: 1)
access =
ignore(string("["))
|> integer(min: 1)
|> igno... | 22.114014 | 99 | 0.571429 |
6295383d0bf7bc47c72083e91699aa66170af090 | 2,541 | ex | Elixir | lib/loaded_bike/models/user.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 48 | 2017-04-25T16:02:08.000Z | 2021-01-23T01:57:29.000Z | lib/loaded_bike/models/user.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 5 | 2018-03-09T20:17:55.000Z | 2018-07-23T16:29:21.000Z | lib/loaded_bike/models/user.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 4 | 2017-05-21T14:38:38.000Z | 2017-12-29T11:09:54.000Z | defmodule LoadedBike.User do
use LoadedBike.Web, :model
use Arc.Ecto.Schema
schema "users" do
field :email, :string
field :name, :string
field :bio, :string
field :twitter, :string
field :instagram, :string
field... | 26.747368 | 83 | 0.637151 |
62954aaa3ba565dd73b154d24110ac9796f08bad | 5,440 | ex | Elixir | examples/walkthrough.go.ex | akito19/td-client-go | 6c68bdee892f10cfae71a27c3d1164cafa28a487 | [
"Apache-2.0"
] | 12 | 2015-11-02T21:29:51.000Z | 2021-09-15T07:50:18.000Z | examples/walkthrough.go.ex | akito19/td-client-go | 6c68bdee892f10cfae71a27c3d1164cafa28a487 | [
"Apache-2.0"
] | 21 | 2016-07-25T04:30:51.000Z | 2020-11-26T04:34:35.000Z | examples/walkthrough.go.ex | akito19/td-client-go | 6c68bdee892f10cfae71a27c3d1164cafa28a487 | [
"Apache-2.0"
] | 12 | 2016-07-20T07:15:36.000Z | 2021-03-17T18:14:00.000Z | package main
import (
"bytes"
"compress/gzip"
"fmt"
td_client "github.com/treasure-data/td-client-go"
"github.com/ugorji/go/codec"
"os"
"strconv"
"time"
)
func CompressWithGzip(b []byte) []byte {
retval := bytes.Buffer{}
w := gzip.NewWriter(&retval)
w.Write(b)
w.Close()
return retval.Bytes()
}
func main... | 26.153846 | 103 | 0.642279 |
6295c19c2b46c4980ba78c04b8b04dc95ad43bb9 | 482 | ex | Elixir | lib/phx_todo_app_web/live/item_live/show.ex | showwin/phx_todo_app | 3608f120cb149019219add4ca63e711698a56aab | [
"MIT"
] | null | null | null | lib/phx_todo_app_web/live/item_live/show.ex | showwin/phx_todo_app | 3608f120cb149019219add4ca63e711698a56aab | [
"MIT"
] | null | null | null | lib/phx_todo_app_web/live/item_live/show.ex | showwin/phx_todo_app | 3608f120cb149019219add4ca63e711698a56aab | [
"MIT"
] | null | null | null | defmodule PhxTodoAppWeb.ItemLive.Show do
use PhxTodoAppWeb, :live_view
alias PhxTodoApp.Todolist
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
@impl true
def handle_params(%{"id" => id}, _, socket) do
{:noreply,
socket
|> assign(:page_title, page_title(socket.as... | 21.909091 | 67 | 0.672199 |
6295e0468df33e83bc6c0d1dd23e2e617afd8a07 | 24,136 | exs | Elixir | test/remote_ip/parsers/forwarded_test.exs | ajvondrak/remote_ip | 4826fc437976d7e8dca1ac0ed1ebc7459c6b1a33 | [
"MIT"
] | 178 | 2016-10-17T09:47:02.000Z | 2022-03-22T09:39:02.000Z | test/remote_ip/parsers/forwarded_test.exs | ajvondrak/remote_ip | 4826fc437976d7e8dca1ac0ed1ebc7459c6b1a33 | [
"MIT"
] | 28 | 2016-12-14T09:01:56.000Z | 2022-03-22T16:16:46.000Z | test/remote_ip/parsers/forwarded_test.exs | ajvondrak/remote_ip | 4826fc437976d7e8dca1ac0ed1ebc7459c6b1a33 | [
"MIT"
] | 35 | 2017-01-24T23:06:43.000Z | 2021-11-17T14:43:30.000Z | defmodule RemoteIp.Parsers.ForwardedTest do
use ExUnit.Case, async: true
alias RemoteIp.Parsers.Forwarded
doctest Forwarded
describe "parsing" do
test "RFC 7239 examples" do
parsed = Forwarded.parse(~S'for="_gazonk"')
assert parsed == []
parsed = Forwarded.parse(~S'For="[2001:db8:cafe:... | 66.307692 | 260 | 0.564302 |
6295ec38f21af68405898077f42d48d1d6e17d53 | 1,001 | ex | Elixir | lib/welp/application.ex | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | lib/welp/application.ex | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | lib/welp/application.ex | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | defmodule Welp.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
s... | 31.28125 | 82 | 0.708292 |
629604b59478a3e5e2d780d9022c6f69ae2f52b2 | 745 | exs | Elixir | mix.exs | grrizzly/todos-player-service | 1000421eb77af6422bfd4a8a6996cea284aea253 | [
"MIT"
] | null | null | null | mix.exs | grrizzly/todos-player-service | 1000421eb77af6422bfd4a8a6996cea284aea253 | [
"MIT"
] | null | null | null | mix.exs | grrizzly/todos-player-service | 1000421eb77af6422bfd4a8a6996cea284aea253 | [
"MIT"
] | null | null | null | defmodule TodosPlayerService.Mixfile do
use Mix.Project
def project do
[app: :todos_player_service,
compilers: [:thrift | Mix.compilers],
thrift_files: Mix.Utils.extract_files(["thrift"], [:thrift]),
erlangrc_options: [{:i, "include"}],
version: "0.0.1",
elixir: "~> 1.2",
build_em... | 25.689655 | 75 | 0.583893 |
629605f41b515877e0696e6802b2d65f32ed70ff | 1,509 | exs | Elixir | rel/config.exs | elcritch/couchdb_luerl_query | fd2f4b3cbbdc6e0845eec886c40685946d5b0807 | [
"Apache-2.0"
] | null | null | null | rel/config.exs | elcritch/couchdb_luerl_query | fd2f4b3cbbdc6e0845eec886c40685946d5b0807 | [
"Apache-2.0"
] | null | null | null | rel/config.exs | elcritch/couchdb_luerl_query | fd2f4b3cbbdc6e0845eec886c40685946d5b0807 | [
"Apache-2.0"
] | 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.106383 | 81 | 0.745527 |
6296252825b0e8851e1c616dc52693aec0f951f1 | 305 | exs | Elixir | priv/repo/migrations/20191126120011_add_some_indexes.exs | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | priv/repo/migrations/20191126120011_add_some_indexes.exs | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | priv/repo/migrations/20191126120011_add_some_indexes.exs | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | defmodule Postoffice.Repo.Migrations.AddSomeIndexes do
use Ecto.Migration
def change do
create index("messages", [:topic_id], name: "external_topic_id")
create index("publisher_success", [:message_id, :publisher_id],
name: "message_and_publishers_search"
)
end
end
| 25.416667 | 68 | 0.698361 |
62968cce83b9fe577b38416b222cc51f7c82481b | 2,297 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1beta1_export_documents_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1beta1_export_documents_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1beta1_export_documents_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.763636 | 551 | 0.753592 |
629693a0e4f5cc3ade10d8b9c70728ee5998f810 | 655 | exs | Elixir | priv/repo/migrations/20170825000509_create_categories.exs | nontech/graphql_absinthe | c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde | [
"MIT"
] | 1 | 2019-05-11T21:50:09.000Z | 2019-05-11T21:50:09.000Z | priv/repo/migrations/20170825000509_create_categories.exs | nontech/graphql_absinthe | c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde | [
"MIT"
] | null | null | null | priv/repo/migrations/20170825000509_create_categories.exs | nontech/graphql_absinthe | c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde | [
"MIT"
] | null | null | null | #---
# Excerpted from "Craft GraphQL APIs in Elixir with Absinthe",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any pur... | 29.772727 | 86 | 0.731298 |
629697e3d4df8950177da9b903cf336d2bcbe583 | 115 | ex | Elixir | examples/bank/lib/bank/projection_store_repo.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | examples/bank/lib/bank/projection_store_repo.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | examples/bank/lib/bank/projection_store_repo.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | defmodule Bank.ProjectionStoreRepo do
use Ecto.Repo,
otp_app: :bank,
adapter: Ecto.Adapters.Postgres
end
| 19.166667 | 37 | 0.747826 |
6296a4499800419f7387bb4cb62696229a21aae4 | 5,833 | ex | Elixir | apps/site/lib/site_web/controllers/helpers.ex | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | apps/site/lib/site_web/controllers/helpers.ex | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | apps/site/lib/site_web/controllers/helpers.ex | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | defmodule SiteWeb.ControllerHelpers do
@moduledoc false
import Plug.Conn, only: [halt: 1, put_resp_content_type: 2, put_status: 2]
import Phoenix.Controller, only: [render: 3, put_view: 2]
alias Alerts.{Alert, InformedEntity, Match, Repo}
alias Phoenix.Controller
alias Plug.Conn
alias Routes.{Group, Rou... | 31.360215 | 98 | 0.68061 |
6296a6ddb9ff6f52f04522f8ca47ac566edf1c19 | 3,025 | ex | Elixir | elixir/lib/homework/users_companies.ex | XanderHarris/web-homework | d0b5c2bbbd055341d51f02f824a2020188f6c094 | [
"MIT"
] | null | null | null | elixir/lib/homework/users_companies.ex | XanderHarris/web-homework | d0b5c2bbbd055341d51f02f824a2020188f6c094 | [
"MIT"
] | null | null | null | elixir/lib/homework/users_companies.ex | XanderHarris/web-homework | d0b5c2bbbd055341d51f02f824a2020188f6c094 | [
"MIT"
] | null | null | null | defmodule Homework.UsersCompanies do
@moduledoc """
The UsersCompanies context
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Companies
alias Homework.UsersCompanies.UserCompany
@doc """
Gets a single users companies joint object.
Raises `Ecto.NoResultsError` if the UserC... | 22.916667 | 97 | 0.671405 |
6296ac4111e0e487a2628ffbef33fd83e92183e3 | 188 | exs | Elixir | priv/repo/migrations/20190529111133_remove_connector_accounts_auth_type.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | priv/repo/migrations/20190529111133_remove_connector_accounts_auth_type.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | priv/repo/migrations/20190529111133_remove_connector_accounts_auth_type.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule Flowr.Repo.Migrations.RemoveConnectorAccountsAuthType do
use Ecto.Migration
def change do
alter table(:connector_accounts) do
remove(:auth_type)
end
end
end
| 18.8 | 66 | 0.755319 |
6296be062ed8bb248ff387df4e5235754192524e | 997 | ex | Elixir | lib/kantele/character/views/whisper_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/kantele/character/views/whisper_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/kantele/character/views/whisper_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Kantele.Character.WhisperView do
use Kalevala.Character.View
alias Kantele.Character.CharacterView
def render("echo", %{character: character, text: text}) do
[
"You whisper to ",
CharacterView.render("name", %{character: character}),
~i(, {color foreground="green"}"#{text}"{/colo... | 29.323529 | 96 | 0.648947 |
6296c70d3cb49dc66420c25fd46f2cfcb4be80d9 | 292 | ex | Elixir | test/support/test_schema.ex | ryanwinchester/elixir-uuids | e51629e88331d82ce8099da7cdd5dd8263b69c0d | [
"Apache-2.0"
] | 7 | 2020-10-15T01:39:48.000Z | 2022-03-24T16:26:23.000Z | test/support/test_schema.ex | ryanwinchester/elixir-uuids | e51629e88331d82ce8099da7cdd5dd8263b69c0d | [
"Apache-2.0"
] | 11 | 2020-10-14T17:44:23.000Z | 2021-03-12T19:51:39.000Z | test/support/test_schema.ex | ryanwinchester/elixir-uuids | e51629e88331d82ce8099da7cdd5dd8263b69c0d | [
"Apache-2.0"
] | null | null | null | defmodule UUID.TestSchema do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, UUID.TestUUID6, autogenerate: true}
schema "test_schemas" do
field(:foo_bar_id, UUID.TestUUID6)
end
def changeset(attrs) do
%__MODULE__{}
|> cast(attrs, [:foo_bar_id])
end
end
| 17.176471 | 56 | 0.69863 |
6296d02f4366e79fd7ea6bd966399e0d6604b83c | 6,258 | exs | Elixir | test/groupher_server_web/mutation/cms/flags/works_flag_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | test/groupher_server_web/mutation/cms/flags/works_flag_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | test/groupher_server_web/mutation/cms/flags/works_flag_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | null | null | null | defmodule GroupherServer.Test.Mutation.Flags.WorksFlag do
use GroupherServer.TestTools
alias GroupherServer.CMS
alias CMS.Model.Community
alias Helper.ORM
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
{:ok, works} = CMS.create_article(community, :works, mock_... | 34.960894 | 92 | 0.653883 |
6296d909623b4991a68505770adfb2000fd52320 | 593 | exs | Elixir | mix.exs | mlquants/medio | 83119ea9195b69bbb6eceff06122fbe63e8f3ebe | [
"MIT"
] | null | null | null | mix.exs | mlquants/medio | 83119ea9195b69bbb6eceff06122fbe63e8f3ebe | [
"MIT"
] | null | null | null | mix.exs | mlquants/medio | 83119ea9195b69bbb6eceff06122fbe63e8f3ebe | [
"MIT"
] | null | null | null | defmodule Medio.MixProject do
use Mix.Project
def project do
[
app: :medio,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 19.129032 | 61 | 0.537943 |
6297102bf3c059d32d3467ffe6cf9fd5ae5567c9 | 1,070 | ex | Elixir | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/router.ex | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 14 | 2019-08-01T07:55:50.000Z | 2021-04-24T09:14:09.000Z | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/router.ex | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 1 | 2019-08-02T03:03:40.000Z | 2019-08-02T03:03:40.000Z | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/router.ex | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | null | null | null | defmodule {{cookiecutter.phoenix_app_module}}Web.Router do
use {{cookiecutter.phoenix_app_module}}Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accep... | 28.157895 | 179 | 0.71215 |
62971fbfaa75d53f2f9ac2552654e4c2fa439ee3 | 742 | ex | Elixir | web/views/project_view.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | web/views/project_view.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | web/views/project_view.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | defmodule CodeCorps.ProjectView do
use CodeCorps.Web, :view
use JaSerializer.PhoenixView
attributes [
:slug, :title, :description, :icon_thumb_url, :icon_large_url,
:long_description_body, :long_description_markdown,
:inserted_at, :updated_at]
has_one :organization, serializer: CodeCorps.Organization... | 29.68 | 73 | 0.780323 |
62974d02e6eb9ff03f812816601df4f2bebc9515 | 947 | exs | Elixir | elixir/config/config.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | 1 | 2021-03-15T04:09:23.000Z | 2021-03-15T04:09:23.000Z | elixir/config/config.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/config/config.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"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 :homework,
ecto_repos: [Homework.Repo]
... | 30.548387 | 81 | 0.760296 |
62975c16965fa234b74e474436c53b4ff0525a58 | 1,143 | exs | Elixir | config/config.exs | vinceurag/smart_tracer | ee0cd831038e7b3c4b7c92b9796f225e8a35ee78 | [
"MIT"
] | 1 | 2020-02-03T09:46:21.000Z | 2020-02-03T09:46:21.000Z | config/config.exs | vinceurag/smart_tracer | ee0cd831038e7b3c4b7c92b9796f225e8a35ee78 | [
"MIT"
] | null | null | null | config/config.exs | vinceurag/smart_tracer | ee0cd831038e7b3c4b7c92b9796f225e8a35ee78 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.870968 | 73 | 0.768154 |
629778780303e80e0665208d936581588c6fde6a | 813 | exs | Elixir | mix.exs | filipevarjao/exavier | 5e916fcf9ed95255ff937ff595d530e656adfa97 | [
"MIT"
] | null | null | null | mix.exs | filipevarjao/exavier | 5e916fcf9ed95255ff937ff595d530e656adfa97 | [
"MIT"
] | null | null | null | mix.exs | filipevarjao/exavier | 5e916fcf9ed95255ff937ff595d530e656adfa97 | [
"MIT"
] | null | null | null | defmodule Exavier.MixProject do
use Mix.Project
def project do
[
app: :exavier,
version: "0.1.5",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env())
]
... | 18.906977 | 57 | 0.576876 |
6297e28c22a5ccf7f429a190a87e509794eae023 | 8,040 | ex | Elixir | clients/groups_settings/lib/google_api/groups_settings/v1/api/groups.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/groups_settings/lib/google_api/groups_settings/v1/api/groups.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/groups_settings/lib/google_api/groups_settings/v1/api/groups.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.315789 | 187 | 0.638557 |
6297eafe6343c4608eb4067ad117091014a1361d | 761 | exs | Elixir | examples/elixir/get_started/02-routing-many-hops.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | examples/elixir/get_started/02-routing-many-hops.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | examples/elixir/get_started/02-routing-many-hops.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | ["install.exs", "echoer.exs", "hop.exs"] |> Enum.map(&Code.require_file/1)
# Create a Echoer type worker at address "echoer".
{:ok, _echoer} = Echoer.create(address: "echoer")
# Create a Hop type worker at addresses "h1", "h2", "h3".
{:ok, _h1} = Hop.create(address: "h1")
{:ok, _h2} = Hop.create(address: "h2")
{:ok, ... | 31.708333 | 103 | 0.670171 |
629807e226f2fd34030bba5caf4465b08b070dec | 2,053 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_runs_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_runs_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_runs_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.735849 | 205 | 0.732586 |
6298563ea622d96770c8703b20984073c6fe677e | 255 | ex | Elixir | lib/dwarlixir/systems/old_age.ex | Trevoke/dwarlixir | e0a7ae39d3687d8e649fba67ce3dee413f00307e | [
"MIT"
] | 54 | 2017-03-09T20:43:11.000Z | 2022-03-29T16:59:20.000Z | lib/dwarlixir/systems/old_age.ex | Trevoke/dwarlixir | e0a7ae39d3687d8e649fba67ce3dee413f00307e | [
"MIT"
] | 17 | 2017-03-12T18:16:21.000Z | 2017-05-30T03:34:57.000Z | lib/dwarlixir/systems/old_age.ex | Trevoke/dwarlixir | e0a7ae39d3687d8e649fba67ce3dee413f00307e | [
"MIT"
] | 2 | 2017-04-23T23:47:41.000Z | 2017-11-19T13:38:25.000Z | defmodule Dwarlixir.Systems.OldAge do
use Ecstatic.System
alias Dwarlixir.Components, as: C
def aspect, do: %Ecstatic.Aspect{with: [C.Age, C.Mortal]}
def dispatch(entity) do
%Ecstatic.Changes{attached: [C.Dead], removed: [C.Age]}
end
end
| 21.25 | 59 | 0.709804 |
62986100bf397be022e147270ad4df3cc7c28ebc | 100 | ex | Elixir | lib/credo/service/source_file_ast.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/service/source_file_ast.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/service/source_file_ast.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Service.SourceFileAST do
@moduledoc false
use Credo.Service.ETSTableHelper
end
| 16.666667 | 40 | 0.82 |
6298660bc1edbfbc519985310bb2abd8e84b757a | 1,778 | exs | Elixir | test/nys_etl/engines/e1/state_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | test/nys_etl/engines/e1/state_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | test/nys_etl/engines/e1/state_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Engines.E1.StateTest do
use NYSETL.DataCase, async: false
alias NYSETL.ECLRS
alias NYSETL.Engines.E1.State
ExUnit.Case.register_attribute(__MODULE__, :initial_state)
setup context do
{:ok, eclrs_file} = Factory.file_attrs() |> ECLRS.create_file()
initial =
%State{status: :fi... | 24.694444 | 83 | 0.606299 |
62986d953efa005a0aa5f7ff275e4e820202d675 | 427 | ex | Elixir | lib/styx/supervisors/registry.ex | Vandise/styx | ca1224830c0c6052efb05748cf6e18670eae4400 | [
"MIT"
] | null | null | null | lib/styx/supervisors/registry.ex | Vandise/styx | ca1224830c0c6052efb05748cf6e18670eae4400 | [
"MIT"
] | null | null | null | lib/styx/supervisors/registry.ex | Vandise/styx | ca1224830c0c6052efb05748cf6e18670eae4400 | [
"MIT"
] | null | null | null | defmodule Styx.Supervisors.Registry do
@moduledoc """
Supervises the Styx registry
"""
use Styx.Supervisors.Supervisor
def start_link(opts) do
Logger.debug("Starting Registry: #{@registry_key}")
Supervisor.start_link(__MODULE__, :ok, opts)
end
def init(:ok) do
children = [
supervisor... | 20.333333 | 55 | 0.690867 |
62986ea8fd023ae955711c3d0cea83a7b6779393 | 1,836 | exs | Elixir | rel/config.exs | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | rel/config.exs | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | rel/config.exs | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | # 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.785714 | 81 | 0.742375 |
62986f6137c373f4b3918f1fe929548a05f91fc0 | 895 | ex | Elixir | lib/pummpcomm/history/set_auto_off.ex | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | lib/pummpcomm/history/set_auto_off.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | lib/pummpcomm/history/set_auto_off.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | defmodule Pummpcomm.History.SetAutoOff do
@moduledoc """
When the user enables/disabled auto-off. Auto-off is a safety feature that stops insulin delivery after a defined
time period (from 1 to 24 hours). If the pump detects that no buttons have been pressed for the selected amount of
time in Auto-off, insulin... | 38.913043 | 120 | 0.756425 |
629874700a5f339dfddf3107377bcbe85591532d | 213 | ex | Elixir | lib/rockelivery_web/views/item_view.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery_web/views/item_view.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery_web/views/item_view.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.ItemView do
use RockeliveryWeb, :view
alias Rockelivery.Item.Item
def render("create.json", %{Item: item}) do
%{
message: "Item created",
item: item
}
end
end
| 17.75 | 45 | 0.652582 |
62987cd0d39f0fdc28c8bec16e5bcd189368498d | 10,402 | exs | Elixir | test/controllers/tp_attribute_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/controllers/tp_attribute_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/controllers/tp_attribute_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpAttributeControllerTest do
use CgratesWebJsonapi.ConnCase
alias CgratesWebJsonapi.TpAttribute
alias CgratesWebJsonapi.Repo
import CgratesWebJsonapi.Factory
setup do
user = insert :user
conn = build_conn()
|> put_req_header("accept", "application/vnd.api+json")
... | 35.868966 | 136 | 0.647183 |
6298d1d522a7b8284095294b2c04a772454bb77a | 1,279 | ex | Elixir | lib/rocketseat_nlw_heat_impulse_elixir_web/views/error_helpers.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir_web/views/error_helpers.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir_web/views/error_helpers.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | defmodule RocketseatNlwHeatImpulseElixirWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to tra... | 37.617647 | 99 | 0.688819 |
6298ee828922e7b6320943110694e2ad9969178c | 144 | ex | Elixir | web/controllers/page_controller.ex | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | web/controllers/page_controller.ex | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | web/controllers/page_controller.ex | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | defmodule OptionCalc.PageController do
use OptionCalc.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18 | 38 | 0.743056 |
62990c9bc58991d1a3748c9e8b3c86ef896c4092 | 744 | ex | Elixir | lib/type_check/builtin/bitstring.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/builtin/bitstring.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/builtin/bitstring.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | defmodule TypeCheck.Builtin.Bitstring do
defstruct []
use TypeCheck
@type! t :: %__MODULE__{}
@type! problem_tuple :: {t(), :no_match, map(), any()}
defimpl TypeCheck.Protocols.ToCheck do
def to_check(s, param) do
quote do
case unquote(param) do
x when is_bitstring(x) ->
... | 20.666667 | 80 | 0.591398 |
6299147954210cd6a8e99236bbf0dbacfe686b35 | 18,191 | ex | Elixir | lib/cogs.ex | BenAlbin/alchemy | c31bce54e13a692acdba3c3b581ff49090da7604 | [
"MIT"
] | 1 | 2019-02-24T03:13:22.000Z | 2019-02-24T03:13:22.000Z | lib/cogs.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | lib/cogs.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | defmodule Alchemy.Cogs do
alias Alchemy.Cache
alias Alchemy.Cogs.CommandHandler
alias Alchemy.Cogs.EventRegistry
alias Alchemy.Events
alias Alchemy.Guild
require Logger
@moduledoc """
This module provides quite a bit of sugar for registering commands.
To use the macros in this module, it must be `use... | 29.293076 | 89 | 0.639162 |
6299238149bf0a0b57a18178b7e3ecf9e7b6073e | 174 | ex | Elixir | debian/menu.ex | sharkwouter/vaporos-flatpak-manager | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | [
"MIT"
] | null | null | null | debian/menu.ex | sharkwouter/vaporos-flatpak-manager | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | [
"MIT"
] | 21 | 2019-09-15T08:42:58.000Z | 2021-08-28T16:48:54.000Z | debian/menu.ex | sharkwouter/vaporos-flatpak-manager | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | [
"MIT"
] | null | null | null | ?package(vaporos-flatpak-manager):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="vaporos-flatpak-manager" command="/usr/bin/vaporos-flatpak-manager"
| 58 | 96 | 0.781609 |
6299610bff697cf65bdcf96f197d56ac3b90c35a | 639 | ex | Elixir | lib/hl7/2.2/segments/nst.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/nst.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/nst.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_2.Segments.NST do
@moduledoc false
require Logger
alias HL7.V2_2.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
statistics_available: nil,
source_identifier: nil,
source_type: nil,
statistics_start: DataTypes.Ts,
statistics_end: DataTypes.Ts,
... | 23.666667 | 37 | 0.676056 |
62996929e467a181e6b74863c4832e627eae454a | 1,182 | ex | Elixir | lib/booklist_web/endpoint.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | lib/booklist_web/endpoint.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | 3 | 2020-07-16T14:24:43.000Z | 2021-03-08T23:34:18.000Z | lib/booklist_web/endpoint.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | defmodule BooklistWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :booklist
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static files in production.
plug Plug.Static,
at: "/",
from: :booklist,
gz... | 27.488372 | 69 | 0.712352 |
6299d2a0803e4c79eed35b7f91e9767b310315cc | 1,142 | ex | Elixir | lib/firestorm_data/slugs/title_slug.ex | dailydrip/firestorm_data | 5c5e75271c43dc08d93a2492692b6601ef3682aa | [
"MIT"
] | null | null | null | lib/firestorm_data/slugs/title_slug.ex | dailydrip/firestorm_data | 5c5e75271c43dc08d93a2492692b6601ef3682aa | [
"MIT"
] | null | null | null | lib/firestorm_data/slugs/title_slug.ex | dailydrip/firestorm_data | 5c5e75271c43dc08d93a2492692b6601ef3682aa | [
"MIT"
] | null | null | null | defmodule FirestormData.Slugs.TitleSlug do
@moduledoc """
Module that makes it easy to create title slugs that autogenerate unique
titles.
"""
defmacro __using__(module) do
quote do
use EctoAutoslugField.Slug, from: :title, to: :slug
alias FirestormData.Repo
import Ecto.Query
def... | 21.54717 | 74 | 0.574431 |
6299d5017c3b8135190c6faf1eb8c3e0e5777941 | 792 | ex | Elixir | alex_story+elixir/maze_jam/apps/generator_display/test/support/channel_case.ex | NashFP/maze-jam | 6896a0e09bd7fdc2e18688e067eff983d01cd6a5 | [
"MIT"
] | null | null | null | alex_story+elixir/maze_jam/apps/generator_display/test/support/channel_case.ex | NashFP/maze-jam | 6896a0e09bd7fdc2e18688e067eff983d01cd6a5 | [
"MIT"
] | null | null | null | alex_story+elixir/maze_jam/apps/generator_display/test/support/channel_case.ex | NashFP/maze-jam | 6896a0e09bd7fdc2e18688e067eff983d01cd6a5 | [
"MIT"
] | null | null | null | defmodule GeneratorDisplayWeb.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 datastructures and query the data layer.
Finally, if the test case int... | 23.294118 | 58 | 0.732323 |
6299e5577e349cc2ef949b63325c95e533f24eeb | 1,789 | ex | Elixir | apps/gitgud_web/lib/gitgud_web.ex | joshnuss/gitgud | ea32d9d254cfd10a09c988763e03589c401d9875 | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web.ex | joshnuss/gitgud | ea32d9d254cfd10a09c988763e03589c401d9875 | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web.ex | joshnuss/gitgud | ea32d9d254cfd10a09c988763e03589c401d9875 | [
"MIT"
] | null | null | null | defmodule GitGud.Web do
@moduledoc """
Module providing helper function for controllers, views, channels and so on.
This can be used in your application as:
use GitGud.Web, :controller
use GitGud.Web, :view
"""
@doc false
def controller do
quote do
use Phoenix.Controller, namespace:... | 24.506849 | 147 | 0.693125 |
6299e684e347af2cc1f1e45ffa4883a49f3cbc27 | 1,149 | exs | Elixir | test/os/syscalls/factory_reset_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/os/syscalls/factory_reset_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/os/syscalls/factory_reset_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.SysCalls.FactoryResetTest do
use ExUnit.Case
use Mimic
require Helpers
alias FarmbotOS.SysCalls.FactoryReset
alias FarmbotOS.{Asset, BotState, APIFetcher}
setup :verify_on_exit!
test "factory reset - FarmBot OS" do
expect(FarmbotOS.System, :factory_reset, 1, fn reason, flag ->
... | 25.533333 | 72 | 0.671018 |
629a17122492b23f2d310ca6a0874e5d6962dbe7 | 2,805 | exs | Elixir | elixir/phone-number/phone_number.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/phone-number/phone_number.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/phone-number/phone_number.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | defmodule Phone do
defstruct area_code: "000", local_number: "0000000"
defimpl String.Chars do
def to_string(phone = %Phone{}) do
phone.area_code <> phone.local_number
end
end
@doc """
Remove formatting from a phone number.
Returns "0000000000" if phone number is not valid
(10 digits or "... | 20.932836 | 80 | 0.604278 |
629a3ad362d78250778f552015a0f44ee773bc81 | 380 | ex | Elixir | lib/stripe_app_web/views/error_view.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | lib/stripe_app_web/views/error_view.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | lib/stripe_app_web/views/error_view.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | defmodule StripeAppWeb.ErrorView do
use StripeAppWeb, :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.705263 |
629a59a940176212b3447958e09ee18ab739899c | 199 | ex | Elixir | lib/snapex7.ex | DisruptiveAngels/snapex7 | db76780cb7dec52c2d8640e05d2efd81183bd396 | [
"MIT"
] | 12 | 2019-03-02T00:02:32.000Z | 2021-09-17T08:22:33.000Z | lib/snapex7.ex | DisruptiveAngels/snapex7 | db76780cb7dec52c2d8640e05d2efd81183bd396 | [
"MIT"
] | 1 | 2018-11-29T05:01:27.000Z | 2018-11-29T05:01:27.000Z | lib/snapex7.ex | DisruptiveAngels/snapex7 | db76780cb7dec52c2d8640e05d2efd81183bd396 | [
"MIT"
] | 3 | 2020-05-07T12:23:37.000Z | 2021-06-18T19:23:18.000Z | defmodule Snapex7 do
@moduledoc """
Documentation for Snapex7.
"""
@doc """
Hello world.
## Examples
iex> Snapex7.hello()
:world
"""
def hello do
:world
end
end
| 10.473684 | 28 | 0.562814 |
629a76b05ee6920d35da99eeb1e4bf30a5bc31b7 | 929 | ex | Elixir | lib/rocketpay/accounts/transaction.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | 2 | 2021-03-01T09:15:57.000Z | 2021-03-02T23:30:57.000Z | lib/rocketpay/accounts/transaction.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | lib/rocketpay/accounts/transaction.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | defmodule Rocketpay.Accounts.Transaction do
alias Ecto.Multi
alias Rocketpay.Accounts.Operation
alias Rocketpay.Repo
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
def call(%{"from" => from_id, "to" => to_id, "value" => value}) do
withdraw_params = build_params(from_id, value)
... | 33.178571 | 81 | 0.695371 |
629a91205057917e53580e1c17abc6f7e41334b7 | 895 | exs | Elixir | test/boreale/domains_test.exs | BUBUcmoi/boreale | 5bcd5ed97bc471e16d267a02c39a5cbdcfe18df9 | [
"MIT"
] | 50 | 2019-05-04T21:25:57.000Z | 2022-02-25T16:40:52.000Z | test/boreale/domains_test.exs | BUBUcmoi/boreale | 5bcd5ed97bc471e16d267a02c39a5cbdcfe18df9 | [
"MIT"
] | 14 | 2020-02-01T00:02:29.000Z | 2022-03-19T19:25:35.000Z | test/boreale/domains_test.exs | BUBUcmoi/boreale | 5bcd5ed97bc471e16d267a02c39a5cbdcfe18df9 | [
"MIT"
] | 6 | 2019-08-06T02:17:15.000Z | 2022-03-11T14:33:49.000Z | defmodule Boreale.DomainsTest do
use Boreale.TestCase
alias Boreale.{Domains, Storage}
setup do
_ = Domains.start_link([])
:ok
end
@domain "public.com"
describe "public?/1" do
test "only public domains are public" do
with_mock(Storage, read_dets: fn _, _ -> [[@domain, DateTime.utc_now()... | 24.189189 | 86 | 0.617877 |
629abd2b457568b658617bcc923800cac9c71aab | 1,862 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_delete_processor_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_delete_processor_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_delete_processor_metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.854545 | 183 | 0.765843 |
629ac30a4adf9427dd77176453e23640ce0a9a35 | 706 | ex | Elixir | lib/top5_2_web/gettext.ex | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | lib/top5_2_web/gettext.ex | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 2 | 2021-03-09T09:26:25.000Z | 2021-05-09T08:58:51.000Z | lib/top5_2_web/gettext.ex | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | null | null | null | defmodule Top52Web.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 Top52Web.Gettext
# Simple translation
gettext("Here is the s... | 28.24 | 72 | 0.675637 |
629ae90cf67cb921a10d78aa726960f00609255d | 1,702 | ex | Elixir | lib/auto_api/capabilities/parking_brake_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/parking_brake_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/parking_brake_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # 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... | 37.822222 | 79 | 0.745593 |
629aec1e279261a093ac0cfca5b2a61958dd2981 | 2,380 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_response.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... | 40.338983 | 220 | 0.766387 |
629af46938db77133e602ca161469acf55b3fb2b | 940 | ex | Elixir | apps/service_acquire/lib/acquire/query/where/filter_parser.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_acquire/lib/acquire/query/where/filter_parser.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_acquire/lib/acquire/query/where/filter_parser.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Acquire.Query.Where.FilterParser do
@moduledoc false
import NimbleParsec
alias Acquire.Query.Where.{Function, Parameter, Field}
@spec parse_operation(input :: String.t()) :: {:ok, Function.t()} | {:error, term}
def parse_operator(""), do: Ok.ok([])
def parse_operation(input) do
with {:ok, [... | 29.375 | 84 | 0.492553 |
629af642e278244e821d2797368d935515f117e2 | 1,826 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/billing_info_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/billing_info_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/billing_info_list.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... | 35.803922 | 146 | 0.745345 |
629b38d086f20280e02507540704432546726f37 | 3,655 | exs | Elixir | channels/test/im/im_pubsub_test.exs | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | channels/test/im/im_pubsub_test.exs | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | channels/test/im/im_pubsub_test.exs | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | defmodule IMPubSubTest do
use ExUnit.Case
alias Hypertrons.Channels.IMPubSub
alias Hypertrons.Channels.IMMessage.Event, as: IMMessageEvent
doctest IMPubSub
defmodule TestIMMessageEvent do
defstruct [:platform, :subtype]
end
@event %IMMessageEvent{
conversation: "1",
local_id: "1",
globa... | 25.034247 | 71 | 0.571546 |
629b5015ad41b42d045e43532c92a83aaacc93d6 | 1,246 | ex | Elixir | test/support/conn_case.ex | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | 6 | 2021-01-22T15:23:04.000Z | 2021-01-28T07:56:01.000Z | test/support/conn_case.ex | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | defmodule OrderApiWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 27.688889 | 62 | 0.724719 |
629b6c12db07ce747184b9df6c9d64a206da2e71 | 13,307 | exs | Elixir | test/ecto/repo/many_to_many_test.exs | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | test/ecto/repo/many_to_many_test.exs | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | test/ecto/repo/many_to_many_test.exs | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo.ManyToManyTest do
use ExUnit.Case, async: true
import Ecto, only: [put_meta: 2]
require Ecto.TestRepo, as: TestRepo
defmodule SubAssoc do
use Ecto.Schema
schema "sub_assoc" do
field :y, :string
belongs_to :my_assoc, MyAssoc
end
end
defmodule MyAssoc do
use... | 31.911271 | 108 | 0.667393 |
629b8f92977def353f18c35bb1abbaaf9e37c196 | 11,672 | ex | Elixir | lib/external_service.ex | doorgan/external_service | 5ff51abc9a52350c91b93bbbdf6d8a284b7c0471 | [
"Apache-2.0"
] | 1 | 2021-11-07T18:32:43.000Z | 2021-11-07T18:32:43.000Z | lib/external_service.ex | doorgan/external_service | 5ff51abc9a52350c91b93bbbdf6d8a284b7c0471 | [
"Apache-2.0"
] | null | null | null | lib/external_service.ex | doorgan/external_service | 5ff51abc9a52350c91b93bbbdf6d8a284b7c0471 | [
"Apache-2.0"
] | null | null | null | defmodule ExternalService do
@moduledoc """
ExternalService handles all retry and circuit breaker logic for calls to external services.
"""
alias ExternalService.RetryOptions
alias ExternalService.RateLimit
alias :fuse, as: Fuse
require Logger
@typedoc "Name of a fuse"
@type fuse_name :: term()
... | 33.253561 | 102 | 0.675805 |
629bb98a6aafdefb5b323c69c8c39ef8ab85bc4a | 4,627 | ex | Elixir | lib/earmark_parser/helpers/link_parser.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser/helpers/link_parser.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser/helpers/link_parser.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkParser.Helpers.LinkParser do
@moduledoc false
import EarmarkParser.Helpers.LeexHelpers, only: [tokenize: 2]
import EarmarkParser.Helpers.YeccHelpers, only: [parse!: 2]
import EarmarkParser.Helpers.StringHelpers, only: [behead: 2]
# Hopfully this will go away in v1.3
# ********************... | 35.868217 | 101 | 0.611844 |
629bce5c5b3800be10c37b421c9ba6eddd469778 | 1,861 | ex | Elixir | apps/activity_logger/test/support/factory.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/activity_logger/test/support/factory.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/activity_logger/test/support/factory.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-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 ... | 25.493151 | 84 | 0.696937 |
629bd6519e6eb4c8bba164c5d853b3a57bf9b449 | 1,754 | exs | Elixir | test/grizzly/command_class/thermostat_fan_state/get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/thermostat_fan_state/get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/thermostat_fan_state/get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.ThermostatFanState.Get.Test do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.ThermostatFanState.Get
describe "implements the Grizzly.Command behaviour" do
test "initializes command" do
assert {:ok, %Get{}} = Get.init(seq_number: 0x09)
... | 31.890909 | 89 | 0.653364 |
629c16506df94314d38de70c31d20d0442d33ae3 | 1,747 | ex | Elixir | lib/http_stream/adapter/httpoison.ex | subvisual/http_stream | 081fb87a7eadc4680560291fb3e39670d47fd115 | [
"0BSD"
] | 11 | 2019-09-13T13:44:52.000Z | 2022-01-27T01:14:06.000Z | lib/http_stream/adapter/httpoison.ex | subvisual/http_stream | 081fb87a7eadc4680560291fb3e39670d47fd115 | [
"0BSD"
] | 2 | 2020-09-29T22:02:21.000Z | 2020-09-30T23:05:48.000Z | lib/http_stream/adapter/httpoison.ex | subvisual/http_stream | 081fb87a7eadc4680560291fb3e39670d47fd115 | [
"0BSD"
] | 1 | 2020-09-22T19:00:36.000Z | 2020-09-22T19:00:36.000Z | if Code.ensure_loaded?(HTTPoison) do
defmodule HTTPStream.Adapter.HTTPoison do
@moduledoc """
Implements `HTTPStream.Adapter` for the HTTPoison client.
HTTPoison performs async requests through messages. This means there is an implicit timeout if, for some reason, the server stops responding. By default ... | 26.074627 | 266 | 0.63652 |
629c324ccffad927050e644ab5d289afaa7d5c3b | 5,507 | ex | Elixir | lib/oli/analytics/datashop.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/analytics/datashop.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/analytics/datashop.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.Analytics.Datashop do
@moduledoc """
For documentation on DataShop logging message formats, see:
https://pslcdatashop.web.cmu.edu/dtd/guide/tutor_message_dtd_guide_v4.pdf
https://pslcdatashop.web.cmu.edu/help?page=logging
https://pslcdatashop.web.cmu.edu/help?page=importFormatTd
"""
import... | 35.076433 | 101 | 0.635555 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.