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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2131d2782dd03fd0ee7dbe7a469369bdedddfe15 | 8,297 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/datetime/formatters/default.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/datetime/formatters/default.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/datetime/formatters/default.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Timex.Format.DateTime.Formatters.Default do
@moduledoc """
Date formatting language used by default by the formatting functions in Timex.
This is a novel formatting language introduced with `DateFormat`. Its main
advantage is simplicity and usage of mnemonics that are easy to memorize.
## Directiv... | 43.899471 | 119 | 0.607931 |
2131dfade30726f83cbe0c95736914a95c9474b0 | 485 | ex | Elixir | services/fc_inventory/lib/fc_inventory/events/transaction_committed.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_inventory/lib/fc_inventory/events/transaction_committed.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_inventory/lib/fc_inventory/events/transaction_committed.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCInventory.TransactionCommitted do
use FCBase, :event
@version 1
typedstruct do
field :__version__, integer(), default: @version
field :request_id, String.t()
field :requester_id, String.t()
field :requester_type, String.t()
field :requester_role, String.t()
field :client_id,... | 23.095238 | 52 | 0.686598 |
2131eb1230708ee344122223bdae080b329411a4 | 386 | ex | Elixir | lib/spherical/r2/point.ex | arpunk/spherical | 4fdbdceb12bdc4809b38b38991ce1e9a1d15f890 | [
"MIT"
] | 1 | 2015-08-21T23:53:09.000Z | 2015-08-21T23:53:09.000Z | lib/spherical/r2/point.ex | arpunk/spherical | 4fdbdceb12bdc4809b38b38991ce1e9a1d15f890 | [
"MIT"
] | null | null | null | lib/spherical/r2/point.ex | arpunk/spherical | 4fdbdceb12bdc4809b38b38991ce1e9a1d15f890 | [
"MIT"
] | null | null | null | defmodule Spherical.R2.Point do
@moduledoc ~S"""
Represents a point in ℝ².
"""
defstruct x: 0, y: 0
@type t :: %__MODULE__{x: number, y: number}
@doc "Returns a point."
def new(x) when is_number(x) do
%__MODULE__{x: x, y: x}
end
@doc "Returns a point from `a` to `b`."
def new(x, y) when is_nu... | 20.315789 | 53 | 0.611399 |
2131f364fe90286b0bdaa8dd03b8697d76718010 | 15,714 | ex | Elixir | lib/faker/address/es.ex | theabrad/faker | 7bf54d15f127a2fb845335967b5b601e67960ef0 | [
"MIT"
] | 1 | 2019-02-11T20:46:52.000Z | 2019-02-11T20:46:52.000Z | lib/faker/address/es.ex | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | null | null | null | lib/faker/address/es.ex | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | null | null | null | defmodule Faker.Address.Es do
import Faker, only: [sampler: 2]
alias Faker.Name
@moduledoc """
Functions for generating addresses in Spanish
"""
@doc """
Return random building number.
## Examples
iex> Faker.Address.Es.building_number()
"s/n."
iex> Faker.Address.Es.building_number... | 19.352217 | 88 | 0.55301 |
2131fa9e675705eacc4efcae53c6697f2ae1f8ce | 1,466 | ex | Elixir | apps/admin_api/lib/admin_api/v1/plugs/account_scope_plug.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/plugs/account_scope_plug.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/plugs/account_scope_plug.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 29.32 | 79 | 0.699864 |
2132225be0d0eef3735f9fcf1e0a03355b4f2ca8 | 2,844 | ex | Elixir | lib/memo_web/router.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | lib/memo_web/router.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | lib/memo_web/router.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | defmodule MemoWeb.Router do
use MemoWeb, :router
import MemoWeb.UserAuth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {MemoWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :fetch_... | 30.580645 | 86 | 0.718706 |
21322dfd56c64433738dc3ae27037f3f92b8615f | 3,695 | ex | Elixir | lib/aws/generated/iot_secure_tunneling.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/iot_secure_tunneling.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/iot_secure_tunneling.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.IoTSecureTunneling do
@moduledoc """
AWS IoT Secure Tunneling
AWS IoT Secure Tunnling enables you to create remote connections to devices
deployed in the field.
For more information ab... | 30.04065 | 95 | 0.663329 |
213244ab94aa2412b3a611c5380830677b411260 | 4,785 | ex | Elixir | lib/phone.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone do
@moduledoc ~S"""
Phone is a real telephone number parser, that will help you get useful information from numbers.
## How to use
Very simple to use:
iex> Phone.parse("555132345678")
{:ok, %{a2: "BR", a3: "BRA", country: "Brazil", international_code: "55", area_code: "51", number:... | 30.673077 | 194 | 0.633856 |
213262583010a8a9c30db85023bb7a26b6e566a7 | 2,435 | exs | Elixir | backend/voxel_handler/config/dev.exs | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-06T15:31:54.000Z | 2022-03-27T12:10:13.000Z | backend/voxel_handler/config/dev.exs | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 9 | 2022-03-01T05:17:43.000Z | 2022-03-11T01:04:24.000Z | backend/voxel_handler/config/dev.exs | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-04T15:52:44.000Z | 2022-03-27T12:16:27.000Z | import Config
# Configure your database
config :voxel_handler, VoxelHandler.Repo,
username: "postgres",
password: "postgres",
database: "voxel_handler_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging an... | 32.466667 | 86 | 0.717864 |
213263759d54a8f57f011e2d869110eee3f9d47a | 2,239 | ex | Elixir | lib/surface/catalogue/example.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2021-04-30T14:28:08.000Z | 2021-04-30T14:28:08.000Z | lib/surface/catalogue/example.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | lib/surface/catalogue/example.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.Catalogue.Example do
@moduledoc """
Experimental LiveView to create examples for catalogue tools.
## Options
Besides the buit-in options provided by the LiveView itself, an Example also
provides the following options:
* `subject` - Required. The target component of the Example.
*... | 31.535211 | 94 | 0.663689 |
2132943676714a38cbc0a63a86c3a3e4a7446ec7 | 351 | exs | Elixir | priv/repo/migrations/20161220141753_add_status_fields_to_stripe_connect_accounts.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20161220141753_add_status_fields_to_stripe_connect_accounts.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20161220141753_add_status_fields_to_stripe_connect_accounts.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.AddStatusFieldsToStripeConnectAccounts do
use Ecto.Migration
def change do
alter table(:stripe_connect_accounts) do
add :recipient_status, :string
add :verification_document_status, :string
add :personal_id_number_status, :string
add :bank_account_sta... | 27 | 77 | 0.760684 |
2132a53829929e5b75135f0282b74e746df475a2 | 26,418 | ex | Elixir | lib/mailroom/imap.ex | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | null | null | null | lib/mailroom/imap.ex | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | null | null | null | lib/mailroom/imap.ex | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | null | null | null | defmodule Mailroom.IMAP do
use GenServer
import Mailroom.IMAP.Utils
require Logger
alias Mailroom.IMAP.{Envelope, BodyStructure}
defmodule State do
@moduledoc false
defstruct socket: nil,
state: :unauthenticated,
ssl: false,
debug: false,
cmd... | 29.418708 | 154 | 0.616019 |
2132dcba2050e6f2cfaaa9b6a46bc42c90f33d8a | 491 | ex | Elixir | lib/client_evt_mgr.ex | kondalrao/ChitChat | c09e3eb836ad3bf13c949f8e25bfb5b44801d8d8 | [
"MIT"
] | null | null | null | lib/client_evt_mgr.ex | kondalrao/ChitChat | c09e3eb836ad3bf13c949f8e25bfb5b44801d8d8 | [
"MIT"
] | null | null | null | lib/client_evt_mgr.ex | kondalrao/ChitChat | c09e3eb836ad3bf13c949f8e25bfb5b44801d8d8 | [
"MIT"
] | null | null | null | require Logger
defmodule ChitChat.ClientEvtMgr do
use GenEvent
def list_clients do
GenEvent.call(:ClientMgr, ChitChat.ClientEvtMgr, {:list_clients})
end
def init(_args) do
{:ok, HashDict.new()}
end
def handle_event({:new_client, {pid}}, clientDict) do
{:ok, HashDi... | 21.347826 | 73 | 0.649695 |
21331b963c50a239e78509418c6f3a5a72d4607c | 15,156 | ex | Elixir | lib/chat_api/aws.ex | rgstephens/papercups | 60128d6ae9b5425e9b250f7764518838b498100e | [
"MIT"
] | 1 | 2021-08-02T07:59:41.000Z | 2021-08-02T07:59:41.000Z | lib/chat_api/aws.ex | rgstephens/papercups | 60128d6ae9b5425e9b250f7764518838b498100e | [
"MIT"
] | null | null | null | lib/chat_api/aws.ex | rgstephens/papercups | 60128d6ae9b5425e9b250f7764518838b498100e | [
"MIT"
] | null | null | null | defmodule ChatApi.Aws do
@moduledoc """
A module to handle interactions with AWS
TODO: clean this up!
"""
alias ChatApi.Aws.Config
@type config() :: %{
aws_key_id: binary(),
aws_secret_key: binary(),
bucket_name: binary(),
function_bucket_name: binary(),
... | 33.830357 | 99 | 0.639219 |
2133515f69f53cd26e1252f495cb85be4d03905a | 23,569 | ex | Elixir | lib/elixir_sense/core/binding.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 216 | 2019-01-05T02:08:51.000Z | 2022-03-23T23:59:56.000Z | lib/elixir_sense/core/binding.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 102 | 2019-01-18T04:59:06.000Z | 2022-01-10T14:21:24.000Z | lib/elixir_sense/core/binding.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 31 | 2019-01-16T08:19:34.000Z | 2022-03-07T08:06:22.000Z | defmodule ElixirSense.Core.Binding do
@moduledoc false
alias ElixirSense.Core.Binding
alias ElixirSense.Core.Normalized.Typespec
alias ElixirSense.Core.State
alias ElixirSense.Core.Struct
alias ElixirSense.Core.TypeInfo
defstruct structs: %{},
variables: [],
attributes: [],
... | 26.216908 | 100 | 0.582969 |
21335c9ceef7fa5abccfd1e6c2f9e769cb72b3d9 | 3,705 | exs | Elixir | day07/circus.exs | ecly/adventofcode2017 | b96b450a517baa2f3615eec7138491b3c3e22604 | [
"MIT"
] | null | null | null | day07/circus.exs | ecly/adventofcode2017 | b96b450a517baa2f3615eec7138491b3c3e22604 | [
"MIT"
] | null | null | null | day07/circus.exs | ecly/adventofcode2017 | b96b450a517baa2f3615eec7138491b3c3e22604 | [
"MIT"
] | null | null | null | defmodule Program do
defstruct key: nil, weight: 0, children: [], disc_weights: []
end
defmodule Circus do
@parent ~r/(\w+) \((\d+)\) -> ([\w+,?\s?]+)/
@child ~r/(\w+) \((\d+)\)/
def parseChildren(children) do
children
|> String.split(",")
|> Enum.map(&String.trim/1)
end
def parseParent(line)... | 33.681818 | 109 | 0.588934 |
21336ae1a1fe4eb1e83c5b5001e63482d7e6414b | 2,181 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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.552239 | 148 | 0.698304 |
21336cf499d57066117b6ee130bc08aad3179ce1 | 14,568 | ex | Elixir | lib/google_api/storage/v1/api/bucket_access_controls.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/bucket_access_controls.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/bucket_access_controls.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | 1 | 2019-04-17T05:52:55.000Z | 2019-04-17T05:52:55.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... | 44.824615 | 177 | 0.683553 |
213371b3eda48ccef1b8e93707257ace7dca8ab9 | 198 | exs | Elixir | test/test_helper.exs | ianrumford/plymio_name | 434294b6f6fa489918a5ee007bec03b22a21212b | [
"MIT"
] | null | null | null | test/test_helper.exs | ianrumford/plymio_name | 434294b6f6fa489918a5ee007bec03b22a21212b | [
"MIT"
] | null | null | null | test/test_helper.exs | ianrumford/plymio_name | 434294b6f6fa489918a5ee007bec03b22a21212b | [
"MIT"
] | null | null | null | ExUnit.start()
defmodule PlymioNameHelpersTest do
defmacro __using__(_opts \\ []) do
quote do
use ExUnit.Case, async: true
alias Plymio.Name.Utils, as: PNU
end
end
end
| 12.375 | 38 | 0.656566 |
2133a243db8ecae40b2336c5642e62e8eadab5d8 | 1,744 | ex | Elixir | server/apps/boardr_api/lib/boardr_api/utils/controller_helpers.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2021-04-08T17:26:27.000Z | 2021-04-08T17:26:27.000Z | server/apps/boardr_api/lib/boardr_api/utils/controller_helpers.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2022-02-13T05:50:46.000Z | 2022-02-13T05:50:46.000Z | server/apps/boardr_api/lib/boardr_api/utils/controller_helpers.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | null | null | null | defmodule BoardrApi.ControllerHelpers do
alias Plug.Conn
alias Plug.Conn
import Boardr.Distributed, only: [distribute: 3]
import Phoenix.Controller, only: [render: 2]
import Plug.Conn, only: [get_req_header: 2, put_resp_content_type: 2]
require BoardrRest
def render_hal(%Conn{} = conn, assigns) when i... | 33.538462 | 86 | 0.671445 |
2133b5fc2a815d8dd76f3d373ebf329c93f6858d | 4,660 | ex | Elixir | lib/simple_pool/monitoring_framework/environment_manager/job_manager/job_manager_worker.ex | Prodev2017/Simple_Elixir | e210071df8a6ac7cc8de2ed3360fcdb1ba440785 | [
"MIT"
] | 12 | 2018-07-03T10:14:54.000Z | 2020-04-07T02:04:39.000Z | lib/simple_pool/monitoring_framework/environment_manager/job_manager/job_manager_worker.ex | Prodev2017/Simple_Elixir | e210071df8a6ac7cc8de2ed3360fcdb1ba440785 | [
"MIT"
] | 1 | 2018-12-02T06:05:59.000Z | 2018-12-02T06:05:59.000Z | lib/simple_pool/monitoring_framework/environment_manager/job_manager/job_manager_worker.ex | Prodev2017/Simple_Elixir | e210071df8a6ac7cc8de2ed3360fcdb1ba440785 | [
"MIT"
] | 2 | 2018-03-05T12:01:51.000Z | 2018-07-03T10:15:04.000Z | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.Environment.JobManagerWorkerEntity do
@vsn 1.0
#------... | 34.014599 | 124 | 0.500644 |
2133c680a212a9742afa51cb96faf02a49fffdfc | 495 | ex | Elixir | lib/ex_doc_dash/util.ex | kianmeng/ExDocDash | d61cfc0b8f819f330ca1cdcf6d230dc237203b80 | [
"MIT"
] | 72 | 2015-01-06T16:28:49.000Z | 2021-10-01T03:07:46.000Z | lib/ex_doc_dash/util.ex | kianmeng/ExDocDash | d61cfc0b8f819f330ca1cdcf6d230dc237203b80 | [
"MIT"
] | 7 | 2015-01-03T18:31:47.000Z | 2021-12-23T13:16:59.000Z | lib/ex_doc_dash/util.ex | kianmeng/ExDocDash | d61cfc0b8f819f330ca1cdcf6d230dc237203b80 | [
"MIT"
] | 10 | 2015-08-31T19:41:38.000Z | 2021-08-11T13:10:53.000Z | defmodule ExDocDash.Util do
def templates_path(other) do
Path.expand(other, Application.app_dir(:ex_doc_dash, "priv/templates"))
end
def assets do
[
{ templates_path("stylesheets/*.css"), "stylesheets" },
{ templates_path("javascripts/*.js"), "javascripts" },
{ templates_path("fonts/*"), "fonts" }
]... | 20.625 | 73 | 0.690909 |
2133ce44d219cb052fe658e14b34b5c05864c5d2 | 8,338 | exs | Elixir | spec/web/resolvers/formations_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/web/resolvers/formations_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/web/resolvers/formations_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Web.Resolvers.FormationsSpec do
use ESpec.Phoenix, async: true
use ESpec.Phoenix.Extend, :domain
import Mockery
import Mockery.Assertions
alias SquadsterWeb.Resolvers.Formations
alias Squadster.Formations.Squad
describe "squad/3" do
context "when the squad exists" do
let! ... | 33.485944 | 127 | 0.653874 |
21340e720b04e4cf08b08b338ef779100ca5ffe2 | 10,740 | ex | Elixir | lib/jose/poison/lexical_encoder.ex | tanguilp/erlang-jose | 4ab456ed5bdefabe13fb63884f0d98457ec46d51 | [
"MIT"
] | null | null | null | lib/jose/poison/lexical_encoder.ex | tanguilp/erlang-jose | 4ab456ed5bdefabe13fb63884f0d98457ec46d51 | [
"MIT"
] | null | null | null | lib/jose/poison/lexical_encoder.ex | tanguilp/erlang-jose | 4ab456ed5bdefabe13fb63884f0d98457ec46d51 | [
"MIT"
] | null | null | null | defmodule JOSE.Poison.LexicalEncodeError do
@type t :: %__MODULE__{message: String.t(), value: any}
defexception message: nil, value: nil
def exception(args) when is_list(args) do
if Code.ensure_loaded?(Poison) and Code.ensure_loaded?(Poison.EncodeError) do
Poison.EncodeError.exception(args)
else
... | 24.576659 | 114 | 0.613501 |
213414b6c91f525247f3bad86102a062ec4fcae6 | 2,027 | exs | Elixir | config/prod.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | config/prod.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | config/prod.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | 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,
# ... | 36.196429 | 66 | 0.716823 |
21341fa5863ad3bed91889c64fa7c3fb0824eb78 | 1,537 | exs | Elixir | mix.exs | cogini/mix_systemd | 3d18e3d2d290ce98fd6d678e0a7083cfb5f17668 | [
"Apache-2.0"
] | 52 | 2019-02-28T07:29:05.000Z | 2022-03-03T15:03:28.000Z | mix.exs | cogini/mix_systemd | 3d18e3d2d290ce98fd6d678e0a7083cfb5f17668 | [
"Apache-2.0"
] | 3 | 2020-03-06T09:02:18.000Z | 2020-03-20T13:35:48.000Z | mix.exs | cogini/mix_systemd | 3d18e3d2d290ce98fd6d678e0a7083cfb5f17668 | [
"Apache-2.0"
] | 5 | 2019-09-09T19:28:30.000Z | 2021-02-16T02:07:52.000Z | defmodule MixSystemd.MixProject do
use Mix.Project
@github "https://github.com/cogini/mix_systemd"
def project do
[
app: :mix_systemd,
version: "0.7.4",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
... | 23.646154 | 89 | 0.581653 |
213420b1c546e0077c291c441a8f50872f5d3423 | 993 | ex | Elixir | lib/sass_ex/rpc/message.ex | montebrown/sass_ex | 43aae4a8134a8ec418023d7a309036ba7e1debfe | [
"MIT"
] | null | null | null | lib/sass_ex/rpc/message.ex | montebrown/sass_ex | 43aae4a8134a8ec418023d7a309036ba7e1debfe | [
"MIT"
] | 1 | 2021-12-15T22:56:26.000Z | 2021-12-29T16:55:46.000Z | lib/sass_ex/rpc/message.ex | montebrown/sass_ex | 43aae4a8134a8ec418023d7a309036ba7e1debfe | [
"MIT"
] | 1 | 2021-12-11T22:47:02.000Z | 2021-12-11T22:47:02.000Z | defmodule SassEx.RPC.Message do
@moduledoc false
alias Sass.EmbeddedProtocol.{InboundMessage, OutboundMessage}
alias SassEx.RPC.LEB128
@spec encode(atom, any) :: binary
@doc """
Encode an inbound message into a LEB128 prefixed binary message
"""
def encode(type, message) do
msg =
%{message: ... | 23.093023 | 79 | 0.645519 |
2134b0e6c0a67148288018b1ee98deb15e7fadcc | 1,121 | ex | Elixir | lib/seent_web/router.ex | seent-app/seent | 6071a0f90f1cb5345faa0c9e476d3c64310a7be9 | [
"0BSD"
] | null | null | null | lib/seent_web/router.ex | seent-app/seent | 6071a0f90f1cb5345faa0c9e476d3c64310a7be9 | [
"0BSD"
] | 1 | 2020-07-04T17:19:38.000Z | 2020-07-04T17:19:38.000Z | lib/seent_web/router.ex | seent-app/seent | 6071a0f90f1cb5345faa0c9e476d3c64310a7be9 | [
"0BSD"
] | null | null | null | defmodule SeentWeb.Router do
use SeentWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {SeentWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :acce... | 25.477273 | 70 | 0.697591 |
2134b78bb989af7affdbf0d719d174c1b676b1fa | 348 | ex | Elixir | ex/apps/reef/lib/reef/controllers/rules_controller.ex | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/reef/lib/reef/controllers/rules_controller.ex | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/reef/lib/reef/controllers/rules_controller.ex | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | defmodule Reef.RulesController do
use Reef, :controller
import Corals.Helpers
alias Reef.RulesModel, as: Model
def index conn, _ do
json conn, Model.index
end
def show conn, %{"name" => name} do
text conn, Corals.Loader.content name
end
def resolve conn, params do
json conn, Corals.resol... | 18.315789 | 44 | 0.701149 |
2134e4a86e87e2cc0e28f3435f0a72e994835071 | 678 | ex | Elixir | lib/web/session/cookie.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | lib/web/session/cookie.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | lib/web/session/cookie.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Session.Cookie do
@moduledoc """
Implementation of `Antikythera.Session.Store` that stores session info in cookie.
"""
alias Antikythera.Session.Store
@behaviour Store
@impl true
defun load(nil) :: {nil, Sto... | 21.870968 | 83 | 0.656342 |
213587c69937c1aea2dcba60e9fd4225c487a132 | 5,524 | ex | Elixir | lib/pokedex_bot/embed_paginator.ex | BenjamimFG/PokedexBot | 86201c68ed354a59852252aaf689298c5b70981f | [
"BSD-2-Clause"
] | null | null | null | lib/pokedex_bot/embed_paginator.ex | BenjamimFG/PokedexBot | 86201c68ed354a59852252aaf689298c5b70981f | [
"BSD-2-Clause"
] | null | null | null | lib/pokedex_bot/embed_paginator.ex | BenjamimFG/PokedexBot | 86201c68ed354a59852252aaf689298c5b70981f | [
"BSD-2-Clause"
] | null | null | null | defmodule PokedexBot.EmbedPaginator do
import Nostrum.Struct.Embed
import PokedexBot.EmbedPaginator.ActiveUser
alias PokedexBot.EmbedPaginator.ActiveUser
alias Nostrum.Api
alias Nostrum.Struct.Emoji
@type item :: %{
id: integer(),
name: String.t()
}
@spec new_paginator(atom,... | 27.758794 | 93 | 0.616039 |
21359118d5988f7a07dd74c7a5b3b95685733e07 | 1,893 | exs | Elixir | music.exs | thbar/demo-elixir-reloading-music | b8bb1853623bea62bca288f3e4f064f20511bb66 | [
"MIT"
] | 58 | 2017-05-04T08:28:06.000Z | 2021-09-24T05:28:15.000Z | music.exs | thbar/demo-elixir-reloading-music | b8bb1853623bea62bca288f3e4f064f20511bb66 | [
"MIT"
] | null | null | null | music.exs | thbar/demo-elixir-reloading-music | b8bb1853623bea62bca288f3e4f064f20511bb66 | [
"MIT"
] | 1 | 2021-01-07T11:36:27.000Z | 2021-01-07T11:36:27.000Z | defmodule Midi do
use GenServer
require Logger
def init(args) do
{:ok, args}
end
def start_link do
# Logger.info "Available devices: #{inspect PortMidi.devices}"
{:ok, device} = PortMidi.open(:output, "Renoise MIDI-In")
tick_period = 50
Process.send_after(:midi, {:tick}, tick_period)
... | 28.681818 | 105 | 0.646593 |
2135a281988c9ce87d1aeedfd68a1bfdb6079071 | 805 | ex | Elixir | lib/erlef_web/controllers/working_group_controller.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/working_group_controller.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/working_group_controller.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.WorkingGroupController do
use ErlefWeb, :controller
action_fallback ErlefWeb.FallbackController
def index(conn, _params) do
groups =
Erlef.WG.all()
|> Enum.reject(fn wg -> wg.slug == "eef" end)
|> sort_by_formation()
render(conn, working_groups: groups)
end
def ... | 23.676471 | 97 | 0.643478 |
2135d2f4b805e3b7e0d2c46fa299539589e44cd9 | 884 | exs | Elixir | apps/exth_crypto/mix.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/exth_crypto/mix.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/exth_crypto/mix.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExthCrypto.Mixfile do
use Mix.Project
def project do
[
app: :exth_crypto,
version: "0.1.4",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
description: "Mana's Crypto Suite.",
pac... | 23.891892 | 62 | 0.561086 |
2135e0c880350abe62a56f032c80dae90a79542e | 306 | exs | Elixir | bliss_02/test/bliss_interpreter_test.exs | kallisto/bliss | fb0db73784ad01fb3bcc495afcbd75110f62599c | [
"MIT"
] | null | null | null | bliss_02/test/bliss_interpreter_test.exs | kallisto/bliss | fb0db73784ad01fb3bcc495afcbd75110f62599c | [
"MIT"
] | null | null | null | bliss_02/test/bliss_interpreter_test.exs | kallisto/bliss | fb0db73784ad01fb3bcc495afcbd75110f62599c | [
"MIT"
] | null | null | null | defmodule Bliss.InterpreterTest do
alias Bliss.Interpreter
use ExUnit.Case
doctest Bliss
setup do
{:ok, [kernel: Bliss.load_kernel()]}
end
test "i - operator", %{kernel: {_, _, dict}} do
assert Interpreter.interpret({[[1, 2, 3]], [:i], dict}) ==
{[3, 2, 1], [], dict}
end
end
| 20.4 | 62 | 0.604575 |
2135f7823225610d077acfd950d8e34dd9554615 | 675 | exs | Elixir | features/fixtures/mix_umbrella/apps/awesomer/mix.exs | hexa2k9/LicenseFinder | 5413f00d87e80ea631743e6fe451d584d72966ca | [
"MIT"
] | 1,039 | 2015-01-02T03:34:44.000Z | 2022-03-28T09:51:55.000Z | features/fixtures/mix_umbrella/apps/awesomer/mix.exs | hexa2k9/LicenseFinder | 5413f00d87e80ea631743e6fe451d584d72966ca | [
"MIT"
] | 525 | 2015-01-02T22:05:58.000Z | 2022-03-31T11:21:02.000Z | features/fixtures/mix_umbrella/apps/awesomer/mix.exs | hexa2k9/LicenseFinder | 5413f00d87e80ea631743e6fe451d584d72966ca | [
"MIT"
] | 274 | 2015-01-03T21:18:23.000Z | 2022-03-30T03:11:05.000Z | defmodule Awesomer.MixProject do
use Mix.Project
def project do
[
app: :awesomer,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
start_permanent: Mix.env... | 19.852941 | 59 | 0.542222 |
213602b74adbc8c2aae84d010c2b27a2e26ac336 | 1,273 | exs | Elixir | config/prod.secret.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"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.
import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envir... | 30.309524 | 67 | 0.725844 |
213603472528fbde3a28bc3fd18a69f4e2102cc9 | 3,126 | ex | Elixir | lib/elastic/bulk.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | lib/elastic/bulk.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | 1 | 2021-10-18T11:43:13.000Z | 2021-10-19T07:34:57.000Z | lib/elastic/bulk.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | defmodule Elastic.Bulk do
alias Elastic.Document
alias Elastic.HTTP
alias Elastic.ResponseHandler
@moduledoc ~S"""
Used to make requests to ElasticSearch's bulk API.
All of `index`, `create` and `update` take a list of tuples.
The order of elements in each tuple is this:
* Index
* Type
* ID (not... | 25.414634 | 94 | 0.615483 |
213608a77f823cfd07c842cdc22ae0ba258e8701 | 7,342 | exs | Elixir | test/oli/delivery/sections/browse_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli/delivery/sections/browse_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli/delivery/sections/browse_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Delivery.Sections.BrowseTest do
use Oli.DataCase
alias Oli.Delivery.Sections
alias Oli.Repo.{Paging, Sorting}
alias Oli.Delivery.Sections.{Browse, BrowseOptions}
alias Oli.Institutions.Institution
alias Lti_1p3.Tool.ContextRoles
import Ecto.Query, warn: false
def make_sections(project, i... | 30.338843 | 96 | 0.577091 |
213610eb7c9c785608dfc7da5b5faee5832b6ef2 | 1,523 | exs | Elixir | config/config.exs | rmalecki/elixir_google_spreadsheets | baf0033fd5cb0937bc3e655a66a710f0122b913e | [
"MIT"
] | null | null | null | config/config.exs | rmalecki/elixir_google_spreadsheets | baf0033fd5cb0937bc3e655a66a710f0122b913e | [
"MIT"
] | null | null | null | config/config.exs | rmalecki/elixir_google_spreadsheets | baf0033fd5cb0937bc3e655a66a710f0122b913e | [
"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... | 33.108696 | 73 | 0.720946 |
21366e5422b4f829c36de80de522e53077e0182d | 1,388 | ex | Elixir | app/lib/fish_finder_web/telemetry.ex | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | null | null | null | app/lib/fish_finder_web/telemetry.ex | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | null | null | null | app/lib/fish_finder_web/telemetry.ex | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | 1 | 2022-01-26T02:57:38.000Z | 2022-01-26T02:57:38.000Z | defmodule FFWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn more ... | 28.326531 | 86 | 0.667867 |
2136713bc5a157ea31a0a7ebf591c4f18a7c4eb4 | 207 | ex | Elixir | lib/still_node.ex | still-ex/still_node | 7ac96b28b4b3c952f10660712c107d7a77f03124 | [
"MIT"
] | 2 | 2021-04-25T07:46:51.000Z | 2021-05-01T07:00:16.000Z | lib/still_node.ex | still-ex/still_node | 7ac96b28b4b3c952f10660712c107d7a77f03124 | [
"MIT"
] | null | null | null | lib/still_node.ex | still-ex/still_node | 7ac96b28b4b3c952f10660712c107d7a77f03124 | [
"MIT"
] | null | null | null | defmodule StillNode do
@moduledoc """
Documentation for `StillNode`.
"""
@doc """
Hello world.
## Examples
iex> StillNode.hello()
:world
"""
def hello do
:world
end
end
| 10.894737 | 32 | 0.570048 |
2136e836b70e60928444d59d5464b19f74c4c1f0 | 279 | ex | Elixir | lib/trento_web/openapi/schema/health.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento_web/openapi/schema/health.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento_web/openapi/schema/health.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule TrentoWeb.OpenApi.Schema.ResourceHealth do
@moduledoc false
require OpenApiSpex
OpenApiSpex.schema(%{
title: "ResourceHealth",
type: :string,
description: "Detected health of a Resource",
enum: [:passing, :warning, :critical, :unknown]
})
end
| 21.461538 | 52 | 0.706093 |
2136fc1939180392ecdd337c9a047596d08c952a | 2,335 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/notification_config.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/notification_config.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/notification_config.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 49.680851 | 970 | 0.76531 |
21370c0e6311ecd29c1e5761405bb981d5f5a426 | 3,585 | exs | Elixir | test/cubdb/btree/key_range_test.exs | LostKobrakai/cubdb | 457ac8b94320b26d851f1a36d75001dbba2edc5a | [
"Apache-2.0"
] | null | null | null | test/cubdb/btree/key_range_test.exs | LostKobrakai/cubdb | 457ac8b94320b26d851f1a36d75001dbba2edc5a | [
"Apache-2.0"
] | null | null | null | test/cubdb/btree/key_range_test.exs | LostKobrakai/cubdb | 457ac8b94320b26d851f1a36d75001dbba2edc5a | [
"Apache-2.0"
] | null | null | null | defmodule CubDB.Btree.KeyRangeTest do
use ExUnit.Case
alias CubDB.Store
alias CubDB.Btree
alias CubDB.Btree.KeyRange
import TestHelper
doctest Btree.KeyRange
test "KeyRange implements Enumerable" do
Protocol.assert_impl!(Enumerable, KeyRange)
end
test "Enumerable.KeyRange.reduce/3 iterates en... | 32.889908 | 107 | 0.568201 |
21371811fff0bdcdfc7cd811cf34d9cad8e67a29 | 1,031 | exs | Elixir | mix.exs | IanVermes/cookie_jar | 8544c0adbf7b9c3fc1c2c2a867119b3b43525281 | [
"MIT"
] | null | null | null | mix.exs | IanVermes/cookie_jar | 8544c0adbf7b9c3fc1c2c2a867119b3b43525281 | [
"MIT"
] | null | null | null | mix.exs | IanVermes/cookie_jar | 8544c0adbf7b9c3fc1c2c2a867119b3b43525281 | [
"MIT"
] | null | null | null | defmodule CookieJar.Mixfile do
use Mix.Project
@version "1.0.5"
def project do
[
app: :cookie_jar,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package()
... | 21.040816 | 87 | 0.56547 |
21372d79925d86201f7c947f9b3e3b5c70bf77a2 | 1,263 | ex | Elixir | lib/phoenix_app_template/endpoint.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | lib/phoenix_app_template/endpoint.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | lib/phoenix_app_template/endpoint.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | defmodule PhoenixAppTemplate.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenix_app_template
socket "/socket", PhoenixAppTemplate.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files i... | 29.372093 | 69 | 0.730008 |
21374250302e37546b5ecf606805fc1795376bb6 | 952 | exs | Elixir | mix.exs | r26D/vex | 328a39f7688000e2746386eabe2f40e6c8e7796b | [
"MIT"
] | null | null | null | mix.exs | r26D/vex | 328a39f7688000e2746386eabe2f40e6c8e7796b | [
"MIT"
] | null | null | null | mix.exs | r26D/vex | 328a39f7688000e2746386eabe2f40e6c8e7796b | [
"MIT"
] | null | null | null | defmodule Vex.Mixfile do
use Mix.Project
def project do
[
app: :vex,
version: "0.8.0",
elixir: "~> 1.6",
deps: deps(),
consolidate_protocols: Mix.env() != :test,
package: package(),
# Docs
name: "Vex",
source_url: "https://github.com/CargoSense/vex",
... | 23.8 | 70 | 0.592437 |
21378c942f728c27b9debaf9a16168d6465271ed | 916 | ex | Elixir | implementations/elixir/ockam/ockam/test/ockam/helpers/test_protocols.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1,912 | 2019-01-10T14:17:00.000Z | 2022-03-30T19:16:44.000Z | implementations/elixir/ockam/ockam/test/ockam/helpers/test_protocols.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1,473 | 2019-01-16T15:14:47.000Z | 2022-03-31T23:44:50.000Z | implementations/elixir/ockam/ockam/test/ockam/helpers/test_protocols.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 219 | 2019-01-11T03:35:13.000Z | 2022-03-31T10:25:56.000Z | defmodule Ockam.Protocol.Tests.ExampleProtocol do
@moduledoc false
@behaviour Ockam.Protocol
@impl true
def protocol() do
%Ockam.Protocol{
name: "example_protocol",
request: [structure: {:struct, [string_field: :string, int_field: :int]}, data: :data],
response: :data
}
end
end
de... | 17.960784 | 93 | 0.645197 |
213799a960259a8bca25ea01e9d09d503217b72b | 28,369 | exs | Elixir | test/ecto/query/planner_test.exs | BenMorganIO/ecto | 9785114f545525cc57a89f3726b979619cbf3dc5 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | BenMorganIO/ecto | 9785114f545525cc57a89f3726b979619cbf3dc5 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | BenMorganIO/ecto | 9785114f545525cc57a89f3726b979619cbf3dc5 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../support/types.exs", __DIR__
defmodule Ecto.Query.PlannerTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Query.Planner
alias Ecto.Query.JoinExpr
defmodule Comment do
use Ecto.Schema
schema "comments" do
field :text, :string
field :temp, :strin... | 38.233154 | 161 | 0.587296 |
2137aae3339498128e37a34b24ada8e4bd03905e | 6,274 | ex | Elixir | lib/bitpal/backends/mock/backend_mock.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/backends/mock/backend_mock.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/backends/mock/backend_mock.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule BitPal.BackendMock do
@behaviour BitPal.Backend
use GenServer
import BitPal.ConfigHelpers
alias BitPal.Addresses
alias BitPal.Backend
alias BitPal.BCH.Cashaddress
alias BitPal.Blocks
alias BitPal.Invoices
alias BitPal.Transactions
alias BitPalSchemas.Address
alias BitPalSchemas.Invoice
... | 25.196787 | 95 | 0.66927 |
2137fbd8d06789024717c3690f64b0748183c67f | 1,086 | ex | Elixir | lib/slax/commands/reusable_stories.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | lib/slax/commands/reusable_stories.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | lib/slax/commands/reusable_stories.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | defmodule Slax.Commands.ReuseableStories do
@moduledoc """
Adds reusable stories to a given repo
"""
alias Slax.Commands.GithubCommands
@doc """
Adds reusable stories to the given repo
"""
@spec reuseable_stories(binary, binary) :: map
def reuseable_stories(name, github_access_token) do
org_name ... | 30.166667 | 88 | 0.722836 |
2138171014a2e99b27151c030f3a5b1fd67ba8c4 | 2,177 | exs | Elixir | elixir/test/homework_web/resolvers/user_resolver_test.exs | alexparker/divvy-homework | f656b6966c626befb5404d0c8455de86da5aab14 | [
"MIT"
] | null | null | null | elixir/test/homework_web/resolvers/user_resolver_test.exs | alexparker/divvy-homework | f656b6966c626befb5404d0c8455de86da5aab14 | [
"MIT"
] | null | null | null | elixir/test/homework_web/resolvers/user_resolver_test.exs | alexparker/divvy-homework | f656b6966c626befb5404d0c8455de86da5aab14 | [
"MIT"
] | 2 | 2021-03-16T22:27:37.000Z | 2021-10-16T08:38:35.000Z | defmodule HomeworkWeb.UsersResolverTest do
@moduledoc """
Note for Divvy:
The objective states to test the resolvers.
I've covered some tests here, but it seems thin
because the amount of work the resolvers do is pretty minimal
Most of it is delegated to the contexts.
"""
use Homework.DataCase... | 28.644737 | 96 | 0.633441 |
2138278706b2ad8c23bf023f8f7fe967685a842d | 1,338 | ex | Elixir | lib/brando/workers/image_processor.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/workers/image_processor.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/workers/image_processor.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Worker.ImageProcessor do
use Oban.Worker, queue: :default, max_attempts: 5
alias Brando.Images
alias Brando.Users
require Logger
@impl Oban.Worker
def perform(%Oban.Job{
args: %{
"image_id" => image_id,
"config_target" => config_target,
"user_id" => us... | 26.235294 | 77 | 0.563528 |
213837275a7c64fe36352462c1ae0bdcc53ba750 | 1,440 | ex | Elixir | elixir/lib/homework_web/schemas/users_schema.ex | n7down/web-homework | 53a65cbd852fe0abd542ff1bd29ebbf450e87d5f | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | n7down/web-homework | 53a65cbd852fe0abd542ff1bd29ebbf450e87d5f | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | n7down/web-homework | 53a65cbd852fe0abd542ff1bd29ebbf450e87d5f | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schemas.UsersSchema do
@moduledoc """
Defines the graphql schema for user.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.UsersResolver
object :user do
field(:id, non_null(:id))
field(:dob, :string)
field(:first_name, :string)
field(:last_name, :string)
... | 25.263158 | 58 | 0.655556 |
213840e52ca237bec5c782d3942f540d8ebc8971 | 7,897 | ex | Elixir | lib/sanbase_web/graphql/absinthe_before_send.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/absinthe_before_send.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/absinthe_before_send.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.AbsintheBeforeSend do
@moduledoc ~s"""
Cache & Persist API Call Data right before sending the response.
This module is responsible for persisting the API Call data and
cache the whole result of some queries right before it is send to the client.
All queries that did not raise ex... | 34.484716 | 98 | 0.691528 |
21385f5202bfe0fcc19a5388fa86c3c2496a8484 | 2,365 | ex | Elixir | installer/templates/phx_web/telemetry.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | null | null | null | installer/templates/phx_web/telemetry.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | null | null | null | installer/templates/phx_web/telemetry.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | null | null | null | defmodule <%= web_namespace %>.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000... | 32.847222 | 88 | 0.638901 |
213871dd2a89e389d29f1d2937125b5837ec0aa6 | 52 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0b0 ++ 0b1
0b10 -- 0b11
0b100..0b101
0b110 <> 0b111
| 10.4 | 14 | 0.653846 |
213887d79b1940c8cdd127a14e6270ca74951d27 | 525 | ex | Elixir | lib/wabanex_web/schema/types/user.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | lib/wabanex_web/schema/types/user.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | lib/wabanex_web/schema/types/user.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | defmodule WabanexWeb.Schema.Types.User do
use Absinthe.Schema.Notation
@desc "Logic user representation"
object :user do
field :id, non_null(:uuid4)
field :name, non_null(:string)
field :email, non_null(:string)
field :trainings, list_of(:training)
end
input_object :create_user_input do
... | 29.166667 | 70 | 0.714286 |
2138d499bfe27b365bcb83977e5dfac72e265de4 | 1,935 | ex | Elixir | clients/content/lib/google_api/content/v21/model/report_row.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/report_row.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/report_row.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.7 | 231 | 0.740052 |
213925945dfbf536360ba934775ed9bff51d37e2 | 788 | exs | Elixir | test/colorizer_test.exs | mrfishball/TicTacToeElixir | e26c55b53f118a1cddb141db3d1ee6b969b756e0 | [
"MIT"
] | null | null | null | test/colorizer_test.exs | mrfishball/TicTacToeElixir | e26c55b53f118a1cddb141db3d1ee6b969b756e0 | [
"MIT"
] | 1 | 2018-07-19T17:52:53.000Z | 2018-07-19T18:11:24.000Z | test/colorizer_test.exs | mrfishball/TicTacToeElixir | e26c55b53f118a1cddb141db3d1ee6b969b756e0 | [
"MIT"
] | null | null | null | defmodule ColorizerTest do
alias TTT.Console.Colorizer, as: Colorizer
use ExUnit.Case
test "item has been encoding to be yellow in CLI" do
item = "This is yellow."
assert Colorizer.yellow(item) == IO.ANSI.yellow <> "This is yellow." <> IO.ANSI.reset
end
test "item has been encoding to be red in CLI"... | 31.52 | 89 | 0.661168 |
21392c14e8891d41648a991de5063004864b3e5a | 1,060 | ex | Elixir | lib/ex_gherkin/token_writer.ex | WannesFransen1994/ex_gherkin | ca235dc6c51e96f7dc2d5887ac8a94bf7ee62e91 | [
"MIT"
] | 4 | 2020-07-31T09:07:16.000Z | 2020-08-31T12:12:28.000Z | lib/ex_gherkin/token_writer.ex | WannesFransen1994/ex_gherkin | ca235dc6c51e96f7dc2d5887ac8a94bf7ee62e91 | [
"MIT"
] | 1 | 2020-07-23T03:55:01.000Z | 2020-08-31T12:53:50.000Z | lib/ex_gherkin/token_writer.ex | WannesFransen1994/ex_gherkin | ca235dc6c51e96f7dc2d5887ac8a94bf7ee62e91 | [
"MIT"
] | null | null | null | defmodule ExGherkin.TokenWriter do
@moduledoc false
alias ExGherkin.{ParserContext, Token}
def write_tokens(%ParserContext{tokens: t}) do
Enum.map(t, &write_token/1) |> Enum.join("\n")
end
defp write_token(%Token{matched_type: EOF}), do: "EOF\n"
defp write_token(%Token{line: l, indent: i, matched_typ... | 35.333333 | 78 | 0.634906 |
213934573dc2eee2cf9724f400f692a7a5e45d70 | 72 | ex | Elixir | lib/news/util.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 3 | 2015-08-12T20:45:57.000Z | 2015-10-26T09:20:10.000Z | lib/news/util.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 15 | 2015-08-12T16:20:42.000Z | 2015-10-12T16:12:15.000Z | lib/news/util.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 1 | 2015-08-20T17:43:10.000Z | 2015-08-20T17:43:10.000Z | defmodule News.Util do
alias Timex.Date
alias Timex.DateFormat
end
| 12 | 24 | 0.777778 |
21394273e83298ba1b3a1bee2ddf884ef1435738 | 9,523 | exs | Elixir | test/feed_test.exs | rkstarnerd/sec_company_filings_rss_feed_parser | afc5b43587ec4bafaab952515798c318b158443e | [
"MIT"
] | null | null | null | test/feed_test.exs | rkstarnerd/sec_company_filings_rss_feed_parser | afc5b43587ec4bafaab952515798c318b158443e | [
"MIT"
] | null | null | null | test/feed_test.exs | rkstarnerd/sec_company_filings_rss_feed_parser | afc5b43587ec4bafaab952515798c318b158443e | [
"MIT"
] | null | null | null | defmodule SecCompanyFilingsRssFeedParserFeedTest do
use ExUnit.Case
def feed_xml do
"""
<?xml version="1.0" encoding="ISO-8859-1" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
<author>
<email>webmaster@sec.gov</email>
<name>Webmaster</name>
</author>
<compa... | 52.61326 | 231 | 0.609367 |
21397cbc8b66a16ab02d131390de3be81d0aa757 | 200 | exs | Elixir | config/test.exs | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | null | null | null | config/test.exs | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | 1 | 2019-02-08T01:08:31.000Z | 2019-02-20T00:24:51.000Z | config/test.exs | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :logger, level: :warn
config :new_relic_agent,
harvest_enabled: false,
app_name: "ElixirAgentTest",
automatic_attributes: [test_attribute: "test_value"],
log: "memory"
| 20 | 55 | 0.75 |
21397e4110e61b82b1aba37300ef8017fe34292e | 672 | ex | Elixir | lib/bolt_sips/internals/pack_stream/decoder.ex | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | 242 | 2016-09-09T22:32:00.000Z | 2022-02-20T18:50:29.000Z | lib/bolt_sips/internals/pack_stream/decoder.ex | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | 100 | 2016-10-18T04:19:09.000Z | 2021-11-15T19:14:47.000Z | lib/bolt_sips/internals/pack_stream/decoder.ex | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | 51 | 2016-10-31T20:05:52.000Z | 2022-01-20T11:45:49.000Z | defmodule Bolt.Sips.Internals.PackStream.Decoder do
@moduledoc false
_moduledoc = """
This module is responsible for dispatching decoding amongst decoder depending on the
used bolt version.
Most of the documentation regarding Bolt binary format can be found in
`Bolt.Sips.Internals.PackStream.EncoderV1` and... | 32 | 92 | 0.784226 |
2139b154fd4549f3014f1bb5646f45a9b9429990 | 5,653 | ex | Elixir | lib/rdf/inspect.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | lib/rdf/inspect.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | lib/rdf/inspect.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 2 | 2018-01-19T15:48:27.000Z | 2020-03-01T00:29:35.000Z | defimpl Inspect, for: RDF.IRI do
def inspect(%RDF.IRI{value: value}, _opts) do
"~I<#{value}>"
end
end
defimpl Inspect, for: RDF.BlankNode do
def inspect(%RDF.BlankNode{value: value}, _opts) do
"~B<#{value}>"
end
end
defimpl Inspect, for: RDF.Literal do
def inspect(literal, _opts) do
"%RDF.Litera... | 28.695431 | 128 | 0.612595 |
2139e9049828bf8fbd81c19b9f9ed313b8e8cbbb | 1,393 | exs | Elixir | test/unleash/strategy/remote_address_test.exs | duffelhq/unleashed_ex | a0009b1528fd14f517225c62544fb927cc5b684f | [
"MIT"
] | null | null | null | test/unleash/strategy/remote_address_test.exs | duffelhq/unleashed_ex | a0009b1528fd14f517225c62544fb927cc5b684f | [
"MIT"
] | 2 | 2021-11-23T11:17:00.000Z | 2022-03-01T13:31:22.000Z | test/unleash/strategy/remote_address_test.exs | duffelhq/unleashed_ex | a0009b1528fd14f517225c62544fb927cc5b684f | [
"MIT"
] | null | null | null | defmodule Unleash.Strategy.RemoteAddressTest do
use ExUnit.Case
use ExUnitProperties
alias Unleash.Strategy.RemoteAddress
describe "enabled?" do
property "returns true if an IP is in the list" do
check all list <-
map(nonempty(list_of(string(:alphanumeric, min_length: 1))), fn list... | 35.717949 | 95 | 0.56425 |
2139f51dbb85e6b0db9745e194a29302d1ff67ae | 3,589 | ex | Elixir | server/lib/idai_field_server_web/router.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/router.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/router.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | defmodule IdaiFieldServerWeb.Router do
use IdaiFieldServerWeb, :router
import IdaiFieldServerWeb.UserAuth
pipeline :browser do
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Phoenix.json_library()
plug :accepts, ["html"]
plug :fetch_sess... | 39.01087 | 102 | 0.736138 |
213a263c8d8e1336e2b2b2fcc8f63b7d9cd7ecd5 | 360 | exs | Elixir | priv/repo/migrations/20161210061457_create_stage.exs | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | priv/repo/migrations/20161210061457_create_stage.exs | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | priv/repo/migrations/20161210061457_create_stage.exs | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | defmodule Hone.Repo.Migrations.CreateStage do
use Ecto.Migration
def change do
create table(:stages) do
add :name, :string
add :order, :integer, default: 0
add :board_id, references(:boards, on_delete: :delete_all)
timestamps
end
create unique_index(:stages, [:name])
creat... | 21.176471 | 64 | 0.666667 |
213a35324daeb7a28c4823322c85782b3200c27b | 939 | exs | Elixir | mix.exs | fuelen/bamboo_fallback | 48fad0f2fddafa39aac44701acf9a1d478bdb737 | [
"Apache-2.0"
] | 10 | 2018-12-30T21:57:32.000Z | 2022-02-07T13:34:42.000Z | mix.exs | fuelen/bamboo_fallback | 48fad0f2fddafa39aac44701acf9a1d478bdb737 | [
"Apache-2.0"
] | 4 | 2019-02-26T17:26:26.000Z | 2021-04-28T15:12:56.000Z | mix.exs | fuelen/bamboo_fallback | 48fad0f2fddafa39aac44701acf9a1d478bdb737 | [
"Apache-2.0"
] | 1 | 2021-04-28T06:45:23.000Z | 2021-04-28T06:45:23.000Z | defmodule Bamboo.FallbackAdapter.MixProject do
use Mix.Project
def project do
[
app: :bamboo_fallback,
version: "2.0.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end
# Run "mix help c... | 19.978723 | 112 | 0.57508 |
213a812bbee3d885b822fe05d07a2a3c34155bc0 | 2,166 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/jwt_location.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/jwt_location.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/jwt_location.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... | 40.867925 | 465 | 0.725762 |
213a8314888637e2811aa876eda98f33bd958a36 | 305 | exs | Elixir | test/support/band.exs | expert360/dal | 0a95353fa7d98a52061b4a713d762d32746774dc | [
"Apache-2.0"
] | 5 | 2018-07-28T07:29:56.000Z | 2020-01-12T04:50:03.000Z | test/support/band.exs | expert360/dal | 0a95353fa7d98a52061b4a713d762d32746774dc | [
"Apache-2.0"
] | 22 | 2018-07-22T03:37:26.000Z | 2019-06-30T22:35:23.000Z | test/support/band.exs | expert360/dal | 0a95353fa7d98a52061b4a713d762d32746774dc | [
"Apache-2.0"
] | 2 | 2018-07-28T01:13:21.000Z | 2018-08-07T22:19:36.000Z | defmodule DALTest.Band do
use Ecto.Schema
schema "bands" do
field :name, :string
field :website, :string
field :rating, :integer
belongs_to :genre, DALTest.Genre
has_many :albums, DALTest.Album
end
defimpl DAL.Repo.Discoverable do
def repo(_), do: DALTest.Repo
end
end
| 19.0625 | 36 | 0.688525 |
213a991f4ddc7d831462f24e37c470790e3af9fb | 2,081 | exs | Elixir | implementations/elixir/ockam/ockam_node_web/mix.exs | iakev/ockam | 24f4b29c5af609e7d173838ee115456325666188 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_node_web/mix.exs | iakev/ockam | 24f4b29c5af609e7d173838ee115456325666188 | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam_node_web/mix.exs | iakev/ockam | 24f4b29c5af609e7d173838ee115456325666188 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Node.Web.MixProject do
use Mix.Project
@version "0.10.1"
@elixir_requirement "~> 1.10"
@ockam_github_repo "https://github.com/ockam-network/ockam"
@ockam_github_repo_path "implementations/elixir/ockam/ockam_node_web"
def project do
[
app: :ockam_node_web,
version: @versio... | 23.647727 | 93 | 0.567035 |
213ac1537950743de84ffa3b2f3bafb532b85967 | 976 | ex | Elixir | lib/elm_base.ex | chasm/elm_base | 1366d68ec827de3893fc61d9a5f268ee619b9d9a | [
"MIT"
] | 4 | 2016-07-19T18:11:07.000Z | 2016-08-02T00:36:39.000Z | lib/elm_base.ex | chasm/elm_base | 1366d68ec827de3893fc61d9a5f268ee619b9d9a | [
"MIT"
] | 1 | 2018-12-26T09:06:41.000Z | 2018-12-26T09:06:41.000Z | lib/elm_base.ex | chasm/elm_base | 1366d68ec827de3893fc61d9a5f268ee619b9d9a | [
"MIT"
] | null | null | null | defmodule ElmBase 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, warn: false
children = [
# Start the endpoint when the application starts
supervisor(ElmBase.E... | 31.483871 | 71 | 0.711066 |
213acf11a616821573323d1c4e43eee8034ada69 | 363 | ex | Elixir | lib/aws.ex | samble/exlastic-load-balancer | 55d5e85657567896f9ea1471f9b3f053d8dacc05 | [
"MIT"
] | 2 | 2016-06-30T00:19:48.000Z | 2021-02-14T18:05:09.000Z | lib/aws.ex | samble/exlastic-load-balancer | 55d5e85657567896f9ea1471f9b3f053d8dacc05 | [
"MIT"
] | null | null | null | lib/aws.ex | samble/exlastic-load-balancer | 55d5e85657567896f9ea1471f9b3f053d8dacc05 | [
"MIT"
] | 1 | 2016-06-28T13:46:16.000Z | 2016-06-28T13:46:16.000Z | defmodule AWS do
@moduledoc """
"""
@doc """
"""
@spec get_cpu_metrics(String) :: Integer
def get_cpu_metrics(instance_id) do
IO.puts("asking erlcloud for stats for #{instance_id}")
:erlcloud_mon.get_metric_statistics(
'CPUUtilization',
{{2016, 06, 29},{0, 0, 0}},
'2016-06-29T00:3... | 19.105263 | 59 | 0.61157 |
213ad49a74149723594760e3c33a9b6d567a3e74 | 205 | exs | Elixir | community/betterdev/test/betterdev/web/controllers/page_controller_test.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 79 | 2017-07-03T13:04:08.000Z | 2022-02-11T13:59:37.000Z | community/betterdev/test/betterdev/web/controllers/page_controller_test.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 16 | 2017-07-09T03:16:27.000Z | 2022-01-14T14:29:57.000Z | community/betterdev/test/betterdev/web/controllers/page_controller_test.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 10 | 2017-07-09T02:58:59.000Z | 2021-09-14T08:01:02.000Z | defmodule Betterdev.Web.PageControllerTest do
use Betterdev.Web.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.777778 | 60 | 0.682927 |
213af22bebd497ce4d379ab48467a0ac83f1df14 | 1,895 | ex | Elixir | lib/absinthe/phase/document/validation/no_undefined_variables.ex | se-apc/absinthe | a95f8d7658091f99e2ebf5af659bfcfaecc97423 | [
"MIT"
] | null | null | null | lib/absinthe/phase/document/validation/no_undefined_variables.ex | se-apc/absinthe | a95f8d7658091f99e2ebf5af659bfcfaecc97423 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/phase/document/validation/no_undefined_variables.ex | se-apc/absinthe | a95f8d7658091f99e2ebf5af659bfcfaecc97423 | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.NoUndefinedVariables do
@moduledoc false
# Validates document to ensure that the only variables that are used in a
# document are defined on the operation.
alias Absinthe.{Blueprint, Phase}
use Absinthe.Phase
use Absinthe.Phase.Validation
@doc """
Run the... | 25.958904 | 96 | 0.621636 |
213aff726c34f0ea0ea8114708f1022ca26575dd | 604 | exs | Elixir | day20/mix.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | 10 | 2021-12-01T08:49:00.000Z | 2022-03-24T13:24:50.000Z | day20/mix.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | day20/mix.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | 1 | 2021-12-16T07:09:11.000Z | 2021-12-16T07:09:11.000Z | defmodule Day20.MixProject do
use Mix.Project
def project do
[
app: :day20,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 20.133333 | 87 | 0.56457 |
213b01087820e05073d5d5a57e80ae5e980581f0 | 79 | exs | Elixir | test/test_helper.exs | haakonst/openid_connect | e8dfd0033bb3420c1af43653406ccd870900032e | [
"MIT"
] | 48 | 2017-08-27T11:16:42.000Z | 2022-02-25T22:51:36.000Z | test/test_helper.exs | haakonst/openid_connect | e8dfd0033bb3420c1af43653406ccd870900032e | [
"MIT"
] | 26 | 2017-10-17T14:56:17.000Z | 2022-02-17T10:15:31.000Z | test/test_helper.exs | haakonst/openid_connect | e8dfd0033bb3420c1af43653406ccd870900032e | [
"MIT"
] | 33 | 2018-05-16T12:32:53.000Z | 2021-12-08T22:41:18.000Z | Mox.defmock(OpenIDConnect.HTTPClientMock, for: HTTPoison.Base)
ExUnit.start()
| 19.75 | 62 | 0.810127 |
213b05cd03957a20b1c42b58d270309612bf8ae9 | 1,501 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disks_add_resource_policies_request.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/disks_add_resource_policies_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disks_add_resource_policies_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.93617 | 115 | 0.748168 |
213b1b08261e69f2bb327e843b96f13a8dcb080b | 2,121 | exs | Elixir | test/pow_assent/ecto/user_identities/schema_test.exs | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 193 | 2019-10-30T00:58:21.000Z | 2022-03-09T20:26:37.000Z | test/pow_assent/ecto/user_identities/schema_test.exs | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 82 | 2019-10-29T20:19:38.000Z | 2022-03-22T04:09:27.000Z | test/pow_assent/ecto/user_identities/schema_test.exs | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 28 | 2019-10-31T12:38:10.000Z | 2021-11-01T18:05:23.000Z | module_raised_with =
try do
defmodule PowAssent.Test.UserIdentities.InvalidUserIdentity do
use PowAssent.Ecto.UserIdentities.Schema
end
rescue
e in PowAssent.Config.ConfigError -> e.message
end
defmodule PowAssent.Ecto.UserIdentities.SchemaTest do
use PowAssent.Test.Ecto.TestCase
doctest Po... | 31.191176 | 152 | 0.679868 |
213b1ceab1675d599e7dbc80ff08a90ca77d75af | 851 | exs | Elixir | test/test_helper.exs | sakshamgupta05/machinery | 195d3bf5b818291fc681a52e6dbf16582017cbe9 | [
"Apache-2.0"
] | 1 | 2020-06-12T09:09:25.000Z | 2020-06-12T09:09:25.000Z | test/test_helper.exs | sakshamgupta05/machinery | 195d3bf5b818291fc681a52e6dbf16582017cbe9 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | sakshamgupta05/machinery | 195d3bf5b818291fc681a52e6dbf16582017cbe9 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
# Load support modules
Code.load_file("test/support/test_struct.exs")
Code.load_file("test/support/test_default_field_struct.exs")
Code.load_file("test/support/test_state_machine.exs")
Code.load_file("test/support/test_state_machine_with_guard.exs")
Code.load_file("test/support/test_state_machine_defaul... | 30.392857 | 67 | 0.795535 |
213b4a614b1c0ce2b9054c6d1167713396e6fc13 | 1,856 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/key_value_format.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/key_value_format.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/key_value_format.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.12 | 216 | 0.738147 |
213b5824ca784aa43f31af3ad0b516c7952743b3 | 385 | exs | Elixir | config/config.exs | manojsamanta/stripe-bare-bones-plug | 7e36740cbf26e0e4a16efbcded5fc8988c3701a0 | [
"MIT"
] | null | null | null | config/config.exs | manojsamanta/stripe-bare-bones-plug | 7e36740cbf26e0e4a16efbcded5fc8988c3701a0 | [
"MIT"
] | null | null | null | config/config.exs | manojsamanta/stripe-bare-bones-plug | 7e36740cbf26e0e4a16efbcded5fc8988c3701a0 | [
"MIT"
] | null | null | null | use Mix.Config
config :unsub, Unsub.Mailer,
adapter: Bamboo.SMTPAdapter,
server: "smtp.gmail.com",
port: 587,
username: System.get_env("SMTP_USERNAME"),
password: System.get_env("SMTP_PASSWORD"),
tls: :if_available,
allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"],
ssl: false,
retries: 1
confi... | 25.666667 | 69 | 0.719481 |
213b61aa004399c92a8417f4e175545666c50dfb | 2,212 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/security_policy_rule_matcher.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/security_policy_rule_matcher.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/security_policy_rule_matcher.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 44.24 | 302 | 0.767631 |
213bb147bfa0e211f51dfb941d7e5b51819f6b66 | 65 | ex | Elixir | web/views/page_view.ex | utkr98jais/phoenix-battleship | 53b43d44a69c5acb4b452b793cce64980a0302df | [
"MIT"
] | 569 | 2016-04-21T09:25:49.000Z | 2022-03-13T22:56:18.000Z | web/views/page_view.ex | utkr98jais/phoenix-battleship | 53b43d44a69c5acb4b452b793cce64980a0302df | [
"MIT"
] | 10 | 2016-04-22T05:33:43.000Z | 2018-04-19T21:51:27.000Z | web/views/page_view.ex | utkr98jais/phoenix-battleship | 53b43d44a69c5acb4b452b793cce64980a0302df | [
"MIT"
] | 80 | 2016-04-21T18:53:25.000Z | 2020-12-01T13:32:17.000Z | defmodule Battleship.PageView do
use Battleship.Web, :view
end
| 16.25 | 32 | 0.8 |
213bb708cc0a074293d408c72eaaa76119496218 | 1,310 | ex | Elixir | lib/inmytime/timebot/timebot.ex | r-frederick/inmytime | c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929 | [
"MIT"
] | 1 | 2018-11-16T14:30:41.000Z | 2018-11-16T14:30:41.000Z | lib/inmytime/timebot/timebot.ex | r-frederick/inmytime | c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929 | [
"MIT"
] | 9 | 2018-05-17T14:02:04.000Z | 2018-10-03T21:57:18.000Z | lib/inmytime/timebot/timebot.ex | r-frederick/inmytime | c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929 | [
"MIT"
] | null | null | null | defmodule Inmytime.Timebot do
def digest(timestamp, timezone) do
case Integer.parse(timestamp) do
{_, ""} ->
parsed_time =
timestamp
|> String.replace("-", "") # Get 'absolute' value of timestamp string
|> String.slice(0, 11) # Truncate timestamp as Timex might have iss... | 26.734694 | 101 | 0.572519 |
213bc0052c16462488c7cb1deba7a81a6c11e9fd | 1,918 | exs | Elixir | test/pool/cases/run.exs | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | test/pool/cases/run.exs | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | test/pool/cases/run.exs | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Pool.RunTest do
use ExUnit.Case, async: true
alias Ecto.TestPool
@timeout :infinity
setup context do
case = context[:case]
test = context[:test]
{:ok, [pool: Module.concat(case, test)]}
end
test "worker cleans up the connection when it crashes", context do
pool = context[:... | 27.797101 | 68 | 0.61366 |
213bda487435fac9603925a25df65e0dc33c8062 | 3,292 | ex | Elixir | lib/still/compiler/incremental/node.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 202 | 2021-01-13T15:45:17.000Z | 2022-03-22T01:26:27.000Z | lib/still/compiler/incremental/node.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 55 | 2021-01-26T14:11:34.000Z | 2022-03-22T22:34:37.000Z | lib/still/compiler/incremental/node.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 10 | 2021-02-04T21:14:41.000Z | 2022-03-20T10:12:59.000Z | defmodule Still.Compiler.Incremental.Node do
@moduledoc """
An incremental node represents a file that is processed individually.
Incremental nodes attempt to compile/render a file synchronously. This process
can take a long time, which is usually fine, but the default timeout can be changed
in the`:compilat... | 26.336 | 90 | 0.676488 |
213bdd56aa2ef5e2c6767cab30ff0762307bdf19 | 1,139 | ex | Elixir | test/process_managers/support/resume/resume_process_manager.ex | Aleksion/commanded | 266587f7786d27b390a355991cbb792944ac0885 | [
"MIT"
] | null | null | null | test/process_managers/support/resume/resume_process_manager.ex | Aleksion/commanded | 266587f7786d27b390a355991cbb792944ac0885 | [
"MIT"
] | null | null | null | test/process_managers/support/resume/resume_process_manager.ex | Aleksion/commanded | 266587f7786d27b390a355991cbb792944ac0885 | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.ResumeProcessManager do
@moduledoc false
use Commanded.ProcessManagers.ProcessManager,
name: "resume-process-manager",
router: ResumeRouter
defstruct [
status_history: []
]
alias Commanded.ProcessManagers.ResumeAggregate.Events.{ProcessStarted,ProcessResumed}
... | 33.5 | 112 | 0.755926 |
213be8bd2ae3e6618e307e5b08287cb5c598e75c | 4,089 | ex | Elixir | plugins/ucc_admin/lib/ucc_admin_web/view/utils.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_admin/lib/ucc_admin_web/view/utils.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_admin/lib/ucc_admin_web/view/utils.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccAdminWeb.View.Utils do
import UcxUccWeb.Gettext
import Phoenix.HTML.{Tag, Form}, warn: false
def collapsable_section(title, fun) do
content_tag :div, class: "section section-collapsed" do
[
content_tag :div, class: "section-title" do
[
content_tag :div, class:... | 26.901316 | 87 | 0.549034 |
213c0304665bb55ab2692182f21f33209aef3884 | 2,296 | ex | Elixir | lib/exnoops/wordbot.ex | bfcarpio/exNoops-mirror | e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5 | [
"MIT"
] | null | null | null | lib/exnoops/wordbot.ex | bfcarpio/exNoops-mirror | e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5 | [
"MIT"
] | null | null | null | lib/exnoops/wordbot.ex | bfcarpio/exNoops-mirror | e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5 | [
"MIT"
] | null | null | null | defmodule Exnoops.Wordbot do
@moduledoc """
Module to interact with Github's Noop: Wordbot
See the [official `noop` documentation](https://noopschallenge.com/challenges/wordbot) for API information including the accepted parameters
"""
require Logger
import Exnoops.API
@noop "wordbot"
@doc """
Que... | 21.259259 | 142 | 0.487805 |
213c2f14c3dc15fec9b1c12e31b8064eb888ed13 | 1,968 | exs | Elixir | mix.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | mix.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | mix.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | defmodule StoreCard.MixProject do
use Mix.Project
def project do
[
app: :store_card,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases()... | 28.521739 | 84 | 0.575203 |
213c33a047ddf61974b2a0663c836a56254f4097 | 2,439 | ex | Elixir | lib/worldly/locales.ex | martide/worldly | be03734da41fa40a4a6c8963b33be4ccf5b10dcc | [
"Apache-2.0"
] | null | null | null | lib/worldly/locales.ex | martide/worldly | be03734da41fa40a4a6c8963b33be4ccf5b10dcc | [
"Apache-2.0"
] | null | null | null | lib/worldly/locales.ex | martide/worldly | be03734da41fa40a4a6c8963b33be4ccf5b10dcc | [
"Apache-2.0"
] | 1 | 2018-09-27T12:07:29.000Z | 2018-09-27T12:07:29.000Z | defmodule Worldly.Locale do
alias Worldly.Country
alias Worldly.Region
def locales_folder_path do
file_path = Application.get_env(:worldly, :data_path) |> Path.join("locale")
if File.exists?(file_path) do
file_path
else
Path.join([Application.app_dir(:worldly, "priv"), "data/locale"])
... | 35.347826 | 126 | 0.690037 |
213c6a8b2f28f072741a47a6d98629a1ee6885f4 | 1,763 | exs | Elixir | installer/templates/new/config/dev.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/new/config/dev.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/new/config/dev.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | use Mix.Config
# 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. For example, we use it
# with brunch.io to recompile .js and .css sources.
#
# In order to use HTTPS in development, a self-signed... | 36.729167 | 170 | 0.678956 |
213c790456ad56ab4d0bc30a6274c66db96d4224 | 617 | ex | Elixir | lib/book/password.ex | chayelheinsen/ElixirBook | 40797c0d84c101ae331100a4b8467df95fa9efd6 | [
"MIT"
] | null | null | null | lib/book/password.ex | chayelheinsen/ElixirBook | 40797c0d84c101ae331100a4b8467df95fa9efd6 | [
"MIT"
] | null | null | null | lib/book/password.ex | chayelheinsen/ElixirBook | 40797c0d84c101ae331100a4b8467df95fa9efd6 | [
"MIT"
] | null | null | null | defmodule Book.Password do
alias Book.Repo
import Ecto.Changeset, only: [put_change: 3]
import Comeonin.Bcrypt, only: [hashpwsalt: 1]
@doc """
Generates a password for the user changeset and stores it to the changeset as encrypted_password.
"""
def generate_password(changeset) do
put_change(changes... | 28.045455 | 101 | 0.726094 |
213c8a042c500eccb840489919bc0e92c5ebde72 | 1,688 | exs | Elixir | mix.exs | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | mix.exs | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | mix.exs | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | defmodule Urepo.MixProject do
use Mix.Project
def project do
[
app: :urepo,
version: "0.4.0",
elixir: "~> 1.10",
elixirc_paths: paths(Mix.env()),
start_permanent: Mix.env() == :prod,
preferred_cli_env: [
"coveralls.html": :test
],
test_coverage: [tool: Ex... | 22.810811 | 69 | 0.494076 |
213c9dc2c09907b0c1f903b4be13bda74d63a349 | 10,083 | ex | Elixir | lib/aws/generated/honeycode.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/honeycode.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/honeycode.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Honeycode do
@moduledoc """
Amazon Honeycode is a fully managed service that allows you to quickly build
mobile and web apps for teams—without programming.
Build Honeycode apps for managi... | 25.019851 | 97 | 0.629178 |
213ca99cfdb1371d8617525818fbcb6c412b011f | 852 | ex | Elixir | lib/oli_web/live/community_live/members_table_model.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/live/community_live/members_table_model.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/live/community_live/members_table_model.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.CommunityLive.MembersTableModel do
use Surface.LiveComponent
alias OliWeb.Common.Table.{ColumnSpec, SortableTableModel}
def new(members) do
SortableTableModel.new(
rows: members,
column_specs: [
%ColumnSpec{
name: :name,
label: "Name"
},
... | 20.780488 | 95 | 0.561033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.