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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21951446e983b781a9bacfc118708cf1f2f727c9 | 6,450 | exs | Elixir | test/smoke_web/controllers/metrics_controller_test.exs | Baradoy/smoke | 1e12bd76d2af6ca67db9d330625c6f3652778dee | [
"Apache-2.0"
] | 1 | 2019-10-03T16:54:48.000Z | 2019-10-03T16:54:48.000Z | test/smoke_web/controllers/metrics_controller_test.exs | Baradoy/smoke | 1e12bd76d2af6ca67db9d330625c6f3652778dee | [
"Apache-2.0"
] | 3 | 2019-09-26T22:55:13.000Z | 2021-05-10T02:17:12.000Z | test/smoke_web/controllers/metrics_controller_test.exs | Baradoy/smoke | 1e12bd76d2af6ca67db9d330625c6f3652778dee | [
"Apache-2.0"
] | 1 | 2019-07-22T16:40:01.000Z | 2019-07-22T16:40:01.000Z | defmodule SmokeWeb.MetricsControllerTest do
use SmokeWeb.ConnCase
@event_name [:smoke, :example, :done]
@metrics [
:counter,
:sum,
:last_value,
:statistics,
:distribution,
:max,
:mean,
:median,
:min,
:mode,
:p95,
:p99,
:variance
]
setup do
fire_event(... | 29.452055 | 92 | 0.504341 |
219540ad10758713be5768488471b24447674224 | 4,907 | exs | Elixir | lib/ex_unit/test/ex_unit/callbacks_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/ex_unit/test/ex_unit/callbacks_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/callbacks_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | Code.require_file "../test_helper.exs", __DIR__
defmodule ExUnit.CallbacksTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "callbacks run custom code with context" do
defmodule CallbacksTest do
use ExUnit.Case
setup_all do
{:ok, [context: :setup_all]}
end
setup do
... | 19.243137 | 73 | 0.553903 |
2195463b244b829de8c63610ab3718e3810f9822 | 1,566 | ex | Elixir | lib/grizzly/zwave/commands/node_provisioning_list_iteration_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/node_provisioning_list_iteration_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/node_provisioning_list_iteration_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.NodeProvisioningListIterationGet do
@moduledoc """
Module for working with the `NODE_PROVISIONING_LIST_ITERATION_GET` command
This command is used to read the entire the provisioning list.
Params:
- `:seq_number` - the network command sequence number (required)
- `:re... | 27 | 85 | 0.719029 |
219552343d144d45382e2b11f5b037501c60f97d | 1,609 | exs | Elixir | mix.exs | matoakley/elixir-nodejs | 825e1b9af7fbe149707f8d609cf1999a532c6cd3 | [
"MIT"
] | null | null | null | mix.exs | matoakley/elixir-nodejs | 825e1b9af7fbe149707f8d609cf1999a532c6cd3 | [
"MIT"
] | null | null | null | mix.exs | matoakley/elixir-nodejs | 825e1b9af7fbe149707f8d609cf1999a532c6cd3 | [
"MIT"
] | null | null | null | defmodule NodeJS.MixProject do
use Mix.Project
def project do
[
app: :nodejs,
version: "1.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferre... | 22.347222 | 69 | 0.539466 |
219558b36a7e010e98a63c97f3d407cc3313fc84 | 1,859 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.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... | 37.18 | 179 | 0.745562 |
219560870b9fd43800bd4b2ed6f5bfdc82c7419a | 461 | ex | Elixir | web/router.ex | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | 6 | 2016-03-31T21:23:21.000Z | 2020-09-15T01:36:17.000Z | web/router.ex | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | null | null | null | web/router.ex | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | null | null | null | defmodule Livex.Router do
use Livex.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", Livex do
pipe_through ... | 16.464286 | 57 | 0.668113 |
2195757d1abe58b4d8909486e5c76b297b1ada95 | 221 | ex | Elixir | lib/petrovich/stores/name_store.ex | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 38 | 2017-06-11T14:01:56.000Z | 2021-11-27T15:54:47.000Z | lib/petrovich/stores/name_store.ex | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 33 | 2017-06-11T11:17:38.000Z | 2021-06-25T15:22:35.000Z | lib/petrovich/stores/name_store.ex | atlas-forks/petrovich_elixir | 793194a69d7b151321a80de8a449cf5adf1882ed | [
"MIT"
] | 2 | 2019-03-12T11:16:10.000Z | 2019-09-21T15:12:36.000Z | defmodule Petrovich.NameStore do
@moduledoc """
This module stores different rules on how to inflect values.
It stores rules for first, middle and last names.
"""
use Petrovich.Store, setting: :rules_path
end
| 22.1 | 62 | 0.742081 |
21957e0628be4f817358489d7c2c3a877d4c1b5f | 271 | ex | Elixir | lib/sengo_web/views/layout_view.ex | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | lib/sengo_web/views/layout_view.ex | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | lib/sengo_web/views/layout_view.ex | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | defmodule SengoWeb.LayoutView do
use SengoWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end
| 33.875 | 72 | 0.771218 |
219599083de7075d8b261bd64d66a6fdf8ee5d8b | 1,307 | exs | Elixir | test/uiar/group/sort_test.exs | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | 7 | 2019-12-16T02:43:06.000Z | 2022-02-08T21:49:54.000Z | test/uiar/group/sort_test.exs | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | null | null | null | test/uiar/group/sort_test.exs | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | 1 | 2020-02-24T17:10:22.000Z | 2020-02-24T17:10:22.000Z | defmodule Uiar.Group.SortTest do
use ExUnit.Case
alias Uiar.Group.Sort
test "alphabetical within the same type" do
line1 = {:alias, [line: 1], [{:__aliases__, [line: 1], [:Foo]}]}
line2 = {:alias, [line: 2], [{:__aliases__, [line: 2], [:Bar]}]}
assert Sort.eval([line1, line2]) == [line2, line1]
e... | 35.324324 | 96 | 0.537873 |
21959d479bf49dda7ade3d53db0fe101ed8b69cb | 110,858 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.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... | 49.44603 | 965 | 0.635886 |
2195a73877e5e969babaec553f186dfca538caf4 | 2,452 | exs | Elixir | test/cog/chat/hipchat/templates/embedded/trigger_update_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/hipchat/templates/embedded/trigger_update_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/hipchat/templates/embedded/trigger_update_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.HipChat.Templates.Embedded.TriggerUpdateTest do
use Cog.TemplateCase
test "trigger-update template with one input" do
data = %{"results" => [%{"id" => "abc123",
"name" => "test_trigger",
"description" => "Tests things!",
... | 43.017544 | 97 | 0.470636 |
2195d66367314afb7a0cb322fa8284711a5dbb77 | 187 | exs | Elixir | test/fixtures/parser/drop_table_and_remove_column.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 23 | 2021-10-29T19:58:35.000Z | 2021-11-13T21:42:45.000Z | test/fixtures/parser/drop_table_and_remove_column.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 1 | 2022-02-07T12:15:16.000Z | 2022-02-07T12:15:16.000Z | test/fixtures/parser/drop_table_and_remove_column.exs | surgeventures/strong_migrations | 3c82e34a6e7a372c6de17ba7a0b07da7664baa26 | [
"MIT"
] | 3 | 2021-10-31T02:14:10.000Z | 2021-11-09T08:07:22.000Z | defmodule DropTableAndRemoveColumn do
@moduledoc false
use Ecto.Migration
def change do
drop(table(:users))
alter table(:posts) do
remove(:title)
end
end
end
| 13.357143 | 37 | 0.679144 |
2195dbc3737efc140fbc99aa2687037368e647e9 | 1,819 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/event_tags_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/event_tags_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/event_tags_list_response.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 ... | 36.38 | 188 | 0.742716 |
2195e252644ce0c1bcf26d5cbb115b3d680a5f20 | 727 | ex | Elixir | lib/bn/fq12.ex | ayrat555/bn | 68e1504e4e1524ffbc4a6277829e8ada7108cb9a | [
"MIT"
] | 1 | 2018-10-27T20:33:36.000Z | 2018-10-27T20:33:36.000Z | lib/bn/fq12.ex | ayrat555/bn | 68e1504e4e1524ffbc4a6277829e8ada7108cb9a | [
"MIT"
] | 2 | 2022-02-28T13:20:14.000Z | 2022-03-28T13:23:29.000Z | lib/bn/fq12.ex | ayrat555/bn | 68e1504e4e1524ffbc4a6277829e8ada7108cb9a | [
"MIT"
] | 1 | 2019-05-02T02:29:37.000Z | 2019-05-02T02:29:37.000Z | defmodule BN.FQ12 do
alias BN.FQP
@modulus_coef [82, 0, 0, 0, 0, 0, -18, 0, 0, 0, 0, 0]
@spec new([integer()]) :: FQP.t() | no_return
def new(coef) do
if Enum.count(coef) != 12,
do: raise(ArgumentError, message: "FQ12 should have dimension of 12")
FQP.new(coef, @modulus_coef)
end
@spec one... | 21.382353 | 75 | 0.620358 |
2195f310a0794dc82e2c547c4f7c68138d8654aa | 334 | ex | Elixir | dingen/lib/dingen/tenant.ex | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/lib/dingen/tenant.ex | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/lib/dingen/tenant.ex | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | defmodule Dingen.Tenant do
use Ecto.Schema
import Ecto.Changeset
alias __MODULE__
schema "tenant" do
field :host, :string
timestamps()
end
@doc false
def changeset(%Tenant{} = tenant, attrs) do
tenant
|> cast(attrs, [:host])
|> validate_required([:host])
|> unique_constraint(:ho... | 16.7 | 45 | 0.652695 |
2195f65baab7aedca9c51935d1421de086590ca2 | 645 | ex | Elixir | lib/helpers/metadata.ex | corka149/burrito | fa7d9af37b83e59a6429c19c6645ca8da170a86f | [
"MIT"
] | 1 | 2021-12-07T18:11:14.000Z | 2021-12-07T18:11:14.000Z | lib/helpers/metadata.ex | wojtekmach/burrito | 2a3baf280a69b9fc2692d55386caca2c86e2c358 | [
"MIT"
] | null | null | null | lib/helpers/metadata.ex | wojtekmach/burrito | 2a3baf280a69b9fc2692d55386caca2c86e2c358 | [
"MIT"
] | null | null | null | defmodule Burrito.Helpers.Metadata do
require Logger
def run(self_path, args, release) do
Logger.info("Generating wrapper metadata file...")
{zig_version_string, 0} = System.cmd("zig", ["version"], cd: self_path)
metadata_map = %{
app_name: Atom.to_string(release.name),
zig_version: zig_v... | 28.043478 | 75 | 0.686822 |
2195fb4d35ae285a886fdd6cadba446fca3a1744 | 119 | ex | Elixir | lib/list.ex | narrowtux/loppers | 1dba8cece046e7ac1883bec8c663ce46e68a86d4 | [
"MIT"
] | 4 | 2018-12-07T10:52:37.000Z | 2021-01-22T21:31:10.000Z | lib/list.ex | narrowtux/loppers | 1dba8cece046e7ac1883bec8c663ce46e68a86d4 | [
"MIT"
] | 11 | 2017-11-29T12:01:05.000Z | 2020-03-04T09:42:32.000Z | lib/list.ex | narrowtux/loppers | 1dba8cece046e7ac1883bec8c663ce46e68a86d4 | [
"MIT"
] | 2 | 2017-11-29T12:00:37.000Z | 2019-04-16T12:43:04.000Z | defmodule Loppers.List do
def in_list?(ast, list) do
Enum.any?(list, &Loppers.Match.matches?(ast, &1))
end
end
| 19.833333 | 53 | 0.680672 |
2195fbcaeb2949441dd805181ea50fa00e745959 | 1,447 | ex | Elixir | apps/xomg_tasks/lib/utils.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/xomg_tasks/lib/utils.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/xomg_tasks/lib/utils.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # 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... | 26.796296 | 75 | 0.700069 |
2196349eea100b42ba304632f279a9af4567dd2a | 10,145 | ex | Elixir | lib/aws/autoscaling.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/autoscaling.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/autoscaling.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.AutoScaling do
@moduledoc """
With Application Auto Scaling, you can configure automatic scaling for your
scalable AWS resources. You can use Application Auto Scaling to accomplish
the follo... | 39.784314 | 103 | 0.735338 |
21964b9ff8521ba0039daa71bd82a9e49688997d | 1,582 | ex | Elixir | lib/mix/tasks/torch.install.ex | brunvez/torch | 011569a7a06003729febb96cbcf58b915337046a | [
"MIT"
] | null | null | null | lib/mix/tasks/torch.install.ex | brunvez/torch | 011569a7a06003729febb96cbcf58b915337046a | [
"MIT"
] | null | null | null | lib/mix/tasks/torch.install.ex | brunvez/torch | 011569a7a06003729febb96cbcf58b915337046a | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Torch.Install do
@moduledoc """
Installs torch layout to your `_web/templates` directory.
## Configuration
config :torch,
otp_app: :my_app,
template_format: :eex
## Example
Running without options will read configuration from your `config.exs` file,
as shown abo... | 25.516129 | 91 | 0.650442 |
21967591244f654449174095d378d8ade9455d53 | 1,179 | ex | Elixir | lib/yacht/endpoint.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | lib/yacht/endpoint.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | lib/yacht/endpoint.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | defmodule Yacht.Endpoint do
use Phoenix.Endpoint, otp_app: :yacht
socket "/socket", Yacht.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 in production.
plug Plug.Static,
at:... | 27.418605 | 69 | 0.71162 |
2196b1f02c1e59a307db116be34530ae12a84d0e | 26,281 | exs | Elixir | test/phoenix_live_view/integrations/elements_test.exs | groxio-learning/phoenix_live_view | df25d2d016b54d59beff20bd778ee2459abb6978 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/elements_test.exs | groxio-learning/phoenix_live_view | df25d2d016b54d59beff20bd778ee2459abb6978 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/elements_test.exs | groxio-learning/phoenix_live_view | df25d2d016b54d59beff20bd778ee2459abb6978 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.ElementsTest do
use ExUnit.Case, async: true
use Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveViewTest.{Endpoint}
@endpoint Endpoint
defp last_event(view) do
view |> element("#last-event") |> render() |> HtmlEntities.decode()
end
setup do
{:ok, li... | 40.001522 | 168 | 0.549028 |
2196b3e80784380d7d160fcd7331ce5a97748d47 | 17,174 | ex | Elixir | assets/node_modules/phoenix/lib/phoenix/socket/transport.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | assets/node_modules/phoenix/lib/phoenix/socket/transport.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | assets/node_modules/phoenix/lib/phoenix/socket/transport.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket.Transport do
@moduledoc """
API for building transports.
This module describes what is required to build a Phoenix transport.
The transport sits between the socket and channels, forwarding client
messages to channels and vice-versa.
A transport is responsible for:
* Implement... | 35.704782 | 124 | 0.675381 |
2196b6ea0510eef5860b80e171492cd2c38eca6b | 1,437 | ex | Elixir | robotica_hello/lib/robotica_hello_web/plug/auth.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_hello/lib/robotica_hello_web/plug/auth.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_hello/lib/robotica_hello_web/plug/auth.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaHelloWeb.Plug.Auth do
@moduledoc "Guardian authentication pipeline"
defmodule IgnoreError do
@moduledoc false
import Plug.Conn
use RoboticaHelloWeb, :controller
@behaviour Guardian.Plug.ErrorHandler
@impl Guardian.Plug.ErrorHandler
def auth_error(conn, {_type, _reason},... | 28.176471 | 87 | 0.715379 |
2196be6c45e3b3ad3a0e0a9c8156390a5443b367 | 12,104 | ex | Elixir | lib/printer/any_of_printer.ex | dragonwasrobot/json-schema-to-elm | 9200d1afde86b79bff37216395ae7dc2e7ff45be | [
"MIT"
] | 74 | 2017-03-05T22:26:34.000Z | 2022-03-14T13:22:47.000Z | lib/printer/any_of_printer.ex | dragonwasrobot/json-schema-to-elm | 9200d1afde86b79bff37216395ae7dc2e7ff45be | [
"MIT"
] | 43 | 2017-03-05T22:56:21.000Z | 2022-03-26T19:19:26.000Z | lib/printer/any_of_printer.ex | dragonwasrobot/json-schema-to-elm | 9200d1afde86b79bff37216395ae7dc2e7ff45be | [
"MIT"
] | 6 | 2017-06-19T01:49:32.000Z | 2018-06-22T02:04:24.000Z | defmodule JS2E.Printer.AnyOfPrinter do
@behaviour JS2E.Printer.PrinterBehaviour
@moduledoc ~S"""
A printer for printing an 'any of' type decoder.
"""
require Elixir.{EEx, Logger}
alias JS2E.Printer
alias JsonSchema.{Resolver, Types}
alias Printer.{ErrorUtil, PrinterError, PrinterResult, Utils}
alias... | 26.957684 | 82 | 0.602693 |
219708c9ded8ae7daf7ddf9fdccdb9ad5430223f | 2,534 | ex | Elixir | app/lib/noodl/markdown.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl/markdown.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl/markdown.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Markdown do
@moduledoc """
Transform earmark into standard classes
# Elixir from here
https://elixirforum.com/t/earmark-add-my-own-class-names-to-the-default-set-of-markdown-tags/30520
# Tailwind styles from here
https://github.com/iandinwoodie/github-markdown-tailwindcss/blob/master/markdo... | 34.243243 | 100 | 0.586425 |
2197178237eebb00db60c4851d296c3faff79f2b | 1,249 | ex | Elixir | test/support/conn_case.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | test/support/conn_case.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | test/support/conn_case.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaksWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if ... | 23.12963 | 58 | 0.710168 |
219718e63dbe8a170a9281856aa0126560315371 | 1,123 | exs | Elixir | lectures/webserv/config/config.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | lectures/webserv/config/config.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | lectures/webserv/config/config.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"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.225806 | 73 | 0.751558 |
21971a892e288a700a427e85e76c4b6cebae6b08 | 599 | ex | Elixir | lib/pin_bin_web/auth/auth.ex | jdesilvio/pin-bin-api | 3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7 | [
"Apache-2.0"
] | null | null | null | lib/pin_bin_web/auth/auth.ex | jdesilvio/pin-bin-api | 3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7 | [
"Apache-2.0"
] | 5 | 2018-11-22T01:01:29.000Z | 2019-03-15T01:02:43.000Z | lib/pin_bin_web/auth/auth.ex | jdesilvio/pin_bin | 3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7 | [
"Apache-2.0"
] | null | null | null | defmodule PinBinWeb.Auth do
@moduledoc"""
API authentication.
"""
import Comeonin.Bcrypt, only: [checkpw: 2, dummy_checkpw: 0]
alias PinBin.Accounts
def api_login(conn, user) do
conn
|> Guardian.Plug.api_sign_in(user)
end
def api_login_by_email_and_pass(conn, email, password) do
user = Ac... | 22.185185 | 62 | 0.641068 |
219725211a14b4c69b901e5660acfd3bc243b3da | 747 | exs | Elixir | spec/hamlex/utils_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | spec/hamlex/utils_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | spec/hamlex/utils_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | defmodule Hamlex.UtilsSpec do
use ESpec
alias Hamlex.Utils
describe ".indent" do
context "default" do
it "indents each line of the string by 2 spaces" do
expect(Utils.indent "foo\nbar").to eq " foo\n bar"
end
end
context "indent given" do
it "indents each line of the stri... | 24.096774 | 75 | 0.625167 |
219732421dfe4adf0b57d1b6e2701879399e30a7 | 1,135 | exs | Elixir | config/config.exs | obrok/quick_format | 6f348af12cb9a721111db26801f7f98ee3ccf511 | [
"MIT"
] | 2 | 2019-03-08T08:29:32.000Z | 2020-12-07T11:10:01.000Z | config/config.exs | obrok/quick_format | 6f348af12cb9a721111db26801f7f98ee3ccf511 | [
"MIT"
] | null | null | null | config/config.exs | obrok/quick_format | 6f348af12cb9a721111db26801f7f98ee3ccf511 | [
"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.612903 | 73 | 0.752423 |
219735947bb7c049e0c5ebd5f4f5b6b843bb5e2a | 3,146 | ex | Elixir | apps/kitsune_aws_sqs/lib/kitsune/aws/sqs.ex | shirayukikitsune/ex_aws | c56063fa986b173f160155dfb5185d1881989d0a | [
"BSD-2-Clause"
] | 1 | 2021-07-07T12:45:55.000Z | 2021-07-07T12:45:55.000Z | apps/kitsune_aws_sqs/lib/kitsune/aws/sqs.ex | shirayukikitsune/ex_aws | c56063fa986b173f160155dfb5185d1881989d0a | [
"BSD-2-Clause"
] | null | null | null | apps/kitsune_aws_sqs/lib/kitsune/aws/sqs.ex | shirayukikitsune/ex_aws | c56063fa986b173f160155dfb5185d1881989d0a | [
"BSD-2-Clause"
] | null | null | null | defmodule Kitsune.Aws.Sqs do
alias Kitsune.Aws.Canonical
alias Kitsune.Aws.Request
@service_name "sqs"
def get_queue_url(opts) do
url = get_queue_url_param opts[:url], opts
queue_name = Canonical.uri_encode opts[:name]
{_, new_opts} = Access.pop(opts, :name)
{_, new_opts} = Access.pop(new_opts... | 38.839506 | 142 | 0.670693 |
219739c7e6d96211a9c10c610e910cf448c29fe3 | 697 | ex | Elixir | priv/templates/phx.gen.live/modal.ex | theharq/phoenix | 2e5711c102a260a8d9457229c3dfd33f91c7cf99 | [
"MIT"
] | null | null | null | priv/templates/phx.gen.live/modal.ex | theharq/phoenix | 2e5711c102a260a8d9457229c3dfd33f91c7cf99 | [
"MIT"
] | null | null | null | priv/templates/phx.gen.live/modal.ex | theharq/phoenix | 2e5711c102a260a8d9457229c3dfd33f91c7cf99 | [
"MIT"
] | null | null | null | defmodule <%= inspect context.web_module %>.Modal do
use <%= inspect context.web_module %>, :live_component
@impl true
def render(assigns) do
~L"""
<div id="<%%= @id %>" class="phx-modal"
phx-capture-click="close"
phx-window-keydown="close"
phx-key="escape"
phx-target="#<%%= @id %... | 25.814815 | 83 | 0.585366 |
219741a576176606d5fd82fd77c7aea9486cc16f | 4,253 | ex | Elixir | lib/postgrex/extension.ex | dmorneau/postgrex | ecac3bc0e5aac384fc399db5623fe85e30c609b9 | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | deps/postgrex/lib/postgrex/extension.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extension.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | null | null | null | defmodule Postgrex.Extension do
@moduledoc """
An extension knows how to encode and decode PostgreSQL types to and
from Elixir values.
Custom extensions can be enabled via `Postgrex.Types.define/3`.
`Postgrex.Types.define/3` must be called on its own file, outside of
any module and function, as it only nee... | 32.465649 | 89 | 0.621679 |
219746c021cc01b2836f935c0b6bbd3896362c78 | 825 | exs | Elixir | test/akd/generator/hook_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | test/akd/generator/hook_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | test/akd/generator/hook_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | defmodule Akd.Generator.HookTest do
use ExUnit.Case
@app_path Path.join([__DIR__, "..", "..", "fixtures", "gentester"])
@test_hook_path Path.join([@app_path, "lib", "test_hook.ex"])
setup do
old_dir = File.cwd!
File.cd!(@app_path)
# Cleanup for the test
{:ok, _} = File.rm_rf(@test_hook_path)
... | 23.571429 | 80 | 0.627879 |
21975d89dda1e16ba4b0256c3f460afd331bb20c | 369 | ex | Elixir | web/auth/guardian_serializer.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/auth/guardian_serializer.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/auth/guardian_serializer.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.GuardianSerializer do
@behaviour Guardian.Serializer
alias Nectar.Repo
alias Nectar.User
def for_token(user = %User{}), do: { :ok, "User:#{user.id}" }
def for_token(_), do: { :error, "Unknown resource type" }
def from_token("User:" <> id), do: { :ok, Repo.get(User, id) }
def from_token... | 28.384615 | 64 | 0.661247 |
2197655889d0c91092ea4b5666a13e69148b1b23 | 27,356 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/folders.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/folders.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/folders.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... | 57.230126 | 719 | 0.684895 |
21978ec5db92c1153bc1f714ed9697d4edeb579e | 477 | exs | Elixir | examples/squad_explorer.exs | jeantux/scidata | 216d7b8ba09e402f7a3e8763af9d28fc8c549a0b | [
"Apache-2.0"
] | null | null | null | examples/squad_explorer.exs | jeantux/scidata | 216d7b8ba09e402f7a3e8763af9d28fc8c549a0b | [
"Apache-2.0"
] | null | null | null | examples/squad_explorer.exs | jeantux/scidata | 216d7b8ba09e402f7a3e8763af9d28fc8c549a0b | [
"Apache-2.0"
] | null | null | null | Mix.install([
{:explorer, "~> 0.1.0-dev", github: "elixir-nx/explorer", branch: "main"},
{:scidata, "~> 0.1.3"}
])
entries = Scidata.Squad.download()
tables = Scidata.Squad.to_maps(entries)
{titles, contexts, qas} = tables
qa_df = Explorer.DataFrame.from_map(qas)
titles_df = Explorer.DataFrame.from_map(titles)
c... | 28.058824 | 76 | 0.733753 |
21979fa2a34d3d8ec5337573397722e27f4d992a | 3,531 | ex | Elixir | lib/samly/sp_data.ex | valiot/samly | 7ff599286560069d0d62b04ccf473f94a689c646 | [
"MIT"
] | 108 | 2017-09-15T18:31:52.000Z | 2022-02-09T23:04:49.000Z | lib/samly/sp_data.ex | valiot/samly | 7ff599286560069d0d62b04ccf473f94a689c646 | [
"MIT"
] | 51 | 2017-09-30T01:49:15.000Z | 2021-11-11T23:14:47.000Z | lib/samly/sp_data.ex | valiot/samly | 7ff599286560069d0d62b04ccf473f94a689c646 | [
"MIT"
] | 54 | 2017-10-24T23:33:23.000Z | 2022-03-17T18:24:11.000Z | defmodule Samly.SpData do
@moduledoc false
require Logger
require Samly.Esaml
alias Samly.SpData
defstruct id: "",
entity_id: "",
certfile: "",
keyfile: "",
contact_name: "",
contact_email: "",
org_name: "",
org_displayname:... | 30.179487 | 98 | 0.595582 |
2197bd89405588cc291109d0a28c346d10895196 | 206 | exs | Elixir | test/test_helper.exs | carsdotcom/elixir_agent | 176567630003fa588dd24fb4de8bd6dc8d598d38 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | carsdotcom/elixir_agent | 176567630003fa588dd24fb4de8bd6dc8d598d38 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | carsdotcom/elixir_agent | 176567630003fa588dd24fb4de8bd6dc8d598d38 | [
"Apache-2.0"
] | null | null | null | unless System.get_env("NR_INT_TEST") do
{:ok, _} = NewRelic.EnabledSupervisor.start_link(enabled: true)
end
ExUnit.start()
System.at_exit(fn _ ->
IO.puts(GenServer.call(NewRelic.Logger, :flush))
end)
| 20.6 | 65 | 0.737864 |
2197c31c51efe7875695def00fa3d199e7a22b1b | 2,008 | exs | Elixir | implements/change/change_test.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | implements/change/change_test.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | 1 | 2018-06-19T18:59:41.000Z | 2018-06-19T18:59:41.000Z | implements/change/change_test.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | #if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("change.exs", __DIR__)
#end
ExUnit.start()
#ExUnit.configure(exclude: :pending, trace: true)
defmodule ChangeTest do
use ExUnit.Case
# @tag :pending
test "single coin change" do
coins = [1, 5, 10, 25, 100]
expected = [25]
assert Ch... | 25.74359 | 81 | 0.621016 |
2197f2784abad43551be83051a15f94a2828b734 | 343 | ex | Elixir | rockelivery/lib/rockelivery_web/auth/error_handler.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/lib/rockelivery_web/auth/error_handler.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/lib/rockelivery_web/auth/error_handler.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.Auth.ErrorHandler do
import Plug.Conn
@behaviour Guardian.Plug.ErrorHandler
@impl Guardian.Plug.ErrorHandler
def auth_error(conn, {type, _reason}, _opts) do
body = Jason.encode!(%{message: to_string(type)})
conn
|> put_resp_content_type("application/json")
|> send_res... | 22.866667 | 53 | 0.723032 |
21980bcce783c61c82d869a054651dfc6a448aa8 | 110 | exs | Elixir | test/arangoex/job_test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 24 | 2016-11-02T14:53:55.000Z | 2021-12-25T13:08:09.000Z | test/arangoex/job_test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 22 | 2016-12-06T15:09:50.000Z | 2022-03-24T02:16:20.000Z | test/arangoex/job_test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 8 | 2016-12-12T21:27:25.000Z | 2019-05-24T04:27:30.000Z | defmodule Arangoex.JobTest do
# alias Arangoex.Job
use ExUnit.Case, async: true
# todo - Job tests
end
| 13.75 | 30 | 0.718182 |
21984177ed5b51db025d000b9cabf9a46ec14da3 | 1,574 | exs | Elixir | mix.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | mix.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | mix.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | defmodule AbsintheErrorPayload.Mixfile do
use Mix.Project
@version "1.0.1"
def project do
[
app: :absinthe_error_payload,
version: @version,
elixir: "~> 1.6",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
... | 24.59375 | 100 | 0.578145 |
2198444e71217a4de75177b5ff4b2ffc433b9d17 | 4,319 | exs | Elixir | test/dist_agent_test.exs | skirino/dist_agent | 0a2ca18ed6cbe563ff4371e161b3ef6e40520a14 | [
"MIT"
] | 13 | 2018-06-16T12:18:53.000Z | 2020-01-14T04:37:05.000Z | test/dist_agent_test.exs | skirino/dist_actor | 0a2ca18ed6cbe563ff4371e161b3ef6e40520a14 | [
"MIT"
] | null | null | null | test/dist_agent_test.exs | skirino/dist_actor | 0a2ca18ed6cbe563ff4371e161b3ef6e40520a14 | [
"MIT"
] | 1 | 2018-07-19T17:10:58.000Z | 2018-07-19T17:10:58.000Z | defmodule DistAgentTest do
use ExUnit.Case
@q "dist_agent_test"
setup_all do
assert DistAgent.put_quota(@q, :infinity) == :ok
on_exit(fn ->
assert DistAgent.delete_quota(@q) == :ok
end)
end
setup do
Process.register(self(), :test_runner)
on_exit(fn ->
refute_received(_)
... | 41.133333 | 100 | 0.631165 |
21985b4271fb896f71be1a7da737d3f7ffdc46ec | 296 | exs | Elixir | sum-of-multiples/sum_of_multiples.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | sum-of-multiples/sum_of_multiples.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | sum-of-multiples/sum_of_multiples.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | defmodule SumOfMultiples do
@doc """
Adds up all numbers from 1 to a given end number that are multiples of the factors provided.
The default factors are 3 and 5.
"""
@spec to(non_neg_integer, [non_neg_integer]) :: non_neg_integer
def to(limit, factors // [3, 5]) do
end
end | 22.769231 | 94 | 0.692568 |
219861ce41dae40458f587c2d740577fe134d223 | 394 | exs | Elixir | mix.exs | salalo/rewasm | b4ec9f171909ca9093a8e3f68b022d7b1ee219f3 | [
"MIT"
] | null | null | null | mix.exs | salalo/rewasm | b4ec9f171909ca9093a8e3f68b022d7b1ee219f3 | [
"MIT"
] | null | null | null | mix.exs | salalo/rewasm | b4ec9f171909ca9093a8e3f68b022d7b1ee219f3 | [
"MIT"
] | null | null | null | defmodule REWASM.MixProject do
use Mix.Project
def project do
[
app: :rewasm,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
... | 14.592593 | 42 | 0.507614 |
219867637ec1e13d971838f3ebb9c0993b47e132 | 14,691 | exs | Elixir | test/xcribe/api_blueprint/apib_test.exs | antedeguemon/xcribe | 00cbcaf150a04fd07b6ec727be9aa34f92a81a72 | [
"Apache-2.0"
] | null | null | null | test/xcribe/api_blueprint/apib_test.exs | antedeguemon/xcribe | 00cbcaf150a04fd07b6ec727be9aa34f92a81a72 | [
"Apache-2.0"
] | null | null | null | test/xcribe/api_blueprint/apib_test.exs | antedeguemon/xcribe | 00cbcaf150a04fd07b6ec727be9aa34f92a81a72 | [
"Apache-2.0"
] | null | null | null | defmodule Xcribe.ApiBlueprint.APIBTest do
use ExUnit.Case, async: false
alias Xcribe.ApiBlueprint
alias Xcribe.ApiBlueprint.{APIB, Formatter}
alias Xcribe.Support.RequestsGenerator
setup do
Application.put_env(:xcribe, :information_source, Xcribe.Support.Information)
on_exit(fn ->
Application... | 27.562852 | 98 | 0.344769 |
21987b96c5fc42ec2d204bf59e1a086c3753d1bf | 336 | ex | Elixir | test/factories/settings/sublanguage_factory.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | null | null | null | test/factories/settings/sublanguage_factory.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | test/factories/settings/sublanguage_factory.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule Cadet.Settings.SublanguageFactory do
@moduledoc """
Factory for the Sublanguage entity
"""
defmacro __using__(_opts) do
quote do
alias Cadet.Settings.Sublanguage
def sublanguage_factory do
%Sublanguage{
chapter: 1,
variant: "default"
}
end
... | 17.684211 | 46 | 0.625 |
219880619c36e219fcc0f95e3c0bf2cf4d1181cb | 117 | exs | Elixir | config/config.exs | potatosalad/erlang-noble | 08475eb62921cdaef3882925791a0753354834c7 | [
"MIT"
] | 1 | 2020-06-02T06:44:04.000Z | 2020-06-02T06:44:04.000Z | config/config.exs | potatosalad/erlang-noble | 08475eb62921cdaef3882925791a0753354834c7 | [
"MIT"
] | 1 | 2021-09-01T21:46:54.000Z | 2021-09-01T21:46:54.000Z | config/config.exs | potatosalad/erlang-noble | 08475eb62921cdaef3882925791a0753354834c7 | [
"MIT"
] | 2 | 2019-10-23T21:42:41.000Z | 2020-06-26T17:46:43.000Z | use Mix.Config
# config(:logger,
# handle_otp_reports: true,
# handle_sasl_reports: true,
# level: :debug
# )
| 14.625 | 30 | 0.675214 |
219891ec847cc60ad79ea427dbb4ea38943b9d8d | 34,239 | exs | Elixir | test/phoenix_live_view/engine_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | 1 | 2020-09-09T09:10:01.000Z | 2020-09-09T09:10:01.000Z | test/phoenix_live_view/engine_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | test/phoenix_live_view/engine_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.EngineTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView.{Engine, Rendered}
def safe(do: {:safe, _} = safe), do: safe
def unsafe(do: {:safe, content}), do: content
describe "rendering" do
test "escapes HTML" do
template = """
<start> <%= "<escaped>" %>
... | 39.445853 | 115 | 0.512749 |
2198994029f4337a2e717ef9f98d1ce90e88fefe | 62,075 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/api/access_policies.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/api/access_policies.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/access_context_manager/lib/google_api/access_context_manager/v1/api/access_policies.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... | 47.313262 | 768 | 0.627725 |
2198a126f4176c3609b6b6fdfeea39ea0ccfaf9e | 580 | ex | Elixir | web/views/changeset_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | web/views/changeset_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | web/views/changeset_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.ChangesetView do
use CncfDashboardApi.Web, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`CncfDashboardApi.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.travers... | 29 | 69 | 0.746552 |
2198bb1ae966b604e8b7e15901ef40efc75b93c3 | 6,764 | ex | Elixir | web/models/variant.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | web/models/variant.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | web/models/variant.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | defmodule Nectar.Variant do
use Nectar.Web, :model
use Arc.Ecto.Schema
schema "variants" do
field :is_master, :boolean, default: false
field :sku, :string
field :weight, :decimal
field :height, :decimal
field :width, :decimal
field :depth, :decimal
field :discontinue_on, Ecto.Date
... | 31.607477 | 139 | 0.714075 |
21992b320737a1d5141c1d283e5398e306ef3362 | 14,689 | ex | Elixir | src/lib/cloudi_core/priv/CloudILogger.ex | CloudI/CloudI | 1fbcbf7f776ef286e4730d468ef8d34a861033ba | [
"MIT"
] | 260 | 2015-01-02T12:59:27.000Z | 2022-03-13T00:43:38.000Z | src/lib/cloudi_core/priv/CloudILogger.ex | CloudI/CloudI | 1fbcbf7f776ef286e4730d468ef8d34a861033ba | [
"MIT"
] | 107 | 2015-01-03T21:51:25.000Z | 2021-12-22T05:09:46.000Z | src/lib/cloudi_core/priv/CloudILogger.ex | CloudI/CloudI | 1fbcbf7f776ef286e4730d468ef8d34a861033ba | [
"MIT"
] | 34 | 2015-02-11T05:49:41.000Z | 2020-07-13T21:07:43.000Z | #-*-Mode:elixir;coding:utf-8;tab-width:2;c-basic-offset:2;indent-tabs-mode:()-*-
# ex: set ft=elixir fenc=utf-8 sts=2 ts=2 sw=2 et nomod:
###
###------------------------------------------------------------------------
###
### MIT License
###
### Copyright (c) 2014-2020 Michael Truog <mjtruog at protonmail dot com>
###
... | 33.767816 | 80 | 0.458847 |
21992ef9cd3c474c8d6d068041f7f7c8a3bcc792 | 1,363 | ex | Elixir | apps/ins/test/support/data_case.ex | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | apps/ins/test/support/data_case.ex | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | apps/ins/test/support/data_case.ex | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | defmodule Ins.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test run... | 25.240741 | 77 | 0.674982 |
21997d7973d029ab26badfa70a37a464793bcf82 | 504 | ex | Elixir | lib/facts/relation.ex | lorenzosinisi/retex | fd868be52cc1d60881003d78553dc170a5b1596d | [
"Apache-2.0"
] | 61 | 2019-11-07T18:59:22.000Z | 2022-03-05T20:13:03.000Z | lib/facts/relation.ex | sleipnir/retex | fd868be52cc1d60881003d78553dc170a5b1596d | [
"Apache-2.0"
] | 5 | 2019-11-11T21:38:02.000Z | 2021-02-10T16:22:00.000Z | lib/facts/relation.ex | sleipnir/retex | fd868be52cc1d60881003d78553dc170a5b1596d | [
"Apache-2.0"
] | 9 | 2019-11-08T15:31:58.000Z | 2021-10-16T13:53:48.000Z | defmodule Retex.Fact.Relation do
@moduledoc "Attribute values that a Wme should have in order for this condition to be true"
defstruct name: nil, from: nil, to: nil, via: nil
def new(fields) do
via = to_string(fields[:from]) |> String.downcase() |> Kernel.<>("_id") |> String.to_atom()
rel = struct(__MODU... | 29.647059 | 95 | 0.660714 |
2199b1001f2c2b3002f256e6e8cd92c29bf37586 | 2,847 | exs | Elixir | test/application/application_test.exs | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/application/application_test.exs | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/application/application_test.exs | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.ApplicationTest do
use ExUnit.Case
alias Commanded.Application
alias Commanded.ExampleApplication
alias Commanded.RuntimeConfiguredApplication
alias Commanded.UnconfiguredApplication
describe "a Commanded application" do
setup do
pid = start_supervised!(ExampleApplication)
... | 36.974026 | 106 | 0.672287 |
2199b46f07104f435afa4ed6ec1ed935b2f2de84 | 1,133 | ex | Elixir | lib/mix/tasks/jingle.seeds.ex | x4121/jingle | 2e034b1f936b59d3ae2b29355c8a6d7c3fb435d1 | [
"MIT"
] | null | null | null | lib/mix/tasks/jingle.seeds.ex | x4121/jingle | 2e034b1f936b59d3ae2b29355c8a6d7c3fb435d1 | [
"MIT"
] | null | null | null | lib/mix/tasks/jingle.seeds.ex | x4121/jingle | 2e034b1f936b59d3ae2b29355c8a6d7c3fb435d1 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Jingle.Seeds do
use Mix.Task
alias Jingle.{Event, Repo, Sound, Notification}
def run(_) do
Mix.Task.run("app.start", [])
Jingle.start(nil, nil)
seed(Mix.env)
end
def seed(_) do
Repo.delete_all(Sound)
sounds = [
%Sound{title: "Cantina band", vid: "sHD-knhS6es", d... | 31.472222 | 125 | 0.62842 |
2199b5e6331c389e06159495bc34e4d413646914 | 612 | exs | Elixir | test/epmd_test.exs | svrdlans/libcluster | b5b2f068f1ff6e715a99748ff1b37d5fce74dc2d | [
"MIT"
] | 1,571 | 2016-09-30T20:38:30.000Z | 2022-03-31T15:06:38.000Z | test/epmd_test.exs | svrdlans/libcluster | b5b2f068f1ff6e715a99748ff1b37d5fce74dc2d | [
"MIT"
] | 140 | 2016-10-11T10:03:06.000Z | 2022-03-18T21:06:32.000Z | test/epmd_test.exs | svrdlans/libcluster | b5b2f068f1ff6e715a99748ff1b37d5fce74dc2d | [
"MIT"
] | 167 | 2016-10-24T09:47:16.000Z | 2022-03-15T11:59:50.000Z | defmodule Cluster.Strategy.EpmdTest do
@moduledoc false
use ExUnit.Case
alias Cluster.Strategy.Epmd
import ExUnit.CaptureLog
describe "start_link/1" do
test "calls right functions" do
capture_log(fn ->
:ignore =
Epmd.start_link([
%Cluster.Strategy.State{
... | 21.857143 | 60 | 0.55719 |
2199bd219693e8bc92791dd3283c30a154050ff3 | 4,295 | ex | Elixir | lib/web/controllers/submission_export_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | lib/web/controllers/submission_export_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | lib/web/controllers/submission_export_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | defmodule Web.SubmissionExportController do
use Web, :controller
alias ChallengeGov.Challenges
alias ChallengeGov.Phases
alias ChallengeGov.SubmissionExports
plug(Web.Plugs.EnsureRole, [:super_admin, :admin, :challenge_owner])
def index(conn, %{"id" => id}) do
%{current_user: user} = conn.assigns
... | 36.092437 | 98 | 0.643073 |
2199c2c499fd196214e662d722817d7d4a9d4259 | 1,980 | ex | Elixir | elixir_advent/lib/advent_util.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | elixir_advent/lib/advent_util.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | elixir_advent/lib/advent_util.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | defmodule AdventUtil do
@doc """
Given a list of lines, break at blank lines into multiple lists of lines.
## Examples:
iex> AdventUtil.split_at_blank_lines(["a", "b", "", "", "c", "d"])
[["a", "b"], ["c", "d"]]
"""
def split_at_blank_lines(lines) do
lines
|> Enum.chunk_by(&(&1 == ""))
|... | 31.935484 | 82 | 0.628788 |
2199d07800ced0b25ec755230e229da955615b0f | 15,247 | ex | Elixir | lib/crontab/scheduler.ex | mveytsman/crontab | f42a90a1ab227c9137bd9f31d33ccfb1a82439e2 | [
"MIT"
] | 71 | 2017-01-17T12:43:20.000Z | 2022-03-11T09:31:32.000Z | lib/crontab/scheduler.ex | mveytsman/crontab | f42a90a1ab227c9137bd9f31d33ccfb1a82439e2 | [
"MIT"
] | 70 | 2017-01-18T08:49:19.000Z | 2022-03-31T00:34:47.000Z | lib/crontab/scheduler.ex | mveytsman/crontab | f42a90a1ab227c9137bd9f31d33ccfb1a82439e2 | [
"MIT"
] | 29 | 2017-01-02T07:24:11.000Z | 2022-03-11T15:57:56.000Z | defmodule Crontab.Scheduler do
@moduledoc """
This module provides the functionality to retrieve the next run date or the
previous run date from a `%CronExpression{}`.
"""
import Crontab.DateChecker
alias Crontab.CronExpression
alias Crontab.DateHelper
@typep maybe(success, error) :: {:ok, success} | ... | 35.37587 | 118 | 0.664196 |
2199d128300799b2e67e02dee1329fa5802f00fd | 2,368 | ex | Elixir | apps/wdpa_importer/lib/wdpa_importer.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | 4 | 2016-05-08T10:17:19.000Z | 2019-06-10T15:23:20.000Z | apps/wdpa_importer/lib/wdpa_importer.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | apps/wdpa_importer/lib/wdpa_importer.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | defmodule WdpaImporter do
use WdpaModels
import Logger
alias WdpaModels.ProtectedArea
alias WdpaImporter.Builder
@file_reader Application.get_env(:wdpa_importer, :file_reader, File)
# Public implementation
#######################
def run(path, nil), do:
run(path, path |> Path.basename(".csv") |> B... | 29.6 | 92 | 0.651605 |
2199da754d2671e8f34b670855025ecdf0032c29 | 5,577 | ex | Elixir | chat_elixir/lib/chat.pb.ex | rellen/grpc-in-elixir | 11b009351e5d2ac5a5b6c9b2aead30f395af4a3b | [
"Apache-2.0"
] | 1 | 2021-03-22T20:41:26.000Z | 2021-03-22T20:41:26.000Z | chat_elixir/lib/chat.pb.ex | rellen/grpc-in-elixir | 11b009351e5d2ac5a5b6c9b2aead30f395af4a3b | [
"Apache-2.0"
] | null | null | null | chat_elixir/lib/chat.pb.ex | rellen/grpc-in-elixir | 11b009351e5d2ac5a5b6c9b2aead30f395af4a3b | [
"Apache-2.0"
] | null | null | null | defmodule Chat.ErrorCode do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :INVALID_ROOM | :ROOM_NAME_TAKEN | :USER_HANDLE_TAKEN
field :INVALID_ROOM, 0
field :ROOM_NAME_TAKEN, 1
field :USER_HANDLE_TAKEN, 2
end
defmodule Chat.ListRoomsRequest do
@moduledoc false
use P... | 20.354015 | 76 | 0.659674 |
2199e49734c133738ca95ae1aed4fc231f66804b | 682 | exs | Elixir | elixir/scrap_preview/priv/repo/migrations/20180912100758_create_offers.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/scrap_preview/priv/repo/migrations/20180912100758_create_offers.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/scrap_preview/priv/repo/migrations/20180912100758_create_offers.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Scrap.Repo.Migrations.CreateOffers do
use Ecto.Migration
def change do
create table(:offers) do
add :price, :float
add :currency, :string
add :sizes, {:array, :integer}
add :url, :string
add :store_id, references(:stores, on_delete: :nothing)
add :brand_id, referen... | 28.416667 | 67 | 0.659824 |
219a1e77c08c448bd99418827beb9abe068f3e74 | 1,129 | ex | Elixir | apps/ut_monitor_lib/lib/ut_monitor_lib/led_pixel/apdex.ex | usertesting/nerves_status_monitors | 18ccc7a3f3787d847a09328cea6c49b51605338a | [
"MIT"
] | 1 | 2017-02-10T17:41:02.000Z | 2017-02-10T17:41:02.000Z | apps/ut_monitor_lib/lib/ut_monitor_lib/led_pixel/apdex.ex | usertesting/nerves_status_monitors | 18ccc7a3f3787d847a09328cea6c49b51605338a | [
"MIT"
] | null | null | null | apps/ut_monitor_lib/lib/ut_monitor_lib/led_pixel/apdex.ex | usertesting/nerves_status_monitors | 18ccc7a3f3787d847a09328cea6c49b51605338a | [
"MIT"
] | null | null | null | defmodule UtMonitorLib.LedPixel.Apdex do
alias UtMonitorLib.LedPixel
@steps 72
def aged_pixels_from_scorelist(apdex_values) do
#Oldest apdex comes first, so we want to reverse it so that oldest get the biggest ages
#Then we need to reverse it again, so that the LED for the oldest apdex value is furthes... | 24.543478 | 114 | 0.70062 |
219a3ce3a2cc6cf6dcc135d92c5a149ac27831c3 | 1,187 | exs | Elixir | mix.exs | access-company/antikythera_aws | 77d20a08f7009e8d8f71b787c4ba6a162397ffb6 | [
"Apache-2.0"
] | 3 | 2018-04-26T07:49:40.000Z | 2018-04-28T00:31:41.000Z | mix.exs | access-company/antikythera_aws | 77d20a08f7009e8d8f71b787c4ba6a162397ffb6 | [
"Apache-2.0"
] | 7 | 2018-06-05T10:26:40.000Z | 2021-02-26T07:06:22.000Z | mix.exs | access-company/antikythera_aws | 77d20a08f7009e8d8f71b787c4ba6a162397ffb6 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraAws.MixProject do
use Mix.Project
@github_url "https://github.com/access-company/antikythera_aws"
def project() do
[
app: :antikythera_aws,
version: "0.2.0",
elixir: "~> 1.5",
start_permanent: Mix.en... | 24.729167 | 105 | 0.572873 |
219a537e7e42ad0bc052b03cbb8a58e666e26eae | 58,570 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/api/accounts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/accounts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/accounts.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... | 43.741598 | 246 | 0.620079 |
219a8eb23f9782ba7d069426f854a45cf068091d | 2,058 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/floodlight_configurations_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/floodlight_configurations_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/floodlight_configurations_list_response.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 ... | 36.75 | 218 | 0.758503 |
219ab0805f57354edd85cf4d3ef2b93b4fcf5812 | 1,571 | ex | Elixir | test/support/test_technology.ex | takasehideki/vintage_net | 40678fc9d74df5ff9f9f36c6378b62e981ceaf31 | [
"Apache-2.0"
] | null | null | null | test/support/test_technology.ex | takasehideki/vintage_net | 40678fc9d74df5ff9f9f36c6378b62e981ceaf31 | [
"Apache-2.0"
] | null | null | null | test/support/test_technology.ex | takasehideki/vintage_net | 40678fc9d74df5ff9f9f36c6378b62e981ceaf31 | [
"Apache-2.0"
] | null | null | null | defmodule VintageNetTest.TestTechnology do
@behaviour VintageNet.Technology
alias VintageNet.Interface.RawConfig
@moduledoc """
Support for unit testing APIs that require a Technology behaviour
"""
@impl true
def normalize(config) do
Map.put(config, :normalize_was_called, true)
end
@impl true
... | 20.671053 | 67 | 0.642266 |
219abcdea6dcb109a339e2ce93e3f084ff94d18c | 63 | ex | Elixir | lib/http_client.ex | vasuadari/hacker_news_alert | 9d256714bfd940ed083681e0e2b6d2ea1fa3f98e | [
"MIT"
] | 3 | 2020-03-30T08:40:46.000Z | 2020-04-14T05:53:13.000Z | lib/http_client.ex | vasuadari/hacker_news_alert | 9d256714bfd940ed083681e0e2b6d2ea1fa3f98e | [
"MIT"
] | 3 | 2020-03-28T21:31:07.000Z | 2020-03-30T09:10:36.000Z | lib/http_client.ex | vasuadari/hacker_news_alert | 9d256714bfd940ed083681e0e2b6d2ea1fa3f98e | [
"MIT"
] | 3 | 2020-03-30T08:48:09.000Z | 2020-04-24T14:35:09.000Z | defmodule HTTPClient do
defdelegate get(url), to: Mojito
end
| 15.75 | 34 | 0.777778 |
219addea4d8b6d8f5999275c8c4bf31a314dc9dc | 4,902 | exs | Elixir | farmbot_os/mix.exs | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | farmbot_os/mix.exs | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | farmbot_os/mix.exs | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.MixProject do
use Mix.Project
@all_targets [:rpi3, :rpi]
@version Path.join([__DIR__, "..", "VERSION"])
|> File.read!()
|> String.trim()
@branch System.cmd("git", ~w"rev-parse --abbrev-ref HEAD")
|> elem(0)
|> String.trim()
@commit System.cmd("git... | 32.25 | 80 | 0.578743 |
219aec4a7630291b8d5d76674f398bc9682978c2 | 142 | exs | Elixir | sources/Chapter6/attributes.exs | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | sources/Chapter6/attributes.exs | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | sources/Chapter6/attributes.exs | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | defmodule Example do
@author "Dave Thomas"
def get_author do
@author
end
end
IO.puts "Example was written by #{Example.get_author}"
| 17.75 | 54 | 0.725352 |
219aefd5d21200c3b0d713c1e75e288c6abd20c5 | 3,020 | exs | Elixir | test/membrane_mp3_mad/decoder_test.exs | membraneframework/membrane-element-mad | 140714a520602febbde33409007a6688f1d707c4 | [
"Apache-2.0"
] | 12 | 2018-07-26T18:45:54.000Z | 2019-05-23T22:10:12.000Z | test/membrane_mp3_mad/decoder_test.exs | membraneframework/membrane-element-mad | 140714a520602febbde33409007a6688f1d707c4 | [
"Apache-2.0"
] | 2 | 2018-10-15T07:57:53.000Z | 2019-02-05T17:05:50.000Z | test/membrane_mp3_mad/decoder_test.exs | membraneframework/membrane-element-mad | 140714a520602febbde33409007a6688f1d707c4 | [
"Apache-2.0"
] | 1 | 2018-07-28T02:54:32.000Z | 2018-07-28T02:54:32.000Z | defmodule Membrane.MP3.MAD.DecoderTest do
use ExUnit.Case, async: true
alias Membrane.Buffer
alias Membrane.RawAudio
alias Membrane.MP3.MAD.Decoder
alias Membrane.MP3.MAD.Decoder.Native
@minimal_mpeg_frame <<255, 243, 20, 196, 0, 0, 0, 3, 72, 0, 0, 0, 0, 76, 65, 77, 69, 51, 46, 57,
... | 34.712644 | 98 | 0.630795 |
219afb8c804fcb286efe7ecc50f6de92077c8b16 | 3,938 | exs | Elixir | test/authex/plugs/authentication_plug_test.exs | notproperlycut/authex | 1361ddbde275d711c76d7897481a5d47d7ca1732 | [
"MIT"
] | null | null | null | test/authex/plugs/authentication_plug_test.exs | notproperlycut/authex | 1361ddbde275d711c76d7897481a5d47d7ca1732 | [
"MIT"
] | null | null | null | test/authex/plugs/authentication_plug_test.exs | notproperlycut/authex | 1361ddbde275d711c76d7897481a5d47d7ca1732 | [
"MIT"
] | null | null | null | defmodule Authex.AuthenticationPlugTest do
use ExUnit.Case
use Plug.Test
import Authex.TestHelpers
import Plug.Conn, only: [put_req_header: 3]
alias Authex.AuthenticationPlug
setup_all do
Auth.start_link()
:ok
end
setup do
reset_config()
end
describe "init/1" do
test "returns gi... | 37.865385 | 95 | 0.656932 |
219afeb6737d672bc8f0e5a19827bde9ebe1f562 | 876 | ex | Elixir | preview/lib/preview/application.ex | podlove/podlove-preview | 7a12cedf338929762e8ef4dea69771e29a89f132 | [
"MIT"
] | 2 | 2019-02-23T12:19:46.000Z | 2020-02-18T11:53:09.000Z | preview/lib/preview/application.ex | podlove/podlove-preview | 7a12cedf338929762e8ef4dea69771e29a89f132 | [
"MIT"
] | 5 | 2019-01-09T16:18:04.000Z | 2019-01-19T10:10:30.000Z | preview/lib/preview/application.ex | podlove/podlove-preview | 7a12cedf338929762e8ef4dea69771e29a89f132 | [
"MIT"
] | null | null | null | defmodule Preview.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 29.2 | 66 | 0.72032 |
219b1131a31d54201bb55955abb163f9160fc71c | 283 | ex | Elixir | lab3/lib/lab/auth/guardian.ex | TeeSeal/web-tech-labs | 46596ae2eae68e05d4433506a210b003ee18a749 | [
"MIT"
] | null | null | null | lab3/lib/lab/auth/guardian.ex | TeeSeal/web-tech-labs | 46596ae2eae68e05d4433506a210b003ee18a749 | [
"MIT"
] | 2 | 2018-02-12T07:41:50.000Z | 2018-05-04T18:45:28.000Z | lab3/lib/lab/auth/guardian.ex | TeeSeal/web-tech-labs | 46596ae2eae68e05d4433506a210b003ee18a749 | [
"MIT"
] | null | null | null | defmodule Lab.Auth.Guardian do
use Guardian, otp_app: :lab
alias Lab.Auth
def subject_for_token(user, _claims) do
IO.inspect user
{:ok, to_string(user.id)}
end
def resource_from_claims(claims) do
user = Auth.get_user!(claims["sub"])
{:ok, user}
end
end
| 18.866667 | 41 | 0.681979 |
219b53827c60a1c3a584ffd00d5e4e54faec8d04 | 109,163 | ex | Elixir | lib/elixir/lib/enum.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression:
Enum.map([1, 2, 3], &(&1 * 2))
invokes `Enume... | 28.584184 | 105 | 0.616454 |
219b74ed293c3d2d7f8627239cc1751f2acc9af0 | 347 | ex | Elixir | lib/strava/model/temperature_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/temperature_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/temperature_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.TemperatureStream do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:original_size,
:resolution,
:series_type,
:data
]
@type t :: %__MODULE__{
original_size: integer(),
resolution: String.t(),
series_type: String.t(),
data:... | 16.52381 | 37 | 0.556196 |
219b7ac661822ceeb482592e8113454043681192 | 274 | exs | Elixir | test/only_codes_web/views/layout_view_test.exs | andys8/stripcode | 65a30d946ac20ad1b0e9635e6a3569b7a65e6270 | [
"MIT"
] | 281 | 2021-01-15T14:59:38.000Z | 2022-01-06T23:13:33.000Z | test/only_codes_web/views/layout_view_test.exs | andys8/stripcode | 65a30d946ac20ad1b0e9635e6a3569b7a65e6270 | [
"MIT"
] | 12 | 2021-01-15T15:24:54.000Z | 2021-07-31T17:36:39.000Z | test/only_codes_web/views/layout_view_test.exs | andys8/stripcode | 65a30d946ac20ad1b0e9635e6a3569b7a65e6270 | [
"MIT"
] | 11 | 2021-01-15T17:46:59.000Z | 2021-09-22T13:24:19.000Z | defmodule OnlyCodesWeb.LayoutViewTest do
use OnlyCodesWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.444444 | 65 | 0.770073 |
219b8144c92e540b8159778cd3f1fb89be1ba490 | 1,089 | ex | Elixir | test/support/exemplars/simple.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/support/exemplars/simple.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/support/exemplars/simple.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule Crit.Exemplars.Simple do
defmacro __using__(_) do
quote do
@iso_date "2035-09-05"
@date Date.from_iso8601!(@iso_date)
@bumped_date Date.add(@date, 1)
@iso_bumped_date Date.to_iso8601(@bumped_date)
@later_iso_date "2046-09-05"
@later_date Date.from_iso8601!(@lat... | 27.923077 | 64 | 0.662994 |
219b8256ea9b8b39659958c2f97cd048b9d45d9f | 2,063 | exs | Elixir | lib/oban/crontab/parser.ex.exs | mimimalizam/oban | 6cdf6e7ec3d9879a1d00448b5da6f1b9e98e8022 | [
"Apache-2.0"
] | null | null | null | lib/oban/crontab/parser.ex.exs | mimimalizam/oban | 6cdf6e7ec3d9879a1d00448b5da6f1b9e98e8022 | [
"Apache-2.0"
] | null | null | null | lib/oban/crontab/parser.ex.exs | mimimalizam/oban | 6cdf6e7ec3d9879a1d00448b5da6f1b9e98e8022 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Crontab.Parser do
@moduledoc false
# parsec:Oban.Crontab.Parser
import NimbleParsec
month_alias =
[
replace(string("JAN"), 1),
replace(string("FEB"), 2),
replace(string("MAR"), 3),
replace(string("APR"), 4),
replace(string("MAY"), 5),
replace(string("JUN... | 19.836538 | 63 | 0.544353 |
219b83f1954600415d4afeb71f4ec823ad873ee4 | 8,718 | exs | Elixir | aoc-2019/test/day9/intcode_test.exs | sbauer322/advent-of-code | f1174f84485197d51009c35e3797ba26e7e21462 | [
"MIT"
] | 1 | 2020-11-08T22:17:37.000Z | 2020-11-08T22:17:37.000Z | aoc-2019/test/day9/intcode_test.exs | sbauer322/advent-of-code | f1174f84485197d51009c35e3797ba26e7e21462 | [
"MIT"
] | null | null | null | aoc-2019/test/day9/intcode_test.exs | sbauer322/advent-of-code | f1174f84485197d51009c35e3797ba26e7e21462 | [
"MIT"
] | null | null | null | defmodule AOC.Day9.IntcodeTest do
alias AOC.Day9.Intcode
use ExUnit.Case
@moduledoc false
test "parameter mode" do
input = ["1002", "4", "3", "4", "33"]
{_state, memory} =
Intcode.puzzle_input_to_map(input)
|> Intcode.compute()
assert [] == Intcode.read_outputs(memory)
end
test... | 27.158879 | 183 | 0.635008 |
219b8733b9f76fc8c374c3285e393f299d17c896 | 136 | ex | Elixir | lib/Structs/Users/user_guild.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 163 | 2017-03-01T09:02:35.000Z | 2022-03-09T23:31:48.000Z | lib/Structs/Users/user_guild.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 91 | 2017-02-23T23:23:35.000Z | 2021-12-29T23:47:44.000Z | lib/Structs/Users/user_guild.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 38 | 2017-03-23T13:16:44.000Z | 2022-02-26T15:53:32.000Z | defmodule Alchemy.UserGuild do
@moduledoc false
@derive [Poison.Encoder]
defstruct [:id, :name, :icon, :owner, :permissions]
end
| 19.428571 | 53 | 0.720588 |
219b8a454f228f5214e8dd5d9b8c1c1e9a3b4b1d | 153 | exs | Elixir | programming/elixir/learning_elixir_code_bundle/code/chapter6/pmap.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | 1 | 2020-01-09T03:22:09.000Z | 2020-01-09T03:22:09.000Z | elixir/tour/learning_elixir_code_bundle/code/chapter6/pmap.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | elixir/tour/learning_elixir_code_bundle/code/chapter6/pmap.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | defmodule MyMap do
def pmap(collection, f) do
collection |>
Enum.map(&(Task.async(fn -> f.(&1) end))) |>
Enum.map(&Task.await/1)
end
end
| 19.125 | 48 | 0.601307 |
219b960bf4cdbbb8ea012f86bf224e7662c36068 | 1,093 | ex | Elixir | test/support/channel_case.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 22 | 2021-06-29T09:25:52.000Z | 2022-03-16T09:17:24.000Z | test/support/channel_case.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 54 | 2021-06-28T19:54:17.000Z | 2022-03-27T06:49:30.000Z | test/support/channel_case.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 2 | 2022-01-08T10:16:30.000Z | 2022-02-20T09:45:50.000Z | defmodule PropWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts with... | 26.658537 | 66 | 0.722781 |
219ba9811464f4933284c627005e9743a9bdd064 | 1,815 | ex | Elixir | lib/example_web.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | 1 | 2020-12-18T17:23:31.000Z | 2020-12-18T17:23:31.000Z | lib/example_web.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | 2 | 2021-03-09T19:08:53.000Z | 2021-05-10T16:15:19.000Z | lib/example_web.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | 1 | 2020-10-10T08:15:58.000Z | 2020-10-10T08:15:58.000Z | defmodule ExampleWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ExampleWeb, :controller
use ExampleWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.571429 | 83 | 0.688705 |
219bc521f9e1f8cb4c3b7b663ad4bc3d7ccd4173 | 1,840 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.8 | 298 | 0.754891 |
219bcac02539fdb8146ea1f3c4bfa5d15677ac28 | 21,732 | ex | Elixir | lib/flop_phoenix.ex | maltoe/flop_phoenix | 60d1a1ee6545e16911d59368e83c2faa6ab652cf | [
"MIT"
] | null | null | null | lib/flop_phoenix.ex | maltoe/flop_phoenix | 60d1a1ee6545e16911d59368e83c2faa6ab652cf | [
"MIT"
] | null | null | null | lib/flop_phoenix.ex | maltoe/flop_phoenix | 60d1a1ee6545e16911d59368e83c2faa6ab652cf | [
"MIT"
] | null | null | null | defmodule Flop.Phoenix do
@moduledoc """
View helper functions for Phoenix and Flop.
## Pagination
`Flop.meta/3` returns a `Flop.Meta` struct, which holds information such as
the total item count, the total page count, the current page etc. This is all
you need to render pagination links. `Flop.run/3`, `F... | 35.108239 | 134 | 0.636803 |
219c0377a6e4fcaff12e7dee840b3c9e9c34d909 | 1,008 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/AtomKeyword.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_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/AtomKeyword.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_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/AtomKeyword.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | nil.and unqualified positional, key: value
nil.&& unqualified positional, key: value
nil.|> unqualified positional, key: value
nil.@ unqualified positional, key: value
nil.& unqualified positional, key: value
nil.== unqualified positional, key: value
nil.+ unqualified positional, key: value
nil.^^^ unqualified position... | 40.32 | 44 | 0.782738 |
219c5147e3487f166b49bbab95f4a8b63de771f9 | 361 | ex | Elixir | lib/bootloader/plugin.ex | nerves-project-attic/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 10 | 2017-06-13T00:20:01.000Z | 2019-08-02T13:52:51.000Z | lib/bootloader/plugin.ex | nerves-project-attic/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 6 | 2017-06-12T18:49:21.000Z | 2017-09-20T16:31:26.000Z | lib/bootloader/plugin.ex | mobileoverlord/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 1 | 2021-01-10T01:09:45.000Z | 2021-01-10T01:09:45.000Z | defmodule Bootloader.Plugin do
use Mix.Releases.Plugin
defdelegate before_assembly(release, opts), to: Bootloader
defdelegate after_assembly(release, opts), to: Bootloader
defdelegate before_package(release, opts), to: Bootloader
defdelegate after_package(release, opts), to: Bootloader
defdelegate after_cl... | 36.1 | 60 | 0.800554 |
219c7d0d69ed3ed2cc09b2bfe5b9e992982c1ce9 | 1,157 | ex | Elixir | lib/mollie/permissions.ex | jarroput/molliex | 52741bf9267159438590449eb1cc47761ccf2aec | [
"MIT"
] | 12 | 2018-11-27T13:51:07.000Z | 2020-07-14T18:57:15.000Z | lib/mollie/permissions.ex | jarroput/molliex | 52741bf9267159438590449eb1cc47761ccf2aec | [
"MIT"
] | 7 | 2018-11-19T12:40:18.000Z | 2021-01-20T14:48:09.000Z | lib/mollie/permissions.ex | jarroput/molliex | 52741bf9267159438590449eb1cc47761ccf2aec | [
"MIT"
] | 4 | 2019-03-08T09:52:59.000Z | 2021-01-18T17:47:49.000Z | defmodule Mollie.Permissions do
import Mollie
alias Mollie.Client
@moduledoc """
All API actions through OAuth are by default protected for privacy and/or money related reasons and therefore require specific permissions. These permissions can be requested by apps during the OAuth authorization flow. The Permis... | 31.27027 | 333 | 0.728608 |
219c820d058e35d010a2123d3a728ce8b447cfc5 | 2,061 | ex | Elixir | lib/redis_logger.ex | suddenrushofsushi/redis_logger | 19c3575162998fa512753bf69ebf44218b90b979 | [
"MIT"
] | null | null | null | lib/redis_logger.ex | suddenrushofsushi/redis_logger | 19c3575162998fa512753bf69ebf44218b90b979 | [
"MIT"
] | null | null | null | lib/redis_logger.ex | suddenrushofsushi/redis_logger | 19c3575162998fa512753bf69ebf44218b90b979 | [
"MIT"
] | null | null | null | defmodule RedisLogger do
@moduledoc ~S"""
"""
use GenEvent
@default_zset "elixir_logs"
@epoch :calendar.datetime_to_gregorian_seconds({{1970, 1, 1}, {0, 0, 0}})
def init({__MODULE__, name}) do
if user = Process.whereis(:user) do
Process.group_leader(self(), user)
{:ok, configure(name, [])... | 30.308824 | 108 | 0.615235 |
219c978c2ca49699b25879adcc75c5b6c5bf4b37 | 2,515 | exs | Elixir | test/text_based_fps/room_player_test.exs | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 1 | 2022-03-02T12:18:07.000Z | 2022-03-02T12:18:07.000Z | test/text_based_fps/room_player_test.exs | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 12 | 2021-05-31T21:41:09.000Z | 2021-07-30T03:18:09.000Z | test/text_based_fps/room_player_test.exs | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | null | null | null | defmodule TextBasedFPS.RoomPlayerTest do
alias TextBasedFPS.RoomPlayer
use ExUnit.Case, async: true
test "dead?/1" do
room_player = RoomPlayer.new("foo")
assert RoomPlayer.dead?(put_in(room_player.health, 0)) == true
assert RoomPlayer.dead?(put_in(room_player.health, 1)) == false
end
test "incr... | 31.4375 | 95 | 0.689066 |
219ced356142719c4fc441e1d397eb1c1681003c | 1,864 | exs | Elixir | mix.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | null | null | null | mix.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 12 | 2017-07-24T12:29:51.000Z | 2018-04-05T03:58:10.000Z | mix.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 4 | 2017-07-24T12:19:23.000Z | 2019-02-19T06:34:46.000Z | defmodule Gobstopper.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps(),
dialyzer: [plt_add_deps: :transitive],
... | 32.137931 | 96 | 0.520386 |
219d15914732616f39119edc0001154d0b6ee5d5 | 1,004 | exs | Elixir | 06-record.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | 06-record.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | 06-record.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | ExUnit.start
defrecord User, email: nil, password: nil
defimpl String.Chars, for: User do
def to_string(User[email: email]) do
email
end
end
defmodule RecordTest do
use ExUnit.Case
defmodule ScopeTest do
use ExUnit.Case
defrecordp :person, first_name: nil, last_name: nil, age: nil
test "de... | 20.489796 | 94 | 0.64741 |
219d1a2abb9bbef7b69bbeb1b03f1e6d08c9c5bb | 28 | ex | Elixir | elixir/elixir-sips/samples/xml_parsing/lib/xml_parsing.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/xml_parsing/lib/xml_parsing.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 3 | 2020-10-25T04:40:05.000Z | 2020-10-25T04:48:10.000Z | xml_parsing/lib/xml_parsing.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule XmlParsing do
end
| 9.333333 | 23 | 0.857143 |
219d1a99f8278df9fd2901eb9a93610d4aeac22f | 627 | exs | Elixir | elixir-school/.iex.exs | MateusAquino/elixir-workspace | 269f9c23441f1dc45227ca98f8f3c6c28593b60e | [
"MIT"
] | null | null | null | elixir-school/.iex.exs | MateusAquino/elixir-workspace | 269f9c23441f1dc45227ca98f8f3c6c28593b60e | [
"MIT"
] | null | null | null | elixir-school/.iex.exs | MateusAquino/elixir-workspace | 269f9c23441f1dc45227ca98f8f3c6c28593b60e | [
"MIT"
] | null | null | null | # 17. IExHelpers
# Um arquivo .iex.exs é executado no iex sempre quando iniciado (sem necessidade de importar)
defmodule IExHelpers do
def whats_this?(term) when is_nil(term), do: "Type: Nil"
def whats_this?(term) when is_binary(term), do: "Type: Binary"
def whats_this?(term) when is_boolean(term), do: "Type: Bo... | 27.26087 | 93 | 0.704944 |
219d2025d4d2137e1bffcd251f5178d9e6cbf2bc | 1,982 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_validate_installer_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_validate_installer_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_validate_installer_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.396226 | 184 | 0.732593 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.