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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91d98d9ced34c08568fa962ee722bdcce5b4f352 | 564 | exs | Elixir | test/fixtures/simple_app_v1/mix.exs | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | test/fixtures/simple_app_v1/mix.exs | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | test/fixtures/simple_app_v1/mix.exs | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | defmodule SimpleAppV1.Fixture do
use Mix.Project
@target System.get_env("NERVES_TARGET") || "rpi3"
def project do
[app: :simple_app_v1,
version: "0.1.0",
archives: [nerves_bootstrap: "~> 0.1"],
target: @target,
aliases: aliases(),
deps: deps()]
end
def application do
[appli... | 19.448276 | 66 | 0.617021 |
91d9c8a106190c89035e12de66aa447a64b21d46 | 2,967 | exs | Elixir | config/prod.exs | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | config/prod.exs | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | config/prod.exs | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.337079 | 80 | 0.727671 |
91d9d4298271e08c5b3452b4748a2e0dfe17d1d9 | 1,768 | exs | Elixir | clients/cloud_trace/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 26.38806 | 102 | 0.648756 |
91da11f5c7152b25cec3ac492021376d0be1ff26 | 573 | ex | Elixir | generated-sources/elixir/mojang-sessions/lib/com/github/asyncmc/mojang/sessions/elixir/server/model/player_texture_url.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-sessions/lib/com/github/asyncmc/mojang/sessions/elixir/server/model/player_texture_url.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-sessions/lib/com/github/asyncmc/mojang/sessions/elixir/server/model/player_texture_url.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.github.asyncmc.mojang.sessions.elixir.server.Model.PlayerTextureUrl do
@moduledoc """
Wraps the URL to the texture
"""
@derive [Poison.En... | 22.038462 | 103 | 0.713787 |
91da138cb5fdb455bcb3c6aa1cbfca296ac90cf9 | 554 | exs | Elixir | priv/repo/migrations/20170918185500_failed_jobs.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 15 | 2015-09-23T16:03:28.000Z | 2018-12-04T21:48:04.000Z | priv/repo/migrations/20170918185500_failed_jobs.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 27 | 2016-01-12T16:44:31.000Z | 2017-10-13T16:09:36.000Z | priv/repo/migrations/20170918185500_failed_jobs.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 4 | 2016-09-01T12:08:24.000Z | 2017-09-21T15:07:57.000Z | defmodule SlackCoder.Repo.Migrations.FailedJobs do
use Ecto.Migration
def up do
create table(:failure_logs) do
add :pr_id, references(:prs, on_delete: :delete_all)
add :log, :text
add :external_id, :integer
timestamps()
end
alter table(:random_failures) do
remove :externa... | 21.307692 | 58 | 0.673285 |
91da239d9c06a90f20f0775ec8d629acd2cafbde | 5,251 | exs | Elixir | test/sanity/cache_test.exs | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | 1 | 2022-03-16T21:37:14.000Z | 2022-03-16T21:37:14.000Z | test/sanity/cache_test.exs | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | 2 | 2022-03-16T20:11:33.000Z | 2022-03-25T17:08:23.000Z | test/sanity/cache_test.exs | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | null | null | null | defmodule Sanity.Behaviour do
@callback request!(Request.t(), keyword()) :: {:ok, Response.t()} | {:error, Response.t()}
end
Mox.defmock(MockSanity, for: Sanity.Behaviour)
defmodule MyMod do
use Sanity.Cache
defq :page,
config_key: :test_config,
list_query: ~S'*[_type == "page" && !(_id in path("drafts... | 30.005714 | 110 | 0.501238 |
91da898f60d887ecde8f4f7a0fa1d04bb5de5bf1 | 1,408 | exs | Elixir | test/inspecto/schema_test.exs | kianmeng/inspecto | 2e45b1a3ca0e266d312482b9241857e567d1a47f | [
"Apache-2.0"
] | 2 | 2022-03-17T07:55:22.000Z | 2022-03-24T17:27:59.000Z | test/inspecto/schema_test.exs | kianmeng/inspecto | 2e45b1a3ca0e266d312482b9241857e567d1a47f | [
"Apache-2.0"
] | 1 | 2022-03-27T16:25:17.000Z | 2022-03-27T16:25:17.000Z | test/inspecto/schema_test.exs | kianmeng/inspecto | 2e45b1a3ca0e266d312482b9241857e567d1a47f | [
"Apache-2.0"
] | 2 | 2022-03-17T18:18:18.000Z | 2022-03-21T15:48:59.000Z | defmodule Inspecto.SchemaTest do
use ExUnit.Case, async: false
alias Inspecto.FakeEctoSchema
alias Inspecto.Schema
describe "inspect/1" do
test ":invalid_module returned when module is not an Ecto schema" do
assert {:invalid_module, _} = Schema.inspect(Enum)
end
test ":ok" do
assert {
... | 30.608696 | 82 | 0.417614 |
91daca7547913b930a0476d2633afd5a3f399b8c | 1,490 | ex | Elixir | lib/norm/conformer.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | lib/norm/conformer.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | lib/norm/conformer.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | defmodule Norm.Conformer do
@moduledoc false
# This module provides an api for conforming values and a protocol for
# conformable types
def conform(spec, input) do
# If we get errors then we should convert them to messages. Otherwise
# we just let good results fall through.
with {:error, errors} <-... | 29.8 | 83 | 0.632215 |
91dacd088525cda966b4a2cbe64cd2eed20ad7c3 | 1,524 | ex | Elixir | lib/rocketpay_web/endpoint.ex | paulop2/Rocketpay-NLW4-Elixir | 815b225494077431753f6fec5f09a70392d6a53b | [
"MIT"
] | null | null | null | lib/rocketpay_web/endpoint.ex | paulop2/Rocketpay-NLW4-Elixir | 815b225494077431753f6fec5f09a70392d6a53b | [
"MIT"
] | null | null | null | lib/rocketpay_web/endpoint.ex | paulop2/Rocketpay-NLW4-Elixir | 815b225494077431753f6fec5f09a70392d6a53b | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :rocketpay
# 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: "_rocke... | 28.754717 | 97 | 0.717192 |
91daec5a480f87cd3a8e29039dadeb143df4ddd3 | 224 | ex | Elixir | public/cloc-1.82/tests/inputs/elixir.ex | josema62/Memoria | 93ebd98095434bc76d85d3fe8f32c913ed451e43 | [
"MIT"
] | 1 | 2021-12-28T12:50:26.000Z | 2021-12-28T12:50:26.000Z | tests/samples/count/elixir.ex/elixir.ex | 0bOne/loci | 2c71aa0513dd19dbe70ff23fe9de0858a27d7adf | [
"MIT"
] | null | null | null | tests/samples/count/elixir.ex/elixir.ex | 0bOne/loci | 2c71aa0513dd19dbe70ff23fe9de0858a27d7adf | [
"MIT"
] | null | null | null | # This is a test for the Elixir SLOC counter.
defmodule Test do
@moduledoc """
Test module
"""
@notdoc :foo
@doc ~S"""
Foo
"""
def foo do
@notdoc
end
@doc ~c'''
Bar
'''
def bar, do: :bar
end
| 10.666667 | 45 | 0.544643 |
91db1d08fece28c59fb81f92594a9edf988f7074 | 1,572 | ex | Elixir | test/support/data_case.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | test/support/data_case.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | test/support/data_case.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorSchedule.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes do... | 27.578947 | 77 | 0.695929 |
91db24f15fbebfc5ffb335e163476a6c7c73c808 | 1,240 | exs | Elixir | apps/language_server/mix.exs | elsifaka/elixir-ls | e37d142c7768800be7e3c0e6ba339e1dd3b1e18d | [
"Apache-2.0"
] | null | null | null | apps/language_server/mix.exs | elsifaka/elixir-ls | e37d142c7768800be7e3c0e6ba339e1dd3b1e18d | [
"Apache-2.0"
] | null | null | null | apps/language_server/mix.exs | elsifaka/elixir-ls | e37d142c7768800be7e3c0e6ba339e1dd3b1e18d | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Mixfile do
use Mix.Project
def project do
[
app: :language_server,
version: "0.9.0",
elixir: ">= 1.10.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
al... | 25.833333 | 79 | 0.595161 |
91db25551ba09bc3433f95ceeffdc36c6d4641c9 | 229 | exs | Elixir | design/data_model_playground/priv/repo/migrations/20170208182340_add_slugs_to_categories.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | design/data_model_playground/priv/repo/migrations/20170208182340_add_slugs_to_categories.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | design/data_model_playground/priv/repo/migrations/20170208182340_add_slugs_to_categories.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule DataModelPlayground.Repo.Migrations.AddSlugsToCategories do
use Ecto.Migration
def change do
alter table(:categories) do
add :slug, :string
end
create unique_index(:categories, [:slug])
end
end
| 20.818182 | 69 | 0.729258 |
91db494f19eb4427e77dff3be2c6aa9141fb2e2f | 1,729 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_numerical_stats_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_numerical_stats_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_numerical_stats_config.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... | 35.285714 | 153 | 0.757663 |
91db7af293332fca270217361c5213c5d1754174 | 1,197 | ex | Elixir | lib/hound/matchers.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | lib/hound/matchers.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | lib/hound/matchers.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | defmodule Hound.Matchers do
@moduledoc "Text and element matchers"
import Hound.Helpers.Page
import Hound.Helpers.Element
@doc """
Returns true if text is found on the page.
visible_in_page?(~r/Paragraph/)
"""
@spec visible_in_page?(Regex.t()) :: boolean
def visible_in_page?(pattern) do
tex... | 27.204545 | 75 | 0.675021 |
91dbc5a830c03e1b4206d9fbb0dddc80ea6e45fc | 2,159 | exs | Elixir | mix.exs | axelson/nerves | bcf006f40d24eafad5aff385c8487650acb58b40 | [
"Apache-2.0"
] | null | null | null | mix.exs | axelson/nerves | bcf006f40d24eafad5aff385c8487650acb58b40 | [
"Apache-2.0"
] | null | null | null | mix.exs | axelson/nerves | bcf006f40d24eafad5aff385c8487650acb58b40 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Mixfile do
use Mix.Project
def project do
[
app: :nerves,
name: "Nerves",
source_url: "https://github.com/nerves-project/nerves",
homepage_url: "http://nerves-project.org/",
version: "1.5.0",
elixir: "~> 1.6.0 or ~> 1.7.3 or ~> 1.8",
elixirc_paths: eli... | 24.816092 | 95 | 0.546086 |
91dbcc26354f06388c3ec232f7c80eeaa0f3efbe | 617 | ex | Elixir | lib/nostrum/struct/event/message_delete.ex | skwerlman/nostrum | 4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f | [
"MIT"
] | 2 | 2020-03-03T02:51:57.000Z | 2021-01-18T02:24:42.000Z | lib/nostrum/struct/event/message_delete.ex | skwerlman/nostrum | 4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/message_delete.ex | skwerlman/nostrum | 4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f | [
"MIT"
] | null | null | null | defmodule Nostrum.Struct.Event.MessageDelete do
@moduledoc """
Struct representing a Message Delete event
"""
alias Nostrum.Snowflake
defstruct [
:id,
:channel_id,
:guild_id
]
@typedoc "Id of the deleted message"
@type id :: Snowflake.t()
@typedoc "Channel id of the deleted message"
... | 18.69697 | 47 | 0.628849 |
91dc1a193d44b3ac2f0d13a574c03b5715bfb385 | 1,635 | ex | Elixir | lib/co2_offset/geo/geo.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | lib/co2_offset/geo/geo.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | lib/co2_offset/geo/geo.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | defmodule Co2Offset.Geo do
alias Co2Offset.Geo.Airport
alias Co2Offset.Geo.GreatCircleDistance
alias Co2Offset.Repo
import Ecto.Query, only: [from: 2]
@moduledoc """
This module is a root Geo context.
"""
def get_airport_by_iata(iata) do
Repo.one(from a in Airport, where: a.iata == ^String.upcase(... | 24.772727 | 86 | 0.61896 |
91dc30343393fd3bfd2d1d885a53367ab5f6467f | 1,090 | ex | Elixir | clients/iam/lib/google_api/iam/v1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/iam/lib/google_api/iam/v1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/connection.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... | 33.030303 | 74 | 0.731193 |
91dc57d774c19351e81dd4fd4f443da12b22be03 | 1,405 | ex | Elixir | lib/messenger_bot/web/services/setup.ex | mustafaturan/messenger_bot | c6c634ace2b2df02acf4a06c9b24790893d88d60 | [
"Unlicense"
] | 16 | 2018-04-19T23:50:47.000Z | 2020-07-18T08:28:07.000Z | lib/messenger_bot/web/services/setup.ex | mustafaturan/messenger_bot | c6c634ace2b2df02acf4a06c9b24790893d88d60 | [
"Unlicense"
] | 62 | 2018-11-05T08:21:23.000Z | 2021-08-02T13:15:16.000Z | lib/messenger_bot/web/services/setup.ex | mustafaturan/messenger_bot | c6c634ace2b2df02acf4a06c9b24790893d88d60 | [
"Unlicense"
] | 4 | 2019-04-25T13:30:45.000Z | 2020-07-12T15:39:23.000Z | defmodule MessengerBot.Web.Service.Setup do
@moduledoc """
MessengerBot webhook setup handler
"""
use EventBus.EventSource
alias MessengerBot.Model.{App, Error}
alias MessengerBot.Web.Service.Setup.Params
alias MessengerBot.Web.Service.Setup.TokenValidator
@type messenger_webhook_setup_params :: map(... | 25.089286 | 73 | 0.687544 |
91dc5fb814eecaebafa695ff009016c5fa062cf5 | 2,827 | exs | Elixir | test/parser_test.exs | membraneframework/membrane_element_rawvideo_parser | b5c36a41c46acf27a76e44cb900e70d7012263de | [
"Apache-2.0"
] | null | null | null | test/parser_test.exs | membraneframework/membrane_element_rawvideo_parser | b5c36a41c46acf27a76e44cb900e70d7012263de | [
"Apache-2.0"
] | 1 | 2022-01-20T16:41:15.000Z | 2022-01-20T16:41:15.000Z | test/parser_test.exs | membraneframework/membrane_element_rawvideo_parser | b5c36a41c46acf27a76e44cb900e70d7012263de | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.RawVideo.ParserTest do
use ExUnit.Case
alias Membrane.Element.RawVideo.Parser
alias Membrane.Buffer
@framerate 30
test "Process buffer with 3 frames" do
assert {{:ok, actions}, state} =
Parser.handle_process(:input, %Buffer{payload: "123456"}, nil, %{
... | 30.728261 | 95 | 0.499823 |
91dc71aaa39dcccc32ab5238aaf4493abfea4095 | 323 | ex | Elixir | apps/brain/lib/sensors/magnetometer.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/brain/lib/sensors/magnetometer.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/brain/lib/sensors/magnetometer.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | defmodule Brain.Sensors.Magnetometer do
use GenServer
use Sensors.Common
require Logger
def init([driver_pid]) do
{:ok, %{driver_pid: driver_pid}}
end
def start_link(driver_pid) do
Logger.debug "Starting #{__MODULE__}..."
GenServer.start_link(__MODULE__, [driver_pid], name: __MODULE__)
end
e... | 21.533333 | 68 | 0.721362 |
91dc95c4756d32918a460e34d40c0883ff2610d3 | 90 | exs | Elixir | test/views/layout_view_test.exs | ohr486/process_mandara | 8507fd0f876a27d9e3ad8dbb927e0fd0b6eb9d75 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | ohr486/process_mandara | 8507fd0f876a27d9e3ad8dbb927e0fd0b6eb9d75 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | ohr486/process_mandara | 8507fd0f876a27d9e3ad8dbb927e0fd0b6eb9d75 | [
"MIT"
] | null | null | null | defmodule ProcessMandara.LayoutViewTest do
use ProcessMandara.ConnCase, async: true
end
| 22.5 | 42 | 0.844444 |
91dc95f71b08366988f0756790ca2b2711dd98ad | 1,363 | exs | Elixir | host_core/mix.exs | emattiza/wasmcloud-otp | e1e3dcc8fcf14b93acbdde28743d1f48c23948ef | [
"Apache-2.0"
] | null | null | null | host_core/mix.exs | emattiza/wasmcloud-otp | e1e3dcc8fcf14b93acbdde28743d1f48c23948ef | [
"Apache-2.0"
] | null | null | null | host_core/mix.exs | emattiza/wasmcloud-otp | e1e3dcc8fcf14b93acbdde28743d1f48c23948ef | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.MixProject do
use Mix.Project
@app_vsn "0.54.1"
def project do
[
app: :host_core,
version: @app_vsn,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
rustler_crates: [
hostcore_wasmcloud_native: [
mode: if(Mix.env(... | 25.240741 | 65 | 0.501834 |
91dcd9f607f44cc79b921442e1bb8cb254d75007 | 259 | ex | Elixir | lib/band_manager.ex | tutsplus/get-started-with-phoenix | c729d25291fedda134ce7a4d307fe4b3cc50db89 | [
"BSD-2-Clause"
] | 3 | 2019-04-11T07:29:58.000Z | 2021-03-14T00:01:58.000Z | lib/band_manager.ex | tutsplus/get-started-with-phoenix | c729d25291fedda134ce7a4d307fe4b3cc50db89 | [
"BSD-2-Clause"
] | null | null | null | lib/band_manager.ex | tutsplus/get-started-with-phoenix | c729d25291fedda134ce7a4d307fe4b3cc50db89 | [
"BSD-2-Clause"
] | null | null | null | defmodule BandManager do
@moduledoc """
BandManager keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.9 | 66 | 0.760618 |
91dcdb1d9bc027c8ae108ae534c22a7ab8042d42 | 567 | exs | Elixir | test/channel/bounded_queue_test.exs | jamesmacaulay/channel | 978449a28a0e8298d8aa9ea17899bc8034b51933 | [
"MIT"
] | null | null | null | test/channel/bounded_queue_test.exs | jamesmacaulay/channel | 978449a28a0e8298d8aa9ea17899bc8034b51933 | [
"MIT"
] | null | null | null | test/channel/bounded_queue_test.exs | jamesmacaulay/channel | 978449a28a0e8298d8aa9ea17899bc8034b51933 | [
"MIT"
] | null | null | null | defmodule Channel.BoundedQueueText do
use ExUnit.Case
alias Channel.BoundedQueue, as: BQ
test "new" do
assert q = BQ.new(3)
end
test "put" do
q = BQ.new(2)
assert {:ok, q2} = BQ.put(q, "item1")
assert {:ok, q3} = BQ.put(q2, "item2")
assert {:full, ^q3} = BQ.put(q3, "item3")
end
test... | 22.68 | 48 | 0.552028 |
91dd07b13e8767b4e709443cc054daa056e77020 | 1,833 | ex | Elixir | lib/sbom_poc_web/live/home_live.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 2 | 2020-10-04T12:41:58.000Z | 2021-03-11T20:51:26.000Z | lib/sbom_poc_web/live/home_live.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 113 | 2020-07-25T02:29:33.000Z | 2022-03-01T01:07:23.000Z | lib/sbom_poc_web/live/home_live.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 5 | 2020-07-10T09:57:58.000Z | 2021-03-11T20:51:29.000Z | defmodule SbomPocWeb.HomeLive do
@moduledoc "Home page live view"
use SbomPocWeb, :live_view
@impl true
def mount(_params, _session, socket) do
# Phoenix.PubSub.subscribe(SbomPoc.PubSub, @topic)
# events = SbomPoc.Mqtt.Handler.all_events()
{:ok, assign(socket, home: "whatever")}
end
@impl tru... | 34.584906 | 132 | 0.673759 |
91dd0e55289a470bbffb34995cbf6252b3518bac | 9,337 | ex | Elixir | apps/mcam_server/lib/mcam_server/accounts.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/mcam_server/lib/mcam_server/accounts.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/mcam_server/lib/mcam_server/accounts.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule McamServer.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias McamServer.Repo
alias McamServer.Accounts.{User, UserToken, UserNotifier}
alias McamServer.Subscriptions
## Database getters
@doc """
Gets a user by email.
## Examples
iex> get... | 25.721763 | 116 | 0.664453 |
91dd5f852e3fde39c9c8c35c9a9748a1fd0ccbf3 | 11,013 | ex | Elixir | lib/bamboo/mailer.ex | davidlibrera/bamboo | 57d6f7627df4370ea243688dbc626937ca3b78c1 | [
"MIT"
] | null | null | null | lib/bamboo/mailer.ex | davidlibrera/bamboo | 57d6f7627df4370ea243688dbc626937ca3b78c1 | [
"MIT"
] | null | null | null | lib/bamboo/mailer.ex | davidlibrera/bamboo | 57d6f7627df4370ea243688dbc626937ca3b78c1 | [
"MIT"
] | 1 | 2021-03-29T17:43:54.000Z | 2021-03-29T17:43:54.000Z | defmodule Bamboo.Mailer do
@moduledoc """
Functions for delivering emails using adapters and delivery strategies.
Adds `deliver_now/1`, `deliver_now!/1`, `deliver_later/1` and
`deliver_later!/1` functions to the mailer module in which it is used.
Bamboo [ships with several adapters][available-adapters]. It ... | 29.845528 | 98 | 0.660401 |
91dd75cc5b251ac4803608c60f3d35d49a5f4e5b | 2,083 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/link.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/link.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/link.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... | 35.305085 | 131 | 0.693231 |
91dd864cce5d016a3933c27902794c2555170ef3 | 1,595 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_protobuf_empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_protobuf_empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_protobuf_empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 37.97619 | 345 | 0.768025 |
91dd9ed40c184d62045dd10a5f8f904c86378b1f | 1,623 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_localization.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_localization.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_localization.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 31.823529 | 101 | 0.737523 |
91dda53c0a83eec7031ec8208960c312b138d5a2 | 2,148 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_list_client_states_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_list_client_states_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_list_client_states_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... | 35.213115 | 182 | 0.751862 |
91ddc032ffa43161c360439de131851a54704954 | 1,506 | ex | Elixir | lib/sprint_poker/web/web.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 199 | 2015-10-22T16:20:09.000Z | 2021-11-08T11:20:45.000Z | lib/sprint_poker/web/web.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 4 | 2015-10-24T20:43:29.000Z | 2016-03-03T21:09:06.000Z | lib/sprint_poker/web/web.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 34 | 2015-10-23T06:38:43.000Z | 2019-08-13T23:49:24.000Z | defmodule SprintPoker.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use SprintPoker.Web, :controller
use SprintPoker.Web, :view
The definitions below will be executed for every view,
controller, etc, so k... | 23.169231 | 63 | 0.683931 |
91dde22c4aeed3dce1dd63032703f1825c0ae650 | 697 | exs | Elixir | exercises/flatten-array/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/flatten-array/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/flatten-array/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule FlattenArray do
@doc """
Accept a list and return the list flattened without nil values.
## Examples
iex> FlattenArray.flatten([1, [2], 3, nil])
[1,2,3]
iex> FlattenArray.flatten([nil, nil])
[]
"""
@spec flatten(list) :: list
def flatten(list) do
do_flatten(lis... | 19.361111 | 67 | 0.639885 |
91ddecd827dbbbaa8d0ac1877153d9257a47941e | 121 | exs | Elixir | test/blog_web/views/page_view_test.exs | marlon-Symczecym/blog-elixir | 530be8568b2af17b846da438833921023942d844 | [
"MIT"
] | null | null | null | test/blog_web/views/page_view_test.exs | marlon-Symczecym/blog-elixir | 530be8568b2af17b846da438833921023942d844 | [
"MIT"
] | 10 | 2021-01-17T14:33:11.000Z | 2021-01-28T00:40:25.000Z | test/blog_web/views/page_view_test.exs | marlon-Symczecym/blog-elixir | 530be8568b2af17b846da438833921023942d844 | [
"MIT"
] | null | null | null | defmodule BlogWeb.PageViewTest do
@moduledoc """
Page View Test module
"""
use BlogWeb.ConnCase, async: true
end
| 17.285714 | 35 | 0.719008 |
91ddf60850b83343759c81b5e25bf4a1d79966be | 2,742 | ex | Elixir | lib/mix/lib/mix/tasks/loadconfig.ex | tverlaan/elixir | d25b61db13d94ee83374748581c7bcb8e2dfc0e6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/loadconfig.ex | tverlaan/elixir | d25b61db13d94ee83374748581c7bcb8e2dfc0e6 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/mix/lib/mix/tasks/loadconfig.ex | tverlaan/elixir | d25b61db13d94ee83374748581c7bcb8e2dfc0e6 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Loadconfig do
use Mix.Task
@shortdoc "Loads and persists the given configuration"
@moduledoc """
Loads and persists the given configuration.
mix loadconfig path/to/config.exs
Any configuration file loaded with `loadconfig` is treated
as a compile-time configuration.
Note tha... | 26.882353 | 96 | 0.668125 |
91de2b2e5912da4739093a80c93216aa25aeaad0 | 1,060 | exs | Elixir | clients/drive/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/drive/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/drive/test/test_helper.exs | 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... | 29.444444 | 83 | 0.737736 |
91de62460beb8b4b42456f7698811b69fbdb9352 | 1,778 | ex | Elixir | api/test/support/model_case.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | api/test/support/model_case.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | api/test/support/model_case.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | defmodule Loose.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 cannot be async. For th... | 26.939394 | 84 | 0.68279 |
91de765e521998bd4125b0a9052dd7b32f3b1ef4 | 3,579 | exs | Elixir | test/lib/bamboo/email_test.exs | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | test/lib/bamboo/email_test.exs | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | test/lib/bamboo/email_test.exs | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | 1 | 2018-08-02T12:36:21.000Z | 2018-08-02T12:36:21.000Z | defmodule Bamboo.EmailTest do
use ExUnit.Case
import Bamboo.Email
test "new_email/1 returns an Email struct" do
assert new_email() == %Bamboo.Email{
from: nil,
to: nil,
cc: nil,
bcc: nil,
subject: nil,
html_body: nil,
text_body: nil,
headers: %{}
}
end
... | 31.394737 | 157 | 0.643476 |
91dea56b09234c225387849079aab32944ed2cc3 | 1,900 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_suggestions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_suggestions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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_v2beta1_intent_message_suggestions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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... | 32.758621 | 182 | 0.753684 |
91dec82b8f5a1ea0937b239b5c8ebe598da663c6 | 20,382 | exs | Elixir | test/ex_doc/formatter/html_test.exs | kianmeng/ex_doc | 3c33f4c330bc3f002e0f2c9eca023b11c9837a3c | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html_test.exs | kianmeng/ex_doc | 3c33f4c330bc3f002e0f2c9eca023b11c9837a3c | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html_test.exs | kianmeng/ex_doc | 3c33f4c330bc3f002e0f2c9eca023b11c9837a3c | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTMLTest do
use ExUnit.Case
import ExUnit.CaptureIO
alias ExDoc.Formatter.HTML
setup do
File.rm_rf(output_dir())
File.mkdir_p!(output_dir())
end
defp output_dir do
Path.expand("../../tmp/html", __DIR__)
end
defp beam_dir do
Path.expand("../../tmp/beam", __DI... | 39.120921 | 235 | 0.631734 |
91dee156819f1a7f8ccd1463716595e85082c37f | 526 | exs | Elixir | config/.credo.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 1 | 2020-07-02T19:17:09.000Z | 2020-07-02T19:17:09.000Z | config/.credo.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 19 | 2020-03-03T18:36:30.000Z | 2022-02-20T21:57:34.000Z | config/.credo.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 2 | 2020-05-14T16:34:14.000Z | 2020-12-16T09:13:42.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/**", "test/**"],
excluded: []... | 25.047619 | 66 | 0.596958 |
91deeb50d8dbc8e38de05c995dfdbf54ad0690c7 | 251 | exs | Elixir | config/mailer.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | config/mailer.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | config/mailer.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | use Mix.Config
config :squadster, Squadster.Mailer,
mailgun_domain: EnvHelper.safe_env("MAILGUN_DOMAIN"),
mailgun_key: EnvHelper.safe_env("MAILGUN_API_KEY"),
default_from_email: EnvHelper.safe_env("DEFAULT_FROM_EMAIL", "noreply@squadster.com")
| 35.857143 | 87 | 0.804781 |
91defc0f76a8d5824ef38c9a4a3efe67b53c7c94 | 2,170 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/speech_recognition_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/speech_recognition_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/speech/lib/google_api/speech/v1/model/speech_recognition_result.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.4 | 355 | 0.752535 |
91df1ff289f83a0407315885a7202f07d8bf12bd | 2,033 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__entity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__entity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__entity.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... | 35.051724 | 189 | 0.726513 |
91df3564fb4346261811c194d149049079ec0d3e | 1,574 | ex | Elixir | test/support/data_case.ex | rafaelcorazzi/nostalgic_games | 34734aa3a89194730d0cc5e137f3db5f597979d4 | [
"MIT"
] | null | null | null | test/support/data_case.ex | rafaelcorazzi/nostalgic_games | 34734aa3a89194730d0cc5e137f3db5f597979d4 | [
"MIT"
] | null | null | null | test/support/data_case.ex | rafaelcorazzi/nostalgic_games | 34734aa3a89194730d0cc5e137f3db5f597979d4 | [
"MIT"
] | null | null | null | defmodule NostalgicGames.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes do... | 28.107143 | 77 | 0.69695 |
91df7dae662c67d783ad6af0823b57944c217822 | 1,437 | ex | Elixir | elixir/elixir/lib/homework_web/schemas/users_schema.ex | connernance1/web-homework | 0ec80f58f366359bf09e88afb18ccc3d69974457 | [
"MIT"
] | null | null | null | elixir/elixir/lib/homework_web/schemas/users_schema.ex | connernance1/web-homework | 0ec80f58f366359bf09e88afb18ccc3d69974457 | [
"MIT"
] | null | null | null | elixir/elixir/lib/homework_web/schemas/users_schema.ex | connernance1/web-homework | 0ec80f58f366359bf09e88afb18ccc3d69974457 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schemas.UsersSchema do
@moduledoc """
Defines the graphql schema for user.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.UsersResolver
object :user do
field(:id, non_null(:id))
field(:dob, :string)
field(:first_name, :string)
field(:last_name, :string)
... | 25.210526 | 65 | 0.65762 |
91df7e21e06911b1cc4ec8624f541e7c3235526b | 29,574 | ex | Elixir | lib/aws/generated/backup.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/backup.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/backup.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Backup do
@moduledoc """
AWS Backup
AWS Backup is a unified backup service designed to protect AWS services and
their associated data. AWS Backup simplifies the creation, migration,
res... | 32.78714 | 257 | 0.667343 |
91dfb4675e4ae5852f6adc87a9c011a422fcbd5c | 193 | ex | Elixir | lib/craisin/list.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/craisin/list.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | lib/craisin/list.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Craisin.List do
import Craisin
def details(list_id) do
get("lists/#{list_id}") |> handle
end
def stats(list_id) do
get("lists/#{list_id}/stats") |> handle
end
end
| 16.083333 | 43 | 0.658031 |
91dfbf111f959aa9282eccd0c8a7d1b60a6bc9ff | 961 | ex | Elixir | sdr-web/lib/sdr_web.ex | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | 1 | 2022-02-15T23:17:51.000Z | 2022-02-15T23:17:51.000Z | sdr-web/lib/sdr_web.ex | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | null | null | null | sdr-web/lib/sdr_web.ex | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | 3 | 2020-05-09T10:08:07.000Z | 2021-02-22T11:42:00.000Z | defmodule SdrWeb do
use Application
# See http://elixir-lang.org/docs/stable/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.033333 | 84 | 0.718002 |
91dfc4684a6372649cceb69eb7fc2498444f0402 | 119,712 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/billing_accounts.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/logging/lib/google_api/logging/v2/api/billing_accounts.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/logging/lib/google_api/logging/v2/api/billing_accounts.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... | 50.725424 | 722 | 0.631925 |
91dfca3f6fc613e8c7f938bbb4b4083086e13547 | 4,311 | ex | Elixir | lib/automata/core/composites/selector.ex | pcmarks/automata | 2872c4ded9200e7cbf78a360517511be1375fb0b | [
"Apache-2.0"
] | null | null | null | lib/automata/core/composites/selector.ex | pcmarks/automata | 2872c4ded9200e7cbf78a360517511be1375fb0b | [
"Apache-2.0"
] | null | null | null | lib/automata/core/composites/selector.ex | pcmarks/automata | 2872c4ded9200e7cbf78a360517511be1375fb0b | [
"Apache-2.0"
] | null | null | null | defmodule Automaton.Composite.Selector do
@moduledoc """
Selector Node (also known as Fallback)
When the execution of a selector node starts, the node’s children are
executed in succession from left to right, until a child returning success
or running is found. Then this message is returned to the pa... | 30.359155 | 80 | 0.527256 |
91dfd0fb5a454e6ef5c67c02e7b0b46b29ef2d59 | 2,308 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/lib/google_api/redis/v1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/lib/google_api/redis/v1/model/status.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.54717 | 427 | 0.717071 |
91dfd40879efa877c0a98d19ed90d7d06cebe171 | 628 | exs | Elixir | test/views/error_view_test.exs | rockerBOO/elirc_twitch_oauth_web | 1e4e62ceb57aac7efa68a09d3c9e87fa0f776203 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | rockerBOO/elirc_twitch_oauth_web | 1e4e62ceb57aac7efa68a09d3c9e87fa0f776203 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | rockerBOO/elirc_twitch_oauth_web | 1e4e62ceb57aac7efa68a09d3c9e87fa0f776203 | [
"MIT"
] | null | null | null | defmodule ElircTwitchOauthWeb.ErrorViewTest do
use ElircTwitchOauthWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(ElircTwitchOauthWeb.ErrorView, "404.html", []) ==
"Page not found"... | 28.545455 | 77 | 0.707006 |
91dfe5e39ea1a71dd3892d19bc61d26bc7e565f2 | 977 | exs | Elixir | priv/repo/migrations/20210607020645_create_blogs.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210607020645_create_blogs.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210607020645_create_blogs.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.CreateBlogs do
use Ecto.Migration
def change do
create table(:cms_blogs) do
add(:title, :string)
add(:views, :integer, default: 0)
add(:mark_delete, :boolean, default: false)
add(:meta, :map)
add(:emotions, :map)
add(:original_communi... | 28.735294 | 84 | 0.659161 |
91e00809717dd29618a6703b3d332300df4eaf23 | 217 | ex | Elixir | lib/pedro/dispatcher.ex | rubencaro/pedro | b550b3af700962283fa9e3985e1dcc2da2e14d0d | [
"MIT"
] | null | null | null | lib/pedro/dispatcher.ex | rubencaro/pedro | b550b3af700962283fa9e3985e1dcc2da2e14d0d | [
"MIT"
] | null | null | null | lib/pedro/dispatcher.ex | rubencaro/pedro | b550b3af700962283fa9e3985e1dcc2da2e14d0d | [
"MIT"
] | null | null | null | defmodule Pedro.Dispatcher do
@moduledoc """
A bogus dispatcher module, by now...
"""
use GenServer
def start_link(opts), do: GenServer.start_link(__MODULE__, opts)
def init(opts), do: {:ok, opts}
end
| 19.727273 | 66 | 0.682028 |
91e01b520f0671afafd4ce718c5c0712a2a46d04 | 4,756 | exs | Elixir | apps/forklift/test/unit/integration/message_handling_test.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/forklift/test/unit/integration/message_handling_test.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/forklift/test/unit/integration/message_handling_test.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule Forklift.Integration.MessageHandlingTest do
use ExUnit.Case
use Placebo
import Mox
import Forklift
import SmartCity.Event, only: [data_ingest_end: 0, data_write_complete: 0]
import SmartCity.Data, only: [end_of_data: 0]
alias SmartCity.TestDataGenerator, as: TDG
setup :set_mox_global
setup... | 37.15625 | 115 | 0.649075 |
91e059ef36cc0a27548980e006afa2accfbcdfb1 | 159 | ex | Elixir | lib/chat/schema.ex | J3RN/chat | 0b94d83ca429e71ddb1d48c8052c72025b15aafd | [
"MIT"
] | null | null | null | lib/chat/schema.ex | J3RN/chat | 0b94d83ca429e71ddb1d48c8052c72025b15aafd | [
"MIT"
] | null | null | null | lib/chat/schema.ex | J3RN/chat | 0b94d83ca429e71ddb1d48c8052c72025b15aafd | [
"MIT"
] | null | null | null | defmodule Chat.Schema do
defmacro __using__(_opts) do
quote do
use Ecto.Schema
@timestamp_opts [type: :utc_datetime_usec]
end
end
end
| 15.9 | 48 | 0.685535 |
91e05a1025d2759d21e5a84460d63094bf2e6d13 | 1,018 | ex | Elixir | web/router.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | null | null | null | web/router.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 3 | 2018-10-03T16:59:21.000Z | 2018-10-06T09:53:51.000Z | web/router.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 1 | 2018-10-03T17:06:47.000Z | 2018-10-03T17:06:47.000Z | defmodule Trello.Router do
use Trello.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Trello do
pipe_through ... | 23.674419 | 75 | 0.666012 |
91e088da9561ed7d93b1b31700048edfb41ea1cb | 1,353 | ex | Elixir | config/authorization/config.ex | redpencilio/app-mu-push-poc | 77312aa1d8858dd50d43d6b3b0defdbeeceaf6e8 | [
"MIT"
] | null | null | null | config/authorization/config.ex | redpencilio/app-mu-push-poc | 77312aa1d8858dd50d43d6b3b0defdbeeceaf6e8 | [
"MIT"
] | null | null | null | config/authorization/config.ex | redpencilio/app-mu-push-poc | 77312aa1d8858dd50d43d6b3b0defdbeeceaf6e8 | [
"MIT"
] | 1 | 2021-07-22T14:49:25.000Z | 2021-07-22T14:49:25.000Z | alias Acl.Accessibility.Always, as: AlwaysAccessible
alias Acl.Accessibility.ByQuery, as: AccessByQuery
alias Acl.GraphSpec.Constraint.Resource.AllPredicates, as: AllPredicates
alias Acl.GraphSpec.Constraint.Resource.NoPredicates, as: NoPredicates
alias Acl.GraphSpec.Constraint.ResourceFormat, as: ResourceFormatConstra... | 35.605263 | 77 | 0.603104 |
91e092ea798f4794587dccafe6f1d7b5c80aca69 | 1,955 | exs | Elixir | test/blog_api/posts_test.exs | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | test/blog_api/posts_test.exs | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | 5 | 2021-01-13T04:16:16.000Z | 2021-01-13T21:43:00.000Z | test/blog_api/posts_test.exs | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | defmodule BlogApi.PostsTest do
use BlogApi.DataCase
import BlogApi.PostFixture
alias BlogApi.Posts
describe "posts" do
alias BlogApi.Posts.Post
@valid_attrs %{content: "some content", title: "some title"}
@update_attrs %{content: "some updated content", title: "some updated title"}
@invalid_... | 32.04918 | 92 | 0.661893 |
91e0a1eb906f626b79a5d3c58cdf11dca8491a85 | 2,752 | ex | Elixir | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/slsa_provenance.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/slsa_provenance.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/slsa_provenance.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... | 49.142857 | 348 | 0.74782 |
91e0d63f04fdd27042259a5df1ad3118434ff746 | 1,535 | exs | Elixir | exercises/raindrops/raindrops_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/raindrops/raindrops_test.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/raindrops/raindrops_test.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("raindrops.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule RaindropsTest do
use ExUnit.Case
# @tag :pending
test "1" do
assert Raindrops.convert(1) == "1"
end
@tag :pending
test "3" do
asse... | 16.868132 | 54 | 0.636482 |
91e112701087d7554b874d05543a194ba2e5b994 | 4,446 | ex | Elixir | lib/glimesh/graphql/schema/chat_types.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/chat_types.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/chat_types.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | defmodule Glimesh.Schema.ChatTypes do
@moduledoc false
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers
alias Glimesh.Repo
alias Glimesh.Resolvers.ChatResolver
alias Glimesh.Streams
input_object :chat_message_input do
field :message, :string
end
object :chat_mutations do
@de... | 26.783133 | 86 | 0.679712 |
91e11bb6898a9ccbdc3160848bc3a7ed9bd921c0 | 1,545 | exs | Elixir | test/blaine/persistance/repository/dets_test.exs | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | test/blaine/persistance/repository/dets_test.exs | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | test/blaine/persistance/repository/dets_test.exs | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | defmodule Persistence.Repository.DetsTest do
use ExUnit.Case, async: true
import Blaine.Factory
alias Blaine.Persistence.Repository.Dets, as: DetsRepository
setup context do
table = context.test
start_supervised!({DetsRepository, table: table})
on_exit(fn -> File.rm("priv/#{table}.db") end)
:... | 30.9 | 88 | 0.653074 |
91e1576ff24260ee43a2532e70455e90ab924a2a | 1,337 | ex | Elixir | lib/phoenix/live_dashboard/components/card_component.ex | feng19/phoenix_live_dashboard | a415422e2ef11527c983a29fb9f3c9e03808439c | [
"MIT"
] | 1,733 | 2020-03-03T14:39:31.000Z | 2022-03-29T14:11:23.000Z | lib/phoenix/live_dashboard/components/card_component.ex | feng19/phoenix_live_dashboard | a415422e2ef11527c983a29fb9f3c9e03808439c | [
"MIT"
] | 306 | 2020-03-06T08:28:01.000Z | 2022-03-23T06:38:29.000Z | deps/phoenix_live_dashboard/lib/phoenix/live_dashboard/components/card_component.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 169 | 2020-03-05T05:04:10.000Z | 2022-03-28T18:36:27.000Z | defmodule Phoenix.LiveDashboard.CardComponent do
use Phoenix.LiveDashboard.Web, :live_component
@impl true
def mount(socket) do
{:ok, socket}
end
def normalize_params(params) do
params
|> validate_required([:value])
|> put_defaults()
end
defp validate_required(params, list) do
case ... | 23.051724 | 95 | 0.539267 |
91e1a722b24d5f9424cf8d8dfda80ed4f1a2033b | 955 | ex | Elixir | lib/brando/plugs/ssg.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/plugs/ssg.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/plugs/ssg.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Plug.SSG do
def init(_) do
if Application.get_env(:brando, :ssg_run, false) do
:ssg_run
end
end
def call(conn, :ssg_run) do
{:ok, ssg_urls} = Brando.SSG.get_urls()
Plug.Conn.register_before_send(conn, fn conn ->
cond do
conn.request_path in ssg_urls and conn.s... | 28.939394 | 98 | 0.586387 |
91e1c0bfd7c01f912feec623f7b9f985c3c3ec15 | 2,853 | exs | Elixir | monitoring_hub/apps/monitoring_hub_utils/test/monitoring_hub_utils/serializers/hub_protocol_test.exs | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | 1,459 | 2017-09-16T13:13:15.000Z | 2020-10-05T06:19:50.000Z | monitoring_hub/apps/monitoring_hub_utils/test/monitoring_hub_utils/serializers/hub_protocol_test.exs | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | 1,413 | 2017-09-14T18:18:14.000Z | 2020-09-28T08:10:30.000Z | monitoring_hub/apps/monitoring_hub_utils/test/monitoring_hub_utils/serializers/hub_protocol_test.exs | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | 80 | 2017-09-27T23:16:23.000Z | 2020-06-02T09:18:53.000Z | defmodule MonitoringHubUtils.SerializationTest do
use ExUnit.Case
alias MonitoringHubUtils.Serializers.HubProtocol
test "computation statistics can be decoded" do
# This is an actual metrics packet
packet = <<3,0,0,0,7,109,101,116,114,105,99,115,
0,0,0,23,109,101,116,114,105,99,115,58,65,108,101,1... | 47.55 | 76 | 0.487557 |
91e1e79d5bcd70515b1040739abeecb47c337be4 | 15,863 | ex | Elixir | lib/fun_with_flags.ex | kieraneglin/fun_with_flags | 10ef8e9cde5cc6518e981d2f5deff380141a99be | [
"MIT"
] | null | null | null | lib/fun_with_flags.ex | kieraneglin/fun_with_flags | 10ef8e9cde5cc6518e981d2f5deff380141a99be | [
"MIT"
] | null | null | null | lib/fun_with_flags.ex | kieraneglin/fun_with_flags | 10ef8e9cde5cc6518e981d2f5deff380141a99be | [
"MIT"
] | null | null | null | defmodule FunWithFlags do
@moduledoc """
FunWithFlags, the Elixir feature flag library.
This module provides the public interface to the library and its API is
made of three simple methods to enable, disable and query feature flags.
In their simplest form, flags can be toggled on and off globally.
More a... | 32.307536 | 136 | 0.670995 |
91e1fa96dbd437ebcf329d55a19f2a3c9c35f5c7 | 1,690 | exs | Elixir | apps/artemis/test/artemis/contexts/reaction/create_reaction_test.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/test/artemis/contexts/reaction/create_reaction_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/test/artemis/contexts/reaction/create_reaction_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.CreateReactionTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.CreateReaction
describe "call!" do
test "returns error when params are empty" do
assert_raise Artemis.Context.Error, fn ->
CreateReaction.call!(%{}, Mock.system_user())
end
end
... | 26 | 72 | 0.66568 |
91e20fc208cfa3c235555b582fa64e89a2c10c63 | 819 | exs | Elixir | test/mailchimp/campaign/content_test.exs | maximemenager/mailchimp | 2dc382e9d404a0a99c2b8f21f788153e53ea620b | [
"MIT"
] | null | null | null | test/mailchimp/campaign/content_test.exs | maximemenager/mailchimp | 2dc382e9d404a0a99c2b8f21f788153e53ea620b | [
"MIT"
] | null | null | null | test/mailchimp/campaign/content_test.exs | maximemenager/mailchimp | 2dc382e9d404a0a99c2b8f21f788153e53ea620b | [
"MIT"
] | null | null | null | defmodule Mailchimp.Campaign.ContentTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Mailchimp.Campaign
alias Mailchimp.Campaign.Content
doctest Campaign
setup_all do
HTTPoison.start()
end
describe "update/2" do
test "updates content" do
use_cassette "conten... | 24.818182 | 80 | 0.582418 |
91e2131655ee2e5db7d06fffef1e57330e20425e | 75 | ex | Elixir | peep_blog_api/lib/peep_blog_api/repo.ex | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/lib/peep_blog_api/repo.ex | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/lib/peep_blog_api/repo.ex | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | defmodule PeepBlogApi.Repo do
use Ecto.Repo, otp_app: :peep_blog_api
end
| 18.75 | 40 | 0.8 |
91e21dbedd25ee13711976aa80a4a6808d7dbc25 | 736 | ex | Elixir | lib/mixpanel_writer.ex | alienware/mixpanel-writer | e7f09dc0eb733c1d8967a447f79d7ac8cd82e8b5 | [
"MIT"
] | null | null | null | lib/mixpanel_writer.ex | alienware/mixpanel-writer | e7f09dc0eb733c1d8967a447f79d7ac8cd82e8b5 | [
"MIT"
] | null | null | null | lib/mixpanel_writer.ex | alienware/mixpanel-writer | e7f09dc0eb733c1d8967a447f79d7ac8cd82e8b5 | [
"MIT"
] | null | null | null | defmodule MixpanelWriter do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
children = [
# Starts... | 33.454545 | 86 | 0.720109 |
91e25d0c4cb680a7bed2655df4c05db6656a93e0 | 3,732 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 59.238095 | 559 | 0.73955 |
91e26b6edca3a64700c5ac1765076ee20c4a2d25 | 3,393 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/plan_node.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/plan_node.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/plan_node.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 50.641791 | 377 | 0.722075 |
91e26c722ee633c73cf87d0890fabf34e75e8275 | 1,343 | exs | Elixir | test_elixir_script/integration_test.exs | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | 1 | 2021-09-14T14:28:39.000Z | 2021-09-14T14:28:39.000Z | test_elixir_script/integration_test.exs | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | null | null | null | test_elixir_script/integration_test.exs | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | null | null | null | defmodule ElixirScript.Integration.Test do
use ElixirScript.Test
test "Something" do
assert {:ok, _} = {:ok, 1}
end
test "Atom.to_string" do
val = Atom.to_string(:atom)
assert val == "atom"
end
test "String interpolation with number" do
val = "#{5}"
assert val == "5"
end
test "sh... | 19.75 | 74 | 0.554728 |
91e2a2247dea91f365cef23be096ed34484954cb | 415 | exs | Elixir | priv/repo/migrations/20211214213725_create_page_versions.exs | treble37/beacon | 12cab02ec8bb072582ffaab60d9f21a65588e392 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211214213725_create_page_versions.exs | treble37/beacon | 12cab02ec8bb072582ffaab60d9f21a65588e392 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211214213725_create_page_versions.exs | treble37/beacon | 12cab02ec8bb072582ffaab60d9f21a65588e392 | [
"MIT"
] | null | null | null | defmodule Beacon.Repo.Migrations.CreatePageVersions do
use Ecto.Migration
def change do
create table(:page_versions, primary_key: false) do
add :id, :binary_id, primary_key: true
add :version, :integer
add :template, :text
add :page_id, references(:pages, on_delete: :delete_all, type: :... | 24.411765 | 80 | 0.689157 |
91e2a8cf6193d158aced7cea0b3543cac0435ef6 | 6,776 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account.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/model/account.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account.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.333333 | 189 | 0.617473 |
91e31518ecabf33a69ffac0b713f27e20c4abb54 | 2,576 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_details.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.661017 | 141 | 0.720109 |
91e318b6d8288cee10fdf4aa4b5f983c979dfbcc | 945 | exs | Elixir | config/config.exs | niku/p9i | c17b16e406374e098848c811ed84794f0c6be53a | [
"MIT"
] | null | null | null | config/config.exs | niku/p9i | c17b16e406374e098848c811ed84794f0c6be53a | [
"MIT"
] | null | null | null | config/config.exs | niku/p9i | c17b16e406374e098848c811ed84794f0c6be53a | [
"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.
use Mix.Config
# General application configuration
config :p9i,
ecto_repos: [P9i.Repo],
generato... | 32.586207 | 86 | 0.756614 |
91e353726c4765aae149096110b20fc2332dfa58 | 1,371 | ex | Elixir | legacy/ArtieMain/lib/pyctowrapper.ex | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | legacy/ArtieMain/lib/pyctowrapper.ex | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | legacy/ArtieMain/lib/pyctowrapper.ex | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | defmodule PyctoWrapper do
@moduledoc """
This module serves as a wrapper for the Pyctopod module
and allows us to start new Python processes on different
nodes in the cluster, rather than locally.
"""
use GenServer
@doc """
Starts up the Python process in 'mod' on the node given
by 'name'. The node m... | 31.883721 | 77 | 0.601751 |
91e3547d5dafd16ef92c0279fdd59bc2903ec2ab | 1,117 | ex | Elixir | 04-chapter/15_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 04-chapter/15_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 04-chapter/15_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | # the with expression
IO.puts("WITH")
IO.puts("")
content = "Now is the time"
lp =
with {:ok, file} = File.open("/etc/passwd"),
# note: same name as above
content = IO.read(file, :all),
:ok = File.close(file),
[_, uid, gid] = Regex.run(~r/^lp:.*?:(\d+):(\d+)/m, content) do
"Group: #{... | 22.795918 | 72 | 0.514772 |
91e36eb914f912ed068fdd137020a1d6319de839 | 598 | ex | Elixir | priv/templates/model/model.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | priv/templates/model/model.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | priv/templates/model/model.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | defmodule <%= module %> do
use <%= base %>.Web, :model
schema <%= inspect plural %> do
<%= for {k, _} <- attrs do %> field <%= inspect k %>, <%= inspect types[k] %><%= defaults[k] %>
<% end %>
timestamps
end
@required_fields ~w(<%= Enum.map_join(attrs, " ", &elem(&1, 0)) %>)
@optional_fields ~w()
... | 24.916667 | 98 | 0.603679 |
91e37e3fce7f0503d496e27b047c0122c529d7de | 108 | exs | Elixir | test/scopes/revision_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | test/scopes/revision_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | test/scopes/revision_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule AccentTest.Scopes.Revision do
use ExUnit.Case, async: true
doctest Accent.Scopes.Revision
end
| 21.6 | 39 | 0.805556 |
91e3909b6753be8f9bec08ce65648b26ca7d98f4 | 5,241 | exs | Elixir | test/joken_config_test.exs | maartenvanvliet/joken | e9aaf537274d99f16dd56a263037b3e0976ce95d | [
"Apache-2.0"
] | null | null | null | test/joken_config_test.exs | maartenvanvliet/joken | e9aaf537274d99f16dd56a263037b3e0976ce95d | [
"Apache-2.0"
] | null | null | null | test/joken_config_test.exs | maartenvanvliet/joken | e9aaf537274d99f16dd56a263037b3e0976ce95d | [
"Apache-2.0"
] | null | null | null | defmodule Joken.Config.Test do
use ExUnit.Case, async: true
use ExUnitProperties
alias Joken.{Config, CurrentTime.Mock, Error}
setup do
{:ok, _pid} = start_supervised(Mock)
:ok
end
describe "Joken.Config.default_claims/1" do
property "any given issuer will be validated" do
check all issu... | 29.116667 | 96 | 0.588819 |
91e39675e7f814d0289e862c61c698ef07fb8711 | 5,068 | ex | Elixir | lib/headway/headway_display.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | lib/headway/headway_display.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | lib/headway/headway_display.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | defmodule Headway.HeadwayDisplay do
require Logger
@type headway_range :: {non_neg_integer, non_neg_integer} | {:up_to, non_neg_integer} | :none
@type t :: headway_range | {:first_departure, headway_range, DateTime.t()}
@type schedule_map :: map
@min_headway 2
@headway_padding 2
@max_headway_range 9 - @... | 35.194444 | 100 | 0.703039 |
91e39a24e6ea407ce740ee388a98de95f1760d54 | 995 | ex | Elixir | lib/mix/tasks/phx.gen.secret.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | lib/mix/tasks/phx.gen.secret.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | lib/mix/tasks/phx.gen.secret.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule Mix.Tasks.Phx.Gen.Secret do
@shortdoc "Generates a secret"
@moduledoc """
Generates a secret and prints it to the terminal.
$ mix phx.gen.secret [length]
By default, mix phx.gen.secret generates a key 64 characters long.
The minimum value for `length` is 32.
"""
use Mix.Task
@doc fa... | 26.891892 | 96 | 0.657286 |
91e3b8fff7a3e96afeacb77d1dc7b4ed62a973e4 | 1,109 | exs | Elixir | test/stripe/customer_test.exs | movementventures/stripe-elixir | 535b9156c87818e809e1907095ca8473b6101f8a | [
"MIT"
] | 1 | 2018-12-25T11:49:09.000Z | 2018-12-25T11:49:09.000Z | test/stripe/customer_test.exs | qzzr/stripe-elixir | 535b9156c87818e809e1907095ca8473b6101f8a | [
"MIT"
] | null | null | null | test/stripe/customer_test.exs | qzzr/stripe-elixir | 535b9156c87818e809e1907095ca8473b6101f8a | [
"MIT"
] | null | null | null | defmodule Stripe.CustomerTest do
use ExUnit.Case
setup do
new_customer = [
email: "test@test.com",
description: "An Elixir Test Account",
card: [
number: "4111111111111111",
exp_month: 01,
exp_year: 2018,
cvc: 123,
name: "Joe Test User"
]
]
... | 22.632653 | 76 | 0.608656 |
91e3ccdcbfe7e8367cc971ffbcd49bfc14f3ffbc | 884 | ex | Elixir | lib/tasks/compile_unifex.ex | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 42 | 2018-09-11T02:27:00.000Z | 2022-03-23T18:30:56.000Z | lib/tasks/compile_unifex.ex | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 30 | 2018-10-18T10:56:22.000Z | 2022-03-09T13:04:51.000Z | lib/tasks/compile_unifex.ex | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 7 | 2018-10-24T09:21:40.000Z | 2022-03-29T12:39:08.000Z | defmodule Mix.Tasks.Compile.Unifex do
@moduledoc """
Generates native boilerplate code for all the `.spec.exs` files found in `c_src` dir
"""
use Mix.Task
alias Unifex.{Helper, InterfaceIO, Specs, CodeGenerator}
@impl Mix.Task
def run(_args) do
{:ok, _apps} = Application.ensure_all_started(:unifex)
... | 36.833333 | 88 | 0.697964 |
91e3d450885a94685d2de28b2a84d0774647b55b | 1,488 | exs | Elixir | test/akd/mix/gen/task_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | test/akd/mix/gen/task_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | test/akd/mix/gen/task_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | Code.require_file("test/mix_test_helper.exs")
defmodule Akd.Mix.Gen.TaskTest do
use ExUnit.Case
import MixTestHelper
@app_path Path.join([__DIR__, "..", "..", "..", "fixtures", "gentester"])
@test_task_path Path.join([@app_path, "lib", "mix", "tasks", "akd", "test_task.ex"])
setup do
old_dir = File.cw... | 28.075472 | 86 | 0.636425 |
91e3ee14afcfd4510a7111a598b15be7d39841cf | 1,838 | ex | Elixir | lib/integrate_web.ex | integratedb/core | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | 13 | 2021-01-28T14:45:43.000Z | 2021-11-04T21:54:19.000Z | lib/integrate_web.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | lib/integrate_web.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | defmodule IntegrateWeb 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 IntegrateWeb, :controller
use IntegrateWeb, :view
The definitions below will be executed for every view,
contro... | 23.265823 | 76 | 0.692057 |
91e414b1d64123710d0f520f4499995576d72970 | 429 | ex | Elixir | lib/secret_keeper/helper_module/uuid_helper.ex | cosmos-sajal/secret_keeper | b5ae5e01ed4cd30afb91ae02fedf2f1de9366bf0 | [
"MIT"
] | 2 | 2019-09-14T14:32:37.000Z | 2020-06-05T15:17:34.000Z | lib/secret_keeper/helper_module/uuid_helper.ex | cosmos-sajal/secret_keeper | b5ae5e01ed4cd30afb91ae02fedf2f1de9366bf0 | [
"MIT"
] | null | null | null | lib/secret_keeper/helper_module/uuid_helper.ex | cosmos-sajal/secret_keeper | b5ae5e01ed4cd30afb91ae02fedf2f1de9366bf0 | [
"MIT"
] | null | null | null | defmodule SecretKeeper.HelperModule.UUIDHelper do
@moduledoc """
Contains helper functions for uuid
"""
use SecretKeeperWeb, :params
@doc """
Validates the uuid
## Parameters
- changeset: struct
"""
def validate(changeset, value, key \\ :uuid) do
case Ecto.UUID.dump(value) do
:error ->... | 18.652174 | 49 | 0.617716 |
91e43704e56a8af3bfe481512b82e08a69322ffb | 2,040 | exs | Elixir | test/policr_mini/businesses/user_business_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | test/policr_mini/businesses/user_business_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | test/policr_mini/businesses/user_business_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMini.UserBusinessTest do
use PolicrMini.DataCase
alias PolicrMini.Factory
alias PolicrMini.UserBusiness
def build_params(attrs \\ []) do
user = Factory.build(:user)
user |> struct(attrs) |> Map.from_struct()
end
test "create/1" do
user_params = build_params()
{:ok, user} =... | 25.822785 | 89 | 0.688725 |
91e447e7f34ebcbdb8035b37939edf1cc485a814 | 3,013 | ex | Elixir | lib/brando_admin/live/config/scheduled_publishing_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando_admin/live/config/scheduled_publishing_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando_admin/live/config/scheduled_publishing_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule BrandoAdmin.Sites.ScheduledPublishingLive do
use BrandoAdmin, :live_view
use BrandoAdmin.Toast
import Brando.Gettext
import Brando.Utils.Datetime
import Phoenix.LiveView.Helpers
alias Brando.Publisher
alias BrandoAdmin.Components.Content
def mount(_, %{"user_token" => token}, socket) do
... | 25.974138 | 131 | 0.536011 |
91e448541090b9171a43f261ffb5c787f399439b | 1,125 | exs | Elixir | config/config.exs | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | config/config.exs | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | 5 | 2018-07-20T12:36:25.000Z | 2018-08-01T04:55:46.000Z | config/config.exs | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752 |
91e450c0e7411572f9383b58c6c1ffaa8eef60b3 | 1,516 | exs | Elixir | test/oauth2/strategy/password_test.exs | clemensm/oauth2 | 6d35d769f4cf38ae42182ead29c324d89f8cb905 | [
"MIT"
] | 689 | 2015-01-05T23:14:22.000Z | 2021-12-28T13:24:10.000Z | test/oauth2/strategy/password_test.exs | clemensm/oauth2 | 6d35d769f4cf38ae42182ead29c324d89f8cb905 | [
"MIT"
] | 141 | 2015-01-14T11:26:25.000Z | 2022-01-03T06:20:23.000Z | test/oauth2/strategy/password_test.exs | clemensm/oauth2 | 6d35d769f4cf38ae42182ead29c324d89f8cb905 | [
"MIT"
] | 164 | 2015-01-14T11:26:42.000Z | 2021-12-29T16:44:47.000Z | defmodule OAuth2.Strategy.PasswordTest do
use ExUnit.Case, async: true
alias OAuth2.Strategy.Password
import OAuth2.Client
import OAuth2.TestHelpers
setup do
client = build_client(strategy: Password, site: "http://example.com")
{:ok, client: client}
end
test "authorize_url", %{client: client} d... | 31.583333 | 89 | 0.672823 |
91e465f71153df2ae25b97b64493c7bb87988559 | 1,284 | ex | Elixir | elixir/lib/homework_web/schemas/users_schema.ex | joenarus/web-homework | 9f5e1436ecc731807f9d28e9ab0bb28a72770bf2 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | joenarus/web-homework | 9f5e1436ecc731807f9d28e9ab0bb28a72770bf2 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | joenarus/web-homework | 9f5e1436ecc731807f9d28e9ab0bb28a72770bf2 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schemas.UsersSchema do
@moduledoc """
Defines the graphql schema for user.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.UsersResolver
object :user do
field(:id, non_null(:id))
field(:dob, :string)
field(:first_name, :string)
field(:last_name, :string)
... | 24.226415 | 44 | 0.652648 |
91e4756ddf0b6c1dd664fbc4d0c97f3b9f738b81 | 573 | exs | Elixir | web/test/views/error_view_test.exs | jellybob/traverse | fc90d06246031defd6055a65c7fc657a8e249753 | [
"MIT"
] | null | null | null | web/test/views/error_view_test.exs | jellybob/traverse | fc90d06246031defd6055a65c7fc657a8e249753 | [
"MIT"
] | null | null | null | web/test/views/error_view_test.exs | jellybob/traverse | fc90d06246031defd6055a65c7fc657a8e249753 | [
"MIT"
] | null | null | null | defmodule Traverse.ErrorViewTest do
use Traverse.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Traverse.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" ... | 26.045455 | 66 | 0.678883 |
91e47e827b26e41e75b95cf830543afb6b864676 | 8,617 | ex | Elixir | lib/august_db/sstable/compaction.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | 5 | 2021-07-28T15:56:42.000Z | 2021-08-18T20:58:43.000Z | lib/august_db/sstable/compaction.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | 54 | 2021-07-28T14:51:49.000Z | 2021-08-11T21:56:10.000Z | lib/august_db/sstable/compaction.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | null | null | null | defmodule SSTable.Compaction do
import SSTable.Settings
@moduledoc """
SSTable Compaction
"""
@doc """
Run compaction on all SSTables, generating a _gzipped_ Sorted String Table file
(.sst) and an erlang binary representation of its index (key to byte
offset) as a `.idx` file. The index is sparse, ha... | 25.418879 | 94 | 0.597308 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.