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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e94def8969214f3acb5d3beb2c860dbbeaae4b6e | 293 | exs | Elixir | .formatter.exs | maartenvanvliet/artem_introspection_schema | 8405621e7d9dbd8e7c0a0252bbd74dd288974fb7 | [
"MIT"
] | 2 | 2021-05-16T14:13:33.000Z | 2021-11-28T07:53:37.000Z | .formatter.exs | maartenvanvliet/artem_introspection_schema | 8405621e7d9dbd8e7c0a0252bbd74dd288974fb7 | [
"MIT"
] | 18 | 2021-02-02T04:25:14.000Z | 2022-03-24T04:07:27.000Z | .formatter.exs | maartenvanvliet/artem_introspection_schema | 8405621e7d9dbd8e7c0a0252bbd74dd288974fb7 | [
"MIT"
] | null | null | null | # Used by "mix format"
locals_without_parens = [
import_introspection: 1,
import_introspection: 2
]
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens,
export: [
locals_without_parens: locals_without_parens
]
]
| 20.928571 | 70 | 0.706485 |
e94e0ced6079c28955fc298a61407c9a8f41977e | 1,511 | ex | Elixir | lib/tensorflow/core/protobuf/tensor_bundle.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 58 | 2018-06-12T00:01:51.000Z | 2022-01-30T17:29:42.000Z | lib/tensorflow/core/protobuf/tensor_bundle.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 9 | 2018-06-13T19:33:39.000Z | 2020-02-17T17:24:15.000Z | lib/tensorflow/core/protobuf/tensor_bundle.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 3 | 2018-06-13T19:45:36.000Z | 2021-05-16T17:40:08.000Z | defmodule Tensorflow.BundleHeaderProto.Endianness do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :LITTLE | :BIG
field(:LITTLE, 0)
field(:BIG, 1)
end
defmodule Tensorflow.BundleHeaderProto do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
... | 27.472727 | 73 | 0.665122 |
e94e3497d820c41cd1257ec97dc54aa3abd44c93 | 15,959 | exs | Elixir | lib/logger/test/logger_test.exs | matiasgarciaisaia/elixir | d0a3fdbfd774e0a6972513dcb82c2683400e67a0 | [
"Apache-2.0"
] | 1 | 2015-11-24T23:39:25.000Z | 2015-11-24T23:39:25.000Z | lib/logger/test/logger_test.exs | lau/elixir | 6cfe09c50b5f612e473725623d901080077ad6a6 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger_test.exs | lau/elixir | 6cfe09c50b5f612e473725623d901080077ad6a6 | [
"Apache-2.0"
] | null | null | null | defmodule LoggerTest do
use Logger.Case
require Logger
setup_all do
Logger.configure_backend(:console, metadata: [:application, :module])
on_exit(fn -> Logger.configure_backend(:console, metadata: []) end)
end
defmodule MyBackend do
@behaviour :gen_event
def init({MyBackend, :hello}) do
... | 30.868472 | 96 | 0.625415 |
e94e665af959aca1d541d67a6ece2d200496b99b | 1,133 | exs | Elixir | src/myapp/apps/recommendations/config/config.exs | ecamacho/elixir_at_work | c8e4c604c925455b4794931c2b9c15ef3774005f | [
"MIT"
] | null | null | null | src/myapp/apps/recommendations/config/config.exs | ecamacho/elixir_at_work | c8e4c604c925455b4794931c2b9c15ef3774005f | [
"MIT"
] | null | null | null | src/myapp/apps/recommendations/config/config.exs | ecamacho/elixir_at_work | c8e4c604c925455b4794931c2b9c15ef3774005f | [
"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.548387 | 73 | 0.754634 |
e94ea99e71464e971214e582ce971ed3095752c1 | 547 | exs | Elixir | test/integration/ex_aws/cognito_idp_test.exs | Theuns-Botha/ex_aws_cognito | 5f640e53f183e68238dbab78d567238ebd211e9c | [
"MIT"
] | 1 | 2018-08-27T20:55:49.000Z | 2018-08-27T20:55:49.000Z | test/integration/ex_aws/cognito_idp_test.exs | Theuns-Botha/ex_aws_cognito | 5f640e53f183e68238dbab78d567238ebd211e9c | [
"MIT"
] | 2 | 2018-03-17T14:43:18.000Z | 2019-08-04T17:40:20.000Z | test/integration/ex_aws/cognito_idp_test.exs | Theuns-Botha/ex_aws_cognito | 5f640e53f183e68238dbab78d567238ebd211e9c | [
"MIT"
] | 5 | 2018-09-28T12:47:01.000Z | 2020-04-07T14:45:45.000Z | defmodule ExAws.Integration.CognitoIdpTest do
use ExUnit.Case, async: true
alias ExAws.CognitoIdp
@moduletag :integration
@pool System.get_env("AWS_COGNITO_INTEGRATION_POOL") ||
raise("AWS_COGNITO_INTEGRATION_POOL system env required")
describe "list_users" do
test "request" do
assert ... | 26.047619 | 101 | 0.670932 |
e94edc1969d25f30c50ab98fc35a832e98852dbb | 43,017 | exs | Elixir | test/ecto/changeset_test.exs | ohta-rh/ecto | d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset_test.exs | ohta-rh/ecto | d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset_test.exs | ohta-rh/ecto | d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.ChangesetTest do
use ExUnit.Case, async: true
import Ecto.Changeset
defmodule Comment do
use Ecto.Schema
schema "comments" do
belongs_to :post, Ecto.ChangesetTest.Post
end
end
defmodule Post do
use Ecto.Schema
schema "posts" do
field :title, :string, default:... | 37.503923 | 134 | 0.628844 |
e94ee10dcd04f43cea728a5539adf4128ef8cb5c | 1,936 | exs | Elixir | test/scaler/scaler_native_test.exs | membraneframework/membrane_ffmpeg_swscale_plugin | 75238174fca9009138eb555c1b0318c33da86fe7 | [
"Apache-2.0"
] | null | null | null | test/scaler/scaler_native_test.exs | membraneframework/membrane_ffmpeg_swscale_plugin | 75238174fca9009138eb555c1b0318c33da86fe7 | [
"Apache-2.0"
] | 2 | 2021-07-15T09:24:52.000Z | 2022-02-24T12:42:59.000Z | test/scaler/scaler_native_test.exs | membraneframework/membrane_ffmpeg_swscale_plugin | 75238174fca9009138eb555c1b0318c33da86fe7 | [
"Apache-2.0"
] | null | null | null | defmodule Scaler.NativeTest do
use ExUnit.Case, async: true
alias Membrane.Payload
alias Membrane.FFmpeg.SWScale.Scaler.Native, as: Scaler
defp scaling_test({input_width, input_height, output_width, output_height}) do
input_path = "../fixtures/input-10-#{input_width}x#{input_height}.raw" |> Path.expand(__D... | 33.964912 | 110 | 0.681818 |
e94ee45308f81d32caaae3a0adfc8b9e5efcc999 | 1,943 | exs | Elixir | test/exenum_test.exs | efcasado/exenum | ece5b5ad8e577cb77bc3aa29b727a9bf540c3dc8 | [
"MIT"
] | 2 | 2018-03-02T23:21:17.000Z | 2021-12-15T11:16:07.000Z | test/exenum_test.exs | efcasado/exenum | ece5b5ad8e577cb77bc3aa29b727a9bf540c3dc8 | [
"MIT"
] | null | null | null | test/exenum_test.exs | efcasado/exenum | ece5b5ad8e577cb77bc3aa29b727a9bf540c3dc8 | [
"MIT"
] | 1 | 2018-06-22T01:06:13.000Z | 2018-06-22T01:06:13.000Z | ###========================================================================
### File: ExEnumTest.ex
###
### Unit tests
###
### Author(s):
### - Enrique Fernandez <efcasado(at)gmail.com>
###========================================================================
defmodule ExEnumTest do
##== Preamble ================... | 23.130952 | 76 | 0.500257 |
e94f1c9425a1c6df8ff227e4b9baadfa0a19bf03 | 1,333 | exs | Elixir | mix.exs | Miserlou/ex_limiter | 31391989dfca30d2f86cba04c5510c386efacdf4 | [
"MIT"
] | 28 | 2018-08-06T16:08:27.000Z | 2022-03-01T16:54:10.000Z | mix.exs | Miserlou/ex_limiter | 31391989dfca30d2f86cba04c5510c386efacdf4 | [
"MIT"
] | 3 | 2019-03-11T17:20:50.000Z | 2019-05-10T02:17:53.000Z | mix.exs | Miserlou/ex_limiter | 31391989dfca30d2f86cba04c5510c386efacdf4 | [
"MIT"
] | 4 | 2019-04-18T00:06:05.000Z | 2021-12-01T18:30:05.000Z | defmodule ExLimiter.Mixfile do
use Mix.Project
@version "1.4.0"
def project do
[
app: :ex_limiter,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
deps: deps(),
description: description(),
package:... | 19.602941 | 76 | 0.543136 |
e94f3c05ee1b68be272ef9ba8309969eeb9573a8 | 476 | ex | Elixir | lib/page_handlers/tokens_page_handler.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 11 | 2019-03-06T12:44:46.000Z | 2022-01-20T10:41:30.000Z | lib/page_handlers/tokens_page_handler.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 3 | 2019-03-06T13:29:36.000Z | 2020-03-21T15:40:47.000Z | lib/page_handlers/tokens_page_handler.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 4 | 2019-03-06T13:24:13.000Z | 2021-12-22T09:17:56.000Z | defmodule PageHandlers.Tokens do
@moduledoc """
Render the Tokens page
"""
def init(req, state) do
handle(req, state)
end
def handle(request, state) do
req = :cowboy_req.reply(
200,
%{"content-type" => "text/html"},
build_body(request),
request
)
{:ok, req, state}
... | 19.04 | 71 | 0.621849 |
e94f3eb119d4b23fbbd80b523b379dc05e35bfc6 | 1,435 | ex | Elixir | clients/kratos/elixir/lib/ory/model/submit_self_service_settings_flow_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/kratos/elixir/lib/ory/model/submit_self_service_settings_flow_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/kratos/elixir/lib/ory/model/submit_self_service_settings_flow_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.SubmitSelfServiceSettingsFlowBody do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"csrf_token",
:"method",
... | 25.625 | 91 | 0.625784 |
e94f649a59db4c2ffb691da09c267561baae5027 | 1,047 | ex | Elixir | lib/avrora/mapper.ex | matreyes/avrora | 4eed729c24a016445ca0ec66f83821a57d669fba | [
"MIT"
] | null | null | null | lib/avrora/mapper.ex | matreyes/avrora | 4eed729c24a016445ca0ec66f83821a57d669fba | [
"MIT"
] | null | null | null | lib/avrora/mapper.ex | matreyes/avrora | 4eed729c24a016445ca0ec66f83821a57d669fba | [
"MIT"
] | null | null | null | defmodule Avrora.Mapper do
@moduledoc """
Functions to convert between common Elixir structures and `erlavro` structures.
"""
@doc """
Convert tuple-based structure returned by `erlavro` to Elixir map.
## Examples
iex> map = Avrora.Mapper.to_map([{:a, 1}, {"b", [nil, 11.1, "three"]}, {:c, [{:hello,... | 29.914286 | 104 | 0.595989 |
e94f6c0d40ad1a018e727e4056645ce67f80c4f3 | 2,008 | exs | Elixir | config/prod.exs | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | config/prod.exs | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | config/prod.exs | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.387097 | 67 | 0.716135 |
e94f86836a326cde03d63a01296d5fa9fa9d62bc | 494 | ex | Elixir | lib/mix/tasks/generate_test_protobufs.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/mix/tasks/generate_test_protobufs.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/mix/tasks/generate_test_protobufs.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.GenerateTestProtobufs do
@moduledoc """
Genereates the test protobufs
"""
require Logger
use Mix.Task
def run(_arg) do
:os.cmd(
'protoc --proto_path=test/support/protobuf --elixir_out=test/support/messages test/support/protobuf/*.proto'
)
|> case do
[] ->
... | 21.478261 | 114 | 0.659919 |
e94f9d1ecfd0ba804ff0a406dcae594b73f4af1e | 4,686 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/variable.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/variable.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/variable.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 ... | 49.326316 | 295 | 0.678617 |
e94fbe11e2c6c2f90a5a042c10b097a8544a268e | 712 | ex | Elixir | lib/neo4j_sips_models/model_builder.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 8 | 2016-04-22T03:13:02.000Z | 2021-01-01T02:49:28.000Z | lib/neo4j_sips_models/model_builder.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 2 | 2016-10-06T07:20:19.000Z | 2020-03-05T02:04:52.000Z | lib/neo4j_sips_models/model_builder.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 5 | 2016-07-21T04:31:24.000Z | 2020-03-03T20:23:01.000Z | defmodule Neo4j.Sips.Models.ModelBuilder do
defmacro build(module) do
quote do
%unquote(module){}
end
end
def build(module, params) when is_list(params) do
func = &Neo4j.Sips.Models.ModelBuilder.build(module, &1)
params
|> Enum.map(fn {k,v} -> {Atom.to_string(k), v} end)
|> Enum.int... | 22.967742 | 60 | 0.554775 |
e94fc22943758f346a18f225602a4931eca6261a | 9,954 | ex | Elixir | lib/nostrum/shard/dispatch.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/shard/dispatch.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/shard/dispatch.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | defmodule Nostrum.Shard.Dispatch do
@moduledoc false
alias Nostrum.Cache.{ChannelCache, PresenceCache, UserCache}
alias Nostrum.Cache.Guild.GuildServer
alias Nostrum.Cache.Me
alias Nostrum.Shard.{Intents, Session}
alias Nostrum.Struct.Event.{
InviteCreate,
InviteDelete,
MessageDelete,
Mess... | 31.700637 | 95 | 0.66948 |
e950095d784f797037f8061366f6172c3b075421 | 114 | ex | Elixir | lib/jeopardy_web/components/trebek/jeopardy/awaiting_buzzer.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy_web/components/trebek/jeopardy/awaiting_buzzer.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy_web/components/trebek/jeopardy/awaiting_buzzer.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule JeopardyWeb.Components.Trebek.Jeopardy.AwaitingBuzzer do
use JeopardyWeb.Components.Base, :trebek
end
| 28.5 | 66 | 0.850877 |
e950625c3261cb2157faf32035fe804c3ce18e7f | 6,042 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_predict_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_predict_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_predict_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 77.461538 | 1,349 | 0.748428 |
e950706122e9990adc9ed0a175bae52f25f3b9d8 | 494 | ex | Elixir | lib/helpers/parse_code.ex | codecakes/codewall | a14c0d56cbf27191664e6dbc015f986658ea7ac7 | [
"MIT"
] | null | null | null | lib/helpers/parse_code.ex | codecakes/codewall | a14c0d56cbf27191664e6dbc015f986658ea7ac7 | [
"MIT"
] | null | null | null | lib/helpers/parse_code.ex | codecakes/codewall | a14c0d56cbf27191664e6dbc015f986658ea7ac7 | [
"MIT"
] | null | null | null | defmodule ParseCode do
@moduledoc """
- Loads a source code FILE
- Cleans it by removing spaces and carriage returns
- joins them
"""
defp load_file_stream(file) do
file |> File.stream!([:read, :utf8, :trim_bom], :line)
end
def parse_stream(file) do
file
|> load_file_stream
|> Stream.m... | 21.478261 | 58 | 0.587045 |
e950790f0937e16a3d268840d9d2df64e8ba1371 | 1,535 | ex | Elixir | lib/ex_nifcloud/auth.ex | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | lib/ex_nifcloud/auth.ex | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | lib/ex_nifcloud/auth.ex | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | defmodule ExNifcloud.Auth do
@moduledoc false
def body(http_method, url, body, config) do
uri = url |> URI.parse()
path = uri.path |> URI.encode()
query = if uri.query, do: uri.query |> URI.decode_query(), else: %{}
data =
Map.merge(query, body)
|> Map.merge(%{
AccessKeyId: co... | 27.410714 | 96 | 0.660586 |
e95087f84608b12e4a39b5103cc0e142041f2e22 | 2,378 | exs | Elixir | domotic_firmware/mix.exs | gcauchon/domotic-pi | af61102fb946670b3e5ec93def6a5c053d894e79 | [
"MIT"
] | 1 | 2020-06-11T17:53:20.000Z | 2020-06-11T17:53:20.000Z | domotic_firmware/mix.exs | gcauchon/domotic-pi | af61102fb946670b3e5ec93def6a5c053d894e79 | [
"MIT"
] | 9 | 2020-12-15T21:19:59.000Z | 2021-11-23T13:23:11.000Z | domotic_firmware/mix.exs | gcauchon/domotic-pi | af61102fb946670b3e5ec93def6a5c053d894e79 | [
"MIT"
] | 1 | 2021-03-10T15:31:01.000Z | 2021-03-10T15:31:01.000Z | defmodule DomoticFirmware.MixProject do
use Mix.Project
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4, :bbb, :x86_64]
def project do
[
app: :domotic_firmware,
version: "0.3.0",
elixir: "~> 1.12",
archives: [nerves_bootstrap: "~> 1.10"],
start_permanent: Mix.env() == :p... | 30.487179 | 79 | 0.606812 |
e950ea1e3b987daba6c509017b5ecdcdd3493cf3 | 15,025 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/forwarding_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/forwarding_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/forwarding_rule.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... | 78.255208 | 539 | 0.73178 |
e950f6d318d6520868bb03974b33fd4931474275 | 806 | ex | Elixir | lib/renaissance_web/controllers/register_controller.ex | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2021-02-01T12:09:07.000Z | 2021-03-14T12:20:43.000Z | lib/renaissance_web/controllers/register_controller.ex | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 11 | 2019-04-09T18:01:16.000Z | 2019-05-16T15:02:24.000Z | lib/renaissance_web/controllers/register_controller.ex | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2019-04-30T22:43:18.000Z | 2019-05-15T20:34:49.000Z | defmodule RenaissanceWeb.RegisterController do
use RenaissanceWeb, :controller
alias Renaissance.{User, Users}
alias RenaissanceWeb.Helpers.{Auth}
def new(conn, _params) do
changeset = User.changeset(%User{})
if Auth.signed_in?(conn) do
conn
|> put_flash(:error, "You're already logged in..... | 26.866667 | 63 | 0.640199 |
e951265093be3bb50c382050a68d81e682a8cfd1 | 2,237 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/annotation_store.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/annotation_store.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/annotation_store.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... | 44.74 | 555 | 0.735807 |
e9513cf8dad3b03297dd3e58735042f2d3945bb1 | 10,679 | ex | Elixir | lib/hexpm/repository/releases.ex | Jks15063/hexpm | 3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b | [
"Apache-2.0"
] | 1 | 2019-04-29T12:35:52.000Z | 2019-04-29T12:35:52.000Z | lib/hexpm/repository/releases.ex | Jks15063/hexpm | 3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/releases.ex | Jks15063/hexpm | 3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Releases do
use Hexpm.Context
@publish_timeout 60_000
def all(package) do
Release.all(package)
|> Repo.all()
|> Release.sort()
end
def recent(repository, count) do
Repo.all(Release.recent(repository, count))
end
def count() do
Repo.one!(Release.count())
... | 30.864162 | 99 | 0.66907 |
e951465d076c502f2aea7e4f5f8574c3483fa34f | 129,769 | ex | Elixir | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/api/buyers.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/api/buyers.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/api/buyers.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... | 46.898807 | 691 | 0.625797 |
e9514afeffb5bdc06d8d9a3d685ca7e687908c00 | 3,786 | exs | Elixir | test/tapebas_web/controllers/user_reset_password_controller_test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 3 | 2022-03-24T16:48:38.000Z | 2022-03-24T16:50:04.000Z | test/tapebas_web/controllers/user_reset_password_controller_test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | null | null | null | test/tapebas_web/controllers/user_reset_password_controller_test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 1 | 2022-03-20T01:11:12.000Z | 2022-03-20T01:11:12.000Z | defmodule TapebasWeb.UserResetPasswordControllerTest do
use TapebasWeb.ConnCase, async: true
alias Tapebas.Accounts
alias Tapebas.Repo
import Tapebas.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/reset_password" do
test "renders the reset password page", %{conn: con... | 33.504425 | 91 | 0.63365 |
e951a975b4b7ef3355019e1202dd0605a7faa40a | 1,153 | exs | Elixir | Microsoft.Azure.Management.Storage/config/config.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Storage/config/config.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/config/config.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 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... | 37.193548 | 73 | 0.75889 |
e951b0917ecb2968bff730af433a07ce49b73b6d | 827 | exs | Elixir | test/epub_cover_extractor_test.exs | zelazna/epub_cover_extractor | 6dc90e0a87284ef1df371399aedc425c5dca969f | [
"Apache-2.0"
] | 6 | 2019-08-25T19:53:42.000Z | 2022-02-15T18:50:14.000Z | test/epub_cover_extractor_test.exs | zelazna/epub_cover_extractor | 6dc90e0a87284ef1df371399aedc425c5dca969f | [
"Apache-2.0"
] | 4 | 2020-03-30T06:46:20.000Z | 2020-09-17T05:40:05.000Z | test/epub_cover_extractor_test.exs | zelazna/epub_cover_extractor | 6dc90e0a87284ef1df371399aedc425c5dca969f | [
"Apache-2.0"
] | null | null | null | defmodule EpubCoverExtractorTest do
use ExUnit.Case
@book_path "test/fixtures/books/"
@img_path "test/fixtures/images/"
test "raise an error if the path is not a string" do
assert_raise FunctionClauseError, fn ->
EpubCoverExtractor.get_cover(123)
end
end
test "raise an error if the book doe... | 25.84375 | 88 | 0.700121 |
e952189c5a0a6441a0487b78042faf8a65c80c67 | 1,164 | ex | Elixir | lib/http/mint/http_client.ex | aptinio/tz | 8b6a243c58c451e92f8d1b56f62c3ad6885f8eae | [
"Apache-2.0"
] | 66 | 2020-02-24T07:44:18.000Z | 2022-03-30T00:39:54.000Z | lib/http/mint/http_client.ex | aptinio/tz | 8b6a243c58c451e92f8d1b56f62c3ad6885f8eae | [
"Apache-2.0"
] | 9 | 2020-03-28T07:17:56.000Z | 2021-10-11T13:07:05.000Z | lib/http/mint/http_client.ex | aptinio/tz | 8b6a243c58c451e92f8d1b56f62c3ad6885f8eae | [
"Apache-2.0"
] | 8 | 2020-02-25T04:40:28.000Z | 2021-10-10T12:19:18.000Z | if Code.ensure_loaded?(Mint.HTTP) do
defmodule Tz.HTTP.Mint.HTTPClient do
@behaviour Tz.HTTP.HTTPClient
@moduledoc false
alias Mint.HTTP
alias Tz.HTTP.Mint.HTTPResponse, as: MintHTTPResponse
alias Tz.HTTP.HTTPResponse
@impl Tz.HTTP.HTTPClient
def request(hostname, path) do
{:ok, c... | 26.454545 | 72 | 0.603093 |
e952337cccb6beadb6b9a950c490c4098ad2d537 | 117 | exs | Elixir | .formatter.exs | simonmcconnell/msgpax_serializer | 985980a016a08f7ad80cef1d90272624843aebd1 | [
"MIT"
] | null | null | null | .formatter.exs | simonmcconnell/msgpax_serializer | 985980a016a08f7ad80cef1d90272624843aebd1 | [
"MIT"
] | 1 | 2022-02-01T08:00:00.000Z | 2022-02-01T08:00:00.000Z | .formatter.exs | simonmcconnell/msgpax_serializer | 985980a016a08f7ad80cef1d90272624843aebd1 | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 108
]
| 19.5 | 70 | 0.581197 |
e95268ce8c2ed8c767117d4f2029c9462e4723da | 1,931 | exs | Elixir | test/media_server_web/components/user_invitation_component_test.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | test/media_server_web/components/user_invitation_component_test.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | test/media_server_web/components/user_invitation_component_test.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | defmodule MediaServerWeb.UserInvitationComponentTest do
use MediaServerWeb.ConnCase
import Phoenix.LiveViewTest
import MediaServer.AccountsFixtures
defp create_fixtures(_) do
%{user: user_admin_fixture()}
end
describe "User Invitation Component" do
setup [:create_fixtures]
test "it should sh... | 31.145161 | 85 | 0.599689 |
e952797b024edc7501d95f4ba06c98968b5d9c40 | 468 | exs | Elixir | mix.exs | croqaz/FsWatch | 35ec83491d54eb08b278b0925b9490116d5fc46f | [
"MIT"
] | null | null | null | mix.exs | croqaz/FsWatch | 35ec83491d54eb08b278b0925b9490116d5fc46f | [
"MIT"
] | null | null | null | mix.exs | croqaz/FsWatch | 35ec83491d54eb08b278b0925b9490116d5fc46f | [
"MIT"
] | null | null | null | defmodule FsWatch.Mixfile do
use Mix.Project
def project do
[app: :fswatch,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Type "mix help compile.app" for more information
def application do
[appli... | 20.347826 | 54 | 0.619658 |
e95286ec4fd89c4991079afe598fe82442435e7f | 1,831 | ex | Elixir | clients/web_security_scanner/lib/google_api/web_security_scanner/v1alpha/model/outdated_library.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/lib/google_api/web_security_scanner/v1alpha/model/outdated_library.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1alpha/model/outdated_library.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... | 34.54717 | 141 | 0.723648 |
e952b7790d407fb29e1a160fd0d4f6207c78544b | 73 | ex | Elixir | lib/animina_web/views/user_confirmation_view.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 1 | 2021-04-17T20:36:24.000Z | 2021-04-17T20:36:24.000Z | lib/animina_web/views/user_confirmation_view.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 3 | 2021-04-15T19:45:43.000Z | 2021-04-16T06:08:24.000Z | lib/animina_web/views/user_confirmation_view.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | null | null | null | defmodule AniminaWeb.UserConfirmationView do
use AniminaWeb, :view
end
| 18.25 | 44 | 0.835616 |
e952f8520bb29f366c8cda0694bf5ef67d93d0d7 | 1,434 | ex | Elixir | lib/jsonrfc.ex | lygaret/ex-jsonrfc | 8403e9f62ef2a64cba433f92d11f9669d29042e6 | [
"MIT"
] | 1 | 2020-09-15T04:56:23.000Z | 2020-09-15T04:56:23.000Z | lib/jsonrfc.ex | lygaret/ex-jsonrfc | 8403e9f62ef2a64cba433f92d11f9669d29042e6 | [
"MIT"
] | 1 | 2020-09-18T07:20:45.000Z | 2020-09-21T08:04:37.000Z | lib/jsonrfc.ex | lygaret/ex-jsonrfc | 8403e9f62ef2a64cba433f92d11f9669d29042e6 | [
"MIT"
] | null | null | null | defmodule JsonRfc do
@moduledoc """
Typespecs and predicate functions for inspecting Json-like maps.
"""
@type key :: String.t() | number
@type value :: %{optional(key) => value} | [value] | String.t() | number | boolean | nil
@doc """
Returns true if `object` is a map containing only string keys.
"""... | 29.265306 | 100 | 0.665969 |
e953355e323a2a88926c2688abc14919f8119fce | 1,320 | ex | Elixir | lib/stripe_mock/database.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 4 | 2019-06-04T20:35:21.000Z | 2021-09-02T04:04:21.000Z | lib/stripe_mock/database.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 2 | 2020-02-04T17:38:12.000Z | 2021-04-29T06:59:06.000Z | lib/stripe_mock/database.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | null | null | null | defmodule StripeMock.Database do
@moduledoc """
Start the database and hold the Repo config in its state.
"""
use GenServer
def start_link(_) do
GenServer.start_link(__MODULE__, enabled?(), name: __MODULE__)
end
def enabled?() do
Application.get_env(:stripe_mock, __MODULE__, [])
|> Keyword.... | 20.625 | 84 | 0.597727 |
e95354204c7a0ff3c54a031a6254582987df0b4c | 210 | exs | Elixir | priv/repo/migrations/20200812005309_remove_context_column_from_users_tokens.exs | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200812005309_remove_context_column_from_users_tokens.exs | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 6 | 2021-10-19T01:55:57.000Z | 2022-02-15T01:04:19.000Z | priv/repo/migrations/20200812005309_remove_context_column_from_users_tokens.exs | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 2 | 2022-01-21T08:38:50.000Z | 2022-01-21T08:42:04.000Z | defmodule EpiLocator.Repo.Migrations.RemoveContextColumnFromUsersTokens do
use Ecto.Migration
def change do
alter table(:users_tokens) do
remove(:context, :string, null: false)
end
end
end
| 21 | 74 | 0.747619 |
e95354994d85e343d8a27e022767f2a4e9f78145 | 598 | exs | Elixir | mix.exs | vsouza/Elixir-scripts | d0bd146ce82c7dc83ea52b135cf5944879898f60 | [
"Apache-2.0"
] | 8 | 2018-07-13T21:19:26.000Z | 2022-02-05T06:03:48.000Z | mix.exs | vsouza/Elixir-scripts | d0bd146ce82c7dc83ea52b135cf5944879898f60 | [
"Apache-2.0"
] | null | null | null | mix.exs | vsouza/Elixir-scripts | d0bd146ce82c7dc83ea52b135cf5944879898f60 | [
"Apache-2.0"
] | null | null | null | defmodule Scriptex.MixProject do
use Mix.Project
def project do
[
app: :scriptex,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
escript: escript(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def applicat... | 17.588235 | 59 | 0.556856 |
e953842f9dfd70e82a62386ca2678a19e23ff77a | 19,773 | ex | Elixir | lib/ecto/validators.ex | weareyipyip/Phoenix-API-Toolkit | 7c86f4f4e1000201d188f7952bc93a9221dcf8ac | [
"Apache-2.0"
] | 5 | 2020-06-23T18:35:44.000Z | 2022-01-13T21:20:41.000Z | lib/ecto/validators.ex | weareyipyip/Phoenix-API-Toolkit | 7c86f4f4e1000201d188f7952bc93a9221dcf8ac | [
"Apache-2.0"
] | 11 | 2019-12-11T13:15:28.000Z | 2021-06-01T07:37:25.000Z | lib/ecto/validators.ex | weareyipyip/Phoenix-API-Toolkit | 7c86f4f4e1000201d188f7952bc93a9221dcf8ac | [
"Apache-2.0"
] | 4 | 2020-08-05T09:23:22.000Z | 2021-01-03T12:16:36.000Z | defmodule PhoenixApiToolkit.Ecto.Validators do
@moduledoc """
Generic validators and helper functions for validating Ecto changesets.
## Examples
The examples in this module use the following basic schema and changeset:
@schema %{
first_name: :string,
last_name: :string,
last_na... | 48.109489 | 217 | 0.664846 |
e953aa28ecf19202bfc8d4ec864b6d61696b28ac | 1,872 | ex | Elixir | lib/credo/check/warning/unused_enum_operation.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/check/warning/unused_enum_operation.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/check/warning/unused_enum_operation.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Warning.UnusedEnumOperation do
@moduledoc false
@checkdoc """
With the exception of `Enum.each/2`, the result of a call to the
Enum module's functions has to be used.
While this is correct ...
def prepend_my_username(my_username, usernames) do
valid_usernames = Enum.reje... | 32.275862 | 78 | 0.721154 |
e953ccd7d05b66e5c6b7b10b742e768be078844a | 299 | exs | Elixir | apps/theta/priv/repo/migrations/20200206040223_create_author.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta/priv/repo/migrations/20200206040223_create_author.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta/priv/repo/migrations/20200206040223_create_author.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule Theta.Repo.Migrations.CreateAuthor do
use Ecto.Migration
def change do
create table(:author) do
add :role, :string
add :user_id, references(:user, on_delete: :delete_all), null: false
timestamps()
end
create unique_index(:author, [:user_id])
end
end
| 19.933333 | 74 | 0.67893 |
e953f11378c9d7c365eaeb7760fdcdbac9a1b15b | 2,322 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/line_connection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/line_connection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/model/line_connection.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... | 46.44 | 671 | 0.751938 |
e9540438ef6bf01fc8d5e7de70320f5cc5c7d39a | 5,982 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1beta/model/run_pivot_report_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/analytics_data/lib/google_api/analytics_data/v1beta/model/run_pivot_report_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_data/lib/google_api/analytics_data/v1beta/model/run_pivot_report_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... | 77.688312 | 457 | 0.74323 |
e95410f0b57744d7cb51222dbbe34892c40fcae3 | 3,496 | ex | Elixir | lib/flamelex/gui/components/sample_component.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 10 | 2021-03-02T20:05:13.000Z | 2022-03-14T21:10:39.000Z | lib/flamelex/gui/components/sample_component.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-14T18:29:44.000Z | 2021-12-23T20:38:27.000Z | lib/flamelex/gui/components/sample_component.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-05T20:41:26.000Z | 2021-12-26T01:46:42.000Z | # defmodule Flamelex.GUI.Component.SampleComponent do
# @moduledoc """
# This module is just an example. Copy & modify it.
# # Adding a new component to the GUI
# To understand how to add a new component, we need to look in to how they
# are rendered. We use Scenic to draw all our graphics. At the very base... | 34.613861 | 113 | 0.689931 |
e95418d3319c1ab1754e3c9c2df5210cfbaf5c9f | 8,736 | exs | Elixir | test/teiserver/account/accolade_bot_test.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | test/teiserver/account/accolade_bot_test.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | test/teiserver/account/accolade_bot_test.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Account.AccoladeBotTest do
use Central.ServerCase, async: false
# alias Phoenix.PubSub
alias Teiserver.{Battle, Account}
alias Teiserver.Account.AccoladeLib
import Teiserver.TeiserverTestLib,
only: [tachyon_auth_setup: 0, _tachyon_recv: 1, _tachyon_send: 2]
setup do
AccoladeLi... | 41.014085 | 166 | 0.670788 |
e95423f7879c714ee0b0b8e9be39994eda26701c | 6,477 | exs | Elixir | server/.credo.exs | iii-ishida/workrec | d9937282f1665aa65cf6a25d56a583831017239e | [
"MIT"
] | 2 | 2019-02-25T01:43:21.000Z | 2019-07-22T03:57:14.000Z | server/.credo.exs | iii-ishida/workrec | d9937282f1665aa65cf6a25d56a583831017239e | [
"MIT"
] | 2 | 2022-02-14T03:11:33.000Z | 2022-02-27T12:05:43.000Z | server/.credo.exs | iii-ishida/workrec | d9937282f1665aa65cf6a25d56a583831017239e | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.493902 | 114 | 0.619731 |
e95429cb0521657f4b39a7bfc2b3afb2831a4d27 | 351 | exs | Elixir | priv/repo/migrations/003_create_fields.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 13 | 2017-12-11T13:59:42.000Z | 2020-11-16T21:52:31.000Z | priv/repo/migrations/003_create_fields.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 310 | 2017-11-13T22:52:26.000Z | 2018-11-19T17:49:30.000Z | priv/repo/migrations/003_create_fields.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 3 | 2017-12-05T00:36:12.000Z | 2020-03-10T15:15:29.000Z | defmodule Plenario.Repo.Migrations.CreateFields do
use Ecto.Migration
def change do
create table(:fields) do
add :name, :text
add :col_name, :text
add :type, :text
add :description, :text
add :data_set_id, references(:data_sets, on_delete: :delete_all)
end
create index(:f... | 21.9375 | 70 | 0.669516 |
e954ae89aaa17d859107c3f33ded6c3b64acf199 | 1,445 | exs | Elixir | mix.exs | johnf9896/spring_config | f0944a5b031334ac711eab8938d51dd9517ad460 | [
"Apache-2.0"
] | null | null | null | mix.exs | johnf9896/spring_config | f0944a5b031334ac711eab8938d51dd9517ad460 | [
"Apache-2.0"
] | null | null | null | mix.exs | johnf9896/spring_config | f0944a5b031334ac711eab8938d51dd9517ad460 | [
"Apache-2.0"
] | 1 | 2019-11-27T06:37:12.000Z | 2019-11-27T06:37:12.000Z | defmodule SpringConfig.MixProject do
use Mix.Project
@version "0.1.1"
def project do
[
app: :spring_config,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
name: "SpringConfig",
description: description()... | 22.936508 | 72 | 0.559862 |
e954b16a82573c3f6ba42e0427e6bbc8b1231e6e | 1,233 | ex | Elixir | lib/access_pass/plug_extended.ex | renesugar/accesspass | d98fa0800681eae8260ff8ecb589bb27067e4077 | [
"MIT"
] | null | null | null | lib/access_pass/plug_extended.ex | renesugar/accesspass | d98fa0800681eae8260ff8ecb589bb27067e4077 | [
"MIT"
] | null | null | null | lib/access_pass/plug_extended.ex | renesugar/accesspass | d98fa0800681eae8260ff8ecb589bb27067e4077 | [
"MIT"
] | null | null | null | defmodule AccessPass.AuthExtended do
@moduledoc """
Plug that checks for access_token in header and then checks if its expired or revoked.
If it's not expired/revoked it adds the stored data from the token in meta.
If it is then it returns 401 unauthorized and halts the plug.
You can pass any number of a... | 30.825 | 89 | 0.656123 |
e954c0985ad6c5b13129345398fff0db883ad562 | 1,310 | ex | Elixir | lib/elixir_search_extractor/application.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | lib/elixir_search_extractor/application.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | 32 | 2021-05-24T06:52:33.000Z | 2021-07-19T05:04:40.000Z | lib/elixir_search_extractor/application.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | defmodule ElixirSearchExtractor.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
ElixirSearchExtractor.Repo,
# Start the Teleme... | 31.95122 | 79 | 0.733588 |
e9550358437d7b0d9e120ed7d4797125c0014299 | 434 | ex | Elixir | lib/phat_web/views/chat_view.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 50 | 2019-05-23T11:59:30.000Z | 2022-03-11T04:12:36.000Z | lib/phat_web/views/chat_view.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 6 | 2019-05-18T09:53:46.000Z | 2021-01-27T11:26:15.000Z | lib/phat_web/views/chat_view.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 18 | 2019-05-18T08:13:51.000Z | 2021-11-23T13:57:33.000Z | defmodule PhatWeb.ChatView do
use PhatWeb, :view
def username_color(user, username_colors) do
{_email, color} =
Enum.find(username_colors, fn {email, _color} ->
email == user.email
end)
color
end
def font_weight(user, current_user) do
if user.email == current_user.email do
... | 18.083333 | 54 | 0.624424 |
e95532a79cc5affaf0a0269da419004abf7c70ec | 1,767 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/login_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/login_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/login_details.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... | 33.980769 | 132 | 0.726089 |
e9555a183067ec4519d7dff37295950266a0ed4e | 7,243 | exs | Elixir | test/game/command/train_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | test/game/command/train_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | test/game/command/train_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.Command.TrainTest do
use Data.ModelCase
doctest Game.Command.Train
alias Data.ActionBar
alias Game.Character
alias Game.Command.Train
@socket Test.Networking.Socket
@room Test.Game.Room
setup do
@socket.clear_messages()
user = create_user(%{name: "user", password: "password"})
... | 33.073059 | 104 | 0.598371 |
e9555fa0ac489234741b319707f502ff07b14f34 | 12,881 | ex | Elixir | lib/guardian/plug.ex | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | null | null | null | lib/guardian/plug.ex | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | null | null | null | lib/guardian/plug.ex | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule Guardian.Plug do
@moduledoc ~S"""
Provides functions for the implementation module for dealing with
Guardian in a Plug environment
```elixir
defmodule MyApp.Tokens do
use Guardian, otp_app: :my_app
# ... snip
end
```
Your impleme... | 31.038554 | 112 | 0.604844 |
e95564c1e5c2a4325cc9736b1529ba4949de4553 | 3,001 | ex | Elixir | lib/credo/check/warning/application_config_in_module_attribute.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/check/warning/application_config_in_module_attribute.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/check/warning/application_config_in_module_attribute.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Warning.ApplicationConfigInModuleAttribute do
use Credo.Check,
base_priority: :high,
tags: [:controversial],
category: :warning,
explanations: [
check: """
Module attributes are evaluated at compile time and not at run time. As
a result, certain configuration re... | 27.036036 | 109 | 0.628457 |
e95575a33b271bc1eaf27f481e29b90c7a9897fb | 365 | exs | Elixir | test/data_daemon_test.exs | mariaclrd/data_daemon | f1b4dfd07959d9d0b23389005c41c883d0caf295 | [
"MIT"
] | 4 | 2019-02-16T01:09:30.000Z | 2022-03-03T09:56:20.000Z | test/data_daemon_test.exs | mariaclrd/data_daemon | f1b4dfd07959d9d0b23389005c41c883d0caf295 | [
"MIT"
] | 5 | 2018-11-03T12:52:59.000Z | 2019-04-27T10:13:33.000Z | test/data_daemon_test.exs | mariaclrd/data_daemon | f1b4dfd07959d9d0b23389005c41c883d0caf295 | [
"MIT"
] | 2 | 2020-02-06T10:28:38.000Z | 2020-09-09T11:22:29.000Z | defmodule DataDaemonTest do
use ExUnit.Case, async: false
defmodule Example2 do
use DataDaemon, otp_app: :data_daemon, mode: :send
end
test "metric/5" do
Supervisor.start_link([Example2], strategy: :one_for_one)
DataDaemon.Hound.open(Example2, '127.0.0.1', 8125)
assert DataDaemon.metric(Exampl... | 26.071429 | 69 | 0.709589 |
e9558c63bb48b20b24ab824cb401febb5e2e661c | 2,007 | exs | Elixir | test/bella/server/watcher/response_buffer_test.exs | batteries-included/bella | 479817bc6b516dc3b5c0a8dcdeca5696b1dd0273 | [
"MIT"
] | null | null | null | test/bella/server/watcher/response_buffer_test.exs | batteries-included/bella | 479817bc6b516dc3b5c0a8dcdeca5696b1dd0273 | [
"MIT"
] | 1 | 2021-08-25T04:42:14.000Z | 2021-08-25T04:42:14.000Z | test/bella/server/watcher/response_buffer_test.exs | batteries-included/bella | 479817bc6b516dc3b5c0a8dcdeca5696b1dd0273 | [
"MIT"
] | null | null | null | defmodule Bella.Server.Watcher.ResponseBufferTest do
use ExUnit.Case
alias Bella.Server.Watcher.ResponseBuffer
test "get_lines with nothing" do
{events, _buffer} =
ResponseBuffer.new()
|> ResponseBuffer.get_lines()
assert [] == events
end
test "get_lines when adding one chunk" do
{e... | 25.0875 | 57 | 0.620827 |
e955a9d1a363e6107d469059a85ffb6df233bc4b | 1,225 | ex | Elixir | lib/open_movie_api_web/views/error_helpers.ex | ourway/imdb-api | 4db426abec4c46ceb2cb19292f3fdd15930beaec | [
"MIT"
] | 5 | 2019-11-02T14:35:49.000Z | 2022-01-22T12:26:23.000Z | lib/open_movie_api_web/views/error_helpers.ex | ourway/imdb-api | 4db426abec4c46ceb2cb19292f3fdd15930beaec | [
"MIT"
] | null | null | null | lib/open_movie_api_web/views/error_helpers.ex | ourway/imdb-api | 4db426abec4c46ceb2cb19292f3fdd15930beaec | [
"MIT"
] | null | null | null | defmodule OpenMovieApiWeb.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 static... | 36.029412 | 81 | 0.675102 |
e955ab51cc96fdd0d95b1a3cdf2c64471d91ce57 | 106 | ex | Elixir | lib/majudge/repo.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | null | null | null | lib/majudge/repo.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | 1 | 2021-05-10T04:23:56.000Z | 2021-05-10T04:23:56.000Z | lib/majudge/repo.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | null | null | null | defmodule Majudge.Repo do
use Ecto.Repo,
otp_app: :majudge,
adapter: Ecto.Adapters.Postgres
end
| 17.666667 | 35 | 0.726415 |
e955bb3c314dec8b461fe066e6ffa1b96fca5323 | 3,521 | ex | Elixir | lib/plausible_web/email.ex | rimenes/plausible | f587e348cd0b904c4192f4f0311463351f78aa44 | [
"MIT"
] | null | null | null | lib/plausible_web/email.ex | rimenes/plausible | f587e348cd0b904c4192f4f0311463351f78aa44 | [
"MIT"
] | null | null | null | lib/plausible_web/email.ex | rimenes/plausible | f587e348cd0b904c4192f4f0311463351f78aa44 | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.Email do
use Bamboo.Phoenix, view: PlausibleWeb.EmailView
import Bamboo.PostmarkHelper
def activation_email(user, link) do
base_email()
|> to(user.email)
|> from("Uku Taht <uku@plausible.io>")
|> tag("activation-email")
|> subject("Activate your Plausible free trial")
... | 29.099174 | 85 | 0.641863 |
e955c3da025e31477f63fb87fde4d247261623bc | 1,349 | ex | Elixir | lib/whistler_news_reader/subscription.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 8 | 2016-06-12T20:11:26.000Z | 2017-05-02T04:36:41.000Z | lib/whistler_news_reader/subscription.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 2 | 2016-06-12T15:49:06.000Z | 2016-06-12T20:00:02.000Z | lib/whistler_news_reader/subscription.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | null | null | null | defmodule WhistlerNewsReader.Subscription do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query
schema "subscriptions" do
field :title, :string
embeds_one :settings, WhistlerNewsReader.Settings, on_replace: :delete
# field :user_id, :integer
belongs_to :user, WhistlerNewsReader.User
... | 25.942308 | 78 | 0.702743 |
e955c6f674e1b31b2f96b17c29315ae981c01a17 | 1,412 | ex | Elixir | lib/scaffolding/support/database.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/support/database.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/support/database.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2021 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
use Amnesia
defdatabase Noizu.AdvancedScaffolding.Database do
... | 36.205128 | 97 | 0.461756 |
e955d285902481bb50838f1089a640ecda282012 | 7,795 | exs | Elixir | exercism/elixir/complex-numbers/test/complex_numbers_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/complex-numbers/test/complex_numbers_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/complex-numbers/test/complex_numbers_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule ComplexNumbersTest do
use ExUnit.Case
def equal({a, b}, {c, d}) do
assert_in_delta a, c, 1.0e-12
assert_in_delta b, d, 1.0e-12
end
def equal(a, b) do
assert_in_delta a, b, 1.0e-12
end
describe "Real part" do
test "Real part of a purely real number" do
z = {1, 0}
outp... | 21.297814 | 86 | 0.57229 |
e956116b4a7397d0d58d4440a8054a549dff8ab4 | 3,491 | exs | Elixir | apps/aeutil/test/patricia_merkle_tree_test.exs | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | null | null | null | apps/aeutil/test/patricia_merkle_tree_test.exs | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | 2 | 2018-10-01T16:46:26.000Z | 2018-10-01T19:45:42.000Z | apps/aeutil/test/patricia_merkle_tree_test.exs | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | null | null | null | defmodule AeutilPatriciaMerkleTreeTest do
use ExUnit.Case
alias Aeutil.PatriciaMerkleTree
setup do
on_exit(fn ->
:ok
end)
%{db_ref_name: :test_trie, trie: PatriciaMerkleTree.new(:test_trie)}
end
@tag :patricia_merkle_tree_proof
@tag timeout: 30_000
test "Proof Success", %{trie: empty... | 33.567308 | 93 | 0.677743 |
e95634ab3dd953682f1fb7a16f7068c21ae3c94f | 669 | ex | Elixir | lib/ex_twilio/resources/sip_credential.ex | kianmeng/ex_twilio | d8621cab60bd03a46375a05b377623875754dda6 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/sip_credential.ex | kianmeng/ex_twilio | d8621cab60bd03a46375a05b377623875754dda6 | [
"MIT"
] | 1 | 2021-02-19T04:34:52.000Z | 2021-03-29T19:14:14.000Z | lib/ex_twilio/resources/sip_credential.ex | kianmeng/ex_twilio | d8621cab60bd03a46375a05b377623875754dda6 | [
"MIT"
] | 2 | 2022-03-08T22:05:17.000Z | 2022-03-09T05:29:46.000Z | defmodule ExTwilio.SipCredential do
@moduledoc """
Represents an SIP Credential in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/voice/sip/api/sip-credential-resource)
"""
defstruct sid: nil,
account_sid: nil,
friendly_name: nil,
ip_address: nil,
... | 22.3 | 84 | 0.603886 |
e95639c921f531ab79eb07ed6236e5c6f6f7fb95 | 193 | exs | Elixir | flights/test/controllers/page_controller_test.exs | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/test/controllers/page_controller_test.exs | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/test/controllers/page_controller_test.exs | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | defmodule Flights.PageControllerTest do
use Flights.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.444444 | 60 | 0.673575 |
e9564a48ef8858cf542ab60e4448ae916625e85a | 4,610 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/api/metadata.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/metadata.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/metadata.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... | 42.293578 | 217 | 0.696963 |
e9566817a3cff45f0d5591b7010b9c112e5e9391 | 2,805 | ex | Elixir | apps/bookmarker/web/controllers/folder_preview_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/web/controllers/folder_preview_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/web/controllers/folder_preview_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.FolderPreviewController do
use Bookmarker.Web, :controller
alias Bookmarker.Folder
alias Bookmarker.ImgElement
@doc """
Show preview images for bookmarks in folder
"""
def show(conn, %{"folder_name" => folder_name}) do
HTTPoison.start
bookmarks_query = from bookmark in Bookm... | 27.772277 | 152 | 0.649198 |
e9567406be0207ee36a767c348fba72613133987 | 1,119 | exs | Elixir | config/config.exs | arjan/xepcache | b99b107a9b777eb7d69de94ba67b7705674952b5 | [
"Apache-2.0"
] | 1 | 2016-04-20T11:26:55.000Z | 2016-04-20T11:26:55.000Z | config/config.exs | arjan/xepcache | b99b107a9b777eb7d69de94ba67b7705674952b5 | [
"Apache-2.0"
] | null | null | null | config/config.exs | arjan/xepcache | b99b107a9b777eb7d69de94ba67b7705674952b5 | [
"Apache-2.0"
] | 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.096774 | 73 | 0.751564 |
e9569ad1e21eb0a2d7dea5c1bad5aedb2dc4721e | 1,297 | ex | Elixir | lib/console/graphql/kubernetes/service.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | lib/console/graphql/kubernetes/service.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | lib/console/graphql/kubernetes/service.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.GraphQl.Kubernetes.Service do
use Console.GraphQl.Schema.Base
import Console.GraphQl.Kubernetes.Base
alias Console.GraphQl.Resolvers.Kubernetes
object :service do
field :metadata, non_null(:metadata)
field :status, non_null(:service_status)
field :spec, non_null(:service_spe... | 27.595745 | 96 | 0.684657 |
e956b3df248c3c7fc7f6162028df2b765ced692e | 181 | exs | Elixir | priv/repo/migrations/20190730143901_add_admin_notes_to_challenges.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | priv/repo/migrations/20190730143901_add_admin_notes_to_challenges.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | priv/repo/migrations/20190730143901_add_admin_notes_to_challenges.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Repo.Migrations.AddAdminNotesToChallenges do
use Ecto.Migration
def change do
alter table(:challenges) do
add(:notes, :text)
end
end
end
| 18.1 | 67 | 0.729282 |
e956b70a41374278ff1b9d03ce00793005ac7193 | 1,146 | exs | Elixir | mix.exs | minhajuddin/hex_search | 31a4bfdcb1eb52dd33a1583160fd0a6556ab4534 | [
"MIT"
] | 2 | 2018-08-13T18:01:25.000Z | 2020-01-21T01:19:05.000Z | mix.exs | minhajuddin/hex_search | 31a4bfdcb1eb52dd33a1583160fd0a6556ab4534 | [
"MIT"
] | null | null | null | mix.exs | minhajuddin/hex_search | 31a4bfdcb1eb52dd33a1583160fd0a6556ab4534 | [
"MIT"
] | null | null | null | defmodule HexSearch.MixProject do
use Mix.Project
def project do
[
app: :hex_search,
name: "HexSearch",
description: description(),
package: package(),
docs: [
extras: ~W(README.md)
],
version: "0.1.0",
elixir: "~> 1.6",
escript: [main_module: HexSe... | 20.836364 | 72 | 0.562827 |
e956bcca2e84fe91c1f4ddeae3a98c826b9642f5 | 1,175 | ex | Elixir | lib/harald/hci/link_policy.ex | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | 3 | 2020-08-07T02:09:09.000Z | 2020-08-28T12:25:48.000Z | lib/harald/hci/link_policy.ex | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | lib/harald/hci/link_policy.ex | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | defmodule Harald.HCI.LinkPolicy do
@moduledoc """
> The Link Policy Commands provide methods for the Host to affect
> how the Link Manager manages the piconet. When Link Policy Commands are
> used, the LM still controls how Bluetooth piconets and scatternets are
> established and maintained, depending on adju... | 40.517241 | 98 | 0.738723 |
e956e13eb27791a097ad827b783d627948da941b | 1,403 | exs | Elixir | apps/utils/test/utils/helpers/date_formatter_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/utils/test/utils/helpers/date_formatter_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/utils/test/utils/helpers/date_formatter_test.exs | 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 ... | 33.404762 | 74 | 0.727014 |
e956e2d7471be1fa16dcd6c1f6122124bb3d9abc | 1,229 | ex | Elixir | lib/event/loader.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/event/loader.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/event/loader.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnector.Event.Loader do
alias TwitchDiscordConnector.JsonDB.TwitchUserDB
alias TwitchDiscordConnector.Event
# alias TwitchDiscordConnector.Util.H
# alias TwitchDiscordConnector.Util.L
# state: {user id, hook url, [keyword list]}
def init(_), do: {}
def channel(), do: :loader
... | 18.621212 | 56 | 0.537836 |
e956ff746cd742ac3437bfd66a4df78c2c345aa2 | 2,252 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/optimization_activity.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/optimization_activity.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/optimization_activity.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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.945455 | 243 | 0.759325 |
e95700b3940808d5ead16d0dd9ee2884e9ee3ad2 | 1,410 | ex | Elixir | apps/astarte_pairing_api/test/support/channel_case.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_pairing_api/test/support/channel_case.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_pairing_api/test/support/channel_case.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 28.2 | 74 | 0.741135 |
e957015263d5bb23c1f0d621f2073a4ce6132d7d | 1,040 | exs | Elixir | config/config.exs | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | config/config.exs | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | config/config.exs | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"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 :rocketpay,
ecto_repos: [Rocketpay.Repo... | 32.5 | 86 | 0.770192 |
e9571286bafe6c032508d08048e8ae5274bc5772 | 1,341 | ex | Elixir | lib/ex_sqlean/cpu_info.ex | mindreframer/ex_sqlean | 2829a4fd6c610c1261a36ffcc0a20c9cd0aa3fa5 | [
"MIT"
] | 1 | 2022-03-22T22:40:10.000Z | 2022-03-22T22:40:10.000Z | lib/ex_sqlean/cpu_info.ex | mindreframer/ex_sqlean | 2829a4fd6c610c1261a36ffcc0a20c9cd0aa3fa5 | [
"MIT"
] | 2 | 2021-11-29T20:38:38.000Z | 2021-12-09T22:04:12.000Z | lib/ex_sqlean/cpu_info.ex | mindreframer/ex_sqlean | 2829a4fd6c610c1261a36ffcc0a20c9cd0aa3fa5 | [
"MIT"
] | 1 | 2021-10-16T11:03:30.000Z | 2021-10-16T11:03:30.000Z | # With ideas from from https://github.com/zeam-vm/cpu_info/blob/master/lib/cpu_info.ex
defmodule ExSqlean.CpuInfo do
@doc """
Responds with os type / cpu type tuple.
Example:
iex_ > ExSqlean.CpuInfo.fullinfo()
{:macos, "arm64"}
"""
@spec fullinfo :: {atom(), binary()}
def fullinfo do
if v =... | 24.833333 | 92 | 0.621178 |
e95716018172cbe2e06ddf9b0f03f885bad0449b | 2,896 | exs | Elixir | test/helpers_test.exs | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | test/helpers_test.exs | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | test/helpers_test.exs | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule HelpersTests do
use ExUnit.Case, async: true
doctest Timex.Helpers
alias Timex.Helpers
test "days_in_month with invalid year and month" do
assert {:error, :invalid_year} = Helpers.days_in_month(-1, 3)
assert {:error, :invalid_month} = Helpers.days_in_month(1, -3)
assert {:error, :invalid... | 33.287356 | 85 | 0.669199 |
e957455071316bd053951fe3cc785694fcb5472d | 848 | exs | Elixir | lib/elixir/test/elixir/bitwise_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/test/elixir/bitwise_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/bitwise_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule Bitwise.FunctionsTest do
use ExUnit.Case, async: true
use Bitwise, skip_operators: true
test "bnot" do
assert bnot(1) == -2
end
test "band" do
assert band(1, 1) == 1
end
test "bor" do
assert bor(0, 1) == 1
end
test "bxor" do
a... | 14.133333 | 44 | 0.568396 |
e95745662ac2c30849fe21d09daf34f610b70809 | 697 | ex | Elixir | elixir/elixir-elm-playground/lib/playground/coherence/user.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/elixir-elm-playground/lib/playground/coherence/user.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/elixir-elm-playground/lib/playground/coherence/user.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Playground.Coherence.User do
@moduledoc false
use Ecto.Schema
use Coherence.Schema
schema "users" do
field :name, :string
field :email, :string
coherence_schema()
timestamps()
end
def changeset(model, params \\ %{}) do
model
|> cast(params, [:name, :email] ++ coherence_f... | 24.034483 | 99 | 0.685796 |
e957630ba004c90c22c9d5a5a786b50757c6cdda | 455 | ex | Elixir | lib/godfist/requests/third_party_code.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 6 | 2017-07-27T08:23:25.000Z | 2020-01-14T19:17:52.000Z | lib/godfist/requests/third_party_code.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 7 | 2017-08-26T06:01:16.000Z | 2018-04-03T18:30:44.000Z | lib/godfist/requests/third_party_code.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 2 | 2017-08-26T05:50:29.000Z | 2018-10-01T20:44:42.000Z | defmodule Godfist.ThirdPartyCode do
@moduledoc """
Third Party Code module.
"""
alias Godfist.LeagueRates
@endpoint "/lol/platform/v3/third-party-code"
@doc """
Get a third party code for a given summoner ID.
"""
@spec code(atom, integer) :: {:ok, String.t()} | {:error, String.t()}
def code(regio... | 22.75 | 71 | 0.661538 |
e958119a720f1a16e9167a1e46aa8fde92c7952b | 4,077 | ex | Elixir | lib/sparrow/fcm/v1/notification.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 20 | 2019-01-15T10:13:16.000Z | 2021-12-30T09:39:30.000Z | lib/sparrow/fcm/v1/notification.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 45 | 2018-10-02T10:14:57.000Z | 2021-04-30T21:57:28.000Z | lib/sparrow/fcm/v1/notification.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 9 | 2019-05-08T17:25:56.000Z | 2022-03-06T10:16:41.000Z | defmodule Sparrow.FCM.V1.Notification do
@moduledoc """
Struct representing single FCM.V1 notification.
For details on the FCM.V1 notification payload structure see the following links:
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages
"""
alias Sparrow.H2Worker.Request
@type... | 27.547297 | 131 | 0.606573 |
e958163bc0629ebed4403ffa762149a6230332ea | 20,927 | ex | Elixir | lib/elixir/lib/io.ex | RtiWeb/elixir | 78fa1763e423a6e11e1f7361ec62a06d0afe9cd5 | [
"Apache-2.0"
] | 1 | 2021-02-22T14:21:02.000Z | 2021-02-22T14:21:02.000Z | lib/elixir/lib/io.ex | RtiWeb/elixir | 78fa1763e423a6e11e1f7361ec62a06d0afe9cd5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | RtiWeb/elixir | 78fa1763e423a6e11e1f7361ec62a06d0afe9cd5 | [
"Apache-2.0"
] | null | null | null | defmodule IO do
@moduledoc ~S"""
Functions handling input/output (IO).
Many functions in this module expect an IO device as an argument.
An IO device must be a PID or an atom representing a process.
For convenience, Elixir provides `:stdio` and `:stderr` as
shortcuts to Erlang's `:standard_io` and `:standa... | 30.417151 | 104 | 0.671907 |
e95837e3feec0b3c89bc05b0f03f4048d7dc9a86 | 672 | ex | Elixir | lib/sanbase/ecto_enum.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/ecto_enum.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/ecto_enum.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | import EctoEnum
defenum(SubscriptionType, :subscription_type, [
"fiat",
"liquidity",
"burning_regular",
"burning_nft"
])
defenum(WatchlistType, :watchlist_type, ["project", "blockchain_address"])
defenum(TableConfigurationType, :table_configuration_type, ["project", "blockchain_address"])
defenum(ColorEnum, ... | 24 | 93 | 0.708333 |
e95843b3eef72dda629b000f8b64fcd3b6f7fad7 | 1,853 | ex | Elixir | priv/templates/phx.gen.live/live_helpers.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | priv/templates/phx.gen.live/live_helpers.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | priv/templates/phx.gen.live/live_helpers.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | defmodule <%= inspect context.web_module %>.LiveHelpers do
import Phoenix.LiveView
import Phoenix.LiveView.Helpers
alias Phoenix.LiveView.JS
@doc """
Renders a live component inside a modal.
The rendered modal receives a `:return_to` option to properly update
the URL when the modal is closed.
## Exa... | 30.377049 | 135 | 0.566649 |
e9585a4908aaa051cea25e23aaa39ce7dca5859d | 9,972 | ex | Elixir | lib/elixir_mod_event/erlang.ex | bulutfon/elixir_mod_event | d574863e66c779577b4108e4ab44366bad7c8313 | [
"Apache-2.0"
] | null | null | null | lib/elixir_mod_event/erlang.ex | bulutfon/elixir_mod_event | d574863e66c779577b4108e4ab44366bad7c8313 | [
"Apache-2.0"
] | null | null | null | lib/elixir_mod_event/erlang.ex | bulutfon/elixir_mod_event | d574863e66c779577b4108e4ab44366bad7c8313 | [
"Apache-2.0"
] | null | null | null | defmodule FSModEvent.Erlang do
@moduledoc """
Interface to mod_erlang_event.
See: https://freeswitch.org/confluence/display/FREESWITCH/mod_erlang_event
Copyright 2015 Marcelo Gornstein <marcelog@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in... | 32.588235 | 116 | 0.689731 |
e9587da54f2e409510fce2794c43254d9f240e35 | 3,918 | ex | Elixir | plugins/ucc_chat/lib/ucc_chat/chat_dat.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat/chat_dat.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat/chat_dat.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccChat.ChatDat do
@moduledoc """
The main data structure provided to many of the chat related templates.
Instead of passing a large number of bindings around, this module
provides a common struct containing the information required to render
the main chat app.
"""
alias UccChat.{Channel}
ali... | 28.18705 | 82 | 0.644206 |
e958874bd1e7e332349b514e25da17a54a2ca0fb | 1,482 | ex | Elixir | lib/media_server_web/repositories/series.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 538 | 2022-02-02T21:46:52.000Z | 2022-03-29T20:50:34.000Z | lib/media_server_web/repositories/series.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 48 | 2022-02-03T11:46:09.000Z | 2022-03-31T04:44:53.000Z | lib/media_server_web/repositories/series.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 15 | 2022-02-03T05:55:14.000Z | 2022-02-28T11:09:03.000Z | defmodule MediaServerWeb.Repositories.Series do
def get_url(url) do
case Application.get_env(:media_server, :series_base_url) === nil ||
Application.get_env(:media_server, :series_api_key) === nil do
true ->
:error
false ->
"#{Application.get_env(:media_server, :series_base... | 29.058824 | 141 | 0.634278 |
e958a6a2d832832df0267cb7ad9fec98451cc76d | 87 | exs | Elixir | test/controllers/game_controller_test.exs | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | 1 | 2020-01-19T03:29:22.000Z | 2020-01-19T03:29:22.000Z | test/controllers/game_controller_test.exs | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | null | null | null | test/controllers/game_controller_test.exs | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | null | null | null | defmodule InteractiveTetris.GameControllerTest do
use InteractiveTetris.ConnCase
end
| 21.75 | 49 | 0.885057 |
e958a7752d61ec75a4c247abdff78da47999d845 | 1,453 | ex | Elixir | lib/sorted_set_kv.ex | SoCal-Software-Labs/SortedSetKV | 611f2612eedd0a6629d0242dfdba405372808c6a | [
"MIT"
] | null | null | null | lib/sorted_set_kv.ex | SoCal-Software-Labs/SortedSetKV | 611f2612eedd0a6629d0242dfdba405372808c6a | [
"MIT"
] | null | null | null | lib/sorted_set_kv.ex | SoCal-Software-Labs/SortedSetKV | 611f2612eedd0a6629d0242dfdba405372808c6a | [
"MIT"
] | null | null | null | defmodule SortedSetKV do
use Rustler,
otp_app: :sorted_set_kv,
crate: :sortedsetkv
def open(_path), do: :erlang.nif_error(:nif_not_loaded)
def clear(_db), do: :erlang.nif_error(:nif_not_loaded)
def zadd(_db, _collection, _key, _value, _score, _add_if_gt),
do: :erlang.nif_error(:nif_not_loaded)
... | 40.361111 | 94 | 0.749484 |
e958bab8ae8515404ece2d858c388812611024ff | 822 | ex | Elixir | apps/fz_http/lib/fz_http_web/live/device_live/form_component.ex | CloudFire-LLC/fireguard | 50ccfc792cf580104922026fedbbf3cd6e374574 | [
"Apache-2.0"
] | 5 | 2020-05-22T00:24:39.000Z | 2021-06-18T18:28:45.000Z | apps/fz_http/lib/fz_http_web/live/device_live/form_component.ex | CloudFire-LLC/fireguard | 50ccfc792cf580104922026fedbbf3cd6e374574 | [
"Apache-2.0"
] | 64 | 2020-05-22T00:31:00.000Z | 2021-06-28T15:21:33.000Z | apps/fz_http/lib/fz_http_web/live/device_live/form_component.ex | CloudFire-LLC/fireguard | 50ccfc792cf580104922026fedbbf3cd6e374574 | [
"Apache-2.0"
] | 2 | 2020-05-22T00:27:52.000Z | 2021-03-14T19:37:27.000Z | defmodule FzHttpWeb.DeviceLive.FormComponent do
@moduledoc """
Handles device form.
"""
use FzHttpWeb, :live_component
alias FzHttp.Devices
def update(assigns, socket) do
changeset = Devices.change_device(assigns.device)
{:ok,
socket
|> assign(assigns)
|> assign(:changeset, changes... | 23.485714 | 67 | 0.647202 |
e958eaeb3b25c6b6735150cea14494c5b1b90834 | 656 | ex | Elixir | lib/sonox/types/player_state.ex | motionless/sonox | 7d5738c570ebdb4ff042d560edc21d87db86e830 | [
"MIT"
] | null | null | null | lib/sonox/types/player_state.ex | motionless/sonox | 7d5738c570ebdb4ff042d560edc21d87db86e830 | [
"MIT"
] | null | null | null | lib/sonox/types/player_state.ex | motionless/sonox | 7d5738c570ebdb4ff042d560edc21d87db86e830 | [
"MIT"
] | null | null | null | defmodule PlayerState do
@moduledoc false
defstruct volume: nil,
mute: nil,
bass: nil,
treble: nil,
loudness: nil,
track_info: nil,
track_number: nil,
total_tracks: nil,
current_state: nil,
current_mode: nil... | 23.428571 | 36 | 0.501524 |
e959065d1b6be6777ea847c09c237b57ee85b26c | 1,852 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_node_property.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_node_property.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_node_property.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... | 33.672727 | 217 | 0.735421 |
e95908d67e257f0964c21fee2287af41cbb8c58c | 5,833 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/auth_token.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/auth_token.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/auth_token.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # 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.471616 | 91 | 0.661924 |
e9590ed62b601a38deb5b828ae374858ac8ca6a4 | 3,879 | exs | Elixir | test/json_schema_test_suite/draft4/additional_items_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/json_schema_test_suite/draft4/additional_items_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/json_schema_test_suite/draft4/additional_items_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule JsonSchemaTestSuite.Draft4.AdditionalItemsTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe ~s|additionalItems as schema| do
setup do
%{
schema:
Xema.from_json_schema(
%{"additionalItems" => %{"type" => "integer"}, "items" => [%{}]},
dr... | 24.865385 | 89 | 0.512245 |
e9593078302f3cd12d14cb1403d59ac1c87fab59 | 4,789 | exs | Elixir | test/scenic_new_example_test.exs | grahamhay/scenic_new | 23bb1559878ed5e1cd66866b758a685306cbc1a8 | [
"Apache-2.0"
] | null | null | null | test/scenic_new_example_test.exs | grahamhay/scenic_new | 23bb1559878ed5e1cd66866b758a685306cbc1a8 | [
"Apache-2.0"
] | null | null | null | test/scenic_new_example_test.exs | grahamhay/scenic_new | 23bb1559878ed5e1cd66866b758a685306cbc1a8 | [
"Apache-2.0"
] | null | null | null | Code.require_file("mix_helper.exs", __DIR__)
defmodule Mix.Tasks.Scenic.NewExampleTest do
use ExUnit.Case, async: false
import ScenicNew.MixHelper
import ExUnit.CaptureIO
@app_name "scenic_demo"
@module_name "ScenicDemo"
test "new.example with defaults" do
in_tmp("new with defaults", fn ->
ass... | 38.620968 | 103 | 0.599708 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.