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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85bbbc560a1bbd21390f897d2228f01e87828e0a | 5,858 | ex | Elixir | lib/scd4x/comm.ex | mnishiguchi/scd4x | 4ad57b3b45d0a6a8302ee6e4fc41e6202af2fed5 | [
"MIT"
] | null | null | null | lib/scd4x/comm.ex | mnishiguchi/scd4x | 4ad57b3b45d0a6a8302ee6e4fc41e6202af2fed5 | [
"MIT"
] | null | null | null | lib/scd4x/comm.ex | mnishiguchi/scd4x | 4ad57b3b45d0a6a8302ee6e4fc41e6202af2fed5 | [
"MIT"
] | null | null | null | defmodule SCD4X.Comm do
@moduledoc false
alias SCD4X.Transport.I2C
use Bitwise
@cmd_serial_number <<0x3682::16>>
@cmd_data_ready <<0xE4B8::16>>
@cmd_self_test <<0x3639::16>>
@cmd_start_periodic_measurement <<0x21B1::16>>
@cmd_stop_periodic_measurement <<0x3F86::16>>
@cmd_read_measurement <<0xEC05::... | 30.195876 | 100 | 0.671048 |
85bbe50764ef6d20256f58faad42bb7d1e0ec9f9 | 332 | ex | Elixir | apps/examples/lib/examples/ping_pong/config.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/examples/lib/examples/ping_pong/config.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/examples/lib/examples/ping_pong/config.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Examples.PingPong.Config do
alias __MODULE__
@type product :: Tai.Venues.Product.t()
@type fee :: Tai.Venues.FeeInfo.t()
@type t :: %Config{
product: product,
fee: fee,
max_qty: Decimal.t()
}
@enforce_keys ~w(product fee max_qty)a
defstruct ~w(product fee ma... | 22.133333 | 41 | 0.626506 |
85bbed8c3fc421cb5c40b9198cb3a6a7ad100cc6 | 4,605 | exs | Elixir | hangman/test/impl_game_test.exs | jakoubek/hangman-elixir | 2917755bda4dca2bafb20f0ef5caad579e3e99dd | [
"MIT"
] | null | null | null | hangman/test/impl_game_test.exs | jakoubek/hangman-elixir | 2917755bda4dca2bafb20f0ef5caad579e3e99dd | [
"MIT"
] | null | null | null | hangman/test/impl_game_test.exs | jakoubek/hangman-elixir | 2917755bda4dca2bafb20f0ef5caad579e3e99dd | [
"MIT"
] | null | null | null | defmodule HangmanImplGameTest do
use ExUnit.Case
alias Hangman.Impl.Game
test "new game returns structure" do
game = Game.new_game
assert game.turns_left == 7
assert game.game_state == :initializing
assert length(game.letters) > 0
end
test "new game returns correct word" do
game = Game.n... | 36.84 | 102 | 0.490988 |
85bc0327080b729631378d4e89257cab50d740ca | 3,715 | ex | Elixir | lib/mix/tasks/ecto.gen.migration.ex | rinpatch/ecto_sql | e28a76909c5c10174d28a9c4775c1e077d68176a | [
"Apache-2.0"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | deps/ecto_sql/lib/mix/tasks/ecto.gen.migration.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/ecto_sql/lib/mix/tasks/ecto.gen.migration.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Ecto.Gen.Migration do
use Mix.Task
import Macro, only: [camelize: 1, underscore: 1]
import Mix.Generator
import Mix.Ecto
import Mix.EctoSQL
@shortdoc "Generates a new migration for the repo"
@aliases [
r: :repo
]
@switches [
change: :string,
repo: [:string, :keep],
... | 30.702479 | 104 | 0.655451 |
85bc34c630254aa84320a7228a7561b636eb8d7f | 38,606 | ex | Elixir | lib/elixir/lib/macro.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [to_string: 1]
defmodule Macro do
@moduledoc ~S"""
Conveniences for working with macros.
## Custom Sigils
To create a custom sigil, define a function with the name
`sigil_{identifier}` that takes two arguments. The first argument will be
the string, the second will be a char list c... | 30.326787 | 108 | 0.597239 |
85bcd501c0d5c15190b003c87cd67fadc0d62db2 | 6,077 | ex | Elixir | lib/rdf/xsd/datatypes/decimal.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/xsd/datatypes/decimal.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/xsd/datatypes/decimal.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.XSD.Decimal do
@moduledoc """
`RDF.XSD.Datatype` for XSD decimals.
"""
@type valid_value :: Decimal.t()
use RDF.XSD.Datatype.Primitive,
name: "decimal",
id: RDF.Utils.Bootstrapping.xsd_iri("decimal")
alias RDF.XSD
alias Elixir.Decimal, as: D
def_applicable_facet XSD.Facets.Min... | 27.876147 | 111 | 0.678624 |
85bce7eb8c34bda7ee74c28316eaa07da07dd5a5 | 2,391 | ex | Elixir | test/support/mocks/controllers.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 36 | 2019-02-19T19:07:38.000Z | 2022-02-23T18:14:31.000Z | test/support/mocks/controllers.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 4 | 2019-02-19T18:55:46.000Z | 2019-05-03T18:45:53.000Z | test/support/mocks/controllers.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 3 | 2019-02-19T19:50:05.000Z | 2020-11-20T11:26:57.000Z | defmodule Rolodex.Mocks.TestController do
use Phoenix.Controller, namespace: Rolodex.Mocks
alias Rolodex.Mocks.{
UserRequestBody,
UserResponse,
MultiResponse,
PaginatedUsersResponse,
PaginationHeaders,
ErrorResponse,
ParamsSchema
}
@doc [
auth: [
:JWTAuth,
TokenAuth... | 19.925 | 73 | 0.536596 |
85bd11b3fdeb89887d66cdcf6a48968483bf2276 | 1,050 | ex | Elixir | test/support/storage.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | test/support/storage.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | test/support/storage.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | defmodule Conduit.Storage do
@doc """
Clear the event store and read store databases
"""
def reset! do
:ok = Application.stop(:conduit)
:ok = Application.stop(:commanded)
:ok = Application.stop(:eventstore)
reset_eventstore()
reset_readstore()
{:ok, _} = Application.ensure_all_started(... | 21.428571 | 66 | 0.702857 |
85bd263f68ea394d7edd285d1d39beff17f169ca | 957 | ex | Elixir | lib/hologram/compiler/transformers/for_expression_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/transformers/for_expression_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/transformers/for_expression_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.ForExpressionTransformer do
alias Hologram.Compiler.{Context, Reflection, Transformer}
def transform({:for, _, parts}, %Context{} = context) do
generators = find_generators(parts)
mapper = find_mapper(parts)
build_code(generators, mapper)
|> Reflection.ast()
|> Tran... | 24.538462 | 65 | 0.650993 |
85bd2dc2f831d8c4229862914c996ad23e77e5db | 927 | ex | Elixir | lib/nudge/accounts/site.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | null | null | null | lib/nudge/accounts/site.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | 17 | 2021-08-04T12:44:20.000Z | 2021-09-09T07:25:00.000Z | lib/nudge/accounts/site.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | null | null | null | defmodule Nudge.Accounts.Site do
use Ecto.Schema
import Ecto.Changeset
alias Nudge.Accounts.User
schema "sites" do
field :active, :boolean, default: false
field :tz, :string, default: "UTC"
field :url, :string
belongs_to :user, User
timestamps(type: :utc_datetime)
end
@doc false
de... | 23.769231 | 84 | 0.597627 |
85bd3c35712f44279fba6734270274f2d0a0a8a9 | 730 | ex | Elixir | lib/ex_postmen.ex | hieuphq/ex_postmen_client | 85183ac2e067471f1c280e6e2a3e37f7cca25937 | [
"MIT"
] | null | null | null | lib/ex_postmen.ex | hieuphq/ex_postmen_client | 85183ac2e067471f1c280e6e2a3e37f7cca25937 | [
"MIT"
] | null | null | null | lib/ex_postmen.ex | hieuphq/ex_postmen_client | 85183ac2e067471f1c280e6e2a3e37f7cca25937 | [
"MIT"
] | null | null | null | defmodule ExPostmen do
@moduledoc """
Documentation for ExPostmen.
"""
@spec request(ExPostmen.Request.t, ExPostmen.Config.t) :: {:ok, term} | {:error, term}
def request(request, config) do
ExPostmen.Request.perform(request, config)
end
@api_key "a602565f-9f3f-4bde-8bba-ff22727291d7"
@sand_box tru... | 30.416667 | 88 | 0.706849 |
85bd411426060ff9fca2e26cf4e9a32f67682a67 | 1,110 | exs | Elixir | farmbot_ext/test/farmbot_ext/amqp/telemetry_channel_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/amqp/telemetry_channel_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/amqp/telemetry_channel_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | defmodule FarmbotExt.AMQP.TelemetryChannelTest do
require Helpers
use ExUnit.Case, async: false
use Mimic
setup :verify_on_exit!
setup :set_mimic_global
alias FarmbotExt.AMQP.TelemetryChannel
alias FarmbotExt.AMQP.Support
test "channel termination" do
fake_reason = :just_testing
fake_state = {... | 26.428571 | 82 | 0.674775 |
85bd65818c3c0225f7ac63d35a3f88f4d2037238 | 6,944 | ex | Elixir | lib/core/reduce.ex | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | lib/core/reduce.ex | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | lib/core/reduce.ex | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Cloud Stack Lang Contributors
#
# 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 ag... | 27.776 | 137 | 0.626872 |
85bd6d99e31671151ee6e1f2e7c82343f7848067 | 939 | exs | Elixir | apps/nerves_hub_api/config/config.exs | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_api/config/config.exs | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_api/config/config.exs | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"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.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :nerves_hub_api,
namespace: NervesHubAPI... | 31.3 | 70 | 0.767838 |
85bd9a10d8bd9d34bfa512515f05e04116d117a4 | 2,435 | exs | Elixir | test/histogram.exs | RandomPassword/Elixir | 8db5197c8460347493f8f18cba892a8ac701b03e | [
"MIT"
] | 3 | 2020-10-07T19:22:54.000Z | 2022-01-25T20:38:59.000Z | test/histogram.exs | RandomPassword/Elixir | 8db5197c8460347493f8f18cba892a8ac701b03e | [
"MIT"
] | null | null | null | test/histogram.exs | RandomPassword/Elixir | 8db5197c8460347493f8f18cba892a8ac701b03e | [
"MIT"
] | 1 | 2022-02-26T04:32:42.000Z | 2022-02-26T04:32:42.000Z | defmodule RandomPassword.Histogram.Test do
use ExUnit.Case
import RandomPassword.Test.Util
test "position histogram: 8, 2, 1, symbol $ of #$" do
defmodule(Symbol_8_2_1,
do: use(RandomPassword, alpha: 8, decimal: 2, symbol: 1, symbols: "#$")
)
n_chars = Symbol_8_2_1.info().symbols |> String.le... | 30.061728 | 94 | 0.682136 |
85bda3ad52c50efa00d06a59d694831da5b754a9 | 474 | ex | Elixir | apps/service_profile/test/support/simple_producer.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_profile/test/support/simple_producer.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_profile/test/support/simple_producer.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Profile.Simple.Producer do
use GenStage
def inject_events(events, timeout \\ 5_000) do
GenStage.call(__MODULE__, {:inject, events}, timeout)
end
def start_link(opts) do
GenStage.start_link(__MODULE__, opts, name: __MODULE__)
end
def init(_) do
{:producer, :ok}
end
def handle_ca... | 19.75 | 59 | 0.677215 |
85bda50ef3a9ba0003c1ee1b4f79b972fc9f9c5b | 7,710 | ex | Elixir | lib/ex_aliyun_ots/const.ex | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 19 | 2018-05-10T09:33:25.000Z | 2022-01-25T11:57:33.000Z | lib/ex_aliyun_ots/const.ex | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 23 | 2019-11-28T07:51:52.000Z | 2022-03-09T08:33:42.000Z | lib/ex_aliyun_ots/const.ex | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 9 | 2019-01-30T03:17:12.000Z | 2021-12-14T02:23:32.000Z | defmodule ExAliyunOts.Constants do
@moduledoc false
defmacro __using__(_opts \\ []) do
quote do
alias ExAliyunOts.Const.{
OperationType,
PKType,
ReturnType,
Direction,
RowExistence,
FilterType,
LogicOperator,
ComparatorType,
Search.F... | 24.321767 | 69 | 0.739689 |
85bdbf79c24fa30434fcea133c2ca9fd5a129553 | 5,414 | exs | Elixir | scripts/publish.exs | tmbb/forage | dcda0403e13faeadc83b64961e4073bede25bc00 | [
"MIT"
] | 14 | 2018-11-28T11:33:47.000Z | 2021-09-12T08:30:40.000Z | scripts/publish.exs | tmbb/forage | dcda0403e13faeadc83b64961e4073bede25bc00 | [
"MIT"
] | 1 | 2019-07-01T22:57:18.000Z | 2019-07-01T22:57:18.000Z | scripts/publish.exs | tmbb/forage | dcda0403e13faeadc83b64961e4073bede25bc00 | [
"MIT"
] | 3 | 2019-08-07T06:41:34.000Z | 2022-03-22T16:02:06.000Z | defmodule Publisher.Common do
def read_file(path) do
path |> File.read!() |> String.replace("\r\n", "\n")
end
end
defmodule Publisher.VersionUtils do
@moduledoc """
Some utilities to get and set version numbers in the `mix.exs` file
and to programatically transform version numbers.
Maybe the `bump_*` ... | 27.343434 | 93 | 0.681566 |
85bde2dc6850cd69c2ce0d0419bc0001a5027167 | 673 | ex | Elixir | lib/challenge_gov/site_content.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/challenge_gov/site_content.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/challenge_gov/site_content.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.SiteContent do
@moduledoc """
Site content context
"""
import Ecto.Query
alias ChallengeGov.Repo
alias ChallengeGov.SiteContent.Content
def all(opts \\ []) do
Content
|> order_by([c], asc: c.section)
|> Repo.paginate(opts[:page], opts[:per])
end
def get(section) d... | 18.189189 | 56 | 0.600297 |
85bdf5eca171e2281b9fb0b815ed40e9553678d5 | 5,314 | ex | Elixir | lib/ex_rabbit_m_q/producer.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/producer.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/producer.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQ.Producer do
@moduledoc """
A behaviour module that abstracts away the handling of RabbitMQ connections and channels.
It also provides hooks to allow the programmer to publish a message without having to directly
access the AMPQ interfaces.
For a connection configuration example see `ExR... | 32.012048 | 118 | 0.69458 |
85bdfd80f55d29aec9399b837f62f22a40446fe2 | 373 | ex | Elixir | lib/cadet_web/views/error_view.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/views/error_view.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 2 | 2020-04-22T09:06:38.000Z | 2020-04-22T09:15:33.000Z | lib/cadet_web/views/error_view.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 1 | 2020-06-01T03:26:02.000Z | 2020-06-01T03:26:02.000Z | defmodule CadetWeb.ErrorView do
use CadetWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, a... | 20.722222 | 47 | 0.697051 |
85be0c848b007ca970929ed62c0b09bccea80f92 | 289 | ex | Elixir | lib/club/support/validators.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | lib/club/support/validators.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | lib/club/support/validators.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Support.Validators do
@moduledoc """
Custom validators interface
"""
alias Club.Support.Validators
@spec validate_url(map, atom, Keyword.t()) :: Ecto.Changeset.t()
defdelegate validate_url(dataset, field, opts \\ []),
to: Validators.Url,
as: :call
end
| 22.230769 | 66 | 0.692042 |
85be1020ef79b41a22a36169097879c08ed5c21b | 1,376 | ex | Elixir | lib/phoenix/socket/message.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/socket/message.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/socket/message.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket.Message do
alias Poison, as: JSON
alias Phoenix.Socket.Message
defstruct channel: nil, topic: nil, event: nil, message: nil
defmodule InvalidMessage do
defexception [:message]
def exception(msg) do
%InvalidMessage{message: "Invalid Socket Message: #{inspect msg}"}
en... | 27.52 | 85 | 0.659157 |
85be724aa318b9678c894f3f1d726e029b479a8c | 463 | exs | Elixir | priv/repo/migrations/20180930011202_create_video_comments.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20180930011202_create_video_comments.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180930011202_create_video_comments.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.CreateVideoComments do
use Ecto.Migration
def change do
create table(:videos_comments) do
add(:body, :text)
add(:author_id, references(:users, on_delete: :delete_all), null: false)
add(:video_id, references(:cms_videos, on_delete: :delete_all), null: fa... | 27.235294 | 82 | 0.701944 |
85be74b618e700ff68c1ec758740e44ee6f9b4de | 864 | ex | Elixir | apps/idp_web/src/idp_web/application.ex | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/idp_web/src/idp_web/application.ex | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/idp_web/src/idp_web/application.ex | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | defmodule IdpWeb.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 28.8 | 65 | 0.716435 |
85beb20397ef9d0a2c8519f3caf49f4b9be30308 | 886 | ex | Elixir | clients/redis/lib/google_api/redis/v1beta1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1beta1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1beta1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.814815 | 74 | 0.759594 |
85becc97c11732ce797ac6c8e547ff9ebd4ebae0 | 944 | exs | Elixir | test/bsv_rpc/transaction_output_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | 4 | 2019-09-25T05:52:02.000Z | 2020-08-13T21:09:42.000Z | test/bsv_rpc/transaction_output_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | null | null | null | test/bsv_rpc/transaction_output_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | null | null | null | defmodule BsvRpc.TransactionOutputTest do
use ExUnit.Case
doctest BsvRpc.TransactionOutput
test "find_data_output!/1 finds legacy data outputs" do
assert 1 ==
BsvRpc.TransactionOutput.find_data_output!([
%BsvRpc.TransactionOutput{
value: 456,
scri... | 28.606061 | 57 | 0.502119 |
85bed47ebcfb44067a5d0420c777a28148c27e12 | 10,380 | ex | Elixir | lib/coherence/config.ex | dymmer-code/coherence | 607428c92bd0a3beef60f0e170c0c07f06e89e9c | [
"MIT"
] | 1 | 2019-03-20T01:28:30.000Z | 2019-03-20T01:28:30.000Z | lib/coherence/config.ex | dymmer-code/coherence | 607428c92bd0a3beef60f0e170c0c07f06e89e9c | [
"MIT"
] | null | null | null | lib/coherence/config.ex | dymmer-code/coherence | 607428c92bd0a3beef60f0e170c0c07f06e89e9c | [
"MIT"
] | null | null | null | defmodule Coherence.Config do
@moduledoc """
Coherence Configuration Module.
Provides a small wrapper around `Application.get_env :coherence`, providing an
accessor function for each configuration items.
Configuration items can be defined as either a single atom or {name, default}
tuple. Each of the items... | 31.743119 | 129 | 0.67659 |
85bf8b90085fc85ae56cf1402498f59b955f6edc | 875 | exs | Elixir | mix.exs | amorphid/janky_bench | 9539b95f6c404065cd277ae60728ad7ed28dc458 | [
"Apache-2.0"
] | null | null | null | mix.exs | amorphid/janky_bench | 9539b95f6c404065cd277ae60728ad7ed28dc458 | [
"Apache-2.0"
] | null | null | null | mix.exs | amorphid/janky_bench | 9539b95f6c404065cd277ae60728ad7ed28dc458 | [
"Apache-2.0"
] | null | null | null | defmodule JankyBench.MixProject do
use Mix.Project
#######
# API #
#######
def application() do
[
extra_applications: [:logger]
]
end
def project() do
[
app: :janky_bench,
deps: deps(),
description: description(),
# feel free to submit pull request w/ lower Eli... | 17.5 | 97 | 0.542857 |
85bfa18bebf13c6ef72ce568989349893870bb53 | 1,283 | ex | Elixir | lib/web/controllers/admin_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/admin_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/admin_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.AdminController do
alias Data.User
import Plug.Conn
import Phoenix.Controller
alias Web.Router.Helpers, as: Routes
defmacro __using__(_opts) do
quote do
use Web, :controller
import Web.AdminController, only: [ensure_user!: 2, ensure_at_least_builder!: 2, ensure_admin!: 2]
... | 21.032787 | 104 | 0.614186 |
85bfad422f71142be5b78df503407461a14f734b | 2,322 | ex | Elixir | lib/logjam_agent/instrumentation.ex | xing/exbeetle | 6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c | [
"MIT"
] | 3 | 2018-02-02T14:38:21.000Z | 2018-02-05T17:33:35.000Z | lib/logjam_agent/instrumentation.ex | xing/elixir_logjam_agent | 6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c | [
"MIT"
] | null | null | null | lib/logjam_agent/instrumentation.ex | xing/elixir_logjam_agent | 6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c | [
"MIT"
] | null | null | null | defmodule LogjamAgent.Instrumentation do
@default_excluded_functions [action: 2]
alias LogjamAgent.Instrumentation.Definition
def exclude_action?(mod, name, arity) do
globally_excluded?(name, arity) || locally_excluded?(mod, name, arity)
end
def globally_excluded?(name, arity) do
globally_excluded =... | 29.392405 | 149 | 0.686477 |
85bfd122fe49b2b4fc050ae30604d997b6582e5a | 3,331 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/find_replace_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/find_replace_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/find_replace_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.164557 | 120 | 0.679075 |
85bfdd710442818e3d6ff90f0273d13b7febf10a | 3,488 | ex | Elixir | apps/omg_burner/lib/omg_burner/threshold_agent.ex | omisego/fee-burner | b1d23736f69769c2bd2bb2437de0c103fd6dba61 | [
"Apache-2.0"
] | 1 | 2018-10-09T13:49:02.000Z | 2018-10-09T13:49:02.000Z | apps/omg_burner/lib/omg_burner/threshold_agent.ex | omisego/fee-burner | b1d23736f69769c2bd2bb2437de0c103fd6dba61 | [
"Apache-2.0"
] | null | null | null | apps/omg_burner/lib/omg_burner/threshold_agent.ex | omisego/fee-burner | b1d23736f69769c2bd2bb2437de0c103fd6dba61 | [
"Apache-2.0"
] | 1 | 2018-07-16T14:15:09.000Z | 2018-07-16T14:15:09.000Z | defmodule OMG.Burner.ThresholdAgent do
@moduledoc """
ThresholdAgent is a background task once in a while gets current gas price,
checks whether thresholds has been met. If so, it triggers fee exit.
"""
use AdjustableServer
alias OMG.Burner.HttpRequester, as: Requester
alias OMG.Burner.State
requi... | 27.03876 | 115 | 0.678899 |
85c00aa3453f003c1eb875ef030baa044285fc4b | 1,628 | ex | Elixir | apps/mishka_database/lib/schema/mishka_content/subscription.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_database/lib/schema/mishka_content/subscription.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_database/lib/schema/mishka_content/subscription.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaDatabase.Schema.MishkaContent.Subscription do
use Ecto.Schema
require MishkaTranslator.Gettext
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "subscriptions" do
field(:status, ContentStatusEnum, null: false, default: :activ... | 44 | 205 | 0.755528 |
85c01a318052f10f49f2ab7acdad206956372045 | 7,910 | ex | Elixir | lib/rig_inbound_gateway/api_proxy/handler/http.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/rig_inbound_gateway/api_proxy/handler/http.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/rig_inbound_gateway/api_proxy/handler/http.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigInboundGateway.ApiProxy.Handler.Http do
@moduledoc """
Handles requests for HTTP targets.
"""
use Rig.Config, [
:cors,
:kafka_response_timeout,
:kinesis_response_timeout,
:http_async_response_timeout
]
require Logger
alias HTTPoison
alias Plug.Conn
alias Plug.Conn.Query
... | 26.543624 | 98 | 0.635651 |
85c0282b9741426b447ce5fba1b7141b90483902 | 14,354 | exs | Elixir | lib/elixir/test/elixir/code_formatter/general_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2022-03-28T12:04:08.000Z | 2022-03-28T12:04:08.000Z | lib/elixir/test/elixir/code_formatter/general_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/general_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.GeneralTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
test "does not emit warnings" do
assert_format "fn -> end", "fn -> nil end"
end
describe "aliases" do
test "with atom... | 16.200903 | 96 | 0.423924 |
85c02cb99c2b4b63bde65f97bb9ae7a4b32b276b | 1,973 | ex | Elixir | lib/teiserver/agents/supervisor_agent_server.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/agents/supervisor_agent_server.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver/agents/supervisor_agent_server.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Teiserver.Agents.SupervisorAgentServer do
use GenServer
alias Teiserver.Agents.AgentLib
def handle_info(:begin, state) do
AgentLib.post_agent_update(state.id, "Starting agents supervisor")
add_servers("battlehost", 3)
add_servers("battlehost", 4, 4, %{name: "stable", number: 4, leave_chanc... | 27.402778 | 124 | 0.633553 |
85c04b4d403006eb632f36008ec126950d2d545a | 8,107 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/api/pet.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 4 | 2020-07-24T07:02:57.000Z | 2022-01-08T17:37:38.000Z | samples/client/petstore/elixir/lib/openapi_petstore/api/pet.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 10 | 2019-06-28T09:01:45.000Z | 2022-02-26T12:19:16.000Z | samples/client/petstore/elixir/lib/openapi_petstore/api/pet.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 5 | 2020-11-26T05:13:41.000Z | 2021-04-09T15:58:18.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenapiPetstore.Api.Pet do
@moduledoc """
API calls for all endpoints tagged `Pet`.
"""
alias OpenapiPetstore.Connection
import OpenapiPets... | 28.850534 | 158 | 0.625509 |
85c0593fd3ff6e5fb37341cab485fa2420060066 | 746 | exs | Elixir | priv/repo/migrations/20180324130829_create_github_users.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20180324130829_create_github_users.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180324130829_create_github_users.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.CreateGithubUsers do
use Ecto.Migration
def change do
create table(:github_users) do
add(:github_id, :string)
add(:user_id, references(:users, on_delete: :delete_all), null: false)
add(:login, :string)
add(:avatar_url, :string)
add(:url, :st... | 25.724138 | 76 | 0.623324 |
85c063dc60769e2bdee1aedf22a621f43c8403ba | 2,880 | ex | Elixir | lib/allais_paradox/actions.ex | xeejp/xee_allais_paradox | fce80906a225c44db2d35c941dda82d4d2b2d180 | [
"MIT"
] | null | null | null | lib/allais_paradox/actions.ex | xeejp/xee_allais_paradox | fce80906a225c44db2d35c941dda82d4d2b2d180 | [
"MIT"
] | null | null | null | lib/allais_paradox/actions.ex | xeejp/xee_allais_paradox | fce80906a225c44db2d35c941dda82d4d2b2d180 | [
"MIT"
] | null | null | null | defmodule AllaisParadox.Actions do
alias AllaisParadox.Participant
alias AllaisParadox.Host
def change_page(data, page) do
action = get_action("change page", page)
format(data, nil, dispatch_to_all(data, action))
end
def join(data, id, participant) do
# if data.page == "waiting" do
data = d... | 32.359551 | 175 | 0.671528 |
85c06d5a939138ac14c71c526bc86488606cdd72 | 1,161 | ex | Elixir | lib/p9i_web/channels/user_socket.ex | niku/p9i | c17b16e406374e098848c811ed84794f0c6be53a | [
"MIT"
] | null | null | null | lib/p9i_web/channels/user_socket.ex | niku/p9i | c17b16e406374e098848c811ed84794f0c6be53a | [
"MIT"
] | null | null | null | lib/p9i_web/channels/user_socket.ex | niku/p9i | c17b16e406374e098848c811ed84794f0c6be53a | [
"MIT"
] | null | null | null | defmodule P9iWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", P9iWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authentic... | 30.552632 | 83 | 0.700258 |
85c07020f63e2c88127d6c510356bcfa7cbae9ae | 1,452 | exs | Elixir | test/ecbolic/pretty_test.exs | Awlexus/Ecbolic | 754a6601853c211a0d4b7572d7f239b26e9867de | [
"Apache-2.0"
] | null | null | null | test/ecbolic/pretty_test.exs | Awlexus/Ecbolic | 754a6601853c211a0d4b7572d7f239b26e9867de | [
"Apache-2.0"
] | 1 | 2018-09-10T21:29:27.000Z | 2018-09-10T21:29:27.000Z | test/ecbolic/pretty_test.exs | Awlexus/Ecbolic | 754a6601853c211a0d4b7572d7f239b26e9867de | [
"Apache-2.0"
] | null | null | null | defmodule PrettyTest do
use ExUnit.Case
doctest Ecbolic.Pretty
alias Ecbolic.Pretty
test "empty list or nil" do
assert Pretty.format([]) == []
assert Pretty.format(nil) == []
end
test "lexographical compare" do
words = ~w/Long list of words so many of them Gotta count them all/
sorted =... | 23.419355 | 95 | 0.614325 |
85c078b8159f539870bb98ac0eb112004f67ad26 | 26,064 | exs | Elixir | lib/elixir/test/elixir/kernel_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/elixir/test/elixir/kernel_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule KernelTest do
use ExUnit.Case, async: true
doctest Kernel
defp empty_list(), do: []
test "=~/2" do
assert ("abcd" =~ ~r/c(d)/) == true
assert ("abcd" =~ ~r/e/) == false
assert ("abcd" =~ ~R/c(d)/) == true
assert ("abcd" =~ ~R/e/) == fals... | 28.361262 | 126 | 0.547153 |
85c085c43f21c0ad5840e3f705c4d87bf4888f99 | 9,520 | exs | Elixir | lib/elixir/test/elixir/path_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/test/elixir/path_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/path_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule PathTest do
use ExUnit.Case, async: true
import PathHelpers
if :file.native_name_encoding == :utf8 do
test "wildcard with utf8" do
File.mkdir_p(tmp_path("héllò"))
assert Path.wildcard(tmp_path("héllò")) == [tmp_path("héllò")]
after
... | 40.168776 | 106 | 0.592647 |
85c0dd60b7531989dbd25a3f68c0ceb0e475d4ef | 10,708 | ex | Elixir | lib/mix/phoenix/schema.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2020-07-23T18:03:42.000Z | 2020-07-23T18:03:42.000Z | lib/mix/phoenix/schema.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2020-05-26T19:38:18.000Z | 2020-05-26T19:38:18.000Z | lib/mix/phoenix/schema.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2020-08-31T15:29:31.000Z | 2020-08-31T15:29:31.000Z | defmodule Mix.Phoenix.Schema do
@moduledoc false
alias Mix.Phoenix.Schema
defstruct module: nil,
repo: nil,
table: nil,
collection: nil,
embedded?: false,
generate?: true,
opts: [],
alias: nil,
file: nil,
... | 29.910615 | 97 | 0.571442 |
85c0e3dbc049fa234d5b5cabfb8ce950364c6a58 | 68 | exs | Elixir | config/prod.exs | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 7 | 2019-08-23T16:28:34.000Z | 2020-12-18T04:57:51.000Z | config/prod.exs | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 9 | 2021-07-29T16:18:30.000Z | 2021-07-29T16:36:59.000Z | config/prod.exs | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 6 | 2020-04-07T15:41:50.000Z | 2021-10-01T19:03:08.000Z | use Mix.Config
config :seven, Seven.Application, database: "seven"
| 17 | 51 | 0.764706 |
85c0ea59dc5d8d0f5a02969238312662a94b02fe | 1,822 | exs | Elixir | clients/dataflow/mix.exs | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/dataflow/mix.exs | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/dataflow/mix.exs | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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... | 27.19403 | 99 | 0.654226 |
85c0f827855fc7c00038e51b4075efabe436d2e9 | 2,310 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/list_notification_channels_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/list_notification_channels_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/list_notification_channels_response.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... | 43.584906 | 279 | 0.749351 |
85c10756fcfca480194a09b96f8e2f2ccb304197 | 10,481 | ex | Elixir | lib/jamdb_oracle_ecto.ex | ad-pro/jamdb_oracle | 334617bdd1f8e0382b7058832eff5d1f5a92a616 | [
"MIT"
] | null | null | null | lib/jamdb_oracle_ecto.ex | ad-pro/jamdb_oracle | 334617bdd1f8e0382b7058832eff5d1f5a92a616 | [
"MIT"
] | null | null | null | lib/jamdb_oracle_ecto.ex | ad-pro/jamdb_oracle | 334617bdd1f8e0382b7058832eff5d1f5a92a616 | [
"MIT"
] | 1 | 2021-01-27T10:27:29.000Z | 2021-01-27T10:27:29.000Z | defmodule Ecto.Adapters.Jamdb.Oracle do
@moduledoc """
Adapter module for Oracle. `Ecto.Adapters.SQL` callbacks implementation.
It uses `jamdb_oracle` for communicating to the database.
## Features
* Using prepared statement functionality, the SQL statement you want
to run is precompiled and stored i... | 38.251825 | 109 | 0.615876 |
85c11a5b00df797edc1d920c6caaf3fdc5457c76 | 5,164 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/postal_codes.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/api/postal_codes.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/postal_codes.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... | 39.121212 | 170 | 0.686483 |
85c11e21877c3cc2836c1a1311d9e99825e3cac4 | 2,062 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/route_spec.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/route_spec.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/route_spec.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 ... | 36.821429 | 176 | 0.738118 |
85c12033194b6751421026fb369b2a3ca553add3 | 136 | ex | Elixir | src/core/repo.ex | salespaulo/inmana | 26c0c1c1b61f37e4b108800eb8ed29fca986b9b7 | [
"MIT"
] | null | null | null | src/core/repo.ex | salespaulo/inmana | 26c0c1c1b61f37e4b108800eb8ed29fca986b9b7 | [
"MIT"
] | null | null | null | src/core/repo.ex | salespaulo/inmana | 26c0c1c1b61f37e4b108800eb8ed29fca986b9b7 | [
"MIT"
] | null | null | null | defmodule Inmana.Repo do
use Ecto.Repo,
otp_app: :inmana,
adapter: Ecto.Adapters.Postgres
use Scrivener, page_size: 10
end
| 17 | 35 | 0.720588 |
85c127bed1528ad8bae5603fe1aa0bf9501817bf | 2,076 | ex | Elixir | lib/response_snapshot/changes.ex | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 37 | 2018-04-17T09:37:48.000Z | 2022-01-23T23:43:16.000Z | lib/response_snapshot/changes.ex | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 2 | 2018-08-21T17:42:58.000Z | 2019-11-13T04:42:24.000Z | lib/response_snapshot/changes.ex | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 3 | 2018-04-22T13:34:21.000Z | 2019-11-13T04:33:23.000Z | defmodule ResponseSnapshot.Changes do
@moduledoc """
Structure for changes of a diff. An object which is completely identical will
be equal to `Changes.empty()`. Any modifications, additions, and removals are
accessible from this struct.
Object traversal is notated with a `.`. Array traversal is notated with... | 32.952381 | 93 | 0.697013 |
85c166deb427a5edbc6bb2fc8204d0989d16a2fe | 700 | ex | Elixir | lib/glimesh/streams/category.ex | DeeRock94/glimesh.tv | e4517e4e3b03f98a3cab2d16b82f365e3b23fd9d | [
"MIT"
] | null | null | null | lib/glimesh/streams/category.ex | DeeRock94/glimesh.tv | e4517e4e3b03f98a3cab2d16b82f365e3b23fd9d | [
"MIT"
] | null | null | null | lib/glimesh/streams/category.ex | DeeRock94/glimesh.tv | e4517e4e3b03f98a3cab2d16b82f365e3b23fd9d | [
"MIT"
] | null | null | null | defmodule Glimesh.Streams.Category do
@moduledoc false
use Ecto.Schema
use Waffle.Ecto.Schema
import Ecto.Changeset
schema "categories" do
field :name, :string
field :slug, :string
has_many :tags, Glimesh.Streams.Tag
timestamps()
end
@doc false
def changeset(category, attrs) do
... | 19.444444 | 62 | 0.648571 |
85c16f01df2476283d7f9f775c1bb9c83b8541c7 | 1,702 | ex | Elixir | lib/qb_backend_web/endpoint.ex | LittleKidogo/quick_bytes_system | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | 1 | 2018-08-10T02:53:13.000Z | 2018-08-10T02:53:13.000Z | lib/qb_backend_web/endpoint.ex | LittleKidogo/quick_bytes_backend | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | 34 | 2018-08-07T09:53:18.000Z | 2018-10-24T21:12:01.000Z | lib/qb_backend_web/endpoint.ex | LittleKidogo/quick_bytes_backend | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | null | null | null | defmodule QbBackendWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :qb_backend
socket("/socket", QbBackendWeb.UserSocket)
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug(... | 26.184615 | 95 | 0.691539 |
85c192f44bdf84934c1997eba87c643a3f4311e8 | 929 | ex | Elixir | lib/bus/application.ex | titouancreach/bus-rennes | 9d85a1c13a161b4f48e6efaf7ed52dbd7991f9d8 | [
"MIT"
] | 3 | 2018-06-16T22:34:46.000Z | 2018-06-20T07:15:27.000Z | lib/bus/application.ex | titouancreach/bus-rennes | 9d85a1c13a161b4f48e6efaf7ed52dbd7991f9d8 | [
"MIT"
] | null | null | null | lib/bus/application.ex | titouancreach/bus-rennes | 9d85a1c13a161b4f48e6efaf7ed52dbd7991f9d8 | [
"MIT"
] | null | null | null | defmodule Bus.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 applic... | 30.966667 | 81 | 0.713671 |
85c1a2dba7eec796cea4cdfe46e81b416f9ed4fd | 2,436 | exs | Elixir | test/grizzly/zwave/commands/learn_mode_set_status_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/learn_mode_set_status_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/learn_mode_set_status_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.LearnModeSetStatusTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.LearnModeSetStatus
alias GrizzlyTest.Utils
describe "creates the command and validates params" do
test "v1" do
params = [
seq_number: 3,
status: :done,
new_nod... | 27.681818 | 86 | 0.605501 |
85c1ebec72a378b1c76b97584bd36e77c540eda7 | 1,287 | exs | Elixir | config/config.exs | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 2 | 2021-09-28T13:06:31.000Z | 2021-10-03T14:41:14.000Z | config/config.exs | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 8 | 2021-09-05T00:40:16.000Z | 2021-12-04T22:41:00.000Z | config/config.exs | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"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 :blog_phx,
ecto_repos: [BlogPhx.Repo]
... | 31.390244 | 86 | 0.766123 |
85c20fcd55a9373f06bbbb5b31925af7b82d8760 | 18,914 | exs | Elixir | lib/elixir/test/elixir/kernel_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule KernelTest do
use ExUnit.Case, async: true
doctest Kernel
test "=~/2" do
assert ("abcd" =~ ~r/c(d)/) == true
assert ("abcd" =~ ~r/e/) == false
assert ("abcd" =~ ~R/c(d)/) == true
assert ("abcd" =~ ~R/e/) == false
string = "^ab+cd*$"
... | 25.663501 | 97 | 0.552395 |
85c2235b2733893954b08bf71d85662767786b31 | 1,404 | ex | Elixir | ping_elixir/lib/ping_elixir_web/telemetry.ex | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | ping_elixir/lib/ping_elixir_web/telemetry.ex | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | ping_elixir/lib/ping_elixir_web/telemetry.ex | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | defmodule PingElixirWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Lea... | 28.653061 | 86 | 0.671652 |
85c2475d8ed99b7f9812641ae5ef6ba0eb9e322c | 9,850 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.AggregationResult) do
@moduledoc false
(
defstruct(name: nil, type: nil, agg_result: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}... | 26.407507 | 97 | 0.458883 |
85c24993b9d8cc55a49ea5cf487a9372a8d6d628 | 1,069 | exs | Elixir | config/config.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | config/config.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | config/config.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"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 :jalka2021,
ecto_repos: [Jalka2021.Repo... | 33.40625 | 87 | 0.777362 |
85c25e336305a0f18f6691512a1dd497c21fe3f1 | 1,459 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.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... | 30.395833 | 80 | 0.751885 |
85c27aee8305cdb32fdd0831f077a119d8867100 | 1,866 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_fulfillment_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_fulfillment_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_fulfillment_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.884615 | 329 | 0.763666 |
85c28fc5516302a1496f4ca9d4f0496fc51e4c56 | 2,253 | exs | Elixir | config/prod.exs | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | 1 | 2021-12-08T18:15:33.000Z | 2021-12-08T18:15:33.000Z | config/prod.exs | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# TrackUserAgentsWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there... | 34.661538 | 74 | 0.731469 |
85c2a150e3bbded07ba5da15c29c9f060a2e312e | 1,129 | exs | Elixir | config/config.exs | aadavids/elixir_busybox | 075a6c9702c6320161df0e932357ebac548867b5 | [
"MIT"
] | 2 | 2019-06-06T20:16:07.000Z | 2019-06-06T22:12:25.000Z | config/config.exs | aadavids/elixir_busybox | 075a6c9702c6320161df0e932357ebac548867b5 | [
"MIT"
] | 5 | 2019-06-26T16:07:24.000Z | 2019-11-22T15:59:12.000Z | config/config.exs | aadavids/elixir_busybox | 075a6c9702c6320161df0e932357ebac548867b5 | [
"MIT"
] | 2 | 2019-08-21T16:12:24.000Z | 2020-09-04T18:16:38.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.751107 |
85c2b1ba31121c80806adcc5b98e07120a17333b | 4,567 | ex | Elixir | lib/benchee/scenario.ex | pablocostass/benchee | bd4873feabbcc4817cf6ecbd9cef0e0338ce678b | [
"MIT"
] | 504 | 2019-03-19T16:50:04.000Z | 2022-03-30T03:33:11.000Z | lib/benchee/scenario.ex | pablocostass/benchee | bd4873feabbcc4817cf6ecbd9cef0e0338ce678b | [
"MIT"
] | 46 | 2019-03-19T16:52:27.000Z | 2022-03-10T08:34:45.000Z | lib/benchee/scenario.ex | pablocostass/benchee | bd4873feabbcc4817cf6ecbd9cef0e0338ce678b | [
"MIT"
] | 20 | 2019-03-21T06:36:33.000Z | 2022-03-10T06:13:40.000Z | defmodule Benchee.Scenario do
@moduledoc """
Core data structure representing one particular case (combination of function and input).
Represents the combination of a particular function to benchmark (also called "job" defined
by `job_name` and `function`) in combination with a specific input (`input_name` and... | 37.743802 | 116 | 0.701555 |
85c2c7084b4df75feea60652f6c66495645075d7 | 405 | exs | Elixir | test/unit/test_helper.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/unit/test_helper.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/unit/test_helper.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | ExUnit.start(capture_log: true)
defmodule TestHelper do
@fcm_http_port 4001
def reload_app() do
Application.stop(:mongoose_push)
Application.stop(:sparrow)
Application.unload(:mongoose_push)
Application.put_env(:goth, :endpoint, "http://localhost:#{@fcm_http_port}")
Application.load(:mongoose_p... | 27 | 79 | 0.730864 |
85c2f0398e67f83c6b4c2ce8c7ec2a0ff5cc73fb | 975 | ex | Elixir | massa_proxy/apps/massa_proxy/lib/massa_proxy/cluster/horde_connector.ex | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | 1 | 2021-11-30T19:59:51.000Z | 2021-11-30T19:59:51.000Z | massa_proxy/apps/massa_proxy/lib/massa_proxy/cluster/horde_connector.ex | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | null | null | null | massa_proxy/apps/massa_proxy/lib/massa_proxy/cluster/horde_connector.ex | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | null | null | null | defmodule MassaProxy.Cluster.HordeConnector do
@moduledoc false
require Logger
def start_children() do
# The order in which supervisors start matters, so be careful when you move here
Logger.debug("Starting Proxy Supervisors...")
Horde.DynamicSupervisor.start_child(
MassaProxy.Supervisor,
... | 24.375 | 90 | 0.662564 |
85c30dc5288e8d4a8e70d9d904c3434d288b60d7 | 4,300 | exs | Elixir | apps/service_acquire/test/service_acquire/query_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/test/service_acquire/query_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/test/service_acquire/query_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Acquire.QueryTest do
use ExUnit.Case
import Checkov
alias Acquire.Query
alias Acquire.Queryable
alias Acquire.Query.Where.{Function, And, Or, Parameter}
import Acquire.Query.Where.Functions
@instance Acquire.Application.instance()
setup do
Brook.Test.clear_view_state(@instance, "fields"... | 31.617647 | 97 | 0.590233 |
85c316365d430ad568cc25f947a04f8f87629e06 | 6,739 | ex | Elixir | lib/amqp/core.ex | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | 7 | 2020-02-04T16:27:16.000Z | 2021-11-17T20:37:39.000Z | lib/amqp/core.ex | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | 58 | 2019-05-21T12:25:13.000Z | 2022-02-04T12:55:40.000Z | lib/amqp/core.ex | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | 2 | 2020-04-08T07:18:42.000Z | 2020-10-14T14:31:53.000Z | defmodule Amqpx.Core do
@moduledoc false
require Record
Record.defrecord(
:p_basic,
:P_basic,
Record.extract(:P_basic, from_lib: "rabbit_common/include/rabbit_framing.hrl")
)
Record.defrecord(
:queue_declare_ok,
:"queue.declare_ok",
Record.extract(:"queue.declare_ok", from_lib: "rab... | 26.120155 | 96 | 0.703072 |
85c32d99e82039670b1e4eebf40ca34abf207a47 | 514 | ex | Elixir | web/controllers/stripe_platform_events_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/stripe_platform_events_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/stripe_platform_events_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.StripePlatformEventsController do
use CodeCorps.Web, :controller
alias CodeCorps.StripeService.WebhookProcessing.{
EnvironmentFilter, PlatformEventHandler, WebhookProcessor
}
def create(conn, event_params) do
case EnvironmentFilter.environment_matches?(event_params) do
true -... | 28.555556 | 88 | 0.719844 |
85c34224a6b66cc6878c9b23869adc88326fff9b | 5,622 | ex | Elixir | lib/huth/config.ex | gorkemduman/huth | 5b8a4a85e905a79abac84db9bf54ce052360ea9c | [
"MIT"
] | null | null | null | lib/huth/config.ex | gorkemduman/huth | 5b8a4a85e905a79abac84db9bf54ce052360ea9c | [
"MIT"
] | null | null | null | lib/huth/config.ex | gorkemduman/huth | 5b8a4a85e905a79abac84db9bf54ce052360ea9c | [
"MIT"
] | 1 | 2021-07-06T11:28:45.000Z | 2021-07-06T11:28:45.000Z | defmodule Huth.Config do
@moduledoc """
`Huth.Config` is a `GenServer` that holds the current configuration.
This configuration is loaded from one of four places:
1. a JSON string passed in via your application's config
2. a ENV variable passed in via your application's config
3. The Application Default Cr... | 27.694581 | 113 | 0.643187 |
85c3b2ef94d0d6c04f2669a127d53b71f991320f | 449 | ex | Elixir | test/support/component_embeddding_live_view.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | null | null | null | test/support/component_embeddding_live_view.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 6 | 2021-10-19T01:55:57.000Z | 2022-02-15T01:04:19.000Z | test/support/component_embeddding_live_view.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 2 | 2022-01-21T08:38:50.000Z | 2022-01-21T08:42:04.000Z | defmodule EpiLocatorWeb.Test.ComponentEmbeddingLiveView do
defmacro __using__(opts) do
default_assigns = Keyword.get(opts, :default_assigns)
quote do
use EpiLocatorWeb, :live_view
def mount(_params, _session, socket) do
{:ok, socket |> assign(unquote(default_assigns))}
end
d... | 24.944444 | 58 | 0.679287 |
85c3b6565433742b9789f4df33f0a205613643c9 | 150 | exs | Elixir | test/forthwith_ex_test.exs | elcritch/forthwith_ex | 6332a0e417494ddf9f3661691b85fc6091d0fdd2 | [
"Apache-2.0"
] | null | null | null | test/forthwith_ex_test.exs | elcritch/forthwith_ex | 6332a0e417494ddf9f3661691b85fc6091d0fdd2 | [
"Apache-2.0"
] | null | null | null | test/forthwith_ex_test.exs | elcritch/forthwith_ex | 6332a0e417494ddf9f3661691b85fc6091d0fdd2 | [
"Apache-2.0"
] | null | null | null | defmodule ForthwithExTest do
use ExUnit.Case
doctest ForthwithEx
test "greets the world" do
assert ForthwithEx.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
85c3bc6257d8bc835c15f48e52d8ab7a34bdf90d | 1,082 | ex | Elixir | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/router.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/router.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/router.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.787879 | 74 | 0.731054 |
85c41c563dce9c32bb089d8ccb8dbc1d949ec2c3 | 708 | ex | Elixir | config/dispatcher/dispatcher.ex | mu-semtech/site-backend | d73a578e8cdff8e869425423ae39d606fc55b68e | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | mu-semtech/site-backend | d73a578e8cdff8e869425423ae39d606fc55b68e | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | mu-semtech/site-backend | d73a578e8cdff8e869425423ae39d606fc55b68e | [
"MIT"
] | null | null | null | defmodule Dispatcher do
use Plug.Router
def start(_argv) do
port = 80
IO.puts "Starting Plug with Cowboy on port #{port}"
Plug.Adapters.Cowboy.http __MODULE__, [], port: port
:timer.sleep(:infinity)
end
plug Plug.Logger
plug :match
plug :dispatch
match "/export/*path" do
Proxy.forw... | 19.135135 | 61 | 0.652542 |
85c44bb33944550324f430fc0fab5657dc71893d | 1,992 | ex | Elixir | apps/bookmarker/web/controllers/folder_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_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_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.FolderController do
use Bookmarker.Web, :controller
alias Bookmarker.Folder
def index(conn, _params) do
folders = Folder.with_bookmarks_count_query |> Repo.all
render(conn, "index.html", folders: folders)
end
def new(conn, _params) do
changeset = Folder.changeset(%Folder{}... | 29.731343 | 125 | 0.639056 |
85c44e3d4fb4b014310bf14704df52dee0f166b0 | 499 | ex | Elixir | lib/anchore_engine_api_server/model/policy_evaluation.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/policy_evaluation.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/policy_evaluation.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule AnchoreEngineAPIServer.Model.PolicyEvaluation do
@moduledoc """
Evaluation response object
"""
@derive [Poison.Encoder]
defstruct [
... | 19.192308 | 77 | 0.725451 |
85c4bef09bec258a2415fc2e733675ed45ed458a | 384 | ex | Elixir | lib/slack/team/profile.ex | jclem/slack_ex | e2376cea87c35d14cc31dc545ff8e99106dee28c | [
"MIT"
] | 21 | 2016-06-28T04:03:55.000Z | 2020-01-19T01:51:11.000Z | lib/slack/team/profile.ex | jclem/slack_ex | e2376cea87c35d14cc31dc545ff8e99106dee28c | [
"MIT"
] | 5 | 2016-06-28T04:34:14.000Z | 2019-12-09T20:09:12.000Z | lib/slack/team/profile.ex | jclem/slack_ex | e2376cea87c35d14cc31dc545ff8e99106dee28c | [
"MIT"
] | 6 | 2016-06-28T04:27:08.000Z | 2020-04-22T11:07:03.000Z | defmodule Slack.Team.Profile do
@moduledoc """
Functions for team profiles
"""
@base "team.profile"
use Slack.Request
@doc """
Get the profile field definitions for the team.
https://api.slack.com/methods/team.profile.get
## Examples
Slack.Team.Profile.get(client)
"""
@spec get(Slack... | 17.454545 | 62 | 0.677083 |
85c4e0c66b2e832db676c2f8c9ba3811c5bcb999 | 1,376 | ex | Elixir | archive/e/elixir/bubble-sort.ex | Ayush7-BIT/sample-programs | 827d8961d3a548daf8fe3b674642a1562daaa5c4 | [
"MIT"
] | 422 | 2018-08-14T11:57:47.000Z | 2022-03-07T23:54:34.000Z | archive/e/elixir/bubble-sort.ex | Ayush7-BIT/sample-programs | 827d8961d3a548daf8fe3b674642a1562daaa5c4 | [
"MIT"
] | 1,498 | 2018-08-10T19:18:52.000Z | 2021-12-14T03:02:00.000Z | archive/e/elixir/bubble-sort.ex | Ayush7-BIT/sample-programs | 827d8961d3a548daf8fe3b674642a1562daaa5c4 | [
"MIT"
] | 713 | 2018-08-12T21:37:49.000Z | 2022-03-02T22:57:21.000Z | defmodule Bubble do
@doc """
Sort the giveen input using bubble sort
"""
def main(args) do
cond do
length(args) != 1
or List.first(args) == ""
or List.first(args) |> String.split(",") |> length < 2 ->
IO.puts("Usage: please provide a list of at least two integers to sort in the f... | 29.913043 | 112 | 0.59811 |
85c4e2e419ef37ca629f25e09f2ea580d697d8b3 | 695 | exs | Elixir | examples/apps/named_worker/test/named_worker_test.exs | pragdave/jeeves | a5f745463f70540de1b0bbea29e629adbf0c45e8 | [
"Apache-2.0"
] | 87 | 2017-03-03T05:53:04.000Z | 2020-07-30T02:41:50.000Z | examples/apps/named_worker/test/named_worker_test.exs | pragdave/jeeves | a5f745463f70540de1b0bbea29e629adbf0c45e8 | [
"Apache-2.0"
] | 4 | 2017-03-03T18:44:55.000Z | 2017-08-11T16:25:32.000Z | examples/apps/named_worker/test/named_worker_test.exs | pragdave/service | a5f745463f70540de1b0bbea29e629adbf0c45e8 | [
"Apache-2.0"
] | 6 | 2017-03-03T18:11:46.000Z | 2018-06-27T23:53:16.000Z | defmodule NamedWorkerTest do
use ExUnit.Case
alias NamedKVStore, as: KV
alias NamedKVStore.Implementation, as: KVI
test "the implementation works" do
state = %{ name: "test" }
assert KVI.get(state, :name) == "test"
assert KVI.put(state, :name, "case") == {:reply, "case", %{name: "case"}}
end... | 21.71875 | 78 | 0.628777 |
85c5261bdf19202fbdd2598e3ca3d8511e0a461e | 3,285 | ex | Elixir | lib/gandalf/grant_type/base.ex | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | 1 | 2018-05-01T01:34:56.000Z | 2018-05-01T01:34:56.000Z | lib/gandalf/grant_type/base.ex | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/gandalf/grant_type/base.ex | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Gandalf.GrantType.Base do
@moduledoc """
Base module for OAuth2 grant types
"""
use Gandalf.RepoBase
import Gandalf.Config, only: [repo: 0, grant_types: 0, scopes: 0]
@doc """
A common function to generate oauth2 tokens (access_token and refresh_token)
for all Gandalf.GrantType.
To create ... | 31.586538 | 90 | 0.703805 |
85c57ea7505fd604c968d78e0d6f594bbe29af01 | 1,825 | ex | Elixir | lib/conekta_ex/http_client.ex | nysert/conekta_ex | cdd36b62a4e79409d4e67bad2a7e2b88ebd394ba | [
"MIT"
] | 1 | 2018-09-23T14:38:33.000Z | 2018-09-23T14:38:33.000Z | lib/conekta_ex/http_client.ex | nysert/conekta_ex | cdd36b62a4e79409d4e67bad2a7e2b88ebd394ba | [
"MIT"
] | null | null | null | lib/conekta_ex/http_client.ex | nysert/conekta_ex | cdd36b62a4e79409d4e67bad2a7e2b88ebd394ba | [
"MIT"
] | 1 | 2019-08-02T12:14:58.000Z | 2019-08-02T12:14:58.000Z | defmodule ConektaEx.HTTPClient do
@base "https://api.conekta.io"
def get(endpoint) do
request(:get, endpoint, "")
end
def post(endpoint, body) do
request(:post, endpoint, body)
end
def put(endpoint, body) do
request(:put, endpoint, body)
end
def delete(endpoint) do
request(:delete, e... | 22.530864 | 76 | 0.626301 |
85c58ceac2c4019508178039d19a0b1928f10835 | 5,599 | ex | Elixir | lib/level/events.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/events.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/events.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Events do
@moduledoc """
This module encapsulates behavior for publishing messages to listeners
(such as Absinthe GraphQL subscriptions).
"""
alias Level.Schemas.Group
alias Level.Schemas.Post
alias Level.Schemas.PostReaction
alias Level.Schemas.Reply
alias Level.Schemas.ReplyReaction... | 31.455056 | 98 | 0.724058 |
85c59f2387dd7450efc7d1eb82c1f215946dd5dd | 1,503 | exs | Elixir | test/membrane_opus/encoder_test.exs | membraneframework/membrane_opus_plugin | 73ae76b46884a74e5f182f9c8148ec18c955ad87 | [
"Apache-2.0"
] | 1 | 2021-12-04T12:35:34.000Z | 2021-12-04T12:35:34.000Z | test/membrane_opus/encoder_test.exs | membraneframework/membrane_opus_plugin | 73ae76b46884a74e5f182f9c8148ec18c955ad87 | [
"Apache-2.0"
] | 11 | 2020-05-08T07:55:30.000Z | 2022-03-24T05:59:16.000Z | test/membrane_opus/encoder_test.exs | membraneframework/membrane_opus_plugin | 73ae76b46884a74e5f182f9c8148ec18c955ad87 | [
"Apache-2.0"
] | 2 | 2020-10-10T04:51:09.000Z | 2022-03-16T02:12:22.000Z | defmodule Membrane.Opus.Encoder.EncoderTest do
use ExUnit.Case, async: true
alias Membrane.Opus.Encoder
alias Membrane.Caps.Audio.Raw
import Membrane.Testing.Assertions
alias Membrane.Testing
import Membrane.ParentSpec
@input_path "test/fixtures/raw_packets"
@output_path "test/fixtures/encoder_output"... | 24.241935 | 71 | 0.654025 |
85c5a0aa1aa9c5049b3f1c71fe3ccecaffb3b4c2 | 2,994 | ex | Elixir | lib/fun_with_flags/supervisor.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | lib/fun_with_flags/supervisor.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | lib/fun_with_flags/supervisor.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | defmodule FunWithFlags.Supervisor do
@moduledoc """
A [Module-based supervisor](https://hexdocs.pm/elixir/Supervisor.html#module-module-based-supervisors).
It implements [`Supervisor.child_spec/1`](https://hexdocs.pm/elixir/Supervisor.html#module-child_spec-1) to describe the supervision tree for the
`:fun_wit... | 34.813953 | 147 | 0.721777 |
85c5bf19706f7b7f6903c0e57cb7f71427ff2b6a | 2,259 | exs | Elixir | spec/next_spec.exs | ahtung/tanga.ex | 05290f573001f29a375201f9448d0d655a69b00c | [
"Apache-2.0"
] | 2 | 2018-01-21T23:06:49.000Z | 2018-01-22T16:18:50.000Z | spec/next_spec.exs | ahtung/tanga.ex | 05290f573001f29a375201f9448d0d655a69b00c | [
"Apache-2.0"
] | 17 | 2018-01-22T00:11:35.000Z | 2018-01-24T23:22:39.000Z | spec/next_spec.exs | ahtung/tanga.ex | 05290f573001f29a375201f9448d0d655a69b00c | [
"Apache-2.0"
] | null | null | null | defmodule NextSpec do
use ESpec, async: true
describe "" do
it "next/1" do
expect Tanga.next("") |> to(eq "")
end
it "next/1 with ..." do
expect Tanga.next("abcd") |> to(eq "abce")
expect Tanga.next("THX1138") |> to(eq "THX1139")
expect Tanga.next("<<koala>>") |> to(eq "<<... | 34.753846 | 133 | 0.556441 |
85c5d89c5dbd2e78822097d3536772a678a61dc0 | 606 | ex | Elixir | lib/chat_api_web/views/canned_response_view.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api_web/views/canned_response_view.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api_web/views/canned_response_view.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.CannedResponseView do
use ChatApiWeb, :view
alias ChatApiWeb.CannedResponseView
def render("index.json", %{canned_responses: canned_responses}) do
%{data: render_many(canned_responses, CannedResponseView, "canned_response.json")}
end
def render("show.json", %{canned_response: canned... | 35.647059 | 91 | 0.770627 |
85c5d8f369166778530c4b806ec98f145ade3e06 | 1,512 | ex | Elixir | clients/script/lib/google_api/script/v1/model/list_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/script/lib/google_api/script/v1/model/list_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/script/lib/google_api/script/v1/model/list_value.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... | 32.170213 | 130 | 0.732143 |
85c5de373533decbba45333253c43def600c28dc | 289 | ex | Elixir | lib/doc_gen/repo.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | lib/doc_gen/repo.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | 27 | 2018-10-29T18:34:44.000Z | 2019-03-11T18:43:12.000Z | lib/doc_gen/repo.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | defmodule DocGen.Repo do
use Ecto.Repo,
otp_app: :doc_gen,
adapter: Ecto.Adapters.Postgres
def child_spec(opts) do
%{
id: __MODULE__,
start: {__MODULE__, :start_link, [opts]},
type: :worker,
restart: :permanent,
shutdown: 500
}
end
end
| 18.0625 | 47 | 0.608997 |
85c60ca599321970756ec1d3167258ab809a6ec7 | 950 | ex | Elixir | apps/tai/lib/tai/events/lock_account_ok.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/events/lock_account_ok.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/events/lock_account_ok.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Events.LockAccountOk do
@type venue_id :: Tai.Venues.Adapter.venue_id()
@type credential_id :: Tai.Venues.Adapter.credential_id()
@type t :: %Tai.Events.LockAccountOk{
venue_id: venue_id,
credential_id: credential_id,
asset: atom,
qty: Decimal.t(),
m... | 21.111111 | 61 | 0.591579 |
85c6ae261f4eb941b7aa8368d5f5563d1e7d0b08 | 481 | ex | Elixir | lib/appsignal/utils.ex | taverngoal/appsignal-elixir | b7a991e14ff2482131daef0071f27b3d6b32b649 | [
"MIT"
] | 1 | 2021-04-21T05:25:44.000Z | 2021-04-21T05:25:44.000Z | lib/appsignal/utils.ex | taverngoal/appsignal-elixir | b7a991e14ff2482131daef0071f27b3d6b32b649 | [
"MIT"
] | null | null | null | lib/appsignal/utils.ex | taverngoal/appsignal-elixir | b7a991e14ff2482131daef0071f27b3d6b32b649 | [
"MIT"
] | null | null | null | defmodule Appsignal.Utils do
@doc """
Converts module name atoms to strings.
## Examples
iex> Appsignal.Utils.module_name(MyModule)
"MyModule"
iex> Appsignal.Utils.module_name("MyModule")
"MyModule"
"""
@spec module_name(atom() | String.t()) :: String.t()
def module_name("Elixir."... | 24.05 | 69 | 0.66736 |
85c6d60cca870ed2ae0759f153dda3a11bac0113 | 643 | ex | Elixir | lib/servy/pledge_controller.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | lib/servy/pledge_controller.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | lib/servy/pledge_controller.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | defmodule Servy.PledgeController do
alias Servy.PledgeServer2
def create(conv, _params = %{"name" => name, "amount" => amount}) do
# Sends the pledge to the external service and caches it
PledgeServer2.create_pledge(name, String.to_integer(amount))
%{conv | status: 201, resp_body: "#{name} pledged #{am... | 30.619048 | 70 | 0.696734 |
85c6d75d19c772bc7d9684b7dc1d4a2e37c79050 | 128 | ex | Elixir | lib/ex_golos/raw_ops/feed_publish.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | 5 | 2016-12-06T17:04:30.000Z | 2017-02-26T19:08:35.000Z | lib/ex_golos/raw_ops/feed_publish.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | null | null | null | lib/ex_golos/raw_ops/feed_publish.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | null | null | null | defmodule Golos.RawOps.FeedPublish do
@enforce_keys [:exchange_rate, :publisher]
defstruct [:exchange_rate, :publisher]
end
| 25.6 | 44 | 0.789063 |
85c709e7b5e22ba04a8eac04b14f2246d1aa6759 | 1,289 | ex | Elixir | lib/my_phoenix_api_template_web/endpoint.ex | HandOfGod94/my_phoenix_api_template | 448db20ba47872f37097754aec454aed440246b8 | [
"MIT"
] | null | null | null | lib/my_phoenix_api_template_web/endpoint.ex | HandOfGod94/my_phoenix_api_template | 448db20ba47872f37097754aec454aed440246b8 | [
"MIT"
] | null | null | null | lib/my_phoenix_api_template_web/endpoint.ex | HandOfGod94/my_phoenix_api_template | 448db20ba47872f37097754aec454aed440246b8 | [
"MIT"
] | null | null | null | defmodule MyPhoenixApiTemplateWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :my_phoenix_api_template
socket "/socket", MyPhoenixApiTemplateWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are runnin... | 28.644444 | 63 | 0.723817 |
85c70c0c3dc2b0da88d2f2200cda4e8f025c65fd | 160 | ex | Elixir | lib/playwright/websocket.ex | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | lib/playwright/websocket.ex | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | lib/playwright/websocket.ex | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | defmodule Playwright.WebSocket do
@moduledoc false
use Playwright.Runner.ChannelOwner
def new(parent, args) do
channel_owner(parent, args)
end
end
| 17.777778 | 36 | 0.7625 |
85c75d152cff85a21b316270a1ea9a530019dc39 | 350 | exs | Elixir | onboarding/service/priv/repo/migrations/20160919144906_add_merchant_legal_profiles.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | onboarding/service/priv/repo/migrations/20160919144906_add_merchant_legal_profiles.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | onboarding/service/priv/repo/migrations/20160919144906_add_merchant_legal_profiles.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | defmodule OnboardingService.Repo.Migrations.AddMerchantLegalProfiles do
use Ecto.Migration
def change do
create table (:merchant_legal_profiles) do
add :merchant_id, references(:merchants)
add :legal_profile_id, references(:legal_profiles)
end
create unique_index(:merchant_legal_profil... | 26.923077 | 71 | 0.76 |
85c767ccb316cb743fa318fcb7cca00dbee3b4cb | 4,223 | ex | Elixir | Microsoft.Azure.Management.Preview.Subscription/lib/microsoft/azure/management/preview/subscription/api/default.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.Subscription/lib/microsoft/azure/management/preview/subscription/api/default.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Subscription/lib/microsoft/azure/management/preview/subscription/api/default.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.Subscription.Api.Default do
@moduledoc """
API calls for all endpoints tagged `Default`.
"""
alias Mic... | 45.902174 | 324 | 0.748046 |
85c76a6b54e9cdb5739b0e064323134e50466719 | 2,047 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.622642 | 163 | 0.737176 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.