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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ad1eaf2a66957b621e637ba3e5708cb26d5c495 | 959 | exs | Elixir | test/models/user_test.exs | zhangsoledad/Doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 6 | 2016-03-17T08:45:34.000Z | 2016-10-10T01:20:37.000Z | test/models/user_test.exs | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | null | null | null | test/models/user_test.exs | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 2 | 2016-04-01T06:28:56.000Z | 2016-04-28T09:35:07.000Z | defmodule Doom.UserTest do
use Doom.ModelCase, async: true
alias Doom.User
@valid_attrs %{email: "a@a.com", role: "admin", password: "zdw3240777"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert changeset.valid?
end
test "ch... | 29.96875 | 104 | 0.726799 |
4ad1ff3adf676f27a91507fac9af7c6082fa1ef4 | 6,538 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/log_sink.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_sink.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_sink.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... | 81.725 | 882 | 0.736311 |
4ad2257db7306ed48b66d0d32496881c05f2c085 | 1,806 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/commitments_scoped_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/commitments_scoped_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/commitments_scoped_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.411765 | 113 | 0.751384 |
4ad29956a61ed32865195c9497b144cd9da1119e | 1,130 | ex | Elixir | lib/invault/application.ex | invault-team/backend | 1a79652be21f8ae0389378239a48881f78e61c58 | [
"Apache-2.0"
] | 2 | 2018-10-22T20:56:40.000Z | 2018-11-05T09:48:37.000Z | lib/invault/application.ex | invault-team/backend | 1a79652be21f8ae0389378239a48881f78e61c58 | [
"Apache-2.0"
] | 8 | 2018-11-05T20:35:55.000Z | 2019-01-01T06:15:32.000Z | lib/invault/application.ex | invault-team/backend | 1a79652be21f8ae0389378239a48881f78e61c58 | [
"Apache-2.0"
] | null | null | null | defmodule Invault.Application do
@moduledoc """
Invault application.
"""
use Application
# credo:disable-for-this-file Credo.Check.Design.AliasUsage
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# D... | 31.388889 | 85 | 0.713274 |
4ad29ae007fa15fb25b3d31c2201316b6d6d365e | 898 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 33.259259 | 74 | 0.762806 |
4ad2b5001fb932685fcbc23283784e307b953391 | 33,406 | ex | Elixir | lib/eqrcode/spec_table.ex | Bounceapp/eqrcode | cf88dd40b575e6986dfa756aca46c2482ec860ac | [
"MIT"
] | 160 | 2018-06-04T03:50:32.000Z | 2022-03-18T10:52:50.000Z | lib/eqrcode/spec_table.ex | Bounceapp/eqrcode | cf88dd40b575e6986dfa756aca46c2482ec860ac | [
"MIT"
] | 18 | 2018-09-03T01:52:33.000Z | 2021-11-04T04:44:04.000Z | lib/eqrcode/spec_table.ex | Bounceapp/eqrcode | cf88dd40b575e6986dfa756aca46c2482ec860ac | [
"MIT"
] | 26 | 2018-06-21T03:51:14.000Z | 2021-12-27T10:16:06.000Z | defmodule EQRCode.SpecTable do
@type error_correction_level :: :l | :m | :q | :h
@type version :: 1..40
@type mode :: :numeric | :alphanumeric | :byte | :kenji | :eci
def error_correction_level(), do: [:l, :m, :q, :h]
@mode [
numeric: 0b0001,
alphanumeric: 0b0010,
byte: 0b0100,
kanji: 0b1000... | 32.307544 | 160 | 0.487098 |
4ad2c0f392776ecd64ef2e4f2727db4482f98cd5 | 517 | exs | Elixir | mix.exs | sviridov/anaphora-elixir | 43cb36e5eb76f6b81a43660d2ef2e64cea213c29 | [
"MIT"
] | 14 | 2015-06-16T06:49:14.000Z | 2022-02-03T01:17:22.000Z | mix.exs | sviridov/anaphora-elixir | 43cb36e5eb76f6b81a43660d2ef2e64cea213c29 | [
"MIT"
] | 2 | 2015-06-16T06:28:03.000Z | 2016-02-25T13:13:28.000Z | mix.exs | sviridov/anaphora-elixir | 43cb36e5eb76f6b81a43660d2ef2e64cea213c29 | [
"MIT"
] | 3 | 2015-06-16T04:22:35.000Z | 2018-11-03T18:14:12.000Z | defmodule Anaphora.Mixfile do
use Mix.Project
def project do
[app: :anaphora,
version: "0.1.2",
deps: deps,
package: package,
description: description]
end
def application do
[]
end
defp deps do
[]
end
defp description do
"""
The anaphoric macro collection for Eli... | 16.15625 | 73 | 0.622824 |
4ad30008e63642b70cf8a4e4e97e44b438058baf | 120 | ex | Elixir | lib/types/get_parameter_names_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/types/get_parameter_names_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/types/get_parameter_names_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Messages.GetParameterNamesResponse do
@derive [Poison.Encoder]
defstruct parameters: []
end
| 24 | 61 | 0.808333 |
4ad350eaa0d2cea274920616c7ee6791d79d6a34 | 23,768 | ex | Elixir | lib/pulsar_ex/io.ex | blueshift-labs/pulsar_ex | 8fd5b6b7fa98b172645bce56dd3a46395935e2e0 | [
"MIT"
] | 3 | 2021-04-16T01:54:20.000Z | 2022-01-09T23:26:56.000Z | lib/pulsar_ex/io.ex | blueshift-labs/pulsar_ex | 8fd5b6b7fa98b172645bce56dd3a46395935e2e0 | [
"MIT"
] | null | null | null | lib/pulsar_ex/io.ex | blueshift-labs/pulsar_ex | 8fd5b6b7fa98b172645bce56dd3a46395935e2e0 | [
"MIT"
] | null | null | null | defmodule PulsarEx.IO do
alias PulsarEx.{Proto, ProducerMessage, ConsumerMessage}
@magic_number 3585
def ack_type(:individual), do: :Individual
def ack_type(:cumulative), do: :Cumulative
def ack_type(type), do: type
def subscription_type(:exclusive), do: :Exclusive
def subscription_type(:shared), do: :... | 35.741353 | 139 | 0.712428 |
4ad36074d5481a0891d033cfb337ea017f731829 | 1,973 | exs | Elixir | test/lib/bamboo/adapters/mandrill_helper_test.exs | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/mandrill_helper_test.exs | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/mandrill_helper_test.exs | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | 1 | 2018-08-14T13:02:18.000Z | 2018-08-14T13:02:18.000Z | defmodule Bamboo.MandrillHelperTest do
use ExUnit.Case
import Bamboo.Email
alias Bamboo.MandrillHelper
test "put_param/3 puts a map in private.message_params" do
email = new_email() |> MandrillHelper.put_param("track_links", true)
assert email.private.message_params == %{"track_links" => true}
end
... | 29.447761 | 136 | 0.578814 |
4ad364f57edd4c7f17cab0dd66dd7ae7d60a55d0 | 1,007 | ex | Elixir | lib/community/web/views/error_helpers.ex | KenzoBenzo/graphql-elixir | 66607a0b27ede5fd53d8f378a7a8fbc587d339c1 | [
"MIT"
] | 13 | 2018-01-16T10:28:25.000Z | 2021-09-02T06:54:19.000Z | lib/community/web/views/error_helpers.ex | KenzoBenzo/graphql-elixir | 66607a0b27ede5fd53d8f378a7a8fbc587d339c1 | [
"MIT"
] | 2 | 2017-07-12T01:29:49.000Z | 2019-03-21T05:14:05.000Z | lib/community/web/views/error_helpers.ex | KenzoBenzo/graphql-elixir | 66607a0b27ede5fd53d8f378a7a8fbc587d339c1 | [
"MIT"
] | 7 | 2017-09-29T17:09:28.000Z | 2021-02-28T11:40:01.000Z | defmodule Community.Web.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# Because error messages were defined within Ecto, we must
# call the Gettext module pas... | 33.566667 | 79 | 0.672294 |
4ad36c12b9797e967fccadb06e71d939b18c08cf | 10,377 | ex | Elixir | lib/joken_jwks/default_strategy_template.ex | ebostijancic/joken_jwks | 248abf312260af95fcb850e9b2451c7fb5807550 | [
"Apache-2.0"
] | null | null | null | lib/joken_jwks/default_strategy_template.ex | ebostijancic/joken_jwks | 248abf312260af95fcb850e9b2451c7fb5807550 | [
"Apache-2.0"
] | null | null | null | lib/joken_jwks/default_strategy_template.ex | ebostijancic/joken_jwks | 248abf312260af95fcb850e9b2451c7fb5807550 | [
"Apache-2.0"
] | null | null | null | defmodule JokenJwks.DefaultStrategyTemplate do
@moduledoc """
A `JokenJwks.SignerMatchStrategy` template that has a window of time for refreshing its
cache. This is a template and not a concrete implementation. You should `use` this module
in order to use the default strategy.
This implementation is a task ... | 33.582524 | 112 | 0.609136 |
4ad3a26c320fe79b75c4429465d005a746bd7314 | 1,176 | ex | Elixir | apps/day15/lib/day15.ex | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day15/lib/day15.ex | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day15/lib/day15.ex | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | defmodule Day15 do
@moduledoc "Day 15: Dueling Generators"
@factor_a 16_807
@factor_b 48_271
@devider 2_147_483_647
def part1(a, b) do
gen_a = generator(a, @factor_a)
gen_b = generator(b, @factor_b)
gen_a
|> Stream.zip(gen_b)
|> Stream.take(40_000_000)
|> Stream.filter(fn {a_bits, b... | 21.777778 | 65 | 0.613946 |
4ad3a37c0555b1c877561f8585ef150abd8fd477 | 976 | ex | Elixir | lib/scaffolding/behaviours/query_behaviour.ex | kimidesu/ElixirScaffolding | ded77b73c306395bcb27565e6b32f7ffb70f66df | [
"MIT"
] | 1 | 2021-04-09T05:40:30.000Z | 2021-04-09T05:40:30.000Z | lib/scaffolding/behaviours/query_behaviour.ex | kimidesu/ElixirScaffolding | ded77b73c306395bcb27565e6b32f7ffb70f66df | [
"MIT"
] | null | null | null | lib/scaffolding/behaviours/query_behaviour.ex | kimidesu/ElixirScaffolding | ded77b73c306395bcb27565e6b32f7ffb70f66df | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2017 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.Scaffolding.QueryBehaviour do
@type ref :: tuple
@type ... | 57.411765 | 102 | 0.604508 |
4ad3b9166f37ae43093fe8bb892df881a0445cf2 | 1,296 | exs | Elixir | config/test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | config/test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | config/test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :code_corps, CodeCorps.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :code_corps, CodeC... | 32.4 | 82 | 0.782407 |
4ad3beb0e9873e8479f54ff0a86d788249819ea0 | 261 | ex | Elixir | lib/pm_bot/repo.ex | jmilamwalters/pm_bot | 480b1435aa1e4f1c3e3234039f8e3567aba82a31 | [
"MIT"
] | null | null | null | lib/pm_bot/repo.ex | jmilamwalters/pm_bot | 480b1435aa1e4f1c3e3234039f8e3567aba82a31 | [
"MIT"
] | 3 | 2018-01-15T02:30:21.000Z | 2018-02-02T21:02:41.000Z | lib/pm_bot/repo.ex | jmilamwalters/pm_bot | 480b1435aa1e4f1c3e3234039f8e3567aba82a31 | [
"MIT"
] | null | null | null | defmodule PmBot.Repo do
use Ecto.Repo, otp_app: :pm_bot
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 21.75 | 66 | 0.693487 |
4ad40884c2764bf66a86b2522227c21e8c200f42 | 8,339 | exs | Elixir | exercises/concept/city-office/test/form_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | exercises/concept/city-office/test/form_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 9 | 2021-09-12T15:19:06.000Z | 2022-03-30T22:24:24.000Z | exercises/concept/city-office/test/form_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | defmodule FormTest do
use ExUnit.Case
# Dear Elixir learner,
# If you're reading this test suite to gain some insights,
# please be advised that it is somewhat unusual.
#
# Don't worry if you don't understand this test suite at this stage of your learning journey.
# We had to use some advanced features t... | 30.434307 | 113 | 0.639645 |
4ad41944efafa9074c3114d325bb60ddf8d5a68e | 1,480 | ex | Elixir | Test1.ex | LydiaMarieWilliamson/zork-fortran | 8d918816ce629def9a9cf05ba4eef741adf16549 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | Test1.ex | LydiaMarieWilliamson/zork-fortran | 8d918816ce629def9a9cf05ba4eef741adf16549 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | Test1.ex | LydiaMarieWilliamson/zork-fortran | 8d918816ce629def9a9cf05ba4eef741adf16549 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | Welcome to Dungeon. This version created 2021-10-31.
You are in an open field west of a big white house with a boarded
front door.
There is a small mailbox here.
>Opening the mailbox reveals:
A leaflet.
>Taken.
Welcome to Dungeon!
Dungeon is a game of adventure, danger, and low cunning. In it
you will expl... | 41.111111 | 72 | 0.783108 |
4ad425bd7eeae2d834f970044e23320c9c887392 | 630 | exs | Elixir | priv/repo/migrations/20180107211408_create_sources.exs | allen-garvey/block-quote-phoenix | 5c0f5d16daf6bb515a8f1846c3e4311b368a7bdb | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/blockquote/priv/repo/migrations/20180107211408_create_sources.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/blockquote/priv/repo/migrations/20180107211408_create_sources.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Blockquote.Repo.Migrations.CreateSources do
use Ecto.Migration
def change do
create table(:sources) do
add :title, :string, null: false
add :subtitle, :string
add :url, :string
add :author_id, references(:authors, on_delete: :nothing), null: false
add :source_type_id, re... | 30 | 86 | 0.692063 |
4ad43854d82a21d0035931fe1a20379199f53432 | 8,342 | exs | Elixir | apps/astarte_pairing_api/test/astarte_pairing_api/agent/agent_test.exs | 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/astarte_pairing_api/agent/agent_test.exs | 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/astarte_pairing_api/agent/agent_test.exs | 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-2018 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... | 35.347458 | 98 | 0.572884 |
4ad45e7388297e816b10d42ec43ace2c107deea8 | 14,883 | ex | Elixir | lib/moeda.ex | ramondelemos/ex_dinheiro | 8bdbcb23153dab2354b58415c0622207ce89fb3b | [
"MIT"
] | null | null | null | lib/moeda.ex | ramondelemos/ex_dinheiro | 8bdbcb23153dab2354b58415c0622207ce89fb3b | [
"MIT"
] | null | null | null | lib/moeda.ex | ramondelemos/ex_dinheiro | 8bdbcb23153dab2354b58415c0622207ce89fb3b | [
"MIT"
] | null | null | null | defmodule Moeda do
@moduledoc """
[](https://travis-ci.org/ramondelemos/ex_dinheiro?branch=master)
[](https://coveralls.io/github/... | 29.945674 | 224 | 0.627696 |
4ad462e81e22857e1111ce2b153a6522347503ff | 2,958 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_translation.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_translation.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_translation.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.520548 | 381 | 0.74307 |
4ad4c5887ed8f94c855e865e99952dc422f076dc | 1,195 | ex | Elixir | web/views/page_view.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | web/views/page_view.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | web/views/page_view.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.PageView do
use Eecrit.Web, :view
alias Eecrit.OldAnimal
alias Eecrit.OldProcedure
alias Eecrit.User
alias Eecrit.Organization
alias Eecrit.AbilityGroup
use Eecrit.TagHelpers
alias Eecrit.AggregateViewWidgets
def commands(conn) do
button_groups = [
# No user
[m_no_use... | 25.978261 | 104 | 0.683682 |
4ad4d8afee4478d5b0dc8cf41d64a9dc2edfcdcc | 1,196 | ex | Elixir | lib/escala/cms/question_option.ex | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | lib/escala/cms/question_option.ex | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | lib/escala/cms/question_option.ex | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | defmodule Escala.CMS.QuestionOption do
@moduledoc """
Question Option
"""
use Ecto.Schema
import Ecto.Changeset
alias Escala.CMS.QuestionOption
alias Escala.CMS.Question
alias Escala.CMS.OptionChoice
@primary_key {:id, Ecto.UUID, read_after_writes: true}
@foreign_key_type Ecto.UUID
schema "ques... | 27.181818 | 86 | 0.709866 |
4ad4f751cad3527576780a9a863c6bc037d20025 | 355 | exs | Elixir | test/fixtures/fixture_project/mix.exs | vinibrsl/mix_bina | 270d452519f0289c916e2a1e369eeaa51a16a307 | [
"MIT"
] | 8 | 2022-01-23T22:11:10.000Z | 2022-02-23T16:50:33.000Z | test/fixtures/fixture_project/mix.exs | vinibrsl/mix_bina | 270d452519f0289c916e2a1e369eeaa51a16a307 | [
"MIT"
] | null | null | null | test/fixtures/fixture_project/mix.exs | vinibrsl/mix_bina | 270d452519f0289c916e2a1e369eeaa51a16a307 | [
"MIT"
] | null | null | null | defmodule MixProject.FixtureProject do
use Mix.Project
def project do
[
app: :fixture_project,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[{:... | 16.136364 | 42 | 0.56338 |
4ad58e029ab50e0a82fcfa09ea72e525c0558ca1 | 970 | ex | Elixir | packages/templates/src/project/potionx/lib/{{ appName }}_web/views/layout_view.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | packages/templates/src/project/potionx/lib/{{ appName }}_web/views/layout_view.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | packages/templates/src/project/potionx/lib/{{ appName }}_web/views/layout_view.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule <%= webNamespace %>.LayoutView do
use <%= webNamespace %>, :view
def metas do
[]
end
def scripts do
if Application.get_env(:<%= appName %>, :env) == :prod do
File.read!(
Path.join(:code.priv_dir(:<%= appName %>), "static/manifest.json")
)
|> Jason.decode!
|> c... | 21.086957 | 74 | 0.461856 |
4ad598d4520f4f0ea27537b01a1447b908fcf5eb | 1,086 | ex | Elixir | lib/game/command/afk.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/command/afk.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/command/afk.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Game.Command.AFK do
@moduledoc """
The "afk" command
"""
use Game.Command
commands(["afk"], parse: false)
@impl Game.Command
def help(:topic), do: "AFK"
def help(:short), do: "Go away from keyboard"
def help(:full) do
"""
This command lets you set your AFK flag for others to see.... | 18.724138 | 62 | 0.593002 |
4ad5a8d1bae4963c37d7dc3d23d912156a856e5d | 2,781 | exs | Elixir | 2021/day16-bitstring.exs | princemaple/aoc | 325dd12c8b5b827458214846f184e07a6cfbdf34 | [
"MIT"
] | 1 | 2021-12-13T00:31:09.000Z | 2021-12-13T00:31:09.000Z | 2021/day16-bitstring.exs | princemaple/aoc | 325dd12c8b5b827458214846f184e07a6cfbdf34 | [
"MIT"
] | null | null | null | 2021/day16-bitstring.exs | princemaple/aoc | 325dd12c8b5b827458214846f184e07a6cfbdf34 | [
"MIT"
] | null | null | null | # Title: Day16 - BitString
# ── Untitled ──
data =
"input"
|> IO.getn(1_000_000)
|> String.trim()
|> :binary.decode_hex()
defmodule D16 do
def parse(data) do
{data, %{}}
|> parse_meta(:version)
|> parse_meta(:type)
|> parse_by_type()
end
def parse_meta({<<meta_value::... | 22.248 | 74 | 0.533621 |
4ad5b7efdeb3416813ba2b72c91e95e05166e071 | 103 | exs | Elixir | ch6/default_params.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch6/default_params.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch6/default_params.exs | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | defmodule Example do
def func(p1, p2 \\ 2, p3 \\ 3, p4) do
IO.inspect [p1, p2, p3, p4]
end
end | 20.6 | 39 | 0.582524 |
4ad5cf04d125bd44bbcb0cf413ff095a7ad3ef91 | 1,128 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 29.684211 | 107 | 0.757979 |
4ad5e7b28ba37eabdac6027c5a8a39e1958770aa | 2,004 | exs | Elixir | test/philopets/blogs_test.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/philopets/blogs_test.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/philopets/blogs_test.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | defmodule Philopets.BlogsTest do
use Philopets.DataCase
alias Philopets.Blogs
describe "blogs" do
alias Philopets.Blogs.Blog
alias Philopets.Accounts.ProfilesFixtures
import Philopets.BlogsFixtures
@invalid_attrs %{body: nil, title: nil, profile_id: nil}
test "list_blogs/0 returns all blo... | 31.3125 | 85 | 0.668164 |
4ad6322f63b7c2f10f1bf01f2308992576a955fd | 1,312 | exs | Elixir | mix.exs | binarytemple/plug-session-riak | 12f6a24e7f2d6b3fc9a476cace7065f8b737f36e | [
"MIT"
] | null | null | null | mix.exs | binarytemple/plug-session-riak | 12f6a24e7f2d6b3fc9a476cace7065f8b737f36e | [
"MIT"
] | null | null | null | mix.exs | binarytemple/plug-session-riak | 12f6a24e7f2d6b3fc9a476cace7065f8b737f36e | [
"MIT"
] | null | null | null | defmodule PlugSessionMemcached.Mixfile do
use Mix.Project
def project do
[app: :plug_session_riak,
version: "0.0.1",
elixir: "~> 1.0",
package: package,
description: description,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more i... | 22.237288 | 77 | 0.566311 |
4ad6351b8ae2242bebd13017e4e442b8858e3ecd | 1,705 | exs | Elixir | hex/helpers/lib/run.exs | lioramilbaum/dependabot-core | 7c652cafc638f0dbd6f7a8a2ed9a5afd7ae9a3f3 | [
"MS-PL",
"Naumen",
"Condor-1.1",
"0BSD"
] | 2,670 | 2017-07-28T15:32:53.000Z | 2022-03-31T22:42:15.000Z | hex/helpers/lib/run.exs | lioramilbaum/dependabot-core | 7c652cafc638f0dbd6f7a8a2ed9a5afd7ae9a3f3 | [
"MS-PL",
"Naumen",
"Condor-1.1",
"0BSD"
] | 3,028 | 2017-08-01T07:32:04.000Z | 2022-03-31T23:53:04.000Z | hex/helpers/lib/run.exs | lioramilbaum/dependabot-core | 7c652cafc638f0dbd6f7a8a2ed9a5afd7ae9a3f3 | [
"MS-PL",
"Naumen",
"Condor-1.1",
"0BSD"
] | 698 | 2017-09-07T10:26:02.000Z | 2022-03-27T16:31:21.000Z | defmodule DependencyHelper do
def main() do
IO.read(:stdio, :all)
|> Jason.decode!()
|> run()
|> case do
{output, 0} ->
if output =~ "No authenticated organization found" do
{:error, output}
else
{:ok, :erlang.binary_to_term(output)}
end
{error,... | 22.142857 | 110 | 0.559531 |
4ad68e4289a48a72202425dc880fe2c97c2e4f97 | 7,373 | ex | Elixir | lib/paginator.ex | 0nkery/paginator | a7369bc2ab47d46c0b9431fe1aa887a532f92c56 | [
"MIT"
] | null | null | null | lib/paginator.ex | 0nkery/paginator | a7369bc2ab47d46c0b9431fe1aa887a532f92c56 | [
"MIT"
] | null | null | null | lib/paginator.ex | 0nkery/paginator | a7369bc2ab47d46c0b9431fe1aa887a532f92c56 | [
"MIT"
] | null | null | null | defmodule Paginator do
@moduledoc """
Defines a paginator.
This module adds a `paginate/3` function to your `Ecto.Repo` so that you can
paginate through results using opaque cursors.
## Usage
defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :my_app
use Paginator
end
## Options... | 32.196507 | 158 | 0.680049 |
4ad6a6cbb474f60b8993a15486076b1acab276d6 | 11,959 | ex | Elixir | backend/lib/edgehog/devices.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/lib/edgehog/devices.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/lib/edgehog/devices.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 28.678657 | 102 | 0.666527 |
4ad6b1128802d3ee0e17706389a03d2907dc0d9d | 7,861 | ex | Elixir | lib/coherence/plugs/authorization/session.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/session.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/session.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | defmodule Coherence.Authentication.Session do
@moduledoc """
Implements Session based authentication. By default, it uses an Server for
session state. Additionally, a the session can be stored in a database with
an Server based cache.
The plug can be used to force a login for unauthenticated users for routes... | 30.468992 | 118 | 0.658186 |
4ad6b8c1c2b84b734bfdac7a1e215cbcfa0f21a0 | 2,745 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/api/colors.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/colors.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/colors.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 39.782609 | 218 | 0.701639 |
4ad6be490dc87e52c5ec73d141061eeb6b32d05e | 1,300 | ex | Elixir | apps/site/lib/site_web/redirector.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/redirector.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/redirector.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.Redirector do
@behaviour Plug
import Plug.Conn, only: [put_status: 2, halt: 1]
import Phoenix.Controller, only: [redirect: 2]
alias CMS.Repo
@impl true
@spec init(Keyword.t()) :: Keyword.t()
def init([to: _] = opts), do: opts
def init(_default), do: raise("Missing required to: opti... | 26.530612 | 92 | 0.653846 |
4ad6c0be06fe44d5bebd9e614ccbe2d6b6c40670 | 597 | exs | Elixir | test/apex_test.exs | BjRo/apex | 362a5a99a77249615583d7fed6e351967f13ccdf | [
"Unlicense",
"MIT"
] | 274 | 2015-01-09T18:11:19.000Z | 2021-12-07T20:22:16.000Z | test/apex_test.exs | BjRo/apex | 362a5a99a77249615583d7fed6e351967f13ccdf | [
"Unlicense",
"MIT"
] | 27 | 2015-04-23T18:13:24.000Z | 2019-12-13T07:49:51.000Z | test/apex_test.exs | BjRo/apex | 362a5a99a77249615583d7fed6e351967f13ccdf | [
"Unlicense",
"MIT"
] | 27 | 2015-03-18T00:51:01.000Z | 2021-04-27T13:03:07.000Z | defmodule Apex.Test do
use ExUnit.Case
import Apex
import ExUnit.CaptureIO
test "#ap without label" do
output = capture_io(fn ->
ap([first_name: "John", last_name: "Doe"], color: false)
end)
assert output == """
[
[0] first_name: "John"
[1] last_name: "Doe"
]
"""
en... | 18.65625 | 83 | 0.552764 |
4ad6d87849d64a157b521673ade1788f3e56d71f | 2,399 | ex | Elixir | lib/freegiving_web.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving_web.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving_web.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule FreegivingWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use FreegivingWeb, :controller
use FreegivingWeb, :view
The definitions below will be executed for every view,
con... | 23.067308 | 78 | 0.68862 |
4ad6da899077c0bfebd59cfbbb1f27b2424352e4 | 70 | exs | Elixir | test/test_helper.exs | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 2 | 2020-05-25T05:28:31.000Z | 2020-05-25T08:10:43.000Z | test/test_helper.exs | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 9 | 2020-05-25T16:39:15.000Z | 2020-11-11T16:51:37.000Z | test/test_helper.exs | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Ambrosia.Repo, :manual)
| 23.333333 | 54 | 0.785714 |
4ad6e104fc7506015093ca2e3c7b2d523a52f71d | 271 | ex | Elixir | lib/accent/schemas/schema.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/accent/schemas/schema.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/accent/schemas/schema.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Schema do
defmacro __using__(_) do
quote do
use Ecto.Schema
@type t :: struct
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
import Ecto
import Ecto.Changeset
end
end
end
| 18.066667 | 56 | 0.645756 |
4ad6fc8ad07de0e79c7a7dcf7c579ccf221a2eae | 662 | exs | Elixir | test/wechat/access_token_worker_test.exs | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | test/wechat/access_token_worker_test.exs | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | test/wechat/access_token_worker_test.exs | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | defmodule Wechat.Worker.AccessTokenTest do
use ExUnit.Case, async: false
alias Wechat.Workers.AccessToken
test "custom fetcher" do
Application.put_env(
:wechat,
:access_token_fetcher,
{__MODULE__, :fetch_token, []}
)
AccessToken.start_link([])
Process.send AccessToken, :refres... | 22.066667 | 74 | 0.694864 |
4ad6fd8003352271aa43664842ceedfad89aa5a6 | 1,513 | exs | Elixir | mix.exs | membraneframework/membrane_rtsp | aad85990b1f37013f814ce063a44b86cc6d968c4 | [
"Apache-2.0"
] | null | null | null | mix.exs | membraneframework/membrane_rtsp | aad85990b1f37013f814ce063a44b86cc6d968c4 | [
"Apache-2.0"
] | 4 | 2020-12-03T09:49:09.000Z | 2021-09-24T10:53:42.000Z | mix.exs | membraneframework/membrane_rtsp | aad85990b1f37013f814ce063a44b86cc6d968c4 | [
"Apache-2.0"
] | 2 | 2021-03-17T21:36:15.000Z | 2021-05-08T12:53:29.000Z | defmodule Membrane.RTSP.MixProject do
use Mix.Project
@version "0.3.0"
@github_url "https://github.com/membraneframework/membrane_rtsp"
def project do
[
app: :membrane_rtsp,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.en... | 22.924242 | 72 | 0.552545 |
4ad70b3cafa51f2442e0955afa053597eac5c849 | 2,367 | ex | Elixir | lib/transaction.ex | karlseguin/monet | 349b85150226e682c148eb54375fb49feda605fb | [
"0BSD"
] | 2 | 2020-08-03T01:06:40.000Z | 2020-08-03T03:56:36.000Z | lib/transaction.ex | karlseguin/monet | 349b85150226e682c148eb54375fb49feda605fb | [
"0BSD"
] | 1 | 2021-12-15T04:19:33.000Z | 2021-12-16T00:39:09.000Z | lib/transaction.ex | karlseguin/monet | 349b85150226e682c148eb54375fb49feda605fb | [
"0BSD"
] | 1 | 2020-10-08T12:19:14.000Z | 2020-10-08T12:19:14.000Z | defmodule Monet.Transaction do
@moduledoc """
Created via `Monet.transaction/1` or `Monet.transaction/2`.
"""
require Record
alias Monet.{Connection, Error, Prepared, Reader, Writer}
Record.defrecord(:transaction, conn: nil, ref: nil, pool_name: nil)
def new(conn) do
transaction(
conn: conn,
ref: mak... | 23.435644 | 88 | 0.649345 |
4ad729bc1df2831a36c7451066a8648c71f3a0ad | 1,988 | exs | Elixir | test/backdoor_test.exs | Grantimus9/guardian_backdoor | fe6383342f15c409a8e4ce6a427902bc99e6743a | [
"MIT"
] | 24 | 2017-10-26T19:06:45.000Z | 2021-03-15T01:54:10.000Z | test/backdoor_test.exs | Grantimus9/guardian_backdoor | fe6383342f15c409a8e4ce6a427902bc99e6743a | [
"MIT"
] | 5 | 2017-10-26T19:06:28.000Z | 2021-12-02T01:21:27.000Z | test/backdoor_test.exs | Grantimus9/guardian_backdoor | fe6383342f15c409a8e4ce6a427902bc99e6743a | [
"MIT"
] | 5 | 2017-10-26T09:44:03.000Z | 2021-12-01T16:19:43.000Z | defmodule Guardian.Plug.BackdoorTest do
@moduledoc false
use ExUnit.Case, async: true
use Plug.Test
alias Guardian.Plug.Backdoor
defmodule Impl do
@moduledoc false
use Guardian,
otp_app: :guardian_backdoor,
secret_key: "guardian_backdoor"
def subject_for_token(%{id: id}, _claims), d... | 25.487179 | 82 | 0.641348 |
4ad74a03c373740f7e9b7e196db2c76359f0ab1d | 152 | ex | Elixir | lib/n_repl/messages/close.ex | typesend/nrepl | dc134ab887d72851413a94376eab0efc07cea2a7 | [
"Apache-2.0"
] | 2 | 2020-06-07T14:56:14.000Z | 2021-09-15T23:34:44.000Z | lib/n_repl/messages/close.ex | typesend/nrepl | dc134ab887d72851413a94376eab0efc07cea2a7 | [
"Apache-2.0"
] | 1 | 2020-11-16T13:08:48.000Z | 2020-11-16T13:08:48.000Z | lib/n_repl/messages/close.ex | typesend/nrepl | dc134ab887d72851413a94376eab0efc07cea2a7 | [
"Apache-2.0"
] | 1 | 2021-09-24T01:12:44.000Z | 2021-09-24T01:12:44.000Z | defmodule NRepl.Messages.Close do
import UUID, only: [uuid4: 0]
defstruct op: "close", session: nil, id: UUID.uuid4()
def required(), do: []
end
| 21.714286 | 55 | 0.671053 |
4ad7586673c41ea544e35101c2f076cec8bab7d9 | 505 | ex | Elixir | lib/embed_chat/room/bucket_supervisor.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 27 | 2016-10-15T12:13:22.000Z | 2021-02-07T20:31:41.000Z | lib/embed_chat/room/bucket_supervisor.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | null | null | null | lib/embed_chat/room/bucket_supervisor.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 4 | 2016-08-21T15:03:29.000Z | 2019-11-22T13:15:29.000Z | defmodule EmbedChat.Room.Bucket.Supervisor do
use Supervisor
# A simple module attribute that stores the supervisor name @name KV.Bucket.Supervisor
@name KV.Bucket.Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, :ok, name: @name)
end
def start_bucket do
Supervisor.start_child(@n... | 21.956522 | 89 | 0.708911 |
4ad78c0c090338fce3f9ba903596feeb1a144483 | 1,287 | ex | Elixir | file-metadata/lib/file_metadata_web/endpoint.ex | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | file-metadata/lib/file_metadata_web/endpoint.ex | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | file-metadata/lib/file_metadata_web/endpoint.ex | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | defmodule FileMetadataWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :file_metadata
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: ... | 29.25 | 99 | 0.716395 |
4ad79e1e4bd4a9a9b5de017e981ed7028325bbc9 | 72 | ex | Elixir | lib/elm_phoenix/repo.ex | rhnonose/elm_phoenix | 399a9887cab6a6d905768cd127a738848c65e699 | [
"MIT"
] | null | null | null | lib/elm_phoenix/repo.ex | rhnonose/elm_phoenix | 399a9887cab6a6d905768cd127a738848c65e699 | [
"MIT"
] | null | null | null | lib/elm_phoenix/repo.ex | rhnonose/elm_phoenix | 399a9887cab6a6d905768cd127a738848c65e699 | [
"MIT"
] | null | null | null | defmodule ElmPhoenix.Repo do
use Ecto.Repo, otp_app: :elm_phoenix
end
| 18 | 38 | 0.791667 |
4ad7a4172637e9f12eb8e82ff3d14c615d5f8a49 | 1,289 | ex | Elixir | builder/lib/quenya_builder/security.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | builder/lib/quenya_builder/security.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | builder/lib/quenya_builder/security.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule QuenyaBuilder.Security do
@moduledoc """
Security related functions
"""
alias QuenyaParser.Object.SecurityScheme
def ensure(security) when length(security) > 1 do
raise "Though OpenAPI allows to choose one of the security schemes, Quenya only allows one security being used. You could have one s... | 36.828571 | 326 | 0.706749 |
4ad7ce6deb393f387a7403b2a2b1fa8e0cc74aa1 | 1,042 | ex | Elixir | apps/xomg_tasks/lib/mix/tasks/watcher_info.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/xomg_tasks/lib/mix/tasks/watcher_info.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/xomg_tasks/lib/mix/tasks/watcher_info.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 31.575758 | 105 | 0.746641 |
4ad7ce9388931579aea5d4bb811eb476a7d002d9 | 1,902 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/get_recaptcha_param_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/get_recaptcha_param_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/get_recaptcha_param_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... | 35.886792 | 153 | 0.736067 |
4ad7e32f5d4dcb49dffe752a6046f58560eaa1bd | 293 | exs | Elixir | test/type_test.exs | EVE-Tools/crest | 664995149cdb9bd20dd5c23ce4d2bc0702ce9d6d | [
"BSD-3-Clause"
] | 1 | 2016-08-29T09:29:10.000Z | 2016-08-29T09:29:10.000Z | test/type_test.exs | EVE-Tools/crest | 664995149cdb9bd20dd5c23ce4d2bc0702ce9d6d | [
"BSD-3-Clause"
] | null | null | null | test/type_test.exs | EVE-Tools/crest | 664995149cdb9bd20dd5c23ce4d2bc0702ce9d6d | [
"BSD-3-Clause"
] | null | null | null | defmodule TypeTest do
use ExUnit.Case, async: true
test "I can get all types" do
types = CREST.get_types
assert hd(types)["name"] == "#System"
end
test "I can get an individual type" do
tritanium = CREST.get_type(34)
assert tritanium["name"] == "Tritanium"
end
end
| 20.928571 | 43 | 0.662116 |
4ad7e7c51962e97da746de091ee90545dae19c30 | 1,335 | ex | Elixir | DL-PAR/DL-PAR.ELEMENT-IoT.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 13 | 2020-01-18T22:08:44.000Z | 2022-02-06T14:19:57.000Z | DL-PAR/DL-PAR.ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 4 | 2019-05-10T07:17:41.000Z | 2021-10-20T16:24:04.000Z | DL-PAR/DL-PAR.ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 15 | 2019-06-04T06:13:32.000Z | 2022-02-15T07:28:52.000Z |
# https://www.decentlab.com/products/photosynthetically-active-radiation-sensor-for-lorawan
defmodule Parser do
use Platform.Parsing.Behaviour
## test payloads
# 020291000380690c60
# 02029100020c60
def fields do
[
%{field: "photosynthetically_active_radiation", display: "Photosynthetically a... | 27.8125 | 124 | 0.579026 |
4ad7f4ac2aa27408b5eac8ce5ff42c33d087683a | 1,120 | ex | Elixir | elixir/quick-elixir-blog/blog_phoenix/test/support/conn_case.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/test/support/conn_case.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/test/support/conn_case.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | defmodule BlogPhoenix.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the... | 24.888889 | 73 | 0.710714 |
4ad817e216796698c6eaa8057340de8bbda66fb2 | 1,335 | ex | Elixir | lib/bin_format/field_type/constant.ex | willpenington/bin_format | 818cfab9c99928e7f664e84499130286462b5f8b | [
"MIT"
] | 3 | 2015-11-05T02:49:18.000Z | 2020-05-04T22:30:58.000Z | lib/bin_format/field_type/constant.ex | willpenington/bin_format | 818cfab9c99928e7f664e84499130286462b5f8b | [
"MIT"
] | null | null | null | lib/bin_format/field_type/constant.ex | willpenington/bin_format | 818cfab9c99928e7f664e84499130286462b5f8b | [
"MIT"
] | null | null | null | defmodule BinFormat.FieldType.Constant do
defstruct value: nil
@moduledoc """
Constant field type for defformat
"""
@doc """
Add a constant field to the format structure in defformat.
Adds a field to the format structure that requires a specific value in the
binary for the decode function to be suces... | 26.176471 | 89 | 0.728839 |
4ad82db47231f607f03e65c68d6ff29c1fcec897 | 18,254 | exs | Elixir | test/teslamate/vehicles/vehicle/suspend_test.exs | TechForze/teslamate | fc4d2c16ba09bbe170bbf21263b357c9bd84bbe2 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/suspend_test.exs | TechForze/teslamate | fc4d2c16ba09bbe170bbf21263b357c9bd84bbe2 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/suspend_test.exs | TechForze/teslamate | fc4d2c16ba09bbe170bbf21263b357c9bd84bbe2 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.SuspendTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Vehicles.Vehicle
test "suspends when idling", %{test: name} do
suspendable =
online_event(
drive_state: %{timestamp: 0, latitude: 0.0, longitude: 0.0},
climate_state: %{is_precond... | 29.77814 | 96 | 0.613893 |
4ad8379169e9920e82b9af32f53fcaf7ead11933 | 1,168 | exs | Elixir | programming/elixir/conduit/config/config.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/config/config.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/config/config.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | use Mix.Config
# General application configuration
config :conduit,
ecto_repos: [Conduit.Repo]
# Configures the endpoint
config :conduit, ConduitWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "hXslnxxJrzfI918PrmgkZZwJU3GYhT8y1500AP6Foxq9aDgjChbi0BcMdsscFkAs",
render_errors: [view: ConduitWeb.ErrorVi... | 25.955556 | 86 | 0.753425 |
4ad839aa645e39904d2acd2d60fe528d65598309 | 82 | exs | Elixir | config/config.exs | Automattic/wpcom.ex | 093ac66f2f9341b4d35910dd9d1dcc53a547f3af | [
"MIT"
] | 4 | 2020-06-25T01:35:36.000Z | 2021-07-04T20:35:49.000Z | config/config.exs | Automattic/wpcom.ex | 093ac66f2f9341b4d35910dd9d1dcc53a547f3af | [
"MIT"
] | 25 | 2019-04-29T17:27:16.000Z | 2021-08-02T11:16:48.000Z | config/config.exs | Automattic/wpcom.ex | 093ac66f2f9341b4d35910dd9d1dcc53a547f3af | [
"MIT"
] | 1 | 2021-02-04T10:34:04.000Z | 2021-02-04T10:34:04.000Z | import Mix.Config
config :logger, level: :warn
import_config "*.dev.secret.exs"
| 13.666667 | 32 | 0.743902 |
4ad83e42d35d7e4f1365358fc181a4da93ae61fe | 3,495 | ex | Elixir | tareas/3/RomeroCristian/asigmem/lib/procmem.ex | macario117/sistop-2020-1 | 5c7cdbd80ea6d32204ee5c4fb806a6f2af092bdf | [
"CC-BY-4.0"
] | 13 | 2019-08-07T13:48:14.000Z | 2021-08-31T23:23:35.000Z | tareas/3/RomeroCristian/asigmem/lib/procmem.ex | macario117/sistop-2020-1 | 5c7cdbd80ea6d32204ee5c4fb806a6f2af092bdf | [
"CC-BY-4.0"
] | 48 | 2019-08-07T03:15:54.000Z | 2019-11-21T16:53:45.000Z | tareas/3/RomeroCristian/asigmem/lib/procmem.ex | macario117/sistop-2020-1 | 5c7cdbd80ea6d32204ee5c4fb806a6f2af092bdf | [
"CC-BY-4.0"
] | 47 | 2019-08-07T01:44:34.000Z | 2021-11-05T02:31:25.000Z | defmodule Procmem do
@moduledoc """
Procmem
---
Asigna los procesos en memoria.
Este utiliza el primer ajuste.
"""
@doc """
Inicializa los procesoe en memoria, si no hay argumento en --procesos,
se generan aproximadamente 30 espacios de memoria con posibles procesos
"""
def proc(cadena) do
... | 24.270833 | 81 | 0.620601 |
4ad840f18b4fc90ba86cf01409e8f8f0d36b1fd7 | 2,348 | exs | Elixir | test/earmark_helpers_tests/lookahead/read_list_lines_test.exs | RobertDober/earmark | 6f20bd06f40e4333294d19eb38031ea480f3d3ba | [
"Apache-2.0"
] | null | null | null | test/earmark_helpers_tests/lookahead/read_list_lines_test.exs | RobertDober/earmark | 6f20bd06f40e4333294d19eb38031ea480f3d3ba | [
"Apache-2.0"
] | null | null | null | test/earmark_helpers_tests/lookahead/read_list_lines_test.exs | RobertDober/earmark | 6f20bd06f40e4333294d19eb38031ea480f3d3ba | [
"Apache-2.0"
] | 1 | 2020-09-15T17:47:35.000Z | 2020-09-15T17:47:35.000Z | defmodule EarmarkHelpersTests.Lookahead.ReadListLinesTest do
use ExUnit.Case
alias Earmark.Line
import Earmark.Helpers.LookaheadHelpers, only: [read_list_lines: 3]
test "read list lines for indent 4" do
lines = [
%Line.Indent{content: "- two", level: 1, line: " - two", lnb: 2},
%Line.Indent... | 33.542857 | 109 | 0.569847 |
4ad869282a12af10b4a22a92279a09852b7f7cc5 | 2,994 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_browse_carousel_card_browse_carousel_card_item.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_browse_carousel_card_browse_carousel_card_item.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_browse_carousel_card_browse_carousel_card_item.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.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.583333 | 216 | 0.753507 |
4ad8732be90aa73e19cc5447d0893fe19fb676d1 | 19,924 | exs | Elixir | test/teslamate_web/live/settings_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1 | 2021-11-03T02:08:43.000Z | 2021-11-03T02:08:43.000Z | test/teslamate_web/live/settings_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 171 | 2020-07-08T18:42:57.000Z | 2022-03-23T00:55:30.000Z | test/teslamate_web/live/settings_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | null | null | null | defmodule TeslaMateWeb.SettingsLiveTest do
use TeslaMateWeb.ConnCase
alias TeslaMate.{Settings, Locations, Repo}
import TestHelper, only: [decimal: 1]
describe "global settings" do
test "shows km and C by default", %{conn: conn} do
assert {:ok, _view, html} = live(conn, "/settings")
assert [... | 35.263717 | 98 | 0.480476 |
4ad896750ccffbd874efa02c458b43bcf0855cf0 | 6,122 | exs | Elixir | .credo.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | null | null | null | .credo.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | null | null | null | .credo.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"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 ... | 38.024845 | 92 | 0.633943 |
4ad89964e4ff6f981579584d5b5df7d39d8576ab | 159 | ex | Elixir | lib/banned_book_report_web/controllers/page_controller.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/controllers/page_controller.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/controllers/page_controller.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | defmodule BannedBookReportWeb.PageController do
use BannedBookReportWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 19.875 | 47 | 0.767296 |
4ad8b856e814066ef4ec0fd58226fac486ed14e3 | 1,948 | exs | Elixir | elixir/scrap_preview/config/dev.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/scrap_preview/config/dev.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/scrap_preview/config/dev.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"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 :scrap, ScrapWeb.Endpoint,
http: [port: 4000],... | 31.419355 | 170 | 0.700719 |
4ad8c86fc8b93db0c095abe289555aa888db7c82 | 11,073 | ex | Elixir | spec/data/apt/chef-integration-test2-1.0/debian/manpage.xml.ex | ktpan/chef-play | 119798db7d1d25bb166bbce2f50e1399c0be1ae3 | [
"Apache-2.0"
] | null | null | null | spec/data/apt/chef-integration-test2-1.0/debian/manpage.xml.ex | ktpan/chef-play | 119798db7d1d25bb166bbce2f50e1399c0be1ae3 | [
"Apache-2.0"
] | 1 | 2019-03-28T15:48:50.000Z | 2019-03-28T15:48:50.000Z | spec/data/apt/chef-integration-test2-1.0/debian/manpage.xml.ex | ktpan/chef-play | 119798db7d1d25bb166bbce2f50e1399c0be1ae3 | [
"Apache-2.0"
] | null | null | null | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!--
`xsltproc -''-nonet \
-''-param man.charmap.use.subset "0" \
-''-param make.year.ranges "1" \
-''-param make.single.year.r... | 37.921233 | 84 | 0.633704 |
4ad8cd6118915c91cc2fb2a1f54a19aeb8411c06 | 3,563 | ex | Elixir | lib/livebook/runtime/erl_dist/logger_gl_backend.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | 1 | 2022-02-16T09:13:27.000Z | 2022-02-16T09:13:27.000Z | lib/livebook/runtime/erl_dist/logger_gl_backend.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/logger_gl_backend.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist.LoggerGLBackend do
@moduledoc false
# A logger backend used to forward logs to Livebook,
# as with regular output.
#
# The backend is based on `Logger.Backends.Console`,
# but instead of logging to the console, it sends
# log output to the group leader of the source pro... | 25.45 | 89 | 0.646085 |
4ad8d76d87b5ffc87764f48d9f340553a94ad248 | 203 | ex | Elixir | lib/metar_map/display/host_adapter.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | lib/metar_map/display/host_adapter.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | 2 | 2022-02-19T17:09:09.000Z | 2022-02-19T17:10:29.000Z | lib/metar_map/display/host_adapter.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | defmodule MetarMap.Display.HostAdapter do
@behaviour MetarMap.Display.Adapter
def set_pixel(_pixel, _color), do: :ok
def set_brightness(_channel, _brightness), do: :ok
def render, do: :ok
end
| 20.3 | 52 | 0.748768 |
4ad905e0105c151d7ea497581e407fe39b83feee | 6,808 | ex | Elixir | lib/git/reference.ex | enter-haken/frank | 5241edab723b69afaa9397b6c1921583cecca564 | [
"MIT"
] | null | null | null | lib/git/reference.ex | enter-haken/frank | 5241edab723b69afaa9397b6c1921583cecca564 | [
"MIT"
] | 1 | 2022-03-02T08:25:37.000Z | 2022-03-02T08:25:37.000Z | lib/git/reference.ex | enter-haken/frank | 5241edab723b69afaa9397b6c1921583cecca564 | [
"MIT"
] | null | null | null | defmodule Frank.Git.Reference do
require Logger
import Frank.Helper
@derive {Inspect,
except: [
:objects
]}
@type reference_kind :: :branch | :tag
@type t :: %__MODULE__{
kind: reference_kind(),
hash: String.t(),
name: String.t(),
r... | 27.015873 | 88 | 0.567127 |
4ad9161a44b28dbbdabfe7ee2806b9e722912f6b | 586 | exs | Elixir | day05/test/day05_test.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day05/test/day05_test.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day05/test/day05_test.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | defmodule Day05Test do
use ExUnit.Case
doctest Day05
test "test part 1 with my input data" do
assert Day05.part1(input()) == 343364
end
test "test part 1 with examples" do
assert Day05.part1(example1()) == 5
end
test "test part 2 with examples" do
assert Day05.part2(example1()) == 10
end
... | 16.277778 | 43 | 0.605802 |
4ad92b5c3d6e543190f7760057ecbd02af48228f | 249 | exs | Elixir | apps/magnetissimo/priv/repo/migrations/20200810074401_size_to_bigint_and_hash.exs | moonbuggy/magnetissimo | 5faa37e7618ed2556e4158733a7e713f3f6e706c | [
"MIT"
] | null | null | null | apps/magnetissimo/priv/repo/migrations/20200810074401_size_to_bigint_and_hash.exs | moonbuggy/magnetissimo | 5faa37e7618ed2556e4158733a7e713f3f6e706c | [
"MIT"
] | null | null | null | apps/magnetissimo/priv/repo/migrations/20200810074401_size_to_bigint_and_hash.exs | moonbuggy/magnetissimo | 5faa37e7618ed2556e4158733a7e713f3f6e706c | [
"MIT"
] | 1 | 2022-02-05T14:10:49.000Z | 2022-02-05T14:10:49.000Z | defmodule Magnetissimo.Repo.Migrations.SizeToBigIntAndHash do
use Ecto.Migration
def change do
alter table "torrents" do
modify :size, :bigint, [null: false, from: :integer]
add :magnet_hash, :string, size: 40
end
end
end
| 22.636364 | 61 | 0.698795 |
4ad93f281eebad9d4e70aed1f05d06b88673bf20 | 915 | exs | Elixir | example_avialia/priv/cargos_repo/seeds.exs | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 101 | 2020-06-11T23:51:50.000Z | 2022-03-30T16:29:18.000Z | example_avialia/priv/cargos_repo/seeds.exs | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 11 | 2020-10-11T11:50:24.000Z | 2022-02-12T08:54:50.000Z | example_avialia/priv/cargos_repo/seeds.exs | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 4 | 2020-07-02T08:54:22.000Z | 2021-12-26T09:59:15.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/cargos_repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# ExampleAvialia.BoardingsRepo.insert!(%ExampleAvialia.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `upda... | 29.516129 | 87 | 0.710383 |
4ad99b17306577622e08fcdc984418689999e879 | 7,801 | exs | Elixir | apps/discovery_streams/test/unit/streaming_channel_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/discovery_streams/test/unit/streaming_channel_test.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/discovery_streams/test/unit/streaming_channel_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryStreamsWeb.StreamingChannelTest do
use DiscoveryStreamsWeb.ChannelCase
use Placebo
alias DiscoveryStreams.{CachexSupervisor, TopicSubscriber}
@dataset_1_id "d21d5af6-346c-43e5-891f-8c2c7f28e4ab"
setup do
CachexSupervisor.create_cache(@dataset_1_id |> String.to_atom())
Cachex.clear... | 34.517699 | 108 | 0.606845 |
4ada000754d88aed4527f1a5fedf37610bfd9561 | 5,313 | ex | Elixir | lib/autox/views/resource_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | lib/autox/views/resource_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | lib/autox/views/resource_view.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Autox.ResourceView do
alias Fox.MapExt
alias Fox.StringExt
alias Fox.AtomExt
alias Fox.DictExt
alias Fox.RecordExt
alias Ecto.Association.NotLoaded
alias Ecto.Association.BelongsTo
alias Autox.RelationUtils
def resource_identifier(model) do
type = RecordExt.infer_collection_key(model)... | 31.625 | 109 | 0.674572 |
4ada324e9b6174b5e40bf9ae4c3fb77ecbee4320 | 1,588 | ex | Elixir | installer/templates/ecto/model_case.ex | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | installer/templates/ecto/model_case.ex | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | installer/templates/ecto/model_case.ex | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | defmodule <%= application_module %>.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it can... | 26.915254 | 96 | 0.676322 |
4ada86e3df9f942341b77b2429ea42894257e965 | 1,768 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/bin_log_coordinates.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/bin_log_coordinates.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/bin_log_coordinates.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.358491 | 117 | 0.710407 |
4ada87f40dcf9a0cc4dffa5633853be77cfbd035 | 509 | ex | Elixir | packages/templates/src/project/potionx/lib/{{ appName }}_web/views/error_view.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | packages/templates/src/project/potionx/lib/{{ appName }}_web/views/error_view.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | packages/templates/src/project/potionx/lib/{{ appName }}_web/views/error_view.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule <%= webNamespace %>.ErrorView do
use <%= webNamespace %>, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
#... | 29.941176 | 61 | 0.717092 |
4ada8af52cede34d6180813f99bd32303b2cdb09 | 2,124 | exs | Elixir | plugins/ucc_chat/priv/repo/migrations/04120170708133614_create_settings_messages.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/priv/repo/migrations/04120170708133614_create_settings_messages.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/priv/repo/migrations/04120170708133614_create_settings_messages.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UcxUcc.Repo.Migrations.CreateSettingsMessages do
use Ecto.Migration
def change do
create table(:settings_messages, primary_key: false) do
add :id, :binary_id, primary_key: true
add :allow_message_editing, :boolean, default: true
add :block_message_editing_after, :integer, default: 0... | 48.272727 | 73 | 0.707156 |
4ada905a9a11bb351a79069a58b291d0a6c36cd3 | 4,321 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_web_detection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_web_detection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_web_detection.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... | 45.484211 | 203 | 0.755844 |
4adaac64680ce1433b7190f2a6c5c9ffc9bdcb03 | 1,295 | exs | Elixir | test/data/quest_step_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/data/quest_step_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/data/quest_step_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.QuestStepTest do
use Data.ModelCase
alias Data.QuestStep
describe "type validations" do
test "npc/kill requires an npc and count" do
changeset = %QuestStep{} |> QuestStep.changeset(%{type: "npc/kill"})
assert changeset.errors[:npc_id]
assert changeset.errors[:count]
c... | 34.078947 | 100 | 0.668726 |
4adab173d5277de70e36abb70d285ce1d1d6d063 | 3,626 | ex | Elixir | clients/tasks/lib/google_api/tasks/v1/model/task.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tasks/lib/google_api/tasks/v1/model/task.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tasks/lib/google_api/tasks/v1/model/task.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... | 47.710526 | 468 | 0.716492 |
4adacca43482374b4fe7e8ade0552dc803738672 | 12,627 | ex | Elixir | lib/mix/lib/mix/compilers/elixir.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Elixir do
@moduledoc false
@manifest_vsn :v4
import Record
defrecord :module, [:module, :kind, :source, :beam, :binary]
defrecord :source, [
source: nil,
compile_references: [],
runtime_references: [],
compile_dispatches: [],
runtime_dispatches: [],
external:... | 30.797561 | 97 | 0.648848 |
4adad46e8885aecc1c1c9835f0d37d5514a2841c | 2,245 | ex | Elixir | priv/templates/gen.components/catalogue/components_catalogue/form/multi_selects.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | 2 | 2022-03-28T21:33:39.000Z | 2022-03-30T17:14:34.000Z | priv/templates/gen.components/catalogue/components_catalogue/form/multi_selects.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | priv/templates/gen.components/catalogue/components_catalogue/form/multi_selects.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | defmodule <%= catalogue_module %>.Form.MultiSelects do
use <%= web_module %>, :live_component
import <%= components_module %>.Form.MultiSelect
defmodule FormCs do
alias Ecto.Changeset
@types %{example_field: {:array, :string}}
@fields Map.keys(@types)
def cast(params) do
Changeset.cast({... | 28.0625 | 109 | 0.599555 |
4adad9d466da071a0602e4ac21a965286138269f | 1,713 | ex | Elixir | lib/ext/mqtt/log_handler_support.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | lib/ext/mqtt/log_handler_support.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | lib/ext/mqtt/log_handler_support.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotExt.MQTT.LogHandlerSupport do
require FarmbotCore.Logger
require Logger
alias FarmbotExt.MQTT
alias FarmbotCore.JSON
# List extracted from:
# https://github.com/FarmBot/Farmbot-Web-App/blob/b7f09e51e856bfca5cfedd7fef3c572bebdbe809/frontend/devices/actions.ts#L38
@bad_words ~r(WPA|PSK|PA... | 29.534483 | 124 | 0.656159 |
4adaef85c4df03ca35cf56b876937abb3807d416 | 193 | exs | Elixir | repository_summary/priv/repo/migrations/20220326231150_tb_user.exs | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/priv/repo/migrations/20220326231150_tb_user.exs | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/priv/repo/migrations/20220326231150_tb_user.exs | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | defmodule RepositorySummary.Repo.Migrations.TbUser do
use Ecto.Migration
def change do
create table(:users) do
add(:password_hash, :string)
timestamps()
end
end
end
| 16.083333 | 53 | 0.694301 |
4adafdfb55745f6759684020a387a344d7f6e3b3 | 3,533 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_verify_password_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_verify_password_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_verify_password_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.085366 | 218 | 0.690348 |
4adb0fa674ad41d764f50492954bfb2f6a3b0843 | 126 | exs | Elixir | test/crc_test.exs | danseid/checksum | c9a46eb8592687fa80b014a249b80bad15598288 | [
"MIT"
] | null | null | null | test/crc_test.exs | danseid/checksum | c9a46eb8592687fa80b014a249b80bad15598288 | [
"MIT"
] | null | null | null | test/crc_test.exs | danseid/checksum | c9a46eb8592687fa80b014a249b80bad15598288 | [
"MIT"
] | 1 | 2020-12-03T22:51:56.000Z | 2020-12-03T22:51:56.000Z | defmodule Checksum.CrcTest do
use ExUnit.Case
doctest Checksum.Crc
test "the truth" do
assert 1 + 1 == 2
end
end
| 14 | 29 | 0.68254 |
4adb473bebf8fd41b2530e40dd50b4ac26b34d9c | 775 | exs | Elixir | test/automate2019_test.exs | ityonemo/Exonerate | 42b888c156c9179d222b78609d34c07f0b887eaf | [
"MIT"
] | 14 | 2021-01-14T20:14:30.000Z | 2022-01-28T00:58:07.000Z | test/automate2019_test.exs | ityonemo/Exonerate | 42b888c156c9179d222b78609d34c07f0b887eaf | [
"MIT"
] | 13 | 2019-09-11T17:48:48.000Z | 2021-11-22T23:02:44.000Z | test/automate2019_test.exs | ityonemo/Exonerate | 42b888c156c9179d222b78609d34c07f0b887eaf | [
"MIT"
] | 1 | 2021-09-12T13:08:54.000Z | 2021-09-12T13:08:54.000Z | directory2020 = __DIR__
|> Path.join("_draft2019-09")
|> Path.expand()
omit_modules = ~w(refRemote.json anchor.json dynamicRef.json defs.json id.json
unevaluatedProperties.json unevaluatedItems.json format.json)
omit_describes = [
# no external URIs.
{"ref.json", 6},
# no support for relative uri (for now)
... | 23.484848 | 78 | 0.690323 |
4adb6b2e679e48c525ddd456efafba2290736988 | 133 | ex | Elixir | lib/ppg_web/controllers/page_controller.ex | ohyecloudy/phoenix-prometheus-grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | 1 | 2020-04-23T08:18:08.000Z | 2020-04-23T08:18:08.000Z | lib/ppg_web/controllers/page_controller.ex | ohyecloudy/phoenix_prometheus_grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | null | null | null | lib/ppg_web/controllers/page_controller.ex | ohyecloudy/phoenix_prometheus_grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | null | null | null | defmodule PpgWeb.PageController do
use PpgWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 16.625 | 34 | 0.721805 |
4adb8cb739ff89c952963edb87b4beb373b00bdf | 1,350 | ex | Elixir | core/metrics/results.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/metrics/results.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/metrics/results.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Metrics.Results do
@moduledoc """
Data structure to represent metrics results computed from raw metrics data.
Results are map of metrics data by minute-epool.
%{
{time_minute, epool_id} => %{
... | 29.347826 | 126 | 0.646667 |
4adba915fbedf36523d24a1fcfad326ebd148f08 | 4,277 | ex | Elixir | lib/coherence/plugs/authorization/ip_address.ex | harmon25/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | lib/coherence/plugs/authorization/ip_address.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/ip_address.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule Coherence.Authentication.IpAddress do
@moduledoc """
Implements ip address based authentication. To use add
plug Coherence.Authentication.IpAddress, allow: ~w(127.0.0.1 192.168.1.200)
to your pipeline.
IP addresses can be specified in a list as either IP or IP/subnet_mask, where subnet_ma... | 30.769784 | 109 | 0.648352 |
4adbd9437afc8a9d98f9134204648c25f3a3223f | 1,133 | ex | Elixir | test/support/conn_case.ex | odarriba/elixir_jobs | 514c0fd849f1579a80a98108d7ae58f76f3a330a | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | test/support/conn_case.ex | odarriba/elixir_jobs | 514c0fd849f1579a80a98108d7ae58f76f3a330a | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | test/support/conn_case.ex | odarriba/elixir_jobs | 514c0fd849f1579a80a98108d7ae58f76f3a330a | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | defmodule ElixirJobsWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if ... | 25.75 | 58 | 0.721094 |
4adbdc43644f5e088bbb9231715e0cba26b657ec | 344 | ex | Elixir | lib/ex_raja_ongkir/estimate.ex | giraphme/ex_raja_ongkir | 6c7e7a811879d0adfd7eb574d0bbc665f1b7084d | [
"MIT"
] | null | null | null | lib/ex_raja_ongkir/estimate.ex | giraphme/ex_raja_ongkir | 6c7e7a811879d0adfd7eb574d0bbc665f1b7084d | [
"MIT"
] | 1 | 2018-04-24T08:27:20.000Z | 2018-04-24T08:27:20.000Z | lib/ex_raja_ongkir/estimate.ex | giraphme/ex_raja_ongkir | 6c7e7a811879d0adfd7eb574d0bbc665f1b7084d | [
"MIT"
] | null | null | null | defmodule ExRajaOngkir.Estimate do
defstruct [:etd, :price, :currency, :note]
def cast_from_response(response) do
response
|> Enum.map(fn estimate ->
%__MODULE__{
etd: estimate["etd"],
price: estimate["value"],
# TODO
currency: "IDR",
note: estimate["note"]
... | 20.235294 | 44 | 0.575581 |
4adbe5a767bfd10ed0b53a9a5e755c28b6e439cd | 2,673 | ex | Elixir | lib/riemannx/connections/batch.ex | ulfurinn/riemannx | 433290573726924c9b14a4777e4fc3ea80139bf4 | [
"MIT"
] | null | null | null | lib/riemannx/connections/batch.ex | ulfurinn/riemannx | 433290573726924c9b14a4777e4fc3ea80139bf4 | [
"MIT"
] | null | null | null | lib/riemannx/connections/batch.ex | ulfurinn/riemannx | 433290573726924c9b14a4777e4fc3ea80139bf4 | [
"MIT"
] | null | null | null | defmodule Riemannx.Connections.Batch do
@moduledoc """
The batch connector is a pass through module that adds batching functionality
on top of the existing protocol connections.
Batching will aggregate events you send and then send them in bulk in
intervals you specify, if the events reach a certain size you... | 30.033708 | 127 | 0.546203 |
4adc10200b5578a89296fc25439b9bd03fe21426 | 1,818 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/conference_solution_key.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/calendar/lib/google_api/calendar/v3/model/conference_solution_key.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/conference_solution_key.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.961538 | 153 | 0.734323 |
4adc6570d7e55b84b9cd76f671d208b87218c281 | 5,772 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/connection_types.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/connection_types.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/connection_types.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.363636 | 187 | 0.644317 |
4adcb49ba75da9a9089f475daabeefa85f6a14cd | 971 | ex | Elixir | elixir_phx_standard/service/lib/phx_service/application.ex | estroz/docker-slim-examples | e8448bbe27e848b340d0c80557eb606e0bc69c18 | [
"Apache-2.0"
] | 77 | 2019-03-16T15:55:51.000Z | 2022-03-18T04:48:44.000Z | elixir_phx_standard/service/lib/phx_service/application.ex | estroz/docker-slim-examples | e8448bbe27e848b340d0c80557eb606e0bc69c18 | [
"Apache-2.0"
] | 17 | 2019-11-28T17:43:54.000Z | 2022-01-06T21:32:57.000Z | elixir_phx_standard/service/lib/phx_service/application.ex | estroz/docker-slim-examples | e8448bbe27e848b340d0c80557eb606e0bc69c18 | [
"Apache-2.0"
] | 17 | 2019-11-04T16:16:45.000Z | 2022-03-16T07:57:26.000Z | defmodule PhxService.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the... | 32.366667 | 88 | 0.726056 |
4adcb660a2680f2cedb92ec7f1ca247ca7fd821d | 90 | exs | Elixir | test/nebulex/entry_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | null | null | null | test/nebulex/entry_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | null | null | null | test/nebulex/entry_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | null | null | null | defmodule Nebulex.EntryTest do
use ExUnit.Case, async: true
doctest Nebulex.Entry
end
| 18 | 30 | 0.788889 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.