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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73a8d41e444eb5d039697fdd91ffa47873393529 | 4,339 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/api/agent_users.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/home_graph/lib/google_api/home_graph/v1/api/agent_users.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/home_graph/lib/google_api/home_graph/v1/api/agent_users.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.211111 | 488 | 0.662595 |
73a8ea46d78c0aeb4c4dc72bd7a4b4d955b89107 | 939 | exs | Elixir | arena/phoenix_elixir/config/dev.exs | Jesterovskiy/api-fight | 2f23859eb7d0aa77e93bfe33aa9d05dd3c875854 | [
"MIT"
] | null | null | null | arena/phoenix_elixir/config/dev.exs | Jesterovskiy/api-fight | 2f23859eb7d0aa77e93bfe33aa9d05dd3c875854 | [
"MIT"
] | null | null | null | arena/phoenix_elixir/config/dev.exs | Jesterovskiy/api-fight | 2f23859eb7d0aa77e93bfe33aa9d05dd3c875854 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :phoenix_elixir, PhoenixElixir.Endpoint,
http:... | 29.34375 | 68 | 0.759318 |
73a901a993cada88555693bff55a54511184ba28 | 1,634 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_ssl_proxies_set_ssl_certificates_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_ssl_proxies_set_ssl_certificates_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_ssl_proxies_set_ssl_certificates_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 ... | 34.765957 | 210 | 0.76071 |
73a91ff819197a583020c115b9312b0b42aa5d4d | 1,170 | exs | Elixir | mix.exs | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | 16 | 2020-05-28T20:41:45.000Z | 2022-03-29T13:51:14.000Z | mix.exs | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | null | null | null | mix.exs | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | 1 | 2021-08-23T02:51:47.000Z | 2021-08-23T02:51:47.000Z | defmodule BeamFile.MixProject do
use Mix.Project
def project do
[
app: :beam_file,
version: "0.1.0",
elixir: "~> 1.11",
description: "An interface to the BEAM file format and a decompiler",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths... | 20.892857 | 75 | 0.561538 |
73a93b4da8afbce7d373e650932acd249cdc710f | 406 | ex | Elixir | lib/dynamo/app.ex | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | lib/dynamo/app.ex | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | lib/dynamo/app.ex | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | defmodule Dynamo.App do
@moduledoc false
use Application.Behaviour
@doc """
Manually start the application when such is
required at compilation time.
"""
def start do
:application.ensure_all_started(:dynamo)
end
@doc """
Application module callback. Starts Dynamo's supervisor.
"""
def sta... | 19.333333 | 58 | 0.711823 |
73a95243007cebdf50b19fa53404d9ac263e12e2 | 2,990 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/router_status_bgp_peer_status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_status_bgp_peer_status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_status_bgp_peer_status.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... | 39.342105 | 143 | 0.701338 |
73a95bcba799c1ec63d81583bcad9307533b4c4c | 602 | exs | Elixir | test/stripe/connect/country_spec_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | test/stripe/connect/country_spec_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | test/stripe/connect/country_spec_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.CountrySpecTest do
use Stripe.StripeCase, async: true
describe "retrieve/2" do
test "retrieves a country spec" do
assert {:ok, %Stripe.CountrySpec{}} = Stripe.CountrySpec.retrieve("US")
assert_stripe_requested(:get, "/v1/country_specs/US")
end
end
describe "list/2" do
... | 30.1 | 81 | 0.694352 |
73a97b45999d881bd165afb7f07852e2b68b9d84 | 250 | exs | Elixir | priv/repo/migrations/20151027005127_add_rf_codes_and_ifttt_to_switches.exs | nickgal/homemade_pi | a7b7df7d9214cb409ac5b133b52b70c13c98180c | [
"MIT"
] | null | null | null | priv/repo/migrations/20151027005127_add_rf_codes_and_ifttt_to_switches.exs | nickgal/homemade_pi | a7b7df7d9214cb409ac5b133b52b70c13c98180c | [
"MIT"
] | null | null | null | priv/repo/migrations/20151027005127_add_rf_codes_and_ifttt_to_switches.exs | nickgal/homemade_pi | a7b7df7d9214cb409ac5b133b52b70c13c98180c | [
"MIT"
] | null | null | null | defmodule HomemadePi.Repo.Migrations.AddRfCodesAndIftttToSwitches do
use Ecto.Migration
def change do
alter table(:switches) do
add :rf_code_on, :integer
add :rf_code_off, :integer
add :ifttt_id, :integer
end
end
end
| 20.833333 | 68 | 0.712 |
73a9b50af0b19133e24c619dcae539758aa2b51e | 1,382 | exs | Elixir | apps/aecore/test/aecore_keys_test.exs | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aecore/test/aecore_keys_test.exs | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aecore/test/aecore_keys_test.exs | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | defmodule AecoreKeysTest do
@moduledoc """
Unit tests for the keys module
"""
use ExUnit.Case
doctest Aecore.Keys.Worker
alias Aecore.Keys.Worker, as: Keys
alias Aecore.Chain.Worker, as: Chain
setup do
Keys.start_link([])
[]
end
@tag :keys
test "test if a pubkey is loaded" do
asser... | 28.791667 | 150 | 0.632417 |
73a9cf0ba234333017ca5c7286c223b3fd50edc7 | 3,194 | ex | Elixir | priv/cabbage/apps/itest/lib/contract_event.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/cabbage/apps/itest/lib/contract_event.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/cabbage/apps/itest/lib/contract_event.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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.552 | 87 | 0.596431 |
73a9f0bb299f59cb1e2563ff4f8313f38908329a | 1,456 | ex | Elixir | lib/philopets_web/router.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | lib/philopets_web/router.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | lib/philopets_web/router.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | defmodule PhilopetsWeb.Router do
use PhilopetsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {PhilopetsWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
... | 26 | 70 | 0.699176 |
73a9f6db1e69494459380c3e612c955bfbb5025f | 9,086 | ex | Elixir | farmbot_core/lib/farmbot_core/firmware_side_effects.ex | EarthEngineering/facetop_os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_core/lib/farmbot_core/firmware_side_effects.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/firmware_side_effects.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | defmodule FarmbotCore.FirmwareSideEffects do
@moduledoc "Handles firmware data and syncing it with BotState."
@behaviour FarmbotFirmware.SideEffects
require Logger
require FarmbotCore.Logger
alias FarmbotCore.{Asset, BotState, FirmwareEstopTimer, Leds}
@impl FarmbotFirmware.SideEffects
def handle_positio... | 28.936306 | 90 | 0.683029 |
73aa64ea93c92ed9cc4726cfcb597f9fa1f75764 | 1,099 | ex | Elixir | lib/ecto_mysql_extras/queries/table_size.ex | timothyvanderaerden/ecto_mysql_extras | 82a30f35e6869ca0040aee71de81841f0d8a3998 | [
"Apache-2.0"
] | null | null | null | lib/ecto_mysql_extras/queries/table_size.ex | timothyvanderaerden/ecto_mysql_extras | 82a30f35e6869ca0040aee71de81841f0d8a3998 | [
"Apache-2.0"
] | 9 | 2021-10-13T08:31:33.000Z | 2021-12-24T13:19:09.000Z | lib/ecto_mysql_extras/queries/table_size.ex | timothyvanderaerden/ecto_mysql_extras | 82a30f35e6869ca0040aee71de81841f0d8a3998 | [
"Apache-2.0"
] | 1 | 2021-12-29T16:52:00.000Z | 2021-12-29T16:52:00.000Z | defmodule EctoMySQLExtras.TableSize do
@moduledoc """
Query the total size of each table in the `Ecto.Repo` database.
Data is retrieved from the `information_schema` database and the `tables` table.
"""
@behaviour EctoMySQLExtras
def info do
%{
title: "Size of the tables (excluding indexes), des... | 23.382979 | 82 | 0.582348 |
73aaaa0d54d3e151b80a851bfa184f5240f24535 | 2,451 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/list_domain_mappings_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/list_domain_mappings_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/list_domain_mappings_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.542373 | 143 | 0.722154 |
73aaab950d39f059d8d29c6e2ab719a1532a6319 | 1,185 | ex | Elixir | lib/pxblog/endpoint.ex | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"MIT"
] | 1 | 2016-10-07T14:36:21.000Z | 2016-10-07T14:36:21.000Z | lib/pxblog/endpoint.ex | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"MIT"
] | null | null | null | lib/pxblog/endpoint.ex | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"MIT"
] | null | null | null | defmodule Pxblog.Endpoint do
use Phoenix.Endpoint, otp_app: :pxblog
socket "/socket", Pxblog.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 Plug.Static,
... | 27.55814 | 69 | 0.711392 |
73ab021982dbe122065c7c96bc29e2b62df57e46 | 3,163 | exs | Elixir | test/wallaby/http_client_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | test/wallaby/http_client_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | test/wallaby/http_client_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | defmodule Wallaby.HTTPClientTest do
use Wallaby.HttpClientCase, async: true
alias Wallaby.HTTPClient, as: Client
describe "request/4" do
test "sends the request with the correct params and headers", %{bypass: bypass} do
Bypass.expect(bypass, fn conn ->
conn = parse_body(conn)
assert co... | 30.413462 | 105 | 0.572242 |
73ab420b0447c286be5aa03d24d3b27bc1ede666 | 1,006 | ex | Elixir | lib/cafex/lock/consul/watch.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/lock/consul/watch.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/lock/consul/watch.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | defmodule Cafex.Lock.Consul.Watch do
@moduledoc false
use GenServer
@wait "5m"
@retry_ms 30 * 1000
defmodule State do
@moduledoc false
defstruct [:path, :index, :from]
end
def start_link(path, index, from) do
GenServer.start_link __MODULE__, [path, index, from]
end
def init([path, inde... | 23.395349 | 66 | 0.583499 |
73ab705184b8322e16491e381d45572b951cf742 | 2,011 | ex | Elixir | lib/authable/authentications/token.ex | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | lib/authable/authentications/token.ex | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | lib/authable/authentications/token.ex | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | 1 | 2021-01-12T00:55:56.000Z | 2021-01-12T00:55:56.000Z | defmodule Authable.Authentication.Token do
@moduledoc """
Base token authentication helper, implements Authable.Authentication
behaviour. Differently from Bearer or Session, this module is a generic
helper module. It enables to match with any token type from
'token store(Authable.Token)'.
"""
use Authabl... | 32.967213 | 73 | 0.727996 |
73abe72391975e935d742f6dcdbe0d1b583e1ef7 | 4,073 | exs | Elixir | test/flow/window/global_test.exs | SirWerto/flow | 2506fcdb87297f516f7da467c9b2898e4f45e80f | [
"Apache-2.0"
] | 398 | 2020-01-21T16:28:14.000Z | 2022-03-29T11:51:21.000Z | test/flow/window/global_test.exs | SirWerto/flow | 2506fcdb87297f516f7da467c9b2898e4f45e80f | [
"Apache-2.0"
] | 21 | 2020-02-03T11:00:38.000Z | 2022-03-30T17:15:18.000Z | test/flow/window/global_test.exs | SirWerto/flow | 2506fcdb87297f516f7da467c9b2898e4f45e80f | [
"Apache-2.0"
] | 24 | 2020-03-08T17:35:32.000Z | 2022-03-22T17:54:20.000Z | defmodule Flow.Window.GlobalTest do
use ExUnit.Case, async: true
test "trigger keep with large demand" do
partition_opts = [window: Flow.Window.global() |> Flow.Window.trigger_every(10), stages: 1]
assert Flow.from_enumerable(1..100)
|> Flow.partition(partition_opts)
|> Flow.reduce(f... | 32.325397 | 97 | 0.527866 |
73abe786bdffe29ce2def3589225db9f03081f04 | 101 | exs | Elixir | config/prod.exs | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | import Config
config :naive,
binance_client: Binance
config :streamer,
binance_client: Binance
| 12.625 | 25 | 0.782178 |
73ac038ed8aaf45fe311e4a7dd0b11717a0c586c | 243 | exs | Elixir | test/plug_helper.exs | brightroll/phoenix | b93022086322bcc1d797214a28e0c9710f537c22 | [
"MIT"
] | null | null | null | test/plug_helper.exs | brightroll/phoenix | b93022086322bcc1d797214a28e0c9710f537c22 | [
"MIT"
] | null | null | null | test/plug_helper.exs | brightroll/phoenix | b93022086322bcc1d797214a28e0c9710f537c22 | [
"MIT"
] | null | null | null | defmodule PlugHelper do
defmacro __using__(_opts) do
quote do
use Plug.Test
def simulate_request(router, http_method, path) do
conn = conn(http_method, path)
router.call(conn, [])
end
end
end
end
| 18.692308 | 56 | 0.633745 |
73ac3c9f6a9369dc5a52483958106ff05b35e331 | 3,216 | exs | Elixir | test/telemetria_test.exs | am-kantox/telemetria | 1198bd913c89ead397abd2e06a37cb05f557c188 | [
"MIT"
] | 15 | 2020-05-21T21:34:59.000Z | 2022-03-04T04:31:02.000Z | test/telemetria_test.exs | am-kantox/telemetria | 1198bd913c89ead397abd2e06a37cb05f557c188 | [
"MIT"
] | 16 | 2020-05-18T16:09:29.000Z | 2022-02-04T10:56:46.000Z | test/telemetria_test.exs | am-kantox/telemetria | 1198bd913c89ead397abd2e06a37cb05f557c188 | [
"MIT"
] | 4 | 2020-05-26T16:42:54.000Z | 2022-02-04T10:54:05.000Z | defmodule Telemetria.Test do
use ExUnit.Case
import ExUnit.CaptureLog
doctest Telemetria
alias Test.Telemetria.Example
setup_all do
Application.put_env(:logger, :console, [], persistent: true)
Application.put_env(:telemetria, :smart_log, false)
end
test "attaches telemetry events to module funct... | 27.254237 | 93 | 0.611007 |
73ac5648ade73e39fd16b7f32ae6c9b32064fe43 | 2,152 | exs | Elixir | apps/day9/test/day9_test.exs | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | apps/day9/test/day9_test.exs | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | apps/day9/test/day9_test.exs | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | defmodule Day9Test do
use ExUnit.Case
doctest Day9
test "UL corner" do
assert Day9.process("""
19999
99999
99999
99999
99999
""") == 2
end
test "UR corner" do
assert Day9.process("""
99991
99999
99999
99999
99999
""") == 2
end
... | 13.042424 | 27 | 0.465613 |
73ac5ebac174dad08487a8ef85a857eb94945e4d | 2,831 | ex | Elixir | clients/books/lib/google_api/books/v1/model/bookshelf.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/bookshelf.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/books/lib/google_api/books/v1/model/bookshelf.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... | 38.256757 | 182 | 0.665842 |
73ac75984e84faef47bcb566636311c61ebfbcf4 | 1,285 | exs | Elixir | test/club/accounts/projectors/user_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | test/club/accounts/projectors/user_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | test/club/accounts/projectors/user_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Accounts.Projectors.UserTest do
use Club.DataCase
alias Club.ReadRepo, as: Repo
alias Club.Accounts
alias Club.Accounts.Projections.User, as: UserProjection
alias Club.Accounts.Events.{
UserRegistered
}
@topic "domain:accounts"
setup do
Phoenix.PubSub.subscribe(Club.EventBus... | 24.245283 | 72 | 0.69572 |
73acdb643a2bf26b15c872c2b588815bf05d82af | 1,036 | ex | Elixir | lib/app/helpers.ex | 4DA/bleroma | 26a533373f121e54f49d7ce59fd6e246fe51f738 | [
"MIT"
] | 5 | 2020-06-30T14:12:21.000Z | 2021-11-14T21:16:02.000Z | lib/app/helpers.ex | 4DA/bleroma | 26a533373f121e54f49d7ce59fd6e246fe51f738 | [
"MIT"
] | null | null | null | lib/app/helpers.ex | 4DA/bleroma | 26a533373f121e54f49d7ce59fd6e246fe51f738 | [
"MIT"
] | null | null | null | defmodule Bleroma.Helpers do
require Hunter.Config
require Hunter.Api
alias Hunter.{Api.Request, Config}
defp get_headers(nil), do: []
defp get_headers(%Hunter.Client{bearer_token: token}) do
[{:Authorization, "Bearer #{token}"}]
end
defp get_headers(headers) when is_list(headers), do: headers
... | 23.545455 | 88 | 0.656371 |
73ace80c73d327ea63356a53522e1deaf502a13d | 5,524 | exs | Elixir | test/avro_rpc/convert_record_test.exs | cafreeman/avro_rpc | e690ace1046499361819d58a71f5fa9507f2cdeb | [
"MIT"
] | null | null | null | test/avro_rpc/convert_record_test.exs | cafreeman/avro_rpc | e690ace1046499361819d58a71f5fa9507f2cdeb | [
"MIT"
] | null | null | null | test/avro_rpc/convert_record_test.exs | cafreeman/avro_rpc | e690ace1046499361819d58a71f5fa9507f2cdeb | [
"MIT"
] | null | null | null | defmodule ConvertRecordTest do
use ExUnit.Case
@sample_record {
{
:avro_record,
:Customer,
[
{"id", :string},
{"phoneNumber", :string},
{"data", :string},
{"createdAt", :long},
{"updatedAt", :long}
]
},
[
"1234e967-dac2-4534-a023-ffa... | 48.45614 | 738 | 0.575308 |
73acfda9ef3880cd40fc1dc96dd9a6df5f04b111 | 1,155 | ex | Elixir | lib/phoenix/socket/pool_supervisor.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2019-07-15T21:58:09.000Z | 2019-07-15T21:58:09.000Z | lib/phoenix/socket/pool_supervisor.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | lib/phoenix/socket/pool_supervisor.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket.PoolSupervisor do
@moduledoc false
use Supervisor
def start_link(args) do
Supervisor.start_link(__MODULE__, args)
end
def start_child(endpoint, name, key, args) do
ets = endpoint.config({:socket, name})
partitions = :ets.lookup_element(ets, :partitions, 2)
sup = :ets... | 26.25 | 80 | 0.652814 |
73ad233f32837c02337d546c8b8f2620269d0301 | 1,969 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_roles_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_roles_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_roles_list_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.150943 | 157 | 0.726765 |
73ad554ecdba67e01146ab8004d29c107a746023 | 1,944 | exs | Elixir | test/segment_tree_test.exs | adrienmo/segment_tree | f8bb7067e5e50069f93c4a0a50c735e658fdb36d | [
"MIT"
] | 1 | 2020-01-20T19:10:36.000Z | 2020-01-20T19:10:36.000Z | test/segment_tree_test.exs | adrienmo/segment_tree | f8bb7067e5e50069f93c4a0a50c735e658fdb36d | [
"MIT"
] | null | null | null | test/segment_tree_test.exs | adrienmo/segment_tree | f8bb7067e5e50069f93c4a0a50c735e658fdb36d | [
"MIT"
] | null | null | null | defmodule SegmentTreeTest do
use ExUnit.Case
doctest SegmentTree
test "create a new Segment Tree" do
assert SegmentTree.new(1_000, &Kernel.+/2) == %SegmentTree{
default: 0,
tree: %{},
aggregate_fun: &Kernel.+/2,
max_index: 1_023
}
assert Seg... | 29.454545 | 129 | 0.476337 |
73ad86d6165d0e5ce7f605f1e7ebe4f3f6b2b10e | 10,106 | ex | Elixir | lib/chat_api/emails/email.ex | lastbit-io/papercups | 84ef2f647ee1f633e0d226b2312cd8f2e9fc59d7 | [
"MIT"
] | null | null | null | lib/chat_api/emails/email.ex | lastbit-io/papercups | 84ef2f647ee1f633e0d226b2312cd8f2e9fc59d7 | [
"MIT"
] | null | null | null | lib/chat_api/emails/email.ex | lastbit-io/papercups | 84ef2f647ee1f633e0d226b2312cd8f2e9fc59d7 | [
"MIT"
] | null | null | null | defmodule ChatApi.Emails.Email do
import Swoosh.Email
import Ecto.Changeset
alias ChatApi.Customers.Customer
alias ChatApi.Messages.Message
alias ChatApi.Users.UserProfile
@type t :: Swoosh.Email.t()
@from_address System.get_env("FROM_ADDRESS") || ""
@backend_url System.get_env("BACKEND_URL") || ""
... | 25.912821 | 98 | 0.598258 |
73adbb6a292269573f89b7e157614d782448507b | 29,741 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/api/projects.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... | 53.587387 | 1,328 | 0.6718 |
73adf6094525aeff1043fb77e24c8566d34ec229 | 31,603 | ex | Elixir | data/auto_generated/video/f7bc9a5473aa1b8ec99b8a8635205521.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/auto_generated/video/f7bc9a5473aa1b8ec99b8a8635205521.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/auto_generated/video/f7bc9a5473aa1b8ec99b8a8635205521.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule(Data.AutoGenerated.Video.Rendered_f7bc9a5473aa1b8ec99b8a8635205521) do
@moduledoc "#{"Alltagsroute 11: von Wilhelmsburg zur Veddel"}
AUTOGENERATED. To update this file, run mix velo.videos.generate.
See Video.Rendered for functionality.
"
@behaviour Video.Rendered
@impl Video.Rendered
def(nam... | 74.185446 | 98 | 0.698446 |
73ae08dc72bbdbf3a71e8f2e5f53e98c96cb2d8f | 1,799 | exs | Elixir | test/teslamate/vehicles/vehicle/charging_sync_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/charging_sync_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2021-05-12T00:04:50.000Z | 2021-05-12T00:04:50.000Z | test/teslamate/vehicles/vehicle/charging_sync_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2019-10-24T13:17:57.000Z | 2019-10-24T13:17:57.000Z | defmodule TeslaMate.Vehicles.Vehicle.ChargingSyncTest do
use TeslaMate.DataCase
use TeslaMate.VehicleCase
import ExUnit.CaptureLog
alias TeslaMate.Log
@log_opts format: "[$level] $message\n",
colors: [enabled: false]
@tag :capture_log
test "handles invalid charge data", %{test: name} do
... | 29.016129 | 92 | 0.558088 |
73ae3547efc2878442d37b4ac87c39eaba9ba6b5 | 1,002 | ex | Elixir | lib/logger_backend_sqlite/log.ex | ConnorRigby/logger_backend_sqlite | 3a6508e5342265548c91f8505dff9b8093e1f8ce | [
"MIT"
] | 5 | 2018-09-12T19:29:38.000Z | 2019-04-04T01:18:32.000Z | lib/logger_backend_sqlite/log.ex | ConnorRigby/logger_backend_sqlite | 3a6508e5342265548c91f8505dff9b8093e1f8ce | [
"MIT"
] | 1 | 2019-04-04T09:41:40.000Z | 2019-04-04T16:39:51.000Z | lib/logger_backend_sqlite/log.ex | ConnorRigby/logger_backend_sqlite | 3a6508e5342265548c91f8505dff9b8093e1f8ce | [
"MIT"
] | null | null | null | defmodule LoggerBackendSqlite.Log do
@moduledoc false
@default_meta [
:application,
:module,
:function,
:file,
:line,
:registered_name
]
defstruct [
:id,
:level,
:group_leader_node,
:message,
:logged_at_ndt,
... | 24.439024 | 49 | 0.492016 |
73ae577db1b6158ec74aefcab02831dc7dc58739 | 1,898 | ex | Elixir | apps/tai/lib/tai/commands/advisors.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/commands/advisors.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/commands/advisors.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Commands.Advisors do
import Tai.Commands.Table, only: [render!: 2]
@header [
"Group ID",
"Advisor ID",
"Status",
"PID"
]
@spec list() :: no_return
@spec list(list) :: no_return
def list(args \\ []) do
store_id = Keyword.get(args, :store_id, Tai.Advisors.Store.default_stor... | 26.732394 | 83 | 0.639621 |
73ae843e71cde15a627a54622d8fc16e510904f8 | 159 | ex | Elixir | testData/org/elixir_lang/reference/callable/issue_1270/outer_module_relative_qualifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/reference/callable/issue_1270/outer_module_relative_qualifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/reference/callable/issue_1270/outer_module_relative_qualifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule Autocomplete do
defmodule State do
def another_test do
end
end
def test do
State.<caret>
end
defp internal_test do
end
end
| 11.357143 | 25 | 0.685535 |
73aecf7810ae0a3f4aa5b5272dc7db0c2a1a5e68 | 1,487 | exs | Elixir | priv/perf/config/config.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/perf/config/config.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/perf/config/config.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Better adapter for tesla.
# default httpc would fail when doing post request without param.
# https://github.com/googleapis/elixir-google-api/issues/26#issuecomment-360209019
config :tesla, adapter: Tesla.Adapter.Hackney
ethereum_client_timeout_ms = 20_000
config :ethereumex,
http_options: [recv_t... | 34.581395 | 82 | 0.781439 |
73aeffb1b116eb99452504b4fe0bf3c09b5c78ed | 1,231 | ex | Elixir | lib/api_elixir_films_web/views/error_helpers.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | lib/api_elixir_films_web/views/error_helpers.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | lib/api_elixir_films_web/views/error_helpers.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | defmodule ApiElixirFilmsWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a stat... | 36.205882 | 83 | 0.676686 |
73af20ad222bb43891d18b4d519b2793309c3bb8 | 144 | exs | Elixir | test/broadcast_test.exs | kentaro/broadcast | 4d24d927a146bd57e2ea430978e6d38405d065fd | [
"MIT"
] | null | null | null | test/broadcast_test.exs | kentaro/broadcast | 4d24d927a146bd57e2ea430978e6d38405d065fd | [
"MIT"
] | null | null | null | test/broadcast_test.exs | kentaro/broadcast | 4d24d927a146bd57e2ea430978e6d38405d065fd | [
"MIT"
] | null | null | null | defmodule BroadcastTest do
use ExUnit.Case
doctest Broadcast
test "greets the world" do
assert Broadcast.hello() == :world
end
end
| 16 | 38 | 0.722222 |
73af287fa03940352a3057395a75b649e39d1380 | 1,426 | ex | Elixir | lib/mesh_relay_web/channels/user_socket.ex | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 5 | 2019-03-31T13:02:49.000Z | 2021-01-01T05:18:45.000Z | lib/mesh_relay_web/channels/user_socket.ex | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 4 | 2017-07-16T06:30:49.000Z | 2018-06-22T19:37:13.000Z | lib/mesh_relay_web/channels/user_socket.ex | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 3 | 2017-10-18T00:12:57.000Z | 2021-07-27T08:10:39.000Z | defmodule MeshRelayWeb.UserSocket do
use Phoenix.Socket
require Logger
## Channels
# channel "room:*", MeshRelay.RoomChannel
channel "user:*", MeshRelayWeb.UserChannel
channel "stats", MeshRelayWeb.StatsChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, P... | 31.688889 | 83 | 0.69986 |
73af3c8b326142c53f800247d780ed0070d9a1e1 | 906 | ex | Elixir | ex_mon/lib/ex_mon/trainer/pokemon.ex | cesaraugustomt/ExMon_API | c489c0fd5b928b7061102d6776a388dfe7aef8b7 | [
"MIT"
] | null | null | null | ex_mon/lib/ex_mon/trainer/pokemon.ex | cesaraugustomt/ExMon_API | c489c0fd5b928b7061102d6776a388dfe7aef8b7 | [
"MIT"
] | null | null | null | ex_mon/lib/ex_mon/trainer/pokemon.ex | cesaraugustomt/ExMon_API | c489c0fd5b928b7061102d6776a388dfe7aef8b7 | [
"MIT"
] | null | null | null | defmodule ExMon.Trainer.Pokemon do
use Ecto.Schema
import Ecto.Changeset
alias ExMon.Trainer
@primary_key {:id, Ecto.UUID, autogenerate: true}
@foreign_key_type Ecto.UUID
schema "pokemons" do
field :name, :string
field :nickname, :string
field :weight, :integer
field :types, {:array, :stri... | 22.097561 | 60 | 0.664459 |
73af4f0ec6f628f21628d94da9562a08c434123a | 33,843 | exs | Elixir | test/phoenix_live_view/engine_test.exs | nickolaich/phoenix_live_view | 2e9db09b11d42fabfd5a388980ff2b15d11da527 | [
"MIT"
] | null | null | null | test/phoenix_live_view/engine_test.exs | nickolaich/phoenix_live_view | 2e9db09b11d42fabfd5a388980ff2b15d11da527 | [
"MIT"
] | null | null | null | test/phoenix_live_view/engine_test.exs | nickolaich/phoenix_live_view | 2e9db09b11d42fabfd5a388980ff2b15d11da527 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.EngineTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView.{Engine, Rendered}
def safe(do: {:safe, _} = safe), do: safe
def unsafe(do: {:safe, content}), do: content
describe "rendering" do
test "escapes HTML" do
template = """
<start> <%= "<escaped>" %>
... | 39.352326 | 115 | 0.51207 |
73afaad3bcf2536a476a393f6dacc3e2c24ac20a | 869 | exs | Elixir | test/flawless/error_test.exs | colinsmetz/flawless | 87fd76f88758f16b42813b1e0f0f0ee8163d9185 | [
"MIT"
] | null | null | null | test/flawless/error_test.exs | colinsmetz/flawless | 87fd76f88758f16b42813b1e0f0f0ee8163d9185 | [
"MIT"
] | null | null | null | test/flawless/error_test.exs | colinsmetz/flawless | 87fd76f88758f16b42813b1e0f0f0ee8163d9185 | [
"MIT"
] | null | null | null | defmodule Flawless.ErrorTest do
use ExUnit.Case, async: true
alias Flawless.Error
test "new/2 builds a valid error" do
assert Error.new("my test error", ["a", "b"]) == %Error{
message: "my test error",
context: ["a", "b"]
}
end
test "message_from_template/2 replaces ... | 33.423077 | 96 | 0.589183 |
73afdf77f383fee92b14ab4b78b64d5cc6319161 | 116 | exs | Elixir | .formatter.exs | neysofu/securion | 5c2733b7891df1e754e8e23dc7d3bc3a9fcd7454 | [
"0BSD"
] | 143 | 2016-07-21T22:54:57.000Z | 2021-12-31T13:53:03.000Z | .formatter.exs | neysofu/securion | 5c2733b7891df1e754e8e23dc7d3bc3a9fcd7454 | [
"0BSD"
] | 154 | 2016-08-04T18:35:13.000Z | 2022-01-12T06:42:17.000Z | .formatter.exs | neysofu/securion | 5c2733b7891df1e754e8e23dc7d3bc3a9fcd7454 | [
"0BSD"
] | 21 | 2016-07-23T18:43:14.000Z | 2021-06-03T15:09:21.000Z | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 79
]
| 19.333333 | 70 | 0.577586 |
73afec092f8ee471b084568a1b8c092ac19a72fc | 228 | exs | Elixir | ex_cubic_ods_ingestion/priv/repo/migrations/20220308235013_cubic_ods_load_table_not_null.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | null | null | null | ex_cubic_ods_ingestion/priv/repo/migrations/20220308235013_cubic_ods_load_table_not_null.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | 2 | 2022-03-10T22:29:35.000Z | 2022-03-18T19:52:27.000Z | ex_cubic_ods_ingestion/priv/repo/migrations/20220308235013_cubic_ods_load_table_not_null.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | null | null | null | defmodule ExCubicOdsIngestion.Repo.Migrations.CubicOdsLoadTableNotNull do
use Ecto.Migration
def change do
alter table(:cubic_ods_loads) do
modify(:table_id, :bigint, null: false, from: :bigint)
end
end
end
| 22.8 | 73 | 0.745614 |
73b007e1b6449e2d4eec3798ba1a26afb4cf5218 | 3,986 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.024096 | 202 | 0.752383 |
73b06dc4dbd9b93bbb4752c88a402d7a7ebb9126 | 1,383 | ex | Elixir | test/support/data_case.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | test/support/data_case.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | test/support/data_case.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | defmodule Plausible.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every te... | 26.09434 | 77 | 0.685466 |
73b0b7e1b007b460d5d65d21bceb6afa5e488b5a | 4,449 | ex | Elixir | lib/blockchain_api/query/account_balance.ex | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | lib/blockchain_api/query/account_balance.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | lib/blockchain_api/query/account_balance.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Query.AccountBalance do
@moduledoc false
import Ecto.Query, warn: false
use Timex
alias BlockchainAPI.{Repo, Util, Schema.AccountBalance}
def get_latest!(address) do
AccountBalance
|> where([a], a.account_address == ^address)
|> order_by([a], desc: a.block_height)
|> ... | 25.866279 | 97 | 0.594066 |
73b0bc8dd2e9982c86eb6acdb80f193f08ce416b | 1,123 | exs | Elixir | features/fixtures/mix_umbrella/apps/awesome/config/config.exs | hexa2k9/LicenseFinder | 5413f00d87e80ea631743e6fe451d584d72966ca | [
"MIT"
] | 1,039 | 2015-01-02T03:34:44.000Z | 2022-03-28T09:51:55.000Z | features/fixtures/mix_umbrella/apps/awesome/config/config.exs | hexa2k9/LicenseFinder | 5413f00d87e80ea631743e6fe451d584d72966ca | [
"MIT"
] | 525 | 2015-01-02T22:05:58.000Z | 2022-03-31T11:21:02.000Z | features/fixtures/mix_umbrella/apps/awesome/config/config.exs | hexa2k9/LicenseFinder | 5413f00d87e80ea631743e6fe451d584d72966ca | [
"MIT"
] | 274 | 2015-01-03T21:18:23.000Z | 2022-03-30T03:11:05.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.225806 | 73 | 0.751558 |
73b0bfed3f77e1e16126b8f3b8f6c10e12eb2176 | 1,105 | exs | Elixir | clients/compute/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Compute.V1.Mixfile do
use Mix.Project
@version "0.3.0"
def project() do
[
app: :google_api_compute,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: pac... | 22.55102 | 107 | 0.584615 |
73b11a7eb935d8f4a596599c3d6af19ca5fafb92 | 770 | ex | Elixir | test/support/channel_case.ex | ctbucha/phoenix-reasonreact-example | cb6c34eaa74108e0cf14f838eac208ef8f073a22 | [
"MIT"
] | 11 | 2018-07-20T07:37:06.000Z | 2020-08-18T17:48:00.000Z | test/support/channel_case.ex | ctbucha/phoenix-reasonreact-example | cb6c34eaa74108e0cf14f838eac208ef8f073a22 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | ctbucha/phoenix-reasonreact-example | cb6c34eaa74108e0cf14f838eac208ef8f073a22 | [
"MIT"
] | 1 | 2018-07-20T01:48:02.000Z | 2018-07-20T01:48:02.000Z | defmodule MyappWeb.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 interacts with... | 22.647059 | 58 | 0.724675 |
73b1301957a9230f3dcd595176fbb8ae65156cd0 | 1,681 | ex | Elixir | lib/nabo.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | lib/nabo.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | lib/nabo.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | defmodule Nabo do
@moduledoc """
Nabo is a simple, fast blog engine written in Elixir.
Nabo is designed to be integrate-able to other components in your application like
Phoenix or Plug. It does not include stuff like routing or html generating,
but only focuses on one thing and does it well: manages your bl... | 23.676056 | 85 | 0.653183 |
73b13d41fa736227b3d73901abf2753a940f5e06 | 3,024 | exs | Elixir | apps/gitgud_web/test/gitgud_web/controllers/ssh_key_controller_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 1 | 2019-09-08T07:48:10.000Z | 2019-09-08T07:48:10.000Z | apps/gitgud_web/test/gitgud_web/controllers/ssh_key_controller_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud_web/test/gitgud_web/controllers/ssh_key_controller_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | defmodule GitGud.Web.SSHKeyControllerTest do
use GitGud.Web.ConnCase, async: true
use GitGud.Web.DataFactory
alias GitGud.DB
alias GitGud.User
alias GitGud.SSHKey
setup :create_user
test "renders ssh authentication key creation form if authenticated", %{conn: conn, user: user} do
conn = Plug.Test.i... | 40.32 | 127 | 0.687169 |
73b17fbc041dc572415e3e60aa7eef58691f7a71 | 8,496 | ex | Elixir | lib/swoosh/adapters/amazon_ses.ex | feld/swoosh | 05e70573385830bb345e0fa5f5cc1d1ad524a90a | [
"MIT"
] | 1,214 | 2016-03-21T16:56:42.000Z | 2022-03-31T19:10:11.000Z | lib/swoosh/adapters/amazon_ses.ex | feld/swoosh | 05e70573385830bb345e0fa5f5cc1d1ad524a90a | [
"MIT"
] | 399 | 2016-03-21T23:11:32.000Z | 2022-03-04T10:52:28.000Z | deps/swoosh/lib/swoosh/adapters/amazon_ses.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 208 | 2016-03-21T21:12:11.000Z | 2022-03-04T06:35:33.000Z | defmodule Swoosh.Adapters.AmazonSES do
@moduledoc ~S"""
An adapter that sends email using the Amazon Simple Email Service Query API.
This email adapter makes use of the Amazon SES SendRawEmail action and generates
a SMTP style message containing the information to be emailed. This allows for
greater more cus... | 29.397924 | 115 | 0.672081 |
73b1c714d73a6addd7ebe12e671f7123e3fde95a | 453 | ex | Elixir | lib/bencodelix/supervisor.ex | nodrygo/bencodelix | 7aa4787793ef0c362e7b4b19259eba7664445715 | [
"MIT"
] | 2 | 2016-04-01T21:03:17.000Z | 2016-04-01T21:04:00.000Z | lib/bencodelix/supervisor.ex | nodrygo/bencodelix | 7aa4787793ef0c362e7b4b19259eba7664445715 | [
"MIT"
] | null | null | null | lib/bencodelix/supervisor.ex | nodrygo/bencodelix | 7aa4787793ef0c362e7b4b19259eba7664445715 | [
"MIT"
] | null | null | null | defmodule Bencodelix.Supervisor do
use Supervisor.Behaviour
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [
# Define workers and child supervisors to be supervised
# worker(Bencodelix.Worker, [])
]
# See http://elixir-lang.org/docs/stable/... | 23.842105 | 70 | 0.701987 |
73b1f9689da20d4ff35b8d15add63f8b5e8e156f | 1,565 | exs | Elixir | deps/earmark/mix.exs | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | deps/earmark/mix.exs | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | deps/earmark/mix.exs | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | Code.eval_file "tasks/readme.exs"
defmodule Earmark.Mixfile do
use Mix.Project
def project do
[
app: :earmark,
version: "1.0.3",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
escript: escript_config(),
deps: deps(),
descri... | 24.453125 | 75 | 0.52524 |
73b209bf2aa83f443ab525807daaeb49e9860ab5 | 882 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.666667 | 74 | 0.758503 |
73b20ec814a4ef7461cf1bd0558e3904bc3e607d | 834 | exs | Elixir | test/k8s/discovery/driver/file_test.exs | thephw/k8s | a4d157ad0191ac49b27ec9197f342d8d4d33e52a | [
"MIT"
] | 226 | 2019-02-03T00:49:32.000Z | 2022-03-30T15:02:22.000Z | test/k8s/discovery/driver/file_test.exs | thephw/k8s | a4d157ad0191ac49b27ec9197f342d8d4d33e52a | [
"MIT"
] | 109 | 2019-01-20T20:39:33.000Z | 2022-03-31T20:21:34.000Z | test/k8s/discovery/driver/file_test.exs | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | 43 | 2019-02-07T01:18:31.000Z | 2022-03-08T04:15:33.000Z | # credo:disable-for-this-file
defmodule K8s.Discovery.Driver.FileTest do
use ExUnit.Case, async: true
alias K8s.Discovery.Driver.File
@example_config "test/support/discovery/example.json"
describe "resources/2" do
test "returns a list of API resources" do
{:ok, resources} = File.resources("v1", %K8s... | 30.888889 | 89 | 0.685851 |
73b21821f4322cd7de24cca3f350ae0ef1d2d03e | 400 | ex | Elixir | lib/militerm/data/flags.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | lib/militerm/data/flags.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | lib/militerm/data/flags.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | defmodule Militerm.Data.Flags do
use Ecto.Schema
import Ecto.Changeset
schema "flags" do
field :entity_id, :string
field :flags, {:array, :string}
timestamps()
end
@doc false
def changeset(flags, attrs) do
flags
|> cast(attrs, [
:entity_id,
:flags
])
|> validate_re... | 16 | 36 | 0.6125 |
73b25282408a67851ff0fe05c20aa20999e925fa | 37,390 | ex | Elixir | lib/websockex.ex | valiot/websockex | 569392dc1262395463ed97135e34ea519955ba93 | [
"MIT"
] | null | null | null | lib/websockex.ex | valiot/websockex | 569392dc1262395463ed97135e34ea519955ba93 | [
"MIT"
] | null | null | null | lib/websockex.ex | valiot/websockex | 569392dc1262395463ed97135e34ea519955ba93 | [
"MIT"
] | null | null | null | defmodule WebSockex do
alias WebSockex.{Utils}
@handshake_guid "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
@moduledoc ~S"""
A client handles negotiating the connection, then sending frames, receiving
frames, closing, and reconnecting that connection.
A simple client implementation would be:
```
defmodule ... | 31.420168 | 98 | 0.626504 |
73b252d7cc95291fa629d37a5aee794baf7e1dd7 | 1,345 | ex | Elixir | lib/pub_sub_example.ex | kevindwells/broadway_cloud_pub_sub_example | 65109ac6f710527ee7ddf8e924f0f1c9c517abc3 | [
"Apache-2.0"
] | 2 | 2020-11-16T20:41:05.000Z | 2021-02-24T14:09:53.000Z | lib/pub_sub_example.ex | kevindwells/broadway_cloud_pub_sub_example | 65109ac6f710527ee7ddf8e924f0f1c9c517abc3 | [
"Apache-2.0"
] | null | null | null | lib/pub_sub_example.ex | kevindwells/broadway_cloud_pub_sub_example | 65109ac6f710527ee7ddf8e924f0f1c9c517abc3 | [
"Apache-2.0"
] | null | null | null | defmodule PubSubExample do
@moduledoc """
Example project for consuming Cloud Pub/Sub messages with `BroadwayCloudPubSub`.
"""
@doc """
Hello world.
## Examples
iex> PubSubExample.hello()
:world
"""
def hello do
:world
end
@doc """
Returns a value from the application config.
... | 22.04918 | 86 | 0.671375 |
73b25dd89e064491a37508a7ed0c4731255455b0 | 1,604 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/vpn_gateway_vpn_gateway_interface.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/vpn_gateway_vpn_gateway_interface.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/vpn_gateway_vpn_gateway_interface.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... | 32.08 | 114 | 0.72818 |
73b2658077350fb4dac4afe24390026794273290 | 553 | exs | Elixir | test/ambry_web/static_files_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | test/ambry_web/static_files_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | test/ambry_web/static_files_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule AmbryWeb.StaticFilesTest do
use AmbryWeb.ConnCase
setup :register_and_put_user_api_token
describe "GET /uploads/:path" do
test "returns 401 if missing api token", %{conn: conn} do
conn = remove_user_api_token(conn)
conn = get(conn, "/uploads/media/non-existent-file")
assert "Un... | 25.136364 | 64 | 0.679928 |
73b294d6e74bea98150496ad37959a61350d9816 | 57 | ex | Elixir | web/views/layout_view.ex | CaseyKelly/PhoenixAuthAPI | d3795f9dbc94efbd3aa869a6c4960add1a68e05f | [
"Apache-2.0"
] | null | null | null | web/views/layout_view.ex | CaseyKelly/PhoenixAuthAPI | d3795f9dbc94efbd3aa869a6c4960add1a68e05f | [
"Apache-2.0"
] | null | null | null | web/views/layout_view.ex | CaseyKelly/PhoenixAuthAPI | d3795f9dbc94efbd3aa869a6c4960add1a68e05f | [
"Apache-2.0"
] | null | null | null | defmodule MyApp.LayoutView do
use MyApp.Web, :view
end
| 14.25 | 29 | 0.77193 |
73b2a06d8580fcb8c7f02592c9ba15881ffa6d45 | 3,799 | exs | Elixir | test/chat_api/forwarding_addresses_test.exs | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | test/chat_api/forwarding_addresses_test.exs | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | test/chat_api/forwarding_addresses_test.exs | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | defmodule ChatApi.ForwardingAddressesTest do
use ChatApi.DataCase, async: true
import ChatApi.Factory
alias ChatApi.ForwardingAddresses
describe "forwarding_addresses" do
alias ChatApi.ForwardingAddresses.ForwardingAddress
@update_attrs %{
forwarding_email_address: "updated@forwarding.com",
... | 35.504673 | 98 | 0.71782 |
73b2a106113be721d78345c97c146ed9f6303ba1 | 544 | ex | Elixir | lib/ash/error/forbidden.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/error/forbidden.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/error/forbidden.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Error.Forbidden do
@moduledoc "Used when authorization for an action fails"
use Ash.Error.Exception
def_ash_error([:errors, stacktraces?: true], class: :forbidden)
defimpl Ash.ErrorKind do
def id(_), do: Ash.UUID.generate()
def message(%{errors: errors, stacktraces?: stacktraces?}) whe... | 24.727273 | 89 | 0.698529 |
73b2db4b39c65914417094d58accd18770318f11 | 931 | ex | Elixir | apps/decoder_gtfs/lib/decoder/gtfs.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/decoder_gtfs/lib/decoder/gtfs.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/decoder_gtfs/lib/decoder/gtfs.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Decoder.Gtfs do
@moduledoc """
Defines a `Decoder` impl for GTFS data.
## Configuration
* `chunk_size` - Limits chunks by bytes. Defaults to 100.
"""
use Definition, schema: Decoder.Gtfs.V1
use JsonSerde, alias: "decoder_gtfs"
@derive Jason.Encoder
defstruct chunk_size: 100
defimpl Dec... | 20.23913 | 70 | 0.662728 |
73b2dbc9a967c5651cd54067b20e3ed939db1663 | 847 | ex | Elixir | test/bearings_web/features/pages/dailies_show_page.ex | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 3 | 2018-05-29T12:16:14.000Z | 2019-09-25T21:12:36.000Z | test/bearings_web/features/pages/dailies_show_page.ex | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 23 | 2018-05-25T21:09:43.000Z | 2021-12-16T05:45:25.000Z | test/bearings_web/features/pages/dailies_show_page.ex | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | null | null | null | defmodule BearingsWeb.DailiesShowPage do
@moduledoc """
Module to interact with dailies show pages
"""
use Wallaby.DSL
import Wallaby.Query, only: [css: 1, css: 2]
alias BearingsWeb.Endpoint
alias BearingsWeb.Router.Helpers, as: Routes
def visit_page(session, owner, daily) do
visit(
sessio... | 22.289474 | 92 | 0.645809 |
73b2f9f0ecd616efa2fdb0bbc7a0e8b7a5c31a85 | 1,398 | ex | Elixir | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/deserializer.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.Preview.Addons/lib/microsoft/azure/management/preview/addons/deserializer.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/deserializer.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.Preview.Addons.Deserializer do
@moduledoc """
Helper functions for deserializing responses into models
"""
@do... | 35.846154 | 139 | 0.63877 |
73b320808018987a25510233134a71118c04c6cb | 1,182 | ex | Elixir | lib/lint/rules/trailing_question_mark.ex | VadymBerezdetskyi/accent | 19d2205c7594ac5f0de40e2aaa8ff3c5190a8518 | [
"BSD-3-Clause"
] | null | null | null | lib/lint/rules/trailing_question_mark.ex | VadymBerezdetskyi/accent | 19d2205c7594ac5f0de40e2aaa8ff3c5190a8518 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/lint/rules/trailing_question_mark.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.Lint.Rules.TrailingQuestionMark do
@moduledoc """
Checks that question marks are replicated between both source and translation.
"""
@behaviour Accent.Lint.Rule
@regex ~r/.+\?$/
alias Accent.Lint.Message
def lint(value = %{entry: %{is_master: true}}, _), do: value
def lint(value, _... | 28.142857 | 82 | 0.633672 |
73b33ccff5fd84d6b19055e5e9c9e7827aa0dddb | 1,322 | ex | Elixir | lib/rdf/exceptions.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | lib/rdf/exceptions.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | lib/rdf/exceptions.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.IRI.InvalidError do
defexception [:message]
end
defmodule RDF.Literal.InvalidError do
defexception [:message]
end
defmodule RDF.Triple.InvalidSubjectError do
defexception [:subject]
def message(%{subject: subject}) do
"'#{inspect(subject)}' is not a valid subject of a RDF.Triple"
end
end
... | 22.033333 | 76 | 0.760968 |
73b358abdbfb84dd6c82168a255b4c2ff2c926fd | 4,298 | ex | Elixir | lib/mix/tasks/ecto.rollback.ex | thenrio/ecto_sql | 151ff5076098a85c8cd415ca613bb1cb7dd290a5 | [
"Apache-2.0"
] | 4 | 2019-06-26T22:43:55.000Z | 2020-01-19T17:37:07.000Z | lib/mix/tasks/ecto.rollback.ex | thenrio/ecto_sql | 151ff5076098a85c8cd415ca613bb1cb7dd290a5 | [
"Apache-2.0"
] | 3 | 2019-07-15T06:54:40.000Z | 2020-02-09T16:36:44.000Z | lib/mix/tasks/ecto.rollback.ex | thenrio/ecto_sql | 151ff5076098a85c8cd415ca613bb1cb7dd290a5 | [
"Apache-2.0"
] | 15 | 2019-01-15T18:17:44.000Z | 2020-01-12T03:52:35.000Z | defmodule Mix.Tasks.Ecto.Rollback do
use Mix.Task
import Mix.Ecto
import Mix.EctoSQL
@shortdoc "Rolls back the repository migrations"
@aliases [
r: :repo,
n: :step
]
@switches [
all: :boolean,
step: :integer,
to: :integer,
quiet: :boolean,
prefix: :string,
pool_size: :in... | 31.602941 | 100 | 0.663797 |
73b38fe4667002a4c7264182a698f2dab5fd6320 | 17,322 | ex | Elixir | lib/codes/codes_v32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_V32 do
alias IcdCode.ICDCode
def _V320XXA do
%ICDCode{full_code: "V320XXA",
category_code: "V32",
short_code: "0XXA",
full_name: "Driver of three-wheeled motor vehicle injured in collision with two- or three-wheeled motor vehicle in nontraffic acciden... | 69.288 | 185 | 0.726475 |
73b3908ce59933875eaccb7fb5e4eae8ff42f3d4 | 528 | ex | Elixir | lib/envio/data/channel.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | 12 | 2018-07-25T08:38:05.000Z | 2020-05-16T07:29:11.000Z | lib/envio/data/channel.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | 6 | 2018-07-26T17:09:44.000Z | 2021-10-19T06:39:44.000Z | lib/envio/data/channel.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | null | null | null | defmodule Envio.Channel do
@moduledoc """
Channel description.
"""
defstruct ~w|source name|a
@typedoc "Channel data stored as a struct"
@type t :: %__MODULE__{
source: binary() | atom(),
name: binary() | atom()
}
@spec fq_name({binary() | atom(), binary() | atom()} | t()) :... | 25.142857 | 73 | 0.609848 |
73b398c6f8e5398f289e4045811335ba10d84dc8 | 2,083 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/update_database_ddl_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/update_database_ddl_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/update_database_ddl_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... | 38.574074 | 239 | 0.741239 |
73b3bb1eb2f768276ff2a75e2313976f6c5ec85c | 288 | exs | Elixir | priv/repo/migrations/20180601082739_create_users.exs | Galanda/ectoproj | 9dadeb27cc7b54034ab19363bc569d0fc4be671b | [
"MIT"
] | null | null | null | priv/repo/migrations/20180601082739_create_users.exs | Galanda/ectoproj | 9dadeb27cc7b54034ab19363bc569d0fc4be671b | [
"MIT"
] | null | null | null | priv/repo/migrations/20180601082739_create_users.exs | Galanda/ectoproj | 9dadeb27cc7b54034ab19363bc569d0fc4be671b | [
"MIT"
] | null | null | null | defmodule Ectoproj.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :fname, :string
add :lname, :string
add :phone, :string
add :password, :string
add :wishlist, :map
timestamps()
end
end
end
| 16.941176 | 49 | 0.628472 |
73b3c97f81f557dfa99a930c3f0002dd9ac5ac6b | 83 | ex | Elixir | lib/places_alloverse_com_web/views/page_view.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | lib/places_alloverse_com_web/views/page_view.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | 1 | 2021-03-10T11:40:47.000Z | 2021-03-10T11:40:47.000Z | lib/places_alloverse_com_web/views/page_view.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | defmodule PlacesAlloverseComWeb.PageView do
use PlacesAlloverseComWeb, :view
end
| 20.75 | 43 | 0.855422 |
73b3fce41a88460106546cedea73142ad2214660 | 325 | ex | Elixir | lib/ibm_speech_to_text/message/stop.ex | software-mansion-labs/elixir-ibm-speech-to-text | 2d1dec2f429071bb30a0568af8fec24787b8cd57 | [
"Apache-2.0"
] | 5 | 2019-11-15T10:44:36.000Z | 2021-05-15T21:14:49.000Z | lib/ibm_speech_to_text/message/stop.ex | software-mansion-labs/elixir-ibm-speech-to-text | 2d1dec2f429071bb30a0568af8fec24787b8cd57 | [
"Apache-2.0"
] | null | null | null | lib/ibm_speech_to_text/message/stop.ex | software-mansion-labs/elixir-ibm-speech-to-text | 2d1dec2f429071bb30a0568af8fec24787b8cd57 | [
"Apache-2.0"
] | null | null | null | defmodule IBMSpeechToText.Message.Stop do
@moduledoc """
Message (struct) marking the end of data to be recognized.
"""
@type t() :: %__MODULE__{}
defstruct []
end
defimpl Jason.Encoder, for: IBMSpeechToText.Message.Stop do
def encode(_value, opts) do
%{action: "stop"} |> Jason.Encode.map(opts)
end... | 20.3125 | 60 | 0.689231 |
73b41783555496ab91fd0e34152a7f43a59955ca | 12,624 | ex | Elixir | lib/mapper/latin2.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | lib/mapper/latin2.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | 1 | 2020-07-16T09:38:33.000Z | 2020-07-16T09:38:33.000Z | lib/mapper/latin2.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | defmodule Exconv.Mapper.Latin2 do
def to_unicode(255), do: 711 # <<203, 135>> | "ˇ"
def to_unicode(254), do: 290 # <<196, 162>> | "Ģ"
def to_unicode(253), do: 380 # <<197, 188>> | "ż"
def to_unicode(252), do: 321 # <<197, 129>> | "Ł"
def to_unicode(251), do: 379 # <<197, 187>> | "Ż"
def to_unicode(250), do:... | 48.930233 | 57 | 0.519566 |
73b42958455c4508ed732a5028d46865ea64b142 | 231 | exs | Elixir | config/test.exs | Shopify/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 23 | 2021-02-05T01:50:07.000Z | 2021-12-10T13:24:41.000Z | config/test.exs | Shopify/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 5 | 2021-03-30T06:27:39.000Z | 2021-06-08T01:10:35.000Z | config/test.exs | saulecabrera/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 1 | 2020-10-24T09:02:22.000Z | 2020-10-24T09:02:22.000Z | use Mix.Config
config :asls, builder: AssemblyScriptLS.Server.Build.Mock
config :asls, rpc: AssemblyScriptLS.JsonRpc.Mock
config :asls, runtime: AssemblyScriptLS.Runtime.Mock
config :asls, analysis: AssemblyScriptLS.Analysis.Mock
| 33 | 57 | 0.822511 |
73b4384eac865fc564b520a64ae6600df2817129 | 16,504 | ex | Elixir | lib/money/exchange_rates/exchange_rates_retriever.ex | hamptokr/money | dac0965fb308a476008284fe83877e948f20d088 | [
"Apache-2.0"
] | 426 | 2016-10-10T08:53:20.000Z | 2022-03-17T04:28:00.000Z | lib/money/exchange_rates/exchange_rates_retriever.ex | hamptokr/money | dac0965fb308a476008284fe83877e948f20d088 | [
"Apache-2.0"
] | 131 | 2016-12-03T22:43:52.000Z | 2022-02-13T22:35:57.000Z | lib/money/exchange_rates/exchange_rates_retriever.ex | hamptokr/money | dac0965fb308a476008284fe83877e948f20d088 | [
"Apache-2.0"
] | 47 | 2017-02-18T08:11:26.000Z | 2022-01-26T19:31:34.000Z | defmodule Money.ExchangeRates.Retriever do
@moduledoc """
Implements a `GenServer` to retrieve exchange rates from
a configured retrieveal module on a periodic or on demand basis.
By default exchange rates are retrieved from [Open Exchange Rates](http://openexchangerates.org).
The default period of executio... | 26.923328 | 113 | 0.667475 |
73b49b408be7cd8039cfe49aac5875857b71dd55 | 7,945 | ex | Elixir | lib/ex_bitmex/rest/http_client.ex | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | null | null | null | lib/ex_bitmex/rest/http_client.ex | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | null | null | null | lib/ex_bitmex/rest/http_client.ex | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | null | null | null | defmodule ExBitmex.Rest.HTTPClient do
@type verb :: :get | :post | :put | :delete
@type credentials :: ExBitmex.Credentials.t()
@type params :: map
@type rate_limit :: ExBitmex.RateLimit.t()
@type message :: String.t()
@type bad_request :: {:bad_request, error :: map}
@type forbidden :: {:forbidden, messa... | 27.586806 | 94 | 0.625677 |
73b49ffac6fb714da2032f121fdac6acee5f6a26 | 7,184 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.818182 | 187 | 0.625696 |
73b4c330c99fe275e1db79f0f509c85748aee9b0 | 6,316 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_media.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_media.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_media.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... | 44.167832 | 242 | 0.710893 |
73b4d524a59458fab64a7d4c7d006a524e7b9099 | 1,283 | ex | Elixir | lib/issues.ex | rbin/issues | ae50f5425c4f4da9ea4bf7fbff00f6a21a57e77c | [
"MIT"
] | null | null | null | lib/issues.ex | rbin/issues | ae50f5425c4f4da9ea4bf7fbff00f6a21a57e77c | [
"MIT"
] | null | null | null | lib/issues.ex | rbin/issues | ae50f5425c4f4da9ea4bf7fbff00f6a21a57e77c | [
"MIT"
] | null | null | null | defmodule Issues do
@moduledoc """
Handle HTTP GET request to Github API for issues.
"""
require Logger
@user_agent [{"User-agent", "Elixir me@rbin.co"}] # Keep the GitHub API happy with a UAgent const.
@github_url Application.get_env(:issues, :github_url) # Get github url from config at compile tim... | 29.837209 | 103 | 0.674981 |
73b4fbea235285378420cb5dd9adc13cefdf9656 | 226 | exs | Elixir | first_steps/functions-2.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | first_steps/functions-2.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | first_steps/functions-2.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | fizz_buzz = fn
0,0,_ -> IO.puts "FizzBuzz"
0,_,_ -> IO.puts "Fizz"
_,0,_ -> IO.puts "Buzz"
a,b,c -> IO.puts c
end
IO.puts fizz_buzz.(0,0,1)
IO.puts fizz_buzz.(0,1,1)
IO.puts fizz_buzz.(1,0,1)
IO.puts fizz_buzz.(1,1,3)
| 20.545455 | 29 | 0.615044 |
73b517340d7d2470b5642c9703fc741eb684bc53 | 2,544 | ex | Elixir | lib/delivery/packages.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | lib/delivery/packages.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | 4 | 2021-03-01T20:51:23.000Z | 2021-09-20T21:37:12.000Z | lib/delivery/packages.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | defmodule Delivery.Packages do
@moduledoc """
The Packages context.
"""
import Ecto.Query, warn: false
alias Delivery.Repo
alias Delivery.Packages.Package
@doc """
Returns the list of packages.
## Examples
iex> list_packages()
[%Package{}, ...]
"""
def list_packages do
Repo.a... | 19.72093 | 123 | 0.58805 |
73b51a19ba735fefc89b56d9f95f71895c736c50 | 1,434 | exs | Elixir | plugins/ucc_chat/test/ucc_chat/settings/message_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/test/ucc_chat/settings/message_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/test/ucc_chat/settings/message_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccChatTest.Settings.Message do
use UccChat.DataCase
alias UccChat.Settings.Message
alias UccChat.Settings.Schema.Message, as: Schema
setup do
Message.init()
{:ok, message: Message.get()}
end
test "schema" do
assert Message.schema == UccChat.Settings.Schema.Message
end
test "ch... | 28.68 | 81 | 0.701534 |
73b524b77cdb49143f02233098b917dfeae8b066 | 5,333 | ex | Elixir | apps/re/lib/exporters/imovelweb.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/lib/exporters/imovelweb.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/exporters/imovelweb.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.Exporters.Imovelweb do
@moduledoc """
Listing XML exporters for imovelweb
"""
alias Re.Listing
@exported_attributes ~w(internal_id id type subtype title description highlight state city neighborhood
street street_number zipcode show_address lat lng show_map area_unity area price maintenance... | 36.278912 | 113 | 0.660604 |
73b52d009b4f72771900d0c679f34408bcfa1af9 | 1,644 | exs | Elixir | test/web/models/asset_test.exs | walterbm/hyperledger-beta | 493cd02597775be917427d2d75ff293f53d3bc9d | [
"Apache-2.0"
] | 1 | 2017-06-14T07:04:47.000Z | 2017-06-14T07:04:47.000Z | test/web/models/asset_test.exs | walterbm/hyperledger-beta | 493cd02597775be917427d2d75ff293f53d3bc9d | [
"Apache-2.0"
] | null | null | null | test/web/models/asset_test.exs | walterbm/hyperledger-beta | 493cd02597775be917427d2d75ff293f53d3bc9d | [
"Apache-2.0"
] | null | null | null | defmodule Hyperledger.AssetModelTest do
use Hyperledger.ModelCase
alias Hyperledger.Asset
alias Hyperledger.Account
setup do
hash = :crypto.hash(:sha256, "123")
{pk, _sk} = :crypto.generate_key(:ecdh, :secp256k1)
{pa_pk, _sk} = :crypto.generate_key(:ecdh, :secp256k1)
params =
%{... | 26.516129 | 82 | 0.613747 |
73b5415094855057592a231f972bb74a131cef66 | 246 | ex | Elixir | lib/membrane/element/callback_context/playback_change.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 515 | 2018-06-18T11:09:44.000Z | 2020-07-31T07:54:35.000Z | lib/membrane/element/callback_context/playback_change.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 120 | 2018-06-07T08:34:06.000Z | 2020-07-30T07:09:50.000Z | lib/membrane/element/callback_context/playback_change.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 13 | 2018-07-27T11:58:15.000Z | 2020-05-06T15:19:55.000Z | defmodule Membrane.Element.CallbackContext.PlaybackChange do
@moduledoc """
Structure representing a context that is passed to the callback of the element
when it changes playback state
"""
use Membrane.Core.Element.CallbackContext
end
| 30.75 | 80 | 0.796748 |
73b573e6c3d239eacbd3854b1feccd252996bc10 | 228 | ex | Elixir | learn/LittleBook/pooly/lib/pooly/pools_supervisor.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | learn/LittleBook/pooly/lib/pooly/pools_supervisor.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | learn/LittleBook/pooly/lib/pooly/pools_supervisor.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule Pooly.PoolsSupervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init([]) do
opts = [strategy: :one_for_one]
supervise([], opts)
end
end
| 17.538462 | 59 | 0.688596 |
73b58421b8a09e154505f44ed681007b2656a94d | 79,147 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/api/access_policies.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/access_context_manager/lib/google_api/access_context_manager/v1/api/access_policies.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/access_context_manager/lib/google_api/access_context_manager/v1/api/access_policies.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.167461 | 775 | 0.627238 |
73b588f56dcfba192841769464948a0f08368e40 | 3,166 | ex | Elixir | lib/ex_hash_ring/info.ex | LaudateCorpus1/ex_hash_ring | 79ed3e67b28a65378e099ab5580079d34ae79d8f | [
"MIT"
] | 191 | 2017-09-20T04:54:10.000Z | 2020-03-20T21:21:02.000Z | lib/ex_hash_ring/info.ex | LaudateCorpus1/ex_hash_ring | 79ed3e67b28a65378e099ab5580079d34ae79d8f | [
"MIT"
] | 5 | 2017-12-01T00:56:08.000Z | 2020-01-04T19:49:06.000Z | lib/ex_hash_ring/info.ex | LaudateCorpus1/ex_hash_ring | 79ed3e67b28a65378e099ab5580079d34ae79d8f | [
"MIT"
] | 14 | 2017-09-28T21:21:16.000Z | 2020-03-19T00:32:14.000Z | defmodule ExHashRing.Info do
@moduledoc """
Provides an interface for querying information about Rings.
Each Ring has some associated information that is available at all times to aid in performing
client-context queries into the underlying ETS table.non_neg_integer()
"""
use GenServer
alias ExHashRing... | 24.542636 | 97 | 0.612129 |
73b5a38af16c6879f6306b89261b41c24d7f4fb6 | 1,084 | exs | Elixir | elixir/plt_builder/mix.exs | bshaffer/testing-infra-docker | 2e1b9c6461697fed36c9ab8792f8b3f9f1afaec1 | [
"Apache-2.0"
] | 17 | 2019-03-23T01:21:49.000Z | 2022-01-03T08:10:27.000Z | elixir/plt_builder/mix.exs | bshaffer/testing-infra-docker | 2e1b9c6461697fed36c9ab8792f8b3f9f1afaec1 | [
"Apache-2.0"
] | 80 | 2019-05-28T19:39:04.000Z | 2022-03-24T23:07:14.000Z | elixir/plt_builder/mix.exs | bshaffer/testing-infra-docker | 2e1b9c6461697fed36c9ab8792f8b3f9f1afaec1 | [
"Apache-2.0"
] | 30 | 2019-01-16T20:40:45.000Z | 2022-02-08T20:40:50.000Z | # Copyright 2018 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... | 25.809524 | 74 | 0.675277 |
73b5aed68676b8994c56045d068337f18159e26d | 991 | exs | Elixir | test/ex_doc/markdown_test.exs | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/markdown_test.exs | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/markdown_test.exs | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.MarkdownTest do
use ExUnit.Case, async: true
alias ExDoc.Markdown, as: Markdown
test "add iex/elixir to markdown codeblocks" do
with_empty_class = ~S[<pre><code class="">mix run --no-halt path/to/file.exs]
without_class = "<pre><code>mix run --no-halt path/to/file.exs"
iex_detected_w... | 45.045455 | 81 | 0.683148 |
73b5b0a0e8ede97dd7b78376f5cfeea6e62f0efd | 948 | ex | Elixir | lib/oli_web/views/api/product_view.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli_web/views/api/product_view.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli_web/views/api/product_view.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule OliWeb.Api.ProductView do
use OliWeb, :view
alias OliWeb.Api.ProductView
def render("index.json", %{products: products}) do
%{
result: "success",
products: render_many(products, ProductView, "product.json")
}
end
def render("show.json", %{product: product}) do
%{product: re... | 28.727273 | 66 | 0.695148 |
73b5b9331404e91ec3e1bbbd1deeac454dc36724 | 1,131 | exs | Elixir | config/config.exs | joshnuss/dependency | eb5962ebbb276a72043e99b0b908175f5c3d2ff5 | [
"MIT"
] | null | null | null | config/config.exs | joshnuss/dependency | eb5962ebbb276a72043e99b0b908175f5c3d2ff5 | [
"MIT"
] | null | null | null | config/config.exs | joshnuss/dependency | eb5962ebbb276a72043e99b0b908175f5c3d2ff5 | [
"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.483871 | 73 | 0.751547 |
73b5ced085a4988edef9de2e365ebe5cd67d16ed | 602 | ex | Elixir | sample/lib/sample/application.ex | jeffweiss/vault_ecto_example | 246ca951e52d5deec893d44a795fb6d225a4d3e7 | [
"MIT"
] | null | null | null | sample/lib/sample/application.ex | jeffweiss/vault_ecto_example | 246ca951e52d5deec893d44a795fb6d225a4d3e7 | [
"MIT"
] | null | null | null | sample/lib/sample/application.ex | jeffweiss/vault_ecto_example | 246ca951e52d5deec893d44a795fb6d225a4d3e7 | [
"MIT"
] | null | null | null | defmodule Sample.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Sample.Worker.start_lin... | 26.173913 | 65 | 0.696013 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.