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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c826ae9e5bf3ad9fcdc9bd76d1c36b4b44ce6e16 | 1,147 | exs | Elixir | examples/lwm 72 - Protocols/protocol_example/config/config.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 38 | 2018-12-31T10:51:42.000Z | 2022-03-25T18:18:10.000Z | examples/lwm 72 - Protocols/protocol_example/config/config.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | null | null | null | examples/lwm 72 - Protocols/protocol_example/config/config.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 6 | 2019-08-19T03:21:36.000Z | 2021-07-16T09:34:49.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 37 | 73 | 0.755013 |
c82706161c9a0952e5faa8e98fc3bed2d129ec0a | 497 | ex | Elixir | lib/my_personal_web/views/error_view.ex | kadmohardy/MyPersonal | 5b2b05ef8b2db57c99a8751e5ac381f01e9faba9 | [
"MIT"
] | null | null | null | lib/my_personal_web/views/error_view.ex | kadmohardy/MyPersonal | 5b2b05ef8b2db57c99a8751e5ac381f01e9faba9 | [
"MIT"
] | null | null | null | lib/my_personal_web/views/error_view.ex | kadmohardy/MyPersonal | 5b2b05ef8b2db57c99a8751e5ac381f01e9faba9 | [
"MIT"
] | null | null | null | defmodule MyPersonalWeb.ErrorView do
use MyPersonalWeb, :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 templat... | 29.235294 | 61 | 0.738431 |
c827237fde5831b87e3f847b79ee31da26a13272 | 92 | exs | Elixir | apps/legion/test/identity/auth/insecure/insecure_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/identity/auth/insecure/insecure_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/identity/auth/insecure/insecure_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Identity.Auth.InsecureTest do
@moduledoc false
use Legion.DataCase
end
| 18.4 | 46 | 0.815217 |
c8273858a25831bf72019881012ca67cd20a0c1c | 3,030 | ex | Elixir | web/txs/view_model.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | web/txs/view_model.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | web/txs/view_model.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.ViewModel.Macros do
defmacro def_view_model(name, keys, do: body) do
defstruct_body = Enum.zip(keys, List.duplicate(nil, length(keys)))
quote do
defmodule unquote(name) do
Module.put_attribute unquote(name), :required_keys, unquote(keys)
Module.put_attribute unquote(name... | 32.234043 | 79 | 0.663036 |
c8274cde12a7e4cd4d8af26901b66faf78b55d3a | 1,519 | ex | Elixir | lib/pobcoin/consumer.ex | Bentheburrito/pobcoin | 36f879ad1bae2660ace43dce66cada0c0b559dc9 | [
"MIT"
] | null | null | null | lib/pobcoin/consumer.ex | Bentheburrito/pobcoin | 36f879ad1bae2660ace43dce66cada0c0b559dc9 | [
"MIT"
] | null | null | null | lib/pobcoin/consumer.ex | Bentheburrito/pobcoin | 36f879ad1bae2660ace43dce66cada0c0b559dc9 | [
"MIT"
] | null | null | null | defmodule Pobcoin.Consumer do
use Nostrum.Consumer
alias Nostrum.Api
def start_link do
Consumer.start_link(__MODULE__)
end
def handle_event({:MESSAGE_CREATE, message, _ws_state}) do
if message.content == "!pob", do: Api.create_message(message.channel_id, "pob")
if String.starts_with?(message.co... | 34.522727 | 126 | 0.724161 |
c82790e237ed98d4c7fc1e3eb0321d352e4be752 | 18,960 | ex | Elixir | lib/phoenix_live_view/channel.ex | boriskohen/phoenix_live_view | 5a52f9b8abeae4dbf6235abdf14a55d090c710e4 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/channel.ex | boriskohen/phoenix_live_view | 5a52f9b8abeae4dbf6235abdf14a55d090c710e4 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/channel.ex | boriskohen/phoenix_live_view | 5a52f9b8abeae4dbf6235abdf14a55d090c710e4 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Channel do
@moduledoc false
use GenServer, restart: :temporary
require Logger
alias Phoenix.LiveView.{Socket, Utils, Diff, Static}
alias Phoenix.Socket.Message
@prefix :phoenix
def start_link({auth_payload, from, phx_socket}) do
hibernate_after = phx_socket.endpoint.conf... | 30.433387 | 100 | 0.63307 |
c827e558631d10bda79c2865a79a38d6f8089d8d | 744 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/network_interface.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_interface.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/network_interface.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.NetworkInterface do
@moduledoc """
A network interface in a resource group.
"""
@derive [Poison.... | 21.882353 | 89 | 0.649194 |
c827e952c6510a58f34d4fb7dbfe9ac228bf3a80 | 1,964 | exs | Elixir | config/dev.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
"60BnXnzGGwwiZj91YA9XYKF9BCiM7lQ/1um8VXcWWLSdUp9OcPZV6YnQv7eFTYSY"
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. F... | 28.882353 | 72 | 0.72556 |
c827ef722b4268da60ff2d7e27bfd38ce3dc1830 | 308 | exs | Elixir | priv/repo/migrations/20190902090020_change_pending_payments_table.exs | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | priv/repo/migrations/20190902090020_change_pending_payments_table.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | priv/repo/migrations/20190902090020_change_pending_payments_table.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Repo.Migrations.ChangePendingPaymentsTable do
use Ecto.Migration
def change do
create_if_not_exists(index("pending_payments", ["payee"], name: "pending_payments_payee"))
create_if_not_exists(index("pending_payments", ["payer"], name: "pending_payments_payer"))
end
end
| 34.222222 | 94 | 0.782468 |
c828089e391f064652509d82db9093d9c8749172 | 3,692 | ex | Elixir | lib/ecto/associations/has_one.ex | MSch/ecto | 648f785b2202193921fe00d68bc334399f5edb93 | [
"Apache-2.0"
] | 1 | 2015-08-27T13:17:10.000Z | 2015-08-27T13:17:10.000Z | lib/ecto/associations/has_one.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | lib/ecto/associations/has_one.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | defrecord Ecto.Reflections.HasOne, [:field, :owner, :associated, :key, :assoc_key] do
@moduledoc """
The reflection record for a `has_one` association. Its fields are:
* `field` - The name of the association field on the entity;
* `owner` - The model where the association was defined;
* `associated` - The mo... | 32.672566 | 85 | 0.655742 |
c8281132a2e98c1aa4472ad068e3d5b95d4b3be1 | 265 | ex | Elixir | lib/rasa_nlg/model/slot_value.ex | r26D/rasa-nlg-elixir | 1f6728cba5e3039ea509b2b93f12d92db4414313 | [
"Apache-2.0"
] | null | null | null | lib/rasa_nlg/model/slot_value.ex | r26D/rasa-nlg-elixir | 1f6728cba5e3039ea509b2b93f12d92db4414313 | [
"Apache-2.0"
] | null | null | null | lib/rasa_nlg/model/slot_value.ex | r26D/rasa-nlg-elixir | 1f6728cba5e3039ea509b2b93f12d92db4414313 | [
"Apache-2.0"
] | null | null | null | defmodule RasaNLG.Model.SlotValue do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
]
@type t :: %__MODULE__{
}
end
defimpl Poison.Decoder, for: RasaNLG.Model.SlotValue do
def decode(value, _options) do
value
end
end
| 12.045455 | 55 | 0.633962 |
c82820a3c3c84f950f1c741014f7ed73e0a960e4 | 710 | ex | Elixir | lib/routes.ex | o7/sample | 921f3f8f6bd5edca742ed936e5e3634b0682c485 | [
"0BSD"
] | 9 | 2019-06-10T07:31:01.000Z | 2020-02-27T20:32:47.000Z | lib/routes.ex | erpuno/sample | ce8a95bb30aa7b9da80e2d4faa21cc8ac7c53d62 | [
"0BSD"
] | 2 | 2019-06-10T12:47:31.000Z | 2019-06-10T13:26:57.000Z | lib/routes.ex | erpuno/sample | ce8a95bb30aa7b9da80e2d4faa21cc8ac7c53d62 | [
"0BSD"
] | 6 | 2019-06-10T12:16:57.000Z | 2021-11-29T13:18:25.000Z | defmodule Sample.Routes do
require N2O
def finish(state, context), do: {:ok, state, context}
def init(state, context) do
%{path: path} = N2O.cx(context, :req)
{:ok, state, N2O.cx(context, path: path, module: route_prefix(path))}
end
defp route_prefix(<<"/ws/", p::binary>>), do: route(p)
defp rout... | 32.272727 | 73 | 0.635211 |
c82835bbb1d39bbaa0c5a190cd4d9d15895e8a41 | 1,275 | ex | Elixir | lib/tp_link.ex | balexand/tp_link | 1005822b7b2a4d4194a8d166b808d99c0542b987 | [
"MIT"
] | null | null | null | lib/tp_link.ex | balexand/tp_link | 1005822b7b2a4d4194a8d166b808d99c0542b987 | [
"MIT"
] | 3 | 2022-02-12T19:08:50.000Z | 2022-03-23T13:21:39.000Z | lib/tp_link.ex | balexand/tp_link | 1005822b7b2a4d4194a8d166b808d99c0542b987 | [
"MIT"
] | null | null | null | defmodule TpLink do
@moduledoc """
Client library for interacting with Kasa/TP-Link smart home devices via either tplinkcloud.com or
directly over the local network. See the [README](README.md) for examples.
"""
alias TpLink.Cloud.{CloudDevice, Session}
alias TpLink.Local.LocalDevice
@doc """
Sends a ... | 28.977273 | 99 | 0.710588 |
c8284e8b6d8b3649f486abaff5235064a0ada96b | 1,488 | ex | Elixir | chapter_10/todo_agent/lib/todo/server.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_10/todo_agent/lib/todo/server.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_10/todo_agent/lib/todo/server.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.Server do
use Agent, restart: :temporary
alias Todo.Database.Client, as: DatabaseClient
alias Todo.List
alias Todo.ProcessRegistry
def start_link(name) do
Agent.start_link(
fn ->
IO.puts("Starting Todo.Server '#{name}'")
DatabaseClient.get(name) || List.new([], name... | 28.075472 | 89 | 0.655914 |
c8285f8ba4c6729ff5518a0d5c0e53e6daaab980 | 8,702 | ex | Elixir | lib/crudry_resolver.ex | RafaelOFreitas/crudry | bfac04adcc63e4e8a0657114b9801b5e896e20d0 | [
"MIT"
] | 36 | 2020-04-12T15:40:48.000Z | 2022-03-14T19:36:55.000Z | lib/crudry_resolver.ex | RafaelOFreitas/crudry | bfac04adcc63e4e8a0657114b9801b5e896e20d0 | [
"MIT"
] | 14 | 2019-01-15T21:05:10.000Z | 2020-02-07T12:08:36.000Z | lib/crudry_resolver.ex | RafaelOFreitas/crudry | bfac04adcc63e4e8a0657114b9801b5e896e20d0 | [
"MIT"
] | 5 | 2021-05-10T14:07:09.000Z | 2021-08-22T18:55:47.000Z | defmodule Crudry.Resolver do
@moduledoc """
Generates CRUD functions to DRY Absinthe Resolvers.
Requires a previously generated Context.
## Usage
To generate CRUD functions for a given schema resolver, simply do
defmodule MyApp.MyResolver do
alias MyApp.Repo
alias MyApp.MyContext
... | 37.834783 | 197 | 0.690186 |
c8287d48e4403fe25f15a6d3b3fd0e4f8cc50226 | 137 | exs | Elixir | priv/repo/migrations/20201015145159_unique_email.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201015145159_unique_email.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201015145159_unique_email.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | defmodule Scoop.Repo.Migrations.UniqueEmail do
use Ecto.Migration
def change do
create unique_index(:users, [:email])
end
end
| 17.125 | 46 | 0.744526 |
c828a8adb1572382d9cdbd79fa1a6bf7a6a697c3 | 193 | ex | Elixir | smash/server/smash/lib/smash.ex | ConnorRigby/love-challenges | c9d27fc51eab3871828273d7c4232a03b3444257 | [
"MIT"
] | null | null | null | smash/server/smash/lib/smash.ex | ConnorRigby/love-challenges | c9d27fc51eab3871828273d7c4232a03b3444257 | [
"MIT"
] | null | null | null | smash/server/smash/lib/smash.ex | ConnorRigby/love-challenges | c9d27fc51eab3871828273d7c4232a03b3444257 | [
"MIT"
] | 1 | 2018-09-29T02:12:05.000Z | 2018-09-29T02:12:05.000Z | defmodule Smash do
@moduledoc """
Documentation for Smash.
"""
@doc """
Hello world.
## Examples
iex> Smash.hello()
:world
"""
def hello do
:world
end
end
| 10.157895 | 26 | 0.549223 |
c828f1abb1b9e884d9b536298408245567b8bdc3 | 6,862 | ex | Elixir | lib/zeroth/client.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | 1 | 2017-06-02T10:07:47.000Z | 2017-06-02T10:07:47.000Z | lib/zeroth/client.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | lib/zeroth/client.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | defmodule Zeroth.Client do
@moduledoc """
Auth0 Client management. https://auth0.com/docs/api/management/v2#!/Clients
"""
alias Zeroth.Api
alias Zeroth.Token
alias Zeroth.Param
alias Lonely.Result
alias URI.Ext, as: URIE
@path URI.parse("/api/v2/clients")
@derive [Poison.Encoder, Poison.Decoder]
... | 35.010204 | 79 | 0.519528 |
c829146095f4de9ca297da115e96f1e755b99999 | 657 | ex | Elixir | src/lib/blog_web/controllers/user_controller.ex | Bennyville/elixir-blog | 04e25bbd8d050c54e35d83102575cc2ff1fa54ae | [
"MIT"
] | null | null | null | src/lib/blog_web/controllers/user_controller.ex | Bennyville/elixir-blog | 04e25bbd8d050c54e35d83102575cc2ff1fa54ae | [
"MIT"
] | 1 | 2021-03-11T00:24:09.000Z | 2021-03-11T00:24:09.000Z | src/lib/blog_web/controllers/user_controller.ex | Bennyville/elixir-blog | 04e25bbd8d050c54e35d83102575cc2ff1fa54ae | [
"MIT"
] | null | null | null | defmodule BlogWeb.UserController do
use BlogWeb, :controller
alias Blog.Accounts
alias Blog.Accounts.User
def new(conn, _params) do
changeset = Accounts.change_user(%User{})
render(conn, "new.html", changeset: changeset)
end
def create(conn, %{"user" => user_params}) do
case Accounts.create_u... | 26.28 | 55 | 0.645358 |
c8292315f044be75d1d27e1e3c95d5cf089f5a48 | 326 | ex | Elixir | lib/elixoids/ship/shot.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 5 | 2016-07-05T13:42:33.000Z | 2020-12-07T14:12:16.000Z | lib/elixoids/ship/shot.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 70 | 2016-06-04T11:31:27.000Z | 2020-11-21T20:00:09.000Z | lib/elixoids/ship/shot.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 1 | 2016-07-05T17:10:05.000Z | 2016-07-05T17:10:05.000Z | defmodule Elixoids.Ship.Shot do
@moduledoc "Firing sound"
alias Elixoids.Api.SoundEvent
alias Elixoids.Space
import Elixoids.News, only: [publish_audio: 2]
def fire_sound(%{game_id: game_id, pos: %{x: x}} = ship) do
e = x |> Space.frac_x() |> SoundEvent.fire()
publish_audio(game_id, e)
ship
en... | 23.285714 | 61 | 0.684049 |
c829608e430a8052a705da8f3673e052dc60d682 | 1,497 | ex | Elixir | ex/lib/pages.ex | anqurvanillapy/capdist | e066395186473e2d9ce21ff57e5e9fc1b98bb12a | [
"0BSD"
] | null | null | null | ex/lib/pages.ex | anqurvanillapy/capdist | e066395186473e2d9ce21ff57e5e9fc1b98bb12a | [
"0BSD"
] | null | null | null | ex/lib/pages.ex | anqurvanillapy/capdist | e066395186473e2d9ce21ff57e5e9fc1b98bb12a | [
"0BSD"
] | null | null | null | ## Pages
## =====
##
## Use Erlang's module xmerl to parse and exporting XML data.
defmodule Pages do
def start_link(filename) do
# Callback module, callback function and arguments
spawn_link(__MODULE__, :loop, [filename])
end
def next(xml_parser) do
# Send messages to XML parser and receive the ... | 20.791667 | 74 | 0.620574 |
c829667e83eb04677a9e63b8741639cc00689e42 | 696 | ex | Elixir | apps/booklist/lib/booklist_web/views/reports_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/booklist/lib/booklist_web/views/reports_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/booklist/lib/booklist_web/views/reports_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule BooklistWeb.ReportsView do
use BooklistWeb, :view
@doc """
Returns a link to the reports for the current year
"""
def reports_for_current_year_path(conn) do
current_year = Common.ModelHelpers.Date.today().year
reports_for_year_path(conn, current_year)
end
@doc """
Returns a link to t... | 24 | 93 | 0.702586 |
c829721d705ead58c6459ddbdb29c3eb7f8cf4f1 | 63 | ex | Elixir | lib/saitama_web/views/layout_view.ex | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | 5 | 2020-06-18T11:44:20.000Z | 2021-08-28T10:39:57.000Z | lib/saitama_web/views/layout_view.ex | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | 1 | 2021-03-10T07:41:31.000Z | 2021-03-10T07:41:31.000Z | lib/saitama_web/views/layout_view.ex | tfwright/saitama | 7f76ee2c8f01ee9b7a1507667904b9c691124112 | [
"Apache-2.0"
] | null | null | null | defmodule SaitamaWeb.LayoutView do
use SaitamaWeb, :view
end
| 15.75 | 34 | 0.809524 |
c829866fe746de24103a3888138b5e010282a6dd | 3,952 | ex | Elixir | apps/cucumber_expressions/lib/cucumber_expressions/matcher/submatcher.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-05-18T18:20:05.000Z | 2022-02-13T00:15:06.000Z | apps/cucumber_expressions/lib/cucumber_expressions/matcher/submatcher.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-04-22T00:28:17.000Z | 2021-05-19T21:04:20.000Z | apps/cucumber_expressions/lib/cucumber_expressions/matcher/submatcher.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 4 | 2021-04-14T03:07:45.000Z | 2021-12-12T21:23:59.000Z | defmodule CucumberExpressions.Matcher.Submatcher do
@moduledoc false
alias CucumberExpressions.Parser.ParseTree
import Record
use ExDebugger
use ExDebugger.Manual
defrecord :submatcher,
current_word: "",
previous_subsentence: "",
only_spaces_so_far?: false,
parameter_types: %{},
poten... | 28.228571 | 93 | 0.607794 |
c829e17c0e7555895252c5b8f90779a472537386 | 1,282 | exs | Elixir | test/credo/check/readability/alias_as_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/credo/check/readability/alias_as_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/credo/check/readability/alias_as_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.AliasAsTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.AliasAs
test "it should NOT report violation" do
"""
defmodule Test do
alias App.Module1
alias App.Module2
end
"""
|> to_source_file
|> refute_issues(@described_chec... | 21.728814 | 60 | 0.609204 |
c829f7f65638c6e3b545ab8645b470aff7fd91c1 | 19,166 | ex | Elixir | lib/nebulex/adapters/partitioned.ex | escobera/nebulex | 1a35eb9fb47f8670bfaed174995701cbe7cf1281 | [
"MIT"
] | null | null | null | lib/nebulex/adapters/partitioned.ex | escobera/nebulex | 1a35eb9fb47f8670bfaed174995701cbe7cf1281 | [
"MIT"
] | null | null | null | lib/nebulex/adapters/partitioned.ex | escobera/nebulex | 1a35eb9fb47f8670bfaed174995701cbe7cf1281 | [
"MIT"
] | null | null | null | defmodule Nebulex.Adapters.Partitioned do
@moduledoc ~S"""
Built-in adapter for partitioned cache topology.
## Overall features
* Partitioned cache topology (Sharding Distribution Model).
* Configurable primary storage adapter.
* Configurable Keyslot to distributed the keys across the cluster member... | 29.714729 | 95 | 0.658927 |
c82a028f2b802110c309e4275f6b432258dcc8af | 324 | ex | Elixir | lib/renderer.ex | zeppelin/mobiledoc-renderer-elixir | 39f70d120a36739a4f8f0b069a4e04836e9b4c48 | [
"MIT"
] | 4 | 2015-09-15T13:57:51.000Z | 2018-09-02T10:03:49.000Z | lib/renderer.ex | zeppelin/mobiledoc-renderer-elixir | 39f70d120a36739a4f8f0b069a4e04836e9b4c48 | [
"MIT"
] | 1 | 2016-09-02T14:39:30.000Z | 2016-09-02T14:39:30.000Z | lib/renderer.ex | zeppelin/mobiledoc-renderer-elixir | 39f70d120a36739a4f8f0b069a4e04836e9b4c48 | [
"MIT"
] | 3 | 2016-09-01T21:41:29.000Z | 2021-02-16T11:11:40.000Z | defmodule MobileDoc.Renderer do
def render(doc, cards \\ %{}, atoms \\ %{})
def render(doc = %{ "version" => "0.2.0" }, cards, _atoms) do
MobileDoc.Renderer_0_2.render(doc, cards)
end
def render(doc = %{ "version" => "0.3.0" }, cards, atoms) do
MobileDoc.Renderer_0_3.render(doc, cards, atoms)
end
... | 23.142857 | 63 | 0.626543 |
c82a2cea95359164dae2f13e8dcfa28134ed587b | 989 | ex | Elixir | lib/swoosh/adapter.ex | nathf/swoosh | 9507d32e3c14f52ef37e10996f161898c0c11250 | [
"MIT"
] | null | null | null | lib/swoosh/adapter.ex | nathf/swoosh | 9507d32e3c14f52ef37e10996f161898c0c11250 | [
"MIT"
] | null | null | null | lib/swoosh/adapter.ex | nathf/swoosh | 9507d32e3c14f52ef37e10996f161898c0c11250 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapter do
@moduledoc ~S"""
Specification of the email delivery adapter.
"""
defmacro __using__(opts) do
quote bind_quoted: [opts: opts] do
@required_config opts[:required_config] || []
@behaviour Swoosh.Adapter
def validate_config(config) do
missing_keys = Enum... | 25.358974 | 83 | 0.628918 |
c82a428a844a23b817a5917c7b541613dcee6651 | 4,860 | ex | Elixir | lib/temporal/api.ex | aforward/temporal | ec71f48719c471a72a490583abe692c314dff080 | [
"MIT"
] | null | null | null | lib/temporal/api.ex | aforward/temporal | ec71f48719c471a72a490583abe692c314dff080 | [
"MIT"
] | null | null | null | lib/temporal/api.ex | aforward/temporal | ec71f48719c471a72a490583abe692c314dff080 | [
"MIT"
] | null | null | null | defmodule Temporal.Api do
@moduledoc """
Download files from the interweb
"""
@doc """
Retrieve data from the interwebs using either :get or :post
## Examples
iex> Temporal.Api.call(:get, %{source: "https://raw.githubusercontent.com/aforward/webfiles/master/x.txt"})
{:ok, "A text file\\n"}
... | 29.634146 | 135 | 0.637037 |
c82a920c10de24faccf952ef7ca8d4455f377688 | 1,132 | ex | Elixir | test/support/conn_case.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | 1 | 2017-06-19T18:18:11.000Z | 2017-06-19T18:18:11.000Z | test/support/conn_case.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | defmodule JwMinistryApi.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 t... | 25.155556 | 75 | 0.713781 |
c82ab55e91252506c369c8b72d8088983fbab694 | 314 | ex | Elixir | dev/resources/tickets/resources/organization.ex | totaltrash/ash_admin | 0b577d7e02a65dbf763a204a44ae3c2531f66da0 | [
"MIT"
] | 19 | 2021-03-16T09:01:22.000Z | 2022-03-07T06:16:56.000Z | dev/resources/tickets/resources/organization.ex | totaltrash/ash_admin | 0b577d7e02a65dbf763a204a44ae3c2531f66da0 | [
"MIT"
] | 11 | 2021-03-29T15:46:33.000Z | 2022-03-17T03:35:57.000Z | dev/resources/tickets/resources/organization.ex | totaltrash/ash_admin | 0b577d7e02a65dbf763a204a44ae3c2531f66da0 | [
"MIT"
] | 6 | 2021-03-27T19:24:52.000Z | 2022-03-15T10:19:31.000Z | defmodule Demo.Tickets.Organization do
use Ash.Resource,
data_layer: AshPostgres.DataLayer
postgres do
table "organizations"
repo Demo.Repo
end
attributes do
uuid_primary_key :id
attribute :name, :string
end
relationships do
has_many :tickets, Demo.Tickets.Ticket
end
end
| 15.7 | 42 | 0.719745 |
c82acaa253217a7e1b335e7823e6e88018a32c7f | 3,996 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/monitored_resource_descriptors.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/monitored_resource_descriptors.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/monitored_resource_descriptors.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... | 46.465116 | 292 | 0.712713 |
c82b2346d5fba81b97dc7e4c33c36080700f2095 | 917 | ex | Elixir | test/support/network/api/github_in_memory.ex | co0lsky/adoptoposs | 73c5d80c80a5ae1bcbc4351d2a073b3483587502 | [
"MIT"
] | null | null | null | test/support/network/api/github_in_memory.ex | co0lsky/adoptoposs | 73c5d80c80a5ae1bcbc4351d2a073b3483587502 | [
"MIT"
] | 1 | 2021-05-11T20:15:21.000Z | 2021-05-11T20:15:21.000Z | test/support/network/api/github_in_memory.ex | co0lsky/adoptoposs | 73c5d80c80a5ae1bcbc4351d2a073b3483587502 | [
"MIT"
] | null | null | null | defmodule Adoptoposs.Network.Api.GithubInMemory do
alias Adoptoposs.Network.Api
import Adoptoposs.Factory
@behaviour Api
@impl Api
def organizations(_token, limit, _after_cursor) do
{:ok, {build(:page_info), build_list(limit, :organization)}}
end
@impl Api
def repos(_token, organization, limit, ... | 26.970588 | 99 | 0.679389 |
c82b46ce11f29c9029e099018704e2dc46e3e503 | 1,653 | ex | Elixir | src/apps/auth/lib/auth/application.ex | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | src/apps/auth/lib/auth/application.ex | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | 42 | 2020-04-28T20:39:12.000Z | 2022-02-27T03:54:44.000Z | src/apps/auth/lib/auth/application.ex | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 forte labs inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | 40.317073 | 80 | 0.675741 |
c82b6dd646628033ba93ea8ad1a3738b92ca2d5c | 892 | ex | Elixir | clients/data_migration/lib/google_api/data_migration/v1/metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_migration/lib/google_api/data_migration/v1/metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_migration/lib/google_api/data_migration/v1/metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"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... | 33.037037 | 74 | 0.761211 |
c82b796e48c097240e35d5b6ed0c86d70c3571f8 | 2,156 | exs | Elixir | rel/config/prod.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 1 | 2021-10-01T03:14:17.000Z | 2021-10-01T03:14:17.000Z | rel/config/prod.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | null | null | null | rel/config/prod.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.344262 | 102 | 0.757421 |
c82ba9671693ffcebbca1cac934f448214eaf016 | 217 | exs | Elixir | priv/repo/migrations/20170122192921_create_visitor.exs | adamniedzielski/etag_tracker | a325a05ec48efaca67f60e1db865ba16349f0de7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170122192921_create_visitor.exs | adamniedzielski/etag_tracker | a325a05ec48efaca67f60e1db865ba16349f0de7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170122192921_create_visitor.exs | adamniedzielski/etag_tracker | a325a05ec48efaca67f60e1db865ba16349f0de7 | [
"MIT"
] | null | null | null | defmodule ETagTracker.Repo.Migrations.CreateVisitor do
use Ecto.Migration
def change do
create table(:visitors) do
add :token, :string
add :visits, :integer
timestamps()
end
end
end
| 15.5 | 54 | 0.672811 |
c82bc5f2138fea64e63eded758c2badddc82c07b | 162 | ex | Elixir | web/controllers/page_controller.ex | praveenperera/phoenix-dokku-example | fc4bfe98e016dfe6eb1f74449b3a8d292dbce137 | [
"MIT"
] | 1 | 2015-10-05T20:58:46.000Z | 2015-10-05T20:58:46.000Z | web/controllers/page_controller.ex | praveenperera/phoenix-dokku-example | fc4bfe98e016dfe6eb1f74449b3a8d292dbce137 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | praveenperera/phoenix-dokku-example | fc4bfe98e016dfe6eb1f74449b3a8d292dbce137 | [
"MIT"
] | null | null | null | defmodule PhoenixDokkuExample.PageController do
use PhoenixDokkuExample.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 20.25 | 47 | 0.771605 |
c82c0cfecd7bfc20cd4b576f70a4cbfcf7023cf3 | 2,948 | ex | Elixir | lib/helper/converter/editor_to_html/frags/image.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/helper/converter/editor_to_html/frags/image.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/helper/converter/editor_to_html/frags/image.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule Helper.Converter.EditorToHTML.Frags.Image do
@moduledoc """
parse editor.js's block fragments, use for test too
see https://editorjs.io/
"""
import Helper.Validator.Guards, only: [g_none_empty_str: 1]
alias Helper.Converter.EditorToHTML.Class
alias Helper.Types, as: T
@class get_in(Class.ar... | 32.043478 | 99 | 0.591588 |
c82c207f4bc5f67ab90997494e7f9d88229eb2d8 | 7,676 | ex | Elixir | clients/groups_settings/lib/google_api/groups_settings/v1/api/groups.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/groups_settings/lib/google_api/groups_settings/v1/api/groups.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/groups_settings/lib/google_api/groups_settings/v1/api/groups.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 42.882682 | 187 | 0.642913 |
c82c3e10dad5f35f4c224c47e474abe4bc608bcb | 441 | ex | Elixir | lib/quickbooks/supervisor.ex | AlexVKO/quickbooks-elixir | 0e9f69e2e4a6b538d94bd16b546aa43e65814bbb | [
"MIT"
] | 7 | 2017-01-23T15:50:49.000Z | 2021-04-30T01:20:11.000Z | lib/quickbooks/supervisor.ex | AlexVKO/quickbooks-elixir | 0e9f69e2e4a6b538d94bd16b546aa43e65814bbb | [
"MIT"
] | null | null | null | lib/quickbooks/supervisor.ex | AlexVKO/quickbooks-elixir | 0e9f69e2e4a6b538d94bd16b546aa43e65814bbb | [
"MIT"
] | 5 | 2017-01-24T00:18:35.000Z | 2017-06-09T04:00:23.000Z | defmodule Quickbooks.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [
# Define workers and child supervisors to be supervised
# worker(Mandrill.Worker, [])
]
# See http://elixir-lang.org/docs/stable/Supervisor.B... | 23.210526 | 70 | 0.696145 |
c82c529d6c362d69ac94a8c373f6ebb0570e5b38 | 5,779 | exs | Elixir | test/absinthe/schema/sdl_render_test.exs | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | null | null | null | test/absinthe/schema/sdl_render_test.exs | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | 2 | 2019-03-07T00:26:03.000Z | 2019-08-19T17:30:30.000Z | test/absinthe/schema/sdl_render_test.exs | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | 1 | 2019-01-18T20:49:03.000Z | 2019-01-18T20:49:03.000Z | defmodule Absinthe.Schema.SdlRenderTest do
use ExUnit.Case, async: true
defmodule SdlTestSchema do
use Absinthe.Schema
alias Absinthe.Blueprint.Schema
@sdl """
"Schema description"
schema {
query: Query
}
directive @foo(name: String!) repeatable on OBJECT | SCALAR
interfac... | 20.420495 | 83 | 0.545942 |
c82c58d37242de171f3fba0020647f5a169e101b | 933 | exs | Elixir | day16/task1.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | 2 | 2016-12-26T20:44:04.000Z | 2017-02-10T19:59:55.000Z | day16/task1.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | null | null | null | day16/task1.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | null | null | null | defmodule Task do
@input "10010000000110000"
@limit 272
def input do
@input
|> String.graphemes
|> Enum.map(&String.to_integer/1)
end
def calculate do
input
|> generate(@limit)
|> checksum
end
def checksum(input) when rem(length(input), 2) == 1 do
IO.puts "YAY, #{Enu... | 18.66 | 59 | 0.60343 |
c82c5f984cb3a0ee2920eb5f259e734ab9d1f4c8 | 438 | exs | Elixir | config/config.exs | iii-ishida/ds_wrapper | d7a2fbb1c07b33a762743b1c2051b163586fc5d7 | [
"MIT"
] | null | null | null | config/config.exs | iii-ishida/ds_wrapper | d7a2fbb1c07b33a762743b1c2051b163586fc5d7 | [
"MIT"
] | null | null | null | config/config.exs | iii-ishida/ds_wrapper | d7a2fbb1c07b33a762743b1c2051b163586fc5d7 | [
"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
# Import environment specific config. This must ... | 33.692308 | 68 | 0.789954 |
c82c6a305efd07b2b44233f68d1a96cb06971904 | 3,564 | ex | Elixir | lib/petrovich/parser.ex | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 38 | 2017-06-11T14:01:56.000Z | 2021-11-27T15:54:47.000Z | lib/petrovich/parser.ex | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 33 | 2017-06-11T11:17:38.000Z | 2021-06-25T15:22:35.000Z | lib/petrovich/parser.ex | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 2 | 2019-03-12T11:16:10.000Z | 2019-09-21T15:12:36.000Z | defmodule Petrovich.Parser do
@moduledoc """
Parser receives the name and case to infect it to.
Then it parses the rules to find the appropriate modifications.
It then calls `Applier` to modify the value.
This module should not be used directly. Use `Petrovich` module instead.
"""
alias Petrovich.{Appl... | 26.014599 | 79 | 0.62514 |
c82c7c38f1eb820249fc6cea2b42cdbe33044af6 | 2,595 | exs | Elixir | test/ecto/log_entry_test.exs | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | test/ecto/log_entry_test.exs | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | test/ecto/log_entry_test.exs | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | Logger.configure_backend(:console, metadata: [:sample])
defmodule Ecto.LogEntryTest do
use ExUnit.Case, async: true
alias Ecto.LogEntry
import Ecto.LogEntry
test "converts entry to iodata" do
entry = %LogEntry{query: "done", result: {:ok, []}}
assert to_binary(entry) == "QUERY OK\ndone []"
entr... | 38.731343 | 114 | 0.620424 |
c82c8659ba9e3c393c089abc6e32c16300222e09 | 597 | exs | Elixir | test/ex_activity_test.exs | jackjoe/ex_activity | 68ea6699dd0b995000d04b5bc021aefc2de748de | [
"MIT"
] | 6 | 2019-03-04T15:26:15.000Z | 2021-03-23T14:53:35.000Z | test/ex_activity_test.exs | jackjoe/ex_activity | 68ea6699dd0b995000d04b5bc021aefc2de748de | [
"MIT"
] | null | null | null | test/ex_activity_test.exs | jackjoe/ex_activity | 68ea6699dd0b995000d04b5bc021aefc2de748de | [
"MIT"
] | null | null | null | defmodule ExActivityTest do
use ExUnit.Case
doctest ExActivity
alias ExActivity.{Log}
# test "log/1 saves a log" do
# log = ExActivity.log(%Log{
# type: "some_log",
# action: "get_users",
# result: "some_result",
# })
# assert log.type == "some_log"
# end
#
# test "log/1 ac... | 22.111111 | 66 | 0.577889 |
c82ca8f62a37408864a0e9c7afed546fc5bb5a48 | 426 | ex | Elixir | farmbot_core/lib/farmbot_core/asset/view.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_core/lib/farmbot_core/asset/view.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_core/lib/farmbot_core/asset/view.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Asset.View do
@doc "Format data to be JSON encodable."
@callback render(map) :: map
@doc "Delegates rendering to an asset's `render/1` function."
@spec render(module, map) :: map
def render(module, object), do: module.render(object)
@doc "Helper to define a `render/1` function"
def... | 26.625 | 63 | 0.690141 |
c82cc5468ba60639e73481da845e8301ec287efb | 779 | exs | Elixir | test/test_helper.exs | sainteos/ex_abnf | 6ba09858bc7e10870ed9d120854e2a23a9cd1b81 | [
"Apache-2.0"
] | 12 | 2015-04-12T00:35:07.000Z | 2021-08-24T22:33:48.000Z | test/test_helper.exs | sainteos/ex_abnf | 6ba09858bc7e10870ed9d120854e2a23a9cd1b81 | [
"Apache-2.0"
] | 1 | 2015-07-03T19:28:14.000Z | 2015-07-03T19:28:14.000Z | test/test_helper.exs | sainteos/ex_abnf | 6ba09858bc7e10870ed9d120854e2a23a9cd1b81 | [
"Apache-2.0"
] | 3 | 2015-07-03T12:36:48.000Z | 2020-03-03T16:32:25.000Z | ################################################################################
# Copyright 2015 Marcelo Gornstein <marcelog@gmail.com>
#
# 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
#
# ... | 45.823529 | 80 | 0.605905 |
c82cddbad852d9a27a0f8b19e46a6845d6622a6c | 1,137 | exs | Elixir | config/config.exs | jackdoe/elixir-vowpal-client | 4a4f0446c4097ec93d9a8b124842f2a5fc2a2840 | [
"MIT"
] | null | null | null | config/config.exs | jackdoe/elixir-vowpal-client | 4a4f0446c4097ec93d9a8b124842f2a5fc2a2840 | [
"MIT"
] | null | null | null | config/config.exs | jackdoe/elixir-vowpal-client | 4a4f0446c4097ec93d9a8b124842f2a5fc2a2840 | [
"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.677419 | 73 | 0.752858 |
c82ce4d97063d186b74e2be8929513cfd2fef9f0 | 332 | exs | Elixir | priv/repo/migrations/20201203110133_add_data_to_user.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | priv/repo/migrations/20201203110133_add_data_to_user.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | priv/repo/migrations/20201203110133_add_data_to_user.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | defmodule ReservationBook.Repo.Migrations.AddDataToUser do
use Ecto.Migration
def change do
alter table(:users) do
add :name, :string, null: false
add :surname, :string, null: false
add :telephone, :string, null: false
add :comments, :text
end
create index("users", [:telephone]... | 22.133333 | 58 | 0.662651 |
c82d9534d9ea939e507839d73e3ab7cb56bab5cb | 589 | ex | Elixir | lib/Oracle/result.ex | epaulf/Oracledbex | 070604afb27bdc5cdfcef297e478418c9d79b307 | [
"Apache-2.0"
] | 8 | 2018-02-12T23:02:29.000Z | 2020-09-29T23:01:47.000Z | lib/Oracle/result.ex | epaulf/Oracledbex | 070604afb27bdc5cdfcef297e478418c9d79b307 | [
"Apache-2.0"
] | null | null | null | lib/Oracle/result.ex | epaulf/Oracledbex | 070604afb27bdc5cdfcef297e478418c9d79b307 | [
"Apache-2.0"
] | 3 | 2018-02-15T19:17:26.000Z | 2020-09-18T03:41:16.000Z | defmodule Oracle.Result do
@moduledoc """
Result struct returned from any successful query. Its fields are:
* `columns` - The names of each column in the result set;
* `rows` - The result set. A list of tuples, each tuple corresponding to a
row, each element in the tuple corresponds to a col... | 34.647059 | 78 | 0.651952 |
c82da5da9573ef8e2d2ad79e3b0d5d28207eb99d | 690 | exs | Elixir | test/snowplow_tracker_benchmark.exs | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 6 | 2018-04-30T11:02:45.000Z | 2021-06-18T19:09:39.000Z | test/snowplow_tracker_benchmark.exs | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 15 | 2018-05-23T05:26:27.000Z | 2020-07-12T10:12:32.000Z | test/snowplow_tracker_benchmark.exs | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 3 | 2020-06-05T23:30:14.000Z | 2021-06-22T08:14:35.000Z | alias SnowplowTracker
alias SnowplowTracker.Events.Structured
alias SnowplowTracker.{Tracker, Emitter}
:hackney_pool.child_spec(:snowplow_hackney_pool, timeout: 60_000, max_connections: 500)
emitter = %Emitter{collector_uri: "locahost", protocol: "http", request_type: "GET"}
tracker = %Tracker{emitter: emitter}
payloa... | 28.75 | 87 | 0.730435 |
c82da82fa994d740b970f2519e1f6ebcd793c1a1 | 35,633 | ex | Elixir | utils/lib/solutions.ex | aroojahmad/beta_curriculum | 635ac56f833c544483cbba20e8ecdba8494246f7 | [
"MIT"
] | 15 | 2022-02-26T08:00:13.000Z | 2022-03-28T05:06:19.000Z | utils/lib/solutions.ex | aroojahmad/beta_curriculum | 635ac56f833c544483cbba20e8ecdba8494246f7 | [
"MIT"
] | 19 | 2022-03-06T19:07:41.000Z | 2022-03-31T02:08:20.000Z | utils/lib/solutions.ex | aroojahmad/beta_curriculum | 635ac56f833c544483cbba20e8ecdba8494246f7 | [
"MIT"
] | 11 | 2022-03-02T13:00:18.000Z | 2022-03-22T22:19:57.000Z | defmodule Utils.Solutions do
def startup_madlib do
name_of_company = "a"
a_defined_offering = "a"
a_defined_audience = "a"
solve_a_problem = "a"
secret_sauce = "a"
madlib =
"My company, #{name_of_company} is developing #{a_defined_offering} to help #{a_defined_audience} #{solve_a_proble... | 22.783248 | 580 | 0.582662 |
c82db44040f22af7ee398e06a9fb50fff7c556f3 | 1,137 | exs | Elixir | clients/identity_toolkit/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.IdentityToolkit.V3.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :google_api_identity_toolkit,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: p... | 23.6875 | 116 | 0.609499 |
c82db5eee12cc8d88bdcf43f5aeef6027c85f07f | 12,975 | exs | Elixir | test/phoenix_live_view/integrations/flash_test.exs | LostKobrakai/phoenix_live_view | 18d7c18e7338a5a041896baaeee12a917922b65c | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/flash_test.exs | LostKobrakai/phoenix_live_view | 18d7c18e7338a5a041896baaeee12a917922b65c | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/flash_test.exs | LostKobrakai/phoenix_live_view | 18d7c18e7338a5a041896baaeee12a917922b65c | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.FlashIntegrationTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveView
alias Phoenix.LiveViewTest.{Endpoint, Router}
@endpoint Endpoint
setup do
conn =
Phoenix.ConnTest.build_conn()
|> Phoenix.ConnTest.b... | 34.325397 | 131 | 0.579499 |
c82e093ada6b6b4d7071049c14c1edfe082fa369 | 12,586 | ex | Elixir | lib/oracle_ecto/query_string.ex | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | null | null | null | lib/oracle_ecto/query_string.ex | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | 2 | 2019-05-21T15:57:37.000Z | 2019-05-21T16:00:59.000Z | lib/oracle_ecto/query_string.ex | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | null | null | null | defmodule OracleEcto.QueryString do
alias Ecto.Query
alias Ecto.Query.{BooleanExpr, JoinExpr, QueryExpr}
alias OracleEcto.Connection
alias OracleEcto.Helpers
binary_ops =
[==: " = ", !=: " != ", <=: " <= ", >=: " >= ", <: " < ", >: " > ",
and: " AND ", or: " OR ", ilike: " ILIKE ", like: " LIKE ", ... | 34.108401 | 120 | 0.609566 |
c82e18e046e92df0847f4fd4433d0307f0dcaec2 | 159 | exs | Elixir | test/poe_build_parser_test.exs | antholord/poe_build_parser | 0be38bae35e0cf7945aba42b869db13f7ae72a52 | [
"MIT"
] | 1 | 2019-05-08T23:46:47.000Z | 2019-05-08T23:46:47.000Z | test/poe_build_parser_test.exs | antholord/poe_build_parser | 0be38bae35e0cf7945aba42b869db13f7ae72a52 | [
"MIT"
] | null | null | null | test/poe_build_parser_test.exs | antholord/poe_build_parser | 0be38bae35e0cf7945aba42b869db13f7ae72a52 | [
"MIT"
] | null | null | null | defmodule PoeBuildParserTest do
use ExUnit.Case
doctest PoeBuildParser
test "greets the world" do
assert PoeBuildParser.hello() == :world
end
end
| 17.666667 | 43 | 0.748428 |
c82e2d227c85d95022b5a5e3c24ac249c0bd4713 | 795 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/views/email_view.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | 1 | 2019-10-13T10:56:28.000Z | 2019-10-13T10:56:28.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/views/email_view.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/views/email_view.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.EmailView do
use Phoenix.View,
root: "lib/nerves_hub_web_core/templates",
namespace: NervesHubWebCore
import Phoenix.HTML
def base_url do
scheme = Application.get_env(:nerves_hub_web_core, :scheme, :https)
host = Application.get_env(:nerves_hub_web_core, :host)
por... | 27.413793 | 160 | 0.656604 |
c82e39c9738027e76511b76d77174c365b8b5090 | 479 | exs | Elixir | config/config.exs | Moronisauner/conduit_amqp | 453af122b2f98c31034916097ad20b4128b51e7a | [
"MIT"
] | 9 | 2017-02-01T14:12:28.000Z | 2021-07-06T23:22:29.000Z | config/config.exs | Moronisauner/conduit_amqp | 453af122b2f98c31034916097ad20b4128b51e7a | [
"MIT"
] | 77 | 2018-02-02T19:17:08.000Z | 2021-08-03T05:20:21.000Z | config/config.exs | Moronisauner/conduit_amqp | 453af122b2f98c31034916097ad20b4128b51e7a | [
"MIT"
] | 10 | 2018-02-02T19:07:44.000Z | 2021-05-05T03:34:41.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# Stop lager redirecting :error_logger messages
config :lager, :error_logger_redirect, false
# Stop lager removing Logger's :error_logger handler
config :lager, :error_logger_whitel... | 34.214286 | 101 | 0.778706 |
c82e50f76572349533ec7ba62e7bc07f98dd0f12 | 73 | ex | Elixir | arc_playground/web/views/layout_view.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | arc_playground/web/views/layout_view.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | arc_playground/web/views/layout_view.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule ArcPlayground.LayoutView do
use ArcPlayground.Web, :view
end
| 18.25 | 37 | 0.821918 |
c82edfc989287f1a0ca53ce83c40d1d39521c223 | 1,114 | exs | Elixir | mix.exs | marceldegraaf/elixir-pdf-generator | fb88d1a3192bc489438d0f53415f4c266eaf894a | [
"MIT"
] | null | null | null | mix.exs | marceldegraaf/elixir-pdf-generator | fb88d1a3192bc489438d0f53415f4c266eaf894a | [
"MIT"
] | null | null | null | mix.exs | marceldegraaf/elixir-pdf-generator | fb88d1a3192bc489438d0f53415f4c266eaf894a | [
"MIT"
] | null | null | null | defmodule PdfGenerator.Mixfile do
use Mix.Project
def project do
[
app: :pdf_generator,
name: "PDF Generator",
version: "0.5.7",
elixir: ">= 1.1.0",
deps: deps(),
description: description(),
package: package(),
build_embedded: Mix.env == :prod,
start_perman... | 21.018868 | 74 | 0.579892 |
c82eef7eefa2220a965a3dd2c41d126f5ce10f64 | 73 | ex | Elixir | lib/from_the_ashes_web/views/layout_view.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | lib/from_the_ashes_web/views/layout_view.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | 1 | 2021-03-09T22:08:11.000Z | 2021-03-09T22:08:11.000Z | lib/from_the_ashes_web/views/layout_view.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | defmodule FromTheAshesWeb.LayoutView do
use FromTheAshesWeb, :view
end
| 18.25 | 39 | 0.835616 |
c82f2600360da1709e733b6534ed568f00d1f3ac | 339 | exs | Elixir | test/bh1750/transport_test.exs | mnishiguchi/bh1750 | 4a7c3f91e5727ec34c61fcf3b739a1aa7fdc0b9d | [
"MIT"
] | 3 | 2022-01-30T00:57:20.000Z | 2022-02-03T02:40:06.000Z | test/bh1750/transport_test.exs | mnishiguchi/bh1750 | 4a7c3f91e5727ec34c61fcf3b739a1aa7fdc0b9d | [
"MIT"
] | null | null | null | test/bh1750/transport_test.exs | mnishiguchi/bh1750 | 4a7c3f91e5727ec34c61fcf3b739a1aa7fdc0b9d | [
"MIT"
] | 1 | 2022-02-15T14:48:35.000Z | 2022-02-15T14:48:35.000Z | defmodule BH1750.TransportTest do
use ExUnit.Case
test "new/1" do
ref = make_ref()
address = 0x23
assert %BH1750.Transport{
address: ^address,
read_fn: _,
ref: ^ref,
write_fn: _,
write_read_fn: _
} = BH1750.Transport.new(ref, ... | 19.941176 | 49 | 0.533923 |
c82f93674c18a2a90ff743dbc79f37685a75f618 | 4,037 | ex | Elixir | farmbot_os/platform/target/configurator/validator.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_os/platform/target/configurator/validator.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_os/platform/target/configurator/validator.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Platform.Target.Configurator.Validator do
@moduledoc """
VintageNet.Technology that handles turning Farmbot's internal
network representation into either a VintageNetEthernet
or VintageNetWiFi RawConfig.
"""
@behaviour VintageNet.Technology
@impl VintageNet.Technology
def normali... | 21.940217 | 93 | 0.57518 |
c82f9656e009fed83573d300a3b70a7910b11d30 | 429 | exs | Elixir | apps/blockchain_web/test/blockchain_web/views/error_view_test.exs | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/test/blockchain_web/views/error_view_test.exs | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/test/blockchain_web/views/error_view_test.exs | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | defmodule BlockchainWeb.ErrorViewTest do
use BlockchainWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(BlockchainWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" ... | 28.6 | 95 | 0.741259 |
c82f9d55818f5abc5ae8bf9af88fe020ebfa8b69 | 289 | exs | Elixir | .iex.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | .iex.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | .iex.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | import RDF.Sigils
alias RDF.NS.{XSD, RDFS, OWL, SKOS}
alias RDF.{
Term,
IRI,
Literal,
BlankNode,
Triple,
Quad,
Statement,
Description,
Graph,
Dataset,
}
alias RDF.BlankNode, as: BNode
alias RDF.{NTriples, NQuads, Turtle}
alias Decimal, as: D
alias SPARQL.Query
| 10.703704 | 36 | 0.67474 |
c82faf95e0dc0232d45bdc21b2e8cd3461519101 | 28 | exs | Elixir | elixir/1.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/1.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/1.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | IO.puts a = 1
IO.puts a + 3
| 9.333333 | 13 | 0.571429 |
c82fc8becd48cc06284c328b9dc2d458b8707e29 | 321 | ex | Elixir | lib/tesla_oauth2_client_auth/none.ex | tanguilp/tesla_oauth2_client_auth | 4a702fae1ba814607949babaa257df7cfd61a495 | [
"Apache-2.0"
] | null | null | null | lib/tesla_oauth2_client_auth/none.ex | tanguilp/tesla_oauth2_client_auth | 4a702fae1ba814607949babaa257df7cfd61a495 | [
"Apache-2.0"
] | 1 | 2020-05-30T11:33:44.000Z | 2020-05-30T11:33:44.000Z | lib/tesla_oauth2_client_auth/none.ex | tanguilp/tesla_oauth2_client_auth | 4a702fae1ba814607949babaa257df7cfd61a495 | [
"Apache-2.0"
] | null | null | null | defmodule TeslaOAuth2ClientAuth.None do
@moduledoc """
Tesla middleware that implements the `"none"` authentication scheme for
OAuth2 and OpenID Connect clients
Basically, does not do anything.
"""
@behaviour Tesla.Middleware
@impl true
def call(env, next, _opts) do
Tesla.run(env, next)
end
end... | 20.0625 | 73 | 0.725857 |
c82fe9c8023a2e74299ce7254925575851b304ee | 5,586 | ex | Elixir | kousa/lib/onion/room_chat.ex | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | 1 | 2021-05-18T15:21:25.000Z | 2021-05-18T15:21:25.000Z | kousa/lib/onion/room_chat.ex | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | kousa/lib/onion/room_chat.ex | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | defmodule Onion.RoomChat do
use GenServer, restart: :temporary
require Logger
defmodule State do
@type t :: %__MODULE__{
room_id: String.t(),
users: [String.t()],
ban_map: map(),
last_message_map: map()
}
defstruct room_id: "", users: [], ban_ma... | 27.791045 | 97 | 0.602936 |
c8300b9b37a1a569987f538cb02f8eb563e724dc | 1,608 | exs | Elixir | test/rocketpay_web/controllers/accounts_controller_test.exs | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | test/rocketpay_web/controllers/accounts_controller_test.exs | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | test/rocketpay_web/controllers/accounts_controller_test.exs | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.AccountsControllerTest do
use RocketpayWeb.ConnCase
alias Rocketpay.{Account, User}
describe "AccountsController" do
setup %{conn: conn} do
name = "Tairone"
password = "123456"
nickname = "Tai"
email = "taironelivinalli@hotmail.com"
age = 25
params... | 25.52381 | 85 | 0.585199 |
c8305557a436fa425d3289c373160f7c70e4a8fa | 3,119 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/api/results.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/api/results.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/api/results.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... | 42.148649 | 217 | 0.701828 |
c83092c996f6903349b4a86dc5ce2285122bdd14 | 702 | ex | Elixir | wabanex/lib/wabanex/imc.ex | shonorio/nlwt_elixir | 029b731c747e4b4954bc0197881b325fb80b4ab6 | [
"MIT"
] | null | null | null | wabanex/lib/wabanex/imc.ex | shonorio/nlwt_elixir | 029b731c747e4b4954bc0197881b325fb80b4ab6 | [
"MIT"
] | null | null | null | wabanex/lib/wabanex/imc.ex | shonorio/nlwt_elixir | 029b731c747e4b4954bc0197881b325fb80b4ab6 | [
"MIT"
] | null | null | null | defmodule Wabanex.IMC do
def calculate(%{"filename" => filename}) do
filename
|> File.read()
|> handle_file()
end
defp handle_file({:ok, content}) do
data =
content
|> String.split(~r{[\r\n]}, trim: true)
|> Enum.map(fn line -> parse_line(line) end)
|> Enum.into(%{})
... | 21.9375 | 84 | 0.594017 |
c830a5895b755c46e62610238db88f388fdf2129 | 1,794 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_find_threat_matches_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_find_threat_matches_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_find_threat_matches_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.035714 | 152 | 0.759755 |
c830ecf637e3d014093ea65e447edcdf15c4aa75 | 194 | ex | Elixir | packages/rlack/api/web/views/user_view.ex | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | 1 | 2017-04-08T20:08:05.000Z | 2017-04-08T20:08:05.000Z | packages/rlack/api/web/views/user_view.ex | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | null | null | null | packages/rlack/api/web/views/user_view.ex | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | null | null | null | defmodule Rlack.UserView do
use Rlack.Web, :view
def render("user.json", %{user: user}) do
%{
id: user.id,
username: user.username,
email: user.email,
}
end
end
| 16.166667 | 43 | 0.587629 |
c8312371617b033c5676a00b03e352ec54c482ba | 896 | ex | Elixir | clients/network_services/lib/google_api/network_services/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_services/lib/google_api/network_services/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_services/lib/google_api/network_services/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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... | 33.185185 | 74 | 0.762277 |
c8312e9cb0b0452cecbee7f95c828c3b654d31be | 364 | ex | Elixir | example/comment.ex | petlove/ex_audit | 670ed216484ad01b6c8088e2f8486fe9a9cf2f9d | [
"MIT"
] | 277 | 2017-10-18T13:19:40.000Z | 2022-03-24T17:11:47.000Z | example/comment.ex | petlove/ex_audit | 670ed216484ad01b6c8088e2f8486fe9a9cf2f9d | [
"MIT"
] | 68 | 2017-10-27T01:54:21.000Z | 2022-02-22T16:34:48.000Z | example/comment.ex | petlove/ex_audit | 670ed216484ad01b6c8088e2f8486fe9a9cf2f9d | [
"MIT"
] | 81 | 2018-02-11T07:00:11.000Z | 2022-03-29T21:10:15.000Z | defmodule ExAudit.Test.Comment do
use Ecto.Schema
import Ecto.Changeset
schema "comments" do
belongs_to :author, ExAudit.Test.User
field :body, :string
belongs_to :blog_post, ExAudit.Test.BlogPost
timestamps(type: :utc_datetime)
end
def changeset(struct, params \\ %{}) do
struct
|>... | 20.222222 | 48 | 0.68956 |
c8316c5a79913c135a37fead81815f7f1922e89a | 900 | ex | Elixir | 01_variables_and_types/03_basic_operations/arithmetic.ex | rafaelbreno/alchemistry | 42eb28151c22dd0dd6c0a9000bc4cf9920fa0273 | [
"MIT"
] | 1 | 2021-02-05T01:41:11.000Z | 2021-02-05T01:41:11.000Z | 01_variables_and_types/03_basic_operations/arithmetic.ex | rafaelbreno/alchemy | 42eb28151c22dd0dd6c0a9000bc4cf9920fa0273 | [
"MIT"
] | null | null | null | 01_variables_and_types/03_basic_operations/arithmetic.ex | rafaelbreno/alchemy | 42eb28151c22dd0dd6c0a9000bc4cf9920fa0273 | [
"MIT"
] | null | null | null | # Basic Arithmetic
# Sum +
IO.puts("Sum\n")
sum_int = 1 + 2
IO.puts(sum_int)
sum_float = 1.4 + 1.7
IO.puts(sum_float)
IO.puts("\n-----------\n")
# Subtraction
IO.puts("Subtraction\n")
sub_int = 1 - 7
IO.puts(sub_int)
sub_float = 1.4 - 7.9
IO.puts(sub_float)
IO.puts("\n-----------\n")
# Multiplication
IO.puts("Mul... | 19.148936 | 94 | 0.643333 |
c8319363de5322ad1764d5c7a54827c942261392 | 1,251 | exs | Elixir | elixir/config/prod.secret.exs | Koyamot/Divvy-EngineerExercise | de2f2c0d1ad461b2bbb937fa1483c18d4ececc6a | [
"MIT"
] | 1 | 2021-03-15T04:09:23.000Z | 2021-03-15T04:09:23.000Z | elixir/config/prod.secret.exs | Koyamot/Divvy-EngineerExercise | de2f2c0d1ad461b2bbb937fa1483c18d4ececc6a | [
"MIT"
] | 8 | 2022-01-17T20:50:29.000Z | 2022-01-17T20:54:41.000Z | elixir/config/prod.secret.exs | Koyamot/Divvy-EngineerExercise | de2f2c0d1ad461b2bbb937fa1483c18d4ececc6a | [
"MIT"
] | 2 | 2021-03-16T22:27:37.000Z | 2021-10-16T08:38:35.000Z | # 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.785714 | 67 | 0.720224 |
c8319e8839773d65328a2a1005c31562b73e9ef9 | 136 | exs | Elixir | test/lib/crawler/snapper/dir_maker_test.exs | Gauthamiv/crawler | 394b09d4e8f4c15abefc6295c1b3e72fb82d5416 | [
"MIT"
] | 884 | 2016-08-08T17:07:02.000Z | 2022-03-17T10:11:42.000Z | test/lib/crawler/snapper/dir_maker_test.exs | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | 28 | 2017-08-04T14:11:42.000Z | 2021-01-02T22:40:20.000Z | test/lib/crawler/snapper/dir_maker_test.exs | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | 86 | 2017-01-12T15:13:49.000Z | 2022-01-12T21:24:52.000Z | defmodule Crawler.Snapper.DirMakerTest do
use Crawler.TestCase, async: true
alias Crawler.Snapper.DirMaker
doctest DirMaker
end
| 17 | 41 | 0.801471 |
c831a8f29b3ae6b3be25078a2554f98b0c946b43 | 799 | ex | Elixir | lib/teslamate/http.ex | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | 1 | 2020-08-10T03:16:35.000Z | 2020-08-10T03:16:35.000Z | lib/teslamate/http.ex | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | null | null | null | lib/teslamate/http.ex | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | null | null | null | defmodule TeslaMate.HTTP do
def child_spec(arg) do
%{
id: __MODULE__,
start:
{Finch, :start_link,
[
Keyword.merge(
[
name: __MODULE__,
pools: %{
:default => [size: 5],
"https://owner-api.teslamotor... | 24.96875 | 68 | 0.450563 |
c831bc8fe8fc43505beca641fb067adee167cd02 | 1,781 | exs | Elixir | test/cloak/migrator_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | test/cloak/migrator_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | test/cloak/migrator_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | defmodule Cloak.MigratorTest do
use Cloak.DataCase
alias Cloak.Migrator
alias Cloak.TestUser, as: User
alias Cloak.TestVault, as: Vault
@email "test@email.com"
defp create_user(_) do
[user: Factory.create_user(@email)]
end
defp migrate(_) do
Migrator.migrate(Repo, User)
updated = Repo.on... | 27.828125 | 86 | 0.650197 |
c831bee769832271d0d6a25495583415ecef5f78 | 1,802 | ex | Elixir | lib/workflow/plug/plug.ex | cnavas88/exvalidate | 899127b5427ca1d4f926b8953c09ab6151365dda | [
"MIT"
] | 4 | 2020-04-23T09:44:01.000Z | 2020-10-29T17:02:29.000Z | lib/workflow/plug/plug.ex | cnavas88/exvalidate | 899127b5427ca1d4f926b8953c09ab6151365dda | [
"MIT"
] | 13 | 2020-04-23T09:39:28.000Z | 2020-11-05T15:59:25.000Z | lib/workflow/plug/plug.ex | cnavas88/exvalidate | 899127b5427ca1d4f926b8953c09ab6151365dda | [
"MIT"
] | 1 | 2019-10-21T13:10:09.000Z | 2019-10-21T13:10:09.000Z | defmodule Exvalidate.Plug do
@moduledoc """
Plug for validate request into the router file. For validate the request
we need create a schema keywordlist with the rules assigned to params.
## Uses
1- To add the exvalidate middleware in your plug file:
```
plug(:match)
plug(PlugValidate, on_error: &Plug... | 23.402597 | 81 | 0.649834 |
c831ce06986547b29c3040a81d13f6cb95ef9d8d | 418 | exs | Elixir | test/delete_scheduled_action_test.exs | jesseshieh/ex_aws_auto_scaling | 019be2f7f11e88c6301cc05b4be661ffe0fce208 | [
"MIT"
] | 1 | 2020-01-12T03:28:18.000Z | 2020-01-12T03:28:18.000Z | test/delete_scheduled_action_test.exs | jesseshieh/ex_aws_auto_scaling | 019be2f7f11e88c6301cc05b4be661ffe0fce208 | [
"MIT"
] | 1 | 2020-05-29T01:51:59.000Z | 2020-05-29T01:51:59.000Z | test/delete_scheduled_action_test.exs | jesseshieh/ex_aws_auto_scaling | 019be2f7f11e88c6301cc05b4be661ffe0fce208 | [
"MIT"
] | 2 | 2019-11-15T21:56:51.000Z | 2020-05-01T21:21:43.000Z | defmodule DeleteScheduledActionTest do
use ExUnit.Case
test "simple delete" do
op = ExAws.AutoScaling.delete_scheduled_action("my-asg", "my-scheduled-action")
assert op.params == %{
"Version" => "2011-01-01",
"Action" => "DeleteScheduledAction",
"AutoScalingGroupName... | 27.866667 | 83 | 0.605263 |
c831d56317c6ec3a8e81e7a7a9bccc1b40c20d70 | 437 | ex | Elixir | lib/mix/tasks/ssh.ex | ckhrysze/erlang_ssh_test | 2214dc21ee86bd56d0e73a75e37fcc5b6cc45da6 | [
"MIT"
] | null | null | null | lib/mix/tasks/ssh.ex | ckhrysze/erlang_ssh_test | 2214dc21ee86bd56d0e73a75e37fcc5b6cc45da6 | [
"MIT"
] | null | null | null | lib/mix/tasks/ssh.ex | ckhrysze/erlang_ssh_test | 2214dc21ee86bd56d0e73a75e37fcc5b6cc45da6 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Ssh do
def run([ip, user, file]) do
Application.ensure_all_started(:connector)
IO.puts("Attempting to connect...")
{:ok, conn} = SSH.connect(ip, user: user, identity: file, silently_accept_hosts: true)
{:ok, path, _} = SSH.run(conn, "pwd")
IO.puts("Connected, pwd returned: #{pa... | 29.133333 | 90 | 0.656751 |
c831e8359dfd6fecf8e024df829b58ae383ab39d | 336 | ex | Elixir | lib/rmc_web/controllers/screen_controller.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc_web/controllers/screen_controller.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc_web/controllers/screen_controller.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | defmodule RmcWeb.ScreenController do
use RmcWeb, :controller
alias Rmc.RaceState
def session(conn, _params) do
session = RaceState.get_session()
render(conn, "index.json", screen_data: session)
end
def timing(conn, _params) do
render(conn, "index.json", screen_data: %{timing: RaceState.get_timin... | 24 | 78 | 0.720238 |
c8320e86d8631fb587484e20d9d4e4aa24763911 | 1,597 | ex | Elixir | lib/mix/tasks/utils/list_cmd.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 1 | 2018-03-22T15:24:37.000Z | 2018-03-22T15:24:37.000Z | lib/mix/tasks/utils/list_cmd.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 26 | 2018-07-22T01:10:59.000Z | 2019-10-20T08:43:10.000Z | lib/mix/tasks/utils/list_cmd.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | null | null | null | defmodule ExBitcoinTask.GenerateRpc.ListCmd do
@moduledoc """
Process document for "bitcoin-cli help".
"""
require Logger
@regex ~r/==\s*(?<name>\w+)\s*==/
@docs %{
"Blockchain" => [ns: :Core, desc: "General blockchain RPC"],
"Control" => [desc: "Control how bitcoin node works"],
"Generating" ... | 27.534483 | 89 | 0.583594 |
c832391b54e7bbd8e7a2b0c821ac836ff1134823 | 3,651 | exs | Elixir | code_flow/test/recursion_test.exs | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/test/recursion_test.exs | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/test/recursion_test.exs | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | # ---
# Excerpted from "Thinking Elixir - CodeFlow", published by Mark Ericksen.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact me if you are in doubt. I make
# no guarantees that this code is fit for any purpose. Visit
# https://thinki... | 37.639175 | 80 | 0.672692 |
c8323f22bc02bc4bfd3edfbcddfb58b35bd8f8e9 | 3,145 | ex | Elixir | lib/quack/formatter.ex | azohra/quack | 8a3c56911ae271c29e7d64a0bb3172d9c899c74f | [
"MIT"
] | 9 | 2018-12-21T20:32:08.000Z | 2022-01-20T03:54:28.000Z | lib/quack/formatter.ex | azohra/Quack | 8a3c56911ae271c29e7d64a0bb3172d9c899c74f | [
"MIT"
] | null | null | null | lib/quack/formatter.ex | azohra/Quack | 8a3c56911ae271c29e7d64a0bb3172d9c899c74f | [
"MIT"
] | null | null | null | defmodule Quack.Formatter do
@moduledoc """
Module responsible for formatting and composing messages to be sent to slack
"""
import Logger.Formatter, only: [format_date: 1, format_time: 1]
@doc """
Function to compose a new message based on event data
"""
def create_message({level, message, timestamp,... | 22.625899 | 78 | 0.517965 |
c832459b95d96467799077d7993c17d6190c699f | 757 | exs | Elixir | mix.exs | tanguilp/ldapoolex | 6c9777cd0ff9fc7ec4e2d62d3ebd73cf85a98cec | [
"Apache-2.0"
] | 1 | 2019-09-30T09:31:05.000Z | 2019-09-30T09:31:05.000Z | mix.exs | tanguilp/ldapoolex | 6c9777cd0ff9fc7ec4e2d62d3ebd73cf85a98cec | [
"Apache-2.0"
] | null | null | null | mix.exs | tanguilp/ldapoolex | 6c9777cd0ff9fc7ec4e2d62d3ebd73cf85a98cec | [
"Apache-2.0"
] | 1 | 2020-09-14T10:41:13.000Z | 2020-09-14T10:41:13.000Z | defmodule LDAPoolex.MixProject do
use Mix.Project
def project do
[
app: :ldapoolex,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
main: "readme",
extras: ["README.md"]
]
]
end
# Run "mix help com... | 21.027778 | 65 | 0.531044 |
c8324fa6725c27f30d48cde4b8e20177cbd2f674 | 1,481 | ex | Elixir | clients/vector_tile/lib/google_api/vector_tile/v1/model/road_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vector_tile/lib/google_api/vector_tile/v1/model/road_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vector_tile/lib/google_api/vector_tile/v1/model/road_info.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... | 31.510638 | 195 | 0.733964 |
c8325559910a79d0fed15f4eff6249bf7dd3c05f | 860 | ex | Elixir | lib/nerves_usb_automount/config.ex | konstantinzolotarev/nerves_usb_automount | f39a39edf96e19dcb92bd1d2af86bdc83bff6a09 | [
"Apache-2.0"
] | null | null | null | lib/nerves_usb_automount/config.ex | konstantinzolotarev/nerves_usb_automount | f39a39edf96e19dcb92bd1d2af86bdc83bff6a09 | [
"Apache-2.0"
] | null | null | null | lib/nerves_usb_automount/config.ex | konstantinzolotarev/nerves_usb_automount | f39a39edf96e19dcb92bd1d2af86bdc83bff6a09 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.UsbAutomount.Config do
@moduledoc false
use GenServer
require Logger
@scope [:config, :usb_automount]
# scope for detecting devices
@device_scope [:state, "subsystems", "scsi_disk"]
@priority :nerves_usb_automount
@doc false
def start_link() do
GenServer.start_link(__MODULE__,... | 20.47619 | 87 | 0.668605 |
c8327068a7e52e7af436d11802f3eaaa5f3f87ff | 1,065 | ex | Elixir | lib/broadcaster.ex | jordanell/broadcaster | 62574b21e3ea630918b0b081868e238bfb3b8c12 | [
"MIT"
] | null | null | null | lib/broadcaster.ex | jordanell/broadcaster | 62574b21e3ea630918b0b081868e238bfb3b8c12 | [
"MIT"
] | null | null | null | lib/broadcaster.ex | jordanell/broadcaster | 62574b21e3ea630918b0b081868e238bfb3b8c12 | [
"MIT"
] | null | null | null | defmodule Broadcaster do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto reposit... | 33.28125 | 89 | 0.720188 |
c8328af38215a622e7d887113be2663fc632c15f | 95 | exs | Elixir | test/dogma/util/name_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | test/dogma/util/name_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | test/dogma/util/name_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | defmodule Dogma.Util.NameTest do
use ExUnit.Case, async: true
doctest Dogma.Util.Name
end
| 15.833333 | 32 | 0.768421 |
c832a069a8ce89b684b1e68f134d3fb8ff2a801f | 1,238 | exs | Elixir | mix.exs | tmecklem/ex_diagcare | cb3236253a19254f3a278f2ffbfa78446bfb1675 | [
"MIT"
] | null | null | null | mix.exs | tmecklem/ex_diagcare | cb3236253a19254f3a278f2ffbfa78446bfb1675 | [
"MIT"
] | null | null | null | mix.exs | tmecklem/ex_diagcare | cb3236253a19254f3a278f2ffbfa78446bfb1675 | [
"MIT"
] | null | null | null | defmodule ExDiagcare.Mixfile do
use Mix.Project
def project do
[app: :ex_diagcare,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 28.136364 | 97 | 0.552504 |
c832a5630531a5523b04f0ec01e9101591c0a4cd | 1,895 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/model/switch_runtime_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/notebooks/lib/google_api/notebooks/v1/model/switch_runtime_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/notebooks/lib/google_api/notebooks/v1/model/switch_runtime_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.754717 | 133 | 0.730871 |
c832b266c983b7ba96c197d31fc358107a570e73 | 262 | exs | Elixir | sdr-web/config/test.exs | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | 1 | 2022-02-15T23:17:51.000Z | 2022-02-15T23:17:51.000Z | sdr-web/config/test.exs | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | null | null | null | sdr-web/config/test.exs | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | 3 | 2020-05-09T10:08:07.000Z | 2021-02-22T11:42:00.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :sdr_web, SdrWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 23.818182 | 56 | 0.732824 |
c832bd89a80964716496d1f78f6cf4edb595444b | 4,097 | exs | Elixir | test/teslamate/terrain/update_positions_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2021-10-31T13:22:49.000Z | 2021-10-31T13:22:49.000Z | test/teslamate/terrain/update_positions_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | null | null | null | test/teslamate/terrain/update_positions_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Terrain.UpdatePositionsTest do
use TeslaMate.DataCase
alias TeslaMate.{Log, Terrain}
alias TeslaMate.Log.Position
defp start_terrain(name, responses) do
srtm_name = :"srtm_#{name}"
{:ok, _pid} = start_supervised({SRTMMock, name: srtm_name, pid: self(), responses: responses})
... | 31.037879 | 98 | 0.596046 |
c832c6b63b159378f60819efbb2b5fd5088bc354 | 3,061 | ex | Elixir | lib/absinthe/pipeline/batch_resolver.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | lib/absinthe/pipeline/batch_resolver.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-09-23T21:26:01.000Z | 2019-09-23T21:26:01.000Z | lib/absinthe/pipeline/batch_resolver.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | null | null | null | defmodule Absinthe.Pipeline.BatchResolver do
alias Absinthe.Phase.Document.Execution
require Logger
@moduledoc false
def run([], _), do: []
def run([bp | _] = blueprints, options) do
{initial_phases, options} = Keyword.pop(options, :initial_phases, [])
schema = Keyword.fetch!(options, :schema)
... | 26.617391 | 94 | 0.639987 |
c832d8893f61a0629b3f826f8907a992f6d5da09 | 894 | ex | Elixir | clients/billing_budgets/lib/google_api/billing_budgets/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/billing_budgets/lib/google_api/billing_budgets/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/billing_budgets/lib/google_api/billing_budgets/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 33.111111 | 74 | 0.761745 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.