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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
184d092f81747cb8971167f4d3548a3170c3bc51 | 3,464 | ex | Elixir | apps/omg_db/lib/db.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/lib/db.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/lib/db.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.679245 | 110 | 0.712182 |
184d2d541be241e1aea20c4be57e6971d182c906 | 284 | exs | Elixir | test/mafia_interface_web/views/layout_view_test.exs | menxs/mafia_interface | 311f709e512dca4e26b0c0faccf5dfe07df20673 | [
"MIT"
] | null | null | null | test/mafia_interface_web/views/layout_view_test.exs | menxs/mafia_interface | 311f709e512dca4e26b0c0faccf5dfe07df20673 | [
"MIT"
] | null | null | null | test/mafia_interface_web/views/layout_view_test.exs | menxs/mafia_interface | 311f709e512dca4e26b0c0faccf5dfe07df20673 | [
"MIT"
] | 1 | 2022-03-28T06:09:12.000Z | 2022-03-28T06:09:12.000Z | defmodule MafiaInterfaceWeb.LayoutViewTest do
use MafiaInterfaceWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 31.555556 | 65 | 0.778169 |
184d6401230c2f412e2cff4fdb7cf819edd34518 | 9,664 | ex | Elixir | lib/clickhouse_ecto/query_string.ex | llxff/clickhouse_ecto | a96aa399a57b133f7fdf16c6132aa1757022412c | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto/query_string.ex | llxff/clickhouse_ecto | a96aa399a57b133f7fdf16c6132aa1757022412c | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto/query_string.ex | llxff/clickhouse_ecto | a96aa399a57b133f7fdf16c6132aa1757022412c | [
"Apache-2.0"
] | null | null | null | defmodule ClickhouseEcto.QueryString do
alias Ecto.Query
alias Ecto.SubQuery
alias Ecto.Query.{BooleanExpr, JoinExpr, QueryExpr}
alias ClickhouseEcto.Connection
alias ClickhouseEcto.Helpers
binary_ops =
[
==: " = ",
!=: " != ",
<=: " <= ",
>=: " >= ",
<: " < ",
>: "... | 32.32107 | 128 | 0.608651 |
184d79a1241fa93fefc0d94900a3f641ea01284e | 4,081 | ex | Elixir | apps/api_web/lib/api_web/controllers/admin/accounts/key_controller.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/lib/api_web/controllers/admin/accounts/key_controller.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/lib/api_web/controllers/admin/accounts/key_controller.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.Admin.Accounts.KeyController do
@moduledoc false
use ApiWeb.Web, :controller
plug(:api_versions)
plug(:fetch_user when action not in [:index, :redirect_to_user_by_id, :find_user_by_key])
def index(conn, _params) do
key_requests = ApiAccounts.list_key_requests()
render(conn, "index.... | 30.684211 | 91 | 0.6469 |
184d846c34465321bffa7effcc7809a239d2dfc3 | 274 | exs | Elixir | test/auto_mocker_test.exs | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | test/auto_mocker_test.exs | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | test/auto_mocker_test.exs | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | defmodule AutoMockerTest do
use ExUnit.Case, async: true
test "should auto mock entire module" do
assert MockWorker.collect_data() == {:ok, %{id: 1}}
assert MockWorker.collect_data(1) == 1
assert MockWorker.collect_more_data(1, 2, 3) == {1, 2, 3}
end
end
| 27.4 | 61 | 0.682482 |
184d8beaf26796214ea456b628a4fb866cb9a496 | 1,516 | exs | Elixir | mix.exs | coverflex-tech/exvcr | 989a84848b722e3d12670a27919aff44b308a5e8 | [
"MIT"
] | null | null | null | mix.exs | coverflex-tech/exvcr | 989a84848b722e3d12670a27919aff44b308a5e8 | [
"MIT"
] | null | null | null | mix.exs | coverflex-tech/exvcr | 989a84848b722e3d12670a27919aff44b308a5e8 | [
"MIT"
] | null | null | null | defmodule ExVCR.Mixfile do
use Mix.Project
@source_url "https://github.com/parroty/exvcr"
@version "0.12.2"
def project do
[
app: :exvcr,
version: @version,
source_url: @source_url,
elixir: "~> 1.3",
deps: deps(),
docs: docs(),
description: description(),
pa... | 21.657143 | 75 | 0.528364 |
184dafd71d0a8a731e2f679fa6a91273820a9de4 | 719 | ex | Elixir | apps/astarte_pairing_api/lib/astarte_pairing_api/agent/realm.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_pairing_api/lib/astarte_pairing_api/agent/realm.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_pairing_api/lib/astarte_pairing_api/agent/realm.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 31.26087 | 74 | 0.757997 |
184dbec894451773473a526562db7d1aeb39dadb | 4,327 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_control/lib/google_api/service_control/v1/model/request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/request.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 ... | 45.072917 | 157 | 0.664664 |
184ddec91bbf2a2d466c192dabff81a04791cdaa | 2,980 | exs | Elixir | apps/omg_watcher_rpc/test/omg_watcher_rpc/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/test/omg_watcher_rpc/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/test/omg_watcher_rpc/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 39.210526 | 110 | 0.667785 |
184def27c94bf220bb97791beed4417b88472231 | 3,967 | exs | Elixir | test/mock_test.exs | zegohome/mock | 38856101a3fdf7f45f39a524f17411b8da18f056 | [
"MIT"
] | 1 | 2018-06-12T18:45:33.000Z | 2018-06-12T18:45:33.000Z | test/mock_test.exs | gozego/mock | 38856101a3fdf7f45f39a524f17411b8da18f056 | [
"MIT"
] | 5 | 2018-07-10T18:29:37.000Z | 2018-10-08T15:50:45.000Z | test/mock_test.exs | gozego/mock | 38856101a3fdf7f45f39a524f17411b8da18f056 | [
"MIT"
] | 1 | 2018-07-17T17:32:50.000Z | 2018-07-17T17:32:50.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule MockTest do
use ExUnit.Case, async: false
import Mock
setup_all do
foo = "bar"
{:ok, foo: foo}
end
defp test_fun do
"string"
|> String.reverse()
|> String.reverse()
end
test "simple mock" do
with_mock String,
[reve... | 24.337423 | 104 | 0.57096 |
184e280cb8752b9a8ecd60e2d2520d1c3da6349d | 501 | ex | Elixir | lib/simple_budget_web/views/error_view.ex | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 2 | 2019-04-02T01:06:40.000Z | 2019-05-13T01:12:24.000Z | lib/simple_budget_web/views/error_view.ex | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 7 | 2018-12-27T12:33:38.000Z | 2021-03-08T22:31:14.000Z | lib/simple_budget_web/views/error_view.ex | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | null | null | null | defmodule SimpleBudgetWeb.ErrorView do
use SimpleBudgetWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the tem... | 29.470588 | 61 | 0.740519 |
184e28a2d4c2ea12288789876da4c4753f3d02c7 | 1,290 | ex | Elixir | lib/kamleague_web/controllers/admin/game_controller.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | lib/kamleague_web/controllers/admin/game_controller.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | lib/kamleague_web/controllers/admin/game_controller.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule KamleagueWeb.Admin.GameController do
use KamleagueWeb, :controller
alias Kamleague.Leagues
def index(conn, _params) do
games = Leagues.list_all_games()
render(conn, "index.html", games: games)
end
def update(conn, %{"id" => id, "game" => game_params, "type" => type}) do
game =
c... | 25.8 | 75 | 0.602326 |
184e366e91a2fd931ddebecd669e20d898df182b | 3,050 | ex | Elixir | lib/mix/tasks/extension/phoenix/pow.extension.phoenix.mailer.gen.templates.ex | foggy1/pow | c46cf4c4c2d59d10861783faa46f3979d54343a9 | [
"MIT"
] | null | null | null | lib/mix/tasks/extension/phoenix/pow.extension.phoenix.mailer.gen.templates.ex | foggy1/pow | c46cf4c4c2d59d10861783faa46f3979d54343a9 | [
"MIT"
] | null | null | null | lib/mix/tasks/extension/phoenix/pow.extension.phoenix.mailer.gen.templates.ex | foggy1/pow | c46cf4c4c2d59d10861783faa46f3979d54343a9 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Pow.Extension.Phoenix.Mailer.Gen.Templates do
@shortdoc "Generates mailer views and templates for extensions"
@moduledoc """
Generates mailer views and templates for extensions.
mix pow.extension.phoenix.mailer.gen.templates --extension PowEmailConfirmation --extension PowResetPassword... | 29.326923 | 148 | 0.672459 |
184e3ebdd7b0fe1c243f3ea33f1e6144fef66786 | 66 | ex | Elixir | lib/central_web/views/general/component_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central_web/views/general/component_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central_web/views/general/component_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.ComponentView do
use CentralWeb, :view
end
| 16.5 | 37 | 0.818182 |
184e49ed869ced4d6b9e9fb0f1cc33faee896e40 | 900 | exs | Elixir | config/config.exs | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 5 | 2021-06-23T17:46:08.000Z | 2022-02-23T21:12:06.000Z | config/config.exs | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | null | null | null | config/config.exs | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 1 | 2021-08-02T13:33:17.000Z | 2021-08-02T13:33:17.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# Configure the main viewport for the Scenic application
config :snap_framework, :viewport, %{
name: :main_viewport,
size: {700, 600},
default_scene: {SnapFrameworkExample.Scen... | 32.142857 | 73 | 0.733333 |
184ea0fa4f61feb5f66cecfc6ef5bb3460346cd2 | 1,414 | exs | Elixir | test/edgedb/protocol/codecs/builtin/int32_test.exs | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | test/edgedb/protocol/codecs/builtin/int32_test.exs | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | test/edgedb/protocol/codecs/builtin/int32_test.exs | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule Tests.EdgeDB.Protocol.Codecs.Builtin.Int32Test do
use Tests.Support.EdgeDBCase
setup :edgedb_connection
test "decoding std::int32 value", %{conn: conn} do
value = 1
assert ^value = EdgeDB.query_single!(conn, "SELECT <int32>1")
end
test "encoding std::int32 argument", %{conn: conn} do
... | 28.857143 | 96 | 0.660537 |
184ea390806a6280d00ab9eeba8c4d73f656ccfb | 1,473 | exs | Elixir | test/day_14_docking_data_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | 1 | 2021-01-07T07:00:16.000Z | 2021-01-07T07:00:16.000Z | test/day_14_docking_data_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | null | null | null | test/day_14_docking_data_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | null | null | null | defmodule Adventofcode.Day14DockingDataTest do
use Adventofcode.FancyCase
import Adventofcode.Day14DockingData
alias Adventofcode.Day14DockingData.Part2
describe "part_1/1" do
@example """
mask = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X
mem[8] = 11
mem[7] = 101
mem[8] = 0
"""
test "w... | 22.661538 | 78 | 0.612356 |
184ea98e48ea44c1ca18f4cfb01e7f3ec69c758a | 2,098 | ex | Elixir | lib/xdr/hyper_int.ex | kommitters/xdr | 41f8bcbb62c70a37a8ae7e861a473053f712fb67 | [
"MIT"
] | 7 | 2020-06-30T22:52:23.000Z | 2022-02-18T22:13:43.000Z | lib/xdr/hyper_int.ex | kommitters/xdr | 41f8bcbb62c70a37a8ae7e861a473053f712fb67 | [
"MIT"
] | 22 | 2020-05-22T15:24:52.000Z | 2021-09-01T16:56:53.000Z | lib/xdr/hyper_int.ex | kommitters/xdr | 41f8bcbb62c70a37a8ae7e861a473053f712fb67 | [
"MIT"
] | 1 | 2021-08-17T12:34:15.000Z | 2021-08-17T12:34:15.000Z | defmodule XDR.HyperInt do
@moduledoc """
This module manages the `Hyper Integer` type based on the RFC4506 XDR Standard.
"""
@behaviour XDR.Declaration
alias XDR.HyperIntError
defstruct [:datum]
@type datum :: integer() | binary()
@typedoc """
`XDR.HyperInt` structure type specification.
"""
... | 26.897436 | 96 | 0.662536 |
184eb9665248ac66aa3bbdaa881dbe2840b74646 | 2,162 | exs | Elixir | mix.exs | cogini/file_config_rocksdb | 532ac774adac5faad38739531c20118f47e17ce2 | [
"Apache-2.0"
] | null | null | null | mix.exs | cogini/file_config_rocksdb | 532ac774adac5faad38739531c20118f47e17ce2 | [
"Apache-2.0"
] | null | null | null | mix.exs | cogini/file_config_rocksdb | 532ac774adac5faad38739531c20118f47e17ce2 | [
"Apache-2.0"
] | null | null | null | defmodule FileConfigRocksdb.MixProject do
use Mix.Project
@github "https://github.com/cogini/file_config_rocksdb"
def project do
[
app: :file_config_rocksdb,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
description: description(),
package: pac... | 26.365854 | 89 | 0.570768 |
184ec1a215ddfd898eebafad3fa95be45c2fec27 | 153 | ex | Elixir | db_server/lib/db_server_web/controllers/api/participating_team_controller.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/controllers/api/participating_team_controller.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/controllers/api/participating_team_controller.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | defmodule DbServerWeb.API.ParticipatingTeamController do
use DbServerWeb, :controller
def index(conn, _params) do
render(conn, :index)
end
end | 21.857143 | 56 | 0.771242 |
184eca802b2eb39a7e7b623f7f2ac61aca11544a | 1,406 | ex | Elixir | lib/yourbot/application.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | 3 | 2021-11-08T15:19:19.000Z | 2021-11-11T03:18:35.000Z | lib/yourbot/application.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | lib/yourbot/application.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | defmodule YourBot.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 = [
# Start the Ecto repository
YourBot.Repo,
# Start the Telemetry supervisor
... | 28.693878 | 65 | 0.694879 |
184eece81c39a957dd53143964c43118d306a2ef | 748 | ex | Elixir | lib/farmbot/celery_script/ast/node/home.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/celery_script/ast/node/home.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/celery_script/ast/node/home.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.CeleryScript.AST.Node.Home do
@moduledoc false
use Farmbot.CeleryScript.AST.Node
allow_args [:speed, :axis]
use Farmbot.Logger
def execute(%{axis: :all}, _, env) do
env = mutate_env(env)
maybe_log_busy()
case Farmbot.Firmware.home_all() do
:ok -> {:ok, env}
{:error, ... | 24.933333 | 100 | 0.637701 |
184ef5bf342c19e38ad0ab402e1eb3a641c99cd2 | 1,164 | ex | Elixir | apps/re_web/lib/endpoint.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/lib/endpoint.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re_web/lib/endpoint.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :re_web
use Absinthe.Phoenix.Endpoint
use Sentry.Phoenix.Endpoint
socket("/socket", ReWeb.UserSocket,
longpoll: true,
websocket: [timeout: 45_000]
)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of y... | 21.962264 | 62 | 0.707045 |
184f075ac7a18769bdf2b1b07122eade4a9629d8 | 1,301 | exs | Elixir | installer/templates/phx_single/config/config.exs | anirudh24seven/phoenix | b5580e9cd1c78e0460d2df30807f4f99bd8b3051 | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/config.exs | anirudh24seven/phoenix | b5580e9cd1c78e0460d2df30807f4f99bd8b3051 | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/config.exs | anirudh24seven/phoenix | b5580e9cd1c78e0460d2df30807f4f99bd8b3051 | [
"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
import Config<%= if namespaced? || ecto || generators do %>
con... | 38.264706 | 121 | 0.691776 |
184f3e45b5cd897d7cacb9a41f5e1e406e8ed9d6 | 1,899 | ex | Elixir | plugins/ucc_admin/lib/ucc_admin/services/flex_admin_service.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_admin/lib/ucc_admin/services/flex_admin_service.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_admin/lib/ucc_admin/services/flex_admin_service.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccAdmin.FlexAdminService do
use UccChat.Shared, :service
require Logger
def default_settings("user") do
[
%{title: ~g"Invite Users", icon: "paper-plane", display: "", templ: "admin_invite_users.html"},
%{title: ~g"Add User", icon: "plus", display: "", templ: ""},
%{title: ~g"User... | 35.830189 | 117 | 0.607688 |
184f4e3386fcea7ac742d4e8e283873bf777da98 | 2,485 | exs | Elixir | test/acceptance/ast/fenced_code_blocks_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/fenced_code_blocks_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/fenced_code_blocks_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Ast.FencedCodeBlocksTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, as_ast: 2, parse_html: 1]
describe "Fenced code blocks" do
test "no lang" do
markdown = "```\n<\n >\n```\n"
html = "<pre><code><\n ></code></pre>\n"
ast =... | 30.304878 | 96 | 0.529577 |
184f7abf68633eb054c73f9a35b3ec814113eecd | 1,001 | ex | Elixir | lib/safira/store/redeemable.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | lib/safira/store/redeemable.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | lib/safira/store/redeemable.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Store.Redeemable do
use Ecto.Schema
use Arc.Ecto.Schema
import Ecto.Changeset
alias Safira.Store.Buy
alias Safira.Accounts.Attendee
schema "redeemables" do
field :img, Safira.Avatar.Type
field :name, :string
field :description, :string
field :price, :integer
field :sto... | 29.441176 | 89 | 0.693307 |
184fa81a6ecd39ef50d2982c559097127f00b7b0 | 298 | ex | Elixir | lib/json/encoder.ex | aportnov/exbuilder | 0e9e556d9f561663baa78fdadaa7f9118a565308 | [
"MIT"
] | 7 | 2017-01-14T01:43:06.000Z | 2019-05-26T07:52:09.000Z | lib/json/encoder.ex | aportnov/exbuilder | 0e9e556d9f561663baa78fdadaa7f9118a565308 | [
"MIT"
] | null | null | null | lib/json/encoder.ex | aportnov/exbuilder | 0e9e556d9f561663baa78fdadaa7f9118a565308 | [
"MIT"
] | null | null | null | defimpl Poison.Encoder, for: Tuple do
alias Poison.Encoder
def encode({:text, value}, options) do
Encoder.encode(value, options)
end
def encode({:cdata, value}, options) do
Encoder.encode(value, options)
end
def encode(tuple, options) do
Encoder.Any.encode(tuple, options)
end
end | 18.625 | 40 | 0.724832 |
184fc28664a909dd5fc7e5628d4743a4c39939c3 | 1,552 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/log_config_data_access_options.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/log_config_data_access_options.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/log_config_data_access_options.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.021277 | 192 | 0.74549 |
184fca9cc554a9dc95115aaace236ffab1f18d7b | 3,282 | exs | Elixir | test/helpers_test.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | null | null | null | test/helpers_test.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | null | null | null | test/helpers_test.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | 1 | 2021-04-14T16:18:31.000Z | 2021-04-14T16:18:31.000Z | defmodule ExAdmin.HelpersTest do
use ExUnit.Case
alias ExAdmin.Helpers
alias TestExAdmin.Noid
alias TestExAdmin.Simple
alias TestExAdmin.Maps
use Xain
test "build_field" do
res = Helpers.build_field(%Noid{description: "desc"}, %{},
{:description, %{}}, fn(contents, field_name) ->
ExAdmi... | 35.673913 | 121 | 0.649299 |
184ff4ba299e37eefd54a201a992b879e707a9bc | 5,162 | exs | Elixir | chapter_5/todo_server.exs | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_5/todo_server.exs | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_5/todo_server.exs | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.Entry do
@keys [:id, :date, :title]
@enforce_keys @keys
defstruct @keys
def new(id, date, title), do: %__MODULE__{id: id, date: date, title: title}
end
defmodule Todo do
alias Todo.Entry
defstruct auto_id: 1, entries: %{}
def new, do: %__MODULE__{}
def add_entry(
%__MODULE_... | 28.519337 | 94 | 0.679969 |
184ff66664704c63b52b1b8e5024046f28473ec4 | 218 | ex | Elixir | manning/elixir-in-action/print.ex | atvaccaro/problems | 666b431b5489a5990a0f29d601c384c88e0e6132 | [
"MIT"
] | null | null | null | manning/elixir-in-action/print.ex | atvaccaro/problems | 666b431b5489a5990a0f29d601c384c88e0e6132 | [
"MIT"
] | null | null | null | manning/elixir-in-action/print.ex | atvaccaro/problems | 666b431b5489a5990a0f29d601c384c88e0e6132 | [
"MIT"
] | 1 | 2019-11-03T04:05:34.000Z | 2019-11-03T04:05:34.000Z | defmodule Print do
import IO
def my_function do
puts "Calling imported function."
end
end
defmodule Print2 do
alias IO, as: MyIO
def my_function do
MyIO.puts("Calling aliased function.")
end
end
| 13.625 | 42 | 0.711009 |
184ff90c7b5a625992fc9388c94f552f67309456 | 63 | ex | Elixir | lib/headfi/repo.ex | mingxiangchan/headfi-sales-scrapper | 3c629d0b7d0118342a594111a4615f48aa20e90c | [
"MIT"
] | 1 | 2019-12-12T06:26:37.000Z | 2019-12-12T06:26:37.000Z | lib/headfi/repo.ex | mingxiangchan/headfi-sales-scrapper | 3c629d0b7d0118342a594111a4615f48aa20e90c | [
"MIT"
] | null | null | null | lib/headfi/repo.ex | mingxiangchan/headfi-sales-scrapper | 3c629d0b7d0118342a594111a4615f48aa20e90c | [
"MIT"
] | null | null | null | defmodule Headfi.Repo do
use Ecto.Repo, otp_app: :headfi
end
| 15.75 | 33 | 0.761905 |
185006a0cd23bccd66c0fb80edc2a595cee141c5 | 6,109 | ex | Elixir | lib/oban/queue/producer.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | 1 | 2019-07-24T19:06:57.000Z | 2019-07-24T19:06:57.000Z | lib/oban/queue/producer.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/producer.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Queue.Producer do
@moduledoc false
use GenServer
require Logger
import Oban.Notifier, only: [insert: 0, signal: 0]
alias Oban.{Config, Notifier, Query}
alias Oban.Queue.Executor
@type option ::
{:name, module()}
| {:conf, Config.t()}
| {:foreman, GenServer... | 24.146245 | 98 | 0.608119 |
1850070695e2ea6c54a2f0fd4d4913d1d61592f0 | 1,011 | exs | Elixir | day-15/solution.exs | woojiahao/advent-of-code-2020 | a9a7b4ca6b2bbe5050bdefa0d7524234759525a7 | [
"MIT"
] | null | null | null | day-15/solution.exs | woojiahao/advent-of-code-2020 | a9a7b4ca6b2bbe5050bdefa0d7524234759525a7 | [
"MIT"
] | null | null | null | day-15/solution.exs | woojiahao/advent-of-code-2020 | a9a7b4ca6b2bbe5050bdefa0d7524234759525a7 | [
"MIT"
] | null | null | null | defmodule Solution do
defp load_data(),
do:
File.read!("data.txt")
|> String.split("\n", trim: true)
|> List.first()
|> String.split(",", trim: true)
|> Enum.map(&String.to_integer/1)
defp append(lst, v), do: [v | lst |> Enum.reverse()] |> Enum.reverse()
defp rfind(lst, v, i) d... | 21.978261 | 72 | 0.537092 |
185008e8dfd69661e5fe6ff4420324690ce6928f | 3,274 | ex | Elixir | lib/2020/day23.ex | hallski/adventofcode | 03efb385688e8072b0b44d35012297833498f799 | [
"MIT"
] | null | null | null | lib/2020/day23.ex | hallski/adventofcode | 03efb385688e8072b0b44d35012297833498f799 | [
"MIT"
] | null | null | null | lib/2020/day23.ex | hallski/adventofcode | 03efb385688e8072b0b44d35012297833498f799 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Y2020.Day23.Ring do
defstruct current: nil, content: %{}, size: 0, min: nil, max: nil
alias AdventOfCode.Y2020.Day23.Ring
def new(content) do
first = Enum.take(content, 1) |> hd
size = Enum.count(content)
content
|> Stream.chunk_every(2, 1)
|> Enum.reduce(%{}, fn pair... | 22.736111 | 88 | 0.610874 |
18501409958475c36656f335c9be931202011871 | 1,985 | ex | Elixir | lib/dornach_web/controllers/page_controller.ex | ream88/jw-dornach | 0a25deae13fafd832421bde21bc21035a128ac7d | [
"MIT"
] | null | null | null | lib/dornach_web/controllers/page_controller.ex | ream88/jw-dornach | 0a25deae13fafd832421bde21bc21035a128ac7d | [
"MIT"
] | 4 | 2020-01-28T10:12:25.000Z | 2021-05-10T23:05:12.000Z | lib/dornach_web/controllers/page_controller.ex | ream88/jw-dornach | 0a25deae13fafd832421bde21bc21035a128ac7d | [
"MIT"
] | null | null | null | defmodule DornachWeb.PageController do
use DornachWeb, :controller
alias DornachWeb.PageView
alias Dornach.{Calendar, Event, GoogleCalendar}
plug :assign_current_date
plug :assign_calendar_dates
plug DornachWeb.Plugs.DateTimeParser, ["event", "from"] when action in [:create]
plug DornachWeb.Plugs.DateTim... | 27.191781 | 97 | 0.623174 |
18503a9a07a16fa60cc97f42607406612dd58df7 | 1,457 | exs | Elixir | test/faker/code_test.exs | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 540 | 2015-01-05T16:31:49.000Z | 2019-09-25T00:40:27.000Z | test/faker/code_test.exs | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | 172 | 2015-01-06T03:55:17.000Z | 2019-10-03T12:58:02.000Z | test/faker/code_test.exs | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | 163 | 2015-01-05T21:24:54.000Z | 2019-10-03T07:59:42.000Z | defmodule Faker.CodeTest do
use ExUnit.Case, async: true
import Faker.Code
doctest Faker.Code
@iterations 10_000
defp grapheme_to_digit("X"), do: 10
defp grapheme_to_digit(str), do: String.to_integer(str)
defp checksum(isbn, calc_function) do
String.reverse(isbn)
|> String.graphemes()
|> ... | 22.415385 | 57 | 0.630062 |
185058a84edc418998d42914513f69daed4b9ff2 | 1,230 | ex | Elixir | lib/evolvr/cli.ex | matthewmacleod/evolvr | 6392f0e03a8218ea70e86afdd187dcf728155072 | [
"MIT"
] | 3 | 2015-12-29T21:13:23.000Z | 2017-08-14T22:35:25.000Z | lib/evolvr/cli.ex | matthewmacleod/evolvr | 6392f0e03a8218ea70e86afdd187dcf728155072 | [
"MIT"
] | null | null | null | lib/evolvr/cli.ex | matthewmacleod/evolvr | 6392f0e03a8218ea70e86afdd187dcf728155072 | [
"MIT"
] | null | null | null | defmodule Evolvr.CLI do
def main(args) do
args
|> parse_args
|> process
end
def process(input) do
options = input
IO.puts "Running evolvr bioinformatics program..."
IO.puts "\tusing these options:"
IO.inspect options
IO.puts "input file = "
IO.inspect options[:input]
... | 22.777778 | 99 | 0.621138 |
185067458fc1f7be18af44baf483ec1e9cabc66a | 873 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/model/enum_test.ex | leprechaun/openapi-generator | ecf905681c7046241ca0d79426c9614cc27ac46f | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/openapi_petstore/model/enum_test.ex | leprechaun/openapi-generator | ecf905681c7046241ca0d79426c9614cc27ac46f | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/openapi_petstore/model/enum_test.ex | leprechaun/openapi-generator | ecf905681c7046241ca0d79426c9614cc27ac46f | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenapiPetstore.Model.EnumTest do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"enum_string",
:"enum_string_required",... | 24.25 | 91 | 0.676976 |
185067e09e8884666179e2e9359457b94a5ff1d2 | 275 | exs | Elixir | crawler_challenge/test/crawler_challenge_web/views/process_view_test.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/test/crawler_challenge_web/views/process_view_test.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/test/crawler_challenge_web/views/process_view_test.exs | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallengeWeb.ProcessViewTest do
use CrawlerChallengeWeb.ConnCase
alias CrawlerChallenge.Courts
alias CrawlerChallengeWeb.ProcessView
test "show_courts/0" do
_courts = ProcessView.show_courts()
assert courts = Courts.list_courts()
end
end
| 22.916667 | 48 | 0.796364 |
18508f63b80d9d28d609d9254ba193bb45ab7821 | 2,060 | exs | Elixir | installer/templates/new/config/prod.exs | joeellis/phoenix | f4eec8548db853edbe35b210126fe856d885c71b | [
"MIT"
] | null | null | null | installer/templates/new/config/prod.exs | joeellis/phoenix | f4eec8548db853edbe35b210126fe856d885c71b | [
"MIT"
] | null | null | null | installer/templates/new/config/prod.exs | joeellis/phoenix | f4eec8548db853edbe35b210126fe856d885c71b | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.225806 | 71 | 0.696117 |
18509b68f9aee6c6032626912343cf0f459d98a5 | 2,285 | ex | Elixir | lib/nox.env.ex | tableturn/nox | 4fbe1a08196b2f84cca702715e84e6c7a67a42aa | [
"Apache-2.0"
] | 5 | 2018-04-28T14:25:09.000Z | 2020-10-27T07:06:59.000Z | lib/nox.env.ex | kbrw/nodex | f362cb135cf5da23cc3c1bc159cbe6d120ca1494 | [
"Apache-2.0"
] | 2 | 2018-04-19T08:52:58.000Z | 2018-04-19T13:01:13.000Z | lib/nox.env.ex | kbrw/nodex | f362cb135cf5da23cc3c1bc159cbe6d120ca1494 | [
"Apache-2.0"
] | 1 | 2019-07-12T11:10:28.000Z | 2019-07-12T11:10:28.000Z | defmodule Nox.Env do
@moduledoc """
Environment of node installation
If new/1 is called with `shared: true`, directory is built from a hash
of (parsed) versions and thus, will be shared between all envs using
these versions.
"""
alias Nox.Semver
defstruct dir: nil, versions: []
@default_nvm "v1.... | 26.264368 | 75 | 0.592998 |
1850cfb9414f1208a02d2a49bd8a838947dd5af1 | 2,759 | ex | Elixir | lib/ash_phoenix/plug/subdomain_plug.ex | totaltrash/ash_phoenix | c2196a5a9e2a22f5bce496e5380dcf05c0e5d37a | [
"MIT"
] | null | null | null | lib/ash_phoenix/plug/subdomain_plug.ex | totaltrash/ash_phoenix | c2196a5a9e2a22f5bce496e5380dcf05c0e5d37a | [
"MIT"
] | null | null | null | lib/ash_phoenix/plug/subdomain_plug.ex | totaltrash/ash_phoenix | c2196a5a9e2a22f5bce496e5380dcf05c0e5d37a | [
"MIT"
] | null | null | null | defmodule AshPhoenix.SubdomainPlug do
@plug_options [
endpoint: [
type: :atom,
doc: "The endpoint that the plug is in, used for deterining the host",
required: true
],
assign: [
type: :atom,
doc: "The key to use when assigning the current tenant",
default: :current_tena... | 25.785047 | 161 | 0.627764 |
185131afeb513873fe6e870f57c9097427e64b21 | 5,217 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/firewall_policy_rule.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_policy_rule.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_policy_rule.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... | 65.2125 | 568 | 0.720529 |
18513f01f761e488465bf7a9014515c7221f0d70 | 4,390 | exs | Elixir | test/vintage_net/to_elixir_test.exs | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | test/vintage_net/to_elixir_test.exs | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | test/vintage_net/to_elixir_test.exs | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.ToElixirTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias VintageNetTest.CapturingUdhcpcHandler
alias VintageNetTest.CapturingUdhcpdHandler
test "can send message from C" do
assert capture_log(fn ->
to_elixir = Application.app_dir(:vintage_net, ["priv", "to_elixir"]... | 32.279412 | 82 | 0.568109 |
18514a99b79e12a3c55a3cfc6267783d72d59247 | 4,009 | ex | Elixir | lib/farmbot/celery_script/ast/ast.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/celery_script/ast/ast.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/celery_script/ast/ast.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.CeleryScript.AST do
@moduledoc """
Handy functions for turning various data types into Farbot Celery Script
Ast nodes.
"""
@typedoc "Arguments to a Node."
@type args :: map
@typedoc "Body of a Node."
@type body :: [t]
@typedoc "Kind of a Node."
@type kind :: module
@typedoc "... | 26.549669 | 107 | 0.573709 |
1851689747fb3678510674206d9fba30ff47fbdb | 4,000 | ex | Elixir | lib/smppsend/usage.ex | ILoGM/smppsend | 78ac9587637a2b476a525d35fd2d3d1a0d14973a | [
"Apache-2.0"
] | 11 | 2017-06-09T06:55:31.000Z | 2019-09-17T07:05:37.000Z | lib/smppsend/usage.ex | ILoGM/smppsend | 78ac9587637a2b476a525d35fd2d3d1a0d14973a | [
"Apache-2.0"
] | 11 | 2017-07-14T10:03:58.000Z | 2019-11-15T09:22:30.000Z | lib/smppsend/usage.ex | ILoGM/smppsend | 78ac9587637a2b476a525d35fd2d3d1a0d14973a | [
"Apache-2.0"
] | 9 | 2017-06-19T07:10:06.000Z | 2019-11-14T11:03:56.000Z | defmodule SMPPSend.Usage do
use Dye
@help "
Usage: C<smppsend> g<OPTIONS>
Available options are:
--help Show this help
--version Show version
--bind-mode y<mode> Bind mode, one of the following: y<tx>(transmitter), y<rx>(recei... | 41.237113 | 453 | 0.62875 |
1851807fd4b324dab3254db1e457faee9dc6f3b2 | 749 | ex | Elixir | lib/reason_react_exercise_web/gettext.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | lib/reason_react_exercise_web/gettext.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | lib/reason_react_exercise_web/gettext.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | defmodule ReasonReactExerciseWeb.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 ReasonReactExerciseWeb.Gettext
# Simple translation
... | 29.96 | 72 | 0.694259 |
1851963d1308ba51d83c1110fc8f4d2a19912fe9 | 1,675 | ex | Elixir | apps/bus_detective/lib/bus_detective/gtfs/service.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective/lib/bus_detective/gtfs/service.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective/lib/bus_detective/gtfs/service.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | defmodule BusDetective.GTFS.Service do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
alias BusDetective.GTFS.{Feed, ServiceException, Trip}
schema "services" do
belongs_to(:feed, Feed)
field(:end_date, :date)
field(:friday, :boolean, default: false)
field(:monday, :boolean, defaul... | 22.945205 | 77 | 0.618507 |
185208213e4af98c48a84320977aa1b2c6607a67 | 578 | exs | Elixir | .credo.exs | petlove/ex_aws_configurator | 1b937777d05153e567e36e5667e7293f5c6b9248 | [
"MIT"
] | null | null | null | .credo.exs | petlove/ex_aws_configurator | 1b937777d05153e567e36e5667e7293f5c6b9248 | [
"MIT"
] | 1 | 2022-03-25T18:14:15.000Z | 2022-03-25T18:32:36.000Z | .credo.exs | petlove/ex_aws_configurator | 1b937777d05153e567e36e5667e7293f5c6b9248 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "test/", "web/", "apps/", "live/"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/", ~r"/test/support/factories/"]
},
strict: true,
color: true,
checks: [
{Credo.Check.Warning... | 27.52381 | 94 | 0.541522 |
18524165d0ece44b38e48007c41295c8d9851d35 | 2,114 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/account_user_profiles_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/account_user_profiles_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/account_user_profiles_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.436364 | 167 | 0.738411 |
185256b01a5ae45f7f3fba97ee77a9a7e9a0abd1 | 913 | ex | Elixir | lib/realworld_phoenix_web/controllers/fallback_controller.ex | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | 9 | 2021-08-23T23:21:31.000Z | 2022-03-27T23:19:55.000Z | lib/realworld_phoenix_web/controllers/fallback_controller.ex | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | null | null | null | lib/realworld_phoenix_web/controllers/fallback_controller.ex | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | 1 | 2021-09-06T07:26:37.000Z | 2021-09-06T07:26:37.000Z | defmodule RealworldPhoenixWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use RealworldPhoenixWeb, :controller
# This clause handles errors returned by Ecto's insert/update/dele... | 28.53125 | 78 | 0.705367 |
18527efe8f03f0657aed279d57da4a4331ec1ac5 | 2,908 | exs | Elixir | test/bencode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 19 | 2015-12-05T13:50:41.000Z | 2022-01-31T20:20:48.000Z | test/bencode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 7 | 2016-02-24T13:46:42.000Z | 2020-03-23T01:03:26.000Z | test/bencode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 5 | 2016-02-24T13:18:29.000Z | 2019-09-09T08:59:52.000Z | defmodule BencodeEQC do
use ExUnit.Case, async: true
use EQC.ExUnit
# encode + decode
property "lists" do
forall input <- list(int()) do
encoded_input = Bencode.encode!(input)
{:ok, decoded_result} = Bencode.decode(encoded_input)
ensure decoded_result == input
end
end
property "m... | 31.268817 | 96 | 0.578404 |
18528f6764540793e59fce52594f50454b5f5079 | 2,819 | ex | Elixir | clients/container/lib/google_api/container/v1/model/set_node_pool_size_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/container/lib/google_api/container/v1/model/set_node_pool_size_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_node_pool_size_request.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 ... | 39.152778 | 129 | 0.693154 |
1852940c3382d2a6cb8c91b5a4c6043f893d73af | 980 | ex | Elixir | lib/offline_asset.ex | bonyiii/offline | 4dbadc69f68687c308f8f01db9d71ec472948307 | [
"Apache-2.0"
] | null | null | null | lib/offline_asset.ex | bonyiii/offline | 4dbadc69f68687c308f8f01db9d71ec472948307 | [
"Apache-2.0"
] | null | null | null | lib/offline_asset.ex | bonyiii/offline | 4dbadc69f68687c308f8f01db9d71ec472948307 | [
"Apache-2.0"
] | null | null | null | defmodule OfflineAsset do
def css(opts) do
if opts[:url] do
"<link href='#{(opts[:url])}', media='#{opts[:media] || "all"}', rel='stylesheet', type='text/css'></link>"
else
if opts[:inline] do
css_inline(opts)
else
css_file(opts)
end
end
end
def js(opts) do
... | 23.333333 | 117 | 0.568367 |
1852999b1db019a11756d287a2fb6443cb778e38 | 2,376 | exs | Elixir | sublist/sublist_test.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | sublist/sublist_test.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | sublist/sublist_test.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("sublist.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule SublistTest do
use ExUnit.Case
test "empty equals empty" do
assert Sublist.compare([], []) == :equal
end
test "empty is a sublist of anythin... | 25.276596 | 77 | 0.638047 |
18529cb7cf75445a8e76c15bb7615299ce37ba4a | 2,142 | ex | Elixir | lib/oriel_web/graphql/schema.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | 1 | 2022-01-27T08:17:53.000Z | 2022-01-27T08:17:53.000Z | lib/oriel_web/graphql/schema.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | lib/oriel_web/graphql/schema.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | defmodule OrielWeb.GraphQL.Schema do
use Absinthe.Schema
import_types OrielWeb.GraphQL.Types
alias OrielWeb.GraphQL.Resolver
query do
field :ping, type: :pong do
resolve &Resolver.ping/2
end
field :info, type: :info do
resolve &Resolver.info/2
end
field :item, type: :item do
... | 27.113924 | 56 | 0.644258 |
1852b414e82a3f61be7d4b63f9aa5669f3d528d8 | 1,138 | ex | Elixir | test/support/conn_case.ex | orieken/monster_manual_elixir | 8c12f7e0e06a61831f543ee8b47b85bf42dfae62 | [
"MIT"
] | 1 | 2017-08-15T20:50:19.000Z | 2017-08-15T20:50:19.000Z | test/support/conn_case.ex | orieken/monster_manual_elixir | 8c12f7e0e06a61831f543ee8b47b85bf42dfae62 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | orieken/monster_manual_elixir | 8c12f7e0e06a61831f543ee8b47b85bf42dfae62 | [
"MIT"
] | null | null | null | defmodule MonstersManual.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with ... | 25.288889 | 76 | 0.71529 |
185321a3257727a297aff04584a3cfe16089615a | 6,939 | exs | Elixir | test/protobuf/dsl_test.exs | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | test/protobuf/dsl_test.exs | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | test/protobuf/dsl_test.exs | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | defmodule Protobuf.DSLTest do
use ExUnit.Case, async: true
alias Protobuf.FieldProps
alias TestMsg.{Foo, Foo2}
defmodule DefaultSyntax do
use Protobuf
end
test "default syntax is proto2" do
assert DefaultSyntax.__message_props__().syntax == :proto2
end
test "supports syntax option" do
ms... | 28.792531 | 93 | 0.546476 |
18532a60fc698807bc9f8ba273f725c36b55e810 | 318 | ex | Elixir | parsers/test_elixir_poison/lib/test_elixir_poison.ex | ashutoshvarma/JSONTestSuite | 269364065cba221dafbc67587780c4f1eff88599 | [
"MIT"
] | 686 | 2016-10-24T04:17:56.000Z | 2022-03-31T03:31:24.000Z | parsers/test_elixir_poison/lib/test_elixir_poison.ex | ashutoshvarma/JSONTestSuite | 269364065cba221dafbc67587780c4f1eff88599 | [
"MIT"
] | 85 | 2016-10-26T16:55:26.000Z | 2021-10-14T22:21:02.000Z | parsers/test_elixir_poison/lib/test_elixir_poison.ex | ashutoshvarma/JSONTestSuite | 269364065cba221dafbc67587780c4f1eff88599 | [
"MIT"
] | 144 | 2016-10-26T14:43:51.000Z | 2022-03-29T16:43:29.000Z | defmodule TestElixirPoison do
def main( _args = [file] ) do
{ :ok, json } = File.read( file )
IO.inspect Poison.decode( json )
case Poison.decode( json ) do
{ :ok, nil } -> exit({:shutdown, 1})
{ :ok, _ } -> exit({:shutdown, 0})
_ -> exit({:shutdown, 1})
end
end
end
| 26.5 | 42 | 0.525157 |
185346ec7f414432e332c1c2a90f9fecc26edf5a | 81 | exs | Elixir | Programming_elixir/gcd.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | Programming_elixir/gcd.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | Programming_elixir/gcd.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | defmodule Gcd do
def gcd(x, 0), do: x
def gcd(x, y), do: gcd(y, rem(x,y))
end | 20.25 | 37 | 0.580247 |
18535042c39a4294fe37a5a0ca995e34a00dc3e4 | 6,568 | ex | Elixir | lib/plug/conn/query.ex | VinogradovAlexandr/plug | baad2c4fa48a9c288545e4581e30c0d6a007f3d1 | [
"Apache-2.0"
] | 1 | 2020-09-01T12:50:36.000Z | 2020-09-01T12:50:36.000Z | lib/plug/conn/query.ex | VinogradovAlexandr/plug | baad2c4fa48a9c288545e4581e30c0d6a007f3d1 | [
"Apache-2.0"
] | null | null | null | lib/plug/conn/query.ex | VinogradovAlexandr/plug | baad2c4fa48a9c288545e4581e30c0d6a007f3d1 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Conn.Query do
@moduledoc """
Conveniences for decoding and encoding url encoded queries.
Plug allows a developer to build query strings
that map to Elixir structures in order to make
manipulation of such structures easier on the server
side. Here are some examples:
iex> decode("foo=ba... | 25.068702 | 95 | 0.611449 |
1853630405f25517613a621cfff58f60888b781b | 22,567 | ex | Elixir | lib/mix/tasks/phx.gen.auth.ex | bdanklin/phoenix | 5073141608ba65d54918857c06a21ce775549ba1 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.auth.ex | bdanklin/phoenix | 5073141608ba65d54918857c06a21ce775549ba1 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.auth.ex | bdanklin/phoenix | 5073141608ba65d54918857c06a21ce775549ba1 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Auth do
@shortdoc "Generates authentication logic for a resource"
@moduledoc """
Generates authentication logic for a resource.
$ mix phx.gen.auth Accounts User users
The first argument is the context module followed by the schema module
and its plural name (used as the sc... | 33.089443 | 159 | 0.675898 |
1853684de0965612ab588d8dcbb6b8f4dce0ae18 | 875 | exs | Elixir | code/maps/nested.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/maps/nested.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/maps/nested.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 30.172414 | 87 | 0.698286 |
185391b2383f2382f39162806e41b481c2292341 | 1,754 | exs | Elixir | mix.exs | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | mix.exs | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | mix.exs | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | defmodule Fireball.Mixfile do
use Mix.Project
def project do
[
app: :fireball,
version: "0.0.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.575758 | 79 | 0.567275 |
1853b6b08af63cb9a7d586729556e6a5af50c499 | 698 | exs | Elixir | benchmarks/radix_prune.exs | hertogp/radix | 47f460904e2370a31568d501030cab7ef39b9cdb | [
"MIT"
] | 2 | 2021-10-01T19:30:51.000Z | 2021-11-21T16:47:55.000Z | benchmarks/radix_prune.exs | hertogp/radix | 47f460904e2370a31568d501030cab7ef39b9cdb | [
"MIT"
] | null | null | null | benchmarks/radix_prune.exs | hertogp/radix | 47f460904e2370a31568d501030cab7ef39b9cdb | [
"MIT"
] | null | null | null | alias Radix
# keyvalues = for x <- 0..255, y <- 0..255, z <- 0..15, do: {<<x, y, z::4>>, x}
keyvalues8 = for x <- 0..255, do: {<<x>>, x}
keyvalues16 = for x <- 0..255, y <- 0..255, do: {<<x, y>>, x}
rdx8bit = Radix.new(keyvalues8)
rdx16bit = Radix.new(keyvalues16)
fun = fn
{_k0, _k1, v1, _k2, v2} -> v1 + v2
{_k0... | 29.083333 | 83 | 0.604585 |
1853bbf1c9ec01a124084fed12c582df324beb93 | 1,429 | ex | Elixir | templates/phoenix/lib/web/web.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 34 | 2016-08-13T17:05:32.000Z | 2019-10-21T07:11:21.000Z | templates/phoenix/lib/web/web.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 7 | 2016-08-18T11:33:44.000Z | 2017-10-03T12:28:27.000Z | templates/phoenix/lib/web/web.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 6 | 2016-10-12T08:57:25.000Z | 2021-05-26T04:18:21.000Z | defmodule <%= @module_name %>.Web do
@moduledoc """
A module defining __using__ hooks for controllers,
views and so on.
This can be used in your application as:
use <%= @module_name %>.Web, :controller
use <%= @module_name %>.Web, :view
The definitions below will be executed for every view,
c... | 25.517857 | 110 | 0.670399 |
1853d72509f35a6be5c4d86fd7a61c8790adc564 | 95 | ex | Elixir | lib/qsm/queue_message.ex | vishalkuo/qsm | 54871c999ecaa522622c24e3ccf95273aff38dcb | [
"MIT"
] | null | null | null | lib/qsm/queue_message.ex | vishalkuo/qsm | 54871c999ecaa522622c24e3ccf95273aff38dcb | [
"MIT"
] | null | null | null | lib/qsm/queue_message.ex | vishalkuo/qsm | 54871c999ecaa522622c24e3ccf95273aff38dcb | [
"MIT"
] | null | null | null | defmodule Qsm.QueueMessage do
@derive [Poison.Encoder]
defstruct [:module_name, :body]
end
| 19 | 33 | 0.757895 |
1853e7a416fe0d762024f9b40010d99739703bb2 | 175 | ex | Elixir | lib/mix/tasks/jorel.deb.ex | G-Corp/jorel_mix | d3bea2e19a5b725bbc90532d74613e0fd5441461 | [
"Unlicense"
] | null | null | null | lib/mix/tasks/jorel.deb.ex | G-Corp/jorel_mix | d3bea2e19a5b725bbc90532d74613e0fd5441461 | [
"Unlicense"
] | 1 | 2019-02-13T14:28:48.000Z | 2019-02-13T17:02:49.000Z | lib/mix/tasks/jorel.deb.ex | G-Corp/jorel_mix | d3bea2e19a5b725bbc90532d74613e0fd5441461 | [
"Unlicense"
] | null | null | null | defmodule Mix.Tasks.Jorel.Deb do
use Mix.Task
@shortdoc "Create a Debian package with your release"
def run(argv) do
JorelMix.Utils.jorel(argv, ["deb"])
end
end
| 17.5 | 55 | 0.702857 |
18540bd7d6a8324025f791dac581243a0cb3b3d0 | 890 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.962963 | 74 | 0.760674 |
18540d2a8fc21fcfca9ccc240fc670d4211592cd | 2,549 | ex | Elixir | clients/service_control/lib/google_api/service_control/v2/model/service_account_delegation_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_control/lib/google_api/service_control/v2/model/service_account_delegation_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_control/lib/google_api/service_control/v2/model/service_account_delegation_info.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... | 48.09434 | 410 | 0.763829 |
18541ad74237367fcb4677ead5fb0e71a6a5c802 | 685 | ex | Elixir | hippo-backend/lib/hippo_web/router.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 8 | 2019-05-18T10:14:06.000Z | 2021-07-31T20:58:55.000Z | hippo-backend/lib/hippo_web/router.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 7 | 2019-07-20T17:48:03.000Z | 2022-02-26T10:41:56.000Z | hippo-backend/lib/hippo_web/router.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 1 | 2019-07-04T02:30:09.000Z | 2019-07-04T02:30:09.000Z | defmodule HippoWeb.Router do
@moduledoc false
use HippoWeb, :router
pipeline :api do
plug(:accepts, ["json"])
plug(Hippo.GraphQL.SessionPlug)
plug(Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
json_decoder: Jason
)
end
scope "/api" do
pipe_through(:api)
forw... | 19.027778 | 48 | 0.633577 |
18541f69244353ca2814e7f1ee602d3594e675fd | 162 | ex | Elixir | lib/pgex/types/generic_text.ex | karlseguin/pgex | 2921f350c9f8c8f72cc75c7ede85728ea5dba1bf | [
"MIT"
] | null | null | null | lib/pgex/types/generic_text.ex | karlseguin/pgex | 2921f350c9f8c8f72cc75c7ede85728ea5dba1bf | [
"MIT"
] | null | null | null | lib/pgex/types/generic_text.ex | karlseguin/pgex | 2921f350c9f8c8f72cc75c7ede85728ea5dba1bf | [
"MIT"
] | null | null | null | defmodule PgEx.Types.GenericText do
use PgEx.Types.Txt
def encode(_type, value), do: to_string(value)
def decode(_length, value), do: to_string(value)
end
| 23.142857 | 50 | 0.746914 |
18542642dd1a6e989ef5b6211c5c72da5eae1c0f | 608 | ex | Elixir | lib/facebook/graph_api.ex | ImmaculatePine/facebook.ex | cdd23805746480ef44473f6a2b051aa937b73a9c | [
"MIT"
] | null | null | null | lib/facebook/graph_api.ex | ImmaculatePine/facebook.ex | cdd23805746480ef44473f6a2b051aa937b73a9c | [
"MIT"
] | null | null | null | lib/facebook/graph_api.ex | ImmaculatePine/facebook.ex | cdd23805746480ef44473f6a2b051aa937b73a9c | [
"MIT"
] | null | null | null | defmodule Facebook.GraphAPI do
@moduledoc false
use HTTPoison.Base
alias Facebook.Config
def process_request_options(options) do
updated_options =
case Config.request_conn_timeout() do
:error -> options
val -> options ++ [timeout: val]
end
case Config.request_recv_timeout... | 20.266667 | 53 | 0.65625 |
185436086ee17a5b3daf445ac61190c02a892b6a | 1,518 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/model/surveys_stop_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/surveys_stop_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/surveys_stop_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... | 31.625 | 163 | 0.750329 |
1854495158fecfcb1ca968c4800840dfac8bf0d7 | 11,083 | exs | Elixir | test/middlewares/schema_test.exs | jotaviobiondo/rajska | d678d501fed0e698d697bb8d58648451091ec1ff | [
"MIT"
] | null | null | null | test/middlewares/schema_test.exs | jotaviobiondo/rajska | d678d501fed0e698d697bb8d58648451091ec1ff | [
"MIT"
] | null | null | null | test/middlewares/schema_test.exs | jotaviobiondo/rajska | d678d501fed0e698d697bb8d58648451091ec1ff | [
"MIT"
] | null | null | null | defmodule Rajska.SchemaTest do
use ExUnit.Case, async: true
defmodule Authorization do
use Rajska,
valid_roles: [:user, :admin],
super_role: :admin
end
defmodule User do
defstruct [
id: 1,
name: "User",
email: "email@user.com"
]
end
defmodule NotStruct do
def... | 30.700831 | 116 | 0.617973 |
1854508869b071ef9d47a86fced95ad150f3af00 | 8,715 | ex | Elixir | lib/sentry.ex | Boulevard/sentry-elixir | 2ded11257772f44b48213f0974caccdc7191eb53 | [
"MIT"
] | null | null | null | lib/sentry.ex | Boulevard/sentry-elixir | 2ded11257772f44b48213f0974caccdc7191eb53 | [
"MIT"
] | null | null | null | lib/sentry.ex | Boulevard/sentry-elixir | 2ded11257772f44b48213f0974caccdc7191eb53 | [
"MIT"
] | null | null | null | defmodule Sentry do
use Application
alias Sentry.{Config, Event}
require Logger
@moduledoc """
Provides the basic functionality to submit a `Sentry.Event` to the Sentry Service.
## Configuration
Add the following to your production config
config :sentry, dsn: "https://public:secret@app.getsentry... | 35.864198 | 163 | 0.692255 |
1854874cf0bf62881a88dd06062492bc05e1902e | 2,031 | ex | Elixir | lib/findmy_personal_web/controllers/teacher_controller.ex | carlosviana/find_mypersonal | 6fadea6135b074a296c6f2a501a694b5222ec6db | [
"MIT"
] | null | null | null | lib/findmy_personal_web/controllers/teacher_controller.ex | carlosviana/find_mypersonal | 6fadea6135b074a296c6f2a501a694b5222ec6db | [
"MIT"
] | 6 | 2021-07-06T17:41:35.000Z | 2021-07-10T10:26:30.000Z | lib/findmy_personal_web/controllers/teacher_controller.ex | carlosviana/find_mypersonal | 6fadea6135b074a296c6f2a501a694b5222ec6db | [
"MIT"
] | null | null | null | defmodule FindmyPersonalWeb.TeacherController do
use FindmyPersonalWeb, :controller
alias FindmyPersonal.Teachers
alias FindmyPersonal.Teachers.Teacher
def index(conn, _params) do
teachers = Teachers.list_teacher()
render(conn, "index.html", teachers: teachers)
end
def search(conn, %{"filter" => ... | 29.867647 | 73 | 0.660266 |
1854ca9f17b1c278e4f35bbab22084ee0ad25afb | 695 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/repo.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | 1 | 2020-08-04T14:13:24.000Z | 2020-08-04T14:13:24.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/repo.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | 1 | 2020-09-08T15:15:50.000Z | 2020-09-08T16:13:28.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/repo.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.Repo do
use Ecto.Repo,
otp_app: :nerves_hub_web_core,
adapter: Ecto.Adapters.Postgres
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
en... | 22.419355 | 67 | 0.634532 |
1854edff50cbb67fa136ff5f2d484151a3fdafac | 69 | ex | Elixir | lib/outer_web/views/user_confirmation_view.ex | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | lib/outer_web/views/user_confirmation_view.ex | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | lib/outer_web/views/user_confirmation_view.ex | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | defmodule OuterWeb.UserConfirmationView do
use OuterWeb, :view
end
| 17.25 | 42 | 0.826087 |
1854fe4fbdde16f4cba2e009c68feb29af133600 | 2,060 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/block_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_management/lib/google_api/android_management/v1/model/block_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_management/lib/google_api/android_management/v1/model/block_action.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... | 41.2 | 297 | 0.745631 |
185512e1c46b8ab3927dc83264adb831fed94fbb | 86 | exs | Elixir | test/elixir_blog_web/views/page_view_test.exs | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | test/elixir_blog_web/views/page_view_test.exs | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | test/elixir_blog_web/views/page_view_test.exs | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | defmodule ElixirBlogWeb.PageViewTest do
use ElixirBlogWeb.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
18552b036f1e5bc106f857d3ddf5c3ff4d5dcd79 | 391 | ex | Elixir | lib/engine/parser/assigns.ex | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 5 | 2021-06-23T17:46:08.000Z | 2022-02-23T21:12:06.000Z | lib/engine/parser/assigns.ex | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | null | null | null | lib/engine/parser/assigns.ex | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 1 | 2021-08-02T13:33:17.000Z | 2021-08-02T13:33:17.000Z | defmodule SnapFramework.Parser.Assigns do
require Logger
@moduledoc false
def run(ast, assigns) do
ast
|> parse(assigns)
end
def parse({:@, meta, [{name, _, _atom}]}, assigns) do
assign = SnapFramework.Engine.fetch_assign!(assigns, name)
quote line: meta[:line] || 0 do
unquote(Macro.... | 18.619048 | 62 | 0.654731 |
18552e1aef5985063b2ad173423b7f20f47e4c2a | 1,624 | ex | Elixir | deps/yaml_elixir/lib/yaml_elixir/mapper.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/yaml_elixir/lib/yaml_elixir/mapper.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/yaml_elixir/lib/yaml_elixir/mapper.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | defmodule YamlElixir.Mapper do
def process(nil, _options), do: %{}
def process(yaml, options) when is_list(yaml), do: Enum.map(yaml, &process(&1, options))
def process(yaml, options), do: yaml |> _to_map(options) |> extract_map()
defp extract_map(nil), do: %{}
defp extract_map(map), do: map
defp _to_map({... | 35.304348 | 95 | 0.652709 |
18553d13cc3c7bd2cad539427327b0eb5240c4f0 | 1,277 | ex | Elixir | lib/mongo/pool/monitor.ex | kamciokodzi/mongodb-old | 99e96a4ae6b963914ab733a8ba551ad1fcf75b2c | [
"Apache-2.0"
] | null | null | null | lib/mongo/pool/monitor.ex | kamciokodzi/mongodb-old | 99e96a4ae6b963914ab733a8ba551ad1fcf75b2c | [
"Apache-2.0"
] | null | null | null | lib/mongo/pool/monitor.ex | kamciokodzi/mongodb-old | 99e96a4ae6b963914ab733a8ba551ad1fcf75b2c | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.Pool.Monitor do
@moduledoc false
use GenServer
alias Mongo.Connection
def start_link(name, ets, opts) do
GenServer.start_link(__MODULE__, [ets, opts], name: name)
end
def version(name, ets, timeout) do
case :ets.lookup(ets, :wire_version) do
[] ->
GenServer.call(name,... | 28.377778 | 72 | 0.632733 |
18555b707e300ebb036bcc1e3869e6140b32450c | 9,138 | ex | Elixir | lib/rclex/nifs.ex | HiroiImanishi/rclex | 34bc6e344d6069a53e6c4c30de8d964a0e867706 | [
"Apache-2.0"
] | null | null | null | lib/rclex/nifs.ex | HiroiImanishi/rclex | 34bc6e344d6069a53e6c4c30de8d964a0e867706 | [
"Apache-2.0"
] | null | null | null | lib/rclex/nifs.ex | HiroiImanishi/rclex | 34bc6e344d6069a53e6c4c30de8d964a0e867706 | [
"Apache-2.0"
] | null | null | null | defmodule Rclex.Nifs do
@on_load {:load_nifs, 0}
@compile {:autoload, false}
@moduledoc false
def load_nifs do
nif = Application.app_dir(:rclex, "priv/rclex_nifs")
:erlang.load_nif(to_charlist(nif), 0)
end
# -----------------------init_nif.c--------------------------
def rcl_get_zero_initiali... | 29.101911 | 94 | 0.687459 |
18557442e9dff753176d261f7a8160fe080df503 | 1,124 | ex | Elixir | clients/content/lib/google_api/content/v2/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.060606 | 77 | 0.738434 |
185579bf14b6cd311e20fa2e97282610678b366e | 944 | exs | Elixir | test/day_10_adapter_array_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | 1 | 2021-01-07T07:00:16.000Z | 2021-01-07T07:00:16.000Z | test/day_10_adapter_array_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | null | null | null | test/day_10_adapter_array_test.exs | scmx/advent-of-code-2020-elixir | f60159e1a8827c6e033f5f4b2d47ea7edd49db5f | [
"MIT"
] | null | null | null | defmodule Adventofcode.Day10AdapterArrayTest do
use Adventofcode.FancyCase
import Adventofcode.Day10AdapterArray
@example1 "16 10 15 5 1 11 7 19 6 12 4"
@example2 "28 33 18 42 31 14 46 20 48 47 24 23 49 45 19 38 39 11 1 32 25 35 8 17 7 9 4 2 34 10 3"
describe "part_1/1" do
test "7 differences of 1 jol... | 27.764706 | 119 | 0.688559 |
18559a3a5dc3905dd89eca7e290e8806fa3a6c0a | 372 | ex | Elixir | web/views/error_view.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | 1 | 2016-09-13T10:40:53.000Z | 2016-09-13T10:40:53.000Z | web/views/error_view.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | web/views/error_view.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | defmodule Spaces.ErrorView do
use Spaces.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, a... | 20.666667 | 47 | 0.696237 |
1855bd95dcb3bc5ddcd95d3742b8c1244fd49eef | 1,091 | ex | Elixir | examples/phoenix_app/test/support/conn_case.ex | kianmeng/bakeware | 3c008a1c149ccf22cb3924126f2b8f0be522191f | [
"Apache-2.0"
] | 828 | 2020-09-12T18:56:48.000Z | 2022-03-01T22:34:39.000Z | examples/phoenix_app/test/support/conn_case.ex | kianmeng/bakeware | 3c008a1c149ccf22cb3924126f2b8f0be522191f | [
"Apache-2.0"
] | 54 | 2020-10-23T15:01:10.000Z | 2022-03-22T23:23:15.000Z | examples/phoenix_app/test/support/conn_case.ex | kianmeng/bakeware | 3c008a1c149ccf22cb3924126f2b8f0be522191f | [
"Apache-2.0"
] | 25 | 2020-09-14T12:01:54.000Z | 2022-02-23T03:30:08.000Z | defmodule PhoenixAppWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if... | 28.710526 | 64 | 0.737855 |
1855be5331faba1b7d0aa598f7775ef66fc32396 | 2,609 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.138462 | 166 | 0.739364 |
1855f3ab02c6be11ca3407b60bc884000c247327 | 253 | ex | Elixir | lib/hl7/2.4/datatypes/pcf.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/pcf.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/pcf.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.DataTypes.Pcf do
@moduledoc false
alias HL7.V2_4.{DataTypes}
use HL7.DataType,
fields: [
precertification_patient_type: nil,
precertification_required: nil,
precertification_window: DataTypes.Ts
]
end
| 21.083333 | 43 | 0.719368 |
1855f9789d669947b975e484eaa3ef30b38f7f40 | 878 | ex | Elixir | apps/tracking_web/test/support/conn_case.ex | pcmarks/ddd_elixir_demo_stage1 | e496f95cfaca1f9aca0e65a660eb8b999450f2f3 | [
"MIT"
] | 44 | 2017-11-12T17:12:55.000Z | 2022-03-29T18:21:08.000Z | apps/tracking_web/test/support/conn_case.ex | pcmarks/ddd_elixir_demo_stage1 | e496f95cfaca1f9aca0e65a660eb8b999450f2f3 | [
"MIT"
] | 7 | 2017-09-11T12:17:36.000Z | 2017-09-25T13:15:21.000Z | apps/tracking_web/test/support/conn_case.ex | pcmarks/ddd_elixir_demo_stage1 | e496f95cfaca1f9aca0e65a660eb8b999450f2f3 | [
"MIT"
] | 4 | 2019-04-15T08:03:30.000Z | 2021-12-15T16:00:02.000Z | defmodule TrackingWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if th... | 25.085714 | 58 | 0.730068 |
1855fa613934abc46a32997fdc50e7e23bd816f6 | 204 | exs | Elixir | assistant/test/assistant/translator_test.exs | dainst/bibliography-assistant | 6495055bf852964d416a02d92729406a6a1a33e9 | [
"Apache-2.0"
] | null | null | null | assistant/test/assistant/translator_test.exs | dainst/bibliography-assistant | 6495055bf852964d416a02d92729406a6a1a33e9 | [
"Apache-2.0"
] | null | null | null | assistant/test/assistant/translator_test.exs | dainst/bibliography-assistant | 6495055bf852964d416a02d92729406a6a1a33e9 | [
"Apache-2.0"
] | null | null | null | defmodule Assistant.TranslatorTest do
use ExUnit.Case
alias Assistant.Translator
test "hi" do
translation = Translator.translate :download, "en"
assert translation == "Download"
end
end
| 18.545455 | 54 | 0.735294 |
185612cfc48d0919fd72b444abd8547595d432eb | 2,109 | exs | Elixir | config/dev.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 6 | 2020-08-26T11:29:36.000Z | 2021-11-25T08:37:28.000Z | config/dev.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 20 | 2020-03-06T05:33:35.000Z | 2022-02-17T17:20:38.000Z | config/dev.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 2 | 2020-12-11T16:24:59.000Z | 2021-08-16T11:31:08.000Z | use Mix.Config
# Configure your database
config :pebl, Pebl.Repo,
username: "postgres",
password: "postgres",
database: "pebl_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.
#
# The... | 27.38961 | 68 | 0.686581 |
18562a2f3c3ba1236cc9c524a99a27a4b5e56490 | 2,411 | exs | Elixir | test/livebook_web/helpers/ansi_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | 1,846 | 2021-04-13T14:46:36.000Z | 2021-07-14T20:37:40.000Z | test/livebook_web/helpers/ansi_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | 411 | 2021-07-15T07:41:54.000Z | 2022-03-31T21:34:22.000Z | test/livebook_web/helpers/ansi_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | 130 | 2021-04-13T15:43:55.000Z | 2021-07-12T16:57:46.000Z | defmodule LivebookWeb.Helpers.ANSITest do
use ExUnit.Case, async: true
alias LivebookWeb.Helpers.ANSI
describe "ansi_string_to_html/2" do
test "converts ANSI escape codes to span tags" do
assert ~s{<span style="color: var(--ansi-color-blue);">cat</span>} ==
ANSI.ansi_string_to_html("\e[... | 41.568966 | 133 | 0.606387 |
1856470834fe4a21ddffa4591d6fb9fff163e6f6 | 493 | ex | Elixir | test/support/room/room_helper.ex | membraneframework/webrtc-server | 10603a3f85e2d197ce7cf10ccb79c5c71d57f346 | [
"Apache-2.0"
] | 10 | 2020-03-27T04:58:56.000Z | 2022-03-12T21:39:49.000Z | test/support/room/room_helper.ex | KalvadTech/webrtc-server | a9fbf41f83a644702946541342411f19e2806447 | [
"Apache-2.0"
] | 3 | 2021-01-25T08:47:45.000Z | 2021-02-08T12:58:42.000Z | test/support/room/room_helper.ex | KalvadTech/webrtc-server | a9fbf41f83a644702946541342411f19e2806447 | [
"Apache-2.0"
] | 1 | 2021-01-24T17:36:57.000Z | 2021-01-24T17:36:57.000Z | defmodule Membrane.WebRTC.Server.Support.RoomHelper do
@moduledoc false
alias Membrane.WebRTC.Server.Peer.AuthData
def generate_pid(_number, true),
do: spawn(fn -> :ok end)
def generate_pid(number, false),
do: IEx.Helpers.pid(0, number + 1000, 0)
def create_auth(sufix),
do: %AuthData{peer_id: ... | 27.388889 | 88 | 0.705882 |
18567ac027c3439705bafcb6da76a3a7488d231d | 690 | ex | Elixir | lib/graphql/mutations/version.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/graphql/mutations/version.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/graphql/mutations/version.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.GraphQL.Mutations.Version do
use Absinthe.Schema.Notation
import Accent.GraphQL.Helpers.Authorization
object :version_mutations do
field :create_version, :mutated_version do
arg(:project_id, non_null(:id))
arg(:name, non_null(:string))
arg(:tag, non_null(:string))
r... | 28.75 | 106 | 0.711594 |
18567c6e0a9d5a7b6a571a8f806f65d151f41f27 | 1,131 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/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... | 35.34375 | 77 | 0.741821 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.