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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acdcffca26bee98dee40be7e3a6d76bda802b53c | 1,919 | ex | Elixir | lib/cereal/builders/base.ex | APB9785/cereal_ex | 7405122553aacfc0a37b69bb4b14ae013be99f0c | [
"MIT"
] | null | null | null | lib/cereal/builders/base.ex | APB9785/cereal_ex | 7405122553aacfc0a37b69bb4b14ae013be99f0c | [
"MIT"
] | null | null | null | lib/cereal/builders/base.ex | APB9785/cereal_ex | 7405122553aacfc0a37b69bb4b14ae013be99f0c | [
"MIT"
] | null | null | null | defmodule Cereal.Builders.Base do
alias Cereal.Utils
alias Cereal.Builders.{Entity}
@type t :: %__MODULE__{}
defstruct [:data, :page, :metadata]
@doc """
Builds a Cereal Base struct that encapsulates the JSON that will be serialized.
Will correctly handle Scrievener pagination.
"""
@spec build(Cere... | 33.086207 | 83 | 0.668056 |
acdd0860b75fc3ae510810fd1b47e49055c93ba4 | 1,322 | ex | Elixir | lib/companies_web/viewing_stats.ex | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 333 | 2019-05-18T14:01:17.000Z | 2022-03-22T05:07:40.000Z | lib/companies_web/viewing_stats.ex | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 89 | 2019-05-18T10:01:54.000Z | 2021-05-12T15:19:26.000Z | lib/companies_web/viewing_stats.ex | envato/elixir-companies | 7488075d1a372c9ca8fa6603f93e384b73977526 | [
"MIT"
] | 33 | 2019-06-07T00:33:53.000Z | 2022-03-21T05:38:28.000Z | defmodule CompaniesWeb.ViewingStats do
@moduledoc """
GenServer to handle aggregating simple app stats and history for telemetry_poller
to pass on to LiveDashboard.
"""
use GenServer
@telemetry_event [:page_views, :count_events]
@aggregate_telemetry [:page_views, :companies_web]
def telemetry_event, ... | 23.607143 | 83 | 0.676248 |
acdd233fc98ac1214e0e0a85c677601a15180565 | 2,723 | exs | Elixir | test/controllers/todo_controller_test.exs | cncgl/phoenix-sample | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | 1 | 2016-01-01T12:55:25.000Z | 2016-01-01T12:55:25.000Z | test/controllers/todo_controller_test.exs | cncgl/phoenix-todo | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | 1 | 2015-09-10T13:41:51.000Z | 2015-09-10T13:41:51.000Z | test/controllers/todo_controller_test.exs | cncgl/phoenix-todo | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.TodoControllerTest do
use HelloPhoenix.ConnCase
alias HelloPhoenix.Todo
@valid_attrs %{status: true, title: "some content"}
@invalid_attrs %{}
setup do
conn = conn()
{:ok, conn: conn}
end
test "lists all entries on index", %{conn: conn} do
conn = get conn, todo_path(c... | 33.617284 | 98 | 0.65773 |
acdd24f793504e371b16efe6f46be9e463aca725 | 388 | exs | Elixir | priv/repo/migrations/20161204132643_create_user.exs | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | priv/repo/migrations/20161204132643_create_user.exs | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | priv/repo/migrations/20161204132643_create_user.exs | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | defmodule PhoenixAppTemplate.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
execute("CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;")
create table(:users) do
add :name, :string
add :email, :citext, null: false
add :crypted_password, :string
timestamps()
... | 21.555556 | 72 | 0.680412 |
acdd3c5658563db3f3a45a0c57a1df29225fd10f | 834 | ex | Elixir | lib/switch.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-04-24T03:04:23.000Z | 2019-04-24T03:04:23.000Z | lib/switch.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 3 | 2019-03-13T03:26:51.000Z | 2021-05-08T02:34:05.000Z | lib/switch.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-03-07T04:56:16.000Z | 2019-03-07T04:56:16.000Z | defmodule Bullish.Switch do
@moduledoc """
An example state machine
"""
use GenStateMachine
# Client
def start_link() do
GenStateMachine.start_link(__MODULE__, {:off, 0})
end
def flip(pid) do
GenStateMachine.cast(pid, :flip)
end
def get_count(pid) do
GenStateMachine.call(pid, :get_c... | 20.341463 | 61 | 0.673861 |
acdd3daf423c06e6893c0d20e0674ad33a113c87 | 28,472 | ex | Elixir | lib/elixir/lib/application.ex | CaldwellYSR/elixir | 9bc852b95c9e1d910e643604148bedc2aa6e03d4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/application.ex | CaldwellYSR/elixir | 9bc852b95c9e1d910e643604148bedc2aa6e03d4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/application.ex | CaldwellYSR/elixir | 9bc852b95c9e1d910e643604148bedc2aa6e03d4 | [
"Apache-2.0"
] | null | null | null | defmodule Application do
@moduledoc """
A module for working with applications and defining application callbacks.
Applications are the idiomatic way to package software in Erlang/OTP. To get
the idea, they are similar to the "library" concept common in other
programming languages, but with some additional c... | 36.223919 | 94 | 0.705254 |
acdd615f024a01bf2953a71bc04e492198fbb152 | 2,287 | ex | Elixir | lib/hal/document.ex | podlove/hal | c9966e0958dafe977c2e131f158ee31c4d7a092e | [
"MIT"
] | 3 | 2019-02-19T04:32:48.000Z | 2021-07-28T00:19:28.000Z | lib/hal/document.ex | podlove/hal | c9966e0958dafe977c2e131f158ee31c4d7a092e | [
"MIT"
] | null | null | null | lib/hal/document.ex | podlove/hal | c9966e0958dafe977c2e131f158ee31c4d7a092e | [
"MIT"
] | null | null | null | defmodule HAL.Document do
defimpl Jason.Encoder, for: HAL.Document do
def encode(value, opts) do
Jason.Encode.map(HAL.Document.to_map(value), opts)
end
end
defstruct embeds: [], links: [], properties: %{}
@type t :: %__MODULE__{
embeds: [HAL.Embed.t()] | nil,
links: [HAL.Link... | 27.890244 | 96 | 0.624399 |
acdd9d2f6653016660aa05da7d3d11e1be960fc9 | 392 | exs | Elixir | config/dev.exs | mijailr/CommentEX | 942749f3723c0fcca616b2e3459876b328a72411 | [
"MIT"
] | 1 | 2019-11-18T07:01:13.000Z | 2019-11-18T07:01:13.000Z | config/dev.exs | mijailr/CommentEX | 942749f3723c0fcca616b2e3459876b328a72411 | [
"MIT"
] | 4 | 2019-11-18T08:38:19.000Z | 2019-11-25T00:58:06.000Z | config/dev.exs | mijailr/CommentEX | 942749f3723c0fcca616b2e3459876b328a72411 | [
"MIT"
] | null | null | null | import Config
config :comment,
github_secret_key: System.get_env("GITHUB_SECRET_KEY", "dummysecretkey"),
github_app_id: System.get_env("GITHUB_APP_ID", "00000")
config :comment, Comment.Repo,
database: "comment_dev",
hostname: System.get_env("POSTGRES_HOST", "localhost"),
username: System.get_env("POSTGRES_... | 32.666667 | 75 | 0.755102 |
acddac7063470a92c9672a3ba76d4d29b36fc537 | 3,111 | exs | Elixir | test/slogger_test.exs | elbow-jason/slogger | 47e0924080dcf854293388cf039dd3973bd9e098 | [
"MIT"
] | 6 | 2017-01-08T02:07:42.000Z | 2020-01-13T21:26:05.000Z | test/slogger_test.exs | elbow-jason/slogger | 47e0924080dcf854293388cf039dd3973bd9e098 | [
"MIT"
] | 1 | 2018-08-19T12:26:29.000Z | 2018-08-19T12:26:29.000Z | test/slogger_test.exs | elbow-jason/slogger | 47e0924080dcf854293388cf039dd3973bd9e098 | [
"MIT"
] | null | null | null |
defmodule SloggerTest do
use ExUnit.Case
require Logger
alias Slogger.{
ConfigurableLogger,
DebugLogger,
InfoLogger,
WarnLogger,
ErrorLogger,
NoLevelLogger
}
import Slogger.CaptureLog
test "a module without a level defaults to default config" do
level = Application.get_env(:sl... | 29.074766 | 74 | 0.692382 |
acdddec42b4f3240f81b2f4cb4718f4d2705cb75 | 229,402 | ex | Elixir | clients/container/lib/google_api/container/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/api/projects.ex | 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... | 46.902883 | 549 | 0.614502 |
acde040a35232d1fe5ba2ce5cefc9daeefad57d8 | 763 | exs | Elixir | priv/repo/migrations/20190312142628_add_featured_items_table.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20190312142628_add_featured_items_table.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20190312142628_add_featured_items_table.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.AddFeaturedItemsTable do
use Ecto.Migration
def change do
create table(:featured_items) do
add(:post_id, references(:posts))
add(:user_list_id, references(:user_lists))
add(:user_trigger_id, references(:user_triggers))
timestamps()
end
fk_check... | 31.791667 | 70 | 0.70118 |
acde22f2063770c2864e449dda09a48d315978ac | 3,505 | exs | Elixir | test/ueberauth_token/with_cache/strategy_test.exs | QuiqUpLTD/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 2 | 2018-05-15T19:38:27.000Z | 2020-09-10T11:15:54.000Z | test/ueberauth_token/with_cache/strategy_test.exs | quiqupltd/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 13 | 2018-05-15T10:09:52.000Z | 2018-09-24T10:59:49.000Z | test/ueberauth_token/with_cache/strategy_test.exs | quiqupltd/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 1 | 2018-05-13T23:34:19.000Z | 2018-05-13T23:34:19.000Z | defmodule UeberauthToken.WithCache.StrategyTest do
use UeberauthToken.TestCase
alias Plug.Test
describe """
When the cache is activated and
when the token has been cached and
when a provider has not been set in %Conn{private: %{ueberauth_token: _}}
""" do
setup [
:setup_activated_cache,
:... | 26.755725 | 106 | 0.635663 |
acde444314e069d3449edc23e25f3dac24386168 | 22,174 | ex | Elixir | lib/commanded/commands/router.ex | uberbrodt/commanded | f8cc085e45ed3589459b518f01e863c56f6c9291 | [
"MIT"
] | 1 | 2020-02-19T01:07:32.000Z | 2020-02-19T01:07:32.000Z | lib/commanded/commands/router.ex | uberbrodt/commanded | f8cc085e45ed3589459b518f01e863c56f6c9291 | [
"MIT"
] | null | null | null | lib/commanded/commands/router.ex | uberbrodt/commanded | f8cc085e45ed3589459b518f01e863c56f6c9291 | [
"MIT"
] | 1 | 2020-02-18T20:53:39.000Z | 2020-02-18T20:53:39.000Z | defmodule Commanded.Commands.Router do
@moduledoc """
Command routing macro to allow configuration of each command to its command handler.
## Example
Define a router module which uses `Commanded.Commands.Router` and configures
available commands to dispatch:
defmodule BankRouter do
use Comman... | 33.194611 | 123 | 0.643682 |
acde6faf5444387d793938c91718afd9d67cd900 | 427 | exs | Elixir | test/frequency_map_text.exs | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | 5 | 2020-09-06T18:29:51.000Z | 2021-03-13T13:38:34.000Z | test/frequency_map_text.exs | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | null | null | null | test/frequency_map_text.exs | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | 1 | 2020-09-06T18:29:54.000Z | 2020-09-06T18:29:54.000Z | defmodule FrequencyMapTest do
use ExUnit.Case
alias Huffman.FrequencyMap
describe "create/1" do
test "returns map with frequencies" do
output = FrequencyMap.create("some text")
assert %{
"s" => 1,
"o" => 1,
"m" => 1,
"e" => 2,
... | 20.333333 | 47 | 0.416862 |
acde7d956db095836fac43da982d759fb3fda1d7 | 416 | ex | Elixir | lib/whistler_news_reader/guardian_serializer.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 8 | 2016-06-12T20:11:26.000Z | 2017-05-02T04:36:41.000Z | lib/whistler_news_reader/guardian_serializer.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 2 | 2016-06-12T15:49:06.000Z | 2016-06-12T20:00:02.000Z | lib/whistler_news_reader/guardian_serializer.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | null | null | null | defmodule WhistlerNewsReader.GuardianSerializer do
@behaviour Guardian.Serializer
alias WhistlerNewsReader.Repo
alias WhistlerNewsReader.User
def for_token(user = %User{}), do: {:ok, "User:#{user.id}"}
def for_token(_), do: {:error, "unknown resource type"}
def from_token("User:" <> id), do: {:ok, Repo.g... | 32 | 81 | 0.711538 |
acde7edcf2070b79258c140982880a3422997d86 | 1,270 | ex | Elixir | lib/brando/blueprint/migrations/operations/assets/remove.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/blueprint/migrations/operations/assets/remove.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/blueprint/migrations/operations/assets/remove.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Blueprint.Migrations.Operations.Asset.Remove do
defstruct asset: nil,
module: nil,
opts: nil
def down(%{
asset: %{type: :image, name: name}
}) do
"""
add #{inspect(name)}, :jsonb
"""
end
def down(%{
asset: %{type: :file, name: name}
... | 14.767442 | 64 | 0.454331 |
acde7f2a1abb9740f29e7a977c7a00ae404b247f | 1,844 | exs | Elixir | mix.exs | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | mix.exs | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | mix.exs | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | defmodule YahooWrapper.MixProject do
use Mix.Project
def project do
[
app: :yahoo_wrapper,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: ali... | 27.939394 | 84 | 0.583514 |
acde802a9460fe7ee46e03f8ed68ef13e3590317 | 1,407 | ex | Elixir | lib/new_relic/sampler/ets.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/sampler/ets.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/sampler/ets.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Sampler.Ets do
use GenServer
@kb 1024
@word_size :erlang.system_info(:wordsize)
# Takes samples of the state of ETS tables
@moduledoc false
def start_link(_) do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
NewRelic.sample_process()
if N... | 25.125 | 91 | 0.670931 |
acde84fb208bdd0533a59d8245a343a620f1dc46 | 181 | exs | Elixir | config/dev.exs | christophermlne/fuentes | 9445ccdfd1c2f3707a39cf9bf63b4627581bc048 | [
"Apache-2.0"
] | 30 | 2016-05-26T23:30:03.000Z | 2022-03-10T18:44:37.000Z | config/dev.exs | christophermlne/fuentes | 9445ccdfd1c2f3707a39cf9bf63b4627581bc048 | [
"Apache-2.0"
] | 3 | 2016-05-20T14:55:40.000Z | 2020-03-18T11:59:47.000Z | config/dev.exs | christophermlne/fuentes | 9445ccdfd1c2f3707a39cf9bf63b4627581bc048 | [
"Apache-2.0"
] | 6 | 2016-09-27T11:19:56.000Z | 2019-09-26T07:30:30.000Z | use Mix.Config
config :fuentes, Fuentes.Repo,
adapter: Ecto.Adapters.Postgres,
database: "fuentes_dev",
username: "postgres",
password: "postgres",
hostname: "localhost"
| 20.111111 | 34 | 0.723757 |
acdea690cbd4d08760b9126663b8f4df245cacf2 | 1,531 | ex | Elixir | lib/teslamate/log/drive.ex | abhinavWOT/teslamate | 8429c7520ae31bb2c440647ec028d2d296b7ce7d | [
"MIT"
] | null | null | null | lib/teslamate/log/drive.ex | abhinavWOT/teslamate | 8429c7520ae31bb2c440647ec028d2d296b7ce7d | [
"MIT"
] | null | null | null | lib/teslamate/log/drive.ex | abhinavWOT/teslamate | 8429c7520ae31bb2c440647ec028d2d296b7ce7d | [
"MIT"
] | null | null | null | defmodule TeslaMate.Log.Drive do
use Ecto.Schema
import Ecto.Changeset
alias TeslaMate.Log.{Position, Car}
alias TeslaMate.Locations.Address
schema "drives" do
field :start_date, :utc_datetime
field :end_date, :utc_datetime
field :outside_temp_avg, :float
field :inside_temp_avg, :float
f... | 24.693548 | 57 | 0.674069 |
acdeb1ca5da754db433d733d395dbe99c8828ea6 | 998 | ex | Elixir | test/support/channel_case.ex | bschmeck/ex_gnarl | 25d6961795f10a2d49efd1a29167a771ef9772f1 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | bschmeck/ex_gnarl | 25d6961795f10a2d49efd1a29167a771ef9772f1 | [
"MIT"
] | 1 | 2017-04-21T17:02:56.000Z | 2017-04-21T17:02:56.000Z | test/support/channel_case.ex | bschmeck/ex_gnarl | 25d6961795f10a2d49efd1a29167a771ef9772f1 | [
"MIT"
] | null | null | null | defmodule ExGnarl.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be a... | 22.681818 | 69 | 0.700401 |
acdedf0e572c13844fcd2540cd099505ec293d1a | 615 | ex | Elixir | lib/sentinel/serializers/guardian_serializer.ex | pauldub/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 125 | 2016-01-29T11:46:20.000Z | 2021-06-08T09:25:38.000Z | lib/sentinel/serializers/guardian_serializer.ex | pauldub/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 54 | 2016-02-18T01:11:58.000Z | 2017-10-19T11:25:26.000Z | lib/sentinel/serializers/guardian_serializer.ex | britton-jb/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 29 | 2016-02-20T12:59:16.000Z | 2018-04-11T14:29:41.000Z | defmodule Sentinel.GuardianSerializer do
@moduledoc """
Serializer for Guardian. More information available at https://github.com/ueberauth/guardian
"""
@behaviour Guardian.Serializer
alias Sentinel.Config
alias Sentinel.UserHelper
@doc """
Serializes user for a token
"""
def for_token(user) when... | 26.73913 | 94 | 0.689431 |
acdefd1b364c9643710504734df219ddcb4c44d1 | 364 | exs | Elixir | backend/test/caffe/accounts/use_cases/me_test.exs | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | 7 | 2020-03-27T08:26:52.000Z | 2021-08-29T09:50:31.000Z | backend/test/caffe/accounts/use_cases/me_test.exs | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | backend/test/caffe/accounts/use_cases/me_test.exs | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | defmodule Caffe.Accounts.UseCases.MeTest do
use Caffe.UseCaseCase, async: true
alias Caffe.Accounts.UseCases.Me
alias Caffe.Accounts.User
describe "authorize" do
test "logged in users can see their profiles" do
assert Authorizer.authorize?(%Me{user: %User{role: "customer"}})
refute Authorizer.a... | 28 | 70 | 0.722527 |
acdf13dc0fdce22d09a5de014f6e293ca7343b53 | 3,590 | ex | Elixir | lib/advent_of_code/day_04.ex | mugimaru73/adventofcode2018 | 24ff5b2b8327b17b3242d3167bf7cc691199da86 | [
"MIT"
] | 1 | 2018-12-03T11:24:19.000Z | 2018-12-03T11:24:19.000Z | lib/advent_of_code/day_04.ex | mugimaru73/adventofcode2018 | 24ff5b2b8327b17b3242d3167bf7cc691199da86 | [
"MIT"
] | null | null | null | lib/advent_of_code/day_04.ex | mugimaru73/adventofcode2018 | 24ff5b2b8327b17b3242d3167bf7cc691199da86 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day04 do
@moduledoc ~S"""
[Advent Of Code day 4](https://adventofcode.com/2018/day/4).
iex> inp = ["[1518-11-01 00:00] Guard #10 begins shift",
...> "[1518-11-01 00:05] falls asleep",
...> "[1518-11-01 00:25] wakes up",
...> "[1518-11-03 00:29]... | 37.789474 | 114 | 0.637326 |
acdf48704280de59178bb9e3521659c15790723c | 925 | ex | Elixir | lib/rankings_web/views/result_view.ex | spkane31/cc-rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 1 | 2020-06-28T19:31:07.000Z | 2020-06-28T19:31:07.000Z | lib/rankings_web/views/result_view.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 5 | 2019-07-25T17:00:39.000Z | 2019-07-25T17:12:07.000Z | lib/rankings_web/views/result_view.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | null | null | null | defmodule RankingsWeb.ResultView do
use RankingsWeb, :view
alias Rankings.Result
def get_distance(%Result{distance: distance}) do
distance
end
def get_time(%Result{time: time}) do
time
end
def get_rating(%Result{time_float: t, distance: d, race_instance: i}) do
correction_avg = 0
if i.... | 24.342105 | 74 | 0.578378 |
acdf4884b94291da66e59cca3f915e4b2567af65 | 30 | ex | Elixir | testData/org/elixir_lang/formatting/with_space_within_parentheses.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/formatting/with_space_within_parentheses.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/formatting/with_space_within_parentheses.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ( )
( one )
one( )
one( two )
| 6 | 10 | 0.4 |
acdf4a4f880d29db1cf4adc245d9a4ec1fbb8933 | 905 | ex | Elixir | lib/echsx/http/mock_http_client.ex | Sebi55/echsx | 666d4b67c1bf8dbff608878a49205782cefe2c31 | [
"MIT"
] | null | null | null | lib/echsx/http/mock_http_client.ex | Sebi55/echsx | 666d4b67c1bf8dbff608878a49205782cefe2c31 | [
"MIT"
] | null | null | null | lib/echsx/http/mock_http_client.ex | Sebi55/echsx | 666d4b67c1bf8dbff608878a49205782cefe2c31 | [
"MIT"
] | null | null | null | defmodule Echsx.Http.MockClient do
@moduledoc """
A mock HTTP client used for testing.
"""
alias Echsx.Http
# every other match is a pass through to the real client
def get_charge_point_list_request(options) do
send(self(), {:get_charge_point_list_request, options})
Http.get_charge_point_list_req... | 36.2 | 96 | 0.78011 |
acdf5a1c5a232051b8bc64d56be979712ba4f778 | 3,008 | ex | Elixir | clients/games/lib/google_api/games/v1/model/peer_channel_diagnostics.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/peer_channel_diagnostics.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/peer_channel_diagnostics.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 ... | 44.235294 | 188 | 0.714761 |
acdf752a99c22da38c0e221032e149ecd6b7e1ed | 645 | exs | Elixir | priv/repo/migrations/20200715022518_create_projects.exs | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200715022518_create_projects.exs | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200715022518_create_projects.exs | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | defmodule Mockin.Repo.Migrations.CreateProjects do
use Ecto.Migration
def change do
create table(:project) do
add :name, :string, null: false
add :description, :string, null: false
timestamps()
end
create table(:project_member) do
add(:project_id, references(:project))
a... | 22.241379 | 65 | 0.663566 |
acdfbf7963aa8a0de28f2efba60019e1c2892bed | 1,990 | ex | Elixir | lib/monocle/message.ex | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | 2 | 2018-02-11T01:18:24.000Z | 2020-01-12T17:19:22.000Z | lib/monocle/message.ex | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | lib/monocle/message.ex | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | defmodule Monocle.Message do
alias Monocle.Context
alias Monocle.Options
@type message_type :: :error | :warning
@type t :: {message_type, number, binary}
@type ts:: list(t)
@type container_type :: Options.t | Context.t
@spec add_messages(container_type, ts) :: container_type
def add_messages(contain... | 31.587302 | 90 | 0.689447 |
ace00f0c51572170ba7495328a2372b822293e17 | 3,016 | ex | Elixir | lib/matcha/error.ex | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | 6 | 2019-10-03T15:03:31.000Z | 2021-12-22T17:38:56.000Z | lib/matcha/error.ex | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | 11 | 2021-12-07T23:47:10.000Z | 2021-12-21T08:52:16.000Z | lib/matcha/error.ex | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | null | null | null | defmodule Matcha.Error do
@moduledoc """
Standard behaviour for `Matcha` errors.
"""
@type problems :: [problem]
@type problem :: {:error | :warning, String.t()}
@callback format_prelude(any) :: String.t()
@callback format_source(any) :: String.t()
defmacro __using__(source_type: source_type) do
... | 22.848485 | 75 | 0.649204 |
ace04026da784d57d64dc4bab1fb4ee5f86da4d3 | 27,432 | ex | Elixir | lib/calendar.ex | mururu/elixir-calendar | bcf51a4df6d2c81e2229aca4af436ec6b53140aa | [
"MIT"
] | null | null | null | lib/calendar.ex | mururu/elixir-calendar | bcf51a4df6d2c81e2229aca4af436ec6b53140aa | [
"MIT"
] | 1 | 2015-05-26T13:53:40.000Z | 2015-05-26T13:53:40.000Z | lib/calendar.ex | mururu/elixir-calendar | bcf51a4df6d2c81e2229aca4af436ec6b53140aa | [
"MIT"
] | null | null | null | defrecord DateTime, year: 2000, month: 1, day: 1,
hour: 0, minute: 0, second: 0,
nanosecond: 0, offset: { 0, 0 }
defmodule Calendar do
alias :calendar, as: C
@doc """
Universal Time
"""
def universal_time do
now = :os.timestamp
{{ year, month, day }, { hour, ... | 26.736842 | 145 | 0.609361 |
ace043757df266417852494605ade83b2c1aa1f6 | 3,228 | ex | Elixir | lib/logstash_json/event.ex | ne1ro/logstash-json | 32bab1bc37230310f24ec3067c34c16013903e57 | [
"MIT"
] | null | null | null | lib/logstash_json/event.ex | ne1ro/logstash-json | 32bab1bc37230310f24ec3067c34c16013903e57 | [
"MIT"
] | null | null | null | lib/logstash_json/event.ex | ne1ro/logstash-json | 32bab1bc37230310f24ec3067c34c16013903e57 | [
"MIT"
] | null | null | null | defmodule LogstashJson.Event do
@moduledoc """
This module contains functions for generating and serializing logs events.
"""
@doc "Generate a log event from log data"
def event(level, msg, ts, md, %{fields: fields, utc_log: utc_log, formatter: formatter}) do
fields
|> format_fields(md, %{
... | 29.345455 | 112 | 0.629492 |
ace0a3b797b3804a47741737fc0e60e7acd8160e | 2,909 | ex | Elixir | exercism/elixir/simple-cipher/lib/simple_cipher.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/simple-cipher/lib/simple_cipher.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/simple-cipher/lib/simple_cipher.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule SimpleCipher do
@doc """
Given a `plaintext` and `key`, encode each character of the `plaintext` by
shifting it by the corresponding letter in the alphabet shifted by the number
of letters represented by the `key` character, repeating the `key` if it is
shorter than the `plaintext`.
For example, ... | 29.989691 | 84 | 0.670333 |
ace0f295635c772379d355f57edb960a7e0e59a8 | 1,824 | exs | Elixir | clients/ad_mob/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"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... | 27.223881 | 102 | 0.651864 |
ace0ff19541224cb5ccb3d214efff279ff1d4242 | 1,724 | exs | Elixir | test/blog_web/channels/comments_channel_test.exs | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | test/blog_web/channels/comments_channel_test.exs | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | 9 | 2021-08-13T02:21:40.000Z | 2021-08-24T05:02:19.000Z | test/blog_web/channels/comments_channel_test.exs | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | defmodule BlogWeb.CommentsChannelTest do
@moduledoc """
Test comments channel
"""
use BlogWeb.ChannelCase
alias Blog.{Accounts, Posts}
alias BlogWeb.UserSocket
# alias BlogWeb.CommentsChannel
@valid_post %{
title: "Elixir izi",
description: "Description post"
}
setup do
{:ok, %Account... | 28.262295 | 112 | 0.632251 |
ace12b317f26b617e2e9f4deeb24ae3d6d824a5c | 195 | ex | Elixir | lib/spear/records/operations.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 34 | 2021-04-15T22:16:38.000Z | 2022-03-11T10:20:11.000Z | lib/spear/records/operations.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 32 | 2021-04-05T18:07:35.000Z | 2021-11-04T19:32:58.000Z | lib/spear/records/operations.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 1 | 2021-10-11T15:53:42.000Z | 2021-10-11T15:53:42.000Z | defmodule Spear.Records.Operations do
@moduledoc """
A record macro interface for interacting with the EventStoreDB Operations API
"""
use Spear.Records, service_module: :operations
end
| 24.375 | 79 | 0.774359 |
ace1306b790307fb54b27edeb07e64b01ab2aaf7 | 2,780 | exs | Elixir | test/producer_test.exs | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | test/producer_test.exs | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | test/producer_test.exs | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | defmodule NSQ.ProducerTest do
use ExUnit.Case, async: true
@http Application.get_env(:elixir_nsq, :http_module, NSQ.Client.Mojito)
doctest NSQ.Producer
@test_topic "__nsq_producer_test_topic__"
@test_channel1 "__nsq_producer_test_channel1__"
@configured_nsqds ["127.0.0.1:6750", "127.0.0.1:6760"]
setup d... | 34.320988 | 96 | 0.668705 |
ace13cd32b40b7ed9efb67c0d54d36caa6804863 | 656 | exs | Elixir | config/test.exs | alexfariac/Unique-Key-Generator | 3493790f8e76f776406e1e33888f4c9009917e24 | [
"MIT"
] | 1 | 2021-12-26T19:35:57.000Z | 2021-12-26T19:35:57.000Z | config/test.exs | alexfariac/Unique-Key-Generator | 3493790f8e76f776406e1e33888f4c9009917e24 | [
"MIT"
] | null | null | null | config/test.exs | alexfariac/Unique-Key-Generator | 3493790f8e76f776406e1e33888f4c9009917e24 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :unikey, Unikey.Repo,
username: "postgres",
password: "postgres",
database: "unikey_test#{System.get_e... | 28.521739 | 65 | 0.746951 |
ace154f65d62c97150da65e53dfa853475aae569 | 7,994 | ex | Elixir | lib/bamboo/mailer.ex | mstratman/bamboo | 8ae537e0dee1c52c3195e359b8636156513f89f2 | [
"MIT"
] | null | null | null | lib/bamboo/mailer.ex | mstratman/bamboo | 8ae537e0dee1c52c3195e359b8636156513f89f2 | [
"MIT"
] | null | null | null | lib/bamboo/mailer.ex | mstratman/bamboo | 8ae537e0dee1c52c3195e359b8636156513f89f2 | [
"MIT"
] | 1 | 2019-06-18T18:04:25.000Z | 2019-06-18T18:04:25.000Z | defmodule Bamboo.Mailer do
@moduledoc """
Functions for delivering emails using adapters and delivery strategies.
Adds `deliver_now/1` and `deliver_later/1` functions to the mailer module it
is used by.
Bamboo [ships with several adapters][available-adapters]. It is also possible
to create your own adapte... | 28.65233 | 97 | 0.675382 |
ace17d7f24669accfcf9eb574086227fdba2ed1e | 1,788 | exs | Elixir | rel/config.exs | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | rel/config.exs | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | rel/config.exs | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# T... | 33.111111 | 81 | 0.732103 |
ace18674d08980c7da9d889183397b5d966fa140 | 278 | ex | Elixir | lib/nanocrawler_web/helpers/response_helpers.ex | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | 1 | 2020-04-19T07:48:46.000Z | 2020-04-19T07:48:46.000Z | lib/nanocrawler_web/helpers/response_helpers.ex | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | 2 | 2021-03-09T20:27:19.000Z | 2021-05-10T17:32:50.000Z | lib/nanocrawler_web/helpers/response_helpers.ex | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | null | null | null | defmodule NanocrawlerWeb.Helpers.ResponseHelpers do
def slice_response(list, count) when not is_nil(count) do
case Integer.parse(count) do
:error -> list
{size, _} -> Enum.slice(list, 0, size)
end
end
def slice_response(list, _) do
list
end
end
| 21.384615 | 59 | 0.676259 |
ace18a86c5112ceb0f1083e9eb038f4a37c65bbd | 1,159 | ex | Elixir | phoenix/phoenix_tailwind/test/support/channel_case.ex | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | phoenix/phoenix_tailwind/test/support/channel_case.ex | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | phoenix/phoenix_tailwind/test/support/channel_case.ex | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixTailwindWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case int... | 28.268293 | 77 | 0.738568 |
ace1aef201100ffb050b6e3b883fdb0f98ec4288 | 3,632 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 42.232558 | 221 | 0.710352 |
ace1bfae5bff95c87791b96a5e1b3ff16db8c837 | 2,835 | ex | Elixir | lib/advent/y2021/d13.ex | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | lib/advent/y2021/d13.ex | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | lib/advent/y2021/d13.ex | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | defmodule Advent.Y2021.D13 do
@moduledoc """
https://adventofcode.com/2021/day/13
"""
@typep fold :: {:x | :y, non_neg_integer()}
@doc """
How many dots are visible after completing just the first fold instruction on
your transparent paper?
"""
@spec part_one(Enumerable.t()) :: non_neg_integer()
d... | 27.794118 | 81 | 0.565785 |
ace1c282e11c5454652195d1bade064110f28871 | 2,480 | ex | Elixir | lib/cms/v3/schema/changeset.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | lib/cms/v3/schema/changeset.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | lib/cms/v3/schema/changeset.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2021 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.V3.CMS.ChangeSet do
alias Noizu.MnesiaVersioning.ChangeSe... | 45.925926 | 110 | 0.574597 |
ace1e093230d73a24337c1d4d3dbce2d66ac5b2e | 1,775 | ex | Elixir | lib/dust/fetcher/css.ex | sultaniman/dust | 273cf538552870fd07269330c23e993c8859ddd9 | [
"Apache-2.0"
] | 18 | 2020-06-16T09:43:34.000Z | 2021-11-06T09:35:17.000Z | lib/dust/fetcher/css.ex | imanhodjaev/dust | f834dc92bbaaee82ca76f848bf640d3d37e4c5e8 | [
"Apache-2.0"
] | 13 | 2020-10-29T05:33:14.000Z | 2022-01-24T18:01:50.000Z | lib/dust/fetcher/css.ex | imanhodjaev/dust | f834dc92bbaaee82ca76f848bf640d3d37e4c5e8 | [
"Apache-2.0"
] | null | null | null | defmodule Dust.Fetcher.CSS do
@moduledoc """
CSS fetcher does the following things
1. Extracts all image urls from css assets,
2. Downloads all images,
3. Extends and returns assets with new images.
`For each assets[:css] -> extract urls -> Fetcher.fetch() -> Append to assets[:image]`
"""
alias ... | 25.724638 | 88 | 0.620845 |
ace1e380d26c91cef248af16ce1b1525ba36fc09 | 6,865 | ex | Elixir | lib/weddell/client.ex | michaelst/weddell | 9b486383078375de7812e1a1ad792c2c79f1258a | [
"MIT"
] | null | null | null | lib/weddell/client.ex | michaelst/weddell | 9b486383078375de7812e1a1ad792c2c79f1258a | [
"MIT"
] | null | null | null | lib/weddell/client.ex | michaelst/weddell | 9b486383078375de7812e1a1ad792c2c79f1258a | [
"MIT"
] | null | null | null | defmodule Weddell.Client do
require Logger
@moduledoc """
A persistent process responsible for interacting with Pusub over GRPC.
"""
use GenServer
alias GRPC.{Stub, RPCError}
alias Weddell.Client.{Publisher, Subscriber}
@default_host "pubsub.googleapis.com"
@default_port 443
@typedoc "A Weddell ... | 31.347032 | 108 | 0.636562 |
ace1e787be0bb3f88cc14d7a7234f4325fee2596 | 2,358 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/guaranteed_fixed_price_terms.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/guaranteed_fixed_price_terms.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/guaranteed_fixed_price_terms.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.107143 | 192 | 0.73961 |
ace1f0742c5d7a678df75e19b2529ff05a29c272 | 201 | ex | Elixir | test_app/lib/test_app.ex | elixir-buildpack/cloud-native-buildpack | 753b1f7213ae852f83eeef4a75d0ddf6b5be9a9c | [
"Apache-2.0"
] | 7 | 2021-01-31T09:12:51.000Z | 2022-03-28T23:03:24.000Z | test_app/lib/test_app.ex | railwayapp/elixir-buildpack-cloudnative | 753b1f7213ae852f83eeef4a75d0ddf6b5be9a9c | [
"Apache-2.0"
] | 1 | 2021-12-08T02:09:45.000Z | 2022-02-11T17:52:46.000Z | test_app/lib/test_app.ex | railwayapp/elixir-buildpack-cloudnative | 753b1f7213ae852f83eeef4a75d0ddf6b5be9a9c | [
"Apache-2.0"
] | 2 | 2020-12-08T17:28:17.000Z | 2021-09-12T20:14:51.000Z | defmodule TestApp do
@moduledoc """
Documentation for `TestApp`.
"""
@doc """
Hello world.
## Examples
iex> TestApp.hello()
:world
"""
def hello do
:world
end
end
| 10.578947 | 30 | 0.557214 |
ace1f9f6459d7d8795010d180e03fe50159387a8 | 1,384 | ex | Elixir | lib/codes/codes_r43.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r43.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r43.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_R43 do
alias IcdCode.ICDCode
def _R430 do
%ICDCode{full_code: "R430",
category_code: "R43",
short_code: "0",
full_name: "Anosmia",
short_name: "Anosmia",
category_name: "Anosmia"
}
end
def _R431 do
%ICDCode{full_code... | 26.615385 | 70 | 0.578757 |
ace202a3b2a7f05175f4a1e1958c6df7ff7e83df | 974 | exs | Elixir | elixir/space-age/space_age.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 23 | 2017-02-22T16:57:12.000Z | 2022-02-11T20:32:36.000Z | elixir/space-age/space_age.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 36 | 2020-07-21T09:34:05.000Z | 2020-07-21T10:29:20.000Z | elixir/space-age/space_age.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 14 | 2017-02-22T16:58:23.000Z | 2021-10-06T00:21:57.000Z | defmodule SpaceAge do
@type planet ::
:mercury
| :venus
| :earth
| :mars
| :jupiter
| :saturn
| :uranus
| :neptune
@seconds_on_earth 31_557_600.0
defp planet_period(:mercury), do: 0.2408467
defp planet_period(:venus), do: 0.615197... | 27.828571 | 77 | 0.654004 |
ace2129d46978e5be8908f5785b7f6572be70005 | 1,001 | ex | Elixir | backend/lib/aptamer_web/controllers/page_controller.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/lib/aptamer_web/controllers/page_controller.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/lib/aptamer_web/controllers/page_controller.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule AptamerWeb.PageController do
use AptamerWeb, :controller
alias Aptamer.Repo
alias Aptamer.Jobs.File, as: AptamerFile
def index(conn, _params) do
conn
|> put_layout(false)
|> render("index.html")
end
def download_file(conn, params) do
{file_name, file_content} =
case params... | 23.833333 | 88 | 0.599401 |
ace21dbee8eb625b3d4fd780584c046743ada453 | 1,446 | ex | Elixir | lib/docusign/model/billing_charge.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/billing_charge.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/billing_charge.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # 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 DocuSign.Model.BillingCharge do
@moduledoc """
Contains information about a billing charge.
"""
@derive [Poison.Encoder]
defstruct [
... | 27.283019 | 78 | 0.634163 |
ace2890158ee7e883925bc56eeae8b54de060b90 | 87 | ex | Elixir | lib/balalaika_bear/video.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | lib/balalaika_bear/video.ex | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | lib/balalaika_bear/video.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.Video do
use BalalaikaBear.Macro.API, namespace: "video"
end
| 21.75 | 49 | 0.804598 |
ace2cfa599f4bc9403dc33d81baa2211a0afb506 | 1,010 | ex | Elixir | lib/hexpm/billing/billing.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/billing/billing.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/billing/billing.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Billing do
@type repository() :: String.t()
@callback checkout(repository(), data :: map()) :: map()
@callback dashboard(repository()) :: map() | nil
@callback cancel(repository()) :: map()
@callback create(map()) :: {:ok, map()} | {:error, map()}
@callback update(repository(), map()) :: {:... | 42.083333 | 73 | 0.654455 |
ace2df076491a7757cfacadd4049334683b6c291 | 68 | exs | Elixir | test/test_helper.exs | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | null | null | null | test/test_helper.exs | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | 2 | 2021-03-10T07:07:31.000Z | 2021-05-11T02:49:06.000Z | test/test_helper.exs | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(NanoCi.Repo, :manual)
| 22.666667 | 52 | 0.779412 |
ace31eaeb0fbaf0dfec87f973601d46f41467494 | 1,679 | exs | Elixir | mix.exs | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | mix.exs | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | mix.exs | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | defmodule Rumbl.Mixfile do
use Mix.Project
def project do
[app: :rumbl,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: a... | 29.982143 | 89 | 0.597379 |
ace3470f7407de288f78dbbc300600e15b8c21a7 | 2,578 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/basic_chart_axis.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/basic_chart_axis.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/basic_chart_axis.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.694915 | 201 | 0.719162 |
ace34e345f1f3074a84bce7257d5ea1ea7855b0e | 75 | ex | Elixir | lib/file_presenter_web/views/layout_view.ex | altyaper/live-code | f935c41c0ed198a8eb49b99dc2d45d57e6f31e65 | [
"MIT"
] | 5 | 2016-09-09T16:36:14.000Z | 2019-07-26T19:15:10.000Z | lib/file_presenter_web/views/layout_view.ex | echavezNS/file_presenter | 534c8393dc589dc98086613ec080780175865d34 | [
"MIT"
] | 3 | 2020-07-17T06:07:38.000Z | 2021-05-09T02:50:05.000Z | lib/file_presenter_web/views/layout_view.ex | echavezNS/live-code | f935c41c0ed198a8eb49b99dc2d45d57e6f31e65 | [
"MIT"
] | 3 | 2016-09-18T02:16:09.000Z | 2019-06-10T09:22:51.000Z | defmodule FilePresenterWeb.LayoutView do
use FilePresenterWeb, :view
end
| 18.75 | 40 | 0.84 |
ace351bcb519ee122666effe99c83526a33b0a7d | 5,025 | ex | Elixir | lib/exmqtt_constants.ex | kcurtin/exmqtt | 3431b560117e73c769d30d06b3feada170c3973f | [
"Apache-2.0"
] | 13 | 2020-04-12T13:24:32.000Z | 2021-08-17T00:25:09.000Z | lib/exmqtt_constants.ex | kcurtin/exmqtt | 3431b560117e73c769d30d06b3feada170c3973f | [
"Apache-2.0"
] | null | null | null | lib/exmqtt_constants.ex | kcurtin/exmqtt | 3431b560117e73c769d30d06b3feada170c3973f | [
"Apache-2.0"
] | 2 | 2020-05-14T12:43:48.000Z | 2021-03-02T17:36:24.000Z | defmodule ExmqttConstants do
use Constants
# ------------------------------------------------------
# MQTT QoS Levels
# ------------------------------------------------------
# At most once
define(qos_0, 0)
# At least once
define(qos_1, 1)
# Exactly once
define(qos_2, 2)
# ---------------------... | 38.358779 | 58 | 0.525572 |
ace35ff63d25212063c7f7efb29a5a4a8e9eaa43 | 1,483 | ex | Elixir | 8.ex | natesholland/euler_project | 84e03e1de6d285b4fbd9a9610233bada179db401 | [
"MIT"
] | null | null | null | 8.ex | natesholland/euler_project | 84e03e1de6d285b4fbd9a9610233bada179db401 | [
"MIT"
] | null | null | null | 8.ex | natesholland/euler_project | 84e03e1de6d285b4fbd9a9610233bada179db401 | [
"MIT"
] | null | null | null | i = "731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511125406987471585238630507156932909632952274430435576689664895044524452316173185640309871112172238311362229893423380308135336276614282806444486645238749303589072962904... | 61.791667 | 1,006 | 0.859744 |
ace37b0f5d69a17606134cdf10df6a247b41c0b2 | 9,620 | ex | Elixir | lib/chat_api_web/controllers/conversation_controller.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | 1 | 2021-01-18T09:57:23.000Z | 2021-01-18T09:57:23.000Z | lib/chat_api_web/controllers/conversation_controller.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/conversation_controller.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.ConversationController do
use ChatApiWeb, :controller
use PhoenixSwagger
alias ChatApi.Conversations
alias ChatApi.Conversations.{Conversation, Helpers}
alias ChatApi.Messages
action_fallback(ChatApiWeb.FallbackController)
def swagger_definitions do
%{
Conversation:
... | 34.357143 | 100 | 0.654574 |
ace3a7ec1d6ec2396c3f7d384873da3bc346558e | 1,658 | ex | Elixir | web/models/artwork/command/search.ex | ImpossibilityLabs/artheon | 2fd1284c8bd087107e56432ebefc3345db10e60e | [
"Apache-2.0"
] | null | null | null | web/models/artwork/command/search.ex | ImpossibilityLabs/artheon | 2fd1284c8bd087107e56432ebefc3345db10e60e | [
"Apache-2.0"
] | null | null | null | web/models/artwork/command/search.ex | ImpossibilityLabs/artheon | 2fd1284c8bd087107e56432ebefc3345db10e60e | [
"Apache-2.0"
] | null | null | null | defmodule Artheon.Artwork.Command.Search do
@moduledoc """
Filter artworks by search and pagination params.
"""
import Ecto.Query
alias Artheon.Artist
alias Artheon.Artwork
alias Artheon.Repo
@max_artworks_per_page "50"
@doc false
@spec execute(map() | nil) :: [%Artwork{}]
def execute(nil), d... | 26.741935 | 149 | 0.61158 |
ace3d3bcb129b6e017d6667deac3d07894b551c6 | 130 | exs | Elixir | .formatter.exs | ne-sachirou/inner_cotton | f98880cca4bfe5557e9ea6287ed1b3acf5090465 | [
"Unlicense"
] | 24 | 2018-03-21T07:17:21.000Z | 2021-03-29T13:49:56.000Z | .formatter.exs | ne-sachirou/inner_cotton | f98880cca4bfe5557e9ea6287ed1b3acf5090465 | [
"Unlicense"
] | 107 | 2017-11-01T04:55:45.000Z | 2022-03-24T01:17:09.000Z | .formatter.exs | ne-sachirou/inner_cotton | f98880cca4bfe5557e9ea6287ed1b3acf5090465 | [
"Unlicense"
] | null | null | null | [
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
export: [
line_length: 120,
locals_without_parens: []
]
]
| 16.25 | 57 | 0.546154 |
ace3ec3ca1cf7dd37d72a0c8a7a094aa08e7b950 | 154 | exs | Elixir | examples/get_app_env.exs | clanchun/ree | 00d8c62d03a4c1c3ff4055057bb82646a9eb9864 | [
"MIT"
] | 1 | 2020-11-17T08:04:04.000Z | 2020-11-17T08:04:04.000Z | examples/get_app_env.exs | clanchun/ree | 00d8c62d03a4c1c3ff4055057bb82646a9eb9864 | [
"MIT"
] | null | null | null | examples/get_app_env.exs | clanchun/ree | 00d8c62d03a4c1c3ff4055057bb82646a9eb9864 | [
"MIT"
] | null | null | null | defmodule :__Main__ do
def main([app, key]) do
app = String.to_atom(app)
key = String.to_atom(key)
Application.get_env(app, key)
end
end
| 17.111111 | 33 | 0.662338 |
ace3f5b563f6671f4c9ae26ed6eccc6ba6e068e8 | 4,799 | exs | Elixir | test/membrane_rtsp/workflow_integration_test.exs | membraneframework/membrane_rtsp | aad85990b1f37013f814ce063a44b86cc6d968c4 | [
"Apache-2.0"
] | null | null | null | test/membrane_rtsp/workflow_integration_test.exs | membraneframework/membrane_rtsp | aad85990b1f37013f814ce063a44b86cc6d968c4 | [
"Apache-2.0"
] | 4 | 2020-12-03T09:49:09.000Z | 2021-09-24T10:53:42.000Z | test/membrane_rtsp/workflow_integration_test.exs | membraneframework/membrane_rtsp | aad85990b1f37013f814ce063a44b86cc6d968c4 | [
"Apache-2.0"
] | 2 | 2021-03-17T21:36:15.000Z | 2021-05-08T12:53:29.000Z | defmodule Membrane.RTSP.WorkflowIntegrationTest do
use ExUnit.Case
alias Membrane.RTSP
alias Membrane.RTSP.Response
alias Membrane.RTSP.Transport.{TCPSocket, Fake}
describe "RTSP workflow executes" do
@tag external: true
@tag timeout: 80 * 1000
test "over network" do
workflow(
"rts... | 44.850467 | 356 | 0.651802 |
ace447993c9e72e4d0211d022a8c868d7cc4007d | 2,322 | ex | Elixir | lib/exhmac/config.ex | lizhaochao/ExHmac | 9e7e00999362107e17528d6d9af97da7f461d6a9 | [
"MIT"
] | null | null | null | lib/exhmac/config.ex | lizhaochao/ExHmac | 9e7e00999362107e17528d6d9af97da7f461d6a9 | [
"MIT"
] | null | null | null | lib/exhmac/config.ex | lizhaochao/ExHmac | 9e7e00999362107e17528d6d9af97da7f461d6a9 | [
"MIT"
] | null | null | null | defmodule ExHmac.Config do
@moduledoc false
alias ExHmac.Repo
@default_timestamp_offset_secs 900
@default_nonce_freezing_secs 900
@default_nonce_len 6
@default_precision :second
@default_gc_interval_milli 60_000
@default_search_mins_len 1
@default_gc_warn_count 20_000
@default_disable_noncer fals... | 26.386364 | 84 | 0.726529 |
ace47e9f2d2aee076f12081e991ce8839f761574 | 4,123 | ex | Elixir | app/lib/noodl/events/session.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl/events/session.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl/events/session.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Events.Session.NameSlug do
use EctoAutoslugField.Slug, from: :name, to: :slug
end
defmodule Noodl.Events.Session do
use Ecto.Schema
import Ecto.Changeset
alias Noodl.Accounts.User
alias Noodl.Events.{Event, Recording, Proposal}
alias Noodl.Events.Session.NameSlug
@derive {Jason.Encoder,... | 25.294479 | 78 | 0.603444 |
ace4a4b3e8d96350c70b09910de0bee5e5856760 | 6,254 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_group_by_sort.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_group_by_sort.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_group_by_sort.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.GroupBySort) do
@moduledoc false
(
defstruct(sorters: [])
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
e ... | 26.726496 | 96 | 0.495043 |
ace4b08c4a7469787f7fc4fb40ea15f9e86597a0 | 3,612 | exs | Elixir | test/sparql/processor/alternative_graph_pattern_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | test/sparql/processor/alternative_graph_pattern_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | test/sparql/processor/alternative_graph_pattern_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.Processor.AlternativeGraphPatternTest do
use SPARQL.Test.Case
import SPARQL.Processor, only: [query: 2]
@w3c_example_graph RDF.Turtle.read_string! """
@prefix dc10: <http://purl.org/dc/elements/1.0/> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
_:a dc10:title "SPARQL... | 28.440945 | 85 | 0.394795 |
ace4da8c76dbced0230428101fbaf4e778273ab9 | 805 | exs | Elixir | apps/tai/test/tai/new_orders/transitions/amend_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/test/tai/new_orders/transitions/amend_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/new_orders/transitions/amend_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.NewOrders.Transitions.AmendTest do
use ExUnit.Case, async: false
alias Tai.NewOrders.Transitions
test ".attrs/1 returns a list of updatable order attributes" do
price = Decimal.new(10)
leaves_qty = Decimal.new("2.1")
last_received_at = DateTime.utc_now()
last_venue_timestamp = DateT... | 32.2 | 65 | 0.724224 |
ace5736ed7970b3639fd5ee1503884a6eb835819 | 1,402 | ex | Elixir | lib/posts/reposts.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | 2 | 2019-07-12T04:07:34.000Z | 2019-11-26T01:08:14.000Z | lib/posts/reposts.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | null | null | null | lib/posts/reposts.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | 1 | 2019-11-26T01:18:54.000Z | 2019-11-26T01:18:54.000Z | defmodule ExPnut.Posts.Reposts do
import ExPnut.Helper.HTTP
alias ExPnut.Posts.PostParams
@moduledoc """
Reposting is a special action. Reposts act as complete posts in themselves, with the "original" post embedded as an
additional object. Unlike normal posts, actions (reply, repost, bookmark) cannot be exec... | 43.8125 | 118 | 0.734665 |
ace58517a11d1a7c066d7137010b85c1ad7c93e9 | 185 | exs | Elixir | priv/repo/migrations/20180420054301_add_telegram_username_to_users.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20180420054301_add_telegram_username_to_users.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20180420054301_add_telegram_username_to_users.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | defmodule Evercam.Repo.Migrations.AddTelegramUsernameToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :telegram_username, :string
end
end
end
| 18.5 | 63 | 0.740541 |
ace590b4243856d0a209293fdb20e81826ec842d | 1,748 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/state_history.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/state_history.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/classroom/lib/google_api/classroom/v1/model/state_history.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... | 32.981132 | 105 | 0.712243 |
ace5a5cc99d3ef1ce68a24fb122dfbb4a7b3dc0f | 1,088 | ex | Elixir | lib/coap/phoenix/listener.ex | OffgridElectric/coap_ex | 7d83f8a7fbf26e6e7f2baa8aa10d0f7c457365b6 | [
"MIT"
] | 16 | 2019-02-23T10:04:26.000Z | 2022-03-14T03:12:45.000Z | lib/coap/phoenix/listener.ex | tpitale/coap_ex | 28b62274336742b41e3426b73294a0e74e6a5b67 | [
"MIT"
] | 51 | 2019-05-06T15:34:58.000Z | 2021-01-21T14:32:32.000Z | lib/coap/phoenix/listener.ex | OffgridElectric/coap_ex | 7d83f8a7fbf26e6e7f2baa8aa10d0f7c457365b6 | [
"MIT"
] | 3 | 2020-06-12T11:47:09.000Z | 2020-12-08T14:59:36.000Z | defmodule CoAP.Phoenix.Listener do
@moduledoc """
CoAP.Phoenix.Listner looks up Phoenix config and
starts a SocketServer on the configured port to wrap the endpoint (Phoenix router)
"""
use GenServer
@adapter CoAP.Adapters.Phoenix
import Logger, only: [info: 1]
def child_spec(endpoint) do
%{
... | 23.652174 | 95 | 0.638787 |
ace5adb679be70825f291daee5e51ae88b5c1158 | 670 | ex | Elixir | lib/category/type_class/functor.ex | timCF/category | 6426b4aa25997119a8ad2332529a430c4ae617f7 | [
"MIT"
] | 1 | 2019-08-20T20:10:33.000Z | 2019-08-20T20:10:33.000Z | lib/category/type_class/functor.ex | timCF/category | 6426b4aa25997119a8ad2332529a430c4ae617f7 | [
"MIT"
] | null | null | null | lib/category/type_class/functor.ex | timCF/category | 6426b4aa25997119a8ad2332529a430c4ae617f7 | [
"MIT"
] | null | null | null | defmodule Category.TypeClass.Functor do
import Category.TypeClass
define_using()
@typep a :: term
@typep b :: term
@type t(x) :: __MODULE__.t(x)
@callback functor_fmap((a -> b), t(a)) :: t(b)
defmacro fmap(f, it) do
quote location: :keep do
it = unquote(it)
{:module, mod} = :erlang.fun_... | 19.705882 | 55 | 0.607463 |
ace5e95b18b45ade86b66fce6014a58c4dddba2d | 1,852 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_image.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_image.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_image.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 ... | 33.071429 | 128 | 0.737581 |
ace5f9e6362706b78c858b6651986604db7fc8fa | 378 | exs | Elixir | priv/repo/migrations/20211002154924_create_users.exs | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | 3 | 2021-10-01T21:13:02.000Z | 2021-11-05T22:25:55.000Z | priv/repo/migrations/20211002154924_create_users.exs | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211002154924_create_users.exs | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | defmodule OfferHunters.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :binary_id, primary_key: true
add :email, :string
add :profile_picture, :string
add :name, :string
add :admin, :boolean
timestamps()
... | 21 | 53 | 0.664021 |
ace6075b9836cf960d210c5ab8cc1cf125f68626 | 446 | exs | Elixir | fogex/test/fogex_web/views/error_view_test.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/test/fogex_web/views/error_view_test.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/test/fogex_web/views/error_view_test.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | defmodule FogExWeb.ErrorViewTest do
use FogExWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(FogExWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "renders 500.json" do
... | 27.875 | 90 | 0.67713 |
ace6210f326e0e8ad992ac172cef93e5554fd517 | 525 | exs | Elixir | exercises/saddle-points/saddle_points.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/saddle-points/saddle_points.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/saddle-points/saddle_points.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | defmodule SaddlePoints do
@doc """
Parses a string representation of a matrix
to a list of rows
"""
@spec rows(String.t()) :: [[integer]]
def rows(str) do
end
@doc """
Parses a string representation of a matrix
to a list of columns
"""
@spec columns(String.t()) :: [[integer]]
def columns(str... | 18.103448 | 57 | 0.647619 |
ace63646c64cfa0c0d41d04740a75754ba595a2f | 1,961 | ex | Elixir | lib/changelog/schema/news/news_source.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 1 | 2019-11-02T08:32:25.000Z | 2019-11-02T08:32:25.000Z | lib/changelog/schema/news/news_source.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | lib/changelog/schema/news/news_source.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsSource do
use Changelog.Schema
alias Changelog.{Files, NewsItem, Regexp}
schema "news_sources" do
field :name, :string
field :slug, :string
field :website, :string
field :twitter_handle, :string
field :description, :string
field :feed, :string
field :regex, :s... | 27.236111 | 93 | 0.659867 |
ace65a6084b6088c12edbcd1957ef179656e4ecf | 554 | ex | Elixir | lib/xtb_client/application.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/application.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/application.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | defmodule XtbClient.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: XtbClient.Worker.start_link(arg)
# {XtbClient.Wor... | 26.380952 | 68 | 0.711191 |
ace6701fe395470bc7c1a524db7d7d2f7f1ce4b9 | 507 | ex | Elixir | lib/exlager_unit/application.ex | amorphid/exlager_unit | 1436eb7793977c1ba75599fedcb43e23d0d03c50 | [
"Apache-2.0"
] | null | null | null | lib/exlager_unit/application.ex | amorphid/exlager_unit | 1436eb7793977c1ba75599fedcb43e23d0d03c50 | [
"Apache-2.0"
] | null | null | null | lib/exlager_unit/application.ex | amorphid/exlager_unit | 1436eb7793977c1ba75599fedcb43e23d0d03c50 | [
"Apache-2.0"
] | null | null | null | defmodule LagerUnit.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
alias LagerUnit.LogCapturer
alias LagerUnit.LogHandler
children = [
worker(LogCapturer, []),
]
opts = [strategy: :one_for_one, name: LagerUnit.Su... | 21.125 | 64 | 0.656805 |
ace6c20a8865415a57591c1fa2a37d2275a8d732 | 543 | exs | Elixir | samples/phoenix_wobserver/config/test.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | 11 | 2017-05-05T12:28:35.000Z | 2020-02-26T09:16:10.000Z | samples/phoenix_wobserver/config/test.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | null | null | null | samples/phoenix_wobserver/config/test.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :phoenix_wobserver, PhoenixWobserver.Web.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config ... | 27.15 | 57 | 0.756906 |
ace6d53992c7f9c36015317510c67b6df11138c8 | 2,144 | ex | Elixir | lib/game/command/info.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | lib/game/command/info.ex | lorecrafting/ex_venture | 5de6a2eac19d8c6069868d34318f07ee714f9c98 | [
"MIT"
] | null | null | null | lib/game/command/info.ex | lorecrafting/ex_venture | 5de6a2eac19d8c6069868d34318f07ee714f9c98 | [
"MIT"
] | null | null | null | defmodule Game.Command.Info do
@moduledoc """
The "info" command
"""
use Game.Command
alias Game.Account
alias Game.Effect
alias Game.Format.Players, as: FormatPlayers
alias Game.Item
commands([{"info", ["score"]}], parse: false)
@impl Game.Command
def help(:topic), do: "Info"
def help(:shor... | 23.822222 | 91 | 0.628731 |
ace6d748a004dfde1e9f313155508bfb73a78a7a | 5,332 | exs | Elixir | implementations/elixir/.credo.exs | hollyfeld/ockam | 10a618b60b5b913821bfa8df3ad9693a70913ace | [
"Apache-2.0"
] | 1 | 2021-01-02T11:42:16.000Z | 2021-01-02T11:42:16.000Z | implementations/elixir/.credo.exs | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | implementations/elixir/.credo.exs | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for credo.
#
# It was first generated with `mix credo.gen.config` and then tweaked.
%{
configs: [
%{
name: "default",
#
# These are the files included in the analysis:
files: %{
included: [
"lib/",
"src/",
"test/"... | 38.085714 | 89 | 0.613278 |
ace6e9582ab84eca0fc43481f3ae6f95d822a8e2 | 2,477 | ex | Elixir | lib/swoosh/adapters/ex_aws_amazon_ses.ex | stevedomin/swoosh | 60d2537c7c278cac2c4c893dd964e0570dcb3226 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/ex_aws_amazon_ses.ex | stevedomin/swoosh | 60d2537c7c278cac2c4c893dd964e0570dcb3226 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/ex_aws_amazon_ses.ex | stevedomin/swoosh | 60d2537c7c278cac2c4c893dd964e0570dcb3226 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.ExAwsAmazonSES do
@moduledoc ~S"""
An adapter that wraps `Swoosh.Adapters.AmazonSES` to use credentials from `ExAws`.
You may prefer this adapter to `Swoosh.Adapters.AmazonSES` if you have already
configured ExAws for your project and are using instance role credentials.
This allow... | 27.831461 | 104 | 0.672992 |
ace6ef1cadc77b02cd0940681fbb5e76a95bee62 | 920 | exs | Elixir | test/test_helper.exs | gabrieltaylor/pow_assent | c8f4bd75a000f610c511360372662fe889436c5d | [
"MIT"
] | null | null | null | test/test_helper.exs | gabrieltaylor/pow_assent | c8f4bd75a000f610c511360372662fe889436c5d | [
"MIT"
] | null | null | null | test/test_helper.exs | gabrieltaylor/pow_assent | c8f4bd75a000f610c511360372662fe889436c5d | [
"MIT"
] | null | null | null | Logger.configure(level: :warn)
ExUnit.start()
# Ensure that symlink to custom ecto priv directory exists
source = PowAssent.Test.Ecto.Repo.config()[:priv]
target = Application.app_dir(:pow, source)
File.rm_rf(target)
File.mkdir_p(target)
File.rmdir(target)
:ok = :file.make_symlink(Path.expand(source), target)
Mix.Ta... | 38.333333 | 76 | 0.75 |
ace6f571be4e7a70e9bb25c5f2d7fede95ce2360 | 3,508 | ex | Elixir | lib/webapp_web/controllers/admin/network_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | lib/webapp_web/controllers/admin/network_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | lib/webapp_web/controllers/admin/network_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule WebappWeb.Admin.NetworkController do
use WebappWeb, :controller
alias Webapp.{
Hypervisors,
Hypervisors.Hypervisor,
Networks,
Networks.Network
}
plug :load_and_authorize_resource,
model: Network,
non_id_actions: [:index, :create, :new],
preload: [:hypervisor]
plug :loa... | 27.84127 | 90 | 0.641961 |
ace70be9244d43d134f7f205d2d7778508db3753 | 1,279 | exs | Elixir | mix.exs | payomdousti/elixir_leaderboard | af41620bb6cc44c05a121586c26b81ca04a4b598 | [
"Apache-2.0"
] | 2 | 2019-03-02T00:38:03.000Z | 2020-05-22T01:53:23.000Z | mix.exs | payomdousti/elixir_leaderboard | af41620bb6cc44c05a121586c26b81ca04a4b598 | [
"Apache-2.0"
] | null | null | null | mix.exs | payomdousti/elixir_leaderboard | af41620bb6cc44c05a121586c26b81ca04a4b598 | [
"Apache-2.0"
] | 1 | 2019-02-28T00:08:52.000Z | 2019-02-28T00:08:52.000Z | defmodule ElixirLeaderboard.MixProject do
use Mix.Project
def project do
[
description: "Fast, customizable leaderboards database.",
app: :elixir_leaderboard,
version: "0.1.5",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
... | 27.212766 | 80 | 0.599687 |
ace719c6f0ebd5d92d5fcd4d802a823917aa6d5c | 110 | ex | Elixir | lib/fragment/structured_text/block.ex | TheRealReal/prismic-elixir | 0850b922be6d2f2d541add8426fe27f8ce5f63eb | [
"MIT"
] | 10 | 2018-01-12T18:52:53.000Z | 2022-02-17T06:00:21.000Z | lib/fragment/structured_text/block.ex | TheRealReal/prismic-elixir | 0850b922be6d2f2d541add8426fe27f8ce5f63eb | [
"MIT"
] | 12 | 2018-02-14T23:08:08.000Z | 2021-11-22T15:55:41.000Z | lib/fragment/structured_text/block.ex | TheRealReal/prismic-elixir | 0850b922be6d2f2d541add8426fe27f8ce5f63eb | [
"MIT"
] | 8 | 2018-05-08T14:02:21.000Z | 2021-12-15T08:19:55.000Z | defprotocol Prismic.Fragment.StructuredText.Block do
def as_html(block, link_resolver, html_serializer)
end
| 27.5 | 52 | 0.845455 |
ace7763bf6b66d33526e025990f1dd314c90e77c | 10,222 | exs | Elixir | test/livebook/runtime/erl_dist/runtime_server_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | test/livebook/runtime/erl_dist/runtime_server_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | test/livebook/runtime/erl_dist/runtime_server_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist.RuntimeServerTest do
use ExUnit.Case, async: false
alias Livebook.Runtime.ErlDist.{NodeManager, RuntimeServer}
setup ctx do
{:ok, manager_pid} =
start_supervised({NodeManager, [unload_modules_on_termination: false, anonymous: true]})
runtime_server_pid = NodeMan... | 35.992958 | 100 | 0.628057 |
ace78679032bf04bb4498df3e95a243cdfa6bd8a | 8,195 | ex | Elixir | lib/ggity_demo_web/live/scatter_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/live/scatter_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/live/scatter_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | defmodule GGityDemoWeb.ScatterLive do
use GGityDemoWeb, :live_view
alias GGity.Plot
import GGity.Element.{Line, Rect, Text}
@mtcars_data GGity.Examples.mtcars()
|> Enum.map(fn record ->
Enum.map(record, fn {key, value} -> {to_string(key), value} end)
|> Enum.in... | 27.969283 | 98 | 0.628432 |
ace78b624eb87fc2d9cc2058ec2e088ed3cac8dc | 406 | ex | Elixir | lib/api.ex | synrc/form | 1d08aaca200e0c2aa2d4a37093b43bc7ec6113f8 | [
"0BSD"
] | 16 | 2019-10-14T07:23:49.000Z | 2021-11-27T16:35:14.000Z | lib/api.ex | synrc/forms | 2b5ce6e6b4668f6bb6f8bb1cbe1c5cdca301e480 | [
"ISC"
] | 4 | 2019-09-15T21:55:52.000Z | 2020-02-24T15:24:55.000Z | lib/api.ex | synrc/form | 1d08aaca200e0c2aa2d4a37093b43bc7ec6113f8 | [
"0BSD"
] | 6 | 2019-09-12T02:23:57.000Z | 2021-11-29T13:09:23.000Z | defmodule FORM.Combo.Sample do
# TODO: write document in man folder for form.n2o.dev
require FORM
require NITRO
def doc(), do: {:api,1,2}
def id(), do: 1
def new(name, obj, options), do: FORM.document()
def proto(msg), do: NITRO.proto(msg)
def index(), do: [:name, :id]
def item({:api,x,y}), do: :nitro... | 31.230769 | 63 | 0.615764 |
ace7f5e9b31cb82bc925462698da9bce3a324a3b | 996 | ex | Elixir | lib/sidemash/sdk/user_desc.ex | sidemash/sdk-elixir | 6535e07f65a4f2fe57434b50a11bfd0a7500f1e4 | [
"Apache-2.0"
] | null | null | null | lib/sidemash/sdk/user_desc.ex | sidemash/sdk-elixir | 6535e07f65a4f2fe57434b50a11bfd0a7500f1e4 | [
"Apache-2.0"
] | null | null | null | lib/sidemash/sdk/user_desc.ex | sidemash/sdk-elixir | 6535e07f65a4f2fe57434b50a11bfd0a7500f1e4 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2020 Sidemash Cloud
#
# 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... | 24.9 | 69 | 0.674699 |
ace7f9bf9d4cfcb1920f663c2e62e9b87b8c148d | 11,310 | exs | Elixir | test/kino/ecto_test.exs | byjpr/kino | 90b9070f4d0f014834b3b5c2eff4c94241445c68 | [
"Apache-2.0"
] | null | null | null | test/kino/ecto_test.exs | byjpr/kino | 90b9070f4d0f014834b3b5c2eff4c94241445c68 | [
"Apache-2.0"
] | null | null | null | test/kino/ecto_test.exs | byjpr/kino | 90b9070f4d0f014834b3b5c2eff4c94241445c68 | [
"Apache-2.0"
] | null | null | null | defmodule Kino.EctoTest do
use ExUnit.Case, async: true
import Ecto.Query, only: [from: 2]
describe "new/1" do
test "raises an error when an invalid queryable is given" do
assert_raise ArgumentError,
"expected a term implementing the Ecto.Queryable protocol, got: 1",
... | 31.32964 | 96 | 0.48992 |
ace856d4c95e9cc724824294a9ba0297e5c92864 | 3,536 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/pgp_signed_attestation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/pgp_signed_attestation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/pgp_signed_attestation.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... | 66.716981 | 873 | 0.751697 |
ace861ddb3cdebd500d39699befb6d22417d53fa | 1,332 | ex | Elixir | lib/ecto/pools/sojourn_broker/codel.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/ecto/pools/sojourn_broker/codel.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/pools/sojourn_broker/codel.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Pools.SojournBroker.CoDel do
@moduledoc """
CoDel based broker.
Drops requests waiting for a connection using the CoDel algorithm. See
`:sbroker_codel_queue` for more information.
### Options
* `:queue_interval` - The first interval in milliseconds between drops when above target (default:... | 37 | 124 | 0.68018 |
ace8636245292979ca9f29fb831633ba0c8844ad | 1,107 | ex | Elixir | lib/credo/cli/command/suggest/suggest_command.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/cli/command/suggest/suggest_command.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/cli/command/suggest/suggest_command.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Command.Suggest.SuggestCommand do
use Credo.CLI.Command
@shortdoc "Suggest code objects to look at next (default)"
alias Credo.CLI.Command.Suggest.SuggestOutput
alias Credo.CLI.Task
alias Credo.Execution
@doc false
def call(%Execution{help: true} = exec, _opts), do: SuggestOutput.pr... | 26.357143 | 84 | 0.742547 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.