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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dc7ecb31a59ed3ba8c68955283a162d04ef0624 | 531 | exs | Elixir | test/uploader_test.exs | mathieuprog/uploader | bafb1810d316444118adbe02cec3d9ce0f9ebba9 | [
"Apache-2.0"
] | 7 | 2019-11-04T14:41:59.000Z | 2020-03-01T00:42:49.000Z | test/uploader_test.exs | mathieuprog/uploader | bafb1810d316444118adbe02cec3d9ce0f9ebba9 | [
"Apache-2.0"
] | null | null | null | test/uploader_test.exs | mathieuprog/uploader | bafb1810d316444118adbe02cec3d9ce0f9ebba9 | [
"Apache-2.0"
] | null | null | null | defmodule UploaderTest do
use ExUnit.Case, async: true
doctest Uploader
alias Test.Support.User
test "store files" do
upload = %Plug.Upload{path: "/tmp/tmp1.jpg", filename: "1.jpg"}
user_changeset =
User.changeset(%User{}, %{
"name" => "John",
"avatar_image" => upload
})
... | 22.125 | 67 | 0.649718 |
2dc7f141dce9b22074ad6b3b9e2ae3e95758f6c6 | 5,116 | ex | Elixir | lib/exception.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 33 | 2018-01-18T12:16:19.000Z | 2021-07-30T00:33:26.000Z | lib/exception.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 5 | 2018-01-18T12:56:28.000Z | 2019-09-30T07:16:00.000Z | lib/exception.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 1 | 2018-08-08T12:02:44.000Z | 2018-08-08T12:02:44.000Z | ## This file defines exceptions for Expected.
defmodule Expected.ConfigurationError do
@moduledoc """
Error raised when the configuration is invalid or incomplete.
"""
defexception [:reason]
def message(%{reason: :no_store}) do
"""
Login store not configured.
You must set a login store in the ... | 23.685185 | 80 | 0.631744 |
2dc86ca17d212a5efb43d6d66c7c7f5b5e3bb762 | 1,549 | ex | Elixir | lib/exreddit_tagger/stream.ex | making3/exreddit-tagger | b864289238ab35ea8ec98524c6ef73ff6443426e | [
"MIT"
] | null | null | null | lib/exreddit_tagger/stream.ex | making3/exreddit-tagger | b864289238ab35ea8ec98524c6ef73ff6443426e | [
"MIT"
] | null | null | null | lib/exreddit_tagger/stream.ex | making3/exreddit-tagger | b864289238ab35ea8ec98524c6ef73ff6443426e | [
"MIT"
] | null | null | null | defmodule ExRedditTagger.Stream do
def fetch_new_threads_perpertually(token, sub) do
Stream.resource(
fn -> [] end,
fn previous_thread_ids ->
:timer.sleep Application.get_env(:exreddit_tagger, :fetch_timeout)
fetch_new_threads(token, sub, previous_thread_ids)
end,
fn _ -> t... | 31.612245 | 86 | 0.726921 |
2dc87ed2fd1aa40d205e34a6bef8f3197822abfa | 1,972 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/table_cell_properties.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/table_cell_properties.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/table_cell_properties.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... | 37.923077 | 188 | 0.748479 |
2dc8b156280e448e46fbac2299058903f2c9f108 | 543 | exs | Elixir | projects/api/priv/repo/migrations/20171204031825_add_publications_table.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/priv/repo/migrations/20171204031825_add_publications_table.exs | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/priv/repo/migrations/20171204031825_add_publications_table.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule Margaret.Repo.Migrations.AddPublicationsTable do
@moduledoc false
use Ecto.Migration
@doc false
def change do
create table(:publications) do
add(:name, :string, size: 64, null: false)
add(:display_name, :string, null: false)
add(:logo, :string)
add(:description, :string)... | 20.884615 | 58 | 0.64825 |
2dc8eb5e9cd6bfe195632a39acaf11305d6fb9d2 | 23,100 | ex | Elixir | lib/live_beats_web/live/live_helpers.ex | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | 547 | 2022-02-02T14:11:31.000Z | 2022-03-31T12:34:03.000Z | lib/live_beats_web/live/live_helpers.ex | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | 24 | 2022-02-02T14:11:36.000Z | 2022-02-23T20:14:43.000Z | lib/live_beats_web/live/live_helpers.ex | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | 63 | 2022-02-02T15:59:36.000Z | 2022-03-23T05:30:43.000Z | defmodule LiveBeatsWeb.LiveHelpers do
import Phoenix.LiveView
import Phoenix.LiveView.Helpers
alias LiveBeatsWeb.Router.Helpers, as: Routes
alias Phoenix.LiveView.JS
alias LiveBeats.Accounts
alias LiveBeats.MediaLibrary
def home_path(nil = _current_user), do: "/"
def home_path(%Accounts.User{} = curr... | 38.308458 | 294 | 0.561905 |
2dc909e1d9e7663e5b577e42abc7cad01a6bd227 | 912 | exs | Elixir | firmware/config/config.exs | Jwsonic/air | b4f6ed4b2be47aee78b40345044c96de1fc49813 | [
"MIT"
] | 1 | 2021-12-14T09:20:06.000Z | 2021-12-14T09:20:06.000Z | firmware/config/config.exs | Jwsonic/air | b4f6ed4b2be47aee78b40345044c96de1fc49813 | [
"MIT"
] | null | null | null | firmware/config/config.exs | Jwsonic/air | b4f6ed4b2be47aee78b40345044c96de1fc49813 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
import Config
config :air_firmware, target: Mix.target()
# Customize non-Elixir parts of the firmwa... | 31.448276 | 82 | 0.781798 |
2dc90c1fc4a02154ed27770b194da5a21e2da2d9 | 29,603 | exs | Elixir | test/axon_test.exs | AdamT/axon | 083e1404e7cd4a3346e4728a43f2a6bded500b1f | [
"Apache-2.0"
] | null | null | null | test/axon_test.exs | AdamT/axon | 083e1404e7cd4a3346e4728a43f2a6bded500b1f | [
"Apache-2.0"
] | null | null | null | test/axon_test.exs | AdamT/axon | 083e1404e7cd4a3346e4728a43f2a6bded500b1f | [
"Apache-2.0"
] | null | null | null | defmodule AxonTest do
use ExUnit.Case
doctest Axon
import Nx.Defn
describe "input" do
test "works with defaults" do
assert %Axon{op: :input, parent: nil} = Axon.input({32, 1, 28, 28})
end
test "works with name" do
assert %Axon{op: :input, parent: nil, name: "input"} =
A... | 35.074645 | 100 | 0.553728 |
2dc9180b7832f5f03e8c753219fab24b1ba1cb89 | 339 | ex | Elixir | learn/OTPAndPhoenix/islands_engine/lib/coordinate.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | learn/OTPAndPhoenix/islands_engine/lib/coordinate.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | learn/OTPAndPhoenix/islands_engine/lib/coordinate.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule IslandsEngine.Coordinate do
alias __MODULE__
@enforce_keys [:row, :column]
defstruct [:row, :column]
@board_range 1..10
def new(row, column) when row in @board_range and column in @board_range do
{:ok, %Coordinate{row: row, column: column}}
end
def new(_row, _column), do: {:error, :inval... | 22.6 | 77 | 0.705015 |
2dc923b5c8b8765ba0244727940b8fa04beccc30 | 8,066 | exs | Elixir | backend/test/edgehog/os_management_test.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/test/edgehog/os_management_test.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/test/edgehog/os_management_test.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Edgehog.
#
# Copyright 2022 SECO Mind 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 app... | 35.377193 | 100 | 0.69638 |
2dc929395211ac214c8db938f93136a831538afe | 3,418 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_user_info.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_user_info.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_user_info.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 53.40625 | 468 | 0.736688 |
2dc92b8a273652a77e1532aca5e9dc37a7f50c9e | 2,120 | ex | Elixir | data/web/web/controllers/traintime_controller.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/web/controllers/traintime_controller.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/web/controllers/traintime_controller.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule TrainsElixir.TraintimeController do
use TrainsElixir.Web, :controller
alias TrainsElixir.Traintime
def index(conn, _params) do
traintime = Repo.all(from i in Traintime,
where: i."ScheduledTime" > ^DateTime.utc_now(),
order_by: [asc: i."ScheduledTime"],
limit: 15)
rend... | 30.724638 | 77 | 0.649057 |
2dc96ee20230658f0d065e12909c7ce09af51f44 | 4,166 | exs | Elixir | test/manager_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | test/manager_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | test/manager_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | defmodule Verk.ManagerTest do
use ExUnit.Case
import Mimic
import Verk.Manager
alias Verk.QueueList
setup :verify_on_exit!
@node_id 123
setup_all do
Application.put_env(:verk, :local_node_id, @node_id)
on_exit(fn ->
Application.delete_env(:verk, :local_node_id)
end)
end
defp ini... | 27.407895 | 98 | 0.595775 |
2dc98c5f9b6836f4063d278be0284a64c9d1661f | 1,449 | ex | Elixir | lib/expokefight_web/endpoint.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/endpoint.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/endpoint.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | defmodule ExpokefightWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :expokefight
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_e... | 29.571429 | 97 | 0.721187 |
2dc9ce6a92fd504738293818d1bb274b145f8f1b | 7,300 | ex | Elixir | lib/mix/tasks/phoenix.gen.model.ex | kenta-aktsk/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | lib/mix/tasks/phoenix.gen.model.ex | ogamw/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | null | null | null | lib/mix/tasks/phoenix.gen.model.ex | ogamw/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | defmodule Mix.Tasks.Phoenix.Gen.Model do
use Mix.Task
@shortdoc "Generates an Ecto model"
@moduledoc """
Generates an Ecto model in your Phoenix application.
mix phoenix.gen.model User users name:string age:integer
The first argument is the module name followed by its plural
name (used for the sch... | 30.672269 | 116 | 0.656027 |
2dc9dd606449b1f97cb61dfa38fd887de06bb0e3 | 620 | exs | Elixir | test/blockfrost/ipfs/gateway_test.exs | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | test/blockfrost/ipfs/gateway_test.exs | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | test/blockfrost/ipfs/gateway_test.exs | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.IPFS.GatewayTest do
use Blockfrost.Case
alias Blockfrost.IPFS.Gateway
alias Blockfrost.HTTPClientMock
setup_all do
start_supervised!({Blockfrost, name: IPFS, api_key: "apikey", network: :ipfs})
:ok
end
describe "get" do
test "doesn't decode response" do
expect(HTTP... | 23.846154 | 82 | 0.659677 |
2dc9e8c4b7e694a77253de89a352d4489d65eb52 | 4,101 | ex | Elixir | lib/chat_api_web/controllers/slack_controller.ex | m1ome/papercups | 8c9bf5569dc23d7bce3fcc3a8909bf6d05be8985 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | lib/chat_api_web/controllers/slack_controller.ex | kingshalaby1/papercups | 8d59b2ee4a22dd29df42fb771e02db14e14dee68 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/slack_controller.ex | kingshalaby1/papercups | 8d59b2ee4a22dd29df42fb771e02db14e14dee68 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.SlackController do
use ChatApiWeb, :controller
require Logger
alias ChatApi.{
Messages,
Slack,
SlackAuthorizations,
SlackConversationThreads
}
action_fallback ChatApiWeb.FallbackController
def oauth(conn, %{"code" => code}) do
Logger.info("Code from Slack OAuth: ... | 26.803922 | 79 | 0.57108 |
2dc9f0cf1d4463f28634acf72ead14f6d7dbd0bf | 542 | ex | Elixir | servy/lib/servy/conv.ex | kfr2/elixir-experiments | b9aace74d5e352c505440f3a6e493dd714113fac | [
"MIT"
] | null | null | null | servy/lib/servy/conv.ex | kfr2/elixir-experiments | b9aace74d5e352c505440f3a6e493dd714113fac | [
"MIT"
] | null | null | null | servy/lib/servy/conv.ex | kfr2/elixir-experiments | b9aace74d5e352c505440f3a6e493dd714113fac | [
"MIT"
] | null | null | null | defmodule Servy.Conv do
defstruct method: "",
path: "",
params: %{},
headers: %{},
resp_body: "",
status: nil
def full_status(conv) do
"#{conv.status} #{status_reason(conv.status)}"
end
# This private function cannot be called outside this module... | 21.68 | 63 | 0.523985 |
2dc9fdf3ef76660e58e5a34e1537652e05d18d04 | 4,025 | exs | Elixir | test/controllers/tariff_plan_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/controllers/tariff_plan_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/controllers/tariff_plan_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TariffPlanControllerTest do
use CgratesWebJsonapi.ConnCase
alias CgratesWebJsonapi.TariffPlan
alias CgratesWebJsonapi.Repo
import CgratesWebJsonapi.Factory
setup do
user = insert :user
conn = build_conn()
|> put_req_header("accept", "application/vnd.api+json")
... | 30.961538 | 98 | 0.634534 |
2dca1b118f396b5813dc4f4a7388c8a6fd2b74a9 | 1,892 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_import_taxonomies_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_import_taxonomies_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_import_taxonomies_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... | 33.785714 | 182 | 0.765856 |
2dca1caea365f387540d047e99a3c38c188acc8d | 84 | exs | Elixir | test/views/page_view_test.exs | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 207 | 2016-02-24T06:43:04.000Z | 2021-03-05T02:26:47.000Z | test/views/page_view_test.exs | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 6 | 2016-02-26T00:13:06.000Z | 2017-06-15T07:49:02.000Z | test/views/page_view_test.exs | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 24 | 2016-02-24T18:02:21.000Z | 2019-11-11T12:47:06.000Z | defmodule PhoenixToggl.PageViewTest do
use PhoenixToggl.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
2dca1d84f8dbaaa36b5f3a978f93e08114b57ba4 | 289 | exs | Elixir | priv/repo/migrations/20201117170838_create_forward_list.exs | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | 2 | 2021-04-27T01:39:01.000Z | 2021-04-27T02:57:17.000Z | priv/repo/migrations/20201117170838_create_forward_list.exs | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | 5 | 2021-04-25T02:13:36.000Z | 2021-04-26T00:49:36.000Z | priv/repo/migrations/20201117170838_create_forward_list.exs | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | null | null | null | defmodule Funnel.Repo.Migrations.CreateForwardList do
use Ecto.Migration
def change do
create table("forward_list") do
add :source, :string
add :target, :string
add :created_at, :utc_datetime
end
create unique_index("forward_list", [:source])
end
end
| 20.642857 | 53 | 0.692042 |
2dca7db01f14b8cc38b3bf825760b5a9bba6b2cc | 1,582 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/google_audience_targeting_setting.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/google_audience_targeting_setting.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/google_audience_targeting_setting.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... | 32.958333 | 136 | 0.755373 |
2dcae878e3add490cd233df352cad9d00544649d | 1,903 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/update_sheet_properties_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_sheet_properties_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_sheet_properties_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.90566 | 129 | 0.73463 |
2dcaea8f63e0d6d242e77909a5b4ae15e1121541 | 82 | exs | Elixir | test/support/apps/example/test/example_web/views/layout_view_test.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 528 | 2019-09-13T15:10:36.000Z | 2022-03-31T10:28:27.000Z | test/support/apps/example/test/example_web/views/layout_view_test.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 243 | 2018-06-13T18:42:35.000Z | 2022-03-15T17:18:08.000Z | test/support/apps/example/test/example_web/views/layout_view_test.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 38 | 2019-10-29T20:37:13.000Z | 2022-03-03T05:19:33.000Z | defmodule ExampleWeb.LayoutViewTest do
use ExampleWeb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
2dcb2e357ae9a23d7ec3018af6bba2afa01207a9 | 1,845 | ex | Elixir | lib/kaffe/group_member/worker/worker.ex | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | lib/kaffe/group_member/worker/worker.ex | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | lib/kaffe/group_member/worker/worker.ex | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | defmodule Kaffe.Worker do
@moduledoc """
A worker receives messages for a single topic partition.
Processing the message set is delegated to the configured message
handler. It is responsible for any error handling. The message handler
must define a `handle_messages` function (*note* the pluralization!)
to... | 31.810345 | 103 | 0.735501 |
2dcb43a78b969e34cd7477171205d0a14496691e | 2,826 | exs | Elixir | test/webhook_test.exs | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | null | null | null | test/webhook_test.exs | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | null | null | null | test/webhook_test.exs | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | null | null | null | defmodule Stripe.WebhookTest do
use ExUnit.Case, async: true
alias Stripe.Webhook
@payload ~S({"object": "event"})
@valid_scheme "v1"
@invalid_scheme "v0"
@secret "secret"
defp generate_signature(timestamp, payload, secret \\ @secret) do
:crypto.mac(:hmac, :sha256, secret, "#{timestamp}.#{payload... | 34.888889 | 85 | 0.729299 |
2dcb5322bb2e4affdd87ad1b19c19a410a860e07 | 10,161 | ex | Elixir | lib/scaffolding/common/type_handlers/time_stamp.millisecond.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/common/type_handlers/time_stamp.millisecond.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/common/type_handlers/time_stamp.millisecond.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings <keith.brings@noizu.com>
# Copyright (C) 2021 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.DomainObject.TimeStamp.Millisecond... | 46.610092 | 171 | 0.608405 |
2dcb7e3e9da4d9652457f39032602760cd354305 | 381 | ex | Elixir | lib/ash/error/query/no_such_function.ex | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | lib/ash/error/query/no_such_function.ex | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | lib/ash/error/query/no_such_function.ex | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | defmodule Ash.Error.Query.NoSuchFunction do
@moduledoc "Used when an function that doesn't exist is used in a query"
use Ash.Error.Exception
def_ash_error([:name], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ecto.UUID.generate()
def code(_), do: "no_such_function"
def message(error)... | 22.411765 | 74 | 0.690289 |
2dcbe72844c7e6a91ddff7d9353b51d87943b149 | 2,315 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/router_nat_subnetwork_to_nat.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_nat_subnetwork_to_nat.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_nat_subnetwork_to_nat.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... | 42.090909 | 337 | 0.7473 |
2dcc3c0a2b5d86639446510085b45b14a86a40c7 | 26 | ex | Elixir | language-practice/Elixir/elixir-pdx/relyrics/lib/robert.ex | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-pdx/relyrics/lib/robert.ex | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-pdx/relyrics/lib/robert.ex | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | defmodule Robert do
end
| 6.5 | 19 | 0.769231 |
2dcc478a3131e6ed65bd8d759741c320e1d8742e | 1,659 | ex | Elixir | lib/materia_career_web.ex | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | null | null | null | lib/materia_career_web.ex | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | 23 | 2019-01-16T01:52:22.000Z | 2019-06-20T01:59:55.000Z | lib/materia_career_web.ex | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | null | null | null | defmodule MateriaCareerWeb 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 MateriaCareerWeb, :controller
use MateriaCareerWeb, :view
The definitions below will be executed for every vi... | 24.043478 | 69 | 0.70223 |
2dcc92443dc3b20a97cbe73a0fc81e24cdc0effd | 676 | exs | Elixir | mix.exs | raphaelahrens/elixir_beep | 4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d | [
"BSD-2-Clause"
] | null | null | null | mix.exs | raphaelahrens/elixir_beep | 4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d | [
"BSD-2-Clause"
] | null | null | null | mix.exs | raphaelahrens/elixir_beep | 4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d | [
"BSD-2-Clause"
] | null | null | null | defmodule ElixirBeep.Mixfile do
use Mix.Project
def project do
[app: :elixir_beep,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app"... | 20.484848 | 77 | 0.610947 |
2dcc988ade661961e80476bcab8c3d82c40c5e97 | 547 | exs | Elixir | priv/repo/seeds.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | priv/repo/seeds.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Rumbl.Repo.insert!(%Rumbl.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 27.35 | 61 | 0.716636 |
2dccb719341ce46180ac513d707eb7eb17081da8 | 10,625 | exs | Elixir | test/simple_pool_advanced/v3/acceptance_test.exs | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | test/simple_pool_advanced/v3/acceptance_test.exs | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | test/simple_pool_advanced/v3/acceptance_test.exs | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedPool.V3.AcceptanceTest do
use ExUnit.Case
impo... | 37.280702 | 132 | 0.680471 |
2dcd05285fb38328ff2308ae0d8d0ad672328628 | 2,748 | ex | Elixir | lib/glimesh/chat/parser.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh/chat/parser.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh/chat/parser.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Chat.Parser do
@moduledoc """
Responsible for splitting a chat message into it's various tokens. The Glimesh.Chat.Renderer puts it back together for display.
"""
defmodule Config do
@moduledoc """
Configuration for the parser
"""
defstruct allow_links: true,
allo... | 25.682243 | 195 | 0.557132 |
2dcd0cd3be2f35ba20c758e2ba5827e3e5bbddd3 | 268 | exs | Elixir | test/hasher_web/views/layout_view_test.exs | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | test/hasher_web/views/layout_view_test.exs | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | test/hasher_web/views/layout_view_test.exs | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | defmodule HasherWeb.LayoutViewTest do
use HasherWeb.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
| 29.777778 | 65 | 0.764925 |
2dcd170220b41aaa086f256835a9741a28d012eb | 938 | ex | Elixir | test/support/channel_case.ex | kuffel/ex_app | c67c1c9f9b48d6020859ea2b1f9d070dca69c84f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | kuffel/ex_app | c67c1c9f9b48d6020859ea2b1f9d070dca69c84f | [
"MIT"
] | 12 | 2020-11-02T21:22:41.000Z | 2021-05-18T13:08:30.000Z | test/support/channel_case.ex | kuffel/ex_app | c67c1c9f9b48d6020859ea2b1f9d070dca69c84f | [
"MIT"
] | null | null | null | defmodule ExAppWeb.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 wit... | 26.8 | 62 | 0.736674 |
2dcd18543d558338fef9e0cf7d3cc69b1638a6aa | 17,469 | exs | Elixir | lib/elixir/test/elixir/code_formatter/operators_test.exs | rlipscombe/elixir | b1bfd1fa0a1c44fb20d3fb7f198973e60af331a2 | [
"Apache-2.0"
] | 4 | 2019-03-04T10:05:55.000Z | 2019-03-06T17:30:59.000Z | lib/elixir/test/elixir/code_formatter/operators_test.exs | rlipscombe/elixir | b1bfd1fa0a1c44fb20d3fb7f198973e60af331a2 | [
"Apache-2.0"
] | 5 | 2015-02-07T14:46:40.000Z | 2020-09-20T16:43:42.000Z | lib/elixir/test/elixir/code_formatter/operators_test.exs | rlipscombe/elixir | b1bfd1fa0a1c44fb20d3fb7f198973e60af331a2 | [
"Apache-2.0"
] | 2 | 2018-04-03T08:57:41.000Z | 2019-03-04T08:20:04.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.OperatorsTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
@medium_length [line_length: 20]
describe "unary" do
test "formats symbol operators without spaces" do
assert_format... | 18.703426 | 89 | 0.471922 |
2dcd2d049fcc6b0ae9fb0fea7d015cc11cc45e5b | 2,145 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/postal_code.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/postal_code.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/postal_code.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.355932 | 146 | 0.690443 |
2dcd5b80f2dad69a2a9b0d2dedc88ac657a75a53 | 761 | ex | Elixir | lib/hl7/2.5/segments/psh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/psh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/psh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.PSH do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
report_type: nil,
report_form_identifier: nil,
report_date: DataTypes.Ts,
report_interval_start_date: DataTypes.Ts,
report_interval_end... | 29.269231 | 68 | 0.735874 |
2dcd723c66c7e85cdd4ed35f9a3a03628fef9ebc | 985 | exs | Elixir | apps/nerves_hub_web_core/priv/repo/migrations/20180810151416_default_user_org.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_web_core/priv/repo/migrations/20180810151416_default_user_org.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_web_core/priv/repo/migrations/20180810151416_default_user_org.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWebCore.Repo.Migrations.DefaultUserOrg do
# import Ecto.Query
use Ecto.Migration
# alias NervesHubWebCore.Accounts
# alias NervesHubWebCore.Accounts.{User, Org}
# alias NervesHubWebCore.Repo
def up do
# This should have been done outside of a migration. If the User schema ever chang... | 25.25641 | 94 | 0.609137 |
2dcd78d40c8c3987831fdcbd2c1a241e6df54ace | 1,050 | ex | Elixir | test/support/apps/example/test/support/conn_case.ex | r-icarus/torch | c5c94001b91fc459d727b18fa137b6936a65918d | [
"MIT"
] | null | null | null | test/support/apps/example/test/support/conn_case.ex | r-icarus/torch | c5c94001b91fc459d727b18fa137b6936a65918d | [
"MIT"
] | null | null | null | test/support/apps/example/test/support/conn_case.ex | r-icarus/torch | c5c94001b91fc459d727b18fa137b6936a65918d | [
"MIT"
] | null | null | null | defmodule ExampleWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if th... | 26.923077 | 69 | 0.718095 |
2dcd82bb25a6978fa95b170ed4b4950262f2d238 | 1,980 | exs | Elixir | test/oauth2/access_token_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | null | null | null | test/oauth2/access_token_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 2 | 2018-09-07T04:52:56.000Z | 2018-09-07T04:53:07.000Z | test/oauth2/access_token_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 1 | 2020-02-07T15:27:26.000Z | 2020-02-07T15:27:26.000Z | defmodule OAuth2.AccessTokenTest do
use ExUnit.Case, async: true
doctest OAuth2.AccessToken
import OAuth2.TestHelpers, only: [unix_now: 0]
alias OAuth2.{AccessToken, Response}
test "new from binary token" do
token = AccessToken.new("abc123")
assert token.access_token == "abc123"
end
test "new ... | 34.137931 | 127 | 0.69697 |
2dcdb7b3b5d09acbc1b67d6e86dbab01816fa6ec | 3,678 | exs | Elixir | lib/mix/test/mix/utils_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/mix/test/mix/utils_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/utils_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.Tasks.Cheers do
end
defmodule Mix.UtilsTest do
use MixTest.Case
doctest Mix.Utils
test "command to module" do
assert Mix.Utils.command_to_module("cheers", Mix.Tasks) == {:module, Mix.Tasks.Cheers}
assert Mix.Utils.command_to_module("unknow... | 38.715789 | 105 | 0.681077 |
2dcdcc8bf91bff62a49eca027028054e21840b00 | 2,275 | ex | Elixir | clients/run/lib/google_api/run/v1/model/list_routes_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/run/lib/google_api/run/v1/model/list_routes_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/run/lib/google_api/run/v1/model/list_routes_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.559322 | 124 | 0.693626 |
2dcdd9b1ea4156b9a6a2246ec7a45984689b0e0b | 4,722 | ex | Elixir | lib/bundlex/native.ex | abhijeetbhagat/bundlex | ac476476ba9c07e8233311fb00ad9d1566e2da4c | [
"Apache-2.0"
] | null | null | null | lib/bundlex/native.ex | abhijeetbhagat/bundlex | ac476476ba9c07e8233311fb00ad9d1566e2da4c | [
"Apache-2.0"
] | null | null | null | lib/bundlex/native.ex | abhijeetbhagat/bundlex | ac476476ba9c07e8233311fb00ad9d1566e2da4c | [
"Apache-2.0"
] | null | null | null | defmodule Bundlex.Native do
@moduledoc false
alias Bundlex.{Helper, Output, Platform, Project}
alias Helper.ErlangHelper
use Bunch
@type t :: %__MODULE__{
name: atom,
app: atom,
type: :nif | :cnode | :lib,
includes: [String.t()],
libs: [String.t()],
... | 28.275449 | 91 | 0.55252 |
2dcde5b8b7668c0a55985e3ded8184312e0560a3 | 2,092 | ex | Elixir | lib/infusionsoft/endpoints/xml/helpers.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | null | null | null | lib/infusionsoft/endpoints/xml/helpers.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | 2 | 2019-01-30T20:57:48.000Z | 2019-03-25T17:29:16.000Z | lib/infusionsoft/endpoints/xml/helpers.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | null | null | null | defmodule Infusionsoft.Endpoints.XML.Helpers do
@moduledoc false
@url "https://api.infusionsoft.com/crm/xmlrpc/v1"
@spec process_endpoint(String.t(), [any()], String.t(), nil | String.t()) ::
{:ok, any()} | {:error, String.t()}
def process_endpoint(name, params, token, app) do
response =
n... | 33.206349 | 103 | 0.645793 |
2dcdf74adaa0f318518488ad633e8f8bf5ea9112 | 1,759 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance_deployment_status_deployed_revision.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance_deployment_status_deployed_revision.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance_deployment_status_deployed_revision.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... | 31.981818 | 111 | 0.74133 |
2dce164863f4bfd17f9ee4a10e38a15c784249a5 | 2,401 | ex | Elixir | lib/users.ex | ijunaid8989/elixir_dropbox | c726a16fe38372d1199bd146849512ed829f5ed8 | [
"MIT"
] | null | null | null | lib/users.ex | ijunaid8989/elixir_dropbox | c726a16fe38372d1199bd146849512ed829f5ed8 | [
"MIT"
] | null | null | null | lib/users.ex | ijunaid8989/elixir_dropbox | c726a16fe38372d1199bd146849512ed829f5ed8 | [
"MIT"
] | null | null | null | defmodule ElixirDropbox.Users do
@moduledoc """
This namespace contains endpoints and data types for user management.
"""
import ElixirDropbox
import ElixirDropbox.Utils
@doc """
Get user account by account_id
## Example
ElixirDropbox.Users client, "TOKEN"
More info at: https://www.dropbox.com... | 27.284091 | 109 | 0.725115 |
2dce27a2d6d20045bb92c943630c570a88cb2445 | 2,221 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_bucket.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_bucket.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_bucket.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... | 41.90566 | 169 | 0.741108 |
2dce6af8b1f96b3e453a22d764f76806d2fab817 | 503 | exs | Elixir | test/support/endpoint.exs | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | 125 | 2016-01-29T11:46:20.000Z | 2021-06-08T09:25:38.000Z | test/support/endpoint.exs | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | 54 | 2016-02-18T01:11:58.000Z | 2017-10-19T11:25:26.000Z | test/support/endpoint.exs | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | 29 | 2016-02-20T12:59:16.000Z | 2018-04-11T14:29:41.000Z | Code.require_file "test/support/router.exs"
defmodule Sentinel.Endpoint do
use Phoenix.Endpoint, otp_app: :sentinel
plug Plug.RequestId
plug Plug.Logger
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Poison
plug Plug.MethodOverride
plug Plug.Head
... | 20.12 | 46 | 0.709742 |
2dce6e349e9d10c2924be619c76ff16afcea95ce | 1,147 | exs | Elixir | mix.exs | bryanjos/open_location_code | f7904d0b247a0d7189bfe348e34aa3cf8179be3e | [
"MIT"
] | 4 | 2019-09-19T04:26:48.000Z | 2021-01-30T20:49:04.000Z | mix.exs | bryanjos/open_location_code | f7904d0b247a0d7189bfe348e34aa3cf8179be3e | [
"MIT"
] | 2 | 2019-09-18T19:02:57.000Z | 2019-10-11T14:39:31.000Z | mix.exs | bryanjos/open_location_code | f7904d0b247a0d7189bfe348e34aa3cf8179be3e | [
"MIT"
] | 1 | 2019-10-11T02:44:58.000Z | 2019-10-11T02:44:58.000Z | defmodule OpenLocationCode.MixProject do
use Mix.Project
def project do
[
app: :open_location_code,
version: "1.0.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "OpenLocationCode",
... | 22.94 | 76 | 0.591979 |
2dce73f7f30ac2eb1b9ca9d3125a276f9163c4b4 | 9,028 | ex | Elixir | lib/swoosh/adapters/amazon_ses.ex | stevedomin/swoosh | 60d2537c7c278cac2c4c893dd964e0570dcb3226 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | stevedomin/swoosh | 60d2537c7c278cac2c4c893dd964e0570dcb3226 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | stevedomin/swoosh | 60d2537c7c278cac2c4c893dd964e0570dcb3226 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.AmazonSES do
@moduledoc ~S"""
An adapter that sends email using the Amazon Simple Email Service (SES) Query API.
This email adapter makes use of the Amazon SES SendRawEmail action and generates
a SMTP style message containing the information to be emailed. This allows for
greater mo... | 30.093333 | 115 | 0.674568 |
2dce7d05e6d0b9268c6edc6449e0d519f4d9e211 | 244 | exs | Elixir | config/test.exs | jnylen/task_bunny | 72f014960b71b3e4b2685f9296c28819cd85929f | [
"MIT"
] | null | null | null | config/test.exs | jnylen/task_bunny | 72f014960b71b3e4b2685f9296c28819cd85929f | [
"MIT"
] | 55 | 2020-05-12T05:18:41.000Z | 2022-03-24T04:04:17.000Z | config/test.exs | jnylen/task_bunny | 72f014960b71b3e4b2685f9296c28819cd85929f | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, backends: [{LoggerFileBackend, :log_file}]
config :logger, :log_file, level: :debug, path: "logs/test.log"
config :task_bunny,
hosts: [
default: [connect_options: "amqp://localhost:5672?heartbeat=30"]
]
| 24.4 | 68 | 0.709016 |
2dce87db8dd586882d20694cd2d36a96d0662e87 | 1,481 | ex | Elixir | lib/cards.ex | jordyvanvorselen/cards | ef9e0df04a2a561bc72dbde953ec328c75ddba42 | [
"MIT"
] | null | null | null | lib/cards.ex | jordyvanvorselen/cards | ef9e0df04a2a561bc72dbde953ec328c75ddba42 | [
"MIT"
] | null | null | null | lib/cards.ex | jordyvanvorselen/cards | ef9e0df04a2a561bc72dbde953ec328c75ddba42 | [
"MIT"
] | null | null | null | defmodule Cards do
@moduledoc """
Provides methods for creating and handling a deck of cards
"""
@doc """
Returns a list of strings representing a deck of playing cards
"""
def create_deck do
values = ["Ace", "Two", "Three", "Four", "Five"]
suits = ["Spades", "Clubs", "Hearts", "Diamonds"]
... | 21.157143 | 76 | 0.620527 |
2dceb715b0f3006ff505a1d993f0de66e0f6631a | 300 | exs | Elixir | test/regressions/i040_unescaped_lt_and_html_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | 2 | 2018-02-11T01:18:24.000Z | 2020-01-12T17:19:22.000Z | test/regressions/i040_unescaped_lt_and_html_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | test/regressions/i040_unescaped_lt_and_html_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | defmodule Regressions.I040UnescpaedLtAndHtmlTest do
use ExUnit.Case
@not_the_first_you_see "<alpha<beta></beta>"
test "Issue https://github.com/pragdave/earmark/issues/40" do
result = Monocle.as_html! @not_the_first_you_see
assert result == "<p><alpha<beta></beta></p>\n"
end
end
| 30 | 63 | 0.733333 |
2dcedc108453e94962820ce1d4c0b719423b1327 | 4,787 | ex | Elixir | apps/ewallet/lib/ewallet/gates/exchange_pair_gate.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/gates/exchange_pair_gate.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/gates/exchange_pair_gate.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 28.664671 | 97 | 0.611865 |
2dceee663806cf0f4b43bbfa16bf1856a82612bd | 1,121 | exs | Elixir | config/config.exs | tyrchen/nimble_parsers | 726c895294a966cbaf1a752a9da21a7e51a3505e | [
"MIT"
] | 2 | 2019-07-14T08:06:24.000Z | 2019-07-14T08:08:54.000Z | apps/parser/config/config.exs | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | 16 | 2019-02-10T06:25:44.000Z | 2019-10-27T09:35:00.000Z | config/config.exs | tyrchen/common_parser | 726c895294a966cbaf1a752a9da21a7e51a3505e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.751115 |
2dcf2b7e65df4c71357b81b8b72b8237ec2f6ea1 | 1,960 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/numeric_bucketing_option.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/numeric_bucketing_option.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/numeric_bucketing_option.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... | 35 | 141 | 0.718878 |
2dcf2e4af1635cdfd09c4752230cbb5cb17d2773 | 1,021 | exs | Elixir | code/enum/countdown.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/enum/countdown.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/enum/countdown.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 24.902439 | 85 | 0.601371 |
2dcf53dbae959036200d792b4151d2717546a01a | 549 | ex | Elixir | lib/exnem/dto/inner_transaction_meta.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | 1 | 2018-10-01T23:57:04.000Z | 2018-10-01T23:57:04.000Z | lib/exnem/dto/inner_transaction_meta.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | null | null | null | lib/exnem/dto/inner_transaction_meta.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | null | null | null | defmodule Exnem.DTO.InnerTransactionMeta do
use Ecto.Schema
@primary_key false
import Ecto.Changeset
embedded_schema do
field(:height, {:array, :integer})
field(:id, :string)
field(:index, :integer)
field(:aggregateId, :string)
field(:aggregateHash, :string)
end
@required [:height, :id... | 23.869565 | 64 | 0.679417 |
2dcf6443058029f3db3989618ff47d8b8bc2cb5d | 1,131 | exs | Elixir | config/config.exs | adobe/bot_army_starter | 7b2601b3a91f12d7aff30ae5f17b9e6e03d6758b | [
"MIT"
] | 5 | 2020-04-30T20:35:52.000Z | 2021-03-28T16:19:03.000Z | config/config.exs | adobe/bot_army_starter | 7b2601b3a91f12d7aff30ae5f17b9e6e03d6758b | [
"MIT"
] | null | null | null | config/config.exs | adobe/bot_army_starter | 7b2601b3a91f12d7aff30ae5f17b9e6e03d6758b | [
"MIT"
] | 2 | 2020-09-27T11:43:51.000Z | 2020-12-28T11:38:41.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.483871 | 73 | 0.751547 |
2dcf7203aac3bd73f3540afcb1c69049896f206b | 1,290 | ex | Elixir | lib/pelican/types/group.ex | ngscheurich/pelican | 9431b2712f38b74c45262d73e55a70aa3d55a093 | [
"MIT"
] | null | null | null | lib/pelican/types/group.ex | ngscheurich/pelican | 9431b2712f38b74c45262d73e55a70aa3d55a093 | [
"MIT"
] | 2 | 2018-04-04T03:49:29.000Z | 2018-04-04T15:57:33.000Z | lib/pelican/types/group.ex | LouisianaGroups/pelican | 9431b2712f38b74c45262d73e55a70aa3d55a093 | [
"MIT"
] | 1 | 2018-04-04T03:53:08.000Z | 2018-04-04T03:53:08.000Z | defmodule Pelican.Types.Group do
@moduledoc """
Defines a group.
* `id` - An string identifying the group
* `name` - A string describing the group’s name
* `location` - A string describing the group’s location
* `hex` - A string that defines the color associated with the group
* `icon` - The name of the ... | 33.947368 | 84 | 0.649612 |
2dcfd01b74704efc7c67988228e6b34f286f9ead | 583 | ex | Elixir | lib/lapin/connection/supervisor.ex | expert360/lapin | 81f63910178523af6658412a6730632bad08d143 | [
"MIT"
] | null | null | null | lib/lapin/connection/supervisor.ex | expert360/lapin | 81f63910178523af6658412a6730632bad08d143 | [
"MIT"
] | null | null | null | lib/lapin/connection/supervisor.ex | expert360/lapin | 81f63910178523af6658412a6730632bad08d143 | [
"MIT"
] | null | null | null | defmodule Lapin.Connection.Supervisor do
@moduledoc """
Lapin Connections Supervisor
"""
use Supervisor
require Logger
@spec start_link(configuration :: Lapin.config()) :: Supervisor.on_start()
def start_link(configuration) do
Supervisor.start_link(__MODULE__, configuration, name: __MODULE__)
end
... | 26.5 | 76 | 0.708405 |
2dcfe4c8575ffa6fe75cf5995ccd3a243ff1b65c | 2,026 | ex | Elixir | lib/grizzly/zwave/commands/multi_channel_endpoint_find.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/multi_channel_endpoint_find.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/multi_channel_endpoint_find.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.MultiChannelEndpointFind do
@moduledoc """
This command is used to request End Points having a specific Generic or Specific Device Class in End
Points.
Params:
* `:generic_device_class` - a generic device class (required)
* `:specific_device_class` - a specific device cla... | 28.535211 | 102 | 0.700888 |
2dd00f317ea1d046e2acde4175db3c3e7dcc0275 | 120 | exs | Elixir | test/test_helper.exs | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 4 | 2018-04-20T15:39:27.000Z | 2019-04-16T08:40:27.000Z | test/test_helper.exs | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 2 | 2018-03-20T02:41:46.000Z | 2018-04-12T12:43:45.000Z | test/test_helper.exs | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 1 | 2018-04-01T07:46:44.000Z | 2018-04-01T07:46:44.000Z | Code.load_file("test/support/generators.ex")
Code.load_file("test/support/test_case.ex")
ExCheck.start()
ExUnit.start()
| 24 | 44 | 0.783333 |
2dd0288b9bcd29a37f4d4030b208043524ab912b | 1,908 | exs | Elixir | mix.exs | iboss-ptk/Atfirs | 1361c8f1b86971317b33212f9269aaffa0f09110 | [
"MIT"
] | 2 | 2021-01-23T09:23:20.000Z | 2021-02-12T09:15:45.000Z | mix.exs | iboss-ptk/Atfirs | 1361c8f1b86971317b33212f9269aaffa0f09110 | [
"MIT"
] | null | null | null | mix.exs | iboss-ptk/Atfirs | 1361c8f1b86971317b33212f9269aaffa0f09110 | [
"MIT"
] | null | null | null | defmodule Atfirs.MixProject do
use Mix.Project
def project do
[
app: :atfirs,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 28.058824 | 84 | 0.573899 |
2dd042a2cc56197e83708249d766602b9fd13a39 | 16,001 | exs | Elixir | test/sweet_xml_test.exs | fusillicode/sweet_xml | 710469e8c843e7762f7c6bb9940cd62d2b709628 | [
"MIT"
] | 171 | 2017-06-05T20:27:10.000Z | 2022-03-20T23:36:41.000Z | test/sweet_xml_test.exs | fusillicode/sweet_xml | 710469e8c843e7762f7c6bb9940cd62d2b709628 | [
"MIT"
] | 46 | 2017-05-17T17:36:05.000Z | 2022-03-30T16:00:34.000Z | test/sweet_xml_test.exs | fusillicode/sweet_xml | 710469e8c843e7762f7c6bb9940cd62d2b709628 | [
"MIT"
] | 39 | 2017-07-09T16:35:05.000Z | 2021-10-31T17:31:16.000Z | defmodule SweetXmlTest do
use ExUnit.Case, async: true
doctest SweetXml
import SweetXml
setup do
simple = File.read!("./test/files/simple.xml")
complex = File.read!("./test/files/complex.xml")
complex_stream = File.stream!("./test/files/complex.xml")
simple_stream = File.stream!("./test/files/... | 33.40501 | 141 | 0.533717 |
2dd04648d1aeb13c97f508957a5dbacf4c1af95f | 192 | ex | Elixir | lib/ex_esi/behaviour.ex | lukasni/ex-esi | b902a2a4d9ef834473c71b5c470320cc2854e8eb | [
"MIT"
] | null | null | null | lib/ex_esi/behaviour.ex | lukasni/ex-esi | b902a2a4d9ef834473c71b5c470320cc2854e8eb | [
"MIT"
] | null | null | null | lib/ex_esi/behaviour.ex | lukasni/ex-esi | b902a2a4d9ef834473c71b5c470320cc2854e8eb | [
"MIT"
] | null | null | null | defmodule ExEsi.Behaviour do
@callback request(ExEsi.Operation.t()) :: {:ok, term} | {:error, term}
@callback request(ExEsi.Operation.t(), Keyword.t()) :: {:ok, term} | {:error, term}
end
| 38.4 | 85 | 0.65625 |
2dd05bd932d874cfafd4c977d0954fa293de0bd4 | 1,159 | exs | Elixir | apps/language_server/mix.exs | hrzndhrn/elixir-ls | 07209bd05d431031fcf887215556842a94dd6293 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/mix.exs | hrzndhrn/elixir-ls | 07209bd05d431031fcf887215556842a94dd6293 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/mix.exs | hrzndhrn/elixir-ls | 07209bd05d431031fcf887215556842a94dd6293 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.LanguageServer.Mixfile do
use Mix.Project
def project do
[
app: :language_server,
version: "0.8.1",
elixir: ">= 1.10.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
al... | 24.659574 | 77 | 0.588438 |
2dd06432498e2386f5c06c97ddede03f56afa78a | 2,163 | exs | Elixir | apps/nerves_hub_www/test/nerves_hub_www_web/live/device_live_edit_test.exs | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/test/nerves_hub_www_web/live/device_live_edit_test.exs | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/test/nerves_hub_www_web/live/device_live_edit_test.exs | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWWWeb.DeviceLiveEditTest do
use NervesHubWWWWeb.ConnCase.Browser, async: false
alias NervesHubWWWWeb.Router.Helpers, as: Routes
alias NervesHubWWWWeb.DeviceLive.Edit
alias NervesHubWWWWeb.Endpoint
setup %{conn: conn, fixture: %{org: org, device: device, product: product}} do
# TODO:... | 33.276923 | 96 | 0.648636 |
2dd07535c6d3c6a0bcddc39520b19e32df71bf59 | 1,551 | exs | Elixir | test/resource/actions/create_test.exs | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | 1 | 2021-12-27T09:43:29.000Z | 2021-12-27T09:43:29.000Z | test/resource/actions/create_test.exs | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | test/resource/actions/create_test.exs | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Test.Dsl.Resource.Actions.CreateTest do
@moduledoc false
use ExUnit.Case, async: true
defmacrop defposts(do: body) do
quote do
defmodule Post do
@moduledoc false
use Ash.Resource,
data_layer: Ash.DataLayer.Ets
attributes do
attribute :id, :uuid... | 22.478261 | 90 | 0.520309 |
2dd096b667aae42200ad63ef49130284c3ccf211 | 1,093 | ex | Elixir | lib/gen_tcp_accept_and_close/server.ex | jesseshieh/elixir-tcp-accept-and-close | 4e198b839c7b0ccc11bd31ac456eda7c2badcb2b | [
"MIT"
] | 4 | 2019-10-13T17:43:14.000Z | 2021-10-30T19:12:49.000Z | lib/gen_tcp_accept_and_close/server.ex | jesseshieh/elixir-tcp-accept-and-close | 4e198b839c7b0ccc11bd31ac456eda7c2badcb2b | [
"MIT"
] | null | null | null | lib/gen_tcp_accept_and_close/server.ex | jesseshieh/elixir-tcp-accept-and-close | 4e198b839c7b0ccc11bd31ac456eda7c2badcb2b | [
"MIT"
] | null | null | null | defmodule GenTcpAcceptAndClose.Server do
use GenServer
require Logger
# from https://medium.com/blackode/quick-easy-tcp-genserver-with-elixir-and-erlang-10189b25e221
def start_link(_) do
ip = Application.get_env(:gen_tcp_accept_and_close, :ip, {0, 0, 0, 0})
port = Application.get_env(:gen_tcp_accept_an... | 35.258065 | 123 | 0.697164 |
2dd0ced0ea9c82ce49efcd1cf29883f32f53adc0 | 18,334 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/jobs.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/jobs.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/jobs.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 46.651399 | 242 | 0.675412 |
2dd10ecd783a27c06463b8336dd4ab9b24d39481 | 3,348 | exs | Elixir | test/elixir_lokalise_api/endpoints/translations_test.exs | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 3 | 2021-06-24T14:30:31.000Z | 2021-09-06T11:30:17.000Z | test/elixir_lokalise_api/endpoints/translations_test.exs | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 8 | 2021-09-15T07:30:59.000Z | 2022-02-01T17:40:17.000Z | test/elixir_lokalise_api/endpoints/translations_test.exs | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 2 | 2021-09-07T11:10:51.000Z | 2021-09-26T07:37:39.000Z | defmodule ElixirLokaliseApi.TranslationsTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias ElixirLokaliseApi.Pagination
alias ElixirLokaliseApi.Translations
alias ElixirLokaliseApi.Collection.Translations, as: TranslationsCollection
alias ElixirLokaliseApi.Model.Transl... | 33.148515 | 95 | 0.719235 |
2dd113ee302e3769118e2f2a17fb342927f58216 | 6,721 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_api_proxy_revision.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_api_proxy_revision.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_api_proxy_revision.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... | 52.92126 | 190 | 0.677727 |
2dd138ba2832cd9058c13f36bbdf98decbd82ada | 5,887 | ex | Elixir | lib/nostrum/struct/message.ex | TeeSeal/nostrum | db547cb0291036dafcbd044a705da8adc8c4bd34 | [
"MIT"
] | null | null | null | lib/nostrum/struct/message.ex | TeeSeal/nostrum | db547cb0291036dafcbd044a705da8adc8c4bd34 | [
"MIT"
] | null | null | null | lib/nostrum/struct/message.ex | TeeSeal/nostrum | db547cb0291036dafcbd044a705da8adc8c4bd34 | [
"MIT"
] | null | null | null | defmodule Nostrum.Struct.Message do
@moduledoc """
Struct representing a Discord message.
"""
alias Nostrum.Struct.{Channel, Embed, Guild, User}
alias Nostrum.Struct.Guild.{Member, Role}
alias Nostrum.Struct.Message.{Activity, Application, Attachment, Reaction, Reference}
alias Nostrum.{Snowflake, Util}
... | 30.035714 | 118 | 0.635978 |
2dd13e1deb1bf57f89a7cf649d485f95f4495cc9 | 932 | exs | Elixir | config/config.exs | cultivatedcode/alertlytics | 92bbc071bfc667e8c15dca6aa3a5cc28627f2fed | [
"Apache-2.0"
] | null | null | null | config/config.exs | cultivatedcode/alertlytics | 92bbc071bfc667e8c15dca6aa3a5cc28627f2fed | [
"Apache-2.0"
] | 3 | 2019-02-24T18:04:02.000Z | 2020-06-12T04:36:44.000Z | config/config.exs | cultivatedcode/alertlytics | 92bbc071bfc667e8c15dca6aa3a5cc28627f2fed | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :logger,
:console,
format: "$time $metadata[$level] $levelpad$message\n",
metadata: [:request_id]
config :alertlytics, Alertlytics, config_path: System.get_env("CONFIG_PATH")
config :alertlytics, Alertlytics.Workers.Slack, token: System.get_env("SLACK_TOKEN")
config :slack, ... | 35.846154 | 89 | 0.76073 |
2dd1668801f64ec774fa025e523aaf076238a39d | 192 | exs | Elixir | test/test_helper.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | test/test_helper.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | test/test_helper.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | ExUnit.start
Mix.Task.run "ecto.create", ~w(-r Pasteboard.Repo --quiet)
Mix.Task.run "ecto.migrate", ~w(-r Pasteboard.Repo --quiet)
Ecto.Adapters.SQL.begin_test_transaction(Pasteboard.Repo)
| 27.428571 | 59 | 0.755208 |
2dd1785761ba554703a5959187541b3f81a06472 | 511 | ex | Elixir | web/controllers/stripe_connect_events_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/stripe_connect_events_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/stripe_connect_events_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.StripeConnectEventsController do
use CodeCorps.Web, :controller
alias CodeCorps.StripeService.WebhookProcessing.{
ConnectEventHandler, EnvironmentFilter, WebhookProcessor
}
def create(conn, event_params) do
case EnvironmentFilter.environment_matches?(event_params) do
true ->
... | 28.388889 | 87 | 0.7182 |
2dd18efcb2bc50037e3cdc7f131fecb494a80057 | 349 | ex | Elixir | dictionary/lib/impl/word_list.ex | imattman/elixir-for-programmers | ff757b05fec5d00f32a067fc5e6d0364ce56358b | [
"MIT"
] | null | null | null | dictionary/lib/impl/word_list.ex | imattman/elixir-for-programmers | ff757b05fec5d00f32a067fc5e6d0364ce56358b | [
"MIT"
] | null | null | null | dictionary/lib/impl/word_list.ex | imattman/elixir-for-programmers | ff757b05fec5d00f32a067fc5e6d0364ce56358b | [
"MIT"
] | null | null | null | defmodule Dictionary.Impl.WordList do
@type t :: list(String.t())
@spec word_list() :: t
def word_list() do
"../../assets/words.txt"
|> Path.expand(__DIR__)
|> File.read!()
|> String.split(~r/\n/, trim: true)
end
@spec random_word(t) :: String.t()
def random_word(word_list) do
word_lis... | 20.529412 | 39 | 0.610315 |
2dd19762f62e21f35b9f184d30534b5a55d90a58 | 821 | exs | Elixir | test/pg/test_helper.exs | polmiro/ecto_enum | 6d19eb1822358578579555682054617b5bb1d210 | [
"MIT"
] | null | null | null | test/pg/test_helper.exs | polmiro/ecto_enum | 6d19eb1822358578579555682054617b5bb1d210 | [
"MIT"
] | null | null | null | test/pg/test_helper.exs | polmiro/ecto_enum | 6d19eb1822358578579555682054617b5bb1d210 | [
"MIT"
] | null | null | null | Logger.configure(level: :info)
ExUnit.start()
alias Ecto.Integration.TestRepo
Application.put_env(:ecto, TestRepo,
adapter: Ecto.Adapters.Postgres,
url: "ecto://postgres:postgres@localhost/ecto_test",
pool: Ecto.Adapters.SQL.Sandbox)
defmodule Ecto.Integration.TestRepo do
use Ecto.Repo, otp_app: :ecto
def... | 26.483871 | 75 | 0.756395 |
2dd1cbc9ed9932c57ad66a1f11e80c56b92de547 | 918 | ex | Elixir | learningElixir/lib/learningElixir/application.ex | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | learningElixir/lib/learningElixir/application.ex | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | learningElixir/lib/learningElixir/application.ex | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | defmodule LearningElixir.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 sta... | 30.6 | 73 | 0.733115 |
2dd1cd7b63dd017ed4f2e3f8c49aaf418cfcf091 | 1,490 | ex | Elixir | lib/power_assert/ast.ex | szTheory/power_assert_ex | 0ae79b6b1e801bd5395a689a203c577650ae774d | [
"Apache-2.0"
] | null | null | null | lib/power_assert/ast.ex | szTheory/power_assert_ex | 0ae79b6b1e801bd5395a689a203c577650ae774d | [
"Apache-2.0"
] | null | null | null | lib/power_assert/ast.ex | szTheory/power_assert_ex | 0ae79b6b1e801bd5395a689a203c577650ae774d | [
"Apache-2.0"
] | null | null | null | defmodule PowerAssert.Ast do
@moduledoc """
this module is deprecated.
It will be replaced with `Macro.traverse` at the timing to cut support for v1.0.x and v1.1.x
"""
# almost from elixir source
def traverse(ast, acc, pre, post) when is_function(pre, 2) and is_function(post, 2) do
{ast, acc} = pre.(a... | 25.689655 | 94 | 0.561074 |
2dd1e27e03a5413a7b95787ece154ccebf673230 | 696 | exs | Elixir | test/integration/show_board_test.exs | flyingalex/another-phoenix-trello | c8844c4f4ad64df2f809a3f87637a416561c71b6 | [
"MIT"
] | null | null | null | test/integration/show_board_test.exs | flyingalex/another-phoenix-trello | c8844c4f4ad64df2f809a3f87637a416561c71b6 | [
"MIT"
] | null | null | null | test/integration/show_board_test.exs | flyingalex/another-phoenix-trello | c8844c4f4ad64df2f809a3f87637a416561c71b6 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.ShowBoardTest do
use PhoenixTrello.IntegrationCase
alias PhoenixTrello.{Board}
setup do
user = create_user
board = create_board(user)
{:ok, %{user: user, board: board |> Repo.preload([:user, :members, lists: :cards])}}
end
@tag :integration
test "Clicking on previousl... | 24 | 88 | 0.675287 |
2dd228cbe7f4fadcac845ac638d421bb99a487ea | 2,254 | ex | Elixir | lib/game.ex | BartKrol/spyfall | fa88f39faeb4262fd7ee041c393af768c7f84bf4 | [
"MIT"
] | null | null | null | lib/game.ex | BartKrol/spyfall | fa88f39faeb4262fd7ee041c393af768c7f84bf4 | [
"MIT"
] | null | null | null | lib/game.ex | BartKrol/spyfall | fa88f39faeb4262fd7ee041c393af768c7f84bf4 | [
"MIT"
] | null | null | null | #TODO - refactor to storage
defmodule Spyfall.Game do
def start_link do
Agent.start_link(fn -> Map.new end, name: __MODULE__)
end
def play(game_id) do
game = Agent.get(__MODULE__, &Map.get(&1, game_id))
if Enum.count(game.players) >= 1 do
spy = Enum.random(game.players)
location = Enum.ra... | 23.726316 | 123 | 0.578083 |
2dd2746d7d3a9f268bc86464d436f4a26cc61404 | 6,545 | ex | Elixir | lib/rajska.ex | jotaviobiondo/rajska | d678d501fed0e698d697bb8d58648451091ec1ff | [
"MIT"
] | null | null | null | lib/rajska.ex | jotaviobiondo/rajska | d678d501fed0e698d697bb8d58648451091ec1ff | [
"MIT"
] | null | null | null | lib/rajska.ex | jotaviobiondo/rajska | d678d501fed0e698d697bb8d58648451091ec1ff | [
"MIT"
] | null | null | null | defmodule Rajska do
@moduledoc """
Rajska is an elixir authorization library for [Absinthe](https://github.com/absinthe-graphql/absinthe).
It provides the following middlewares:
- `Rajska.QueryAuthorization`
- `Rajska.QueryScopeAuthorization`
- `Rajska.ObjectAuthorization`
- `Rajska.ObjectScopeAuthorizat... | 33.737113 | 392 | 0.706646 |
2dd29b1e161c8acc4f01b477c2fc9dc3c546aaff | 1,082 | ex | Elixir | 2020/otp/dash/lib/dash_web/channels/user_socket.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/dash/lib/dash_web/channels/user_socket.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/dash/lib/dash_web/channels/user_socket.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule DashWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", DashWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie... | 30.055556 | 83 | 0.692237 |
2dd2b8befbe0c66203b02d245591cb9f1790ed02 | 426 | ex | Elixir | lib/edgedb/protocol/messages/server/authentication/authentication_ok.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | lib/edgedb/protocol/messages/server/authentication/authentication_ok.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | lib/edgedb/protocol/messages/server/authentication/authentication_ok.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.Protocol.Messages.Server.Authentication.AuthenticationOK do
use EdgeDB.Protocol.Message
alias EdgeDB.Protocol.Datatypes
defmessage(
name: :authentication_ok,
server: true,
mtype: 0x52,
fields: [
auth_status: Datatypes.UInt32.t()
]
)
@impl EdgeDB.Protocol.Message
... | 21.3 | 76 | 0.7277 |
2dd2df8f46ab9e9901c34eb67139e50e9f62125b | 3,959 | exs | Elixir | test/plugs/pagination/cursor/cursor_page_request_test.exs | heyorbit/elixir-server-utils | 32643ecf4042a110495ffb2eaee3016aa5276d5a | [
"MIT"
] | null | null | null | test/plugs/pagination/cursor/cursor_page_request_test.exs | heyorbit/elixir-server-utils | 32643ecf4042a110495ffb2eaee3016aa5276d5a | [
"MIT"
] | null | null | null | test/plugs/pagination/cursor/cursor_page_request_test.exs | heyorbit/elixir-server-utils | 32643ecf4042a110495ffb2eaee3016aa5276d5a | [
"MIT"
] | null | null | null | defmodule ServerUtils.Plugs.CursorPageRequestTest do
@moduledoc false
@moduletag [:pagination, :cursor]
use ServerUtils.Support.PlugCase
alias Plug.Conn
alias ServerUtils.Plugs.Pagination.Cursor.PageRequest, as: CursorPageRequestPlug
alias ServerUtils.Pagination.Cursor.PageRequest
@cursor_key Applica... | 35.666667 | 139 | 0.726699 |
2dd2f804cc351ddb0332da976627bfc75bcd1952 | 1,669 | ex | Elixir | backend/lib/honeyland/astarte/device/hardware_info.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/astarte/device/hardware_info.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/astarte/device/hardware_info.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 32.72549 | 91 | 0.704614 |
2dd2fad14c3b84c081918f9842d78ed59ea3cb40 | 1,720 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/commit_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/commit_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1/model/commit_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.4 | 151 | 0.727326 |
2dd2fe939e6a96ec7d435cf6502e68a515047547 | 349 | ex | Elixir | lib/digital_ocean/operation.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 5 | 2020-09-20T19:35:32.000Z | 2021-12-15T08:57:22.000Z | lib/digital_ocean/operation.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 8 | 2020-09-25T14:30:03.000Z | 2022-02-21T18:04:48.000Z | lib/digital_ocean/operation.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 4 | 2020-09-25T14:26:11.000Z | 2021-08-09T06:43:18.000Z | defmodule DigitalOcean.Operation do
@type t ::
%__MODULE__{
headers: DigitalOcean.http_headers_t(),
method: DigitalOcean.http_method_t(),
params: Keyword.t(),
path: String.t()
}
defstruct headers: [],
method: nil,
params: [... | 23.266667 | 51 | 0.507163 |
2dd321664ec03105e619f635371fde68466e0f56 | 1,047 | ex | Elixir | test/support/conn_case.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | test/support/conn_case.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | test/support/conn_case.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule Potionx.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the t... | 29.914286 | 92 | 0.733524 |
2dd329f2332900fb3508695170322705102251bb | 1,798 | ex | Elixir | lib/pixie/backends/redis/clients.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/backends/redis/clients.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/backends/redis/clients.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | defmodule Pixie.Backend.Redis.Clients do
import Pixie.Backend.Redis.Connection
alias Timex.Time
@moduledoc """
This process manages the generation and removal of client processes.
"""
def create do
client_id = Pixie.Backend.generate_namespace
{:ok, pid} = Pixie.ClientSupervisor.start_child client... | 22.759494 | 91 | 0.655729 |
2dd33872157ec9a1d730074c5e5081e2528092f0 | 3,655 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/api/customer_usage_reports.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/admin/lib/google_api/admin/reports_v1/api/customer_usage_reports.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/customer_usage_reports.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 ... | 45.6875 | 187 | 0.671956 |
2dd33c31dd31bef5c3e9daf04f23e64016b8e6f7 | 46 | exs | Elixir | config/test.exs | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | config/test.exs | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | config/test.exs | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | import Config
config :logger,
level: :warn
| 9.2 | 15 | 0.717391 |
2dd3844577389216385adb2979684e2b9ea60dd1 | 11,625 | ex | Elixir | apps/api_accounts/lib/api_accounts/dynamo.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_accounts/lib/api_accounts/dynamo.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_accounts/lib/api_accounts/dynamo.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiAccounts.Dynamo do
@moduledoc """
Interface for operations with DynamoDB.
"""
alias ApiAccounts.{Changeset, Migrations.SchemaMigration}
@read_capacity 1
@write_capacity 1
@doc """
Deletes all tables with the configured prefix from DynamoDB.
"""
def delete_all_tables do
table_pref... | 26.541096 | 93 | 0.611957 |
2dd39825e53b6106a6bd73f1b6b692bf8b3a610b | 1,950 | exs | Elixir | clients/service_consumer_management/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.104478 | 118 | 0.673846 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.