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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
747c2faacd02bfbf9146880689a7684c5c9af1af | 6,205 | ex | Elixir | lib/probe/runner.ex | discordapp/instruments | 3b0513dc2dcaff7f9ec4aa41685c6c586bad9606 | [
"MIT"
] | 167 | 2017-11-09T08:25:21.000Z | 2020-03-05T12:26:20.000Z | lib/probe/runner.ex | discordapp/instruments | 3b0513dc2dcaff7f9ec4aa41685c6c586bad9606 | [
"MIT"
] | 5 | 2017-12-05T03:29:22.000Z | 2020-02-16T16:40:17.000Z | lib/probe/runner.ex | discordapp/instruments | 3b0513dc2dcaff7f9ec4aa41685c6c586bad9606 | [
"MIT"
] | 16 | 2017-11-10T10:35:37.000Z | 2020-02-25T09:54:53.000Z | defmodule Instruments.Probe.Runner do
@moduledoc false
# A module tasked with running probes.
# This module is a controller process for running module-based probes.
# It periodically exectues callback functions on the probes, and reports their
# results to statix.
defmodule State do
@moduledoc false
... | 30.416667 | 97 | 0.648993 |
747c4ddceadada8c5960321dbdd4244ba701ba68 | 2,619 | ex | Elixir | lib/resourceful/type/relationship.ex | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | null | null | null | lib/resourceful/type/relationship.ex | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | 2 | 2021-03-11T21:23:54.000Z | 2021-03-12T23:34:21.000Z | lib/resourceful/type/relationship.ex | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | null | null | null | defmodule Resourceful.Type.Relationship do
@moduledoc """
Relationships come in one of two types: `:one` or `:many`. Things like
foreign keys and how the relationships map are up to the underlying data
source. For the purposes of mapping things in `Resourceful`, it simply needs
to understand whether it's work... | 35.391892 | 80 | 0.703704 |
747c5b142b05653421c34f36100ea41aea5d5206 | 1,644 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.978723 | 126 | 0.765207 |
747c6ad77a01c5150c2d38793ac442f544a1c5c3 | 1,010 | ex | Elixir | apps/nectar/lib/nectar/endpoint.ex | saurabharch/nectarcommerce | 3497ab8f0c3fcf5a679dc112d905fea9e6df45ac | [
"MIT"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | apps/nectar/lib/nectar/endpoint.ex | sshyran/elixir-nectar-commerce | 87f846ef1bc5cd2d675165b468ae7014dd4fe354 | [
"MIT"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | apps/nectar/lib/nectar/endpoint.ex | sshyran/nectarcommerce | 3497ab8f0c3fcf5a679dc112d905fea9e6df45ac | [
"MIT"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Endpoint do
use Phoenix.Endpoint, otp_app: :nectar
socket "/socket", Nectar.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 25.25 | 69 | 0.708911 |
747c83de3e2a3104b1426512110f52c6f555907a | 978 | ex | Elixir | apps/core/lib/core/dispatcher.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | 1 | 2020-01-14T23:19:25.000Z | 2020-01-14T23:19:25.000Z | apps/core/lib/core/dispatcher.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | null | null | null | apps/core/lib/core/dispatcher.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | null | null | null | defmodule Ornia.Core.Dispatcher do
use GenServer
alias Ornia.Core.{
PickupSupervisor,
Driver,
Passenger,
Grid
}
@search_radius 5
def start_link([passenger, coordinates]) do
state = %{
passenger: passenger,
coordinates: coordinates,
}
GenServer.start_link(__MODULE__,... | 20.808511 | 89 | 0.669734 |
747cbc03e149c7a1afd8487dcdad32e58c7e9ccf | 1,694 | ex | Elixir | lib/riverside/auth_request.ex | LukasDoesDev/riverside | c2866be6c152e38cc142becf3e9c8c042c80ed57 | [
"MIT"
] | 63 | 2018-05-02T16:47:44.000Z | 2022-03-07T09:48:58.000Z | lib/riverside/auth_request.ex | LukasDoesDev/riverside | c2866be6c152e38cc142becf3e9c8c042c80ed57 | [
"MIT"
] | 20 | 2017-09-24T00:42:12.000Z | 2021-12-11T12:00:13.000Z | lib/riverside/auth_request.ex | LukasDoesDev/riverside | c2866be6c152e38cc142becf3e9c8c042c80ed57 | [
"MIT"
] | 9 | 2019-02-18T10:09:30.000Z | 2021-12-09T21:11:02.000Z | defmodule Riverside.AuthRequest do
alias Riverside.Util.CowboyUtil
@type basic_credential :: {String.t(), String.t()}
@type t :: %__MODULE__{
queries: map,
headers: map,
peer: Riverside.PeerAddress.t(),
basic: basic_credential,
bearer_token: String.t()
}... | 22.586667 | 58 | 0.531287 |
747cc4ceb260883a67df54fec4aef592d7add2e9 | 2,770 | exs | Elixir | test/dynamo/http/render_test.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | test/dynamo/http/render_test.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | test/dynamo/http/render_test.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | defmodule Dynamo.HTTP.RenderTest do
defmodule RenderingRouter do
use Dynamo.Router
get "/set_content_type" do
render conn.resp_content_type("application/json"), "hello"
end
get "/with_layout" do
render conn, "content_for.html", layout: "yield"
end
get "/with_nested" do
ren... | 21.472868 | 73 | 0.63935 |
747cf45a022de5af5b36b0a7dc7b035837d56d67 | 3,463 | ex | Elixir | sixth_semester/Rozprochy/Rabbits/lib/technician.ex | MajronMan/agh_stuff | d045e3bd47ac17880526203d9993d9b2389a9ffe | [
"Unlicense"
] | 2 | 2019-03-02T19:31:57.000Z | 2019-04-03T19:54:39.000Z | sixth_semester/Rozprochy/Rabbits/lib/technician.ex | MajronMan/agh_stuff | d045e3bd47ac17880526203d9993d9b2389a9ffe | [
"Unlicense"
] | null | null | null | sixth_semester/Rozprochy/Rabbits/lib/technician.ex | MajronMan/agh_stuff | d045e3bd47ac17880526203d9993d9b2389a9ffe | [
"Unlicense"
] | 1 | 2019-04-03T18:26:50.000Z | 2019-04-03T18:26:50.000Z | defmodule Technician do
use GenServer
@hospital_exchange "hospital"
@admin_exchange "admin"
@info_key "info"
@log_key "log"
def start_link do
GenServer.start_link(__MODULE__, [], [])
end
def init(_opts) do
rabbitmq_connect()
end
defp rabbitmq_connect do
case AMQP.Connection.open("amq... | 30.646018 | 99 | 0.663875 |
747d14a5f53418fcb42b6a32ed8627ce10ac2356 | 1,199 | ex | Elixir | web/channels/user_socket.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | 2 | 2017-08-28T12:20:28.000Z | 2017-08-29T18:50:36.000Z | web/channels/user_socket.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | defmodule EnhancedMap.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", EnhancedMap.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket,
timeout: 45_000
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# ... | 30.74359 | 84 | 0.703086 |
747d151e568facab39c058ee43d9563eea6d6ab9 | 1,895 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/system_update_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_management/lib/google_api/android_management/v1/model/system_update_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_management/lib/google_api/android_management/v1/model/system_update_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.9 | 288 | 0.74248 |
747d1d95e92aa32fec88d164b2ddb8247783e786 | 1,203 | ex | Elixir | lib/impl/integer.ex | treble37/digger | 374e72ed1af02b9dff55b4b1a1b2c553950e9270 | [
"MIT"
] | 5 | 2017-09-18T05:44:29.000Z | 2021-10-05T03:24:34.000Z | lib/impl/integer.ex | treble37/digger | 374e72ed1af02b9dff55b4b1a1b2c553950e9270 | [
"MIT"
] | 111 | 2017-09-14T06:01:48.000Z | 2022-02-28T13:26:14.000Z | lib/impl/integer.ex | treble37/digger | 374e72ed1af02b9dff55b4b1a1b2c553950e9270 | [
"MIT"
] | 1 | 2021-08-10T17:01:07.000Z | 2021-08-10T17:01:07.000Z | defimpl Digger, for: Integer do
alias Digger.Opts.Atomizer, as: AOpts
alias Digger.Opts.Stringifier, as: SOpts
def atomize(integer, opts) do
atomicize(integer, AOpts.set_options(opts))
end
def camel_case(any, _), do: any
def dasherize(any, _opts), do: any
def lowercase_first(any, _opts), do: any
d... | 25.595745 | 87 | 0.695761 |
747d21cddb5836e98d8abbef2f8b4c3bb806708a | 1,867 | exs | Elixir | clients/testing/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | 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... | 27.865672 | 134 | 0.658275 |
747d322a0e6aef59c89276fa2137ecfe750e3f30 | 1,389 | exs | Elixir | test/faker/code_test.exs | forksss/faker | 380ca7d5f5be6a43fdbbe471ee96a60cd7c706fe | [
"MIT"
] | null | null | null | test/faker/code_test.exs | forksss/faker | 380ca7d5f5be6a43fdbbe471ee96a60cd7c706fe | [
"MIT"
] | null | null | null | test/faker/code_test.exs | forksss/faker | 380ca7d5f5be6a43fdbbe471ee96a60cd7c706fe | [
"MIT"
] | null | null | null | defmodule CodeTest do
use ExUnit.Case, async: true
defp grapheme_to_digit("X"), do: 10
defp grapheme_to_digit(str), do: String.to_integer(str)
defp checksum(isbn, calc_function) do
String.reverse(isbn)
|> String.graphemes
|> Stream.with_index
|> Stream.map(calc_function)
|> Enum.sum
end
... | 24.803571 | 61 | 0.660187 |
747d49ab67ff88c047ea806098aae3a1845b2359 | 16,223 | ex | Elixir | lib/sourceror/code/normalizer.ex | novaugust/sourceror | 19c14cc11925fff748a468e43cd393505a80ade2 | [
"Apache-2.0"
] | null | null | null | lib/sourceror/code/normalizer.ex | novaugust/sourceror | 19c14cc11925fff748a468e43cd393505a80ade2 | [
"Apache-2.0"
] | null | null | null | lib/sourceror/code/normalizer.ex | novaugust/sourceror | 19c14cc11925fff748a468e43cd393505a80ade2 | [
"Apache-2.0"
] | null | null | null | # This module was vendored from the Elixir source code to backport new features.
defmodule Sourceror.Code.Normalizer do
@moduledoc false
defguard is_literal(x)
when is_integer(x) or
is_float(x) or
is_binary(x) or
is_atom(x)
@doc """
Wraps liter... | 27.6843 | 98 | 0.593047 |
747df9e3ce08dfb4fcd8d14a8a2764def09bad71 | 547 | ex | Elixir | lib/rmc/f_one2018/car_setups.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc/f_one2018/car_setups.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc/f_one2018/car_setups.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | defmodule Rmc.FOne2018.CarSetups do
alias __MODULE__
@moduledoc false
alias Rmc.FOne2018
# struct PacketCarSetupData
# {
# PacketHeader m_header; // Header
#
# CarSetupData m_carSetups[20];
# };
@derive Jason.Encoder
defstruct [
:packet_header,
:car_setups
]
d... | 19.535714 | 69 | 0.670932 |
747e15dba6d8baf4bff3c447de1e0d46208b6563 | 2,737 | ex | Elixir | lib/nostrum/struct/event/voice_state.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/voice_state.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/voice_state.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | 1 | 2021-09-13T20:59:42.000Z | 2021-09-13T20:59:42.000Z | defmodule Nostrum.Struct.Event.VoiceState do
@moduledoc "Represents a user's voice connection status"
@moduledoc since: "0.5.0"
alias Nostrum.Struct.Channel
alias Nostrum.Struct.Guild
alias Nostrum.Struct.Guild.Member
alias Nostrum.Struct.User
alias Nostrum.{Snowflake, Util}
defstruct [
:guild_id,... | 27.928571 | 80 | 0.657289 |
747e2e96abd66197d946c30088900de9b2bbcc74 | 4,774 | ex | Elixir | server/lib/router.ex | bitfeed-project/bitfeed | 48b346ec18fa1be2e09a9e1f36ac10db9c0fab62 | [
"MIT"
] | 27 | 2022-01-01T14:58:22.000Z | 2022-03-22T06:11:18.000Z | server/lib/router.ex | bitfeed-project/bitfeed | 48b346ec18fa1be2e09a9e1f36ac10db9c0fab62 | [
"MIT"
] | 22 | 2022-01-01T04:26:10.000Z | 2022-03-22T00:02:31.000Z | server/lib/router.ex | bitfeed-project/bitfeed | 48b346ec18fa1be2e09a9e1f36ac10db9c0fab62 | [
"MIT"
] | 9 | 2022-01-03T07:34:36.000Z | 2022-03-14T23:19:56.000Z | require Logger
defmodule BitcoinStream.Router do
use Plug.Router
alias BitcoinStream.BlockData, as: BlockData
alias BitcoinStream.Protocol.Transaction, as: BitcoinTx
alias BitcoinStream.BlockData, as: BlockData
alias BitcoinStream.RPC, as: RPC
alias BitcoinStream.Index.Spend, as: SpendIndex
plug Corsic... | 34.345324 | 465 | 0.628823 |
747e35d3714634b438705349265289dc3e758357 | 1,206 | exs | Elixir | test/booking_web/schema/update_bookable_test.exs | mattiaslundberg/booking | 469d1469f306b2ab62ce1ee971a825101af6fc7e | [
"MIT"
] | null | null | null | test/booking_web/schema/update_bookable_test.exs | mattiaslundberg/booking | 469d1469f306b2ab62ce1ee971a825101af6fc7e | [
"MIT"
] | 2 | 2021-03-10T16:49:07.000Z | 2021-05-11T12:50:22.000Z | test/booking_web/schema/update_bookable_test.exs | mattiaslundberg/booking | 469d1469f306b2ab62ce1ee971a825101af6fc7e | [
"MIT"
] | null | null | null | defmodule BookingWeb.UpdateBookableTest do
use BookingWeb.ConnCase
alias Booking.{Location, Repo, Bookable, User, Permission}
setup do
user =
%User{}
|> User.changeset(%{name: "User", email: "user@example.com", password: "secret"})
|> Repo.insert!()
location = %Location{} |> Location.c... | 26.8 | 87 | 0.589552 |
747e40da76627832ad76649c87c59d362972df54 | 605 | ex | Elixir | lib/TicketList/add.ex | takano20771/TodoCmd | 85f6b91eddba07c111fd7c3bd3f5489a83ea4fce | [
"MIT"
] | null | null | null | lib/TicketList/add.ex | takano20771/TodoCmd | 85f6b91eddba07c111fd7c3bd3f5489a83ea4fce | [
"MIT"
] | 1 | 2019-08-12T03:55:42.000Z | 2019-08-16T01:17:39.000Z | lib/TicketList/add.ex | takano20771/TodoCmd | 85f6b91eddba07c111fd7c3bd3f5489a83ea4fce | [
"MIT"
] | null | null | null | # Copyright(c) 2019 TenTakano
# All rights reserved.
# See License in the project root for license information.
defmodule TicketList.Add do
def exec(args, tickets) do
result = parse_args(args)
case result do
{:error, _} -> result
title -> tickets ++ [%Ticket{title: title, add: Date... | 28.809524 | 92 | 0.542149 |
747e40f0ee9978e89b1b673d4b4b6e2211551e0f | 3,433 | ex | Elixir | lib/game/command/colors.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/colors.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/colors.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.Command.Colors do
@moduledoc """
The "colors" command
"""
use Game.Command
alias Data.Color
alias Data.Save.Config
alias Game.ColorCodes
alias Game.Command.Config, as: CommandConfig
commands([{"colors", ["color"]}], parse: false)
@impl Game.Command
def help(:topic), do: "Colors"... | 21.06135 | 84 | 0.568308 |
747ed090540d124e593b108ccdf7d557dac445a3 | 2,504 | exs | Elixir | test/parsers/rss2_test.exs | wstrinz/elixir-feed-parser | 673b2dd13b164c9691b1361e9475e9c001d1abd7 | [
"MIT"
] | null | null | null | test/parsers/rss2_test.exs | wstrinz/elixir-feed-parser | 673b2dd13b164c9691b1361e9475e9c001d1abd7 | [
"MIT"
] | null | null | null | test/parsers/rss2_test.exs | wstrinz/elixir-feed-parser | 673b2dd13b164c9691b1361e9475e9c001d1abd7 | [
"MIT"
] | null | null | null | defmodule ElixirFeedParser.Test.RSS2Test do
use ExUnit.Case
alias ElixirFeedParser.XmlNode
alias ElixirFeedParser.Parsers.RSS2
setup do
example1_file = File.read!("test/fixtures/rss2/example1.xml")
example1 = with {:ok, xml} <- XmlNode.parse_string(example1_file), do: RSS2.parse(xml)
example2_file... | 31.3 | 193 | 0.66853 |
747f41a098745433d65fc2a4eea14ed20745c076 | 1,755 | ex | Elixir | lib/circular_web/controllers/user_reset_password_controller.ex | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | null | null | null | lib/circular_web/controllers/user_reset_password_controller.ex | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | 3 | 2020-09-04T09:32:55.000Z | 2022-03-06T02:17:06.000Z | lib/circular_web/controllers/user_reset_password_controller.ex | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | null | null | null | defmodule CircularWeb.UserResetPasswordController do
use CircularWeb, :controller
alias Circular.Accounts
plug :get_user_by_reset_password_token when action in [:edit, :update]
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email}}) do
if user = ... | 29.25 | 102 | 0.660969 |
747f5eacac2eca177f178f6805c5ff6803c8af15 | 829 | ex | Elixir | lib/chunk.ex | International/git_diff | 53ad11695eefad9910ce91dff25d0133adfd3bd8 | [
"MIT"
] | null | null | null | lib/chunk.ex | International/git_diff | 53ad11695eefad9910ce91dff25d0133adfd3bd8 | [
"MIT"
] | null | null | null | lib/chunk.ex | International/git_diff | 53ad11695eefad9910ce91dff25d0133adfd3bd8 | [
"MIT"
] | null | null | null | defmodule GitDiff.Chunk do
@moduledoc """
Every patch generated by a 'git diff' command contains one or more chunks
"""
@doc """
Defines the Chunk struct.
* :from_start_line - The line at which this chunk began preimage.
* :to_start_line - The line at which this chunk began postimages.
* :from_num... | 46.055556 | 130 | 0.723764 |
747f6ebc9b722f8cf1862f4309c3abc21fd7e063 | 20,711 | ex | Elixir | lib/patch.ex | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 57 | 2020-04-22T00:19:04.000Z | 2022-03-20T11:57:00.000Z | lib/patch.ex | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 9 | 2021-10-29T20:54:56.000Z | 2022-02-19T03:41:01.000Z | lib/patch.ex | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 2 | 2021-07-02T14:41:48.000Z | 2022-01-12T11:47:26.000Z | defmodule Patch do
@moduledoc """
Patch - Ergonomic Mocking for Elixir
Patch makes it easy to mock one or more functions in a module returning a value or executing
custom logic. Patches and Spies allow tests to assert or refute that function calls have been
made.
Using Patch is as easy as adding a single... | 28.488308 | 120 | 0.67201 |
747f84f28833749bc23de148e4538491b84b5f82 | 1,124 | ex | Elixir | lib/surface/components/form/label.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/components/form/label.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/components/form/label.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.Label do
@moduledoc """
Defines a label.
Provides a wrapper for Phoenix.HTML.Form's `label/3` function.
All options passed via `opts` will be sent to `label/3`, `class` can
be set directly and will override anything in `opts`.
"""
use Surface.Component
import Phoeni... | 23.416667 | 76 | 0.669039 |
747f88d75c554cf0b27af3a2757875d51bd07959 | 1,255 | exs | Elixir | test/nerves_hub_user_api/org_user_test.exs | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 2 | 2019-06-18T19:59:13.000Z | 2020-01-13T18:45:50.000Z | test/nerves_hub_user_api/org_user_test.exs | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 9 | 2019-03-08T19:06:33.000Z | 2022-03-16T21:35:04.000Z | test/nerves_hub_user_api/org_user_test.exs | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 3 | 2019-11-25T12:15:30.000Z | 2021-01-22T16:17:37.000Z | defmodule NervesHubCoreTest.OrgUserTest do
use NervesHubCoreTest.Case
doctest NervesHubUserAPI.OrgUser
alias NervesHubUserAPI.OrgUser
describe "add" do
setup [:create_users]
test "valid", %{user: user, user2: user2, auth: auth} do
assert {:ok, _} = OrgUser.add(user["username"], user2["username"... | 28.522727 | 89 | 0.620717 |
747f95c0257714fb6173aa10c760de33fa086f40 | 136 | ex | Elixir | lib/sibilant/extra/enum.ex | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | lib/sibilant/extra/enum.ex | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | lib/sibilant/extra/enum.ex | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | defmodule Sibilant.Extra.Enum do
@moduledoc false
def compact(list) when is_list(list),
do: list |> Enum.reject(&is_nil/1)
end
| 19.428571 | 39 | 0.713235 |
747fbdd6be5c38a6f7f344a2a50899a5f0c95255 | 434 | exs | Elixir | problem36.exs | greenfork/project_euler | aeee87404f91e71c4e25c039fb2ec8be769964a8 | [
"Unlicense"
] | 1 | 2018-03-11T04:03:20.000Z | 2018-03-11T04:03:20.000Z | problem36.exs | greenfork/project_euler | aeee87404f91e71c4e25c039fb2ec8be769964a8 | [
"Unlicense"
] | null | null | null | problem36.exs | greenfork/project_euler | aeee87404f91e71c4e25c039fb2ec8be769964a8 | [
"Unlicense"
] | null | null | null | defmodule DoubleBasePalindromes do
@limit 1_000_000
def run, do: Enum.sum(numbers())
def numbers do
for n <- :lists.seq(1, @limit, 2), palindrome?(n), do: n
end
def palindrome?(n) do
base10 = inspect(n)
base2 = String.slice(inspect(n, base: :binary), 2..-1)
base10 == String.reverse(base10) ... | 24.111111 | 70 | 0.665899 |
747fc794a4cfd61a450d4bd65ba2be09f52b16d4 | 5,026 | ex | Elixir | test/support/vehicle_case.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1 | 2021-05-20T07:40:58.000Z | 2021-05-20T07:40:58.000Z | test/support/vehicle_case.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 171 | 2020-07-08T18:42:57.000Z | 2022-03-23T00:55:30.000Z | test/support/vehicle_case.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1 | 2021-03-26T15:46:37.000Z | 2021-03-26T15:46:37.000Z | defmodule TeslaMate.VehicleCase do
use ExUnit.CaseTemplate
using do
quote do
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.Vehicles.Vehicle
alias TeslaMate.Settings.CarSettings
alias TeslaMate.Log.{Car, Update}
alias TeslaApi.Vehicle.State
import Ecto
impor... | 33.959459 | 97 | 0.574015 |
747ff2195169da133ec6b5b5ab63bcd46cd5b2d2 | 6,162 | ex | Elixir | lib/html/input_helpers.ex | ricardopacheco/i18n_helpers | 791c62493b2c422ce3e21359efd33e5f148033fd | [
"Apache-2.0"
] | 10 | 2019-09-24T10:39:44.000Z | 2021-08-28T18:31:36.000Z | lib/html/input_helpers.ex | ricardopacheco/i18n_helpers | 791c62493b2c422ce3e21359efd33e5f148033fd | [
"Apache-2.0"
] | 1 | 2021-11-20T22:12:04.000Z | 2021-11-20T23:02:18.000Z | lib/html/input_helpers.ex | ricardopacheco/i18n_helpers | 791c62493b2c422ce3e21359efd33e5f148033fd | [
"Apache-2.0"
] | 2 | 2019-10-14T15:24:03.000Z | 2021-11-20T22:48:25.000Z | defmodule I18nHelpers.HTML.InputHelpers do
@moduledoc ~S"""
Provides view helpers to render HTML input fields for text that must be
provided in multiple languages. The multilingual texts passed to the
form (usually in a changeset) are expected to be maps where each key
represents a locale and each value conta... | 31.438776 | 97 | 0.696689 |
748035304fd7c6708b4650ec6ee86857c9258a16 | 1,664 | ex | Elixir | debian/debian/manpage.1.ex | Project-ARTist/module-sdk-gen | 329976ecf10517460abf8a11064ceffc004806b5 | [
"Apache-2.0"
] | 1 | 2018-06-10T14:41:33.000Z | 2018-06-10T14:41:33.000Z | debian/debian/manpage.1.ex | Project-ARTist/module-sdk-gen | 329976ecf10517460abf8a11064ceffc004806b5 | [
"Apache-2.0"
] | 8 | 2018-06-22T12:04:32.000Z | 2019-01-18T17:04:19.000Z | debian/debian/manpage.1.ex | Project-ARTist/module-sdk-gen | 329976ecf10517460abf8a11064ceffc004806b5 | [
"Apache-2.0"
] | null | null | null | .\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2018 Parthipan Ramesh <parthipan.ramesh@cispa.saarland>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH Artis... | 29.192982 | 74 | 0.665865 |
7480575ca2a14b87e0534c9e4157a1af0d1d8749 | 8,901 | ex | Elixir | lib/prom_ex/plugins/ecto.ex | andersonmcook/prom_ex | 4913b15be186db29ee9fe800bf6baf6807e1902d | [
"MIT"
] | null | null | null | lib/prom_ex/plugins/ecto.ex | andersonmcook/prom_ex | 4913b15be186db29ee9fe800bf6baf6807e1902d | [
"MIT"
] | null | null | null | lib/prom_ex/plugins/ecto.ex | andersonmcook/prom_ex | 4913b15be186db29ee9fe800bf6baf6807e1902d | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Ecto) do
defmodule PromEx.Plugins.Ecto do
@moduledoc """
This plugin captures metrics emitted by Ecto. Be sure that your PromEx module is listed before your Repo module
in your supervision tree so that the Ecto init events are not missed. If you miss those events the dashboard
v... | 34.366795 | 120 | 0.595776 |
748083ca09fb1bc173a912453104937e5fdaa532 | 1,005 | ex | Elixir | lib/junex/config.ex | boostingtech/juno_wrapper | f2e4ab2090f395c0d7e8254d9c0865689d4652a1 | [
"MIT"
] | 2 | 2020-12-11T22:36:38.000Z | 2021-01-25T14:44:03.000Z | lib/junex/config.ex | boostingtech/junex | f2e4ab2090f395c0d7e8254d9c0865689d4652a1 | [
"MIT"
] | null | null | null | lib/junex/config.ex | boostingtech/junex | f2e4ab2090f395c0d7e8254d9c0865689d4652a1 | [
"MIT"
] | null | null | null | defmodule Junex.Config do
@moduledoc false
def current_scope do
if Process.get(:_junex, nil), do: :process, else: :global
end
@doc """
Get Juno's tokens configuration values
"""
def get, do: get(current_scope())
def get(:global) do
Application.get_env(:junex, :tokens, nil)
end
def get(:p... | 18.272727 | 74 | 0.624876 |
7480945ab065275ec817cfe8aa87624677e132d0 | 1,463 | ex | Elixir | lib/ash/query/operator/basic.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/query/operator/basic.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/query/operator/basic.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Query.Operator.Basic do
@operators [
plus: [
symbol: :+
],
times: [
symbol: :*
],
minus: [
symbol: :-
],
div: [
symbol: :/
],
concat: [
symbol: :<>
]
]
Module.register_attribute(__MODULE__, :operator_modules, accumulate: true)
... | 22.507692 | 78 | 0.541353 |
7480b02bddbef6ae0f7a8cc2781c134362474af8 | 11,683 | ex | Elixir | lib/hexpm/repository/package.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm/repository/package.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm/repository/package.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Repository.Package do
use Hexpm.Schema
import Ecto.Query, only: [from: 2]
@derive {HexpmWeb.Stale, assocs: [:releases, :owners, :downloads]}
@derive {Phoenix.Param, key: :name}
schema "packages" do
field :name, :string
field :docs_updated_at, :utc_datetime_usec
field :latest_vers... | 26.612756 | 114 | 0.62056 |
7480c182cbff92a0f96b5d16b4aae18f8fa8df18 | 245 | ex | Elixir | lib/home_display_remote_sensor.ex | mattiaslundberg/home_display_remote_sensor | 56cf8bbfc492c4ae9939fb28ff3d400cf1019273 | [
"MIT"
] | null | null | null | lib/home_display_remote_sensor.ex | mattiaslundberg/home_display_remote_sensor | 56cf8bbfc492c4ae9939fb28ff3d400cf1019273 | [
"MIT"
] | null | null | null | lib/home_display_remote_sensor.ex | mattiaslundberg/home_display_remote_sensor | 56cf8bbfc492c4ae9939fb28ff3d400cf1019273 | [
"MIT"
] | null | null | null | defmodule HomeDisplayRemoteSensor do
@moduledoc """
Documentation for HomeDisplayRemoteSensor.
"""
@doc """
Hello world.
## Examples
iex> HomeDisplayRemoteSensor.hello
:world
"""
def hello do
:world
end
end
| 12.894737 | 44 | 0.653061 |
7480ca88e5733d612cb37453ff5bee39b723abc6 | 156 | ex | Elixir | lib/emojis/emoji.ex | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | 5 | 2020-07-12T18:09:15.000Z | 2021-12-23T19:51:22.000Z | lib/emojis/emoji.ex | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | 1 | 2021-04-06T20:35:02.000Z | 2021-04-06T20:35:02.000Z | lib/emojis/emoji.ex | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | null | null | null | defmodule Comparemoji.Emojis.Emoji do
@moduledoc false
@derive [Jason.Encoder]
defstruct ~w{
code
unicode
description
images
}a
end
| 14.181818 | 37 | 0.685897 |
74812ff7e85e00b92ee277aef3cf7c9ea03018bd | 1,811 | ex | Elixir | lib/bitpal/exchange_rate/exchange_rate_supervisor.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/exchange_rate/exchange_rate_supervisor.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/exchange_rate/exchange_rate_supervisor.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule BitPal.ExchangeRateSupervisor do
use Supervisor
alias BitPal.Cache
alias BitPal.ExchangeRate
alias BitPal.ExchangeRate.Worker
require Logger
@backend_cache BitPal.ExchangeRate.BackendCache
@permanent_cache BitPal.ExchangeRate.PermanentCache
@supervisor BitPal.ExhangeRate.TaskSupervisor
def... | 25.152778 | 89 | 0.643843 |
748181f2612639a728ef5171ed397e75fe34bf7c | 2,628 | exs | Elixir | test/adaptable_costs_evaluator/policies/organizations/membership_policy_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | test/adaptable_costs_evaluator/policies/organizations/membership_policy_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | test/adaptable_costs_evaluator/policies/organizations/membership_policy_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluator.Policies.Organizations.MembershipPolicyTest do
use AdaptableCostsEvaluator.DataCase
use AdaptableCostsEvaluator.Fixtures.{OrganizationFixture, UserFixture}
alias AdaptableCostsEvaluator.Organizations
import AdaptableCostsEvaluator.Policies.Organizations.MembershipPolicy
set... | 36.5 | 97 | 0.700152 |
7481ac6425bbeffa52323f41037c1395aadf246d | 661 | ex | Elixir | elixir/pacman-rules/lib/rules.ex | hoangbits/exercism | 11a527d63526e07b1eba114ebeb2fddca8f9419c | [
"MIT"
] | null | null | null | elixir/pacman-rules/lib/rules.ex | hoangbits/exercism | 11a527d63526e07b1eba114ebeb2fddca8f9419c | [
"MIT"
] | null | null | null | elixir/pacman-rules/lib/rules.ex | hoangbits/exercism | 11a527d63526e07b1eba114ebeb2fddca8f9419c | [
"MIT"
] | null | null | null | defmodule Rules do
def eat_ghost?(power_pellet_active, touching_ghost) do
# Please implement the eat_ghost?/2 function
power_pellet_active && touching_ghost
end
def score?(touching_power_pellet, touching_dot) do
# Please implement the score?/2 function
touching_power_pellet || touching_dot
end
... | 30.045455 | 70 | 0.763994 |
7481be039dcbf6459a7556a02fdb4d16d99ccd9c | 1,463 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/delete_positioned_object_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/delete_positioned_object_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/delete_positioned_object_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... | 31.12766 | 100 | 0.742994 |
7482184180e62335567dbe625e72c1be27fe5311 | 795 | exs | Elixir | mix.exs | jtmoulia/spawndir | e1d34ff57a4de211cdf798e64a16205c5b9487d0 | [
"BSD-3-Clause"
] | 1 | 2015-06-16T20:06:22.000Z | 2015-06-16T20:06:22.000Z | mix.exs | jtmoulia/spawndir | e1d34ff57a4de211cdf798e64a16205c5b9487d0 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | jtmoulia/spawndir | e1d34ff57a4de211cdf798e64a16205c5b9487d0 | [
"BSD-3-Clause"
] | null | null | null | defmodule SpawnDir.Mixfile do
use Mix.Project
@state_dir "var"
@test_dir Path.join(@state_dir, "test")
def project do
[app: :spawndir,
version: "0.1.1",
elixir: "~> 1.0.0",
deps: deps,
escript: escript,
description: File.read!("README.md"),
package: [licenses: ["The BSD 3-Cla... | 22.083333 | 79 | 0.58239 |
748218f6fddb50cde328b03f2be3ac58609ecb56 | 1,129 | exs | Elixir | test/fixtures/task_consumer/config/config.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 423 | 2017-07-19T18:40:45.000Z | 2021-12-03T08:26:15.000Z | test/fixtures/task_consumer/config/config.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 115 | 2017-07-19T18:30:14.000Z | 2020-10-27T20:53:32.000Z | test/fixtures/task_consumer/config/config.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 39 | 2017-07-20T03:14:18.000Z | 2020-11-18T13:39:52.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.419355 | 73 | 0.753764 |
74821b6e34897a53efe852702447677afd0a6ff6 | 95 | ex | Elixir | lib/ex_zenhub/errors.ex | ChrisYammine/ex_zen_hub | 79a5f216470d90355fb456a62cac5ae263c142bc | [
"MIT"
] | 2 | 2017-03-15T00:30:52.000Z | 2017-03-15T17:50:43.000Z | lib/ex_zenhub/errors.ex | ChrisYammine/ex_zenhub | 79a5f216470d90355fb456a62cac5ae263c142bc | [
"MIT"
] | 11 | 2017-03-15T21:54:31.000Z | 2017-03-16T19:23:49.000Z | lib/ex_zenhub/errors.ex | ChrisYammine/ex_zenhub | 79a5f216470d90355fb456a62cac5ae263c142bc | [
"MIT"
] | null | null | null | defmodule ExZenHub.Error do
defstruct code: nil, message: nil
@type t :: %__MODULE__{}
end
| 19 | 35 | 0.715789 |
748233705e6c3de9e23062a5bd02c267a87ca607 | 1,811 | ex | Elixir | lib/ambry/media/chapters/chaptered_mp3.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry/media/chapters/chaptered_mp3.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry/media/chapters/chaptered_mp3.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | defmodule Ambry.Media.Chapters.ChapteredMP3 do
@moduledoc """
Extracts chapter data from a collection of individually chaptered MP3s.
"""
import Ambry.Media.Chapters.Utils
import Ambry.Media.Processor.Shared
require Logger
@extensions ~w(.mp3)
def name do
"Chaptered MP3s"
end
def available?... | 24.808219 | 87 | 0.615682 |
74823e433b88cba32064e9440c73b509934c39aa | 929 | exs | Elixir | test/lib/guardian_serializer_test.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | test/lib/guardian_serializer_test.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | test/lib/guardian_serializer_test.exs | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule ApiWeb.GuardianSerializerTest do
use ExUnit.Case, async: true
alias Api.Repo
alias Api.Accounts.User
alias ApiWeb.GuardianSerializer
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
user = User.changeset(%User{}, %{
email: "email@example.com",
password: "thisisapassword"
})
|> ... | 25.108108 | 83 | 0.70183 |
748265e2e2189c12d4e6b9f9e1bbb10cf067b0e7 | 5,134 | ex | Elixir | lib/ketbin_web/controllers/user_auth.ex | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 4 | 2020-08-05T20:05:34.000Z | 2020-10-01T10:01:56.000Z | lib/ketbin_web/controllers/user_auth.ex | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-07-08T05:02:12.000Z | 2020-09-25T10:05:11.000Z | lib/ketbin_web/controllers/user_auth.ex | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-08-30T12:59:49.000Z | 2020-08-30T12:59:49.000Z | defmodule KetbinWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias Ketbin.Accounts
alias Ketbin.Pastes
alias KetbinWeb.Router.Helpers, as: Routes
# Make the remember me cookie valid for 60 days.
# If you want bump or reduce this value, also change
# the token expiry itself in UserToken.
... | 29.848837 | 100 | 0.681924 |
74827c680e71e50edfe45c7582a46ea8180d4659 | 1,271 | exs | Elixir | 05-map.exs | hi-rustin/30-days-of-elixir-1 | 80f3194414c86754377fa74e080448cf857d4025 | [
"MIT"
] | 3,040 | 2015-01-01T00:26:22.000Z | 2022-03-17T04:10:43.000Z | 05-map.exs | hi-rustin/30-days-of-elixir-1 | 80f3194414c86754377fa74e080448cf857d4025 | [
"MIT"
] | 29 | 2015-01-03T02:36:47.000Z | 2019-05-20T13:01:52.000Z | 05-map.exs | hi-rustin/30-days-of-elixir-1 | 80f3194414c86754377fa74e080448cf857d4025 | [
"MIT"
] | 520 | 2015-01-01T09:43:36.000Z | 2022-03-19T00:02:22.000Z | # https://hexdocs.pm/elixir/Map.html
ExUnit.start
defmodule MapTest do
use ExUnit.Case
def sample do
%{foo: 'bar', baz: 'quz'}
end
test "Map.get" do
assert Map.get(sample(), :foo) == 'bar'
assert Map.get(sample(), :non_existent) == nil
end
test "[]" do
assert sample()[:foo] == 'bar'
... | 23.109091 | 82 | 0.586939 |
7482941c4e290b61a27db3144865f8578dd4666d | 205 | ex | Elixir | lib/my_way.ex | JoshRagem/my_way | e3d34906471b99c0a1b3165e655378953ad91dfe | [
"MIT"
] | null | null | null | lib/my_way.ex | JoshRagem/my_way | e3d34906471b99c0a1b3165e655378953ad91dfe | [
"MIT"
] | null | null | null | lib/my_way.ex | JoshRagem/my_way | e3d34906471b99c0a1b3165e655378953ad91dfe | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Elvis do
use Mix.Task
def run(args) do
case :elvis_core.rock(Mix.Project.config[:elvis]) do
{:fail, _} -> Mix.raise "mix elvis failed"
:ok -> :ok
end
end
end
| 18.636364 | 56 | 0.619512 |
7482b48e5ed3c6badb3a58b4525095b429ef560d | 1,046 | ex | Elixir | lib/app/aviasales/proposals.ex | ilgarsh/travelbot | f6a10bf39e1942e46d571b59b41fb3001436f520 | [
"MIT"
] | null | null | null | lib/app/aviasales/proposals.ex | ilgarsh/travelbot | f6a10bf39e1942e46d571b59b41fb3001436f520 | [
"MIT"
] | 1 | 2017-12-11T21:11:44.000Z | 2017-12-11T21:11:44.000Z | lib/app/aviasales/proposals.ex | ilgarsh/travelbot | f6a10bf39e1942e46d571b59b41fb3001436f520 | [
"MIT"
] | null | null | null | defmodule Proposal do
@base_url "http://trvlbot.herokuapp.com/"
@derive [Poison.Encoder]
defstruct [:show_to_affiliates,
:trip_class,
:origin,
:destination,
:depart_date,
:return_date,
:number_of_changes,
:value,
:found_at,
:distance,
:actual,
:url]
def build_aviasales_U... | 28.27027 | 61 | 0.652964 |
748302467b4d5748636908e12d3bcdf41d6a31fd | 1,837 | exs | Elixir | mix.exs | mtrudel/crontab | d520b4e891f21efa57558c7d925349e56e2ae719 | [
"MIT"
] | null | null | null | mix.exs | mtrudel/crontab | d520b4e891f21efa57558c7d925349e56e2ae719 | [
"MIT"
] | null | null | null | mix.exs | mtrudel/crontab | d520b4e891f21efa57558c7d925349e56e2ae719 | [
"MIT"
] | null | null | null | defmodule Crontab.Mixfile do
use Mix.Project
@version "1.1.3"
def project do
[
app: :crontab,
version: @version,
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: de... | 23.551282 | 87 | 0.557975 |
7483277abb93432800a601ab1b97679167475cd3 | 604 | ex | Elixir | lib/earmark_wrapper/types.ex | RobertDober/EarmarkWrapper | c62ff01d11cb32c20fdd6a10b529315bd8ea2874 | [
"Apache-2.0"
] | null | null | null | lib/earmark_wrapper/types.ex | RobertDober/EarmarkWrapper | c62ff01d11cb32c20fdd6a10b529315bd8ea2874 | [
"Apache-2.0"
] | null | null | null | lib/earmark_wrapper/types.ex | RobertDober/EarmarkWrapper | c62ff01d11cb32c20fdd6a10b529315bd8ea2874 | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkWrapper.Types do
defmacro __using__( _options) do
quote do
# TODO: As soon as Earmark types `Earmark.as_html` use its return type instead
@type earmark_return_t :: { status(), String.t, Earmark.Message.ts }
@type either(t) :: {:ok, t} | {:error, String.t}
@type keywd_... | 26.26087 | 101 | 0.587748 |
7483573d899f435badeea8574a5c5ba7bbec43f0 | 925 | ex | Elixir | lib/step_flow/updates/update.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | lib/step_flow/updates/update.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | lib/step_flow/updates/update.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.Updates.Update do
use Ecto.Schema
import Ecto.Changeset
alias StepFlow.Jobs.Job
alias StepFlow.Updates.Update
@moduledoc false
schema "step_flow_updates" do
field(:datetime, :utc_datetime)
field(:parameters, {:array, :map})
belongs_to(:job, Job, foreign_key: :job_id)
ti... | 23.717949 | 59 | 0.682162 |
74837c94e45543b32285951c80dbac124f125972 | 615 | exs | Elixir | test/kinesis_client/stream/app_state/shard_lease_test.exs | slievr/kcl_ex | c1620ba68b56da1802e6e9fafdb3da14155b90d7 | [
"Apache-2.0"
] | 4 | 2017-12-19T15:27:54.000Z | 2021-06-04T13:04:49.000Z | test/kinesis_client/stream/app_state/shard_lease_test.exs | slievr/kcl_ex | c1620ba68b56da1802e6e9fafdb3da14155b90d7 | [
"Apache-2.0"
] | 2 | 2021-03-05T12:01:24.000Z | 2021-12-03T22:34:24.000Z | test/kinesis_client/stream/app_state/shard_lease_test.exs | slievr/kcl_ex | c1620ba68b56da1802e6e9fafdb3da14155b90d7 | [
"Apache-2.0"
] | 3 | 2021-02-17T16:14:11.000Z | 2021-12-10T05:26:25.000Z | defmodule KinesisClient.Stream.AppState.ShardLeaseTest do
use KinesisClient.Case
alias KinesisClient.Stream.AppState.ShardLease
alias ExAws.Dynamo.Encodable
test "ExAws.Dynamo.Encodable.encode/2 implemented" do
result = Encodable.encode(%ShardLease{}, [])
assert result == %{
"M" => %{
... | 29.285714 | 57 | 0.525203 |
7483b7b3c3eb0fd10569ccc0c0078b08b2589d7f | 5,529 | exs | Elixir | apps/blockchain/test/blockchain/blockchain_state_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/blockchain/test/blockchain/blockchain_state_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/blockchain/test/blockchain/blockchain_state_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule Blockchain.BlockchainStateTest do
alias Blockchain.Account
alias EthCommonTest.StateTestRunner
alias MerklePatriciaTree.Trie
use ExUnit.Case, async: true
@failing_tests %{
"Byzantium" => [],
"Constantinople" => [],
"Frontier" => [],
"Homestead" => [],
"HomesteadToDaoAt5" => [],... | 27.645 | 98 | 0.680051 |
7483c1af2991840af40fd298bf2b2aaff2315112 | 1,157 | exs | Elixir | config/config.exs | jamesandariese/ex_flatten_breadth_first | fc36b34427069740be09b678833e7683bc3934c8 | [
"MIT"
] | null | null | null | config/config.exs | jamesandariese/ex_flatten_breadth_first | fc36b34427069740be09b678833e7683bc3934c8 | [
"MIT"
] | null | null | null | config/config.exs | jamesandariese/ex_flatten_breadth_first | fc36b34427069740be09b678833e7683bc3934c8 | [
"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... | 37.322581 | 73 | 0.758859 |
7483f45ef76adbd1872c30dacbd37f8a36ad1a25 | 1,822 | ex | Elixir | apps/raptor/lib/raptor/services/auth0_management_service.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/raptor/lib/raptor/services/auth0_management_service.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/raptor/lib/raptor/services/auth0_management_service.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Raptor.Services.Auth0Management do
@moduledoc """
Service to get a temporary access token for the auth0 managment api and interface with the api
"""
use Properties, otp_app: :raptor
use Tesla
require Logger
getter(:auth0, generic: true)
def get_users_by_api_key(apiKey) do
url = Keyword.... | 28.920635 | 97 | 0.641054 |
748429ac5ac422c606dfa710d5e3377b548d3016 | 811 | exs | Elixir | apps/parse/test/parse/alerts/calendar_dates_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/parse/test/parse/alerts/calendar_dates_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/parse/test/parse/alerts/calendar_dates_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Parse.CalendarDatesTest do
use ExUnit.Case, async: true
alias Parse.CalendarDates
use Timex
test "parses calendar dates" do
blob = """
"service_id","date","exception_type","holiday_name"
"BUS12016-hba16011-Weekday-02","20160226",2,"Washington’s Birthday"
"Boat-F4-Sunday","20150907",1... | 27.033333 | 71 | 0.541307 |
748445745c7fd5f62b06bb8570999f73b65e60df | 1,178 | ex | Elixir | lib/asciinema_web/channels/user_socket.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | 1 | 2021-07-07T12:36:10.000Z | 2021-07-07T12:36:10.000Z | lib/asciinema_web/channels/user_socket.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/channels/user_socket.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Asciinema.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and ... | 31 | 85 | 0.704584 |
74844bc5e9deb6d7547002fc26e964fd5ef66e26 | 2,617 | ex | Elixir | lib/log_analyzer/server/api/reports/summary.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/api/reports/summary.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/api/reports/summary.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | defmodule LogAnalyzer.Server.API.Reports.Summary do
require Logger
alias LogAnalyzer.Repo
import Plug.Conn
import Ecto.Query, only: [from: 2]
import LogAnalyzer.Server.API.Util
def get_summary(conn, id) do
with {:ok, file_name} <- file_name(id),
{:ok, file_size} <- file_size(file_name),
... | 22.95614 | 72 | 0.548338 |
7484bfcccf097b5b77e9f0b7484b2abbb3d6f8bd | 8,649 | ex | Elixir | lib/site_encrypt/acme/server.ex | aptinio/site_encrypt | be1c5a11d9da250a14d45afe3ff9ac62fb7d282d | [
"MIT"
] | null | null | null | lib/site_encrypt/acme/server.ex | aptinio/site_encrypt | be1c5a11d9da250a14d45afe3ff9ac62fb7d282d | [
"MIT"
] | null | null | null | lib/site_encrypt/acme/server.ex | aptinio/site_encrypt | be1c5a11d9da250a14d45afe3ff9ac62fb7d282d | [
"MIT"
] | null | null | null | defmodule SiteEncrypt.Acme.Server do
@moduledoc false
use Parent.Supervisor
require Logger
alias SiteEncrypt.Acme.Server.Account
@type start_opts :: [id: SiteEncrypt.id(), dns: dns, port: pos_integer()]
@type config :: %{id: SiteEncrypt.id(), site: String.t(), site_uri: URI.t(), dns: dns}
@type dns :: %{... | 32.637736 | 98 | 0.653717 |
7484cf740fa5cf3da2588535420faa43fe10f263 | 1,228 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume_volume_info_image_links.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_volume_info_image_links.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_volume_info_image_links.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... | 29.238095 | 85 | 0.733713 |
7484d5d05839d3ce84bef0cd0d85d4931918dbba | 2,865 | ex | Elixir | lib/tentacat/starring.ex | wesleimp/tentacat | 6e4de63dd19ae719f2b59d4f289979a91e3cb5e2 | [
"MIT"
] | null | null | null | lib/tentacat/starring.ex | wesleimp/tentacat | 6e4de63dd19ae719f2b59d4f289979a91e3cb5e2 | [
"MIT"
] | null | null | null | lib/tentacat/starring.ex | wesleimp/tentacat | 6e4de63dd19ae719f2b59d4f289979a91e3cb5e2 | [
"MIT"
] | null | null | null | defmodule Tentacat.Users.Starring do
import Tentacat
alias Tentacat.Client
@doc """
Lists the people that have starred the repository.
## Example
Tentacat.Users.Starring.stargazers client, "edgurgel", "tentacat"
More info at: https://developer.github.com/v3/activity/starring/#list-stargazers
"""... | 27.548077 | 105 | 0.685515 |
74852431b3aadf11287ce252dfcc58b26927c499 | 7,385 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/build.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/build.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/build.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 65.9375 | 779 | 0.71415 |
74853a770c82e8f11fca409db29570c0c94c24dd | 1,625 | ex | Elixir | elixir-example/server/lib/tictactoe_web.ex | Limenius/tittactoe | e896dcb6ed2e75d3b5a2e6fb38b1a0c4861404bc | [
"MIT"
] | 9 | 2017-10-09T20:26:23.000Z | 2020-10-27T15:50:28.000Z | elixir-example/server/lib/tictactoe_web.ex | Limenius/tittactoe | e896dcb6ed2e75d3b5a2e6fb38b1a0c4861404bc | [
"MIT"
] | null | null | null | elixir-example/server/lib/tictactoe_web.ex | Limenius/tittactoe | e896dcb6ed2e75d3b5a2e6fb38b1a0c4861404bc | [
"MIT"
] | 2 | 2017-10-25T01:32:21.000Z | 2018-12-21T21:44:01.000Z | defmodule TictactoeWeb 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 TictactoeWeb, :controller
use TictactoeWeb, :view
The definitions below will be executed for every view,
contro... | 23.897059 | 69 | 0.691077 |
7485491190a4494e0378bbed381af63a41bb489b | 2,022 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filter_sets_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filter_sets_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filter_sets_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.763636 | 148 | 0.743818 |
74854d7b7bbb418b5482a491b9ff55f4bcf5e7a4 | 1,131 | ex | Elixir | lib/game/room/repo.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/game/room/repo.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/game/room/repo.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Room.Repo do
@moduledoc """
Repo helper for the Room modules
"""
import Ecto.Query
alias Data.Exit
alias Data.Room
alias Data.Repo
@doc """
Load all rooms
"""
@spec all() :: [Room.t()]
def all() do
Room
|> preload([:room_items, :shops, :zone])
|> Repo.all()
end
... | 16.632353 | 53 | 0.532272 |
7485be2e9708d8060eabe96ede7f39d97e4943a4 | 3,085 | ex | Elixir | lib/livebook_app.ex | capitalist/livebook | a648a4768e0b9da6c15e222368948116866651aa | [
"Apache-2.0"
] | null | null | null | lib/livebook_app.ex | capitalist/livebook | a648a4768e0b9da6c15e222368948116866651aa | [
"Apache-2.0"
] | null | null | null | lib/livebook_app.ex | capitalist/livebook | a648a4768e0b9da6c15e222368948116866651aa | [
"Apache-2.0"
] | null | null | null | if Mix.target() == :app do
defmodule LivebookApp do
@moduledoc false
@behaviour :wx_object
# https://github.com/erlang/otp/blob/OTP-24.1.2/lib/wx/include/wx.hrl#L1314
@wx_id_exit 5006
def start_link(_) do
{:wx_ref, _, _, pid} = :wx_object.start_link(__MODULE__, [], [])
{:ok, pid}
... | 25.92437 | 108 | 0.598055 |
7485c708d6fd1fc279b6b3dd88bcfe39a3704aeb | 3,715 | exs | Elixir | test/pix_key_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | test/pix_key_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | test/pix_key_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfraTest.PixKey do
use ExUnit.Case
@tag :pix_key
test "create pix key" do
{:ok, pix_key} = StarkInfra.PixKey.create(example_pix_key())
assert !is_nil(pix_key.id)
end
@tag :pix_key
test "create! pix key" do
pix_key = StarkInfra.PixKey.create!(example_pix_key())
assert !is_ni... | 25.445205 | 108 | 0.634724 |
7485cf2dc08c7320a3ea41c57364501665097dca | 15 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 1.2e+3 in 4.5-6 | 15 | 15 | 0.6 |
7485dcd1eadb599357d582503fa0dcdd1a49f217 | 1,593 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/graphics_stats_bucket.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/graphics_stats_bucket.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/graphics_stats_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... | 31.86 | 105 | 0.728814 |
7485f5e371926e1f765e965e834d3bd5357d63e9 | 3,004 | ex | Elixir | lib/bitcoin_simulator/bitcoin_core/mining.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator/bitcoin_core/mining.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator/bitcoin_core/mining.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | defmodule BitcoinSimulator.BitcoinCore.Mining do
use Timex
alias BitcoinSimulator.BitcoinCore.Blockchain
alias BitcoinSimulator.Simulation.Param
alias BitcoinSimulator.Const
defmodule MemPool do
defstruct [
unconfirmed_txs: Map.new()
]
end
# APIs
def get_new_mempool, do: %MemPool{}
... | 37.08642 | 175 | 0.729361 |
7486062e3785f9df7de5067232852cc69761ef66 | 3,837 | ex | Elixir | lib/signaturex.ex | edgurgel/signaturex | 8201187bd32e6407bc36df4dbbe43a4cca1d5519 | [
"MIT"
] | 17 | 2015-04-18T02:25:31.000Z | 2021-11-27T16:13:27.000Z | lib/signaturex.ex | edgurgel/signaturex | 8201187bd32e6407bc36df4dbbe43a4cca1d5519 | [
"MIT"
] | 6 | 2015-05-14T22:04:54.000Z | 2021-08-04T05:19:15.000Z | lib/signaturex.ex | edgurgel/signaturex | 8201187bd32e6407bc36df4dbbe43a4cca1d5519 | [
"MIT"
] | 7 | 2015-07-11T02:40:42.000Z | 2021-08-03T22:39:46.000Z | defmodule Signaturex do
alias Signaturex.CryptoHelper
alias Signaturex.Time
defmodule AuthenticationError do
defexception message: "Error on authentication"
end
@doc """
Validate request
Raises an AuthenticationError if the request is invalid
"""
@spec validate!(binary, binary, binary | atom, b... | 28.634328 | 87 | 0.691165 |
7486088dd778d00ebc9aae73ff913f6ba332e785 | 73 | ex | Elixir | lib/squarestore_web/views/products_view.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/views/products_view.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/views/products_view.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | defmodule SquarestoreWeb.ProductsView do
use SquarestoreWeb, :view
end
| 18.25 | 40 | 0.835616 |
74861c014c79873046fc1b4c968c4bd5c7f92d77 | 2,248 | exs | Elixir | test/straw_hat_map/addresses_test.exs | straw-hat-team/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 4 | 2018-03-07T04:12:36.000Z | 2018-03-08T16:13:14.000Z | test/straw_hat_map/addresses_test.exs | straw-hat-labs/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 61 | 2018-03-07T04:50:42.000Z | 2019-11-01T10:24:03.000Z | test/straw_hat_map/addresses_test.exs | straw-hat-team/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 2 | 2018-03-22T19:44:45.000Z | 2019-08-02T03:45:47.000Z | defmodule StrawHat.Map.AddressesTests do
use StrawHat.Map.TestSupport.CaseTemplate, async: true
alias StrawHat.Map.{Address, Addresses, Countries}
describe "finding an address" do
test "with a valid ID" do
address = insert(:address)
assert {:ok, _address} = Addresses.find_address(Repo, address.i... | 27.084337 | 82 | 0.672598 |
74861c3648559285cc34977a6f403953a8c2baf3 | 5,975 | ex | Elixir | lib/logger/lib/logger/utils.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/logger/lib/logger/utils.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/utils.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | defmodule Logger.Utils do
@moduledoc false
@doc """
Computes the logging mode.
The result may be either :sync, :async or :discard.
"""
@spec compute_mode(
mode,
non_neg_integer(),
non_neg_integer(),
non_neg_integer(),
non_neg_integer(),
non_neg_i... | 27.662037 | 84 | 0.635314 |
74863edad7832dc9c2b9e387bcbd5af2dbce58b0 | 9,920 | ex | Elixir | lib/tesla_api/auth.ex | RickyRomero/teslamate | b4b24b735902940f2af38f4d6a1cedfd214fa478 | [
"MIT"
] | null | null | null | lib/tesla_api/auth.ex | RickyRomero/teslamate | b4b24b735902940f2af38f4d6a1cedfd214fa478 | [
"MIT"
] | 1 | 2022-03-30T14:40:12.000Z | 2022-03-30T14:40:12.000Z | lib/tesla_api/auth.ex | brianmay/teslamate | 27e4117f4f3bdc9721545d88bdda6c2bb290307a | [
"MIT"
] | null | null | null | defmodule TeslaApi.Auth do
use Tesla
require Logger
adapter Tesla.Adapter.Finch, name: TeslaMate.HTTP, receive_timeout: 15_000
plug Tesla.Middleware.BaseUrl, "https://auth.tesla.com"
plug Tesla.Middleware.JSON
alias TeslaApi.Error
@web_client_id "ownerapi"
@client_id "81527cff06843c8634fdc09e8ac0ab... | 29.176471 | 96 | 0.596774 |
74867e2169b6343076a66b7ed8654ea27b90ca37 | 1,132 | exs | Elixir | config/dev.exs | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | config/dev.exs | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | config/dev.exs | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :micro_server_shell, MicroServerShell.Endpoint,
... | 32.342857 | 73 | 0.699647 |
74867fe68a1816d9ee164efdcda007cbeaf7c173 | 477 | ex | Elixir | web/models/source_key_pipelines.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | web/models/source_key_pipelines.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | web/models/source_key_pipelines.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.SourceKeyPipelines do
use CncfDashboardApi.Web, :model
schema "source_key_pipelines" do
field :source_id, :string
field :new_id, :integer
field :source_name, :string
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def chang... | 22.714286 | 56 | 0.677149 |
74869e1f318e772a0fb89ac066e49924317c63cc | 327 | ex | Elixir | test/support/channel_case.ex | acutario/frankt | 0f77403d969d824e41cae7a235ebcc2d7e6a4d2c | [
"MIT"
] | 6 | 2018-01-07T13:49:20.000Z | 2020-01-19T02:29:47.000Z | test/support/channel_case.ex | acutario/frankt | 0f77403d969d824e41cae7a235ebcc2d7e6a4d2c | [
"MIT"
] | 10 | 2018-01-03T18:09:35.000Z | 2018-07-02T16:25:02.000Z | test/support/channel_case.ex | acutario/frankt | 0f77403d969d824e41cae7a235ebcc2d7e6a4d2c | [
"MIT"
] | 1 | 2018-07-16T08:57:35.000Z | 2018-07-16T08:57:35.000Z | defmodule Frankt.ChannelCase do
@moduledoc false
use ExUnit.CaseTemplate
using do
quote do
# Import conveniences for testing with channels
use Phoenix.ChannelTest
import Frankt.ActionTest
# The default endpoint for testing
@endpoint Frankt.TestApplication.Endpoint
end
e... | 18.166667 | 53 | 0.715596 |
7486dc3d236163cecdeb61fa946bdab856ab4ab1 | 61 | ex | Elixir | test/fixtures/failure_simple/lib/example_a.ex | axelson/mix_machine | f5d2ee0fb98dd8c939671be1993badd41444cad6 | [
"MIT"
] | 7 | 2021-09-28T20:57:33.000Z | 2021-11-27T19:46:28.000Z | test/fixtures/failure_simple/lib/example_a.ex | axelson/mix_machine | f5d2ee0fb98dd8c939671be1993badd41444cad6 | [
"MIT"
] | 8 | 2021-09-29T17:55:57.000Z | 2022-01-19T11:38:30.000Z | test/fixtures/failure_simple/lib/example_a.ex | axelson/mix_machine | f5d2ee0fb98dd8c939671be1993badd41444cad6 | [
"MIT"
] | 2 | 2021-09-30T09:47:06.000Z | 2021-11-27T02:35:12.000Z | defmodule ExampleA do
def hello do
Foo.bar()
end
end
| 10.166667 | 21 | 0.672131 |
7486dcfb6513cf22fe1f233ed5a78ca67e15603f | 1,690 | ex | Elixir | lib/auto_api/capabilities/windscreen_capability.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | lib/auto_api/capabilities/windscreen_capability.ex | highmobility/auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | lib/auto_api/capabilities/windscreen_capability.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 37.555556 | 79 | 0.744379 |
7486e2d1fff51e1abaacdb717ab2eaf0951f44c6 | 68 | ex | Elixir | lib/imagine_web/views/cms_template_view.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 25 | 2020-09-08T05:13:40.000Z | 2022-03-15T13:35:59.000Z | lib/imagine_web/views/cms_template_view.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | null | null | null | lib/imagine_web/views/cms_template_view.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 3 | 2021-08-11T03:48:54.000Z | 2022-02-09T20:11:06.000Z | defmodule ImagineWeb.CmsTemplateView do
use ImagineWeb, :view
end
| 17 | 39 | 0.823529 |
748702b95779490c208e84d52911cf6a8df5547b | 8,310 | ex | Elixir | lib/ex_json_schema/schema.ex | edenlabllc/nex_json_schema | f7445a1da1f470b2876e9ee28965e675c54e74c2 | [
"MIT"
] | 3 | 2016-10-25T12:10:00.000Z | 2020-11-06T21:33:23.000Z | lib/ex_json_schema/schema.ex | edenlabllc/nex_json_schema | f7445a1da1f470b2876e9ee28965e675c54e74c2 | [
"MIT"
] | 12 | 2017-05-31T17:23:16.000Z | 2020-10-21T00:58:45.000Z | lib/ex_json_schema/schema.ex | edenlabllc/nex_json_schema | f7445a1da1f470b2876e9ee28965e675c54e74c2 | [
"MIT"
] | 4 | 2018-06-18T23:37:53.000Z | 2020-07-08T13:03:20.000Z | defmodule NExJsonSchema.Schema do
defmodule UnsupportedSchemaVersionError do
defexception message: "unsupported schema version, only draft 4 is supported"
end
defmodule InvalidSchemaError do
defexception message: "invalid schema"
end
defmodule UndefinedRemoteSchemaResolverError do
defexception m... | 31.83908 | 111 | 0.677016 |
7487096078290aab5fa9d1ce5876e6522ecb576a | 1,539 | ex | Elixir | lib/mix/tasks/analyze_plans.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | lib/mix/tasks/analyze_plans.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | lib/mix/tasks/analyze_plans.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Mix.Tasks.AnalyzePlans do
use Mix.Task
use Plausible.Repo
# coveralls-ignore-start
def run(_) do
Mix.Task.run("app.start")
res =
Repo.all(
from s in Plausible.Billing.Subscription,
where: s.status == "active",
group_by: s.paddle_plan_id,
select: {... | 25.229508 | 105 | 0.569851 |
74870a5aa0fbc51a8dcd5f256c63e60b51a8e725 | 2,314 | exs | Elixir | mix.exs | kernel-io/ash_phoenix | 3d69d41fd79249f774c182ec8654af61bb452f56 | [
"MIT"
] | null | null | null | mix.exs | kernel-io/ash_phoenix | 3d69d41fd79249f774c182ec8654af61bb452f56 | [
"MIT"
] | null | null | null | mix.exs | kernel-io/ash_phoenix | 3d69d41fd79249f774c182ec8654af61bb452f56 | [
"MIT"
] | null | null | null | defmodule AshPhoenix.MixProject do
use Mix.Project
@description """
Utilities for integrating Ash with Phoenix
"""
@version "0.7.1"
def project do
[
app: :ash_phoenix,
version: @version,
description: @description,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
... | 23.612245 | 65 | 0.541919 |
74870f90d5b6234c18aedca3b8d047f708d75a37 | 1,746 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/string_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/string_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/string_filter.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... | 32.943396 | 108 | 0.710767 |
748739b8b9ef92e057d678a8ae930989e5a29860 | 1,044 | exs | Elixir | test/support/test_client.exs | runhyve/sentry-elixir | c27a52915767af5ff57bb5b63311b6e8e1081240 | [
"MIT"
] | null | null | null | test/support/test_client.exs | runhyve/sentry-elixir | c27a52915767af5ff57bb5b63311b6e8e1081240 | [
"MIT"
] | null | null | null | test/support/test_client.exs | runhyve/sentry-elixir | c27a52915767af5ff57bb5b63311b6e8e1081240 | [
"MIT"
] | null | null | null | defmodule Sentry.TestClient do
@behaviour Sentry.HTTPClient
require Logger
def send_event(%Sentry.Event{} = event, _opts \\ []) do
{endpoint, _public_key, _secret_key} = Sentry.Client.get_dsn()
event = Sentry.Client.maybe_call_before_send_event(event)
Sentry.Client.render_event(event)
|> Jason.e... | 24.857143 | 77 | 0.494253 |
74873a67017e50672bd7d9992f79a7e491d1a36a | 2,125 | ex | Elixir | clients/books/lib/google_api/books/v1/model/discoveryclusters_clusters_banner_with_content_container.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/discoveryclusters_clusters_banner_with_content_container.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/books/lib/google_api/books/v1/model/discoveryclusters_clusters_banner_with_content_container.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... | 31.716418 | 89 | 0.689882 |
748747399d0405fb78c033429aed044ea49baba7 | 1,609 | exs | Elixir | test/juvet_test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 19 | 2018-07-14T16:54:11.000Z | 2022-03-01T09:02:19.000Z | test/juvet_test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 31 | 2018-06-29T15:30:40.000Z | 2022-02-26T01:07:12.000Z | test/juvet_test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | null | null | null | defmodule Juvet.JuvetTest do
use ExUnit.Case
import Juvet.ProcessHelpers
import Juvet.ConfigurationHelpers
setup_all :setup_with_supervised_application!
setup_all :setup_reset_config_on_exit
describe "Juvet.start/2 with valid configuration" do
test "starts the BotFactory" do
assert Process.wher... | 27.741379 | 79 | 0.684276 |
7487484fcee55e13e9a97d9fe34fbae6b6f9d18b | 877 | ex | Elixir | apps/badger_web/lib/badger_web/views/layout_view.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | apps/badger_web/lib/badger_web/views/layout_view.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | 9 | 2021-03-09T20:25:18.000Z | 2021-05-27T12:58:03.000Z | apps/badger_web/lib/badger_web/views/layout_view.ex | andyl/badger | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | defmodule BadgerWeb.LayoutView do
use BadgerWeb, :view
def hdr_link(conn, lbl, path) do
~e"""
<li class="nav-item">
<%= active_link(conn, lbl, to: path, class_active: "nav-link active", class_inactive: "nav-link") %>
</li>
"""
end
def logout_link(conn, user) do
path = Routes.session_... | 23.702703 | 108 | 0.583808 |
748749b1402bcfcc4d6419d6c0085124d59dc19b | 1,887 | exs | Elixir | clients/cloud_debugger/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 27.75 | 138 | 0.661367 |
74877586e0d328264e4e986c03b64c7c4a32cf2a | 4,508 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_path_to_conversion_criteria_report_properties.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_path_to_conversion_criteria_report_properties.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_path_to_conversion_criteria_report_properties.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... | 59.315789 | 342 | 0.749778 |
7487c04d5aff8f76244156829d25e88efb44c131 | 316 | ex | Elixir | lib/supervisor.ex | rbao/xcuid | d7c66cc2bfe5d3695bf6c2d37d90f6369108d07c | [
"MIT"
] | 1 | 2020-05-14T06:54:02.000Z | 2020-05-14T06:54:02.000Z | lib/supervisor.ex | rbao/xcuid | d7c66cc2bfe5d3695bf6c2d37d90f6369108d07c | [
"MIT"
] | null | null | null | lib/supervisor.ex | rbao/xcuid | d7c66cc2bfe5d3695bf6c2d37d90f6369108d07c | [
"MIT"
] | null | null | null | defmodule XCUID.Supervisor do
use Supervisor
def start_link(opts \\ []) do
opts = Keyword.merge([name: __MODULE__], opts)
Supervisor.start_link(__MODULE__, [], opts)
end
@impl true
def init(_) do
children = [
XCUID
]
Supervisor.init(children, strategy: :one_for_one)
end
end
| 17.555556 | 53 | 0.655063 |
7487c654df0f02d85cccf0899545c89013bfbd6b | 253 | ex | Elixir | lib/bookpile.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 4 | 2021-08-23T19:27:00.000Z | 2021-12-24T14:22:10.000Z | lib/bookpile.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 16 | 2021-08-23T16:48:07.000Z | 2022-02-28T17:25:37.000Z | lib/bookpile.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 2 | 2021-08-23T16:18:42.000Z | 2021-08-23T16:35:41.000Z | defmodule Bookpile do
@moduledoc """
Bookpile 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.3 | 66 | 0.754941 |
7487e32d99ebfb107dc067ce31b388751411a64c | 640 | exs | Elixir | test/config_test.exs | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | 11 | 2020-01-25T16:17:24.000Z | 2020-06-03T10:46:27.000Z | test/config_test.exs | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | test/config_test.exs | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | defmodule Entrance.ConfigTest do
use ExUnit.Case, async: true
import Entrance.Config
describe "Entrance.config/1" do
test "raises error whith wrong configurations" do
Application.put_all_env(
entrance: [
repo: FakeSuccessRepo,
user_module: Fake,
security_module: En... | 26.666667 | 80 | 0.598438 |
7487ea84765f5486e2bc6c2134e48823fc87cecb | 2,109 | exs | Elixir | mix.exs | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | 2 | 2018-09-01T17:38:39.000Z | 2018-09-20T13:47:50.000Z | mix.exs | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | null | null | null | mix.exs | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2018 Andrea Janes <ajanes@unibz.it>, Riccardo Felluga <riccardo.felluga@stud-inf.unibz.it>, Max Schweigkofler <maxelia.schweigkofler@stud-inf.unibz.it>
#
# This file is part of the project reuse-checker which is released under the MIT license.
# See file LICENSE or go to https://github.com/riccardofel... | 28.5 | 167 | 0.6055 |
7487ec54b47424ae8280256dd9837b1c283c008f | 1,220 | ex | Elixir | lib/still/compiler/incremental/registry.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 202 | 2021-01-13T15:45:17.000Z | 2022-03-22T01:26:27.000Z | lib/still/compiler/incremental/registry.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 55 | 2021-01-26T14:11:34.000Z | 2022-03-22T22:34:37.000Z | lib/still/compiler/incremental/registry.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 10 | 2021-02-04T21:14:41.000Z | 2022-03-20T10:12:59.000Z | defmodule Still.Compiler.Incremental.Registry do
@moduledoc """
Supervisor that maps files (based on their name) to PIDs of `Still.Compiler.Incremental.Node`.
"""
use DynamicSupervisor
alias Still.Compiler.Incremental
def start_link(_) do
DynamicSupervisor.start_link(__MODULE__, %{}, name: __MODULE__... | 24.4 | 96 | 0.681148 |
7487fedacb0dfb37f8361de7a96e10dbbb363513 | 4,943 | exs | Elixir | test/madari_web/controllers/user_settings_controller_test.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | test/madari_web/controllers/user_settings_controller_test.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | test/madari_web/controllers/user_settings_controller_test.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | defmodule MadariWeb.UserSettingsControllerTest do
use MadariWeb.ConnCase
alias Madari.Accounts
import Madari.AccountsFixtures
setup :register_and_log_in_user
describe "GET /users/settings" do
test "renders settings page", %{conn: conn} do
conn = get(conn, Routes.user_settings_path(conn, :edit))
... | 38.023077 | 96 | 0.650415 |
74883f0172aef023e5a148ed7bd9a789d9bc0723 | 202 | exs | Elixir | test/insta_api_web/controllers/page_controller_test.exs | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | 2 | 2021-01-07T23:46:50.000Z | 2021-01-08T12:16:00.000Z | test/insta_api_web/controllers/page_controller_test.exs | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | null | null | null | test/insta_api_web/controllers/page_controller_test.exs | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | null | null | null | defmodule InstaApiWeb.PageControllerTest do
use InstaApiWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.444444 | 60 | 0.683168 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.