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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4afc7e7fcc17939566b9f8d967f6dfcf9c6c7afa | 26 | ex | Elixir | lib/exduckdb.ex | mpope9/exduckdb | 2295022d8b2d8bb902feaf63d1a06d22b386c630 | [
"MIT"
] | 2 | 2021-12-04T08:38:13.000Z | 2021-12-17T02:25:59.000Z | lib/exduckdb.ex | mpope9/exduckdb | 2295022d8b2d8bb902feaf63d1a06d22b386c630 | [
"MIT"
] | null | null | null | lib/exduckdb.ex | mpope9/exduckdb | 2295022d8b2d8bb902feaf63d1a06d22b386c630 | [
"MIT"
] | null | null | null | defmodule Exduckdb do
end
| 8.666667 | 21 | 0.846154 |
4afcad4a414ef490be1a254c44ae7ffa13b6d29f | 1,711 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/control.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/control.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/control.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... | 35.645833 | 165 | 0.757452 |
4afcb2dd7a799d14242290b237cfaa96185263a5 | 7,538 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/api/entity_usage_reports.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/entity_usage_reports.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/entity_usage_reports.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... | 65.547826 | 1,123 | 0.683338 |
4afcc528c25fef30f0f5e47e60285178bedbd745 | 388 | ex | Elixir | web/views/error_view.ex | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 96 | 2016-02-26T20:20:33.000Z | 2020-10-02T16:21:00.000Z | web/views/error_view.ex | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 12 | 2016-02-27T16:23:55.000Z | 2017-07-04T13:46:00.000Z | web/views/error_view.ex | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 24 | 2016-03-10T23:55:33.000Z | 2019-06-07T18:32:34.000Z | defmodule Lyn.ErrorView do
use Lyn.Web, :view
def render("404.html", _assigns) do
render("not_found.html", %{})
end
def render("500.html", _assigns) do
render("server_error.html", %{})
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_fo... | 21.555556 | 47 | 0.677835 |
4afd1ad92d49f581b5987fce86294b910e4e2f75 | 736 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/network_watcher.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.Network/lib/microsoft/azure/management/network/model/network_watcher.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/network_watcher.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.Network.Model.NetworkWatcher do
@moduledoc """
Network watcher in a resource group.
"""
@derive [Poison.Encode... | 21.647059 | 87 | 0.646739 |
4afd4318f7cf6d2c6e1b0a03fb77f52108dc2c67 | 2,042 | ex | Elixir | lib/meshx_service_mesh.ex | andrzej-mag/meshx | 390fc96fdff7e4631a6f263ed1aebb506baadd3d | [
"Apache-2.0"
] | 18 | 2021-05-20T07:09:31.000Z | 2021-12-22T10:17:56.000Z | lib/meshx_service_mesh.ex | andrzej-mag/meshx | 390fc96fdff7e4631a6f263ed1aebb506baadd3d | [
"Apache-2.0"
] | 1 | 2021-05-26T08:36:36.000Z | 2021-05-26T09:53:31.000Z | lib/meshx_service_mesh.ex | andrzej-mag/meshx | 390fc96fdff7e4631a6f263ed1aebb506baadd3d | [
"Apache-2.0"
] | null | null | null | defmodule Meshx.ServiceMesh do
@moduledoc """
todo: Documentation will be provided at a later date.
Please check `MeshxConsul` for example service mesh adapter implementation.
"""
@type address() ::
{:tcp, ip :: :inet.ip_address(), port :: :inet.port_number()}
| {:uds, path :: String.t()}... | 35.206897 | 102 | 0.433399 |
4afdaf5d8864ed12818f98a8b36bb20e75bcdf0a | 4,366 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/reservation.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/reservation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/reservation.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 ... | 56.701299 | 511 | 0.710261 |
4afdbb68a821bdd108aac2fd4244ef283292e2b8 | 137,355 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/organizations.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/organizations.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/organizations.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.463095 | 722 | 0.633635 |
4afdcd47f2f592e0fcd2d28920ff61129cf98c65 | 821 | ex | Elixir | lib/rocketpay_web/controllers/accounts_controller.ex | ibrunotome/rocketpay-elixir | 71de669aec03ac1ee35f6bb5e533e29f3f818270 | [
"MIT"
] | null | null | null | lib/rocketpay_web/controllers/accounts_controller.ex | ibrunotome/rocketpay-elixir | 71de669aec03ac1ee35f6bb5e533e29f3f818270 | [
"MIT"
] | null | null | null | lib/rocketpay_web/controllers/accounts_controller.ex | ibrunotome/rocketpay-elixir | 71de669aec03ac1ee35f6bb5e533e29f3f818270 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.AccountsController do
use RocketpayWeb, :controller
alias Rocketpay.Account
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
def deposit(conn, params) do
with {:ok, %Account{} = account} <- Rocketpay.deposit(params) do
conn
|> put_status(:ok)
... | 26.483871 | 88 | 0.665043 |
4afe079a7f40626b48ac1cb3bbcac818359d28da | 1,547 | exs | Elixir | config/config.exs | h3poteto/ex_release_bot | 050c1f20ca6613af011bcb382e0311d5e1527f84 | [
"MIT"
] | null | null | null | config/config.exs | h3poteto/ex_release_bot | 050c1f20ca6613af011bcb382e0311d5e1527f84 | [
"MIT"
] | null | null | null | config/config.exs | h3poteto/ex_release_bot | 050c1f20ca6613af011bcb382e0311d5e1527f84 | [
"MIT"
] | 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... | 40.710526 | 74 | 0.739496 |
4afe0f427219ba899896b6c7efcb133d5f83e3ed | 118 | exs | Elixir | config/dev.exs | nekifirus/tender_pro_test | 22e9758b3dec1770c6f1dd1b5984af4fd5c6420a | [
"MIT"
] | null | null | null | config/dev.exs | nekifirus/tender_pro_test | 22e9758b3dec1770c6f1dd1b5984af4fd5c6420a | [
"MIT"
] | null | null | null | config/dev.exs | nekifirus/tender_pro_test | 22e9758b3dec1770c6f1dd1b5984af4fd5c6420a | [
"MIT"
] | null | null | null | use Mix.Config
config :kvstore, table_name: :ets_dev
config :kvstore, file_name: :dets_dev
config :kvstore, ttl: 120
| 19.666667 | 37 | 0.771186 |
4afe13c9c81972b8c8310cbd9f7ec6176f3232bc | 853 | ex | Elixir | lib/quick_polls/web/controllers/session_controller.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | lib/quick_polls/web/controllers/session_controller.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | 6 | 2017-04-10T05:01:04.000Z | 2017-04-21T06:02:03.000Z | lib/quick_polls/web/controllers/session_controller.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | defmodule QuickPolls.Web.SessionController do
use QuickPolls.Web, :controller
import Doorman.Login.Session
def create(conn, %{"session" => %{"email" => email, "password" => password}}) do
if user = Doorman.authenticate(email, password) do
conn
|> login(user)
|> put_flash(:success, "Successf... | 24.371429 | 87 | 0.604924 |
4afe1fcbee75fe9dac1d2c87178a55e296573d02 | 2,495 | ex | Elixir | lib/bird_watch/couchdb.ex | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | lib/bird_watch/couchdb.ex | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | lib/bird_watch/couchdb.ex | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | defmodule BirdWatch.Couchdb do
@database_properties %{
protocol: Application.compile_env(:couchdb_connector, :protocol),
hostname: Application.compile_env(:couchdb_connector, :hostname),
database: Application.compile_env(:couchdb_connector, :database),
user: Application.compile_env(:couchdb_connector,... | 28.033708 | 89 | 0.673747 |
4afe2aa3e927ac5d269b9ff6fa2ab655b3c3cddf | 1,074 | exs | Elixir | bowling_game/test/iteration_02/bowling_game/day14_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/test/iteration_02/bowling_game/day14_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/test/iteration_02/bowling_game/day14_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule BowlingGame.Day14Test do
use ExUnit.Case, async: true
alias BowlingGame.Day14, as: BowlingGame
setup do: {:ok, game: BowlingGame.new_game()}
test "gutter game", %{game: game}, do:
assert game
|> roll_many(20, 0)
|> BowlingGame.score() == 0
test "all ones", %{game: game}... | 23.866667 | 55 | 0.540968 |
4afe496f016941b3f88d9050d7a2a628c9f01d32 | 1,202 | exs | Elixir | config/prod.secret.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | config/prod.secret.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | config/prod.secret.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 28.619048 | 62 | 0.72213 |
4afe4e31eccd07d81b06cff2aef7ad150708a9b0 | 1,823 | exs | Elixir | fisherman_server/test/fisherman_server/sorts_test.exs | henrysdev/Fisherman | 57bc51730cedb84a47807e2d617061f2cfe54ffd | [
"MIT"
] | 1 | 2020-05-14T06:07:21.000Z | 2020-05-14T06:07:21.000Z | fisherman_server/test/fisherman_server/sorts_test.exs | henrysdev/Fisherman | 57bc51730cedb84a47807e2d617061f2cfe54ffd | [
"MIT"
] | 19 | 2020-05-04T17:29:44.000Z | 2020-07-05T18:15:10.000Z | fisherman_server/test/fisherman_server/sorts_test.exs | henrysdev/Fisherman | 57bc51730cedb84a47807e2d617061f2cfe54ffd | [
"MIT"
] | null | null | null | defmodule FishermanServer.SortsTest do
use FishermanServer.DataCase
import FishermanServer.TestFns
alias FishermanServer.{
User,
Sorts
}
test "interval sort" do
%User{uuid: user_id} = add_user!()
shell_records =
gen_shell_records_for_user(3, user_id) ++
[
gen_shell_r... | 26.808824 | 78 | 0.427318 |
4afe55ca298f572ad9ee64192db003a1c73cd3af | 109,066 | ex | Elixir | lib/elixir/lib/enum.ex | prodis/elixir | 5ea99c5cd40130a25d7dcf9aa92b321e42b30df1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | prodis/elixir | 5ea99c5cd40130a25d7dcf9aa92b321e42b30df1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | prodis/elixir | 5ea99c5cd40130a25d7dcf9aa92b321e42b30df1 | [
"Apache-2.0"
] | null | null | null | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression:
Enum.map([1, 2, 3], &(&1 * 2))
invokes `Enume... | 28.588729 | 105 | 0.616526 |
4afe57b6b73d63c2e5ae3c43a27c248c0e54a8e0 | 12,879 | ex | Elixir | lib/elixir/lib/inspect/algebra.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Algebra do
@moduledoc %S"""
A set of functions for creating and manipulating algebra
documents, as described in ["Strictly Pretty" (2000) by Christian Lindig][0].
An algebra document is represented by an `Inspect.Algebra` node
or a regular string.
iex> Inspect.Algebra.empty
:do... | 31.184019 | 111 | 0.613013 |
4afe6bf29631bf08f2c694bdb94604a8b6066896 | 480 | ex | Elixir | web/plugs/authenticate.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | 1 | 2020-07-17T14:02:31.000Z | 2020-07-17T14:02:31.000Z | web/plugs/authenticate.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | null | null | null | web/plugs/authenticate.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | 1 | 2019-12-02T17:51:36.000Z | 2019-12-02T17:51:36.000Z | defmodule Sonar.Plug.Authenticate do
import Plug.Conn
import Sonar.Router.Helpers
import Phoenix.Controller
def init(default), do: default
def call(conn, default) do
current_user = get_session(conn, :current_user)
if current_user do
assign(conn, :current_user, current_user)
else
conn... | 24 | 74 | 0.670833 |
4afe6c4cc5ddf7194bcc88deb6b7512c1cf305f8 | 2,249 | ex | Elixir | apps/ewallet_config/lib/ewallet_config/storage/local.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_config/lib/ewallet_config/storage/local.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_config/lib/ewallet_config/storage/local.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 28.833333 | 78 | 0.701201 |
4afe7c4ca783b4c7be06e0a72f1a0765923ad8cd | 1,115 | exs | Elixir | config/config.exs | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | 3 | 2016-07-28T14:26:38.000Z | 2017-10-24T14:14:37.000Z | config/config.exs | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | null | null | null | config/config.exs | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | null | null | null | use Mix.Config
## Ecto.Adapters.Riak* configuration options:
#
# config :ecto, EctoRiak.RiakTSRepo,
# adapter: Ecto.Adapters.RiakTS,
# hostname: "localhost",
# port: 8087,
# init_count: 5,
# max_count: 10
#
# config :ecto, EctoRiak.RiakTSRepo,
# adapter: Ecto.Adapters.RiakTS,
# pool: [
# [name: :riak... | 23.229167 | 72 | 0.582063 |
4afe9fa9007fadc41436857ce7cb369f4743f338 | 1,053 | exs | Elixir | config/config.exs | MorphicPro/morphic_pro | 0028726250b6c55842e4bb48ffeeddc28e63b1bd | [
"MIT"
] | null | null | null | config/config.exs | MorphicPro/morphic_pro | 0028726250b6c55842e4bb48ffeeddc28e63b1bd | [
"MIT"
] | null | null | null | config/config.exs | MorphicPro/morphic_pro | 0028726250b6c55842e4bb48ffeeddc28e63b1bd | [
"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 :morphic_pro,
ecto_repos: [MorphicPro.R... | 32.90625 | 88 | 0.773029 |
4afee970d10165ca280600c2ea151c34ea9fe1bb | 881 | ex | Elixir | lib/jisho_elixir/v1/verb.ex | szTheory/jisho_elixir | 14124626af134aa54a6ad36c074071dab84b625e | [
"MIT"
] | 20 | 2017-08-31T17:18:46.000Z | 2021-07-12T12:58:15.000Z | lib/jisho_elixir/v1/verb.ex | szTheory/jisho_elixir | 14124626af134aa54a6ad36c074071dab84b625e | [
"MIT"
] | 1 | 2020-03-08T14:05:35.000Z | 2020-03-08T14:05:35.000Z | lib/jisho_elixir/v1/verb.ex | szTheory/jisho_elixir | 14124626af134aa54a6ad36c074071dab84b625e | [
"MIT"
] | 3 | 2018-05-19T15:11:53.000Z | 2020-03-03T14:53:10.000Z | defmodule JishoElixir.V1.Verb do
@moduledoc false
# Search verbs using the #verb tag, Jisho V1
import JishoElixir.V1.Base
@doc """
Search a verb.
"""
def search!(word) do
process_with_tag!(word, "verb")
end
@doc """
Search a verb with tag(s).
"""
def search!(word, tag) when is_binary(ta... | 20.488372 | 60 | 0.625426 |
4afef2ee213d6e35f9bf76267e4586448c91e219 | 2,072 | ex | Elixir | lib/breaking_pp/real_world/cluster.ex | distributed-owls/breaking-pp | fdc6957997281c15ed6cf13e8b3de53b0dded0c1 | [
"MIT"
] | 4 | 2018-06-13T20:46:01.000Z | 2018-09-24T12:50:53.000Z | lib/breaking_pp/real_world/cluster.ex | well-ironed/breaking-pp | fdc6957997281c15ed6cf13e8b3de53b0dded0c1 | [
"MIT"
] | 2 | 2018-05-12T10:16:01.000Z | 2018-08-14T05:07:21.000Z | lib/breaking_pp/real_world/cluster.ex | well-ironed/breaking-pp | fdc6957997281c15ed6cf13e8b3de53b0dded0c1 | [
"MIT"
] | 3 | 2018-05-10T19:57:06.000Z | 2018-09-21T11:31:55.000Z | defmodule BreakingPP.RealWorld.Cluster do
import BreakingPP.Eventually
alias BreakingPP.RealWorld
alias BreakingPP.RealWorld.Sessions
def start(size) do
reset_splits()
Sessions.new()
{_, 0} = cmd(["stop_cluster"])
{_, 0} = cmd(["create_network"])
1..size
|> Enum.map(&Task.async(fn -> c... | 23.816092 | 79 | 0.625965 |
4afefaaa09d7ea95e7c7096b4e0eed1067518c94 | 1,091 | ex | Elixir | pub_sub_test/test/support/conn_case.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | pub_sub_test/test/support/conn_case.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | pub_sub_test/test/support/conn_case.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | defmodule PubSubTestWeb.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 |
4aff1afa49c5d8bca267e564ee5753123b957de4 | 294 | ex | Elixir | lib/trento/application/integration/checks/dto/group_dto.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento/application/integration/checks/dto/group_dto.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento/application/integration/checks/dto/group_dto.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Integration.Checks.GroupDto do
@moduledoc """
Catalog entry by group
"""
@required_fields [
:group,
:checks
]
use Trento.Type
alias Trento.Integration.Checks.CheckDto
deftype do
field :group, :string
embeds_many :checks, CheckDto
end
end
| 14 | 47 | 0.683673 |
4aff2cbfd7987248676907c0de0aae4727783dcf | 3,446 | ex | Elixir | lib/fml_saxy.ex | xmppjingle/fml | 73a473d7bf78c8370a45bb8564cca930a35c33d6 | [
"Apache-2.0"
] | null | null | null | lib/fml_saxy.ex | xmppjingle/fml | 73a473d7bf78c8370a45bb8564cca930a35c33d6 | [
"Apache-2.0"
] | null | null | null | lib/fml_saxy.ex | xmppjingle/fml | 73a473d7bf78c8370a45bb8564cca930a35c33d6 | [
"Apache-2.0"
] | null | null | null | import Saxy.XML
defmodule FML_Saxy do
@moduledoc """
Documentation for `FML_Saxy`.
"""
@doc """
Basic to XML render.
## Examples
## "t(a='c','d'){ b(p1='d', p2 = 'c').onConnect(code= '200', reason=Reason) }"
iex> a = "t(a='c','d'){ b(p1='d', p2 = 'c').onConnect(code= '200', reason=Reason) }"... | 35.895833 | 265 | 0.511608 |
4aff522bd9a1c1fe903c4c442dd0d7bbca89d89a | 4,811 | ex | Elixir | lib/elixir_jobs_web/controllers/offer_controller.ex | justuseapen/elixir_jobs | f3c0660fe5931b1a9ca3cf8833bc1ad3c776b0d6 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/controllers/offer_controller.ex | justuseapen/elixir_jobs | f3c0660fe5931b1a9ca3cf8833bc1ad3c776b0d6 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/controllers/offer_controller.ex | justuseapen/elixir_jobs | f3c0660fe5931b1a9ca3cf8833bc1ad3c776b0d6 | [
"MIT"
] | null | null | null | defmodule ElixirJobsWeb.OfferController do
use ElixirJobsWeb, :controller
alias ElixirJobs.{
Offers,
Offers.Offer
}
@filters_available ["text", "job_type", "job_place"]
@type_filters Enum.map(Offers.get_job_types(), &to_string/1)
@place_filters Enum.map(Offers.get_job_places(), &to_string/1)
pl... | 28.3 | 91 | 0.617751 |
4aff55e964f94ad6f1e406078784e5b21654ae07 | 752 | ex | Elixir | lib/mix/lib/mix/tasks/archive.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/archive.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/archive.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Archive do
use Mix.Task
@shortdoc "Lists installed archives"
@moduledoc """
Lists all installed archives.
Archives are typically installed at `~/.mix/archives`
although the installation path can be customized by
setting the `MIX_ARCHIVES` environment variable.
Since archives are ... | 26.857143 | 55 | 0.708777 |
4aff891a3ca4db875ac91477e5577e7b6e70144c | 2,535 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/export_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/export_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/export_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.966102 | 155 | 0.734122 |
4aff89f1b7708695b9d64011ee363b0fe463923b | 1,170 | ex | Elixir | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/test/support/conn_case.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/test/support/conn_case.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/test/support/conn_case.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule ADemoWeb.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 the ... | 28.536585 | 67 | 0.723932 |
4affaaab4e1cd17fea412c8e80ec389bd6ca01e9 | 1,134 | ex | Elixir | lib/extruder.ex | eloy/extruder | 3adfb8c024edc734aa3f721cbb2c53b1ac977389 | [
"MIT"
] | 1 | 2018-05-03T00:24:50.000Z | 2018-05-03T00:24:50.000Z | lib/extruder.ex | eloy/extruder | 3adfb8c024edc734aa3f721cbb2c53b1ac977389 | [
"MIT"
] | null | null | null | lib/extruder.ex | eloy/extruder | 3adfb8c024edc734aa3f721cbb2c53b1ac977389 | [
"MIT"
] | null | null | null | defmodule Extruder do
defmacro __using__(_opts) do
quote do
import Extruder
@__extruder__ %{validations: [], fields: []}
end
end
defmacro defmodel(block) do
quote do
import Extruder.ValidationHelpers
import Extruder.Fields
# Parse the fields
unquote(block)
... | 21 | 81 | 0.584656 |
4affb32c179fc5c76d55dc0cb0b9f883efcbbe56 | 950 | exs | Elixir | mix.exs | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 1,311 | 2015-11-08T02:21:41.000Z | 2022-03-25T17:32:57.000Z | mix.exs | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 30 | 2015-11-09T17:07:50.000Z | 2022-02-10T17:13:50.000Z | mix.exs | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 58 | 2015-11-08T16:50:00.000Z | 2022-03-30T13:03:18.000Z | defmodule Visualixir.Mixfile do
use Mix.Project
def project do
[
app: :visualixir,
version: "0.1.99999999",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(),
# elixirc_options: [warnings_as_errors: true],
compilers: [:phoenix] ++ Mix.compilers(),
build_embedded: Mix.en... | 23.75 | 63 | 0.595789 |
4affc2b00fea49c41369fc2d215283be0f0f8bed | 1,543 | ex | Elixir | installer/auth/web/web.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | installer/auth/web/web.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | installer/auth/web/web.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | defmodule Auth.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Auth.Web, :controller
use Auth.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and cl... | 20.038961 | 88 | 0.654569 |
4affc5a6441b379528da54a23b4838bea9b48dd7 | 3,179 | exs | Elixir | test/phoenix/controller/logger_test.exs | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | test/phoenix/controller/logger_test.exs | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | test/phoenix/controller/logger_test.exs | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller.LoggerTest do
# This test case needs to be sync because we rely on
# log capture which is global.
use ExUnit.Case
use RouterHelper
defmodule LoggerController do
use Phoenix.Controller
plug :action
def index(conn, _params), do: text(conn, "index")
end
test "logs c... | 31.166667 | 127 | 0.591381 |
ab00061117d013e9c852bc117b7935ffaf86e8c3 | 4,346 | ex | Elixir | lib/marco_polo/fetch_plan.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | 76 | 2015-08-03T21:47:05.000Z | 2020-07-15T08:00:01.000Z | lib/marco_polo/fetch_plan.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | 33 | 2015-07-31T15:45:52.000Z | 2021-07-21T05:54:22.000Z | lib/marco_polo/fetch_plan.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | 18 | 2015-08-06T05:04:18.000Z | 2021-07-19T03:26:44.000Z | defmodule MarcoPolo.FetchPlan do
@moduledoc """
Provides facilities for traversing links to OrientDB records.
"""
alias MarcoPolo.RID
defmodule RecordNotFoundError do
@moduledoc """
Raised when a record is not found in a set of linked records.
"""
defexception [:message]
end
@doc """
... | 32.676692 | 100 | 0.635297 |
ab001975aaf6db73fb5a25803a3ed6cc7c1880b0 | 9,914 | exs | Elixir | test/support/websocket_client.exs | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | test/support/websocket_client.exs | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | test/support/websocket_client.exs | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | defmodule Phoenix.Integration.WebsocketClient do
@moduledoc """
A WebSocket client used to test Phoenix.Channel
"""
use GenServer
import Kernel, except: [send: 2]
defstruct [
:conn,
:request_ref,
:websocket,
:caller,
:status,
:resp_headers,
:sender,
:serializer,
closing... | 28.084986 | 98 | 0.611963 |
ab009fcee03795af6c328b1450277587a6aa4f9d | 3,750 | ex | Elixir | lib/segment/hitans.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 27 | 2015-08-09T16:36:31.000Z | 2020-01-26T17:47:17.000Z | lib/segment/hitans.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 14 | 2015-07-31T07:28:07.000Z | 2018-09-06T18:32:37.000Z | lib/segment/hitans.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 19 | 2015-07-31T01:25:17.000Z | 2019-06-29T16:28:42.000Z | defmodule FinTex.Segment.HITANS do
@moduledoc false
alias FinTex.Model.TANScheme
defstruct [segment: nil]
def new(segment) when is_list(segment) do
[[_, _, v | _] | _] = segment
{offset, params_count} = case v do
1 -> {4, 11}
2 -> {3, 15}
3 -> {3, 18}
4 -> {3, 22}
5 -> ... | 26.223776 | 100 | 0.492267 |
ab00dd03c4952467d76222fb61e446c0c0a5adee | 1,705 | ex | Elixir | clients/resource_settings/lib/google_api/resource_settings/v1/model/google_cloud_resourcesettings_v1_value_string_set.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/resource_settings/lib/google_api/resource_settings/v1/model/google_cloud_resourcesettings_v1_value_string_set.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/resource_settings/lib/google_api/resource_settings/v1/model/google_cloud_resourcesettings_v1_value_string_set.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.788462 | 164 | 0.747214 |
ab00de279f0b974ab4e51fd1d8af64043abd228c | 1,115 | exs | Elixir | config/config.exs | bgmarx/xyz | 19f0a14a6e4d568260580e50f563e6698d455c8e | [
"Apache-2.0"
] | null | null | null | config/config.exs | bgmarx/xyz | 19f0a14a6e4d568260580e50f563e6698d455c8e | [
"Apache-2.0"
] | null | null | null | config/config.exs | bgmarx/xyz | 19f0a14a6e4d568260580e50f563e6698d455c8e | [
"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... | 35.967742 | 73 | 0.749776 |
ab00f620c10d2992ecb83e98244dc54105ceec22 | 2,165 | ex | Elixir | lib/mix/lib/mix/tasks/local.public_keys.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.public_keys.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.public_keys.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Local.PublicKeys do
use Mix.Task
@shortdoc "Manages public keys"
@moduledoc """
Public keys are used by Mix to install packages like Rebar and Hex.
Mix by default ships with a public key but new ones can be added
on demand.
To list all available keys:
$ mix local.public_key... | 27.0625 | 106 | 0.655889 |
ab011d898e4076bc27a063a6149e52581028131c | 1,076 | ex | Elixir | apps/banking_api_challenge/lib/banking_api_challenge/operations/schemas/operation.ex | jhonndabi/banking-api-challenge | 1e13c675b02c8e62a76e82b0a0dd6a44306a211e | [
"Apache-2.0"
] | null | null | null | apps/banking_api_challenge/lib/banking_api_challenge/operations/schemas/operation.ex | jhonndabi/banking-api-challenge | 1e13c675b02c8e62a76e82b0a0dd6a44306a211e | [
"Apache-2.0"
] | null | null | null | apps/banking_api_challenge/lib/banking_api_challenge/operations/schemas/operation.ex | jhonndabi/banking-api-challenge | 1e13c675b02c8e62a76e82b0a0dd6a44306a211e | [
"Apache-2.0"
] | 1 | 2021-04-20T19:05:48.000Z | 2021-04-20T19:05:48.000Z | defmodule BankingApiChallenge.Operations.Schemas.Operation do
@moduledoc """
The operation schema.
"""
use Ecto.Schema
import Ecto.Changeset
alias BankingApiChallenge.Accounts.Schemas.Account
@acceptable_operation_types ~w(deposit transfer withdrawal)
@required [:operation_type, :amount]
@optional ... | 27.589744 | 80 | 0.73513 |
ab011e23d737ec3661edf2667e5a79c732664de6 | 804 | exs | Elixir | mix.exs | alex-philippov/jwt-google-tokens | 18aa3eccc9a2c1a6016b2fe53b0bc6b1612a04b7 | [
"Apache-2.0"
] | null | null | null | mix.exs | alex-philippov/jwt-google-tokens | 18aa3eccc9a2c1a6016b2fe53b0bc6b1612a04b7 | [
"Apache-2.0"
] | null | null | null | mix.exs | alex-philippov/jwt-google-tokens | 18aa3eccc9a2c1a6016b2fe53b0bc6b1612a04b7 | [
"Apache-2.0"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Jwt.Mixfile do
use Mix.Project
def project do
[app: :jwt,
version: "0.6.1",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[
applications:... | 21.72973 | 68 | 0.528607 |
ab01232dd21b753587f48fe4ad33e55e3f590a11 | 1,439 | ex | Elixir | lib/vroom/job.ex | wesleimp/vroom-elixir | 5c0bc5a8c9ce02f6415eb06a568f3310dfd8977d | [
"MIT"
] | 5 | 2021-04-14T15:02:59.000Z | 2021-04-28T19:18:00.000Z | lib/vroom/job.ex | rands0n/vroom-elixir | 76a217d81f58c5fb4b29675ed009a4339277bd6b | [
"MIT"
] | 5 | 2021-04-13T22:03:29.000Z | 2021-05-12T12:47:41.000Z | lib/vroom/job.ex | rands0n/vroom-elixir | 76a217d81f58c5fb4b29675ed009a4339277bd6b | [
"MIT"
] | 2 | 2021-04-14T16:39:35.000Z | 2021-04-28T19:17:53.000Z | defmodule VROOM.Job do
@moduledoc """
A Job is a description of a place to visit.
The Job struct has the folling properties:
- `id`: the job identifier;
- `location`: the coordinates list
- location_index]: index of relevant row and column in custom matrix;
- `service`: job service duration (defaults to... | 30.617021 | 95 | 0.642808 |
ab01407e76ccd8a16795758fc037e0fa71c07ada | 168 | ex | Elixir | exercises/concept/mensch-aergere-dich-nicht/lib/mensch_aergere_dich_nicht.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/mensch-aergere-dich-nicht/lib/mensch_aergere_dich_nicht.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/mensch-aergere-dich-nicht/lib/mensch_aergere_dich_nicht.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule MenschAergereDichNicht do
def d6 do
# Please implement the d6/0 function
end
def roll(die) do
# Please implement the roll/1 function
end
end
| 16.8 | 42 | 0.720238 |
ab0157fbfda31367b73bdf4135be7029df43724b | 8,492 | ex | Elixir | lib/tarearbol/extras/calendar.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 49 | 2017-07-22T12:25:46.000Z | 2022-02-12T20:29:36.000Z | lib/tarearbol/extras/calendar.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 15 | 2017-07-21T13:17:32.000Z | 2021-02-25T05:40:11.000Z | lib/tarearbol/extras/calendar.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 4 | 2017-10-26T10:28:00.000Z | 2019-09-13T08:04:01.000Z | defmodule Tarearbol.Calendar do
@moduledoc """
Handy functions to work with dates.
"""
use Boundary
@days_in_week 7
@doc """
Returns a `DateTime` instance of the beginning of the period given as third
parameters, related to the `DateTime` instance given as the first parameter
(defaulted to `DateTim... | 31.451852 | 90 | 0.554875 |
ab018674f6f0441ce4f2ee2ae65974377cc4b6f2 | 1,951 | exs | Elixir | mix.exs | Dimagog/persistent_vector | c9f6dd609b4f3be822cc5c11a3a1a6660a851911 | [
"MIT"
] | 13 | 2017-10-01T09:37:00.000Z | 2021-09-11T06:06:02.000Z | mix.exs | Dimagog/persistent_vector | c9f6dd609b4f3be822cc5c11a3a1a6660a851911 | [
"MIT"
] | 1 | 2021-09-04T16:21:06.000Z | 2021-09-09T11:58:18.000Z | mix.exs | Dimagog/persistent_vector | c9f6dd609b4f3be822cc5c11a3a1a6660a851911 | [
"MIT"
] | 2 | 2017-10-29T20:57:28.000Z | 2019-02-08T09:08:51.000Z | defmodule PersistentVector.Mixfile do
use Mix.Project
@version "0.1.4"
@github "https://github.com/dimagog/persistent_vector"
def project do
[
app: :persistent_vector,
name: "Persistent Vector",
version: @version,
description: "PersistentVector is an array-like collection of values... | 29.119403 | 168 | 0.579703 |
ab019faaf76d7db3730110088222ca29d22bf1b9 | 6,814 | exs | Elixir | test/dgraph_ex/core/kwargs_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:41.000Z | 2019-05-01T15:18:41.000Z | test/dgraph_ex/core/kwargs_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | null | null | null | test/dgraph_ex/core/kwargs_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:48.000Z | 2019-05-01T15:18:48.000Z | defmodule DgraphEx.Core.KwargsTest do
use ExUnit.Case, async: true
doctest DgraphEx.Core.Kwargs
import TestHelpers
import DgraphEx
import DgraphEx.Core.Kwargs
alias DgraphEx.ModelPerson, as: Person
test "a query call returns a query" do
assert query([]) == %DgraphEx.Core.Query{}
end
test "a sim... | 23.176871 | 84 | 0.362929 |
ab01d04c7073d294f4beaa9ffafc7a5e2386d741 | 4,039 | ex | Elixir | TheLittleElixir/lib/thy_supervisor/lib/thy_supervisor.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | TheLittleElixir/lib/thy_supervisor/lib/thy_supervisor.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | TheLittleElixir/lib/thy_supervisor/lib/thy_supervisor.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule ThySupervisor do
use GenServer
### API
def start_link(child_spec_list) do
GenServer.start_link(__MODULE__, [child_spec_list])
end
def start_child(supervisor, child_spec) do
GenServer.call(supervisor, {:start_child, child_spec})
end
def terminate_child(supervisor, pid) when is_pid(pid) d... | 24.478788 | 69 | 0.58975 |
ab01d56d5afb31f946e6e1c173f314fb651e8100 | 145 | exs | Elixir | test/sanbase/alerts/history/history_result_builder_transformer_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase/alerts/history/history_result_builder_transformer_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase/alerts/history/history_result_builder_transformer_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Alert.History.ResultBuilder.TransformerTest do
use ExUnit.Case
doctest Sanbase.Alert.History.ResultBuilder.Transformer
end
| 29 | 64 | 0.855172 |
ab01e81964d2afbe4645e1d629b77c6c41a33841 | 14,654 | ex | Elixir | apps/site/lib/site_web/views/helpers.ex | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/site/lib/site_web/views/helpers.ex | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/site/lib/site_web/views/helpers.ex | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | defmodule SiteWeb.ViewHelpers do
@moduledoc """
Helper functions used across SiteWeb views.
"""
import Site.ContentRewriters.LiquidObjects.Fare, only: [fare_object_request: 1]
import SiteWeb.Router.Helpers, only: [redirect_path: 3, stop_path: 3]
import Phoenix.HTML, only: [raw: 1]
import Phoenix.HTML.L... | 28.072797 | 99 | 0.639075 |
ab02164e8bd5eb7b337e9131e910ef15e8068eb2 | 1,602 | ex | Elixir | clients/people/lib/google_api/people/v1/model/delete_contact_photo_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/delete_contact_photo_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/people/lib/google_api/people/v1/model/delete_contact_photo_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.085106 | 189 | 0.750312 |
ab029213eef2633cf832e4b1b0a0be93ac17bf61 | 1,121 | exs | Elixir | config/config.exs | garyf/apportion_ex | 1f65f2087976e920d303463f72d72b94e0534325 | [
"MIT"
] | 2 | 2016-09-25T22:16:54.000Z | 2020-01-13T19:33:19.000Z | config/config.exs | garyf/apportion_ex | 1f65f2087976e920d303463f72d72b94e0534325 | [
"MIT"
] | null | null | null | config/config.exs | garyf/apportion_ex | 1f65f2087976e920d303463f72d72b94e0534325 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.752007 |
ab02994963b5895e1269283f459954f06442a04e | 861 | ex | Elixir | lib/mix/helper/schedule_rescrapes_helper.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/mix/helper/schedule_rescrapes_helper.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/mix/helper/schedule_rescrapes_helper.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Mix.Helper.ScheduleRescrapeHelpers do
alias Sanbase.Model.Project
alias Sanbase.ExternalServices.Coinmarketcap.{ScheduleRescrapePrice, PriceScrapingProgress}
def run(from, to, opts \\ []) do
projects =
Keyword.get(opts, :projects) ||
Project.List.projects_with_source("coinmark... | 28.7 | 93 | 0.642276 |
ab0299d181f06e6188b1d33019b90a6b1d14e409 | 635 | exs | Elixir | test/nerves_time/rtc/ds3231/date_test.exs | elcritch/nerves_time_rtc_mcp7940 | d1035d05f44bc1588ec170112459c6396278f01d | [
"Apache-2.0"
] | null | null | null | test/nerves_time/rtc/ds3231/date_test.exs | elcritch/nerves_time_rtc_mcp7940 | d1035d05f44bc1588ec170112459c6396278f01d | [
"Apache-2.0"
] | null | null | null | test/nerves_time/rtc/ds3231/date_test.exs | elcritch/nerves_time_rtc_mcp7940 | d1035d05f44bc1588ec170112459c6396278f01d | [
"Apache-2.0"
] | null | null | null | defmodule NervesTime.RTC.mcp7940().DateTest do
use ExUnit.Case
alias NervesTime.RTC.mcp7940().Date
test "decodes date" do
assert Date.decode(<<2, 3, 4, 1, 5, 6, 7>>) ==
{:ok, ~N[2007-06-05 04:03:02]}
end
test "encodes date" do
assert Date.encode(~N[2007-06-05 04:03:02.49]) ==
... | 28.863636 | 81 | 0.588976 |
ab02affe1c26aeccbb5096f71d34e0dd0b654da7 | 603 | exs | Elixir | test/dogma/rule/trailing_blank_lines_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | test/dogma/rule/trailing_blank_lines_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | test/dogma/rule/trailing_blank_lines_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | defmodule Dogma.Rule.TrailingBlankLinesTest do
use RuleCase, for: TrailingBlankLines
test "not error when there are no trailing blank lines" do
script = """
IO.puts 1
""" |> Script.parse!("")
assert [] == Rule.test( @rule, script )
end
test "error when there are trailing blank lines" do
s... | 22.333333 | 60 | 0.603648 |
ab02c534d1f4abf7fc52d83f67aa4ac04bbd5328 | 2,356 | ex | Elixir | lib/mojito/conn.ex | marcdel/mojito | ce1ba49fdfeaf2098953e5d188b37ce8082ab737 | [
"MIT"
] | null | null | null | lib/mojito/conn.ex | marcdel/mojito | ce1ba49fdfeaf2098953e5d188b37ce8082ab737 | [
"MIT"
] | null | null | null | lib/mojito/conn.ex | marcdel/mojito | ce1ba49fdfeaf2098953e5d188b37ce8082ab737 | [
"MIT"
] | null | null | null | defmodule Mojito.Conn do
@moduledoc false
alias Mojito.{Error, Utils}
defstruct conn: nil,
protocol: nil,
hostname: nil,
port: nil
@type t :: %Mojito.Conn{}
@doc ~S"""
Connects to the specified endpoint, returning a connection to the server.
No requests are made.
... | 29.45 | 78 | 0.609508 |
ab02d4bbe8009e65e0b11fd289b6ce8389398dff | 245 | ex | Elixir | lib/muse.ex | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | lib/muse.ex | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | lib/muse.ex | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | defmodule Muse do
@moduledoc """
Muse keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.5 | 66 | 0.746939 |
ab02d840442c134d9ef890b5ed99f995ea775622 | 969 | ex | Elixir | lib/codes/codes_c03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_C03 do
alias IcdCode.ICDCode
def _C030 do
%ICDCode{full_code: "C030",
category_code: "C03",
short_code: "0",
full_name: "Malignant neoplasm of upper gum",
short_name: "Malignant neoplasm of upper gum",
category_name: "Malignant neo... | 28.5 | 65 | 0.611971 |
ab02ddadc19afa58be39987c298e6cf0b6ee4b36 | 2,788 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_repository_resource.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_repository_resource.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_repository_resource.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.5625 | 148 | 0.752511 |
ab03416c207f91d13b6b8242098ca9b1fa937632 | 4,198 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/network_endpoint_group.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/network_endpoint_group.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/network_endpoint_group.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 51.195122 | 490 | 0.694616 |
ab034c8b6ed6b01193e28f734c34b09b93aff65d | 25 | ex | Elixir | lib/rex2048.ex | rexikan/rex2048 | 751a127384c71e5aa7ddd3779115974aa8bd6004 | [
"MIT"
] | 1 | 2015-12-02T23:03:22.000Z | 2015-12-02T23:03:22.000Z | lib/rex2048.ex | rexikan/rex2048 | 751a127384c71e5aa7ddd3779115974aa8bd6004 | [
"MIT"
] | null | null | null | lib/rex2048.ex | rexikan/rex2048 | 751a127384c71e5aa7ddd3779115974aa8bd6004 | [
"MIT"
] | null | null | null | defmodule Rex2048 do
end
| 8.333333 | 20 | 0.84 |
ab0368f7a126bf45cae28aa348aecdedb0f2d8f1 | 1,221 | exs | Elixir | test/elixir/tuple_test.exs | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | 1 | 2015-10-25T11:30:13.000Z | 2015-10-25T11:30:13.000Z | test/elixir/tuple_test.exs | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | test/elixir/tuple_test.exs | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | Code.require_file "../test_helper", __FILE__
module TupleTest
mixin ExUnit::Case
def brackets_test
1 = {1,2,3}[0]
2 = {1,2,3}[1]
3 = {1,2,3}[2]
nil = {1,2,3}[3]
end
def brackets_negative_index_test
1 = {1,2,3}[-3]
2 = {1,2,3}[-2]
3 = {1,2,3}[-1]
nil = {1,2,3}[-4]
... | 18.5 | 79 | 0.511876 |
ab03699cba4573f35bc5b0fbe8ae3a970268233f | 1,256 | ex | Elixir | apps/discordbot/lib/discordbot/model/hello.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/lib/discordbot/model/hello.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/lib/discordbot/model/hello.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.Model.Hello do
@derive [Poison.Encoder]
@moduledoc """
The initial message sent over the websocket
"""
use DiscordBot.Model.Serializable
alias DiscordBot.Model.{Payload, Serializable}
defstruct [
:heartbeat_interval,
:_trace
]
@typedoc """
Interval in milliseconds th... | 21.655172 | 72 | 0.656051 |
ab03a2f8ab7027ca81a89c9fa1b11537567c4a96 | 514 | exs | Elixir | Module #01/Challenges/list_filter/mix.exs | abreumatheus/RocketseatIgniteElixir | 47f126e060565af69287ee5409dc2f95247feb53 | [
"MIT"
] | null | null | null | Module #01/Challenges/list_filter/mix.exs | abreumatheus/RocketseatIgniteElixir | 47f126e060565af69287ee5409dc2f95247feb53 | [
"MIT"
] | null | null | null | Module #01/Challenges/list_filter/mix.exs | abreumatheus/RocketseatIgniteElixir | 47f126e060565af69287ee5409dc2f95247feb53 | [
"MIT"
] | null | null | null | defmodule ListFilter.MixProject do
use Mix.Project
def project do
[
app: :list_filter,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
e... | 18.357143 | 61 | 0.575875 |
ab03ac7a17e4ab878fa0bb32f10d62495452e248 | 2,230 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/embedded_object_border_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/embedded_object_border_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/embedded_object_border_suggestion_state.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... | 39.821429 | 173 | 0.733184 |
ab03bc6fe647f01ed60061271bcdfc11e88ad8dc | 340 | ex | Elixir | apps/service_receive/lib/receive/init.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/init.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/init.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Receive.Init do
use Initializer,
name: __MODULE__,
supervisor: Receive.Accept.Supervisor
alias Receive.{Accept, SocketManager}
def on_start(state) do
Accept.Store.get_all!()
|> Enum.each(fn accept ->
Accept.Supervisor.start_child({SocketManager, accept: accept})
end)
{:o... | 20 | 68 | 0.688235 |
ab03e0772207d4c4d0b1427059ace56f12ab2efe | 1,244 | exs | Elixir | config/config.exs | adrianokerber/rocketpay | 6b4cc054ee0127b1111a3b2e5f9e9881a7fedcf1 | [
"MIT"
] | null | null | null | config/config.exs | adrianokerber/rocketpay | 6b4cc054ee0127b1111a3b2e5f9e9881a7fedcf1 | [
"MIT"
] | null | null | null | config/config.exs | adrianokerber/rocketpay | 6b4cc054ee0127b1111a3b2e5f9e9881a7fedcf1 | [
"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 :rocketpay,
ecto_repos: [Rocketpay.Repo... | 31.1 | 86 | 0.767685 |
ab03e5c7677a6135138977290f08b82e7b212212 | 2,366 | exs | Elixir | config/dev.exs | zarynxyz/zaryn | 5d6cf8b6e43e8cdf2a8d0688fb9c16e4509fc958 | [
"Apache-2.0"
] | 4 | 2021-05-29T11:22:36.000Z | 2022-02-09T11:26:39.000Z | config/dev.exs | zarynxyz/zaryn | 5d6cf8b6e43e8cdf2a8d0688fb9c16e4509fc958 | [
"Apache-2.0"
] | 2 | 2021-06-17T13:32:39.000Z | 2022-02-09T11:26:02.000Z | config/dev.exs | zarynxyz/zaryn | 5d6cf8b6e43e8cdf2a8d0688fb9c16e4509fc958 | [
"Apache-2.0"
] | 1 | 2021-06-04T14:27:20.000Z | 2021-06-04T14:27:20.000Z | import Config
# Configure your database
config :zaryn, Zaryn.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "zaryn_dev",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# T... | 31.546667 | 86 | 0.708369 |
ab03fb0cb38ef86c7970f21850fa0b10d80f8980 | 49,191 | ex | Elixir | test/fixtures/integration_test_config/clean.ex | egze/credo | 59ee836e9ee07c478421df3078a56230a86c3860 | [
"MIT"
] | null | null | null | test/fixtures/integration_test_config/clean.ex | egze/credo | 59ee836e9ee07c478421df3078a56230a86c3860 | [
"MIT"
] | null | null | null | test/fixtures/integration_test_config/clean.ex | egze/credo | 59ee836e9ee07c478421df3078a56230a86c3860 | [
"MIT"
] | 1 | 2020-06-28T00:36:07.000Z | 2020-06-28T00:36:07.000Z | # Copyright (C) 2010, Mathias Kinzler <mathias.kinzler@sap.com>
# Copyright (C) 2009, Constantine Plotnikov <constantine.plotnikov@gmail.com>
# Copyright (C) 2007, Dave Watson <dwatson@mimvista.com>
# Copyright (C) 2008-2010, Google Inc.
# Copyright (C) 2009, Google, Inc.
# Copyright (C) 2009, JetBrains s.r.o.
# Copyri... | 32.794 | 101 | 0.661442 |
ab041645032388bb2d0647b934395d2f89f8a505 | 1,247 | exs | Elixir | config/prod.secret.exs | jvdvleuten/jetlog | 916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | jvdvleuten/jetlog | 916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | jvdvleuten/jetlog | 916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2 | [
"Apache-2.0"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.690476 | 67 | 0.719326 |
ab047f6fff72baa0b243449a1932dc541b78d84f | 807 | ex | Elixir | misc/lib/neighborhood.ex | feihong/elixir-examples | dda6128f729199dad21220925df3bae241911fbd | [
"Apache-2.0"
] | null | null | null | misc/lib/neighborhood.ex | feihong/elixir-examples | dda6128f729199dad21220925df3bae241911fbd | [
"Apache-2.0"
] | null | null | null | misc/lib/neighborhood.ex | feihong/elixir-examples | dda6128f729199dad21220925df3bae241911fbd | [
"Apache-2.0"
] | null | null | null | defmodule Neighborhood do
@doc """
Takes the path of a geojson file and returns a list of pairs of the format
{neighborhood_name, boundary_geometry}.
"""
def read(cache_name) do
path = "cache/#{cache_name}.json"
if File.exists?(path) do
File.read!(path)
|> Poison.decode!
|> (fn m... | 26.032258 | 76 | 0.551425 |
ab048a390181ae349a11041d233c6976732234a8 | 539 | ex | Elixir | lib/ash/error/forbidden.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/error/forbidden.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/error/forbidden.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | defmodule Ash.Error.Forbidden do
@moduledoc "Used when authorization for an action fails"
use Ash.Error.Exception
def_ash_error([:errors, :stacktraces?], class: :forbidden)
defimpl Ash.ErrorKind do
def id(_), do: Ash.UUID.generate()
def message(%{errors: errors, stacktraces?: stacktraces?}) when not... | 24.5 | 89 | 0.697588 |
ab049dbf212c8d724e0ba580839dfcd97cb8fd3a | 1,596 | ex | Elixir | lib/militerm/entities/thing.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | lib/militerm/entities/thing.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | lib/militerm/entities/thing.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | defmodule Militerm.Entities.Thing do
@moduledoc """
The basic entity that is based on an archetype. It merges data from the archetype
with any data given to it and then creates the entity.
For most games, this will be sufficient when combined with the archetype and mixin
scripts.
N.B.: The core game engin... | 40.923077 | 100 | 0.752506 |
ab049faa521f09c67239c208dfeceaf992a25a0c | 1,060 | exs | Elixir | test/inmana_web/controllers/restaurants_controller_test.exs | pferreirafabricio/never-mind | c687a701e92fb75195606e1b031182073ec3da4e | [
"MIT"
] | null | null | null | test/inmana_web/controllers/restaurants_controller_test.exs | pferreirafabricio/never-mind | c687a701e92fb75195606e1b031182073ec3da4e | [
"MIT"
] | null | null | null | test/inmana_web/controllers/restaurants_controller_test.exs | pferreirafabricio/never-mind | c687a701e92fb75195606e1b031182073ec3da4e | [
"MIT"
] | null | null | null | defmodule Inmana.RestaurantsControllerTest do
use InmanaWeb.ConnCase, async: true
describe "create/2" do
test "when all params are valid, creates the restaurant", %{conn: conn} do
params = %{name: "Três Irmãos", email: "tresirmaos@gmail.com"}
response =
conn
|> post(Routes.restaura... | 28.648649 | 78 | 0.558491 |
ab04b0d02bdafd1389344c8b6c49313054967b0b | 2,389 | exs | Elixir | day-5/part1.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | 1 | 2019-05-14T04:42:31.000Z | 2019-05-14T04:42:31.000Z | day-5/part1.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | null | null | null | day-5/part1.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | null | null | null | defmodule AoC.Day5.Part1 do
@moduledoc """
--- Day 5: Alchemical Reduction ---
You've managed to sneak in to the prototype suit manufacturing lab. The Elves
are making decent progress, but are still struggling with the suit's size
reduction capabilities.
While the very latest in 1518 alchemical technology ... | 36.753846 | 108 | 0.713688 |
ab04fd9fa1498e6842956d804252f1db73475668 | 999 | exs | Elixir | apps/day12/test/day12_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | 2 | 2019-12-21T21:21:04.000Z | 2019-12-27T07:00:19.000Z | apps/day12/test/day12_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | apps/day12/test/day12_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | defmodule Day12Test do
use ExUnit.Case
doctest Day12
@ex1 [{-1, 0, 2}, {2, -10, -7}, {4, -8, 8}, {3, 5, -1}]
test "example1" do
{p, _acc} = Day12.simulate(@ex1, 1)
assert p ==
[{{2, -1, 1}, {3,-1,-1}},
{{3, -7, -4}, {1, 3, 3}},
{{1, -7, 5}, {-3, 1, -3}},
{{2, 2, 0}, {-1, -3,... | 23.232558 | 68 | 0.469469 |
ab05053703fb34e12fe659c105cda496efcaa91e | 1,226 | ex | Elixir | examples/example-phx-1_2/web/views/error_helpers.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 681 | 2016-06-21T20:49:21.000Z | 2022-02-19T04:08:38.000Z | examples/example-phx-1_2/web/views/error_helpers.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 125 | 2016-06-21T21:14:49.000Z | 2020-12-12T20:15:48.000Z | examples/example-phx-1_2/web/views/error_helpers.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 76 | 2016-09-06T03:40:55.000Z | 2022-01-20T21:29:22.000Z | defmodule Example.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(error), ... | 29.902439 | 73 | 0.66721 |
ab05662c6502a719ed2c3ae513afbcce627bb593 | 8,235 | exs | Elixir | apps/andi/test/integration/andi_web/live/edit_user_live_view_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/test/integration/andi_web/live/edit_user_live_view_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/test/integration/andi_web/live/edit_user_live_view_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule AndiWeb.EditUserLiveViewTest do
use ExUnit.Case
use Andi.DataCase
use AndiWeb.Test.AuthConnCase.IntegrationCase
@moduletag shared_data_connection: true
use Placebo
import Phoenix.LiveViewTest
import SmartCity.Event,
only: [
organization_update: 0,
user_organization_associate: ... | 31.551724 | 116 | 0.618458 |
ab057289ef7e7f277ebb2bf91d1ccf660600d550 | 2,748 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/user.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/user.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/user.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... | 42.276923 | 154 | 0.69214 |
ab0572bb57a7b2b235716d646bf68e842e715f2c | 5,367 | ex | Elixir | lib/fast_sanitize/sanitizer/meta.ex | rinpatch/fast_sanitize | f6ad942b9fede69a55535e404cf4f65ca44b1401 | [
"MIT"
] | null | null | null | lib/fast_sanitize/sanitizer/meta.ex | rinpatch/fast_sanitize | f6ad942b9fede69a55535e404cf4f65ca44b1401 | [
"MIT"
] | null | null | null | lib/fast_sanitize/sanitizer/meta.ex | rinpatch/fast_sanitize | f6ad942b9fede69a55535e404cf4f65ca44b1401 | [
"MIT"
] | null | null | null | # Based on HtmlSanitizeEx.Scrubber.Meta
# Copyright (c) 2015-2019 René Föhring (@rrrene)
defmodule FastSanitize.Sanitizer.Meta do
@moduledoc """
This module contains some meta-programming magic to define your own rules
for scrubbers.
The StripTags scrubber is a good starting point:
defmodule FastSaniti... | 28.396825 | 86 | 0.683063 |
ab05905b240e425f3eb083652bdbbc3f5a9cf372 | 2,106 | exs | Elixir | apps/commuter_rail_boarding/test/date_helpers_test.exs | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 1 | 2022-01-30T20:53:07.000Z | 2022-01-30T20:53:07.000Z | apps/commuter_rail_boarding/test/date_helpers_test.exs | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 47 | 2021-05-05T10:31:05.000Z | 2022-03-30T22:18:14.000Z | apps/commuter_rail_boarding/test/date_helpers_test.exs | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 1 | 2021-05-14T00:35:08.000Z | 2021-05-14T00:35:08.000Z | defmodule DateHelpersTest do
@moduledoc false
use ExUnit.Case, async: true
import DateHelpers
describe "service_date/1" do
test "returns the current date if it's 3am or after" do
assert ~D[2017-01-01] = service_date(local_dt!(~N[2017-01-01T03:00:00]))
assert ~D[2017-01-01] = service_date(local_... | 35.1 | 78 | 0.640551 |
ab05913ffc5d56b0518823cc8719d73ef8dadce6 | 9,097 | exs | Elixir | apps/language_server/test/dialyzer_test.exs | ngscheurich/elixir-ls | 4d671e5fbcab69df70e490d17cfb7affcf4d1383 | [
"Apache-2.0"
] | null | null | null | apps/language_server/test/dialyzer_test.exs | ngscheurich/elixir-ls | 4d671e5fbcab69df70e490d17cfb7affcf4d1383 | [
"Apache-2.0"
] | null | null | null | apps/language_server/test/dialyzer_test.exs | ngscheurich/elixir-ls | 4d671e5fbcab69df70e490d17cfb7affcf4d1383 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.DialyzerTest do
# TODO: Test loading and saving manifest
alias ElixirLS.LanguageServer.{Dialyzer, Server, Protocol, SourceFile}
alias ElixirLS.Utils.PacketCapture
import ExUnit.CaptureLog
use ElixirLS.Utils.MixTest.Case, async: false
use Protocol
setup_all do
# This... | 34.328302 | 102 | 0.506431 |
ab05b193d58f5e8978fa752369fcdfaa7000c731 | 574 | ex | Elixir | lib/benzinpreise_web/router.ex | zookzook/benzinpreise | 05f7946bc2b181ca9e3260b388ae45a55829b9a9 | [
"MIT"
] | null | null | null | lib/benzinpreise_web/router.ex | zookzook/benzinpreise | 05f7946bc2b181ca9e3260b388ae45a55829b9a9 | [
"MIT"
] | null | null | null | lib/benzinpreise_web/router.ex | zookzook/benzinpreise | 05f7946bc2b181ca9e3260b388ae45a55829b9a9 | [
"MIT"
] | null | null | null | defmodule BenzinpreiseWeb.Router do
use BenzinpreiseWeb, :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 "/", BenzinpreiseW... | 19.793103 | 57 | 0.69338 |
ab05c58f1952404cb0d624bf11c79719a7a3c0d2 | 269 | exs | Elixir | test/control/applicative/list_test.exs | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | 23 | 2015-10-04T20:49:56.000Z | 2022-01-09T19:35:52.000Z | test/control/applicative/list_test.exs | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | null | null | null | test/control/applicative/list_test.exs | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | 2 | 2015-10-11T22:07:56.000Z | 2015-12-21T13:56:07.000Z | defmodule Control.Applicative.ListTest do
use ExUnit.Case
alias Control.Applicative, as: A
test "apply" do
f = &(&1 + 1)
assert [f] |> A.apply([2])
== [3]
assert [] |> A.apply([2])
== []
assert [] |> A.apply([])
== []
end
end
| 17.933333 | 41 | 0.505576 |
ab05d383b4aa839fdea4303138981fa73539faae | 2,659 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_version.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/instance_group_manager_version.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_version.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 ... | 48.345455 | 312 | 0.74953 |
ab05e10597351346a3e307838cd2ee2080736bbf | 363 | ex | Elixir | lib/swedbankpay_checkout/model/operation.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/model/operation.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/model/operation.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Model.Operation do
@type t :: %__MODULE__{
:method => String.t(),
:rel => String.t(),
:href => String.t(),
:content_type => String.t()
}
@derive Poison.Encoder
defstruct [
:method,
:rel,
:href,
:content_type
]
@doc ... | 19.105263 | 48 | 0.539945 |
ab05f0b0e18922196896c6604105b4df6b9b9735 | 35,543 | ex | Elixir | lib/ecto/repo/schema.ex | matteing/ecto | beabc36931222ac574bb0047fef90d84cb138459 | [
"Apache-2.0"
] | 3,931 | 2016-06-16T11:38:48.000Z | 2022-03-31T21:24:19.000Z | lib/ecto/repo/schema.ex | matteing/ecto | beabc36931222ac574bb0047fef90d84cb138459 | [
"Apache-2.0"
] | 2,343 | 2016-06-16T11:18:09.000Z | 2022-03-27T23:44:43.000Z | deps/ecto/lib/ecto/repo/schema.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 1,300 | 2016-06-17T13:56:59.000Z | 2022-03-31T01:46:20.000Z | defmodule Ecto.Repo.Schema do
# The module invoked by user defined repos
# for schema related functionality.
@moduledoc false
alias Ecto.Changeset
alias Ecto.Changeset.Relation
require Ecto.Query
import Ecto.Query.Planner, only: [attach_prefix: 2]
@doc """
Implementation for `Ecto.Repo.insert_all/3... | 35.086871 | 135 | 0.636609 |
ab062b250b3c1cbf0ff8bb9015b1e28da24f8d90 | 149 | ex | Elixir | apps/dockup_ui/web/views/deployment_view.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 1 | 2019-08-20T07:45:10.000Z | 2019-08-20T07:45:10.000Z | apps/dockup_ui/web/views/deployment_view.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup_ui/web/views/deployment_view.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 2 | 2019-03-08T10:51:34.000Z | 2019-08-20T07:45:13.000Z | defmodule DockupUi.DeploymentView do
use DockupUi.Web, :view
def deployment_as_json(deployment) do
raw Poison.encode!(deployment)
end
end
| 18.625 | 39 | 0.771812 |
ab0636daabd3010e0071849d1a94bdeed99a8da3 | 4,178 | ex | Elixir | lib/ecto_role/filter.supervisor.ex | fossabot/ecto-role | 083d5189833f2e333d12e07d23f7a1f4e9314afc | [
"MIT"
] | null | null | null | lib/ecto_role/filter.supervisor.ex | fossabot/ecto-role | 083d5189833f2e333d12e07d23f7a1f4e9314afc | [
"MIT"
] | null | null | null | lib/ecto_role/filter.supervisor.ex | fossabot/ecto-role | 083d5189833f2e333d12e07d23f7a1f4e9314afc | [
"MIT"
] | null | null | null | defmodule EctoRole.Filter.Supervisor do
use Supervisor
require Logger
alias EctoRole.Filter.Server, as: FS
alias EctoRole.Filter, as: FILTER
alias EctoRole.Repo, as: Repo
@moduledoc false
@registry_name :ecto_role_filter_registry
def start_link do
Supervisor.start_link(__MODULE__, nil, name: __... | 20.380488 | 67 | 0.569651 |
ab06737ebf6e73b1e062bfcdafd312233a9b93f4 | 201 | ex | Elixir | web/queries/payment.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/queries/payment.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/queries/payment.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Query.Payment do
use Nectar.Query, model: Nectar.Payment
def for_order(%Nectar.Order{id: order_id}) do
from p in Nectar.Payment,
where: p.order_id == ^order_id
end
end
| 20.1 | 47 | 0.716418 |
ab0677fb73b6f221242178bb741a8d55ee139d7b | 2,543 | ex | Elixir | lib/mix/tasks/contento.install.theme.ex | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | null | null | null | lib/mix/tasks/contento.install.theme.ex | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | null | null | null | lib/mix/tasks/contento.install.theme.ex | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | 1 | 2020-11-21T20:12:01.000Z | 2020-11-21T20:12:01.000Z | defmodule Mix.Tasks.Contento.Install.Theme do
use Mix.Task
require Logger
import Mix.Ecto
alias Contento.Themes
@base_path "priv/themes"
@config_filename "theme.json"
def run(args) do
options = parse_args(args)
ensure_started(Contento.Repo, [])
if options[:local] do
if !options[:s... | 22.90991 | 73 | 0.602438 |
ab06822d8df09cf93ac3eacfc6178638cedd0e9e | 4,347 | exs | Elixir | test/grizzly/command_class/multi_channel_association/set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/multi_channel_association/set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/multi_channel_association/set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.MultiChannelAssociation.Set.Test do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.MultiChannelAssociation.Set
alias Grizzly.Command.EncodeError
describe "implements the Grizzly command behaviour" do
test "initializes the command state" do
... | 30.612676 | 98 | 0.588912 |
ab06bed02a76a2d209d0aa5a125eac6cfe4b96b7 | 2,506 | ex | Elixir | lib/radiator_web/views/helpers/format_helpers.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | lib/radiator_web/views/helpers/format_helpers.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | lib/radiator_web/views/helpers/format_helpers.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.FormatHelpers do
@moduledoc """
General formatting view helpers that should be readily available
"""
use Radiator.Constants, :permissions
def format_date_relative(date) do
with {:ok, result} <- Timex.format(date, "{relative}", :relative) do
result
else
_ -> "-"
... | 22.781818 | 75 | 0.637271 |
ab06d834d6facbe4230552190da77e443f8bfea0 | 295 | exs | Elixir | config/config.exs | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | config/config.exs | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | config/config.exs | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | use Mix.Config
config :serum, service: Serum.DevServer.Service.GenServer
if Mix.env() === :dev do
config :mix_test_watch,
tasks: [
"coveralls.html",
"format --check-formatted",
"credo --all --strict"
]
end
if Mix.env() === :test do
import_config("test.exs")
end
| 17.352941 | 57 | 0.627119 |
ab0726eae55dfd3e18d1c8ade94ed8419b64f31c | 112 | exs | Elixir | test/exfpm_test.exs | Markcial/exfpm | 7ba1b130cf76a57324bed6189372c1f61df6c7c7 | [
"MIT"
] | null | null | null | test/exfpm_test.exs | Markcial/exfpm | 7ba1b130cf76a57324bed6189372c1f61df6c7c7 | [
"MIT"
] | null | null | null | test/exfpm_test.exs | Markcial/exfpm | 7ba1b130cf76a57324bed6189372c1f61df6c7c7 | [
"MIT"
] | null | null | null | defmodule ExfpmTest do
use ExUnit.Case
doctest Exfpm
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
ab07812f2082244eddc1b4afe71d6bec11b9331e | 12,217 | exs | Elixir | test/geoip_test.exs | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 90 | 2016-09-03T08:17:18.000Z | 2022-02-16T13:56:50.000Z | test/geoip_test.exs | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 24 | 2016-09-05T07:02:02.000Z | 2022-02-01T16:14:01.000Z | test/geoip_test.exs | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 14 | 2016-12-12T10:15:35.000Z | 2021-11-11T18:48:42.000Z | defmodule GeoIPTest do
use ExUnit.Case, async: false
import Mock
setup do
Application.put_env(:geoip, :cache, false)
:ok
end
describe "lookup/1 when provider is not specified" do
setup do
Application.put_env(:geoip, :provider, nil)
:ok
end
test "throws an error" do
... | 29.367788 | 92 | 0.60334 |
ab07a4d5b07d86c8df979431a7c4a2c46e4d314a | 1,167 | exs | Elixir | config/config.exs | Anp-tomsk/redis_provider | 4932d51f83b0b0e8146a61eb3bcf7da099775573 | [
"MIT"
] | null | null | null | config/config.exs | Anp-tomsk/redis_provider | 4932d51f83b0b0e8146a61eb3bcf7da099775573 | [
"MIT"
] | null | null | null | config/config.exs | Anp-tomsk/redis_provider | 4932d51f83b0b0e8146a61eb3bcf7da099775573 | [
"MIT"
] | 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... | 37.645161 | 74 | 0.735219 |
ab07af96c52ea3eaceb0012818842121de6a7ee3 | 501 | exs | Elixir | test/models/sent_mail_test.exs | brandnewio/brandnew-mail-tracker | 0f991c82bd95be6a8efaee949b459b77a1e7245d | [
"MIT"
] | null | null | null | test/models/sent_mail_test.exs | brandnewio/brandnew-mail-tracker | 0f991c82bd95be6a8efaee949b459b77a1e7245d | [
"MIT"
] | null | null | null | test/models/sent_mail_test.exs | brandnewio/brandnew-mail-tracker | 0f991c82bd95be6a8efaee949b459b77a1e7245d | [
"MIT"
] | null | null | null | defmodule BrandnewMailTracker.SentMailTest do
use BrandnewMailTracker.ModelCase
alias BrandnewMailTracker.SentMail
@valid_attrs %{clicked: true, opened: true, token: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = SentMail.changeset(%SentMail{}, @valid_attrs)
... | 26.368421 | 68 | 0.752495 |
ab07b03da98b49c4fed29179716cbf97e32d476c | 1,336 | ex | Elixir | test/support/data_case.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 2 | 2021-03-22T19:37:33.000Z | 2022-01-04T08:48:20.000Z | test/support/data_case.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 10 | 2019-11-29T20:24:24.000Z | 2021-02-26T22:06:13.000Z | test/support/data_case.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 1 | 2020-01-09T17:13:29.000Z | 2020-01-09T17:13:29.000Z | defmodule RailwayIpc.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 t... | 23.438596 | 76 | 0.710329 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.