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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7393e8c4404e43423b938f536ef7f43441876cb5 | 59,759 | ex | Elixir | lib/elixir/lib/calendar.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | defmodule Calendar do
@moduledoc """
This module defines the responsibilities for working with
calendars, dates, times and datetimes in Elixir.
Currently it defines types and the minimal implementation
for a calendar behaviour in Elixir. The goal of the Calendar
features in Elixir is to provide a base for ... | 35.090429 | 115 | 0.633695 |
7393ebf424e96f2aa57139fa1c196bc6e573bd96 | 1,177 | exs | Elixir | config/deploy.exs | sunnys/dbfs | bf0e01b969d1107d12b8b7c0130dad17187b027b | [
"MIT"
] | 57 | 2018-01-22T22:42:16.000Z | 2022-02-18T05:20:25.000Z | config/deploy.exs | sunnys/dbfs | bf0e01b969d1107d12b8b7c0130dad17187b027b | [
"MIT"
] | 2 | 2018-05-14T20:50:41.000Z | 2021-12-12T18:15:59.000Z | config/deploy.exs | sunnys/dbfs | bf0e01b969d1107d12b8b7c0130dad17187b027b | [
"MIT"
] | 15 | 2017-11-11T04:25:04.000Z | 2022-03-07T04:55:19.000Z | use Bootleg.Config
# Configure the following roles to match your environment.
# `build` defines what remote server your distillery release should be built on.
#
# Some available options are:
# - `user`: ssh username to use for SSH authentication to the role's hosts
# - `password`: password to be used for SSH authen... | 37.967742 | 110 | 0.722175 |
7393fdf5407c509171014a2775d5996905a25900 | 10,496 | exs | Elixir | test/metrics_test.exs | wojtekmach/telemetry_metrics_prometheus_core | d5ecf3d2964b1a25827b3058c55202123263e690 | [
"Apache-2.0"
] | null | null | null | test/metrics_test.exs | wojtekmach/telemetry_metrics_prometheus_core | d5ecf3d2964b1a25827b3058c55202123263e690 | [
"Apache-2.0"
] | 1 | 2019-07-04T14:50:29.000Z | 2019-07-04T14:50:29.000Z | test/metrics_test.exs | Gazler/telemetry_metrics_prometheus_core | 6a08e81d2a0f897a3e2c050d0399c2cb9a94ab93 | [
"Apache-2.0"
] | 1 | 2020-03-30T18:50:32.000Z | 2020-03-30T18:50:32.000Z | defmodule TelemetryMetricsPrometheus.Core.MetricsTest do
use ExUnit.Case
alias Telemetry.Metrics
alias TelemetryMetricsPrometheus.Core.{Counter, Distribution, LastValue, Sum}
import ExUnit.CaptureLog
setup do
tid = :ets.new(:test_table, [:named_table, :public, :set, {:write_concurrency, true}])
di... | 29.988571 | 96 | 0.540873 |
73940236b2b595557efae280f1cc5d6debdc9a9e | 5,800 | exs | Elixir | test/CLI_test.exs | DiodonHystrix/prettier_eex_formatter | 954e0efc4cb4b4e4930f15f4bb57d55db2d301c4 | [
"MIT"
] | 2 | 2021-02-03T16:27:59.000Z | 2021-04-24T16:17:01.000Z | test/CLI_test.exs | DiodonHystrix/prettier_eex_formatter | 954e0efc4cb4b4e4930f15f4bb57d55db2d301c4 | [
"MIT"
] | 3 | 2020-06-01T10:47:51.000Z | 2020-06-06T09:46:41.000Z | test/CLI_test.exs | DiodonHystrix/prettier_eex_formatter | 954e0efc4cb4b4e4930f15f4bb57d55db2d301c4 | [
"MIT"
] | null | null | null | defmodule PrettierEexFormatter.CLITest do
use ExUnit.Case
import ExUnit.CaptureIO
import CLIHelper
test "formats multiline expression" do
bad = """
link "óww",
"ew",
Routes.some_looooooooooooooooooonger_path(@conn, :create),
"Ewe"
"""
assert_format bad, """
link(
... | 27.358491 | 91 | 0.313276 |
7394092b7fc3bbbb01679219ffffb7c9c308e8d4 | 3,493 | ex | Elixir | lib/phoenix_react_playground/content/content.ex | Cherchercher/CommentBox | 844f2aa736da8a07a666b398eb5b581d3b83b8ef | [
"Unlicense"
] | null | null | null | lib/phoenix_react_playground/content/content.ex | Cherchercher/CommentBox | 844f2aa736da8a07a666b398eb5b581d3b83b8ef | [
"Unlicense"
] | 4 | 2020-07-17T10:56:38.000Z | 2021-09-01T07:27:44.000Z | lib/phoenix_react_playground/content/content.ex | Cherchercher/CommentBox | 844f2aa736da8a07a666b398eb5b581d3b83b8ef | [
"Unlicense"
] | null | null | null | defmodule PhoenixReactPlayground.Content do
@moduledoc """
The Content context.
"""
import Ecto.Query, warn: false
alias PhoenixReactPlayground.Repo
alias PhoenixReactPlayground.Content.Comment
alias PhoenixReactPlayground.Content.Topic
@doc """
Returns the list of comments.
## Examples
ie... | 17.292079 | 62 | 0.595763 |
73941b581b6aa8c26f600c1a32ceaa0b6a19d4e3 | 705 | ex | Elixir | hippo-backend/lib/hippo_web/gettext.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 8 | 2019-05-18T10:14:06.000Z | 2021-07-31T20:58:55.000Z | hippo-backend/lib/hippo_web/gettext.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | 7 | 2019-07-20T17:48:03.000Z | 2022-02-26T10:41:56.000Z | hippo-backend/lib/hippo_web/gettext.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | 1 | 2019-07-04T02:30:09.000Z | 2019-07-04T02:30:09.000Z | defmodule HippoWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import HippoWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
7394266429375f1633455a5674afa80d36dd63a7 | 1,700 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/link.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/link.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/classroom/lib/google_api/classroom/v1/model/link.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... | 32.075472 | 144 | 0.697647 |
73947e227a93f4e3a5c6e2706e074adb46c613de | 14,424 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/api/notifications.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/notifications.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/notifications.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... | 41.687861 | 187 | 0.624861 |
739498c70b92cd26b0e0bc15bd510dac8f36b1e2 | 589 | exs | Elixir | sentences-smash/mix.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | sentences-smash/mix.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | sentences-smash/mix.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | defmodule SentenceSmasher.MixProject do
use Mix.Project
def project do
[
app: :sentence_smasher,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
... | 20.310345 | 88 | 0.587436 |
739499bd8db3e7145b3e8503f18a1c9b4472dee9 | 14,115 | exs | Elixir | test/space_ex/event_test.exs | wisq/space_ex | 56a87bdd67af093ad70e2843ff4cf963ddf7018c | [
"Apache-2.0"
] | 7 | 2018-01-30T14:09:13.000Z | 2021-01-22T22:38:32.000Z | test/space_ex/event_test.exs | wisq/space_ex | 56a87bdd67af093ad70e2843ff4cf963ddf7018c | [
"Apache-2.0"
] | null | null | null | test/space_ex/event_test.exs | wisq/space_ex | 56a87bdd67af093ad70e2843ff4cf963ddf7018c | [
"Apache-2.0"
] | 1 | 2018-01-30T14:09:17.000Z | 2018-01-30T14:09:17.000Z | defmodule SpaceEx.EventTest do
use ExUnit.Case, async: true
@moduletag :capture_log
require SpaceEx.ProcedureCall
alias SpaceEx.{Event, Stream, ProcedureCall, Protobufs, KRPC, KRPC.Expression, Types, API}
alias Stream.Result
alias SpaceEx.Protobufs.{
StreamUpdate,
StreamResult,
ProcedureResult... | 34.511002 | 100 | 0.674318 |
7394a3c4a079db5746e838be7d31981dd2dd0649 | 1,791 | ex | Elixir | lib/gps_web/telemetry.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | 1 | 2021-03-28T08:22:40.000Z | 2021-03-28T08:22:40.000Z | lib/gps_web/telemetry.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | null | null | null | lib/gps_web/telemetry.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | 1 | 2021-01-15T12:40:12.000Z | 2021-01-15T12:40:12.000Z | defmodule GpsWeb.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... | 31.982143 | 86 | 0.666667 |
7394a79b6346515351338392d69a9428a909c1eb | 1,315 | exs | Elixir | test/models/session_test.exs | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | test/models/session_test.exs | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | test/models/session_test.exs | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | defmodule Caravan.SessionTest do
use Caravan.ModelCase
alias Caravan.Repo
alias Caravan.User
alias Caravan.Session
@valid_attrs %{email: "joao@mail.com", password: "password"}
@invalid_attrs %{}
@user_attrs %{email: "joao@mail.com", password: "password", name: "João"}
test "changeset with valid attri... | 31.309524 | 75 | 0.707224 |
7394bff8e6fe0cd0d71f320224a6a1deaff80ea4 | 1,963 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/data_source_spec.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/data_source_spec.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/data_source_spec.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... | 39.26 | 175 | 0.745797 |
7394e8d395773f4b41c0e44f776e52c7532b4596 | 3,098 | exs | Elixir | test/cluster_test.exs | arjan/sworm | a76a5fed2108db2a58615cd2d1721139d608ef23 | [
"MIT"
] | 21 | 2019-05-15T09:43:20.000Z | 2021-01-12T10:04:47.000Z | test/cluster_test.exs | arjan/sworm | a76a5fed2108db2a58615cd2d1721139d608ef23 | [
"MIT"
] | 1 | 2019-05-30T09:18:28.000Z | 2019-08-16T13:41:38.000Z | test/cluster_test.exs | arjan/sworm | a76a5fed2108db2a58615cd2d1721139d608ef23 | [
"MIT"
] | null | null | null | defmodule Swurm do
use Sworm
defmodule TestServer do
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, [])
end
def init(a) do
{:ok, a}
end
end
def start_one(name) do
Swurm.register_name(name, TestServer, :start_link, [])
end
end
defmodule SwormClusterT... | 23.830769 | 98 | 0.575533 |
7395408cea4df396a67b2e4316bea779fe3fb273 | 971 | ex | Elixir | apps/astarte_realm_management_api/lib/astarte_realm_management_api_web/controllers/version_controller.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_realm_management_api/lib/astarte_realm_management_api_web/controllers/version_controller.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_realm_management_api/lib/astarte_realm_management_api_web/controllers/version_controller.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2021 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 31.322581 | 74 | 0.763131 |
73956dbc3f91ba80163dd656d959a5aa963687c6 | 846 | ex | Elixir | game_server_umbrella/apps/game_server/lib/game_server/game_supervisor.ex | jburky/dara-dots | 7a67de3d77448792435ccbf9fb8291e821fed4ac | [
"MIT"
] | 6 | 2021-03-25T21:02:28.000Z | 2022-02-10T08:11:28.000Z | game_server_umbrella/apps/game_server/lib/game_server/game_supervisor.ex | jburky/dara-dots | 7a67de3d77448792435ccbf9fb8291e821fed4ac | [
"MIT"
] | 20 | 2020-09-02T23:17:29.000Z | 2022-03-27T22:54:20.000Z | game_server_umbrella/apps/game_server/lib/game_server/game_supervisor.ex | jburky/dara-dots | 7a67de3d77448792435ccbf9fb8291e821fed4ac | [
"MIT"
] | 2 | 2021-03-25T21:08:15.000Z | 2021-09-25T19:11:36.000Z | defmodule GameServer.RpsGameSupervisor do
@moduledoc """
Dynamic supervisor used to retrieve the PIDs
of running games given the ID generated when
the game process was started.
"""
use DynamicSupervisor
def start_link(init_arg) do
DynamicSupervisor.start_link(
__MODULE__,
init_arg,
... | 21.15 | 50 | 0.682033 |
739582394b758d7beb1ea8e4e1300434f56e3ebc | 469 | ex | Elixir | lib/anchore_engine_api_server/model/credential_list.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/credential_list.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/credential_list.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule AnchoreEngineAPIServer.Model.CredentialList do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
]
@type t :: %__MODUL... | 18.038462 | 75 | 0.712154 |
7395a6b65091a7d7c6fc3b70178d5440452a396c | 1,605 | ex | Elixir | clients/content/lib/google_api/content/v21/model/liasettings_set_inventory_verification_contact_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/liasettings_set_inventory_verification_contact_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/liasettings_set_inventory_verification_contact_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.865385 | 181 | 0.753271 |
7395aa5750c366eb60c745d5b9b816ebbe94b049 | 3,377 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/api/full_hashes.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/api/full_hashes.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/api/full_hashes.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.202381 | 179 | 0.69233 |
7395b71f73e4164f9e0f9013539d79ac82bfbf8f | 1,030 | ex | Elixir | lib/graphql/types/revision.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/types/revision.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/types/revision.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.GraphQL.Types.Revision do
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers, only: [dataloader: 1]
import Accent.GraphQL.Helpers.Authorization
import Accent.GraphQL.Helpers.Fields
object :revision do
field(:id, :id)
field(:name, non_null(:string))
field(:is_master,... | 32.1875 | 109 | 0.708738 |
7395d74ec707b0d080e5b824f322e6a02c6e62f7 | 1,779 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_test_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_test_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_test_config.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... | 35.58 | 154 | 0.739741 |
7395ee1930fe45063ac5ed6b847f85b9f3bc8314 | 539 | ex | Elixir | test/support/test_case.ex | aleqsio/absinthe_plug | 94083e836944993f411f0c1510d153077b03e553 | [
"MIT"
] | 234 | 2016-03-02T07:38:25.000Z | 2022-03-14T19:44:17.000Z | test/support/test_case.ex | aleqsio/absinthe_plug | 94083e836944993f411f0c1510d153077b03e553 | [
"MIT"
] | 205 | 2016-03-02T13:52:53.000Z | 2022-03-31T23:31:36.000Z | test/support/test_case.ex | aleqsio/absinthe_plug | 94083e836944993f411f0c1510d153077b03e553 | [
"MIT"
] | 168 | 2016-03-02T09:23:56.000Z | 2022-03-31T23:27:58.000Z | defmodule Absinthe.Plug.TestCase do
defmacro __using__(_) do
quote do
use ExUnit.Case, async: true
use Plug.Test
import unquote(__MODULE__)
end
end
def call(conn, opts) do
conn
|> plug_parser
|> Absinthe.Plug.call(opts)
|> Map.update!(:resp_body, &Jason.decode!/1)
end... | 19.25 | 72 | 0.627087 |
73960cb1f39935350cf61ce5d49d5f01f66c9fe0 | 1,881 | exs | Elixir | mix.exs | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | mix.exs | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | mix.exs | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | defmodule PrintReact.MixProject do
use Mix.Project
def project do
[
app: :print_react,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliase... | 28.074627 | 84 | 0.580011 |
739621c9c7f9e1c075f407fcaf7f8da8c5820361 | 2,337 | exs | Elixir | mix.exs | herimedia/commanded-uniqueness-middleware | 508963e155a16797717dad9c35e81f9a64b0f5cf | [
"MIT"
] | null | null | null | mix.exs | herimedia/commanded-uniqueness-middleware | 508963e155a16797717dad9c35e81f9a64b0f5cf | [
"MIT"
] | null | null | null | mix.exs | herimedia/commanded-uniqueness-middleware | 508963e155a16797717dad9c35e81f9a64b0f5cf | [
"MIT"
] | null | null | null | defmodule Commanded.Middleware.Uniqueness.MixProject do
use Mix.Project
@version "0.6.1"
def project do
[
app: :commanded_uniqueness_middleware,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps()... | 24.34375 | 82 | 0.580231 |
7396280f6f49dcc5604aed6c79d9c77839628e77 | 2,543 | exs | Elixir | test/mockery/history_test.exs | kianmeng/mockery | ad843783e890000627c51b30b69a115e73617542 | [
"Apache-2.0"
] | 85 | 2017-07-29T22:03:54.000Z | 2022-03-29T09:50:49.000Z | test/mockery/history_test.exs | kianmeng/mockery | ad843783e890000627c51b30b69a115e73617542 | [
"Apache-2.0"
] | 36 | 2017-07-30T10:12:44.000Z | 2021-12-23T12:25:42.000Z | test/mockery/history_test.exs | kianmeng/mockery | ad843783e890000627c51b30b69a115e73617542 | [
"Apache-2.0"
] | 13 | 2017-07-29T09:06:47.000Z | 2021-05-20T13:36:56.000Z | # credo:disable-for-this-file Credo.Check.Design.AliasUsage
defmodule Mockery.HistoryTest do
use ExUnit.Case
use Mockery
import IO.ANSI
test "failure with too few args is marked in red" do
enable_history()
Mockery.Utils.push_call(A, :fun, 1, ["a"])
tested = fn -> Mockery.Assertions.assert_called(... | 31.395062 | 96 | 0.651593 |
73962df533fb7765759567f58367d58cbd43234d | 5,787 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.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... | 44.860465 | 155 | 0.715742 |
73968317f84f01e6c6b05f55928e488aa9a05340 | 3,220 | ex | Elixir | lib/zcash_explorer_web/live/blockchain_info_live.ex | nighthawk-apps/zcash-explorer | 87e6c61d8665f79de9e5efae6ef924b6096091fa | [
"Apache-2.0"
] | 5 | 2021-11-04T20:19:35.000Z | 2022-02-15T06:55:49.000Z | lib/zcash_explorer_web/live/blockchain_info_live.ex | nighthawk-apps/zcash-explorer | 87e6c61d8665f79de9e5efae6ef924b6096091fa | [
"Apache-2.0"
] | 5 | 2021-09-12T01:36:25.000Z | 2022-02-18T07:28:42.000Z | lib/zcash_explorer_web/live/blockchain_info_live.ex | nighthawk-apps/zcash-explorer | 87e6c61d8665f79de9e5efae6ef924b6096091fa | [
"Apache-2.0"
] | 8 | 2021-07-23T17:11:41.000Z | 2022-03-17T17:07:55.000Z | defmodule ZcashExplorerWeb.BlockChainInfoLive do
use Phoenix.LiveView
@impl true
def render(assigns) do
~L"""
<div>
<dl class="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">
<div class="px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6">
<dt class="text-sm font-medium text-gray-500 ... | 30.377358 | 89 | 0.602174 |
739687c0dbbec531977f2d23d6d8c4390159a9eb | 2,295 | exs | Elixir | test/parser/variables_test.exs | boomba-bot/boomba | 285f24edd69736f3663e5b1c6efa4ee4d54a667e | [
"MIT"
] | null | null | null | test/parser/variables_test.exs | boomba-bot/boomba | 285f24edd69736f3663e5b1c6efa4ee4d54a667e | [
"MIT"
] | 12 | 2021-09-29T17:49:53.000Z | 2021-10-09T14:53:48.000Z | test/parser/variables_test.exs | boomba-bot/boomba | 285f24edd69736f3663e5b1c6efa4ee4d54a667e | [
"MIT"
] | null | null | null | defmodule BoombaTest.Parser.Variables do
use ExUnit.Case
alias Boomba.Parser.Variables
doctest(Boomba.Parser.Variables)
setup_all do
{:ok, %{message: %{author: %{id: "168706817348730881"}, content: "!cmd arg1 arg2 arg3 arg4"}}}
end
test "sender/source", state do
sender = Variables.variable("sender... | 29.805195 | 98 | 0.651416 |
73968b606bebc8bf054223e57d781de8ecb62c09 | 1,038 | exs | Elixir | deps/argon2_elixir/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/argon2_elixir/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/argon2_elixir/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Argon2.Mixfile do
use Mix.Project
@version "1.3.3"
@description """
Argon2 password hashing algorithm for Elixir
"""
def project do
[
app: :argon2_elixir,
version: @version,
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
compilers: [:elix... | 22.565217 | 100 | 0.552023 |
7396ccf1e96df4391af8128f5bebc413adc4905c | 5,435 | exs | Elixir | test/components/form/checkbox_test.exs | leandrocp/surface | 6500a41285de37219b9f71c2a77132c1a84b824a | [
"MIT"
] | null | null | null | test/components/form/checkbox_test.exs | leandrocp/surface | 6500a41285de37219b9f71c2a77132c1a84b824a | [
"MIT"
] | null | null | null | test/components/form/checkbox_test.exs | leandrocp/surface | 6500a41285de37219b9f71c2a77132c1a84b824a | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.CheckboxTest do
use Surface.ConnCase, async: true
alias Surface.Components.Form
alias Surface.Components.Form.Checkbox
test "checkbox" do
html =
render_surface do
~H"""
<Checkbox form="user" field="admin" />
"""
end
assert html =~ ... | 22.932489 | 111 | 0.534499 |
7396d9ad41b15b023f9ad98bb95dff65dea76243 | 16,973 | exs | Elixir | test/blue_jet/identity/identity_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | test/blue_jet/identity/identity_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | test/blue_jet/identity/identity_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.IdentityTest do
use BlueJet.ContextCase
alias BlueJet.Identity
alias BlueJet.Identity.Service
def get_account_membership(user, account) do
Service.get_account_membership(%{user_id: user.id}, %{account: account})
end
def create_email_verification_token(managed_user) do
expect(Eve... | 27.553571 | 135 | 0.62947 |
7396df156ad569d5bd959890dc15d59de403db6c | 2,815 | ex | Elixir | lib/expug.ex | rstacruz/expug | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 89 | 2016-06-27T07:06:23.000Z | 2022-03-15T18:21:50.000Z | lib/expug.ex | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 11 | 2016-07-28T17:12:39.000Z | 2021-01-22T02:54:58.000Z | lib/expug.ex | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 4 | 2016-07-26T15:50:35.000Z | 2019-09-16T22:49:21.000Z | defmodule Expug do
@moduledoc ~S"""
Expug compiles templates to an eex template.
`to_eex/2` turns an Expug source into an EEx template.
iex> source = "div\n | Hello"
iex> Expug.to_eex(source)
{:ok, "<div>\nHello<%= \"\\n\" %></div>\n"}
`to_eex!/2` is the same, and instead returns the resul... | 28.15 | 115 | 0.601421 |
7396e4f9df42e98b113d6872a3f6fa3ecd7558bc | 7,670 | ex | Elixir | lib/botmodules/happiness.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | 2 | 2015-04-11T04:30:34.000Z | 2015-04-18T19:12:25.000Z | lib/botmodules/happiness.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | null | null | null | lib/botmodules/happiness.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | null | null | null | # inspired by http://begriffs.com/posts/2015-03-15-tracking-joy-at-work.html
defmodule BotHappiness do
@behaviour BotModule
@moduledoc "Track happiness levels (with anonymized data). !happyme to opt in. !happystats for anonymized and aggregated statistics."
@description "Thank you for opting into our happiness su... | 35.674419 | 182 | 0.672751 |
7396faa9a9451d1993d69d3978790e292cad95f8 | 202 | exs | Elixir | test/skillset_web/controllers/page_controller_test.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | test/skillset_web/controllers/page_controller_test.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | test/skillset_web/controllers/page_controller_test.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | defmodule SkillsetWeb.PageControllerTest do
use SkillsetWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.444444 | 60 | 0.683168 |
7397286f375fd2ff7c4bf62e1a1eeafa52e2dbd1 | 4,252 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/org_chart_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/org_chart_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/org_chart_spec.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... | 49.44186 | 162 | 0.715663 |
7397303acef238cc470058f1463841402d8702cc | 508 | exs | Elixir | examples/stripe/test/stripe_test.exs | pdgonzalez872/openapi | 3e598c005e2c5fa302d50fbeb88634aac4cd3d50 | [
"Apache-2.0"
] | 22 | 2021-03-07T03:33:50.000Z | 2021-09-08T14:31:03.000Z | examples/stripe/test/stripe_test.exs | pdgonzalez872/openapi | 3e598c005e2c5fa302d50fbeb88634aac4cd3d50 | [
"Apache-2.0"
] | null | null | null | examples/stripe/test/stripe_test.exs | pdgonzalez872/openapi | 3e598c005e2c5fa302d50fbeb88634aac4cd3d50 | [
"Apache-2.0"
] | 1 | 2021-08-13T12:37:00.000Z | 2021-08-13T12:37:00.000Z | defmodule StripeTest do
use ExUnit.Case, async: true
test "it works" do
assert {:get_account, 1} in Stripe.__info__(:functions)
assert {:get_charges, 1} in Stripe.__info__(:functions)
end
end
defmodule StripeIntegrationTest do
use ExUnit.Case, async: true
@moduletag :integration
test "it works" ... | 22.086957 | 59 | 0.71063 |
73973f0026655f989b7b55116234445f78664a6b | 1,733 | ex | Elixir | lib/advent_of_code/day_23_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | 3 | 2017-12-26T20:51:47.000Z | 2019-05-14T04:59:38.000Z | lib/advent_of_code/day_23_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | lib/advent_of_code/day_23_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day23A do
def run(input) do
input
|> Stream.map(&String.trim/1)
|> Stream.reject(& &1 == "")
|> Stream.map(& &1 |> String.split(" ") |> process)
|> Enum.to_list
|> step(0, %{"mul" => 0})
end
defp process(["set", a, b]), do: {:set, parse(a), parse(b)}
... | 25.485294 | 74 | 0.535488 |
7397448fb4fb2a66fc0f2213a3f5afe06def4cbd | 421 | exs | Elixir | test/cookbook_web/views/error_view_test.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | test/cookbook_web/views/error_view_test.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | 11 | 2021-12-19T09:07:30.000Z | 2022-01-01T17:54:43.000Z | test/cookbook_web/views/error_view_test.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | defmodule CookbookWeb.ErrorViewTest do
use CookbookWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(CookbookWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.066667 | 93 | 0.736342 |
73974ef8452768d35706e06a05c2124fa5937432 | 6,441 | ex | Elixir | lib/aws/cloud_hsm_v2.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/cloud_hsm_v2.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/cloud_hsm_v2.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"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.CloudHSMV2 do
@moduledoc """
For more information about AWS CloudHSM, see [AWS
CloudHSM](http://aws.amazon.com/cloudhsm/) and the [AWS CloudHSM User
Guide](https://docs.aws.amazon.com/clou... | 35.39011 | 77 | 0.685918 |
739766c8af7cece2026fe066c211ef7c11dfbf78 | 3,570 | ex | Elixir | test/example_domain/bank_account/bank_account.ex | amatalai/commanded | 1e62888bdd733741fd08d42d9350282071764b35 | [
"MIT"
] | null | null | null | test/example_domain/bank_account/bank_account.ex | amatalai/commanded | 1e62888bdd733741fd08d42d9350282071764b35 | [
"MIT"
] | null | null | null | test/example_domain/bank_account/bank_account.ex | amatalai/commanded | 1e62888bdd733741fd08d42d9350282071764b35 | [
"MIT"
] | null | null | null | defmodule Commanded.ExampleDomain.BankAccount do
@moduledoc false
defstruct account_number: nil,
balance: 0,
state: nil
alias Commanded.ExampleDomain.BankAccount
defmodule Commands do
defmodule(OpenAccount, do: defstruct([:account_number, :initial_balance]))
defmodule(DepositMo... | 32.162162 | 99 | 0.688515 |
7397a32fe8421d079aae0a5ef105284eaf4cd7c2 | 777 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/packet_capture.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/packet_capture.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/packet_capture.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.PacketCapture do
@moduledoc """
Parameters that define the create packet capture operation.
"""
... | 27.75 | 117 | 0.752896 |
739818561922b3cb64aa574a8a9f2fa49a925575 | 1,791 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/list_spaces_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/list_spaces_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/list_spaces_response.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... | 34.442308 | 136 | 0.721943 |
7398198e8fb4c1d4884ede99ff6003c9717145f7 | 3,342 | exs | Elixir | test/sanbase_web/graphql/metric/api_metric_metadata_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | test/sanbase_web/graphql/metric/api_metric_metadata_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | test/sanbase_web/graphql/metric/api_metric_metadata_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.ApiMetricMetadataTest do
use SanbaseWeb.ConnCase, async: false
import Sanbase.Factory, only: [rand_str: 0]
import SanbaseWeb.Graphql.TestHelpers
alias Sanbase.Metric
test "returns data for all available metric", %{conn: conn} do
metrics =
Metric.available_metrics()
... | 28.810345 | 98 | 0.530521 |
739851e486102a4db2bbf7571a333f000149247a | 1,815 | exs | Elixir | mix.exs | bmquinn/cardex | 012f541808dfa1b59418554ba087032f65ca8b71 | [
"Apache-2.0"
] | null | null | null | mix.exs | bmquinn/cardex | 012f541808dfa1b59418554ba087032f65ca8b71 | [
"Apache-2.0"
] | null | null | null | mix.exs | bmquinn/cardex | 012f541808dfa1b59418554ba087032f65ca8b71 | [
"Apache-2.0"
] | null | null | null | defmodule Cardex.MixProject do
use Mix.Project
def project do
[
app: :cardex,
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(),
... | 27.5 | 84 | 0.579063 |
73986c8f792361aa346946c7efbbef0da0a69cd2 | 294 | ex | Elixir | lib/hl7/2.4/segments/cti.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/cti.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/cti.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.CTI do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
sponsor_study_id: DataTypes.Ei,
study_phase_identifier: DataTypes.Ce,
study_scheduled_time_point: DataTypes.Ce
]
end
| 19.6 | 46 | 0.70068 |
7398771596a4140e2e3285c60191015b2ccfd658 | 531 | ex | Elixir | lib/radiator/media/episode_image.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | lib/radiator/media/episode_image.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | lib/radiator/media/episode_image.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | defmodule Radiator.Media.EpisodeImage do
use Arc.Definition
use Arc.Ecto.Definition
@versions [:original, :thumbnail]
def filename(version, {_file, _episode}) do
"cover_#{version}"
end
def storage_dir(_version, {_file, episode}) do
"episode/#{episode.id}"
end
def s3_object_headers(_version, ... | 23.086957 | 87 | 0.706215 |
73987f23ab106551e586da2bd590e3ce31da61ca | 24,949 | ex | Elixir | lib/mix/lib/mix.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2019-06-27T08:47:13.000Z | 2019-06-27T08:47:13.000Z | lib/mix/lib/mix.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | defmodule Mix do
@moduledoc ~S"""
Mix is a build tool that provides tasks for creating, compiling,
and testing Elixir projects, managing its dependencies, and more.
## Mix.Project
The foundation of Mix is a project. A project can be defined by using
`Mix.Project` in a module, usually placed in a file name... | 31.38239 | 148 | 0.664516 |
739937e3a1420f37979490b0803fc0e87e76facf | 433 | ex | Elixir | apps/tai/lib/tai/venue_adapters/huobi/products.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/venue_adapters/huobi/products.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/huobi/products.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenueAdapters.Huobi.Products do
alias ExHuobi.Futures
def products(venue_id) do
with {:ok, future_instruments} <- Futures.Contracts.get() do
future_products =
future_instruments |> Enum.map(&Tai.VenueAdapters.Huobi.Product.build(&1, venue_id))
products = future_products
... | 25.470588 | 92 | 0.720554 |
739943ede311467a5c86fc33d0034cea90846a2e | 336 | ex | Elixir | lib/glimesh_web/live/homepage_live.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | lib/glimesh_web/live/homepage_live.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | lib/glimesh_web/live/homepage_live.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.HomepageLive do
use GlimeshWeb, :live_view
@impl true
def mount(_params, session, socket) do
# If the viewer is logged in set their locale, otherwise it defaults to English
if session["locale"], do: Gettext.put_locale(session["locale"])
{:ok, socket |> assign(:page_title, "Glime... | 28 | 83 | 0.714286 |
739947df63a9b91d66a3cf8b16456344a0bdde32 | 71 | ex | Elixir | data/web/web/views/layout_view.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/web/views/layout_view.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/web/views/layout_view.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule TrainsElixir.LayoutView do
use TrainsElixir.Web, :view
end
| 17.75 | 36 | 0.816901 |
7399621c7d5056befd8536ddbe63640f22d7467d | 187 | exs | Elixir | chat-api/test/controllers/page_controller_test.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | chat-api/test/controllers/page_controller_test.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | 3 | 2018-01-23T10:53:08.000Z | 2018-01-23T10:58:23.000Z | chat-api/test/controllers/page_controller_test.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | defmodule Chat.PageControllerTest do
use Chat.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 20.777778 | 60 | 0.663102 |
73996287998283132a2a216503f32ea0dfe9f4ae | 785 | ex | Elixir | lib/populate/utils.ex | thusfresh/populate | 2fd05244ff76e678b0608eabd029334f4bbcf99a | [
"BSD-3-Clause"
] | null | null | null | lib/populate/utils.ex | thusfresh/populate | 2fd05244ff76e678b0608eabd029334f4bbcf99a | [
"BSD-3-Clause"
] | null | null | null | lib/populate/utils.ex | thusfresh/populate | 2fd05244ff76e678b0608eabd029334f4bbcf99a | [
"BSD-3-Clause"
] | null | null | null | defmodule Populate.Utils do
@moduledoc """
Utilities for the populate library.
"""
@doc """
Set the random number generators seed.
NB: This is fixed between erlang VM runs -- for different random values,
this must be called.
"""
def reseed(seed \\ :erlang.timestamp) do
:random.seed(seed)
end
... | 24.53125 | 74 | 0.650955 |
7399dcd7eccdc038b4792f702f8fab6a3f2a43f2 | 801 | ex | Elixir | lib/ex_polygon/rest/market_holidays.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/rest/market_holidays.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/rest/market_holidays.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | defmodule ExPolygon.Rest.MarketHolidays do
@moduledoc """
Returns a call to "Market Holidays" Polygon.io
"""
@type holiday :: ExPolygon.MarketHoliday.t()
@type api_key :: ExPolygon.Rest.HTTPClient.api_key()
@type shared_error_reasons :: ExPolygon.Rest.HTTPClient.shared_error_reasons()
@path "/v1/markets... | 26.7 | 90 | 0.666667 |
7399f30e5076521ef5e346a6f9302661a91e7b93 | 5,608 | ex | Elixir | lib/plug_rails_cookie_session_store.ex | RudolfMan/plug_rails_cookie_session_store | 4c1e7b7f430cf90cbde6269feb45f9c2dde67f63 | [
"MIT"
] | 97 | 2015-01-12T11:37:25.000Z | 2021-12-28T06:20:18.000Z | lib/plug_rails_cookie_session_store.ex | RudolfMan/plug_rails_cookie_session_store | 4c1e7b7f430cf90cbde6269feb45f9c2dde67f63 | [
"MIT"
] | 18 | 2015-01-10T05:45:57.000Z | 2022-02-03T09:54:21.000Z | lib/plug_rails_cookie_session_store.ex | RudolfMan/plug_rails_cookie_session_store | 4c1e7b7f430cf90cbde6269feb45f9c2dde67f63 | [
"MIT"
] | 27 | 2015-01-10T00:15:07.000Z | 2021-06-29T15:22:41.000Z | defmodule PlugRailsCookieSessionStore do
@moduledoc """
Stores the session in a cookie.
This cookie store is based on `Plug.Crypto.MessageVerifier`
and `Plug.Crypto.Message.Encryptor` which encrypts and signs
each cookie to ensure they can't be read nor tampered with.
Since this store uses crypto features... | 31.863636 | 97 | 0.689907 |
7399f7c4277ca122c4d00fdba749b96b7ce37657 | 96 | ex | Elixir | lib/ch/repo.ex | ckampfe/ch | 88d1ab3f7b8cf4be63913348610ba78a3e9e2e54 | [
"BSD-3-Clause"
] | null | null | null | lib/ch/repo.ex | ckampfe/ch | 88d1ab3f7b8cf4be63913348610ba78a3e9e2e54 | [
"BSD-3-Clause"
] | null | null | null | lib/ch/repo.ex | ckampfe/ch | 88d1ab3f7b8cf4be63913348610ba78a3e9e2e54 | [
"BSD-3-Clause"
] | null | null | null | defmodule Ch.Repo do
use Ecto.Repo,
otp_app: :ch,
adapter: Ecto.Adapters.Postgres
end
| 16 | 35 | 0.697917 |
7399f9296eb23613fb79249d1bd419d1e8abb76f | 2,081 | ex | Elixir | lib/probability_weighting_function/participant.ex | xeejp/xee_probability_weighting_function | dc58d41e5921719c9f3410978923eb7b1c405ea6 | [
"MIT"
] | null | null | null | lib/probability_weighting_function/participant.ex | xeejp/xee_probability_weighting_function | dc58d41e5921719c9f3410978923eb7b1c405ea6 | [
"MIT"
] | null | null | null | lib/probability_weighting_function/participant.ex | xeejp/xee_probability_weighting_function | dc58d41e5921719c9f3410978923eb7b1c405ea6 | [
"MIT"
] | null | null | null | defmodule ProbabilityWeightingFunction.Participant do
alias ProbabilityWeightingFunction.Actions
require Logger
# Actions
def fetch_contents(data, id) do
Actions.update_participant_contents(data, id)
end
def set_question(data,id,question) do
data = data
|>put_in([:participants,id,:ques... | 30.602941 | 137 | 0.626141 |
739a7669c9c152a2c7e935aa20df6913a9a066f8 | 211 | ex | Elixir | lib/kubex/replicate_set.ex | IanLuites/kubex | ef26f539a130cc416fc605e66623e715e35521df | [
"MIT"
] | 1 | 2020-01-12T03:41:14.000Z | 2020-01-12T03:41:14.000Z | lib/kubex/replicate_set.ex | IanLuites/kubex | ef26f539a130cc416fc605e66623e715e35521df | [
"MIT"
] | null | null | null | lib/kubex/replicate_set.ex | IanLuites/kubex | ef26f539a130cc416fc605e66623e715e35521df | [
"MIT"
] | null | null | null | defmodule Kubex.ReplicaSet do
@doc false
def __resource__ do
"replicasets"
end
@doc false
def __default__ do
%{
kind: __MODULE__,
apiVersion: :"extensions/v1beta1"
}
end
end
| 14.066667 | 39 | 0.64455 |
739a79c7911bd84e4d6ec8cd623d51c796c27bb8 | 280 | exs | Elixir | test/modal_example_web/views/layout_view_test.exs | pthompson/liveview_tailwind_modal | 5e5d173cdc8e4710ab98ce0a925822f4c72cd3ea | [
"MIT"
] | 25 | 2020-07-29T04:21:10.000Z | 2022-02-07T16:06:51.000Z | test/modal_example_web/views/layout_view_test.exs | pthompson/liveview_tailwind_modal | 5e5d173cdc8e4710ab98ce0a925822f4c72cd3ea | [
"MIT"
] | null | null | null | test/modal_example_web/views/layout_view_test.exs | pthompson/liveview_tailwind_modal | 5e5d173cdc8e4710ab98ce0a925822f4c72cd3ea | [
"MIT"
] | 8 | 2020-08-19T13:06:39.000Z | 2021-08-11T17:18:34.000Z | defmodule ModalExampleWeb.LayoutViewTest do
use ModalExampleWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 31.111111 | 65 | 0.775 |
739a876b6473523868abb4061ad333474f2cc401 | 250 | ex | Elixir | lib/ex_binance/responses/create_order.ex | arturictus/ex_binance | 9d1f51070a452e5e763a1d148d1151dddedd1956 | [
"MIT"
] | null | null | null | lib/ex_binance/responses/create_order.ex | arturictus/ex_binance | 9d1f51070a452e5e763a1d148d1151dddedd1956 | [
"MIT"
] | null | null | null | lib/ex_binance/responses/create_order.ex | arturictus/ex_binance | 9d1f51070a452e5e763a1d148d1151dddedd1956 | [
"MIT"
] | null | null | null | defmodule ExBinance.Responses.CreateOrder do
defstruct ~w(
client_order_id
executed_qty
order_id
orig_qty
price
side
status
symbol
time_in_force
transact_time
type
fills
)a
use ExConstructor
end
| 13.157895 | 44 | 0.676 |
739b01ebb812ea5b4560e3a4238cc00d5d464a82 | 1,383 | ex | Elixir | lib/samly.ex | bundacia/samly | 9e742d473f7dcc3b183b519695e2912891212a5b | [
"MIT"
] | null | null | null | lib/samly.ex | bundacia/samly | 9e742d473f7dcc3b183b519695e2912891212a5b | [
"MIT"
] | null | null | null | lib/samly.ex | bundacia/samly | 9e742d473f7dcc3b183b519695e2912891212a5b | [
"MIT"
] | null | null | null | defmodule Samly do
@moduledoc """
Elixir library used to enable SAML SP SSO to a Phoenix/Plug based application.
"""
alias Plug.Conn
alias Samly.{Assertion, State}
@doc """
Returns authenticated user SAML Assertion.
The struct includes the attributes sent from IdP as well as any corresponding locally... | 27.66 | 87 | 0.705712 |
739b12f6488c43ef28eed264effda5b008e81a4b | 1,276 | ex | Elixir | lib/money/ecto/currency_type.ex | stefanluptak/money | 51b4b403787f76e21b12fc162270113a6cfe6a08 | [
"MIT"
] | 350 | 2019-02-21T02:25:03.000Z | 2022-03-10T02:35:50.000Z | lib/money/ecto/currency_type.ex | stefanluptak/money | 51b4b403787f76e21b12fc162270113a6cfe6a08 | [
"MIT"
] | 68 | 2019-02-21T07:19:17.000Z | 2022-03-29T03:13:12.000Z | lib/money/ecto/currency_type.ex | stefanluptak/money | 51b4b403787f76e21b12fc162270113a6cfe6a08 | [
"MIT"
] | 70 | 2015-08-28T16:45:57.000Z | 2019-02-06T01:11:11.000Z | if Code.ensure_loaded?(Ecto.Type) do
defmodule Money.Ecto.Currency.Type do
@moduledoc """
Provides a type for Ecto to store a currency.
The underlying data type is a string.
## Migration
create table(:my_table) do
add :currency, :varchar, size: 3
end
## Schema
... | 22.385965 | 71 | 0.587774 |
739b15965c5eff0cbb56ef173734eb8e5854e6bd | 456 | ex | Elixir | farmbot_os/platform/host/system_tasks.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_os/platform/host/system_tasks.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_os/platform/host/system_tasks.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Platform.Host.SystemTasks do
@moduledoc "Host implementation for Farmbot.System."
@behaviour FarmbotOS.System
def reboot() do
Application.stop(:farmbot)
Application.stop(:farmbot_ext)
Application.stop(:farmbot_core)
Application.ensure_all_started(:farmbot_core)
Applicati... | 22.8 | 54 | 0.756579 |
739b191030612a1f62f7e5d1bb3a259b8c53f9ff | 4,346 | ex | Elixir | lib/discovery_api/data/model.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | lib/discovery_api/data/model.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | lib/discovery_api/data/model.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Data.Model do
@moduledoc """
utilities to persist and load discovery data models
"""
alias DiscoveryApi.Data.Persistence
@behaviour Access
defstruct [
:accessLevel,
:categories,
:completeness,
:conformsToUri,
:contactEmail,
:contactName,
:describedByMimeT... | 22.994709 | 108 | 0.630925 |
739b264158318770650b2ba45e9e2de59d6a4cc7 | 1,674 | exs | Elixir | lib/mix/test/mix/tasks/help_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/help_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/help_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.HelpTest do
use MixTest.Case
import ExUnit.CaptureIO
test "help lists all tasks" do
in_fixture "no_mixfile", fn ->
Mix.Tasks.Help.run []
assert_received {:mix_shell, :info, ["mix" <> _]}
assert_received {:mix_shell, :i... | 25.753846 | 97 | 0.601553 |
739b302ec341be3c6296f10c26518677169eff15 | 1,271 | ex | Elixir | lib/api_phoenix_jwt_crud_web/endpoint.ex | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | lib/api_phoenix_jwt_crud_web/endpoint.ex | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | lib/api_phoenix_jwt_crud_web/endpoint.ex | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | defmodule ApiPhoenixJwtCrudWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :api_phoenix_jwt_crud
socket "/socket", ApiPhoenixJwtCrudWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.dig... | 28.244444 | 63 | 0.720692 |
739b49a25dc0359d766f37fba75e0e1f37f22d78 | 157 | exs | Elixir | .formatter.exs | Ovyerus/brewing-stand | a631d5e90485b959525e3a79b941f7aaa86b3fdd | [
"MIT"
] | 14 | 2021-03-28T10:27:50.000Z | 2021-04-27T10:14:07.000Z | .formatter.exs | Ovyerus/brewing-stand | a631d5e90485b959525e3a79b941f7aaa86b3fdd | [
"MIT"
] | null | null | null | .formatter.exs | Ovyerus/brewing-stand | a631d5e90485b959525e3a79b941f7aaa86b3fdd | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}", "priv/**/*.{ex,exs"],
locals_without_parens: [defenum: 1]
]
| 26.166667 | 91 | 0.585987 |
739b4ff0ab5e911b0167fd5749e74b084367f276 | 3,328 | exs | Elixir | mix.exs | ooodigi/nerves_influxdb2_x86_64 | 606a29ceee95eed83468eb003766a97c58f5a4d1 | [
"Apache-2.0"
] | null | null | null | mix.exs | ooodigi/nerves_influxdb2_x86_64 | 606a29ceee95eed83468eb003766a97c58f5a4d1 | [
"Apache-2.0"
] | null | null | null | mix.exs | ooodigi/nerves_influxdb2_x86_64 | 606a29ceee95eed83468eb003766a97c58f5a4d1 | [
"Apache-2.0"
] | null | null | null | defmodule NervesInfluxDB2X8664.MixProject do
use Mix.Project
@github_organization "ooodigi"
@app :nerves_influxdb2_x86_64
@source_url "https://github.com/#{@github_organization}/#{@app}"
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
... | 23.942446 | 79 | 0.583534 |
739b598dae660f5a541de1586c4a85568d513e2d | 1,394 | exs | Elixir | test/chaos_spawn/chaotic/worker_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 90 | 2015-09-29T16:40:17.000Z | 2022-02-20T18:45:54.000Z | test/chaos_spawn/chaotic/worker_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 17 | 2015-09-29T15:37:43.000Z | 2015-12-09T08:46:41.000Z | test/chaos_spawn/chaotic/worker_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 6 | 2015-12-03T16:03:35.000Z | 2018-06-28T00:54:08.000Z | defmodule Chaotic.WorkerTest do
use ExUnit.Case
alias ChaosSpawn.Chaotic.ChaoticWorker
alias ChaosSpawn.Chaotic.Supervisor.Wrapper
test "worker/2 wraps up a call to Supervisor.Spec worker" do
args = [:arg_one, :arg_two]
expected = {
ModuleToCall,
{Wrapper, :start_link_wrapper, [ModuleToCal... | 23.627119 | 78 | 0.644189 |
739b625480ad2edf12c2a9a1169851dbadf795d2 | 2,407 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/regular_file.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/testing/lib/google_api/testing/v1/model/regular_file.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/testing/lib/google_api/testing/v1/model/regular_file.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.14 | 821 | 0.746572 |
739b632b00cfceb1cc3f445e9cfb6c4d53061674 | 1,606 | ex | Elixir | apps/admin_app/test/support/conn_case.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/admin_app/test/support/conn_case.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/admin_app/test/support/conn_case.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule AdminAppWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if th... | 26.327869 | 82 | 0.671233 |
739b6ccbea8a6419bc73138165e5838b33ef3b2e | 1,357 | ex | Elixir | lib/maru/params/types/atom.ex | elixir-maru/maru_params | 4bc1d05008e881136aff87667791ed4da1c12bd4 | [
"WTFPL"
] | 4 | 2021-12-29T06:45:02.000Z | 2022-02-10T12:48:57.000Z | lib/maru/params/types/atom.ex | elixir-maru/maru_params | 4bc1d05008e881136aff87667791ed4da1c12bd4 | [
"WTFPL"
] | null | null | null | lib/maru/params/types/atom.ex | elixir-maru/maru_params | 4bc1d05008e881136aff87667791ed4da1c12bd4 | [
"WTFPL"
] | 1 | 2021-12-29T06:45:03.000Z | 2021-12-29T06:45:03.000Z | defmodule Maru.Params.Types.Atom do
@moduledoc """
Buildin Type: Atom
## Validator Arguments
* `:ecto_enum` - validate input by `Ecto.Enum.dump_values/2`
* `:values` - validate output is one item of given values
## Examples
optional :role, Atom, values: [:role1, :role2]
optional :fruit... | 26.096154 | 71 | 0.632277 |
739b6eef8fecf909a472a4ac0da940e598c91823 | 278 | exs | Elixir | test/event_store/adapters/couch/subscription_test.exs | skunkwerks/commanded | 10e08641a190259056d52a35cfce1ba9575f4fb3 | [
"MIT"
] | null | null | null | test/event_store/adapters/couch/subscription_test.exs | skunkwerks/commanded | 10e08641a190259056d52a35cfce1ba9575f4fb3 | [
"MIT"
] | null | null | null | test/event_store/adapters/couch/subscription_test.exs | skunkwerks/commanded | 10e08641a190259056d52a35cfce1ba9575f4fb3 | [
"MIT"
] | null | null | null | defmodule Commanded.EventStore.Adapters.Couch.SubscriptionTest do
alias Commanded.EventStore.Adapters.Couch
use Commanded.EventStore.CouchTestCase
use Commanded.EventStore.SubscriptionTestCase, event_store: Couch
defp event_store_wait(default \\ nil), do: default
end
| 30.888889 | 67 | 0.830935 |
739b982b0e7ba90516270796dd6f1065ea62f0e6 | 1,289 | exs | Elixir | config/dev.exs | lambda2/matrice-site | 5ce6f9d8973f590ee431dab3c020aa24eed20cc4 | [
"MIT"
] | null | null | null | config/dev.exs | lambda2/matrice-site | 5ce6f9d8973f590ee431dab3c020aa24eed20cc4 | [
"MIT"
] | null | null | null | config/dev.exs | lambda2/matrice-site | 5ce6f9d8973f590ee431dab3c020aa24eed20cc4 | [
"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.
config :matrice, Matrice.Endpoint,
http: [port: 4000]... | 29.295455 | 73 | 0.691234 |
739bc29ae11f01b9d87807f033ffcdb4c349ce43 | 4,903 | ex | Elixir | client/lib/client/worker.ex | vfournie/udp-playground | c180004344d5b673730dae04848294902e6a75ee | [
"MIT"
] | null | null | null | client/lib/client/worker.ex | vfournie/udp-playground | c180004344d5b673730dae04848294902e6a75ee | [
"MIT"
] | null | null | null | client/lib/client/worker.ex | vfournie/udp-playground | c180004344d5b673730dae04848294902e6a75ee | [
"MIT"
] | null | null | null | defmodule UdpClient.Worker do
use GenServer
require Logger
@so_sndbuf_size 2097152 # 2 MB
@so_rcvbuf_size 2097152 # 2 MB
defmodule State do
defstruct [
socket: nil,
address: nil,
port: nil,
client_id: nil,
timer_pid: nil,
... | 25.536458 | 114 | 0.578625 |
739bdd5ee4dcd364ec064defae90f20faa4e7de7 | 477 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/model/big_cat_all_of.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 11,868 | 2018-05-12T02:58:07.000Z | 2022-03-31T21:19:39.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/big_cat_all_of.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 9,672 | 2018-05-12T14:25:43.000Z | 2022-03-31T23:59:30.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/big_cat_all_of.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 4,776 | 2018-05-12T12:06:08.000Z | 2022-03-31T19:52:51.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenapiPetstore.Model.BigCatAllOf do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"kind"
]
@type t :: %__MODULE__{
... | 18.346154 | 91 | 0.685535 |
739bfea47cf93b7deba995ee62f72670fa15eb86 | 2,784 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_aggregated_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_aggregated_list.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_aggregated_list.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... | 44.190476 | 381 | 0.74102 |
739c04650f509a1813c4c0deab737328c53d85e4 | 564 | ex | Elixir | apps/ejoi_stats/lib/ejoi_stats_web/views/changeset_view.ex | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | null | null | null | apps/ejoi_stats/lib/ejoi_stats_web/views/changeset_view.ex | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | 2 | 2021-03-10T05:08:08.000Z | 2021-05-11T01:05:07.000Z | apps/ejoi_stats/lib/ejoi_stats_web/views/changeset_view.ex | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | null | null | null | defmodule EjoiStatsWeb.ChangesetView do
use EjoiStatsWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`EjoiStatsWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changes... | 28.2 | 65 | 0.741135 |
739c190d1cef909c89c4beeb0cd79540d62db00a | 1,125 | ex | Elixir | lib/json5/encode.ex | thomas9911/json5 | be16e6bcc1f64dd07143d48a21c37860cc8baa85 | [
"MIT"
] | null | null | null | lib/json5/encode.ex | thomas9911/json5 | be16e6bcc1f64dd07143d48a21c37860cc8baa85 | [
"MIT"
] | null | null | null | lib/json5/encode.ex | thomas9911/json5 | be16e6bcc1f64dd07143d48a21c37860cc8baa85 | [
"MIT"
] | null | null | null | defmodule Json5.Encode do
@moduledoc """
Encode Elixir term to Json5 string
"""
require Decimal
require Json5.ECMA
alias Json5.Encode.Array
alias Json5.Encode.Object
alias Json5.Error
defguardp is_to_string(input)
when input in [true, false] or is_float(input) or is_integer(input) or
... | 22.058824 | 82 | 0.653333 |
739c2c6a06faf8c75026c5f5fade040265ec7652 | 583 | exs | Elixir | phoenix/test/views/error_view_test.exs | sap-archive/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | 1 | 2020-01-03T16:00:09.000Z | 2020-01-03T16:00:09.000Z | phoenix/test/views/error_view_test.exs | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | phoenix/test/views/error_view_test.exs | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | defmodule LoginProxy.ErrorViewTest do
use LoginProxy.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(LoginProxy.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
739c32f2cf42d134b8cd57e7ace931c1c92f75ca | 78 | exs | Elixir | youtube/groxio/tetris/test/tetris_web/views/page_view_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | youtube/groxio/tetris/test/tetris_web/views/page_view_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | youtube/groxio/tetris/test/tetris_web/views/page_view_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule TetrisWeb.PageViewTest do
use TetrisWeb.ConnCase, async: true
end
| 19.5 | 37 | 0.820513 |
739c38d9e640aa8b3692fc7e2328e6afd47133b9 | 1,160 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.25 | 77 | 0.748276 |
739c3d0c06d8b0bbad5f472e30ec62bedbb996b3 | 3,550 | exs | Elixir | mix.exs | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | mix.exs | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | mix.exs | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | defmodule Timex.Mixfile do
use Mix.Project
def project do
[ app: :timex,
version: "2.1.4",
elixir: "~> 1.1",
description: description,
package: package,
deps: deps,
docs: docs,
compilers: [:gettext] ++ Mix.compilers,
test_coverage: [tool: ExCoveralls] ]
end
... | 30.084746 | 109 | 0.636901 |
739c62a49e78d1a2989a4fcc4d43d4a4825b4e32 | 1,905 | ex | Elixir | lib/blog/comments.ex | kadmohardy/Blog | 755bfc4325c899166b7c865a60060fc4355e7d15 | [
"MIT"
] | null | null | null | lib/blog/comments.ex | kadmohardy/Blog | 755bfc4325c899166b7c865a60060fc4355e7d15 | [
"MIT"
] | 17 | 2021-04-22T00:58:05.000Z | 2021-09-26T04:03:12.000Z | lib/blog/comments.ex | theguuholi/blog | 36152d03012d163d76520cf57c51783828d14317 | [
"MIT"
] | null | null | null | defmodule Blog.Comments do
@moduledoc """
The Comments context.
"""
import Ecto.Query, warn: false
alias Blog.Repo
alias Blog.Comments.Comment
@doc """
Returns the list of comments.
## Examples
iex> list_comments()
[%Comment{}, ...]
"""
def list_comments do
Repo.all(Comment)
... | 17.971698 | 62 | 0.606824 |
739cab67941a3412726e4d932215ccb5176b178b | 1,596 | exs | Elixir | grade-school/grade_school_test.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | grade-school/grade_school_test.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | grade-school/grade_school_test.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | if System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("example.exs")
else
Code.load_file("school.exs")
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule SchoolTest do
use ExUnit.Case, async: true
def db, do: %{}
test "add student" do
actual = School.add(db, "Aimee", 2)... | 21.28 | 61 | 0.580201 |
739cba76373ae26a745d7c239e673b81e1efe3d0 | 4,184 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 73.403509 | 1,425 | 0.694073 |
739ce5d35e5882549eff497c5608bac09e1b9814 | 866 | ex | Elixir | lib/games/gcd.ex | NikitaNaumenko/brain_games_elixir | 25ef3898164846faab5813096804661734d54af8 | [
"MIT"
] | null | null | null | lib/games/gcd.ex | NikitaNaumenko/brain_games_elixir | 25ef3898164846faab5813096804661734d54af8 | [
"MIT"
] | null | null | null | lib/games/gcd.ex | NikitaNaumenko/brain_games_elixir | 25ef3898164846faab5813096804661734d54af8 | [
"MIT"
] | null | null | null | defmodule BrainGames.Games.Gcd do
@moduledoc """
Greatest Common Divisor (GCD)".
The essence of the game is as follows: the user is shown two random numbers, for example, 45 73.
The user must calculate and enter the largest common divisor of these numbers.
"""
require Integer
@max 100
@spec generate_... | 26.242424 | 98 | 0.658199 |
739d2b0d1f57c4f5c6aeca66d137a214fc16e779 | 1,296 | ex | Elixir | lib/game/format/scan.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/format/scan.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/format/scan.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.Format.Scan do
@moduledoc """
Formatting for the scan command
"""
import Game.Format.Context
alias Game.Format
@doc """
Format the scan for the room you're in
"""
def room(room, rooms) do
[
room_current(room),
rooms(rooms)
]
|> Enum.join("\n")
|> String.tr... | 20.25 | 82 | 0.591821 |
739d37c8f2283ae5b543a8257eef3e01b69f9b9d | 840 | ex | Elixir | test/support/example_domain/ticketing/timeout_reservation_handler.ex | blockfi/commanded-scheduler | 46582ecccad254d997d13b6b80bc829d8a24ca21 | [
"MIT"
] | null | null | null | test/support/example_domain/ticketing/timeout_reservation_handler.ex | blockfi/commanded-scheduler | 46582ecccad254d997d13b6b80bc829d8a24ca21 | [
"MIT"
] | 1 | 2020-05-29T18:50:28.000Z | 2020-07-14T11:15:49.000Z | test/support/example_domain/ticketing/timeout_reservation_handler.ex | blockfi/commanded-scheduler | 46582ecccad254d997d13b6b80bc829d8a24ca21 | [
"MIT"
] | null | null | null | defmodule ExampleDomain.TimeoutReservationHandler do
@moduledoc false
use Commanded.Event.Handler, name: __MODULE__, application: Commanded.Scheduler.App
alias Commanded.Scheduler.ScheduleOnce
alias ExampleDomain.AppRouter
alias ExampleDomain.TicketBooking.Commands.TimeoutReservation
alias ExampleDomain.T... | 30 | 85 | 0.772619 |
739d50d8c7fccbb3312778f9d5ec033c7a8ada7c | 2,605 | ex | Elixir | lib/tanks_web/channels/game_channel.ex | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | lib/tanks_web/channels/game_channel.ex | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | lib/tanks_web/channels/game_channel.ex | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | defmodule TanksWeb.GameChannel do
use TanksWeb, :channel
require Logger
def join("game:" <> game_id, %{"playerToken" => player_token} = _params, socket) do
# Join game server
{response, socket} =
with {:ok, server} <- Tanks.GameServer.get(game_id),
{:ok, player} <- Tanks.GameServer.add_p... | 27.421053 | 98 | 0.586948 |
739d568793cfddba909a401c7979ccaa6c42dcf1 | 12,698 | ex | Elixir | lib/hex/registry/server.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | lib/hex/registry/server.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:19:59.000Z | 2021-06-25T15:19:59.000Z | lib/hex/registry/server.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | defmodule Hex.Registry.Server do
use GenServer
@behaviour Hex.Registry
@name __MODULE__
@filename "cache.ets"
@timeout 60_000
defmacrop unwrap_mix_error(expr) do
quote do
trap_exit? = Process.flag(:trap_exit, true)
try do
unquote(expr)
catch
:exit, {{error, stacktrac... | 26.509395 | 99 | 0.594346 |
739d993c15976afaba323929785db61825bcdd52 | 549 | exs | Elixir | admin/test/models/video_test.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/test/models/video_test.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/test/models/video_test.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | defmodule Admin.VideoTest do
use Admin.ModelCase
alias Admin.Video
@valid_attrs %{active: true, approved_at: %{day: 17, hour: 14, min: 0, month: 4, sec: 0, year: 2010}, description: "some content", likes: 42, name: "some content", views: 42}
@invalid_attrs %{}
test "changeset with valid attributes" do
... | 28.894737 | 176 | 0.701275 |
739dcc19307ca6bf794fc00706153164d5e4e4ac | 5,105 | exs | Elixir | test/controllers/webhook_controller_test.exs | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | test/controllers/webhook_controller_test.exs | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | test/controllers/webhook_controller_test.exs | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.WebhookControllerTest do
use BorsNG.ConnCase
alias BorsNG.Database.Installation
alias BorsNG.Database.Patch
alias BorsNG.Database.Project
alias BorsNG.Database.Repo
alias BorsNG.Database.User
alias BorsNG.GitHub.Pr
alias BorsNG.GitHub
setup do
installation = Repo.insert!(%Instal... | 25.782828 | 71 | 0.477375 |
739dd8f799762988ee6d1e8f051613e43ae09fba | 304 | ex | Elixir | kekend/lib/serial_killer/application.ex | evbogdanov/serial_killer | 7e67452b26f66a0fd01eca0133e705219957a17d | [
"MIT"
] | null | null | null | kekend/lib/serial_killer/application.ex | evbogdanov/serial_killer | 7e67452b26f66a0fd01eca0133e705219957a17d | [
"MIT"
] | null | null | null | kekend/lib/serial_killer/application.ex | evbogdanov/serial_killer | 7e67452b26f66a0fd01eca0133e705219957a17d | [
"MIT"
] | null | null | null | defmodule SerialKiller.Application do
use Application
def start(_type, _args),
do: Supervisor.start_link(children(), opts())
defp children do
[
SerialKiller.Endpoint
]
end
defp opts do
[
strategy: :one_for_one,
name: SerialKiller.Supervisor
]
end
end
| 15.2 | 49 | 0.651316 |
739de693b91d3f1ea38fccaa8b8d49d0a0448960 | 1,376 | ex | Elixir | test/support/data_case.ex | sophiabrandt/mango | c42c2e463c7bdeb7f18400a3001a8cc6e326159d | [
"MIT"
] | 4 | 2019-07-17T04:46:37.000Z | 2020-09-20T14:15:23.000Z | test/support/data_case.ex | sophiabrandt/mango | c42c2e463c7bdeb7f18400a3001a8cc6e326159d | [
"MIT"
] | null | null | null | test/support/data_case.ex | sophiabrandt/mango | c42c2e463c7bdeb7f18400a3001a8cc6e326159d | [
"MIT"
] | 1 | 2019-07-17T04:46:39.000Z | 2019-07-17T04:46:39.000Z | defmodule Mango.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 r... | 25.481481 | 77 | 0.678052 |
739de8700c1d4284aa4f359c261b69498eda8d8d | 166 | exs | Elixir | reduce/reduce1.exs | leogtzr/elixir_code_snippets | 5c8c921dc165de8fc29bb14046386efa81ce7542 | [
"MIT"
] | null | null | null | reduce/reduce1.exs | leogtzr/elixir_code_snippets | 5c8c921dc165de8fc29bb14046386efa81ce7542 | [
"MIT"
] | null | null | null | reduce/reduce1.exs | leogtzr/elixir_code_snippets | 5c8c921dc165de8fc29bb14046386efa81ce7542 | [
"MIT"
] | null | null | null | defmodule MyList do
def reduce([], value, _fun) do
value
end
def reduce([head | tail], value, fun) do
reduce(tail, fun.(head, value), fun)
end
end
| 13.833333 | 42 | 0.620482 |
739e000b65a73c2fb50ca166ccd31fbe0e505ee1 | 2,855 | ex | Elixir | lib/new_relic/harvest/collector/transaction_event/harvester.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 227 | 2018-09-05T15:33:23.000Z | 2022-02-25T18:12:06.000Z | lib/new_relic/harvest/collector/transaction_event/harvester.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 211 | 2018-09-05T21:42:41.000Z | 2022-03-25T17:51:56.000Z | lib/new_relic/harvest/collector/transaction_event/harvester.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 84 | 2018-09-05T04:26:26.000Z | 2022-03-09T14:28:14.000Z | defmodule NewRelic.Harvest.Collector.TransactionEvent.Harvester do
use GenServer
@moduledoc false
alias NewRelic.Harvest
alias NewRelic.Harvest.Collector
alias NewRelic.Transaction.Event
alias NewRelic.Util.PriorityQueue
def start_link(_) do
GenServer.start_link(__MODULE__, [])
end
def init(_)... | 25.954545 | 94 | 0.67986 |
739e006699139846dd192b37ee2d07919363f3e5 | 4,522 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/binding.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/binding.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/binding.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.87037 | 142 | 0.702344 |
739e1bff337f382d814ff7f6adc96f76871abe83 | 857 | ex | Elixir | test/support/fixtures/accounts_fixtures.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | test/support/fixtures/accounts_fixtures.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | test/support/fixtures/accounts_fixtures.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule Banchan.AccountsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Banchan.Accounts` context.
"""
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
def unique_user_handle, do: "user#{:rand.uniform(100_000)}"
def valid_user_password, ... | 25.205882 | 73 | 0.656943 |
739e39f46a39372dc4aceddee72106cb630cea3b | 3,280 | ex | Elixir | lib/content/audio/predictions.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | lib/content/audio/predictions.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | lib/content/audio/predictions.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | defmodule Content.Audio.Predictions do
@moduledoc """
Module to convert a Message.Predictions.t() struct into the
appropriate audio struct, whether it's a NextTrainCountdown.t(),
TrainIsArriving.t(), TrainIsBoarding.t(), or TrackChange.t().
"""
require Logger
require Content.Utilities
alias Content.Aud... | 34.893617 | 94 | 0.650305 |
739e6236941e55fa70274d22a56729923288a620 | 73 | exs | Elixir | lib/elixir/test/elixir/fixtures/configs/env.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/fixtures/configs/env.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/fixtures/configs/env.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | import Config
config :my_app, env: config_env(), target: config_target()
| 24.333333 | 58 | 0.767123 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.