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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
938b20e6828f465d85221bb999e3984a2fad8d28 | 2,452 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/named_style_suggestion_state.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/named_style_suggestion_state.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/named_style_suggestion_state.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.559322 | 212 | 0.752447 |
938b26afb601eed290ae8e80fee8423ccda3c94e | 945 | ex | Elixir | lib/glimesh_web/live/live_helpers.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh_web/live/live_helpers.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh_web/live/live_helpers.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.LiveHelpers do
@moduledoc """
Inject methods into live views to provide common functionality.
"""
import Phoenix.LiveView.Helpers
@doc """
Renders a component inside the `GlimeshWeb.ModalComponent` component.
The rendered modal receives a `:return_to` option to properly update
th... | 25.540541 | 71 | 0.671958 |
938b2ab763f09794ce2796513ea944ebb1a1438f | 216 | exs | Elixir | priv/repo/migrations/20200604234142_add_mailchimp_to_riders.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20200604234142_add_mailchimp_to_riders.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20200604234142_add_mailchimp_to_riders.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.AddMailchimpToRiders do
use Ecto.Migration
def change do
alter table(:riders) do
add :mailchimp_id, :string
add :mailchimp_status, :string
end
end
end
| 19.636364 | 61 | 0.722222 |
938b6bdbbc735a3132fd22baf3013dbe46c7c4ed | 1,139 | exs | Elixir | config/config.exs | wrren/baiji_generator.ex | 7c36c0089d6b88576fa6e064e86c342f03729003 | [
"MIT"
] | null | null | null | config/config.exs | wrren/baiji_generator.ex | 7c36c0089d6b88576fa6e064e86c342f03729003 | [
"MIT"
] | null | null | null | config/config.exs | wrren/baiji_generator.ex | 7c36c0089d6b88576fa6e064e86c342f03729003 | [
"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.741935 | 73 | 0.755048 |
938b8dbe25e77c7c73d2753894c9769a75832fac | 464 | ex | Elixir | lib/event_loop/event_callbacks.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 5 | 2016-10-20T10:00:59.000Z | 2017-11-19T08:14:18.000Z | lib/event_loop/event_callbacks.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 39 | 2020-04-22T05:27:32.000Z | 2022-03-13T17:22:26.000Z | lib/event_loop/event_callbacks.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | null | null | null | defmodule LaFamiglia.EventCallbacks do
@moduledoc """
This module contains callbacks for models that need to modify the event queue
after they have been inserted, updated or deleted. All calls are forwarded to
the event queue.
"""
def send_to_queue(event) do
LaFamiglia.EventQueue.cast({:new_event, even... | 23.2 | 79 | 0.721983 |
938b93c808712dfae09c3bc71e68ca88d977c62c | 2,563 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/log_descriptor.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/log_descriptor.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/log_descriptor.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.462963 | 303 | 0.754194 |
938bc11f13d879b65cac83a5c2bb87f8f855802a | 61 | ex | Elixir | lib/erlixir_web/views/page_view.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | lib/erlixir_web/views/page_view.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | lib/erlixir_web/views/page_view.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | defmodule ErlixirWeb.PageView do
use ErlixirWeb, :view
end
| 15.25 | 32 | 0.803279 |
938bf3fe44e1f842232cf03c1d51ce8af712304f | 328 | ex | Elixir | lib/grizzly/command_class/basic.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/basic.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/basic.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.Basic do
@type value :: :on | :off
@type value_byte :: 0x00 | 0xFF
@spec encode_value(value) :: {:ok, value_byte} | {:error, :invalid_arg, any()}
def encode_value(:on), do: {:ok, 0xFF}
def encode_value(:off), do: {:ok, 0x00}
def encode_value(arg), do: {:error, :invalid_arg, a... | 32.8 | 80 | 0.658537 |
938c1b0c783d836331ee6f869d2e6b8afd62a32c | 1,224 | exs | Elixir | test/channels/my_room_channel_test.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | test/channels/my_room_channel_test.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | test/channels/my_room_channel_test.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | defmodule MyChatEx.MyRoomChannelTest do
use MyChatEx.ChannelCase, async: true
alias MyChatEx.UserSocket
setup do
user_id = "123"
token = Phoenix.Token.sign(@endpoint, "user", user_id)
{:ok, socket} = connect(UserSocket, %{"token" => token})
{:ok, _reply, socket} = subscribe_and_join(socket, "my... | 33.081081 | 93 | 0.656863 |
938c2c4e3cc4427356c1a8f82fb9c89ba4fc091b | 984 | exs | Elixir | exercises/02-higher-order-functions/reduce/increasing/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/02-higher-order-functions/reduce/increasing/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/02-higher-order-functions/reduce/increasing/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Setup do
@script "shared.exs"
def setup(directory \\ ".") do
path = Path.join(directory, @script)
if File.exists?(path) do
Code.require_file(path)
Shared.setup(__DIR__)
else
setup(Path.join(directory, ".."))
end
end
end
Setup.setup
defmodule Tests do
use ExUnit.C... | 28.114286 | 75 | 0.662602 |
938c32effbcc94e5399f86d57ad972e0277b6870 | 1,816 | exs | Elixir | test/controllers/pet_rescue_controller_test.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | null | null | null | test/controllers/pet_rescue_controller_test.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | 1 | 2016-03-28T03:13:34.000Z | 2020-08-11T22:26:12.000Z | test/controllers/pet_rescue_controller_test.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | null | null | null | defmodule SponsorDotDog.PetRescueControllerTest do
use SponsorDotDog.ConnCase
alias SponsorDotDog.PetRescue
@valid_attrs %{address1: "some content", address2: "some content", city: "some content", country: "some content", email: "some content", fax: "some content", phone: "some content", rescue_id: "some content... | 42.232558 | 259 | 0.713656 |
938c34c5e80b1846b6f58f109e100fce496f9ce4 | 1,784 | ex | Elixir | apps/tai/lib/tai/venue_adapters/bitmex/products.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/bitmex/products.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/bitmex/products.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Bitmex.Products do
def products(venue_id) do
with {:ok, instruments, _rate_limit} <- ExBitmex.Rest.Instruments.all(%{start: 0, count: 500}) do
products =
instruments
|> Enum.map(&build(&1, venue_id))
|> Enum.filter(& &1)
{:ok, products}
else
... | 34.307692 | 101 | 0.674327 |
938c661acca90b2eae57a96a73077213cd7e47c9 | 3,298 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_group.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_group.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_group.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.797101 | 293 | 0.702547 |
938c8096a60f5027f8af0d021a9e97ccde8235fe | 1,340 | exs | Elixir | mix.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | 2 | 2018-09-30T02:59:33.000Z | 2018-10-08T19:55:38.000Z | mix.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | mix.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | defmodule Rak.Mixfile do
use Mix.Project
def application, do: [
extra_applications: extra_applications(Mix.env)
]
def project, do: [
app: :rak,
name: "Rak",
description: "Game Server Maker",
version: "0.1.2",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
... | 23.508772 | 78 | 0.557463 |
938c8f161ab91a1c9caa5d3dcba4ad5eb074c1ca | 257 | ex | Elixir | lib/jerboa.ex | ACollectionOfAtoms/jerboa | 16000d450bb60b544b5c91f0fd7540a31b6c90b8 | [
"Apache-2.0"
] | 14 | 2016-12-22T10:38:34.000Z | 2021-03-11T23:20:26.000Z | lib/jerboa.ex | ACollectionOfAtoms/jerboa | 16000d450bb60b544b5c91f0fd7540a31b6c90b8 | [
"Apache-2.0"
] | 94 | 2016-12-22T13:13:29.000Z | 2021-02-10T14:22:32.000Z | lib/jerboa.ex | ACollectionOfAtoms/jerboa | 16000d450bb60b544b5c91f0fd7540a31b6c90b8 | [
"Apache-2.0"
] | 6 | 2017-04-03T20:23:00.000Z | 2022-03-06T10:14:30.000Z | defmodule Jerboa do
@moduledoc """
STUN/TURN encoder, decoder and client library
Jerboa consists of two components:
* `Jerboa.Format` an encoding & decoding library for the STUN wire format
* `Jerboa.Client` an Elixir STUN/TURN client
"""
end
| 23.363636 | 75 | 0.727626 |
938cc4c9c98aadee73e9f8931971e418d1bb925f | 144 | exs | Elixir | test/tictactoe_test.exs | ripertn/tictactoe | ff4641d5931b5e7c1ac4761d5796663dcfed4e08 | [
"MIT"
] | 1 | 2018-07-16T10:05:57.000Z | 2018-07-16T10:05:57.000Z | test/tictactoe_test.exs | ripertn/tictactoe | ff4641d5931b5e7c1ac4761d5796663dcfed4e08 | [
"MIT"
] | null | null | null | test/tictactoe_test.exs | ripertn/tictactoe | ff4641d5931b5e7c1ac4761d5796663dcfed4e08 | [
"MIT"
] | null | null | null | defmodule TictactoeTest do
use ExUnit.Case
doctest Tictactoe
test "greets the world" do
assert Tictactoe.hello() == :world
end
end
| 16 | 38 | 0.722222 |
938d10b9bda532e21c6a27591f336dcd0659d45d | 442 | ex | Elixir | lib/elias.ex | oestrich/hcl-elixir | aba949284785f81c4e690755cfec5e557c7bda4d | [
"MIT"
] | 1 | 2019-10-17T06:15:10.000Z | 2019-10-17T06:15:10.000Z | lib/elias.ex | oestrich/hcl-elixir | aba949284785f81c4e690755cfec5e557c7bda4d | [
"MIT"
] | null | null | null | lib/elias.ex | oestrich/hcl-elixir | aba949284785f81c4e690755cfec5e557c7bda4d | [
"MIT"
] | 1 | 2019-10-18T09:01:20.000Z | 2019-10-18T09:01:20.000Z | defmodule Elias do
@moduledoc """
Elias is a UCL parser
[Universal Configuration Language](https://github.com/vstakhov/libucl)
"""
alias Elias.AST
alias Elias.Merge
alias Elias.Parser
@doc """
Parse an UCL string into a map
"""
@spec parse(String.t()) :: map()
def parse(string) do
case Pa... | 17.68 | 72 | 0.60181 |
938d1be719d39f5f8aaa1cf8d04a19f3929a7b57 | 120 | ex | Elixir | debug_eample/lib/debug_eample.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | 1 | 2019-03-28T09:08:16.000Z | 2019-03-28T09:08:16.000Z | debug_eample/lib/debug_eample.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | debug_eample/lib/debug_eample.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | defmodule DebugEample do
def cpu_burns(a, b, c) do
x = a * 2
y = b * 3
z = c * 5
x + y + z
end
end
| 12 | 27 | 0.475 |
938d2bd79279f0fd0fdf5e18e5824c3423b187e0 | 1,425 | ex | Elixir | lib/text_based_fps/player_commands/move.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 1 | 2022-03-02T12:18:07.000Z | 2022-03-02T12:18:07.000Z | lib/text_based_fps/player_commands/move.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 12 | 2021-05-31T21:41:09.000Z | 2021-07-30T03:18:09.000Z | lib/text_based_fps/player_commands/move.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | null | null | null | defmodule TextBasedFPS.PlayerCommand.Move do
import TextBasedFPS.CommandHelper
import TextBasedFPS.Text, only: [highlight: 1]
alias TextBasedFPS.{Direction, PlayerCommand, Room, ServerState}
@behaviour PlayerCommand
@impl true
def execute(state, player, direction) do
with {:ok, room} <- require_alive... | 34.756098 | 85 | 0.723509 |
938d783cec4b2470f776c69c6e72f7451b73a313 | 2,302 | ex | Elixir | lib/protobuf/protoc/context.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 419 | 2017-04-02T13:10:51.000Z | 2020-11-15T15:53:17.000Z | lib/protobuf/protoc/context.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 101 | 2020-11-22T20:20:11.000Z | 2022-03-06T16:09:26.000Z | lib/protobuf/protoc/context.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 83 | 2017-07-24T21:50:04.000Z | 2020-11-15T08:52:34.000Z | defmodule Protobuf.Protoc.Context do
@moduledoc false
@type t() :: %__MODULE__{}
# Plugins passed by options
defstruct plugins: [],
### All files scope
# Mapping from file name to (mapping from type name to metadata, like elixir type name)
# %{"example.proto" => %{".examp... | 33.362319 | 113 | 0.628584 |
938dcffd5e0d990004f9f419497b0d550cd410b5 | 5,289 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/webproperty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/webproperty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics/lib/google_api/analytics/v3/model/webproperty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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... | 50.855769 | 255 | 0.683683 |
938dde3bceac6aa1cbde40b674a4afbccc4964d9 | 1,400 | ex | Elixir | server/lib/domsegserver_web/live/dataset_live/index.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | server/lib/domsegserver_web/live/dataset_live/index.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | 9 | 2021-12-09T18:19:21.000Z | 2022-01-09T03:45:33.000Z | server/lib/domsegserver_web/live/dataset_live/index.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | defmodule DOMSegServerWeb.DatasetLive.Index do
use DOMSegServerWeb, :live_view
alias DOMSegServer.Datasets
alias DOMSegServer.Datasets.Dataset
@impl true
def mount(_params, session, socket) do
{
:ok,
assign(
socket,
datasets: list_datasets(),
user_token: session["user... | 23.333333 | 72 | 0.667857 |
938ded74e990e0d9e71c3b388fc8d67aacb0e097 | 2,055 | exs | Elixir | mix.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | mix.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | mix.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | defmodule KittehTest.Mixfile do
use Mix.Project
def project do
[app: :kitteh_test,
version: "0.1.0",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 32.109375 | 89 | 0.580049 |
938df69b47d2ca2ee006a7c9f8cf6d0ba6fef84d | 474 | exs | Elixir | test/osrs_api_proxy_web/views/error_view_test.exs | ScapeGuru/osrs_api_proxy | 7d4cace8e5185ec60a324de274df225a58049b7a | [
"Apache-2.0"
] | null | null | null | test/osrs_api_proxy_web/views/error_view_test.exs | ScapeGuru/osrs_api_proxy | 7d4cace8e5185ec60a324de274df225a58049b7a | [
"Apache-2.0"
] | 37 | 2021-04-19T23:56:46.000Z | 2022-02-28T15:14:04.000Z | test/osrs_api_proxy_web/views/error_view_test.exs | ScapeGuru/osrs_api_proxy | 7d4cace8e5185ec60a324de274df225a58049b7a | [
"Apache-2.0"
] | null | null | null | defmodule OsrsApiProxyWeb.ErrorViewTest do
use OsrsApiProxyWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(OsrsApiProxyWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "... | 29.625 | 97 | 0.696203 |
938e026d48d793d2a164dca81324708afa5fe767 | 1,021 | ex | Elixir | lib/mix/tasks/shards.ex | craig-day/ecto_sharding | 9a754bf2c0a6ba1ce480ee93685add5472308c2c | [
"Apache-2.0"
] | 9 | 2017-09-27T02:47:23.000Z | 2021-03-17T00:01:29.000Z | lib/mix/tasks/shards.ex | craig-day/ecto_sharding | 9a754bf2c0a6ba1ce480ee93685add5472308c2c | [
"Apache-2.0"
] | 3 | 2018-02-24T19:25:41.000Z | 2018-09-17T18:39:20.000Z | lib/mix/tasks/shards.ex | craig-day/ecto_sharding | 9a754bf2c0a6ba1ce480ee93685add5472308c2c | [
"Apache-2.0"
] | 2 | 2017-09-26T19:24:10.000Z | 2018-03-07T00:50:10.000Z | defmodule Mix.Tasks.Shards do
@moduledoc false
alias EctoSharding.Configuration, as: Config
defmacro __using__(_) do
quote do
use Mix.Task
alias Mix.Tasks.Shards
end
end
def execute(func, args) when func == Mix.Tasks.Ecto.Dump, do: run_first_shard(func, args)
def execute(func, args) wh... | 23.744186 | 100 | 0.647405 |
938e59a6764d65dd93ef84528be681a52b1f5992 | 637 | ex | Elixir | lib/imagineer/image/png/chunk/decoders/time.ex | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 103 | 2015-01-28T19:09:42.000Z | 2018-10-22T15:05:46.000Z | lib/imagineer/image/png/chunk/decoders/time.ex | tyre/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 12 | 2015-07-11T05:12:41.000Z | 2018-07-21T04:42:47.000Z | lib/imagineer/image/png/chunk/decoders/time.ex | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 18 | 2015-06-16T15:48:34.000Z | 2018-06-22T02:34:40.000Z | defmodule Imagineer.Image.PNG.Chunk.Decoders.Time do
alias Imagineer.Image.PNG
def decode(
<<year::integer-size(16), month::integer-size(8), day::integer-size(8),
hour::integer-size(8), minute::integer-size(8), second::integer-size(8)>> = _content,
%PNG{} = image
) do
%PNG{
... | 24.5 | 95 | 0.525903 |
938e71b0df46aa497e27b21514a972993cdfcdba | 1,426 | exs | Elixir | exercises/strings_and_binaries_4.exs | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | 8 | 2018-08-26T08:10:08.000Z | 2021-04-05T16:05:05.000Z | exercises/strings_and_binaries_4.exs | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | null | null | null | exercises/strings_and_binaries_4.exs | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | 1 | 2019-10-08T09:56:43.000Z | 2019-10-08T09:56:43.000Z | defmodule StringCalculator do
def calculate(charlist) do
[num1, op, num2] = charlist
|> to_string
|> String.split
_apply_operator(String.to_integer(num1), op, String.to_integer(num2))
end
defp _apply_operator(number1, "-", number2), do: number1 - number2
defp _apply_operator(number1, "+", numb... | 35.65 | 73 | 0.698457 |
938e799facf2d8e7d012ecf02935c63a76399437 | 3,144 | ex | Elixir | lib/bow/exec.ex | kianmeng/bow | d0b2ad564b0ccd06eb7d4582b94177877559d4af | [
"MIT"
] | 25 | 2017-10-06T14:22:13.000Z | 2022-01-14T20:59:59.000Z | lib/bow/exec.ex | kianmeng/bow | d0b2ad564b0ccd06eb7d4582b94177877559d4af | [
"MIT"
] | 9 | 2017-10-30T06:02:22.000Z | 2022-01-03T13:57:57.000Z | lib/bow/exec.ex | kianmeng/bow | d0b2ad564b0ccd06eb7d4582b94177877559d4af | [
"MIT"
] | 4 | 2018-03-29T12:59:10.000Z | 2021-09-19T09:10:01.000Z | defmodule Bow.Exec do
@moduledoc """
Transform files with shell commands
This module allows executing any external command taking care of temporary path generation and error handling.
It is as reliable as [erlexec](https://github.com/saleyn/erlexec) module (very!).
It is also possible to provide custom comm... | 31.128713 | 129 | 0.604326 |
938e7ed1ebe94f599f07b92b23d482feddb0738b | 1,152 | exs | Elixir | implements/pascals-triangle/pascals_triangle.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | implements/pascals-triangle/pascals_triangle.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | 1 | 2018-06-19T18:59:41.000Z | 2018-06-19T18:59:41.000Z | implements/pascals-triangle/pascals_triangle.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | defmodule PascalsTriangle do
@doc """
Calculates the rows of a pascal triangle
with the given height
(n:k) = (n-1:k-1) + (n-1:k)
"""
@spec rows(integer) :: [[integer]]
#def rows(num) do
# Enum.reduce(0..(num - 1), [],
# fn k, n_list ->
# k_list = get_k(k, List.last(n_list))
# ... | 26.181818 | 60 | 0.517361 |
938e9b42bfe1ebf6236aa0f09af38b13b225ebae | 4,774 | ex | Elixir | lib/rdf/serialization/format.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/serialization/format.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/serialization/format.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.Serialization.Format do
@moduledoc """
A behaviour for RDF serialization formats.
A `RDF.Serialization` for a format can be implemented like this
defmodule SomeFormat do
use RDF.Serialization.Format
import RDF.Sigils
@id ~I<http://example.com/some_format>
... | 33.384615 | 95 | 0.645999 |
938ea746147cfab2fcb7e32300ab674f903b9b91 | 3,219 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/fitness/lib/google_api/fitness/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/connection.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 ... | 38.321429 | 77 | 0.718235 |
938eae19ea9d7d3b8345a326b5e36572bed1a0bf | 61 | ex | Elixir | api/lib/loose/repo.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | api/lib/loose/repo.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | api/lib/loose/repo.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | defmodule Loose.Repo do
use Ecto.Repo, otp_app: :loose
end
| 15.25 | 32 | 0.754098 |
938eb22fd60c77c26299c458b67854009894cfca | 497 | exs | Elixir | config/test.exs | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | config/test.exs | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | config/test.exs | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :speak_up, SpeakUpWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :speak_up, SpeakUp.... | 24.85 | 56 | 0.736419 |
938edac44b8554f125dcfe0e068110153fb5931d | 22,078 | ex | Elixir | lib/elixir/lib/calendar/date.ex | cdfuller/elixir | 3bd3f88d57d7fff6cab7b171294b89fb08eedfe7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/date.ex | cdfuller/elixir | 3bd3f88d57d7fff6cab7b171294b89fb08eedfe7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/date.ex | cdfuller/elixir | 3bd3f88d57d7fff6cab7b171294b89fb08eedfe7 | [
"Apache-2.0"
] | null | null | null | defmodule Date do
@moduledoc """
A Date struct and functions.
The Date struct contains the fields year, month, day and calendar.
New dates can be built with the `new/3` function or using the
`~D` (see `Kernel.sigil_D/2`) sigil:
iex> ~D[2000-01-01]
~D[2000-01-01]
Both `new/3` and sigil return ... | 28.268886 | 175 | 0.636199 |
938eef862c134e321868cb36638b05b2265519c3 | 3,020 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1_object_tracking_annotation.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1_object_tracking_annotation.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1_object_tracking_annotation.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... | 36.385542 | 166 | 0.758278 |
938f1557c77a741229832ab6ab526cf503b1f954 | 14,240 | exs | Elixir | test/chat_api/reporting_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | test/chat_api/reporting_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | test/chat_api/reporting_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApi.ReportingTest do
use ChatApi.DataCase
alias ChatApi.Reporting
describe "reporting" do
setup do
account = account_fixture()
customer = customer_fixture(account)
{:ok, account: account, customer: customer}
end
test "count_messages_by_date/1 retrieves the number of... | 31.091703 | 100 | 0.572472 |
938f1f2e7a9ac3c976225c6689f4a68a44fa9500 | 573 | exs | Elixir | languages/elixir/exercises/concept/dna-encoding/mix.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 3 | 2020-07-25T06:24:00.000Z | 2020-09-14T17:39:11.000Z | languages/elixir/exercises/concept/dna-encoding/mix.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 1 | 2020-01-26T20:08:06.000Z | 2020-01-26T20:08:06.000Z | languages/elixir/exercises/concept/dna-encoding/mix.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | null | null | null | defmodule DNA.MixProject do
use Mix.Project
def project do
[
app: :bitstrings,
version: "0.1.0",
# elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_a... | 19.758621 | 87 | 0.574171 |
938fa0fc687e7e04544ca2fdea2a20801781c84a | 861 | exs | Elixir | test/cauzzipay_web/views/users_view_test.exs | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | 1 | 2021-05-19T01:25:54.000Z | 2021-05-19T01:25:54.000Z | test/cauzzipay_web/views/users_view_test.exs | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | null | null | null | test/cauzzipay_web/views/users_view_test.exs | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | null | null | null | defmodule CauzzipayWeb.UsersViewTest do
use CauzzipayWeb.ConnCase, async: true
import Phoenix.View # para poder user o render()
alias Cauzzipay.{Account, User}
alias CauzzipayWeb.UsersView
test "renders create.json" do
params =%{
name: "Gustavo",
password: "123456",
nickname: "Gustavo... | 22.657895 | 103 | 0.603949 |
938fbd40bf2d3907c546c84c2f96ecb1b69e6fb6 | 172 | ex | Elixir | fixtures/elixir_output/post_number.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 4,955 | 2015-01-02T09:04:20.000Z | 2021-10-06T03:54:43.000Z | fixtures/elixir_output/post_number.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 242 | 2015-03-27T05:59:11.000Z | 2021-10-03T08:36:05.000Z | fixtures/elixir_output/post_number.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 504 | 2015-01-02T16:04:36.000Z | 2021-10-01T03:43:55.000Z | request = %HTTPoison.Request{
method: :post,
url: "http://a.com/",
options: [],
headers: [],
params: [],
body: ~s|123|
}
response = HTTPoison.request(request)
| 15.636364 | 37 | 0.598837 |
938fbe60f7ef7589ec926bfd417a380cc487ec14 | 4,556 | ex | Elixir | apps/ex_wire/lib/ex_wire/dev_p2p.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/dev_p2p.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/dev_p2p.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule ExWire.DEVp2p do
@moduledoc """
Functions that deal directly with the DEVp2p Wire Protocol.
For more information, please see:
https://github.com/ethereum/wiki/wiki/%C3%90%CE%9EVp2p-Wire-Protocol
"""
alias ExWire.{Config, Packet}
defmodule Session do
@moduledoc """
Module to hold str... | 32.776978 | 122 | 0.686348 |
938fcb1f2f41aa0f1de95dfbe01b1febeb93f4a6 | 142 | ex | Elixir | lib/phantomchain/crypto/networks/mainnet.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/networks/mainnet.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/networks/mainnet.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | defmodule PhantomChain.Crypto.Networks.Mainnet do
defstruct(
epoch: "2017-03-21T13:00:00.000Z",
version: "17",
wif: 170
)
end
| 17.75 | 49 | 0.669014 |
938fe128209c844396646efa8ac3635292bbdf32 | 1,568 | ex | Elixir | lib/dark_matter/structs.ex | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | 2 | 2020-12-01T21:33:44.000Z | 2021-05-29T14:51:18.000Z | lib/dark_matter/structs.ex | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | null | null | null | lib/dark_matter/structs.ex | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | 2 | 2020-09-02T14:36:58.000Z | 2021-04-22T11:20:43.000Z | defmodule DarkMatter.Structs do
@moduledoc """
Utils for working with structs.
"""
@moduledoc since: "1.0.5"
import DarkMatter.Guards, only: [is_module: 1]
@doc """
Determine keys for a given `module` or raises `ArgumentError`.
## Examples
iex> keys(IO.Stream)
[:device, :line_or_bytes, :... | 24.123077 | 95 | 0.623087 |
938fe2fb23ebd9209b19ada35492c59bda1fa64f | 257 | ex | Elixir | apps/banking_api/lib/banking_api.ex | ckoliveira/banking_api | 3a4077a97e2cfcb2475bafd582a836bd03f6c6cc | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api.ex | ckoliveira/banking_api | 3a4077a97e2cfcb2475bafd582a836bd03f6c6cc | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api.ex | ckoliveira/banking_api | 3a4077a97e2cfcb2475bafd582a836bd03f6c6cc | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi do
@moduledoc """
BankingApi keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
9390385f348190761c21b95678bad9db699b2116 | 2,562 | ex | Elixir | lib/logger_json/plug/metadata_formatters/elk.ex | anthonyfalzetti/logger_json | 3724714cc3be98924ac4fcbc20d5d9b31922fde9 | [
"MIT"
] | null | null | null | lib/logger_json/plug/metadata_formatters/elk.ex | anthonyfalzetti/logger_json | 3724714cc3be98924ac4fcbc20d5d9b31922fde9 | [
"MIT"
] | null | null | null | lib/logger_json/plug/metadata_formatters/elk.ex | anthonyfalzetti/logger_json | 3724714cc3be98924ac4fcbc20d5d9b31922fde9 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule LoggerJSON.Plug.MetadataFormatters.ELK do
@moduledoc """
Formats connection into Logger metadata:
* `connection.type` - type of connection (Sent or Chunked);
* `connection.method` - HTTP request method;
* `connection.request_path` - HTTP request pat... | 35.09589 | 112 | 0.640125 |
9390453cd0e60a29c9ab49524c4e0e5d56defbf1 | 693 | ex | Elixir | lib/ambrosia_web/controllers/page_controller.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 2 | 2020-05-25T05:28:31.000Z | 2020-05-25T08:10:43.000Z | lib/ambrosia_web/controllers/page_controller.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 9 | 2020-05-25T16:39:15.000Z | 2020-11-11T16:51:37.000Z | lib/ambrosia_web/controllers/page_controller.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | null | null | null | defmodule AmbrosiaWeb.PageController do
use AmbrosiaWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
# Because <a href="" data-method="delete"> not always working
def logout(conn, _) do
conn
|> Pow.Plug.delete()
|> render("index.html")
end
def thank_you(conn, ... | 22.354839 | 63 | 0.63925 |
93904a956872b8b6e553e84b99326fe3065144a9 | 957 | ex | Elixir | test/support/channel_case.ex | cosmos-sajal/secret_keeper | b5ae5e01ed4cd30afb91ae02fedf2f1de9366bf0 | [
"MIT"
] | 2 | 2019-09-14T14:32:37.000Z | 2020-06-05T15:17:34.000Z | test/support/channel_case.ex | cosmos-sajal/secret_keeper | b5ae5e01ed4cd30afb91ae02fedf2f1de9366bf0 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | cosmos-sajal/secret_keeper | b5ae5e01ed4cd30afb91ae02fedf2f1de9366bf0 | [
"MIT"
] | null | null | null | defmodule SecretKeeperWeb.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 datastructures and query the data layer.
Finally, if the test case interac... | 25.184211 | 74 | 0.722048 |
93907f1f7c313a621b64b1ee88daf83ffe6e9aeb | 2,626 | exs | Elixir | mix.exs | bucha/nerves_system_bonzero | 997c05c3668ed42b5a9033e210805d0ac0bb8778 | [
"Apache-2.0"
] | null | null | null | mix.exs | bucha/nerves_system_bonzero | 997c05c3668ed42b5a9033e210805d0ac0bb8778 | [
"Apache-2.0"
] | null | null | null | mix.exs | bucha/nerves_system_bonzero | 997c05c3668ed42b5a9033e210805d0ac0bb8778 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemBonzero.MixProject do
use Mix.Project
@app :nerves_system_bonzero
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ [:ner... | 22.637931 | 76 | 0.581493 |
93909196af5a03f082330aaadfa8bd4f468f6756 | 1,457 | exs | Elixir | mix.exs | hubertlepicki/scrivener_ecto | e782eb7e5581cb0c70f22165dfea230c618f7273 | [
"MIT"
] | null | null | null | mix.exs | hubertlepicki/scrivener_ecto | e782eb7e5581cb0c70f22165dfea230c618f7273 | [
"MIT"
] | null | null | null | mix.exs | hubertlepicki/scrivener_ecto | e782eb7e5581cb0c70f22165dfea230c618f7273 | [
"MIT"
] | null | null | null | defmodule Scrivener.Ecto.Mixfile do
use Mix.Project
def project do
[
app: :scrivener_ecto,
version: "1.3.0",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
description: "Paginate your Ecto queries with Scrivener",
deps: deps(),
ali... | 20.814286 | 74 | 0.511325 |
9390a55981b97372f96bb8d240f27df67f4e070f | 1,978 | exs | Elixir | mix.exs | thedelchop/ecto_job | 0157d857e4436a35ebcc0a9f5cd4b28b33292f62 | [
"MIT"
] | null | null | null | mix.exs | thedelchop/ecto_job | 0157d857e4436a35ebcc0a9f5cd4b28b33292f62 | [
"MIT"
] | null | null | null | mix.exs | thedelchop/ecto_job | 0157d857e4436a35ebcc0a9f5cd4b28b33292f62 | [
"MIT"
] | null | null | null | defmodule EctoJob.Mixfile do
use Mix.Project
@version "3.1.0"
@url "https://github.com/mbuhot/ecto_job"
def project do
[
app: :ecto_job,
description: "A transactional job queue built with Ecto, PostgreSQL and GenStage.",
version: @version,
elixir: "~> 1.10",
elixirc_paths: el... | 25.688312 | 89 | 0.576845 |
9390b0b77fff8db69a5550158ad124a13d3cb1f1 | 811 | ex | Elixir | lib/protected_hello_web/views/error_helpers.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | lib/protected_hello_web/views/error_helpers.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | lib/protected_hello_web/views/error_helpers.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | defmodule ProtectedHelloWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
conte... | 26.16129 | 69 | 0.665845 |
9390c349044914db11d5c5f137b61cff2da873ff | 115 | ex | Elixir | web/lib/rfid_latachz/repo.ex | latachz/latachz-rfid | dbb1462fa258568831de3600ae6108e91080cf0a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 1 | 2020-01-26T05:41:49.000Z | 2020-01-26T05:41:49.000Z | web/lib/rfid_latachz/repo.ex | latachz/latachz-rfid | dbb1462fa258568831de3600ae6108e91080cf0a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 1 | 2020-05-26T09:28:01.000Z | 2020-05-26T09:28:01.000Z | web/lib/rfid_latachz/repo.ex | latachz/latachz-rfid | dbb1462fa258568831de3600ae6108e91080cf0a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | defmodule RfidLatachz.Repo do
use Ecto.Repo,
otp_app: :rfid_latachz,
adapter: Ecto.Adapters.Postgres
end
| 19.166667 | 35 | 0.747826 |
9390c94c4e3266edf31025d9d029b348c8595504 | 1,962 | ex | Elixir | test/support/conn_case.ex | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | 4 | 2021-08-11T03:19:33.000Z | 2021-09-26T01:29:58.000Z | test/support/conn_case.ex | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | defmodule ElxproBlogWeb.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... | 28.434783 | 77 | 0.685015 |
9390f7a2fdca30ee8c10d110de09b472c2e17b5a | 866 | ex | Elixir | lib/koans/01_equalities.ex | ekans/elixir-koans | f7cdae7a39f3cf581fcd484c0025a5ff07173fce | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | ekans/elixir-koans | f7cdae7a39f3cf581fcd484c0025a5ff07173fce | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | ekans/elixir-koans | f7cdae7a39f3cf581fcd484c0025a5ff07173fce | [
"MIT"
] | null | null | null | defmodule Equalities do
use Koans
@intro """
Welcome to the Elixir koans.
Let these be your first humble steps towards learning a new language.
The path laid in front of you is one of many.
"""
# Replace ___ with the answer to make the koan pass.
koan "We shall contemplate truth by testing reality, v... | 21.65 | 83 | 0.680139 |
939142d78b82e5094ea1fa2fb4b311d5dfe49cee | 1,626 | exs | Elixir | apps/eigr_functions/mix.exs | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | 2 | 2021-07-28T23:02:24.000Z | 2021-07-29T00:34:42.000Z | apps/eigr_functions/mix.exs | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | null | null | null | apps/eigr_functions/mix.exs | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | 1 | 2021-07-28T21:31:12.000Z | 2021-07-28T21:31:12.000Z | defmodule Functions.MixProject do
use Mix.Project
def project do
[
app: :eigr_functions,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.10",
start_permanent:... | 25.015385 | 79 | 0.559656 |
93914fea2f26821bfebbcccbf9ae09f47a85a0c9 | 1,996 | ex | Elixir | lib/minizinc_results.ex | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | 30 | 2020-07-30T19:22:34.000Z | 2022-03-28T02:06:55.000Z | lib/minizinc_results.ex | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | 1 | 2022-02-14T22:56:02.000Z | 2022-02-15T14:13:53.000Z | lib/minizinc_results.ex | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | 4 | 2020-08-18T04:31:38.000Z | 2022-03-19T19:33:26.000Z | defmodule MinizincResults do
@moduledoc """
Functions and data structures for working with data produced by Minizinc during runtime.
"""
require Logger
############### Solver results ##################
def get_status(%{summary: summary} = _solver_results) do
get_status(summary)
end
def get_stat... | 22.426966 | 92 | 0.718437 |
939187d840312830f7871f6de97da0470e1d88aa | 23,229 | ex | Elixir | lib/rustler_precompiled.ex | philss/baked_nifs | bd3086c84e59c5eb5c5d7cc5484bf6e069c63925 | [
"Apache-2.0"
] | 1 | 2022-02-05T21:20:07.000Z | 2022-02-05T21:20:07.000Z | lib/rustler_precompiled.ex | philss/baked_nifs | bd3086c84e59c5eb5c5d7cc5484bf6e069c63925 | [
"Apache-2.0"
] | null | null | null | lib/rustler_precompiled.ex | philss/baked_nifs | bd3086c84e59c5eb5c5d7cc5484bf6e069c63925 | [
"Apache-2.0"
] | null | null | null | defmodule RustlerPrecompiled do
@moduledoc """
Download and use precompiled NIFs safely with checksums.
Rustler Precompiled is a tool for library maintainers that rely on Rustler.
It helps by removing the need to have the Rust compiler installed in the
user's machine.
Check the [Precompilation Guide](PREC... | 29.895753 | 141 | 0.617289 |
9391be1049cefe4d4b78d74b73689c54dcaeb4a3 | 3,160 | ex | Elixir | lib/aws_codegen/post_service.ex | danfilip/aws-codegen | 9d30a1079490f48afd7c817c3454562edb22315d | [
"Apache-2.0"
] | 38 | 2018-05-31T15:07:24.000Z | 2022-03-08T23:43:15.000Z | lib/aws_codegen/post_service.ex | danfilip/aws-codegen | 9d30a1079490f48afd7c817c3454562edb22315d | [
"Apache-2.0"
] | 61 | 2018-09-13T11:33:35.000Z | 2022-02-22T15:25:37.000Z | lib/aws_codegen/post_service.ex | danfilip/aws-codegen | 9d30a1079490f48afd7c817c3454562edb22315d | [
"Apache-2.0"
] | 31 | 2018-04-10T20:01:07.000Z | 2022-02-14T18:43:59.000Z | defmodule AWS.CodeGen.PostService do
alias AWS.CodeGen.Docstring
alias AWS.CodeGen.Service
defmodule Action do
defstruct arity: nil,
docstring: nil,
function_name: nil,
name: nil
end
@configuration %{
"query" => %{
content_type: "application/x-www-form... | 30.095238 | 96 | 0.633861 |
9391debf9379d9f514285fbc0a5c64225f9a7930 | 67 | ex | Elixir | lib/docker_phx_web/views/layout_view.ex | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | lib/docker_phx_web/views/layout_view.ex | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | lib/docker_phx_web/views/layout_view.ex | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | defmodule DockerPhxWeb.LayoutView do
use DockerPhxWeb, :view
end
| 16.75 | 36 | 0.820896 |
9391f712ff692b90ec68c07396982b1bf600b9eb | 957 | ex | Elixir | lib/status/node.ex | shinyscorpion/elixir-status | 3af86483cbbca99295f88d152f2cefdd8259a89e | [
"MIT"
] | 2 | 2018-07-18T02:33:48.000Z | 2020-01-12T03:45:32.000Z | lib/status/node.ex | shinyscorpion/elixir-status | 3af86483cbbca99295f88d152f2cefdd8259a89e | [
"MIT"
] | null | null | null | lib/status/node.ex | shinyscorpion/elixir-status | 3af86483cbbca99295f88d152f2cefdd8259a89e | [
"MIT"
] | null | null | null | defmodule Status.Node do
@moduledoc false
def dependencies do
with true <- File.exists?("./assets/package.json"),
{:ok, data} <- File.read("./assets/package.json"),
{:ok, node_package} <- Jason.decode(data) do
node_modules =
node_package
|> Map.get("devDependencies")
... | 25.184211 | 90 | 0.516196 |
93925830fc691178d63290e757197a8706af2c29 | 5,299 | exs | Elixir | implementations/elixir/ockam/ockam_node_web/.credo.exs | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1,912 | 2019-01-10T14:17:00.000Z | 2022-03-30T19:16:44.000Z | implementations/elixir/ockam/ockam_node_web/.credo.exs | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1,473 | 2019-01-16T15:14:47.000Z | 2022-03-31T23:44:50.000Z | implementations/elixir/ockam/ockam_node_web/.credo.exs | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 219 | 2019-01-11T03:35:13.000Z | 2022-03-31T10:25:56.000Z | # This file contains the configuration for credo.
#
# It was first generated with `mix credo.gen.config` and then tweaked.
%{
configs: [
%{
name: "default",
# These are the files included in the analysis:
files: %{
included: [
"lib/",
"test/"
],
exclu... | 38.398551 | 84 | 0.615777 |
9392a80e3e7ff1be74e36f0ebcdb6195344e5a1b | 2,595 | ex | Elixir | lib/medic/checks/chromedriver.ex | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | 3 | 2021-06-18T18:42:35.000Z | 2022-02-09T01:54:58.000Z | lib/medic/checks/chromedriver.ex | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | 3 | 2021-06-17T19:02:32.000Z | 2021-06-17T19:44:35.000Z | lib/medic/checks/chromedriver.ex | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | 1 | 2022-03-10T19:16:14.000Z | 2022-03-10T19:16:14.000Z | defmodule Medic.Checks.Chromedriver do
@moduledoc """
Checks to see if Chromedriver is allowed to run in the MacOS quarantine sandbox.
## Examples
{Check.Chromedriver, :unquarantined?}
{Check.Chromedriver, :versions_match?}
"""
alias Medic.Etc
@doc """
Checks to make sure that Google Chrom... | 30.892857 | 140 | 0.634297 |
9392d63d2fef9f9285dc6e52e64e538cee2f5791 | 2,863 | ex | Elixir | clients/script/lib/google_api/script/v1/model/value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/value.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... | 38.689189 | 118 | 0.677611 |
9392dbb91ce12433f3afc0afdce3f106bc9f3b06 | 1,773 | ex | Elixir | src/lists.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | src/lists.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | src/lists.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | # cd("C:\\Users\\jdorr\\Desktop\\Dev\\ElixirDump\\src")
# c("lists.ex")
# M.main
defmodule M do
def main do
lists_stuff()
end
def lists_stuff do
list1 = [1, 2, 3]
list2 = [4, 5, 6]
list3 = list1 ++ list2
list4 = list3 -- list1
IO.puts 5 in list4
[head | tail] = lis... | 24.971831 | 83 | 0.413424 |
9392dc3cd3109aaa1caf151bfbcef8ef1bba07e4 | 1,123 | ex | Elixir | test/support/channel_case.ex | rzcastilho/mockatron | 237b2bad3e1bf167a6ebac218c7a46b74a9063ee | [
"MIT"
] | 1 | 2018-12-13T16:52:22.000Z | 2018-12-13T16:52:22.000Z | test/support/channel_case.ex | rzcastilho/mockatron | 237b2bad3e1bf167a6ebac218c7a46b74a9063ee | [
"MIT"
] | 28 | 2019-07-04T08:42:33.000Z | 2022-03-28T08:24:07.000Z | test/support/channel_case.ex | rzcastilho/mockatron | 237b2bad3e1bf167a6ebac218c7a46b74a9063ee | [
"MIT"
] | null | null | null | defmodule MockatronWeb.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... | 27.390244 | 71 | 0.730187 |
9392ddadd82e110d598cedeaa35e6921cd435d48 | 1,496 | exs | Elixir | mix.exs | igorgbr/faker | c10d09218a1a412775c42fe99fa7a6bea6d8afcc | [
"MIT"
] | 540 | 2015-01-05T16:31:49.000Z | 2019-09-25T00:40:27.000Z | mix.exs | igorgbr/faker | c10d09218a1a412775c42fe99fa7a6bea6d8afcc | [
"MIT"
] | 172 | 2015-01-06T03:55:17.000Z | 2019-10-03T12:58:02.000Z | mix.exs | delmendo/faker | 180f08380080ec9d95b278b96bc37a0e97a2b89e | [
"MIT"
] | 163 | 2015-01-05T21:24:54.000Z | 2019-10-03T07:59:42.000Z | defmodule Faker.Mixfile do
use Mix.Project
@source_url "https://github.com/elixirs/faker"
@version "0.17.0"
def project do
[
app: :faker,
version: @version,
elixir: "~> 1.6",
description: "Faker is a pure Elixir library for generating fake data.",
package: package(),
na... | 21.371429 | 88 | 0.534091 |
9392f967990ea3c4125bb7e7e4b1ecdc462e6f90 | 88 | ex | Elixir | test/unit/fixtures/compiler/module_def_aggregators/component/module_3.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/fixtures/compiler/module_def_aggregators/component/module_3.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/fixtures/compiler/module_def_aggregators/component/module_3.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Test.Fixtures.Compiler.ModuleDefAggregators.Component.Module3 do
end
| 29.333333 | 83 | 0.886364 |
939310ce405a78738d225762ca4862a8528206fd | 1,476 | ex | Elixir | lib/plug/end_trace.ex | bforchhammer/spandex | caa094c28bb98ef4a16a96ae451d35576ba7fe91 | [
"MIT"
] | 237 | 2018-08-29T17:48:17.000Z | 2022-03-29T15:35:35.000Z | lib/plug/end_trace.ex | bforchhammer/spandex | caa094c28bb98ef4a16a96ae451d35576ba7fe91 | [
"MIT"
] | 69 | 2018-08-23T14:28:25.000Z | 2022-02-02T13:59:48.000Z | lib/plug/end_trace.ex | bforchhammer/spandex | caa094c28bb98ef4a16a96ae451d35576ba7fe91 | [
"MIT"
] | 35 | 2018-08-27T13:33:34.000Z | 2021-12-30T12:53:47.000Z | defmodule Spandex.Plug.EndTrace do
@moduledoc """
Finishes a trace, setting status and error based on the HTTP status.
"""
@behaviour Plug
alias Spandex.Plug.Utils
@init_opts Optimal.schema(
opts: [
tracer: :atom,
tracer_opts: :keyword
],
... | 25.448276 | 106 | 0.557588 |
939317b4e43f2cb035baef607c367708c57d6155 | 558 | ex | Elixir | lib/mix/tasks/ecto.setup.arango.ex | solitec/arangox_ecto | e58c2714d59cc220ce2f41b51025bc1ce8d7b33c | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.setup.arango.ex | solitec/arangox_ecto | e58c2714d59cc220ce2f41b51025bc1ce8d7b33c | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.setup.arango.ex | solitec/arangox_ecto | e58c2714d59cc220ce2f41b51025bc1ce8d7b33c | [
"Apache-2.0"
] | 1 | 2021-01-27T10:28:14.000Z | 2021-01-27T10:28:14.000Z | defmodule Mix.Tasks.Ecto.Setup.Arango do
@moduledoc """
Sets up all necessary collection in _systems db for migrations and creates database
"""
use Mix.Task
import Mix.ArangoXEcto
@shortdoc "Sets up all necessary collections in _systems db for migrations"
@impl true
def run(_args) do
Mix.Task.run... | 22.32 | 85 | 0.668459 |
9393336230fdf95ea13a0b2971ca7f12f8b13ba9 | 1,861 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_optimized_stats_node.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_optimized_stats_node.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_optimized_stats_node.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... | 39.595745 | 448 | 0.722192 |
939354cbaff767150054a8997097518925eba3c4 | 930 | ex | Elixir | apps/hefty/lib/hefty/backtesting.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 49 | 2019-10-28T22:27:28.000Z | 2021-10-11T06:40:29.000Z | apps/hefty/lib/hefty/backtesting.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 9 | 2019-08-30T13:15:36.000Z | 2019-10-10T21:25:14.000Z | apps/hefty/lib/hefty/backtesting.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 7 | 2019-10-31T06:19:26.000Z | 2021-09-30T04:20:58.000Z | defmodule Hefty.Backtesting do
@moduledoc """
From Wikipedia:
```
Backtesting is a term used in modeling to refer to testing a predictive model on historical data. Backtesting is a type of retrodiction, and a special type of cross-validation applied to previous time period(s).
```
"""
def kick_off_back... | 28.181818 | 213 | 0.684946 |
93935ab7f02a0c6a9c49b6aacb00a94de8043ab9 | 1,724 | ex | Elixir | lib/shex/shape_expressions/shape_expression_reference.ex | rdf-elixir/shex-ex | 84100ab3dfcf3988b2b90289a8e4fbeb9f4d1516 | [
"MIT"
] | 4 | 2020-06-06T15:09:16.000Z | 2021-03-22T19:46:30.000Z | lib/shex/shape_expressions/shape_expression_reference.ex | rdf-elixir/shex-ex | 84100ab3dfcf3988b2b90289a8e4fbeb9f4d1516 | [
"MIT"
] | null | null | null | lib/shex/shape_expressions/shape_expression_reference.ex | rdf-elixir/shex-ex | 84100ab3dfcf3988b2b90289a8e4fbeb9f4d1516 | [
"MIT"
] | null | null | null | defmodule ShEx.ShapeExpressionReference do
@moduledoc false
def satisfies(expr_ref, graph, schema, association, state) do
with {:ok, ref_stack} <-
push_ref_stack(state.ref_stack, {expr_ref, association.node}),
shape_expr when not is_nil(shape_expr) <-
ShEx.Schema.shape_expr_with_... | 30.785714 | 88 | 0.698376 |
93935d8edf428c162f62aa38c38a4bbe76ccfcf5 | 695 | ex | Elixir | lib/r_map.ex | tashirosota/ex-rubenium | 0ddb30c31b678889a65dae7674ab7010e1dd7c5e | [
"Apache-2.0"
] | 24 | 2022-01-13T23:13:11.000Z | 2022-03-27T18:02:39.000Z | lib/r_map.ex | tashirosota/ex-rubenium | 0ddb30c31b678889a65dae7674ab7010e1dd7c5e | [
"Apache-2.0"
] | 16 | 2022-01-16T09:18:17.000Z | 2022-02-08T01:10:09.000Z | lib/r_map.ex | tashirosota/ex-rubenium | 0ddb30c31b678889a65dae7674ab7010e1dd7c5e | [
"Apache-2.0"
] | 6 | 2022-01-16T04:40:42.000Z | 2022-02-07T14:56:26.000Z | defmodule RMap do
@moduledoc """
Entry point of Map extensions, and can use all of RMap.* and REnum functions.
See also.
- [RMap.Native](https://hexdocs.pm/r_enum/RMap.Native.html#content)
- [RMap.Ruby](https://hexdocs.pm/r_enum/RMap.Ruby.html#content)
- [RMap.ActiveSupport](https://hexdocs.pm/r_enum/RMa... | 34.75 | 84 | 0.700719 |
93936d57178f340365576e1de2e323954ae2455c | 1,822 | exs | Elixir | mix.exs | nulian/fusion_jwt_authentication | 293965ff94fe84fef7a422c21c6ef7e5a6e475cf | [
"MIT"
] | null | null | null | mix.exs | nulian/fusion_jwt_authentication | 293965ff94fe84fef7a422c21c6ef7e5a6e475cf | [
"MIT"
] | null | null | null | mix.exs | nulian/fusion_jwt_authentication | 293965ff94fe84fef7a422c21c6ef7e5a6e475cf | [
"MIT"
] | 1 | 2021-03-25T14:46:52.000Z | 2021-03-25T14:46:52.000Z | defmodule FusionJWTAuthentication.MixProject do
use Mix.Project
def project do
[
app: :fusion_jwt_authentication,
version: "1.0.1",
elixir: "~> 1.9",
description: description(),
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [warnings_as_errors: true],
packa... | 25.305556 | 86 | 0.573546 |
9393893436459cee35a291f9969f4e7631b60a5c | 150 | exs | Elixir | test/broadcaster_test.exs | groxio-learning/broadcaster | 0c2e40773083518f9d4316cecadb1c69b8dd22a3 | [
"MIT"
] | null | null | null | test/broadcaster_test.exs | groxio-learning/broadcaster | 0c2e40773083518f9d4316cecadb1c69b8dd22a3 | [
"MIT"
] | null | null | null | test/broadcaster_test.exs | groxio-learning/broadcaster | 0c2e40773083518f9d4316cecadb1c69b8dd22a3 | [
"MIT"
] | null | null | null | defmodule BroadcasterTest do
use ExUnit.Case
doctest Broadcaster
test "greets the world" do
assert Broadcaster.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
9393950329575bcbd3a0f2c9bf43cda50c208f54 | 355 | ex | Elixir | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/insert_position.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/insert_position.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/insert_position.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Messages.InsertPosition do
alias __MODULE__
alias Tai.VenueAdapters.Bitmex.Stream.ProcessAuth
@type t :: %InsertPosition{data: map}
@enforce_keys ~w(data)a
defstruct ~w(data)a
defimpl ProcessAuth.Message do
def process(_message, _received_at, _sta... | 22.1875 | 80 | 0.749296 |
9393ab11869ea9680d1ecb229a42d37da6321fc2 | 80 | exs | Elixir | phoenix/app/test/phx_app_web/views/layout_view_test.exs | ohr486/docker-app-template | 9365f95d1102c69dba46474d0498d8306d40ed79 | [
"MIT"
] | null | null | null | phoenix/app/test/phx_app_web/views/layout_view_test.exs | ohr486/docker-app-template | 9365f95d1102c69dba46474d0498d8306d40ed79 | [
"MIT"
] | null | null | null | phoenix/app/test/phx_app_web/views/layout_view_test.exs | ohr486/docker-app-template | 9365f95d1102c69dba46474d0498d8306d40ed79 | [
"MIT"
] | null | null | null | defmodule PhxAppWeb.LayoutViewTest do
use PhxAppWeb.ConnCase, async: true
end
| 20 | 37 | 0.825 |
9393db1a96de5217b1c4615de8778e4a42453bf5 | 2,285 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/log_entry_source_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/log_entry_source_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/log_entry_source_location.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.459016 | 133 | 0.715536 |
9393f1c41782b554895bdd04e033b97a17cbe13e | 885 | ex | Elixir | lib/test_web/german_text.ex | clayscode/exzeitable | 312e7a0aebda51f5cd3ccee800c1d1affd9d4248 | [
"MIT"
] | 1 | 2021-10-18T00:55:47.000Z | 2021-10-18T00:55:47.000Z | lib/test_web/german_text.ex | EnzymeCorp/exzeitable | 74c02ab82de56aaf150006f05836a65a7d47697f | [
"MIT"
] | null | null | null | lib/test_web/german_text.ex | EnzymeCorp/exzeitable | 74c02ab82de56aaf150006f05836a65a7d47697f | [
"MIT"
] | null | null | null | defmodule TestWeb.GermanText do
@moduledoc "Custom text for the Exzeitable HTML interface"
@behaviour Exzeitable.Text
# Action buttons
def actions(_assigns), do: "Aktionen"
def new(_assigns), do: "Neu"
def show(_assigns), do: "Show"
def edit(_assigns), do: "Bearbeiten"
def delete(_assigns), do: "Lösch... | 27.65625 | 70 | 0.718644 |
9393fde77c6fd06ed4b07f0d85ceb4fcdb809494 | 918 | exs | Elixir | exercises/01-elixir/01-basics/07-arity/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/01-elixir/01-basics/07-arity/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/01-elixir/01-basics/07-arity/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Setup do
@script "shared.exs"
def setup(directory \\ ".") do
path = Path.join(directory, @script)
if File.exists?(path) do
Code.require_file(path)
Shared.setup(__DIR__)
else
setup(Path.join(directory, ".."))
end
end
end
Setup.setup
defmodule Tests do
use ExUnit.C... | 25.5 | 57 | 0.669935 |
939416b594df3ec1bf454beeafade16597e852bb | 1,888 | ex | Elixir | elixir/elixir/lib/homework/companies.ex | connernance1/web-homework | 0ec80f58f366359bf09e88afb18ccc3d69974457 | [
"MIT"
] | null | null | null | elixir/elixir/lib/homework/companies.ex | connernance1/web-homework | 0ec80f58f366359bf09e88afb18ccc3d69974457 | [
"MIT"
] | null | null | null | elixir/elixir/lib/homework/companies.ex | connernance1/web-homework | 0ec80f58f366359bf09e88afb18ccc3d69974457 | [
"MIT"
] | null | null | null | defmodule Homework.Companies do
@moduledoc """
The Companiies context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Companies.Company
@doc """
Returns the list of companies.
## Examples
iex> list_companies([])
[%Company{}, ...]
"""
def list_companies(_arg... | 17.980952 | 63 | 0.612288 |
939417b7a666a81ba869dfd5bfc04db10ac99f1f | 31,609 | ex | Elixir | lib/aws/generated/pinpoint_email.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/pinpoint_email.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/pinpoint_email.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.PinpointEmail do
@moduledoc """
Amazon Pinpoint Email Service
Welcome to the *Amazon Pinpoint Email API Reference*. This guide provides
information about the Amazon Pinpoint Email API (ve... | 39.023457 | 146 | 0.708691 |
939422fbc0be594f5650810cbc34d9e13e141b6b | 3,577 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume_sale_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_sale_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_sale_info.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.602941 | 287 | 0.719038 |
93942cf18071c41a269b4eb91659a7bba4491266 | 1,319 | ex | Elixir | apps/discovery_api/lib/discovery_api/schemas/visualizations.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/discovery_api/lib/discovery_api/schemas/visualizations.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/discovery_api/lib/discovery_api/schemas/visualizations.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Schemas.Visualizations do
@moduledoc """
Interface for reading and writing the Visualization schema.
"""
import Ecto.Query, only: [from: 2]
alias DiscoveryApi.Repo
alias DiscoveryApi.Schemas.Visualizations.Visualization
def list_visualizations do
Repo.all(Visualization)
end... | 26.918367 | 84 | 0.722517 |
9394819cd655e25dfd1eb7f7b055b93d8b0714f8 | 9,683 | ex | Elixir | lib/mix/tasks/hex.outdated.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | lib/mix/tasks/hex.outdated.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | lib/mix/tasks/hex.outdated.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Mix.Tasks.Hex.Outdated do
use Mix.Task
alias Hex.Registry.Server, as: Registry
@shortdoc "Shows outdated Hex deps for the current project"
@moduledoc """
Shows all Hex dependencies that have newer versions in the registry.
$ mix hex.outdated [APP]
By default, it only shows top-level pack... | 29.793846 | 107 | 0.638748 |
9394b87d450dd845c22b234febd74739639aa09a | 903 | exs | Elixir | test/defr/nested_call_test.exs | jechol/defr | 1d4a319bb06f38845306691d9bc8b8711d726cd0 | [
"MIT"
] | 3 | 2021-07-30T17:42:13.000Z | 2021-09-03T09:38:54.000Z | test/defr/nested_call_test.exs | trevorite/witchcraft_helpers | 146312441c21b85423265cea6fc9cef50fc6423b | [
"MIT"
] | 1 | 2021-12-16T02:40:35.000Z | 2021-12-16T03:21:21.000Z | test/defr/nested_call_test.exs | trevorite/witchcraft_helpers | 146312441c21b85423265cea6fc9cef50fc6423b | [
"MIT"
] | null | null | null | defmodule Defr.NestedCallTest do
use ExUnit.Case, async: false
use Defr
alias Algae.Reader
defmodule Target do
use Defr
import Enum, only: [at: 2]
defr top(list) do
list |> List.flatten() |> inject() |> middle() |> run()
end
defr middle(list) do
list |> bottom() |> inject() |... | 23.153846 | 97 | 0.535991 |
9394d65484e92007bc72580a587181d27914d4e1 | 233 | exs | Elixir | lib/nap/util_test.exs | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | lib/nap/util_test.exs | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | lib/nap/util_test.exs | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | defmodule Nap.UtilTest do
use ExUnit.Case
alias Nap.Util
describe "filepath_to_nappath" do
test "works" do
assert Util.filepath_to_nappath("/a/b/c/some_test.exs") == "/a/b/c/__naps__/some_test.nap"
end
end
end
| 21.181818 | 96 | 0.699571 |
9394dc524a13e8cab3f54314be296cb88a1c62df | 459 | exs | Elixir | config/config.exs | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | null | null | null | config/config.exs | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | null | null | null | config/config.exs | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | null | null | null | import Config
config :redex,
port: System.get_env("REDEX_PORT", "6379") |> String.to_integer(),
quorum: System.get_env("REDEX_QUORUM", "1") |> String.to_integer()
config :libcluster, :topologies,
gossip: [
strategy: Cluster.Strategy.Gossip,
config: [
port: 45892,
if_addr: "0.0.0.0",
mu... | 22.95 | 68 | 0.623094 |
939510f0a3d2074059c33d51ef2a1daad294f211 | 2,094 | exs | Elixir | apps/ewallet/test/ewallet/web/v1/serializers/paginator_serializer_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/v1/serializers/paginator_serializer_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/v1/serializers/paginator_serializer_test.exs | 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... | 27.92 | 84 | 0.628462 |
93951dacd38eb7566902b4a9fd57be3659683692 | 10,981 | ex | Elixir | lib/credo/code/strings.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/code/strings.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/code/strings.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Code.Strings do
@moduledoc """
This module lets you strip strings from source code.
"""
alias Credo.Code.InterpolationHelper
alias Credo.SourceFile
string_sigil_delimiters = [
{"(", ")"},
{"[", "]"},
{"{", "}"},
{"<", ">"},
{"|", "|"},
{"\"", "\""},
{"'", "'"},
... | 25.537209 | 95 | 0.570986 |
93951ee6c0433f3b2ac63e56f86e5a0beaf9e349 | 263 | ex | Elixir | lib/dagger/instance.ex | DarkMarmot/avast | 1c8294cba77b5b7ea9b98030c29d06ee723e3e77 | [
"Apache-2.0"
] | null | null | null | lib/dagger/instance.ex | DarkMarmot/avast | 1c8294cba77b5b7ea9b98030c29d06ee723e3e77 | [
"Apache-2.0"
] | null | null | null | lib/dagger/instance.ex | DarkMarmot/avast | 1c8294cba77b5b7ea9b98030c29d06ee723e3e77 | [
"Apache-2.0"
] | null | null | null | defmodule Dagger.Instance do
alias Dagger.Instance
defstruct key: nil, node: nil
@type t :: %Instance{
key: any(),
node: atom()
}
def new(key \\ nil) do
%Instance{
node: Node.self(),
key: key
}
end
end
| 14.611111 | 31 | 0.528517 |
93952bc665c31f4487c94f2d2eab6e880c3fe2de | 3,663 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/asymmetric_worker.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/asymmetric_worker.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | 12 | 2022-01-11T16:23:26.000Z | 2022-03-23T20:16:37.000Z | implementations/elixir/ockam/ockam/lib/ockam/asymmetric_worker.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.AsymmetricWorker do
@moduledoc """
Ockam.Worker with two addresses.
On start registers an additional `inner_address`
Usage:
`use Ockam.AsymmetricWorker`
Callbacks:
`inner_setup/2` - same as `Ockam.Worker.setup/2`, but `state` would have already registered `inner_address`
`handle_inn... | 29.304 | 116 | 0.583675 |
939532683af4abe3e7d1fef9e82d3d7edd859bbb | 3,551 | ex | Elixir | lib/hexpm/repository/requirement.ex | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/requirement.ex | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/requirement.ex | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Requirement do
use Hexpm.Web, :schema
require Logger
@derive {Hexpm.Web.Stale, last_modified: nil}
schema "requirements" do
field :app, :string
field :requirement, :string
field :optional, :boolean, default: false
# The repository and name of the dependency used to ... | 28.408 | 94 | 0.658688 |
9395629d73a0282a827bf5283c3fec14c49fcd1a | 1,853 | exs | Elixir | mix.exs | luizmiranda7/ex_aws | 3bce7a95225c49fb89b5b04f5a7123e90fec0690 | [
"MIT"
] | null | null | null | mix.exs | luizmiranda7/ex_aws | 3bce7a95225c49fb89b5b04f5a7123e90fec0690 | [
"MIT"
] | 11 | 2021-08-02T18:13:25.000Z | 2022-03-23T20:53:41.000Z | mix.exs | justgage/ex_aws | bd9c2383a75ae5f6d874fd92f14d6dc2eab4b5ae | [
"MIT"
] | null | null | null | defmodule ExAws.Mixfile do
use Mix.Project
@source_url "https://github.com/ex-aws/ex_aws"
@version "2.2.3"
def project do
[
app: :ex_aws,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
description: "Generic AWS client",
name: "ExAws",
... | 24.381579 | 73 | 0.541284 |
93957247943c56ec335f5b0dd72e1948ecb0cb69 | 7,902 | exs | Elixir | bench/basic_bench.exs | YongHaoWu/elixir-cbson | f60586ed51168922edf0dd6e5caeaad7573cd594 | [
"MIT"
] | null | null | null | bench/basic_bench.exs | YongHaoWu/elixir-cbson | f60586ed51168922edf0dd6e5caeaad7573cd594 | [
"MIT"
] | null | null | null | bench/basic_bench.exs | YongHaoWu/elixir-cbson | f60586ed51168922edf0dd6e5caeaad7573cd594 | [
"MIT"
] | null | null | null | defmodule Data do
def get_bson do
get_data |> Enum.map(&CBson.encode/1)
end
defp get_data do
[
%{
a: -4.230845,
b: "hello",
c: %{x: -1, y: 2.2001},
d: [23, 45, 200],
eeeeeeeee: %Bson.Bin{ subtype: Bson.Bin.subtyx(:binary),
bin: <<200, 12, 240,... | 30.627907 | 98 | 0.483548 |
9395cc4df84f55801367496c7da091920527614f | 878 | exs | Elixir | test/extras/enum_x_test.exs | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | test/extras/enum_x_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | test/extras/enum_x_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule EnumXTest do
use EctoTestDSL.Drink.Me
use ExUnit.Case
alias FlowAssertions.TabularA
describe "take_until" do
test "doesn't stop" do
assert [1, 2, 3] == EnumX.take_until([1, 2, 3], fn _ -> false end)
end
test "does stop" do
assert [1, 2] == EnumX.take_until([1, 2, 3], &(&1 == ... | 25.085714 | 72 | 0.447608 |
9395db0564d9397f32e104cbaddf99654c37ea7d | 586 | ex | Elixir | lib/edgedb/protocol/type_descriptors/scalar_type_name_annotation.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | lib/edgedb/protocol/type_descriptors/scalar_type_name_annotation.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | lib/edgedb/protocol/type_descriptors/scalar_type_name_annotation.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.Protocol.TypeDescriptors.ScalarTypeNameAnnotation do
use EdgeDB.Protocol.TypeDescriptor
alias EdgeDB.Protocol.{
Codecs,
Datatypes
}
# id of type here is always known, so no need to parse
deftypedescriptor(
type: 0xFF,
parse: false
)
# update existing codec with type nam... | 23.44 | 70 | 0.732082 |
9395e85179885f45549ef72b6085bb75b0091690 | 47,945 | exs | Elixir | test/livebook/intellisense_test.exs | PeteJodo/livebook | 4badf40afcbe489deda92812e72a99a0e54f11a7 | [
"Apache-2.0"
] | null | null | null | test/livebook/intellisense_test.exs | PeteJodo/livebook | 4badf40afcbe489deda92812e72a99a0e54f11a7 | [
"Apache-2.0"
] | null | null | null | test/livebook/intellisense_test.exs | PeteJodo/livebook | 4badf40afcbe489deda92812e72a99a0e54f11a7 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.IntellisenseTest.Utils do
@moduledoc false
@doc """
Returns `{binding, env}` resulting from evaluating
the given block of code in a fresh context.
"""
defmacro eval(do: block) do
quote do
block = unquote(Macro.escape(block))
binding = []
# TODO: Use Code.eval_quoted... | 30.812982 | 339 | 0.481301 |
9395efcfbd9192211ffdc6b518f730f92612e11d | 3,123 | exs | Elixir | test/rubber/search_test.exs | evuez/elastix-reloaded | 6a14253d13c5163518dd9e4967ccc160eff2e622 | [
"MIT"
] | 4 | 2018-02-12T16:35:02.000Z | 2020-04-23T21:17:20.000Z | test/rubber/search_test.exs | evuez/rubber | 6a14253d13c5163518dd9e4967ccc160eff2e622 | [
"MIT"
] | null | null | null | test/rubber/search_test.exs | evuez/rubber | 6a14253d13c5163518dd9e4967ccc160eff2e622 | [
"MIT"
] | null | null | null | defmodule Rubber.SearchTest do
use ExUnit.Case
alias Rubber.Search
alias Rubber.Index
alias Rubber.Document
alias HTTPoison.Response
@test_url Rubber.config(:test_url)
@test_index Rubber.config(:test_index)
@document_data %{
user: "werbitzky",
post_date: "2009-11-15T14:12:12",
message: "try... | 27.883929 | 87 | 0.622799 |
93961105111b7c5b1f24ab02121f65859205e538 | 1,535 | ex | Elixir | lib/bamboo/adapters/test_adapter.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/test_adapter.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/test_adapter.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | 1 | 2020-04-21T12:36:34.000Z | 2020-04-21T12:36:34.000Z | defmodule Bamboo.TestAdapter do
@moduledoc """
Used for testing email delivery
No emails are sent, instead a message is sent to the current process and can
be asserted on with helpers from `Bamboo.Test`.
## Example config
# Typically done in config/test.exs
config :my_app, MyApp.Mailer,
... | 25.163934 | 82 | 0.691205 |
93961ba106c8a36ab97596b830ba167c0f3d0cae | 1,351 | ex | Elixir | elixir-match/app/lib/match_web/channels/user_socket.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match_web/channels/user_socket.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match_web/channels/user_socket.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule MatchWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "available", MatchWeb.AvailableChannel
# 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 chan... | 30.704545 | 83 | 0.680977 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.