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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28b410b9ea2cbca119bebda7a5f414563be1f2c9 | 141 | ex | Elixir | deb-package/debian/menu.ex | GeoKnow/DEER-Service | 44cdefd676184e9fb59395d0032cb67ad4bf15c9 | [
"Apache-1.1"
] | null | null | null | deb-package/debian/menu.ex | GeoKnow/DEER-Service | 44cdefd676184e9fb59395d0032cb67ad4bf15c9 | [
"Apache-1.1"
] | null | null | null | deb-package/debian/menu.ex | GeoKnow/DEER-Service | 44cdefd676184e9fb59395d0032cb67ad4bf15c9 | [
"Apache-1.1"
] | null | null | null | ?package(deer-service):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="deer-service" command="/usr/bin/deer-service"
| 47 | 85 | 0.751773 |
28b4278d8b369f2b613b530ba790b22899b19a4d | 2,917 | exs | Elixir | test/transmission_queue_test.exs | kianmeng/honeylixir | de21e5a7e9fe25345dbe333c5b64b46ab54deedb | [
"Apache-2.0"
] | null | null | null | test/transmission_queue_test.exs | kianmeng/honeylixir | de21e5a7e9fe25345dbe333c5b64b46ab54deedb | [
"Apache-2.0"
] | null | null | null | test/transmission_queue_test.exs | kianmeng/honeylixir | de21e5a7e9fe25345dbe333c5b64b46ab54deedb | [
"Apache-2.0"
] | null | null | null | defmodule HoneylixirTransmissionQueueTest do
use ExUnit.Case, async: false
doctest Honeylixir.TransmissionQueue
test "handle_call/3 - :get_all_queue_keys" do
state = %{
:batch_timing => 3,
:max_queue_size => 4,
:batch_size => 3,
{"http://host", "abc", "data"} => %Honeylixir.Transmissi... | 28.881188 | 98 | 0.59616 |
28b42c1398ed442c3a554e0c674826ffd7dc5c6d | 3,688 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/label_color.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/label_color.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/gmail/lib/google_api/gmail/v1/model/label_color.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... | 73.76 | 1,199 | 0.68872 |
28b440ec880a93bec1fe99b31ed84851fde17d59 | 2,528 | exs | Elixir | test/ex_doc_test.exs | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc_test.exs | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc_test.exs | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDocTest do
use ExUnit.Case
# Simple retriever that returns whatever is passed into it
defmodule IdentityRetriever do
def docs_from_dir(source, config) do
{source, config}
end
end
# Simple formatter that returns whatever is passed into it
defmodule IdentityFormatter do
def run... | 26.333333 | 95 | 0.651108 |
28b45a71e1f4b6b3e62757b96b1a90bf28276d56 | 13,595 | exs | Elixir | test/teslamate/vehicles/vehicle/driving_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | 1 | 2020-05-17T05:05:22.000Z | 2020-05-17T05:05:22.000Z | test/teslamate/vehicles/vehicle/driving_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/driving_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.DrivingTest do
use TeslaMate.VehicleCase, async: true
test "logs a full drive", %{test: name} do
now = DateTime.utc_now()
now_ts = DateTime.to_unix(now, :millisecond)
events = [
{:ok, online_event()},
{:ok, drive_event(now_ts + 1, "D", 60)},
{:ok,... | 37.246575 | 98 | 0.624347 |
28b47c2793e8250886a75a3f9263a8fe9a3f5546 | 1,386 | exs | Elixir | config/config.exs | LivewareProblems/Gravitas | b0378395c0c5229507c8abf84e6ea9fb8475299f | [
"Apache-2.0"
] | null | null | null | config/config.exs | LivewareProblems/Gravitas | b0378395c0c5229507c8abf84e6ea9fb8475299f | [
"Apache-2.0"
] | 8 | 2018-08-19T13:10:37.000Z | 2019-07-10T17:24:06.000Z | config/config.exs | LivewareProblems/gravitas | b0378395c0c5229507c8abf84e6ea9fb8475299f | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 33.804878 | 86 | 0.758297 |
28b49f7bacf85d47fb2489e80da18779832c51ef | 1,933 | exs | Elixir | test/protocol/delete_topics_test.exs | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 536 | 2015-08-10T03:14:39.000Z | 2022-03-24T15:07:33.000Z | test/protocol/delete_topics_test.exs | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 349 | 2015-09-16T21:27:42.000Z | 2022-03-28T08:51:56.000Z | test/protocol/delete_topics_test.exs | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 180 | 2015-09-01T22:58:26.000Z | 2022-03-25T16:47:49.000Z | defmodule KafkaEx.Protocol.DeleteTopicsTest do
use ExUnit.Case, async: true
describe "create_request/4" do
test "creates a request to delete a single topic" do
expected_request =
<<20::16, 0::16, 999::32, 13::16, "the-client-id"::binary, 1::32-signed,
6::16, "topic1"::binary, 100::32-si... | 28.850746 | 99 | 0.554578 |
28b4ac0a63a4dc1f86370d6172c75f3ef2e10fd2 | 3,680 | ex | Elixir | test/support/examples/parameters.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | 52 | 2017-05-29T11:18:43.000Z | 2021-09-17T07:55:14.000Z | test/support/examples/parameters.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | 50 | 2017-05-30T13:21:00.000Z | 2019-12-24T00:17:02.000Z | test/support/examples/parameters.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | 13 | 2017-07-06T20:52:08.000Z | 2020-04-27T06:28:34.000Z | defmodule BlueBird.Test.Support.Examples.Parameters do
@moduledoc false
# credo:disable-for-this-file Credo.Check.Readability.RedundantBlankLines
alias BlueBird.{ApiDoc, Parameter, Request, Response, Route}
def api_doc do
%ApiDoc{
title: "Pastry API",
host: "https://youarguelikeaninformer.soc... | 22.857143 | 76 | 0.383152 |
28b4d324f545a4e055c1267f904b6fd9516f1946 | 2,810 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config.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... | 45.322581 | 256 | 0.714947 |
28b4e2d62ace3a2b5d64ff3d32f0e1abac4b8678 | 192 | exs | Elixir | priv/repo/migrations/20170613095321_modify_foreign_key_on_feed.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 4 | 2020-02-16T07:18:35.000Z | 2021-12-09T14:43:10.000Z | priv/repo/migrations/20170613095321_modify_foreign_key_on_feed.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 27 | 2019-10-16T18:35:19.000Z | 2022-03-13T16:39:57.000Z | priv/repo/migrations/20170613095321_modify_foreign_key_on_feed.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | null | null | null | defmodule ExRss.Repo.Migrations.ModifyForeignKeyOnFeed do
use Ecto.Migration
def change do
drop index(:feeds, :url)
create index(:feeds, [:user_id, :url], unique: true)
end
end
| 21.333333 | 57 | 0.71875 |
28b4ea69a258f4d93b4ef952e863483f04511997 | 178 | ex | Elixir | lib/pixie/encoders/response_subscribe_encoder.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/encoders/response_subscribe_encoder.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/encoders/response_subscribe_encoder.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | require Pixie.Response.Encoder
defimpl Poison.Encoder, for: Pixie.Response.Subscribe do
def encode %{}=response, _opts do
Pixie.Response.Encoder.encode response
end
end
| 22.25 | 56 | 0.775281 |
28b53ac01bc337acc0fe4c6eb1c2b97a637206d2 | 1,535 | ex | Elixir | lib/mailman/context.ex | bombinatetech/mailman | 7b69db23273c2de6c836ac187e191f145f346845 | [
"MIT"
] | null | null | null | lib/mailman/context.ex | bombinatetech/mailman | 7b69db23273c2de6c836ac187e191f145f346845 | [
"MIT"
] | null | null | null | lib/mailman/context.ex | bombinatetech/mailman | 7b69db23273c2de6c836ac187e191f145f346845 | [
"MIT"
] | null | null | null | defmodule Mailman.Context do
@moduledoc "Defines the configuration for both rendering and sending of messages"
defstruct config: nil, composer: %Mailman.EexComposeConfig{}
def get_config(context) do
case context.config do
# if config in context is nil, read it from config.exs
nil -> get_mix_conf... | 25.583333 | 83 | 0.669707 |
28b54545ffe10000e476c899cc1a895f68208d8c | 10,720 | ex | Elixir | lib/test_helpers.ex | LouisMT/Phoenix-API-Toolkit | fda2be3abe253c95ba30fd4334dda88c705aa4ec | [
"Apache-2.0"
] | null | null | null | lib/test_helpers.ex | LouisMT/Phoenix-API-Toolkit | fda2be3abe253c95ba30fd4334dda88c705aa4ec | [
"Apache-2.0"
] | null | null | null | lib/test_helpers.ex | LouisMT/Phoenix-API-Toolkit | fda2be3abe253c95ba30fd4334dda88c705aa4ec | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixApiToolkit.TestHelpers do
@moduledoc """
Various helper functions for writing tests.
"""
alias Plug.Conn
require Logger
if Code.ensure_loaded?(:jose) do
@doc """
Returns an example jwks for use by `gen_jwt/2`, as base64-encoded JSON.
## Examples
# the keyset is return... | 33.08642 | 360 | 0.607369 |
28b5524484aadfd4ddd1d99a071bcb7623bc4846 | 3,603 | exs | Elixir | test/helper/converter/editor_to_html_test/people_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/helper/converter/editor_to_html_test/people_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/helper/converter/editor_to_html_test/people_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Helper.Converter.EditorToHTML.People do
@moduledoc false
use GroupherServerWeb.ConnCase, async: true
import GroupherServer.Support.Factory
alias Helper.Converter.EditorToHTML, as: Parser
alias Helper.Converter.EditorToHTML.Class
alias Helper.Utils
@root_class Class.article... | 30.533898 | 89 | 0.499029 |
28b5595573f90ab772e5e39a7b05cfba5aa10398 | 1,272 | exs | Elixir | config/config.exs | axelson/elixir-behavior-tree | 501a9ddf92c927017b00f26824cc0c4563998e49 | [
"MIT"
] | 40 | 2018-07-02T07:20:29.000Z | 2022-01-30T19:24:36.000Z | config/config.exs | axelson/elixir-behavior-tree | 501a9ddf92c927017b00f26824cc0c4563998e49 | [
"MIT"
] | 3 | 2018-05-13T17:46:53.000Z | 2019-10-22T19:34:46.000Z | config/config.exs | axelson/elixir-behavior-tree | 501a9ddf92c927017b00f26824cc0c4563998e49 | [
"MIT"
] | 1 | 2020-09-18T20:26:40.000Z | 2020-09-18T20:26:40.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
if Mix.env == :dev do
config :mix_test_watch,
tasks: [
"test",
"format lib/*.ex --check-formatted",
"credo"
]
end
# This configuration is loaded before a... | 31.8 | 73 | 0.727987 |
28b58757af26656d11e5556e89ce441bc7901950 | 587 | ex | Elixir | lib/live_qchatex_web/router.ex | fiqus/lqchatex | e5a29cadc2b1eb7fce88be3e612a5ff240a09b59 | [
"MIT"
] | 8 | 2019-06-01T18:45:47.000Z | 2021-11-10T07:56:20.000Z | lib/live_qchatex_web/router.ex | fiqus/lqchatex | e5a29cadc2b1eb7fce88be3e612a5ff240a09b59 | [
"MIT"
] | 3 | 2020-04-19T15:59:27.000Z | 2021-05-09T00:33:11.000Z | lib/live_qchatex_web/router.ex | fiqus/lqchatex | e5a29cadc2b1eb7fce88be3e612a5ff240a09b59 | [
"MIT"
] | 3 | 2019-10-25T16:03:12.000Z | 2021-11-10T07:53:14.000Z | defmodule LiveQchatexWeb.Router do
use LiveQchatexWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug Phoenix.LiveView.Flash
plug :put_layout, {LiveQchatexWeb.LayoutView, :app}
plug :protect_from_forgery
plug :put_secure_browser_headers
... | 25.521739 | 55 | 0.698467 |
28b5aaf65b3c5aba3c9534ab55401a7de396e512 | 2,646 | ex | Elixir | apps/command/lib/command/weapons.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 6 | 2017-08-10T13:57:06.000Z | 2019-01-17T08:48:40.000Z | apps/command/lib/command/weapons.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 14 | 2017-08-08T13:07:00.000Z | 2019-02-28T15:10:18.000Z | apps/command/lib/command/weapons.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | null | null | null | defmodule Command.Weapons do
alias Nostrum.Api, as: API
def random_all(channel_id, author_id, opts \\ []) when is_list(opts) do
with {:ok, channel = %{guild_id: guild_id}} <- API.get_channel(channel_id),
{:ok, server} <- Nostrum.Cache.GuildCache.get(guild_id),
{:ok, voice_channel_id} <-
... | 27.852632 | 96 | 0.555556 |
28b5c6ffb04777473d06a23127548f57f04a100a | 13,764 | ex | Elixir | lib/ex_doc/autolink.ex | calvinsadewa/ex_doc | 695012ebc83aae249a7d91833eae432784fe869d | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/autolink.ex | calvinsadewa/ex_doc | 695012ebc83aae249a7d91833eae432784fe869d | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/autolink.ex | calvinsadewa/ex_doc | 695012ebc83aae249a7d91833eae432784fe869d | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Autolink do
@moduledoc false
# * `:app` - the app that the docs are being generated for. When linking modules they are
# checked if they are part of the app and based on that the links are relative or absolute.
#
# * `:current_module` - the module that the docs are being generated for. Used... | 26.726214 | 108 | 0.584205 |
28b5cb0744032ab8c220f42c781104e3be5fc408 | 4,979 | exs | Elixir | test/tabular_a_test.exs | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | 8 | 2020-09-04T19:38:41.000Z | 2021-06-05T18:59:49.000Z | test/tabular_a_test.exs | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | null | null | null | test/tabular_a_test.exs | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | null | null | null | defmodule FlowAssertions.TabularATests do
use FlowAssertions.Case
alias FlowAssertions.TabularA
defp case_clause(x) do
case x do
1 -> "one passed in"
2 -> "two passed in"
end
end
defp case_clause(x, y) do
case [x, y] do
[1, 1] -> "one passed in"
[2, 2] -> "two passed ... | 26.913514 | 85 | 0.553525 |
28b5ef6c62822adb4e62ed8f6d51152731638f30 | 3,361 | exs | Elixir | test/ambry_web/controllers/user_session_controller_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | test/ambry_web/controllers/user_session_controller_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | test/ambry_web/controllers/user_session_controller_test.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | # defmodule AmbryWeb.UserSessionControllerTest do
# use AmbryWeb.ConnCase, async: true
# import Ambry.AccountsFixtures
# setup do
# %{user: user_fixture()}
# end
# describe "GET /users/log_in" do
# test "renders log in page", %{conn: conn} do
# conn = get(conn, Routes.user_session_path(conn, ... | 33.949495 | 91 | 0.571259 |
28b600d093b413fc82bf2f58ffa29b827f9ce0c1 | 1,507 | ex | Elixir | apps/tfcon_web/lib/tfcon_web/controllers/report_controller.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | apps/tfcon_web/lib/tfcon_web/controllers/report_controller.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | 2 | 2021-03-10T02:00:57.000Z | 2021-05-10T21:22:39.000Z | apps/tfcon_web/lib/tfcon_web/controllers/report_controller.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | defmodule TfconWeb.ReportController do
use TfconWeb, :controller
alias Tfcon.BankReports
alias Tfcon.Utils.DateUtils
alias Tfcon.Utils.CurrencyUtils
def day_report(conn, _params) do
{total, transactions} = BankReports.bank_transactions_of_today() |> total_and_transactions()
render(conn, "day_report.h... | 33.488889 | 96 | 0.73789 |
28b617af694f87c0399c3923cfe8d1ae0d53c065 | 73 | exs | Elixir | test/test_helper.exs | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 6 | 2017-06-13T19:35:05.000Z | 2020-05-05T06:50:34.000Z | test/test_helper.exs | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | null | null | null | test/test_helper.exs | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 1 | 2021-09-27T11:58:11.000Z | 2021-09-27T11:58:11.000Z | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(NlbPipeline.Repo, :manual)
| 14.6 | 57 | 0.794521 |
28b61da8282c4498bdb63170ca053f049d99de25 | 1,099 | ex | Elixir | lib/mgp/sales/customer.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | lib/mgp/sales/customer.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | 2 | 2020-12-22T12:30:58.000Z | 2021-05-19T10:07:26.000Z | lib/mgp/sales/customer.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | defmodule Mgp.Sales.Customer do
@moduledoc "Customer schema"
use Ecto.Schema
import Ecto.Changeset
alias Mgp.Sales.Customer
alias Mgp.Sales.Invoice
alias Mgp.Fin.Pdc
@primary_key {:id, :string, []}
schema "customers" do
field :add1, :string
field :add2, :string
field :add3, :string
fiel... | 18.316667 | 49 | 0.55869 |
28b649c3757c607c455c8a65378c8242e8ef0a1f | 417 | exs | Elixir | test/shortly_web/views/error_view_test.exs | abratashov/shortly | 39dbf813f0cf643525b9038adb39764466e75d5e | [
"MIT"
] | null | null | null | test/shortly_web/views/error_view_test.exs | abratashov/shortly | 39dbf813f0cf643525b9038adb39764466e75d5e | [
"MIT"
] | null | null | null | test/shortly_web/views/error_view_test.exs | abratashov/shortly | 39dbf813f0cf643525b9038adb39764466e75d5e | [
"MIT"
] | null | null | null | defmodule ShortlyWeb.ErrorViewTest do
use ShortlyWeb.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(ShortlyWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
as... | 27.8 | 92 | 0.733813 |
28b655affce432b8d4a6ab9f1cc98df6b5242abc | 1,802 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/list_operations_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/list_operations_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/list_operations_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.333333 | 121 | 0.749723 |
28b6db68bfd4c68ce82a37c0e07968fa8f64ea99 | 169 | exs | Elixir | priv/repo/migrations/20190506200136_add_settings_to_projects.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | priv/repo/migrations/20190506200136_add_settings_to_projects.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | priv/repo/migrations/20190506200136_add_settings_to_projects.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Repo.Migrations.AddSettingsToProjects do
use Ecto.Migration
def change do
alter table(:projects) do
add :settings, :jsonb
end
end
end
| 16.9 | 54 | 0.715976 |
28b738a8d67f219d05a958e2813bdb6fe8aeec34 | 1,805 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/api_level_condition.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/api_level_condition.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/api_level_condition.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.604167 | 210 | 0.760665 |
28b74374dd9b9875d19f904cf48c063677a41efc | 2,261 | ex | Elixir | clients/file/lib/google_api/file/v1/model/list_backups_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/model/list_backups_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/file/lib/google_api/file/v1/model/list_backups_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.660377 | 431 | 0.73065 |
28b774e6705064e2f9d8086c72556281968fb7d6 | 344 | exs | Elixir | config/test.exs | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | config/test.exs | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | config/test.exs | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | use Mix.Config
config :ecto_job_scheduler, EctoJobScheduler.Test.Repo,
adapter: Ecto.Adapters.Postgres,
pool: Ecto.Adapters.SQL.Sandbox,
priv: "test/support/"
config :ecto_job_scheduler, ecto_repos: [EctoJobScheduler.Test.Repo]
config :ecto_job_scheduler, EctoJobScheduler.Test.TestJob, max_attempts: "5"
confi... | 26.461538 | 76 | 0.787791 |
28b779e3833dff182d49e2361df7fcb1af614d27 | 22,262 | ex | Elixir | deps/phoenix/lib/phoenix/router.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router do
defmodule NoRouteError do
@moduledoc """
Exception raised when no route is found.
"""
defexception plug_status: 404, message: "no route found", conn: nil, router: nil
def exception(opts) do
conn = Keyword.fetch!(opts, :conn)
router = Keyword.fetch!(opts, ... | 30.3297 | 129 | 0.638846 |
28b789f3573b763507a70fa5b3873114a7ac4d1f | 1,591 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/images_delete_all_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/images_delete_all_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/images_delete_all_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... | 33.851064 | 117 | 0.751728 |
28b78c4faa4677227ab5c9b93f9634d06b2e6eb6 | 2,424 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__detected_landmark.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__detected_landmark.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__detected_landmark.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... | 37.875 | 279 | 0.744224 |
28b7c4053e245801c0ccfde12f08f2db21bc45fd | 1,116 | ex | Elixir | lib/w_web/router.ex | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | lib/w_web/router.ex | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | lib/w_web/router.ex | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | defmodule WWeb.Router do
use WWeb, :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 "/", WWeb do
pipe_through :browser
... | 23.744681 | 70 | 0.666667 |
28b7c5093aeb34d36ff7d6c03a168ce55ccde94d | 510 | exs | Elixir | apps/tai/test/tai/venues/adapters/bitmex/products_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venues/adapters/bitmex/products_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venues/adapters/bitmex/products_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Venues.Adapters.Bitmex.ProductsTest do
use ExUnit.Case, async: false
import Mock
@test_venues Tai.TestSupport.Helpers.test_venue_adapters()
setup_all do
venue = @test_venues |> Map.fetch!(:bitmex)
{:ok, %{venue: venue}}
end
test "bubbles errors without the rate limit", %{venue: venu... | 28.333333 | 96 | 0.7 |
28b7c79a59202657ffed383ce5c1843935bf423c | 1,645 | ex | Elixir | farmbot_ext/lib/farmbot_ext/jwt.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_ext/lib/farmbot_ext/jwt.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_ext/lib/farmbot_ext/jwt.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotExt.JWT do
@moduledoc "Functions for dealing with the Farmbot JSON Web Token"
defstruct [
:bot,
:exp,
:iss,
:mqtt,
:mqtt_ws,
:vhost,
:os_update_server,
:beta_os_update_server
]
alias FarmbotExt.JWT
alias FarmbotCore.JSON
@typedoc "Type def for Farmbot Web ... | 23.5 | 75 | 0.558663 |
28b7ee09151229ffe8328ce6da0f514a325b6075 | 75 | exs | Elixir | test/views/layout_view_test.exs | CristianOliveiraDaRosa/doitbetter | 8ce9f1b558a966d199df369a84d2c66cee58b8d7 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | CristianOliveiraDaRosa/doitbetter | 8ce9f1b558a966d199df369a84d2c66cee58b8d7 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | CristianOliveiraDaRosa/doitbetter | 8ce9f1b558a966d199df369a84d2c66cee58b8d7 | [
"MIT"
] | null | null | null | defmodule DibSite.LayoutViewTest do
use DibSite.ConnCase, async: true
end | 25 | 35 | 0.826667 |
28b81ff64f626ce648eef8db7338b0fad4ad86d4 | 1,028 | exs | Elixir | config/config.exs | rwdaigle/scrollex | 17341ad8adac9ceb2eb806ed868664d47a7244d0 | [
"MIT"
] | 53 | 2015-06-16T12:40:08.000Z | 2020-11-17T17:55:30.000Z | config/config.exs | rwdaigle/scrollex | 17341ad8adac9ceb2eb806ed868664d47a7244d0 | [
"MIT"
] | 14 | 2015-06-16T14:36:57.000Z | 2018-10-03T23:59:41.000Z | config/config.exs | rwdaigle/scrollex | 17341ad8adac9ceb2eb806ed868664d47a7244d0 | [
"MIT"
] | 14 | 2015-06-16T13:41:29.000Z | 2017-04-19T19:08:47.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 39.538462 | 73 | 0.744163 |
28b82ce13f497ae0b22a330e18dada064a81b7ab | 20,693 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/content_rating.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/content_rating.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/content_rating.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... | 63.670769 | 330 | 0.695549 |
28b82d41b3cc769c710e868f888ea32e5fb56690 | 3,634 | ex | Elixir | lib/sparrow/api.ex | muratgurdal/sparrow | 0bb9ff4c4ab21802bcba369b3496749d2637b473 | [
"Apache-2.0"
] | null | null | null | lib/sparrow/api.ex | muratgurdal/sparrow | 0bb9ff4c4ab21802bcba369b3496749d2637b473 | [
"Apache-2.0"
] | null | null | null | lib/sparrow/api.ex | muratgurdal/sparrow | 0bb9ff4c4ab21802bcba369b3496749d2637b473 | [
"Apache-2.0"
] | 1 | 2021-07-06T11:29:18.000Z | 2021-07-06T11:29:18.000Z | defmodule Sparrow.API do
@moduledoc """
Sparrow main API.
"""
use Sparrow.Telemetry.Timer
require Logger
@type notification ::
Sparrow.FCM.V1.Notification.t() | Sparrow.APNS.Notification.t() | Sparrow.HNS.V1.Notification.t()
@type sync_push_result ::
Sparrow.FCM.V1.sync_push_result() ... | 37.081633 | 113 | 0.671987 |
28b82fcbab28c7a02f505bfa91d626d8dca6c113 | 78 | exs | Elixir | test/phelmx_web/views/page_view_test.exs | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | test/phelmx_web/views/page_view_test.exs | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | test/phelmx_web/views/page_view_test.exs | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | defmodule PhelmxWeb.PageViewTest do
use PhelmxWeb.ConnCase, async: true
end
| 19.5 | 37 | 0.820513 |
28b855654569f459d07b70c36fabf58b628013be | 141 | exs | Elixir | src/elixir/test/ocap_test_test.exs | leelegant/ocap-example | bc45ab870690275490304292c5910530d875cbc8 | [
"MIT"
] | 5 | 2018-08-05T04:33:53.000Z | 2018-08-14T03:44:16.000Z | src/elixir/test/ocap_test_test.exs | leelegant/ocap-example | bc45ab870690275490304292c5910530d875cbc8 | [
"MIT"
] | 23 | 2018-08-05T11:25:53.000Z | 2019-10-27T09:37:17.000Z | src/elixir/test/ocap_test_test.exs | leelegant/ocap-example | bc45ab870690275490304292c5910530d875cbc8 | [
"MIT"
] | 1 | 2019-06-04T07:06:17.000Z | 2019-06-04T07:06:17.000Z | defmodule OcapTestTest do
use ExUnit.Case
doctest OcapTest
test "greets the world" do
assert OcapTest.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
28b87d3187fc05499a995d02defbc05b1d109bf8 | 2,253 | ex | Elixir | apps/language_server/lib/language_server/dialyzer/utils.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/lib/language_server/dialyzer/utils.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/lib/language_server/dialyzer/utils.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.LanguageServer.Dialyzer.Utils do
@epoch_gregorian_seconds 62_167_219_200
@spec dialyzable?(module()) :: boolean()
def dialyzable?(module) do
file = get_beam_file(module)
is_list(file) and match?({:ok, _}, :dialyzer_utils.get_core_from_beam(file))
end
@spec get_beam_file(module()) ... | 28.884615 | 99 | 0.651576 |
28b883d547107535657a5059cd850dce7213996d | 167 | exs | Elixir | .formatter.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | .formatter.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2018-02-08T23:08:43.000Z | 2018-02-08T23:08:43.000Z | .formatter.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | # Used by "mix format"
[
inputs: [
"{mix,.formatter}.exs",
"{config,src}/*/test/exunit/*.{ex,exs}"
],
line_length: 90,
rename_deprecated_at: "1.5.0"
]
| 16.7 | 43 | 0.57485 |
28b88c9e844217a883a34e0a4e6d6c4402538ba6 | 396 | ex | Elixir | rna-transcription/lib/rna_transcription.ex | kathryn-sanders/Exercism-Elixir-Track | 962ddc8c35e6a2b34b71be40a3171631a061c314 | [
"MIT"
] | null | null | null | rna-transcription/lib/rna_transcription.ex | kathryn-sanders/Exercism-Elixir-Track | 962ddc8c35e6a2b34b71be40a3171631a061c314 | [
"MIT"
] | null | null | null | rna-transcription/lib/rna_transcription.ex | kathryn-sanders/Exercism-Elixir-Track | 962ddc8c35e6a2b34b71be40a3171631a061c314 | [
"MIT"
] | null | null | null | defmodule RnaTranscription do
@doc """
Transcribes a character list representing DNA nucleotides to RNA
## Examples
iex> RnaTranscription.to_rna('ACTG')
'UGAC'
"""
@spec to_rna([char]) :: [char]
def to_rna(dna) do
Enum.map(dna, &char_case/1)
end
def char_case(char) do
case char do
... | 13.655172 | 66 | 0.573232 |
28b89230a1cf88af154579325804d1cf4921cea4 | 367 | ex | Elixir | lib/beebee.ex | system76/beebee | d0ea97856bdb5a7251ad2e267a22fda0a3706344 | [
"MIT"
] | 61 | 2016-05-20T20:41:03.000Z | 2022-01-14T16:50:24.000Z | lib/beebee.ex | system76/beebee | d0ea97856bdb5a7251ad2e267a22fda0a3706344 | [
"MIT"
] | 4 | 2016-09-07T17:19:41.000Z | 2022-03-15T20:41:08.000Z | lib/beebee.ex | system76/beebee | d0ea97856bdb5a7251ad2e267a22fda0a3706344 | [
"MIT"
] | 12 | 2016-12-09T19:55:42.000Z | 2022-01-15T00:27:27.000Z | defmodule BeeBee do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(__MODULE__, [], function: :run),
worker(BeeBee.Redis, [])
]
opts = [strategy: :one_for_one]
Supervisor.start_link(children, opts)
end
def run do
Plug.Ad... | 17.47619 | 47 | 0.648501 |
28b8b07c01744ac1620a67949e44f2fd01ea0e7d | 13,727 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/api/column.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/api/column.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/api/column.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.788406 | 170 | 0.669119 |
28b8c4e7309bba97ca8015126dcfe0e3d1b16e48 | 4,384 | ex | Elixir | lib/code_santa/slack_client.ex | Blond11516/code-santa | 0b5ac9a2bad1ce692e8b9f1b94de8eb497488c74 | [
"MIT"
] | null | null | null | lib/code_santa/slack_client.ex | Blond11516/code-santa | 0b5ac9a2bad1ce692e8b9f1b94de8eb497488c74 | [
"MIT"
] | null | null | null | lib/code_santa/slack_client.ex | Blond11516/code-santa | 0b5ac9a2bad1ce692e8b9f1b94de8eb497488c74 | [
"MIT"
] | null | null | null | defmodule CodeSanta.SlackClient do
alias CodeSanta.AdventOfCode
alias CodeSanta.Puzzle
@announcement_block "HO! HO! HO! Un nouveau puzzle de l'Avent est arrivé! Sauras-tu le résoudre?"
@type slack_paragraph :: %{
String.t() => String.t(),
String.t() => %{String.t() => String.t(), String.t(... | 30.234483 | 99 | 0.643248 |
28b8d0428e4c709ab1b118d2b2d9f83207df7970 | 427 | exs | Elixir | config/test.exs | oleksandr-dyachenko/ita | e7287bb79c19b4f7e5decc4cbd5291c70ad53b8f | [
"MIT"
] | null | null | null | config/test.exs | oleksandr-dyachenko/ita | e7287bb79c19b4f7e5decc4cbd5291c70ad53b8f | [
"MIT"
] | null | null | null | config/test.exs | oleksandr-dyachenko/ita | e7287bb79c19b4f7e5decc4cbd5291c70ad53b8f | [
"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 :ita, ItaWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :ita, Ita.Repo,
username: ... | 22.473684 | 56 | 0.711944 |
28b8d87e78370fa62f14270321d6ce45e6eecfa4 | 583 | ex | Elixir | lib/codes/codes_o48.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_o48.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_o48.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_O48 do
alias IcdCode.ICDCode
def _O480 do
%ICDCode{full_code: "O480",
category_code: "O48",
short_code: "0",
full_name: "Post-term pregnancy",
short_name: "Post-term pregnancy",
category_name: "Post-term pregnancy"
}
end... | 23.32 | 46 | 0.591767 |
28b8da8b7c5d406df9cbafa4b1b20ba855197e32 | 1,093 | exs | Elixir | test/scenic/component/button_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | test/scenic/component/button_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | test/scenic/component/button_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on July 15, 2018
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Component.ButtonTest do
use ExUnit.Case, async: true
doctest Scenic
# alias Scenic.Component
alias Scenic.Component.Button
# =========================================================... | 25.418605 | 80 | 0.527905 |
28b91167e089bf7bd16e8cc584384d599fbaed75 | 697 | exs | Elixir | test/dialyzex_test.exs | rbino/dialyzex | 07c052b3475dff8965656fc47968b57908c8463e | [
"Apache-2.0"
] | 63 | 2017-11-28T15:51:09.000Z | 2020-09-25T03:46:38.000Z | test/dialyzex_test.exs | rbino/dialyzex | 07c052b3475dff8965656fc47968b57908c8463e | [
"Apache-2.0"
] | 22 | 2017-11-28T19:27:17.000Z | 2021-07-06T15:30:56.000Z | test/dialyzex_test.exs | rbino/dialyzex | 07c052b3475dff8965656fc47968b57908c8463e | [
"Apache-2.0"
] | 9 | 2017-11-28T20:36:37.000Z | 2021-03-29T04:35:30.000Z | # Copyright 2017 Comcast Cable Communications Management, 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 applica... | 38.722222 | 74 | 0.771879 |
28b91bedb3126b025006ab614872106838ae1520 | 522 | exs | Elixir | priv/repo/migrations/20210412023051_create_article_comment_replies.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210412023051_create_article_comment_replies.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210412023051_create_article_comment_replies.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.CreateArticleCommentReplies do
use Ecto.Migration
def change do
create table(:articles_comments_replies) do
add(:article_comment_id, references(:articles_comments, on_delete: :delete_all), null: false)
add(:reply_to_id, references(:articles_comments, on_del... | 30.705882 | 99 | 0.758621 |
28b94594109ea7a39b3c8c512bc542395f5c0a50 | 141 | exs | Elixir | test/jose_utils_test.exs | tanguilp/jose_utils | 8a0ecccbe023549255a52261fb44ce9e2a25af8e | [
"Apache-2.0"
] | null | null | null | test/jose_utils_test.exs | tanguilp/jose_utils | 8a0ecccbe023549255a52261fb44ce9e2a25af8e | [
"Apache-2.0"
] | null | null | null | test/jose_utils_test.exs | tanguilp/jose_utils | 8a0ecccbe023549255a52261fb44ce9e2a25af8e | [
"Apache-2.0"
] | null | null | null | defmodule JOSEUtilsTest do
use ExUnit.Case
doctest JOSEUtils
doctest JOSEUtils.JWE
doctest JOSEUtils.JWK
doctest JOSEUtils.JWS
end
| 17.625 | 26 | 0.801418 |
28b95b46b20d9b11b33da0df8a69053e037d5b68 | 2,163 | exs | Elixir | test/glimesh_web/live/user_live/stream_test.exs | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | test/glimesh_web/live/user_live/stream_test.exs | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | test/glimesh_web/live/user_live/stream_test.exs | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserLive.StreamTest do
use GlimeshWeb.ConnCase
import Glimesh.AccountsFixtures
import Phoenix.LiveViewTest
describe "Stream Page" do
setup do
streamer = streamer_fixture()
%{
channel: streamer.channel,
streamer: streamer
}
end
test "shows a ... | 24.862069 | 94 | 0.596856 |
28b9666903d57eee1b6fb4a4d7bb9e949294a738 | 2,451 | ex | Elixir | lib/aws_credentials/providers/environment.ex | s22su/ex_aws_credentials | 704cea163a675047f99924a39cf20e104e9d66c7 | [
"MIT"
] | 1 | 2021-01-25T08:48:06.000Z | 2021-01-25T08:48:06.000Z | lib/aws_credentials/providers/environment.ex | s22su/ex_aws_credentials | 704cea163a675047f99924a39cf20e104e9d66c7 | [
"MIT"
] | null | null | null | lib/aws_credentials/providers/environment.ex | s22su/ex_aws_credentials | 704cea163a675047f99924a39cf20e104e9d66c7 | [
"MIT"
] | null | null | null | defmodule AwsCredentials.Providers.Environment do
@moduledoc """
Module that fetches AWS credentials from environment variables.
When multiple environment variables are provided for the same credential,
the value of the last one in the list will be used.
"""
@behaviour AwsCredentials.ProviderBehaviour
... | 28.5 | 90 | 0.71481 |
28b97953f1c4eb38fe7cc76866519737122d667e | 1,474 | ex | Elixir | lib/teiserver/account/reports/time_spent_report.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/account/reports/time_spent_report.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/account/reports/time_spent_report.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Account.TimeSpentReport do
alias Central.Helpers.DatePresets
alias Teiserver.Account
@spec icon() :: String.t()
def icon(), do: "far fa-satellite-dish"
@spec run(Plug.Conn.t(), map()) :: {list(), map()}
def run(_conn, params) do
params = apply_defaults(params)
# Date range
... | 24.983051 | 67 | 0.580054 |
28b98cee73c690e59251941e9ec30c879a460877 | 13,229 | ex | Elixir | clients/spectrum/lib/google_api/spectrum/v1explorer/api/paws.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spectrum/lib/google_api/spectrum/v1explorer/api/paws.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spectrum/lib/google_api/spectrum/v1explorer/api/paws.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.078292 | 276 | 0.698692 |
28b9a22c3cf32d52b6db420f188aff68f8c7f1da | 995 | ex | Elixir | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_public_ip_address_configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_public_ip_address_configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_public_ip_address_configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Compute.Model.VirtualMachineScaleSetPublicIpAddressConfiguration do
@moduledoc """
Describes a virtual machines sca... | 33.166667 | 154 | 0.779899 |
28b9b3486da153b1ae9480c896b1a4450a97ac05 | 1,184 | ex | Elixir | lib/schocken.ex | jannikbecher/schocken | ea45d27dbbbbfa540aebeba55f82f420c7ddda8f | [
"MIT"
] | null | null | null | lib/schocken.ex | jannikbecher/schocken | ea45d27dbbbbfa540aebeba55f82f420c7ddda8f | [
"MIT"
] | null | null | null | lib/schocken.ex | jannikbecher/schocken | ea45d27dbbbbfa540aebeba55f82f420c7ddda8f | [
"MIT"
] | null | null | null | defmodule Schocken do
@moduledoc """
Documentation for Schocken.
"""
alias Schocken.Game
alias Schocken.Game.Player
@doc """
Starting a new game from known game status
"""
def new_game(%{} = game_state) do
players = Enum.map(game_state.players, &struct(Player, &1))
game_state = Map.put(game_... | 21.925926 | 65 | 0.652027 |
28b9bbc2a81d36187589c8b0e7acd143ac83f33b | 11,309 | exs | Elixir | test/sanbase_web/graphql/user/user_settings_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase_web/graphql/user/user_settings_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase_web/graphql/user/user_settings_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.UserSettingsTest do
use SanbaseWeb.ConnCase, async: false
alias Sanbase.Accounts.UserSettings
import SanbaseWeb.Graphql.TestHelpers
import Sanbase.Factory
import Sanbase.TestHelpers
setup_all_with_mocks([
{Sanbase.Email.Mailchimp, [:passthrough], [unsubscribe_email: fn _ ... | 31.068681 | 101 | 0.63843 |
28b9ed4d9894d3f673acbf775960dda044a24b1e | 198 | exs | Elixir | farmbot_os/config/target/rpi0.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_os/config/target/rpi0.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_os/config/target/rpi0.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | use Mix.Config
config :farmbot_core, FarmbotCore.FirmwareOpenTask, attempt_threshold: 50
config :farmbot, FarmbotOS.Init.Supervisor,
init_children: [
FarmbotOS.Platform.Target.RTCWorker
]
| 22 | 73 | 0.792929 |
28ba28b064c45ce4d4cc624f7ff379580451d718 | 708 | ex | Elixir | lib/spender_web/gettext.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 2 | 2018-02-27T06:29:59.000Z | 2018-06-09T16:53:49.000Z | lib/spender_web/gettext.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 94 | 2018-02-22T06:03:19.000Z | 2018-06-28T14:30:31.000Z | lib/spender_web/gettext.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 1 | 2020-03-04T19:41:06.000Z | 2020-03-04T19:41:06.000Z | defmodule SpenderWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import SpenderWeb.Gettext
# Simple translation
gettext "Here is t... | 28.32 | 72 | 0.680791 |
28ba3a1198005e9ea5ea4ca746fb7489b9f9cd29 | 2,104 | exs | Elixir | test/test_helper.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 3 | 2021-11-23T23:07:34.000Z | 2021-11-24T01:40:01.000Z | test/test_helper.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | null | null | null | test/test_helper.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 1 | 2021-07-19T11:48:30.000Z | 2021-07-19T11:48:30.000Z | {:ok, _} = Application.ensure_all_started(:ex_machina)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Shikoba.Repo, :manual)
defmodule TestHelper do
import Plug.Conn
import Phoenix.ConnTest
use ExUnit.Case
import Shikoba.Factory
alias Shikoba.Accounts.User
alias Shikoba.Auth.Tokens
alias Shikoba.Repo
... | 27.324675 | 115 | 0.661597 |
28ba44da1d447443959c6bbc75c8da751cb96a4c | 567 | ex | Elixir | lib/bracketeer_web/views/changeset_view.ex | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 1 | 2019-06-20T20:29:10.000Z | 2019-06-20T20:29:10.000Z | lib/bracketeer_web/views/changeset_view.ex | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 3 | 2020-07-16T23:11:31.000Z | 2021-05-08T14:44:21.000Z | lib/bracketeer_web/views/changeset_view.ex | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | null | null | null | defmodule BracketeerWeb.ChangesetView do
use BracketeerWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`BracketeerWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(chan... | 28.35 | 66 | 0.742504 |
28ba5eebe4e4799e3823b3072faf405ec32da6af | 337 | exs | Elixir | config/prod.exs | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | config/prod.exs | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | config/prod.exs | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | use Mix.Config
config :entice_web, Entice.Web.Endpoint,
http: [port: {:system, "PORT"}],
url: [
host: (System.get_env("HOST_NAME") || "to.entice.so"),
port: (System.get_env("HOST_PORT") || 80)],
cache_static_manifest: "priv/static/manifest.json"
# Do not print debug messages in production
config :logger... | 25.923077 | 58 | 0.679525 |
28ba606117a916733dcb351303099ea792d91d95 | 1,899 | ex | Elixir | clients/drive/lib/google_api/drive/v3/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.973684 | 144 | 0.749868 |
28ba63f2b7099d7954c2d91958b4eb6e2197ae71 | 571 | exs | Elixir | apps/ok/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/ok/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/ok/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Ok.MixProject do
use Mix.Project
def project do
[
app: :ok,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,... | 18.419355 | 64 | 0.495622 |
28ba6c7189225d7ceecac0d22932ba2387501e38 | 1,973 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/acl_rule_scope.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/calendar/lib/google_api/calendar/v3/model/acl_rule_scope.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/calendar/lib/google_api/calendar/v3/model/acl_rule_scope.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... | 36.537037 | 174 | 0.704004 |
28ba76cd3b637cb54849b9ac939ef40e1489e6ca | 11,426 | ex | Elixir | lib/coder_ring.ex | instinctscience/coder_ring | dfa3e66893e15c6e69974cfe709d3380d01bf7d1 | [
"MIT"
] | null | null | null | lib/coder_ring.ex | instinctscience/coder_ring | dfa3e66893e15c6e69974cfe709d3380d01bf7d1 | [
"MIT"
] | null | null | null | lib/coder_ring.ex | instinctscience/coder_ring | dfa3e66893e15c6e69974cfe709d3380d01bf7d1 | [
"MIT"
] | null | null | null | defmodule CoderRing do
@moduledoc File.read!("README.md")
import Ecto.Query
alias CoderRing.{Code, Memo}
alias Ecto.Changeset
require Logger
# 32 (readable) chars for codes: 2-9, A-Z (minus I and O)
@chars ~w(V S E 2 9 3 A H 7 Q 6 R 4 B T 5 C L X G J Z F P D W U K Y M 8 N)
# Default length of base cod... | 32.552707 | 96 | 0.622878 |
28ba9438cfc2c2538eed90fa16ad9c3068f5630b | 560 | exs | Elixir | config/releases.exs | kw7oe/til | 5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815 | [
"MIT"
] | null | null | null | config/releases.exs | kw7oe/til | 5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815 | [
"MIT"
] | 2 | 2020-04-26T14:03:27.000Z | 2020-12-12T17:14:02.000Z | config/releases.exs | kw7oe/til | 5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815 | [
"MIT"
] | null | null | null | import Config
config :til, TilWeb.Endpoint,
http: [:inet6, port: System.fetch_env!("PORT")],
secret_key_base: System.fetch_env!("SECRET_KEY_BASE")
config :til, Til.Repo,
url: System.fetch_env!("DATABASE_URL"),
pool_size: 15
# Update provider configuration
config :ueberauth, Ueberauth.Strategy.Github.OAuth,
... | 28 | 58 | 0.755357 |
28baeb52aaa678744d4badae052ec290d8efdad8 | 2,136 | exs | Elixir | recallr/config/dev.exs | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | null | null | null | recallr/config/dev.exs | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | 1 | 2021-03-24T14:49:29.000Z | 2021-03-24T14:49:29.000Z | recallr/config/dev.exs | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | 5 | 2021-03-21T19:45:38.000Z | 2021-03-24T14:53:07.000Z | use Mix.Config
# Configure your database
config :recallr, Recallr.Repo,
username: "postgres",
password: "postgres",
database: "recallr_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading... | 27.74026 | 68 | 0.690543 |
28baf2a8146d7a010b0139249839935b12929819 | 968 | ex | Elixir | lib/api/util.ex | cnrad/lanyard | 780fe08435f7f0219e725c9676c92a378dfe2781 | [
"MIT"
] | 2 | 2021-05-14T20:39:09.000Z | 2021-07-23T12:18:57.000Z | lib/api/util.ex | cnrad/lanyard | 780fe08435f7f0219e725c9676c92a378dfe2781 | [
"MIT"
] | null | null | null | lib/api/util.ex | cnrad/lanyard | 780fe08435f7f0219e725c9676c92a378dfe2781 | [
"MIT"
] | null | null | null | defmodule Lanyard.Api.Util do
import Plug.Conn
@spec redirect(Plug.Conn.t(), binary) :: Plug.Conn.t()
def redirect(conn, url) do
conn
|> put_resp_header("location", url)
|> send_resp(:found, url)
end
@spec respond(Plug.Conn.t(), {:ok, any}) :: Plug.Conn.t()
def respond(conn, {:ok, data}) do
... | 24.820513 | 71 | 0.596074 |
28bb55bf0c66e9886e149d3cc193ec53474b44f7 | 2,850 | ex | Elixir | lib/pipe_helpers.ex | moranda/ex-pipe-helpers | e3025e001118ef17f6abb8a063826d7a597e2479 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/pipe_helpers.ex | moranda/ex-pipe-helpers | e3025e001118ef17f6abb8a063826d7a597e2479 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/pipe_helpers.ex | moranda/ex-pipe-helpers | e3025e001118ef17f6abb8a063826d7a597e2479 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule PipeHelpers do
@moduledoc """
Helper for piping data
"""
@doc """
Wrap into ok tuple
## Example
iex> socket = "socket"
...> socket |> ok()
{:ok, "socket"}
"""
def ok(val) do
{:ok, val}
end
@doc """
Wrap into noreply tuple (genserver and phoenix socket format)
... | 17.065868 | 82 | 0.517544 |
28bb6064877978f2dacd4281d26c5ee0e63f32c8 | 57 | exs | Elixir | config/config.exs | jochenboesmans/static-server-elixir | 605dce5a336504616ca8a2facb8c62b72ec2da5d | [
"MIT"
] | null | null | null | config/config.exs | jochenboesmans/static-server-elixir | 605dce5a336504616ca8a2facb8c62b72ec2da5d | [
"MIT"
] | null | null | null | config/config.exs | jochenboesmans/static-server-elixir | 605dce5a336504616ca8a2facb8c62b72ec2da5d | [
"MIT"
] | null | null | null | use Mix.Config
config :static_server_elixir, port: 5000
| 14.25 | 40 | 0.807018 |
28bb92d17f83848b52108084866ff94533ac3c31 | 8,907 | ex | Elixir | lib/grpc/server.ex | jordan0day/grpc-elixir | d07d1357b2c105258f77b908482f694bd11b3c8d | [
"Apache-2.0"
] | null | null | null | lib/grpc/server.ex | jordan0day/grpc-elixir | d07d1357b2c105258f77b908482f694bd11b3c8d | [
"Apache-2.0"
] | null | null | null | lib/grpc/server.ex | jordan0day/grpc-elixir | d07d1357b2c105258f77b908482f694bd11b3c8d | [
"Apache-2.0"
] | null | null | null | defmodule GRPC.Server do
@moduledoc """
A gRPC server which handles requests by calling user-defined functions.
You should pass a `GRPC.Service` in when *use* the module:
defmodule Greeter.Service do
use GRPC.Service, name: "ping"
rpc :SayHello, Request, Reply
rpc :SayGoodbye, str... | 29.493377 | 101 | 0.638711 |
28bbaeda6982c32cd8d59d81955ee106018be0b9 | 8,402 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 65.640625 | 198 | 0.725661 |
28bbb5f0992aa316202d3ee921227451df162b0b | 773 | ex | Elixir | test/support/factory.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 30 | 2018-06-16T00:41:59.000Z | 2021-03-05T08:39:02.000Z | test/support/factory.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 221 | 2018-01-15T20:33:13.000Z | 2022-02-16T00:53:35.000Z | test/support/factory.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 5 | 2018-02-20T17:25:19.000Z | 2018-12-29T00:09:30.000Z | defmodule Chess.Factory do
@moduledoc false
alias Chess.Store.User
alias Chess.Store.Game
alias Chess.Repo
def insert(_resource, _params \\ %{})
def insert(:user, new_params) do
params =
%{
name: "Link",
email: "link@hyrule.com",
password: "ilovezelda"
}
|> M... | 17.568182 | 39 | 0.566624 |
28bc223211f21b4ff13db43f7c4cb17418aa7d99 | 17,324 | exs | Elixir | priv/repo/migrations/20211012213544_initial_migration.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | priv/repo/migrations/20211012213544_initial_migration.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | priv/repo/migrations/20211012213544_initial_migration.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Asset.Repo.Migrations.InitialMigration do
use Ecto.Migration
def up do
execute(
"CREATE TABLE IF NOT EXISTS \"bool_values\" (\"id\" INTEGER PRIMARY KEY, \"value\" BOOLEAN);"
)
execute(
"CREATE TABLE IF NOT EXISTS \"configs\" (\"id\" INTEGER PRIMARY KEY, \"group_id\" I... | 75.321739 | 3,971 | 0.692854 |
28bc37aa4d12e74bda492e6f0d6a7561d67a5638 | 758 | ex | Elixir | lib/komi_chan_web/controllers/threads_controller.ex | neftalyluis/komi_chan | 7b4f1b0163f66ca5b193e27d514de4e6d88a7672 | [
"MIT"
] | 4 | 2020-01-20T05:54:44.000Z | 2021-01-21T00:15:19.000Z | lib/komi_chan_web/controllers/threads_controller.ex | neftalyluis/komi_chan | 7b4f1b0163f66ca5b193e27d514de4e6d88a7672 | [
"MIT"
] | 65 | 2019-06-28T06:35:54.000Z | 2022-02-28T10:16:49.000Z | lib/komi_chan_web/controllers/threads_controller.ex | neftalyluis/komi_chan | 7b4f1b0163f66ca5b193e27d514de4e6d88a7672 | [
"MIT"
] | 1 | 2019-01-31T19:17:15.000Z | 2019-01-31T19:17:15.000Z | defmodule KomiChanWeb.ThreadsController do
use KomiChanWeb, :controller
alias KomiChan.Repositories.Thread, as: ThreadRepo
action_fallback KomiChanWeb.FallbackController
def index(conn, _params) do
render(conn, "index.json", threads: ThreadRepo.all())
end
def show(conn, %{"id" => thread_id}) do
... | 21.657143 | 72 | 0.596306 |
28bc634e0a018b6589c3e10ce785d9d7b9d4ad05 | 16,387 | ex | Elixir | lib/hex/remote_converger.ex | isaacsanders/hex | ba819ef4e0b29cb22ad029aa96301ce4b60b86af | [
"Apache-2.0"
] | null | null | null | lib/hex/remote_converger.ex | isaacsanders/hex | ba819ef4e0b29cb22ad029aa96301ce4b60b86af | [
"Apache-2.0"
] | null | null | null | lib/hex/remote_converger.ex | isaacsanders/hex | ba819ef4e0b29cb22ad029aa96301ce4b60b86af | [
"Apache-2.0"
] | null | null | null | defmodule Hex.RemoteConverger do
@moduledoc false
@behaviour Mix.RemoteConverger
alias Hex.Registry.Server, as: Registry
def post_converge() do
Hex.UpdateChecker.check()
if Hex.State.get(:print_sponsored_tip) do
Hex.Shell.info(
"You have added/upgraded packages you could sponsor, " <>
... | 28.253448 | 119 | 0.606822 |
28bc90544657287f36018e927e38be7c0876b1fa | 350 | exs | Elixir | priv/repo/seeds.exs | FunctioningIdiots/jilo-server | a5911608bff636c1e50afbc1a0244bc25a363eb7 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | FunctioningIdiots/jilo-server | a5911608bff636c1e50afbc1a0244bc25a363eb7 | [
"MIT"
] | 1 | 2016-01-26T13:08:13.000Z | 2020-07-09T16:40:23.000Z | priv/repo/seeds.exs | FunctioningIdiots/jilo-server | a5911608bff636c1e50afbc1a0244bc25a363eb7 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Jilosrv.Repo.insert!(%Jilosrv.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will ... | 29.166667 | 61 | 0.705714 |
28bca16ee769e16b0c70fff91be9b821eb719987 | 1,367 | ex | Elixir | lib/temple/parser/nonvoid_elements_aliases.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | lib/temple/parser/nonvoid_elements_aliases.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | lib/temple/parser/nonvoid_elements_aliases.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | defmodule Temple.Parser.NonvoidElementsAliases do
@moduledoc false
@behaviour Temple.Parser
defstruct name: nil, attrs: [], children: [], meta: %{}
alias Temple.Parser
@impl Parser
def applicable?({name, _, _}) do
name in Parser.nonvoid_elements_aliases()
end
def applicable?(_), do: false
@im... | 22.783333 | 83 | 0.618873 |
28bcb621b66bb4972d2b9f5b63497256b8fd5b8f | 1,774 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/app_category_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/app_category_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/app_category_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 34.115385 | 105 | 0.759865 |
28bcc47d3749d53d33fd685418a461e88f9bdfd3 | 1,388 | ex | Elixir | test/support/data_case.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:57:08.000Z | 2018-10-08T13:57:08.000Z | test/support/data_case.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:55:44.000Z | 2018-10-08T13:55:44.000Z | defmodule Twaddler.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,
it cannot be async. For this reason, every tes... | 25.703704 | 77 | 0.680836 |
28bccab0092628ba0276471f74e5343d853cd1f7 | 3,592 | ex | Elixir | lib/edgedb/protocol/codecs/builtin/decimal.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/decimal.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/decimal.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.Codecs.Builtin.Decimal do
@moduledoc false
use EdgeDB.Protocol.Codec
alias EdgeDB.Protocol.{
Datatypes,
Enums
}
require Enums.DecimalSign
@base 10_000
defbuiltinscalarcodec(
type_name: "std::decimal",
type_id: Datatypes.UUID.from_string("00000000-0000-0000-00... | 22.734177 | 98 | 0.645323 |
28bcd37708db2d34bfe1cb13b5ab4ff8d6ba787b | 243 | exs | Elixir | microService-elixir/priv/repo/migrations/20211014234434_create_messages.exs | Willian-Rodrigues/NextLevelWeek-Heat | 3b46e6e83afb08b7d779a9a82f3f51c6f124213b | [
"MIT"
] | 2 | 2021-10-30T11:53:58.000Z | 2022-02-06T02:17:06.000Z | microService-elixir/priv/repo/migrations/20211014234434_create_messages.exs | Willian-Rodrigues/NextLevelWeek-Heat | 3b46e6e83afb08b7d779a9a82f3f51c6f124213b | [
"MIT"
] | 1 | 2021-10-30T14:24:28.000Z | 2021-10-30T14:24:28.000Z | microService-elixir/priv/repo/migrations/20211014234434_create_messages.exs | Willian-Rodrigues/NextLevelWeek-Heat | 3b46e6e83afb08b7d779a9a82f3f51c6f124213b | [
"MIT"
] | null | null | null | defmodule HeatTags.Repo.Migrations.CreateMessages do
use Ecto.Migration
def change do
create table(:messages) do
add :message, :string
add :username, :string
add :email, :string
timestamps()
end
end
end
| 17.357143 | 52 | 0.662551 |
28bce5574c94cf72ac3572dfe32c6c5bd1077212 | 751 | exs | Elixir | test/cog/chat/slack/templates/embedded/group_info_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/slack/templates/embedded/group_info_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/slack/templates/embedded/group_info_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.Slack.Templates.Embedded.GroupInfoTest do
use Cog.TemplateCase
test "group-info template" do
data = %{"results" => [%{"id" => "aaaa-bbbb-cccc-dddd-eeee-ffff",
"name" => "testgroup",
"roles" => [%{"name" => "role1"},
... | 35.761905 | 77 | 0.463382 |
28bcfda121c44de9fd20add1db886175e64a6005 | 18,388 | exs | Elixir | test/attemptor_test.exs | dicarlo2/bors-ng | 0b7d6e1ccf9d5fdbce73b690da8a4f76fffc38eb | [
"Apache-2.0"
] | null | null | null | test/attemptor_test.exs | dicarlo2/bors-ng | 0b7d6e1ccf9d5fdbce73b690da8a4f76fffc38eb | [
"Apache-2.0"
] | null | null | null | test/attemptor_test.exs | dicarlo2/bors-ng | 0b7d6e1ccf9d5fdbce73b690da8a4f76fffc38eb | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Worker.AttemptorTest do
use BorsNG.Worker.TestCase
alias BorsNG.Worker.Attemptor
alias BorsNG.Database.Attempt
alias BorsNG.Database.AttemptStatus
alias BorsNG.Database.Installation
alias BorsNG.Database.Patch
alias BorsNG.Database.Project
alias BorsNG.Database.Repo
alias BorsNG.GitH... | 38.793249 | 84 | 0.491136 |
28bd46fb92efce2988be20d894173ffc4b7c8d08 | 1,678 | ex | Elixir | lib/auto_api/capabilities/valet_mode_capability.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | lib/auto_api/capabilities/valet_mode_capability.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 5 | 2018-11-29T09:48:29.000Z | 2019-11-06T12:11:35.000Z | lib/auto_api/capabilities/valet_mode_capability.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 37.288889 | 79 | 0.741955 |
28bd4d28bd1bb244f35b0a44d125240bde13ef81 | 2,956 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_list_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_list_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_list_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.055556 | 166 | 0.715156 |
28bd6f40505e5880bac0f08fe9ed8e5a65d3dcae | 1,033 | exs | Elixir | config/config.exs | Bwuak/webchat | b6668be508481a1ff480303affaebdaf28604f41 | [
"MIT"
] | null | null | null | config/config.exs | Bwuak/webchat | b6668be508481a1ff480303affaebdaf28604f41 | [
"MIT"
] | 1 | 2020-08-04T19:50:09.000Z | 2020-08-04T19:50:09.000Z | config/config.exs | Bwuak/webchat | b6668be508481a1ff480303affaebdaf28604f41 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :webchat,
ecto_repos: [Webchat.Repo]
#... | 32.28125 | 86 | 0.771539 |
28bd77e07b8231dded0324f89fd581815aed0425 | 30,222 | exs | Elixir | test/phoenix_live_view/diff_test.exs | rbino/phoenix_live_view | 90cd971774ce97c03991b867e853ecef76b07a1b | [
"MIT"
] | 1 | 2019-12-07T19:28:57.000Z | 2019-12-07T19:28:57.000Z | test/phoenix_live_view/diff_test.exs | rbino/phoenix_live_view | 90cd971774ce97c03991b867e853ecef76b07a1b | [
"MIT"
] | 1 | 2019-03-17T23:44:09.000Z | 2019-03-19T21:52:06.000Z | test/phoenix_live_view/diff_test.exs | rbino/phoenix_live_view | 90cd971774ce97c03991b867e853ecef76b07a1b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.DiffTest do
use ExUnit.Case, async: true
import Phoenix.LiveView.Helpers
alias Phoenix.LiveView.{Socket, Diff, Rendered, Component}
def basic_template(assigns) do
~L"""
<div>
<h2>It's <%= @time %></h2>
<%= @subtitle %>
</div>
"""
end
def literal_tem... | 32.185304 | 133 | 0.484912 |
28bd9d340429a9df97aeddb93944f2b7d47c1914 | 100 | exs | Elixir | memory_backend/test/memory_backend/game_test.exs | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | memory_backend/test/memory_backend/game_test.exs | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | 15 | 2020-12-23T16:09:28.000Z | 2020-12-26T22:32:47.000Z | memory_backend/test/memory_backend/game_test.exs | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | defmodule MemoryBackend.GameTest do
use ExUnit.Case, async: true
doctest MemoryBackend.Game
end
| 20 | 35 | 0.81 |
28bda1ed3243ebfca7f81c1e60839159092d45c7 | 2,887 | exs | Elixir | test/subscriptions/subscription_back_pressure_test.exs | uberbrodt/eventstore | 2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_back_pressure_test.exs | uberbrodt/eventstore | 2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_back_pressure_test.exs | uberbrodt/eventstore | 2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4 | [
"MIT"
] | 1 | 2018-07-30T18:25:06.000Z | 2018-07-30T18:25:06.000Z | defmodule EventStore.Subscriptions.SubscriptionBackPressureTest do
use EventStore.StorageCase
alias EventStore.EventFactory
alias EventStore.Subscriptions.Subscription
setup do
subscription_name = UUID.uuid4()
{:ok, %{subscription_name: subscription_name}}
end
describe "subscription over capacit... | 32.438202 | 98 | 0.7416 |
28bdab219d92249c4a3310086a2de97124cf0ba0 | 376 | ex | Elixir | lib/fatex/latex_configs/step.ex | vinicius-molina/FaTex | bbc05acef7a9697efe9ec0fe64511bce9f26a9b3 | [
"Apache-2.0"
] | 3 | 2019-12-08T19:42:39.000Z | 2020-03-17T13:02:56.000Z | lib/fatex/latex_configs/step.ex | vinicius-molina/FaTex | bbc05acef7a9697efe9ec0fe64511bce9f26a9b3 | [
"Apache-2.0"
] | 1 | 2021-03-09T19:49:41.000Z | 2021-03-09T19:49:41.000Z | lib/fatex/latex_configs/step.ex | vinicius-molina/FaTex | bbc05acef7a9697efe9ec0fe64511bce9f26a9b3 | [
"Apache-2.0"
] | 1 | 2019-12-08T19:42:42.000Z | 2019-12-08T19:42:42.000Z | defmodule Fatex.LatexConfigs.Step do
use Ecto.Schema
import Ecto.Changeset
alias Fatex.LatexConfigs.{Section, Model}
schema "steps" do
field :name, :string
has_many(:sections, Section)
belongs_to(:model, Model)
timestamps()
end
def changeset(model, attrs) do
model
|> cast(attrs, ~... | 18.8 | 43 | 0.678191 |
28bdbedf78c2cd0040acbabc2baa430d2c6dcda8 | 1,438 | exs | Elixir | mix.exs | carguero/carguero_ex_audit | aab186a9e3ed53052869953b3673fc9749d50c85 | [
"MIT"
] | 2 | 2021-01-28T00:19:17.000Z | 2021-01-29T14:47:02.000Z | mix.exs | carguero/carguero_ex_audit | aab186a9e3ed53052869953b3673fc9749d50c85 | [
"MIT"
] | null | null | null | mix.exs | carguero/carguero_ex_audit | aab186a9e3ed53052869953b3673fc9749d50c85 | [
"MIT"
] | null | null | null | defmodule CargueroExAudit.Mixfile do
use Mix.Project
def project do
[
description: "Ecto auditing library that transparently tracks changes and can revert them",
app: :carguero_ex_audit,
version: "0.0.1",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
... | 24.372881 | 97 | 0.571627 |
28bdd966330044598bf9df6e736efc15232d40e2 | 1,773 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/worker_assigned_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/genomics/lib/google_api/genomics/v1/model/worker_assigned_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/genomics/lib/google_api/genomics/v1/model/worker_assigned_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.45283 | 111 | 0.709532 |
28bde44ade94e186a76ebb0f4777251cd914f275 | 257 | ex | Elixir | lib/hologram/compiler/call_graph_builder/elixir_map.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/call_graph_builder/elixir_map.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/call_graph_builder/elixir_map.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | # TODO: test
alias Hologram.Compiler.CallGraphBuilder
defimpl CallGraphBuilder, for: Map do
def build(map, module_defs, templates, from_vertex) do
map
|> Map.to_list()
|> CallGraphBuilder.build(module_defs, templates, from_vertex)
end
end
| 21.416667 | 66 | 0.743191 |
28bde7b13673a7a9dde61d528c680aaeefa6a44c | 67 | exs | Elixir | test/lastfm_elixir_test.exs | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | test/lastfm_elixir_test.exs | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | test/lastfm_elixir_test.exs | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | defmodule ElixirfmTest do
use ExUnit.Case
doctest Elixirfm
end
| 13.4 | 25 | 0.80597 |
28bde8974c8fbfc2bbd338f96a042840df529f2f | 2,618 | ex | Elixir | test/support/mix/tasks/test_env/utils.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | test/support/mix/tasks/test_env/utils.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | test/support/mix/tasks/test_env/utils.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | defmodule Mix.Tasks.Test.Env.Utils do
def compose(compose_binary, opcode_args) do
Mix.shell().info(
"Running `docker-compose #{Enum.join(opcode_args, " ")}` for: #{
inspect(compose_files(Mix.env()))
}"
)
compose_args = base_compose_args() ++ opcode_args ++ ["--remove-orphans"]
ca... | 25.173077 | 133 | 0.604278 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.