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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93e86a92bec79c9009c6adff93a1d91def7df978 | 330 | ex | Elixir | lib/encryption/encrypted_field.ex | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | 4 | 2015-08-11T04:01:14.000Z | 2019-09-17T04:47:02.000Z | lib/encryption/encrypted_field.ex | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | null | null | null | lib/encryption/encrypted_field.ex | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | null | null | null | defmodule Encryption.EncryptedField do
alias Encryption.AES
@behaviour Ecto.Type
def type, do: :binary
def cast(value) do
{:ok, to_string(value)}
end
def dump(value) do
ciphertext = value |> to_string |> AES.encrypt
{:ok, ciphertext}
end
def load(value) do
{:ok, AES.decrypt(value)}
... | 15.714286 | 50 | 0.660606 |
93e8726d0bdc1d3a8e3573e292459a7584417e5a | 448 | ex | Elixir | lib/chess/auth/error_handler.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 30 | 2018-06-16T00:41:59.000Z | 2021-03-05T08:39:02.000Z | lib/chess/auth/error_handler.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 221 | 2018-01-15T20:33:13.000Z | 2022-02-16T00:53:35.000Z | lib/chess/auth/error_handler.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 5 | 2018-02-20T17:25:19.000Z | 2018-12-29T00:09:30.000Z | defmodule Chess.Auth.ErrorHandler do
@moduledoc false
use ChessWeb, :controller
import Plug.Conn
def auth_error(conn, {_type, _reason}, _opts) do
case get_format(conn) do
"html" ->
conn
|> put_flash(:info, "You must be logged in")
|> redirect(to: "/")
|> halt()
... | 20.363636 | 58 | 0.5625 |
93e88572f51370be0cb273657d55705e028460a6 | 2,033 | exs | Elixir | apps/mishka_html/config/prod.exs | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/config/prod.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/config/prod.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.303571 | 66 | 0.717659 |
93e898475055ca0bc57f76eb603d854df28494cb | 1,449 | exs | Elixir | examples/mandelbrot.exs | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 10 | 2015-03-15T16:12:00.000Z | 2021-02-09T09:30:17.000Z | examples/mandelbrot.exs | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 1 | 2019-04-20T12:09:24.000Z | 2019-04-20T12:09:24.000Z | examples/mandelbrot.exs | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 5 | 2019-01-19T19:47:09.000Z | 2021-11-11T23:54:25.000Z | #
# Run as:
#
# mix run examples/mandelbrot.exs
#
defmodule Mandelbrot do
require ExPNG.Color, as: Color
require Bitwise
@max_iterations 1000
def draw(image) do
scale_point = scaling_function(-2..2, -1.5..1.5, image.width, image.height)
pixels = for y <- 0..(image.height-1), x <- 0..(image.widt... | 22.292308 | 81 | 0.57764 |
93e8b3cbdaae59d5ce1284f3ce1ca956c8e0aa82 | 9,828 | exs | Elixir | test/ex_saga/stage_test.exs | naramore/ex_saga | 66c6b64867f28a1bbfb8ec2b6a786469b5f84e47 | [
"MIT"
] | null | null | null | test/ex_saga/stage_test.exs | naramore/ex_saga | 66c6b64867f28a1bbfb8ec2b6a786469b5f84e47 | [
"MIT"
] | 17 | 2019-02-06T03:51:03.000Z | 2019-10-22T10:15:48.000Z | test/ex_saga/stage_test.exs | naramore/ex_saga | 66c6b64867f28a1bbfb8ec2b6a786469b5f84e47 | [
"MIT"
] | null | null | null | defmodule ExSaga.StageTest do
@moduledoc false
use ExUnit.Case, async: true
use ExUnitProperties
import ExUnit.CaptureLog
doctest ExSaga.Stage
alias ExSaga.Generators, as: Gen
alias ExSaga.{Event, Stage, Step, Stepable, TestStage}
describe "ExSaga.Stage.Stepable.step_from/3" do
property "should re... | 44.27027 | 121 | 0.517399 |
93e8efee99bfd77a71dcd3186bf0439e4dc9b455 | 959 | ex | Elixir | lib/iot/event.ex | enterprizing/iot | 1c8d71b2f779fabdad2a33b3ce3133ec2799eb9c | [
"0BSD"
] | 2 | 2019-07-27T13:29:35.000Z | 2019-07-28T08:56:46.000Z | lib/iot/event.ex | erpuno/iot | 1c8d71b2f779fabdad2a33b3ce3133ec2799eb9c | [
"0BSD"
] | 1 | 2019-07-29T22:37:22.000Z | 2019-07-29T22:37:22.000Z | lib/iot/event.ex | enterprizing/iot | 1c8d71b2f779fabdad2a33b3ce3133ec2799eb9c | [
"0BSD"
] | null | null | null | defmodule IOT.Rows.Event do
use N2O, with: [:n2o, :nitro]
use FORM, with: [:form]
require IOT
require Logger
require Record
def doc(),
do:
"Event from particular device."
def id(), do: IOT."Event"()
def new(name, IOT."Event"(id: id, code: code, type: type, kind: kind, date: date, time: time... | 20.404255 | 99 | 0.482795 |
93e8f58df8fe7537cd8a9e918e10c2f8825def45 | 340 | exs | Elixir | config/dev.exs | Zhenya2000perm/neko-achievements | a3851c4d41c0410f7821893b5d39e107b982560d | [
"MIT"
] | null | null | null | config/dev.exs | Zhenya2000perm/neko-achievements | a3851c4d41c0410f7821893b5d39e107b982560d | [
"MIT"
] | null | null | null | config/dev.exs | Zhenya2000perm/neko-achievements | a3851c4d41c0410f7821893b5d39e107b982560d | [
"MIT"
] | null | null | null | use Mix.Config
config :neko, :cowboy, listen_address: {127, 0, 0, 1}
config :neko, :cowboy, listen_port: 4004
if System.get_env("SHIKIMORI_LOCAL") == "true" do
config :neko, :shikimori, url: "https://shikimori.local/api/"
else
config :neko, :shikimori, url: "https://shikimori.one/api/"
end
config :appsignal, :co... | 26.153846 | 63 | 0.705882 |
93e90bcc74fa721f604185a554c4f098145214eb | 2,303 | ex | Elixir | lib/auto_api/states/wi_fi_state.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/states/wi_fi_state.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/states/wi_fi_state.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # 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... | 35.984375 | 87 | 0.715154 |
93e91edafbad5ee8a0b18471dc22de36e443369f | 5,494 | ex | Elixir | lib/he_broker/broker.ex | HackerExperience/HEBroker | 2a653a43b512c6392f55508dfc1be8463a845b31 | [
"BSD-3-Clause"
] | 5 | 2017-02-15T18:25:35.000Z | 2018-03-29T16:36:31.000Z | lib/he_broker/broker.ex | HackerExperience/HeBroker | 2a653a43b512c6392f55508dfc1be8463a845b31 | [
"BSD-3-Clause"
] | null | null | null | lib/he_broker/broker.ex | HackerExperience/HeBroker | 2a653a43b512c6392f55508dfc1be8463a845b31 | [
"BSD-3-Clause"
] | null | null | null | defmodule HeBroker.Broker do
@moduledoc false
use GenServer
alias HeBroker.RouteMap
@type topic :: String.t
@type consumer_callbacks :: [cast: RouteMap.cast_fun, call: RouteMap.call_fun]
@typep t :: %__MODULE__{}
defstruct [:routes, :consumers]
@spec start_link() :: GenServer.on_start
def start_... | 29.697297 | 108 | 0.631052 |
93e92a3d96fa1564c55f42585641e3ec42e98bda | 2,263 | exs | Elixir | apps/ewallet_config/mix.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_config/mix.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_config/mix.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | defmodule EWalletConfig.MixProject do
use Mix.Project
def project do
[
app: :ewallet_config,
version: "2.0.0-dev",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.8",
elixirc_p... | 26.623529 | 67 | 0.548387 |
93e9383a52d1b743ffa3108dc80c67d5a0fec815 | 427 | ex | Elixir | lib/text_based_fps/player_commands/leave_room.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/leave_room.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/leave_room.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | null | null | null | defmodule TextBasedFPS.PlayerCommand.LeaveRoom do
import TextBasedFPS.CommandHelper
alias TextBasedFPS.{PlayerCommand, ServerState}
@behaviour PlayerCommand
@impl true
def execute(state, player, _) do
with {:ok, _room} <- require_room(state, player) do
updated_state = ServerState.remove_player_fr... | 26.6875 | 84 | 0.744731 |
93e953291bae6b4cf4c43459d434dd66e82b41bf | 1,133 | exs | Elixir | heis_driver/config/config.exs | jornbh/Studass_sanntid | 8b55d01803d00b3b918abb6cf21ba02f0425c23e | [
"MIT"
] | null | null | null | heis_driver/config/config.exs | jornbh/Studass_sanntid | 8b55d01803d00b3b918abb6cf21ba02f0425c23e | [
"MIT"
] | null | null | null | heis_driver/config/config.exs | jornbh/Studass_sanntid | 8b55d01803d00b3b918abb6cf21ba02f0425c23e | [
"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.548387 | 73 | 0.751986 |
93e96518855ec974b7577a6431fc050f48832d39 | 378 | ex | Elixir | lib/blog_web/controllers/plug/set_user.ex | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | lib/blog_web/controllers/plug/set_user.ex | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | 9 | 2021-08-13T02:21:40.000Z | 2021-08-24T05:02:19.000Z | lib/blog_web/controllers/plug/set_user.ex | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | defmodule BlogWeb.Plug.SetUser do
@moduledoc """
Plug set user
"""
import Plug.Conn
alias Blog.Accounts
def init(_opts) do
end
def call(conn, _params) do
user_id = get_session(conn, :user_id)
user = user_id && Accounts.get_user!(user_id)
if user != nil do
assign(conn, :user, user)
... | 16.434783 | 49 | 0.632275 |
93e9728677d552327f2d06a77af8d3d0ba0e90f0 | 247 | ex | Elixir | lib/kanban_liveview_web/controllers/board_controller.ex | ivangsm/kanban_live | 1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9 | [
"MIT"
] | null | null | null | lib/kanban_liveview_web/controllers/board_controller.ex | ivangsm/kanban_live | 1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9 | [
"MIT"
] | null | null | null | lib/kanban_liveview_web/controllers/board_controller.ex | ivangsm/kanban_live | 1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9 | [
"MIT"
] | null | null | null | defmodule KanbanLiveviewWeb.BoardController do
use KanbanLiveviewWeb, :controller
import Phoenix.LiveView.Controller
def show(conn, %{"id" => id}) do
live_render(conn, KanbanLiveviewWeb.PageLive, session: %{"board_id" => id})
end
end
| 27.444444 | 79 | 0.744939 |
93e974313b04350ba882220f1aecdb03fe5fca0f | 674 | ex | Elixir | lib/erlef_web/controllers/stipend_controller.ex | pedrosnk/erlef-website | bb8da73d09930056c9d31bcc75a92b8fb3caf6da | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/stipend_controller.ex | pedrosnk/erlef-website | bb8da73d09930056c9d31bcc75a92b8fb3caf6da | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/stipend_controller.ex | pedrosnk/erlef-website | bb8da73d09930056c9d31bcc75a92b8fb3caf6da | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.StipendController do
use ErlefWeb, :controller
action_fallback ErlefWeb.FallbackController
def index(conn, _params) do
render(conn, errors: [], params: %{})
end
def create(%{private: %{phoenix_format: "html"}} = conn, params) do
files = params["files"] || []
case Erlef.Stipen... | 29.304348 | 75 | 0.658754 |
93e97bdff7152b3bb113c6f48086859d95208a98 | 175 | exs | Elixir | config/config.exs | ConnorRigby/esqlite | df7e04bb7f21aae83ac4b5d6ed60d8a960277694 | [
"Apache-2.0"
] | 1 | 2018-04-09T03:11:46.000Z | 2018-04-09T03:11:46.000Z | config/config.exs | Sqlite-Ecto/esqlite | df7e04bb7f21aae83ac4b5d6ed60d8a960277694 | [
"Apache-2.0"
] | 1 | 2018-08-01T18:57:57.000Z | 2018-08-01T18:57:57.000Z | config/config.exs | Sqlite-Ecto/esqlite | df7e04bb7f21aae83ac4b5d6ed60d8a960277694 | [
"Apache-2.0"
] | 1 | 2018-04-18T18:52:40.000Z | 2018-04-18T18:52:40.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :sqlite, default_timeout: 5000
| 35 | 61 | 0.805714 |
93e98a9e93baaae4399e596779742c258faa2bf1 | 1,846 | exs | Elixir | mix.exs | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | 3 | 2019-05-28T11:53:04.000Z | 2021-06-01T12:36:56.000Z | mix.exs | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | null | null | null | mix.exs | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | null | null | null | defmodule ConMon.MixProject do
use Mix.Project
@app :con_mon
@all_targets [:rpi3]
def project do
[
app: @app,
version: "0.1.0",
elixir: "~> 1.8",
archives: [nerves_bootstrap: "~> 1.8"],
start_permanent: Mix.env() == :prod,
build_embedded: true,
aliases: [loadconfi... | 26.371429 | 79 | 0.583424 |
93e9971ce4b5a2be24932875839ec80f7b7103aa | 1,829 | exs | Elixir | mix.exs | vsyrovat/awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 2 | 2019-12-17T11:40:54.000Z | 2019-12-22T17:15:29.000Z | mix.exs | vsyrovat/funbox_awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 5 | 2020-10-08T20:36:07.000Z | 2020-10-08T21:27:28.000Z | mix.exs | vsyrovat/awesome-elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | null | null | null | defmodule App.MixProject do
use Mix.Project
def project do
[
app: :app,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps:... | 26.897059 | 79 | 0.562603 |
93e9ae781d25ec823812806863e47e1db6e10738 | 8,045 | ex | Elixir | lib/hsluv.ex | kuon/ex-hsluv | 14bfe56c7890e0477c3b40329e1905671ec97f4f | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/hsluv.ex | kuon/ex-hsluv | 14bfe56c7890e0477c3b40329e1905671ec97f4f | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/hsluv.ex | kuon/ex-hsluv | 14bfe56c7890e0477c3b40329e1905671ec97f4f | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule HSLuv do
@moduledoc """
Convert colors between HSLuv and RGB color spaces
"""
import :math
@min_f 0.00000001
@max_f 99.9999999
@m {
{3.240969941904521, -1.537383177570093, -0.498610760293},
{-0.96924363628087, 1.87596750150772, 0.041555057407175},
{0.055630079696993, -0.2039769588... | 20.315657 | 78 | 0.522561 |
93e9c9943b0585ad20f22d51b6d2d8a438c609c5 | 5,063 | ex | Elixir | lib/format/duration/formatters/default.ex | tarzan/timex | 6f7014659e62b07cff98152543c4456984a8173e | [
"MIT"
] | null | null | null | lib/format/duration/formatters/default.ex | tarzan/timex | 6f7014659e62b07cff98152543c4456984a8173e | [
"MIT"
] | null | null | null | lib/format/duration/formatters/default.ex | tarzan/timex | 6f7014659e62b07cff98152543c4456984a8173e | [
"MIT"
] | null | null | null | defmodule Timex.Format.Duration.Formatters.Default do
@moduledoc """
Handles formatting Duration values as ISO 8601 durations as described below.
Durations are represented by the format P[n]Y[n]M[n]DT[n]H[n]M[n]S.
In this representation, the [n] is replaced by the value for each of the
date and time elements... | 35.405594 | 115 | 0.649812 |
93ea066f815b42c892612900e4ae5c9e2ff760f7 | 4,238 | ex | Elixir | lib/vintage_net/interfaces_monitor.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 85 | 2019-05-09T14:54:38.000Z | 2022-02-08T16:52:04.000Z | lib/vintage_net/interfaces_monitor.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 132 | 2019-05-09T15:57:59.000Z | 2022-02-28T16:31:22.000Z | lib/vintage_net/interfaces_monitor.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 14 | 2019-07-08T19:18:23.000Z | 2022-02-08T16:52:05.000Z | defmodule VintageNet.InterfacesMonitor do
@moduledoc """
Monitor available interfaces
Currently this works by polling the system for what interfaces are visible.
They may or may not be configured.
"""
use GenServer
# require Logger
alias VintageNet.InterfacesMonitor.{HWPath, Info}
defmodule State... | 26.4875 | 93 | 0.659981 |
93ea2bf5118e78848d9eb672addf24b2484ceccc | 775 | exs | Elixir | programming_elixir/test/list_and_recursion_5_test.exs | rsebescen/ProgrammingElixir | c2ec7bca4c2e326d99723bba6ae254d598c2c5ab | [
"MIT"
] | null | null | null | programming_elixir/test/list_and_recursion_5_test.exs | rsebescen/ProgrammingElixir | c2ec7bca4c2e326d99723bba6ae254d598c2c5ab | [
"MIT"
] | null | null | null | programming_elixir/test/list_and_recursion_5_test.exs | rsebescen/ProgrammingElixir | c2ec7bca4c2e326d99723bba6ae254d598c2c5ab | [
"MIT"
] | null | null | null | defmodule ListsAndRecursion5Test do
use ExUnit.Case
doctest ProgrammingElixir
# Exercise: ListsAndRecursion-5
test "all?" do
assert MyEnum.all?([1,2,3,4,5], &(&1<6)) == true
assert MyEnum.all?([1,2,3,4,5], &(&1<5)) == false
end
test "each" do
assert MyEnum.each([1,2,3], &(&1+1)) == [2,3,4]
... | 25 | 61 | 0.544516 |
93ea2e451b3fb448f76960fc0e716c23d1bf0619 | 1,781 | ex | Elixir | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/remove_targeted_sites_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/remove_targeted_sites_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/remove_targeted_sites_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.893617 | 236 | 0.763616 |
93ea3506774544fe450b0e2e0073410b54863f3f | 1,787 | exs | Elixir | deps/timex/mix.exs | luishendrix92/exrez | c9a001ff32c2081449ce190d151e7df09a0a42ee | [
"MIT"
] | null | null | null | deps/timex/mix.exs | luishendrix92/exrez | c9a001ff32c2081449ce190d151e7df09a0a42ee | [
"MIT"
] | null | null | null | deps/timex/mix.exs | luishendrix92/exrez | c9a001ff32c2081449ce190d151e7df09a0a42ee | [
"MIT"
] | null | null | null | defmodule Timex.Mixfile do
use Mix.Project
@version "3.3.0"
def project do
[ app: :timex,
version: @version,
elixir: "~> 1.4",
description: description(),
package: package(),
deps: deps(),
docs: docs(),
compilers: [:gettext] ++ Mix.compilers,
test_coverage: [t... | 25.898551 | 125 | 0.56911 |
93ea717a92e2fb38b117c01a55706fba251e7bc2 | 6,698 | ex | Elixir | apps/omg_eth/test/support/dev_helper.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg_eth/test/support/dev_helper.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg_eth/test/support/dev_helper.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 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 ... | 38.716763 | 115 | 0.717528 |
93ea84132a8fa42866763d631df5a56416914979 | 2,646 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/weighted_font_family.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/weighted_font_family.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/weighted_font_family.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... | 52.92 | 1,002 | 0.733182 |
93ea8d73e702b05dffa0b14d3e4bafdbbdd50827 | 1,044 | ex | Elixir | test/support/conn_case.ex | sjahandideh/words | 542ce945a8f1bed8546ecf5df5b4770a6c76329e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | sjahandideh/words | 542ce945a8f1bed8546ecf5df5b4770a6c76329e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | sjahandideh/words | 542ce945a8f1bed8546ecf5df5b4770a6c76329e | [
"MIT"
] | null | null | null | defmodule Words.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
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the data... | 24.27907 | 64 | 0.700192 |
93eafe7744205b1429ad7ec857af6b7563896597 | 495 | ex | Elixir | apps/discovery_api/lib/discovery_api_web/controllers/data_json_controller.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 1 | 2020-03-18T21:14:39.000Z | 2020-03-18T21:14:39.000Z | apps/discovery_api/lib/discovery_api_web/controllers/data_json_controller.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | apps/discovery_api/lib/discovery_api_web/controllers/data_json_controller.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApiWeb.DataJsonController do
use DiscoveryApiWeb, :controller
alias DiscoveryApi.Services.DataJsonService
def show(conn, _params) do
case DataJsonService.ensure_data_json_file() do
{:local, file_path} ->
conn
|> put_resp_header("content-type", "application/json")
... | 26.052632 | 62 | 0.654545 |
93eb0aed6ffcc530f93615ee150c3d2affd701c0 | 7,637 | ex | Elixir | lib/game/environment.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/environment.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/environment.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Game.Environment do
@moduledoc """
Look at your surroundings, whether a room or an overworld
"""
alias Game.Character
alias Game.Room
alias Game.Overworld
alias Game.Overworld.Sector
@type state :: Data.Room.t()
defmacro __using__(_opts) do
quote do
@environment Application.get_... | 28.285185 | 100 | 0.671599 |
93eb2caeb62c0dc6ac86b076f03153bfe7f23e0a | 547 | exs | Elixir | elixir/pangram/pangram.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/pangram/pangram.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/pangram/pangram.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | defmodule Pangram do
@doc """
Determines if a word or sentence is a pangram.
A pangram is a sentence using every letter of the alphabet at least once.
Returns a boolean.
## Examples
iex> Pangram.pangram?("the quick brown fox jumps over the lazy dog")
true
"""
@chars Enum.to_list(?A..?Z)... | 19.535714 | 75 | 0.654479 |
93ebaaf15018739d4aaaad81b72e8fdc68c061d4 | 66 | exs | Elixir | episode10/crypto/config/dev.exs | paulfioravanti/learn_elixir | 8424b1a7a89cb9fd1dacb85bcca487601958b8fa | [
"MIT"
] | null | null | null | episode10/crypto/config/dev.exs | paulfioravanti/learn_elixir | 8424b1a7a89cb9fd1dacb85bcca487601958b8fa | [
"MIT"
] | null | null | null | episode10/crypto/config/dev.exs | paulfioravanti/learn_elixir | 8424b1a7a89cb9fd1dacb85bcca487601958b8fa | [
"MIT"
] | null | null | null | use Mix.Config
config :crypto, Crypto.Encryptor, prefix: "Dev: "
| 16.5 | 49 | 0.727273 |
93ebbd5635cea5980f85026aba9061d22ba29d10 | 1,511 | ex | Elixir | lib/ninescraft_web/controllers/world_controller.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | lib/ninescraft_web/controllers/world_controller.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | lib/ninescraft_web/controllers/world_controller.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | defmodule NinescraftWeb.WorldController do
use NinescraftWeb, :controller
alias Ninescraft.Accounts
alias Ninescraft.Accounts.World
action_fallback NinescraftWeb.FallbackController
def index(conn, _params, user) do
worlds = Accounts.list_worlds(user)
render(conn, "index.json", worlds: worlds, user:... | 28.509434 | 81 | 0.65321 |
93ebde157814a2e4f119f03db1ac7f47c7bcb308 | 11,728 | exs | Elixir | lib/ex_unit/test/ex_unit/capture_io_test.exs | aJunKobayashi/elixir | 14fde590a8222b845c975b594935b633eb26a115 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/capture_io_test.exs | aJunKobayashi/elixir | 14fde590a8222b845c975b594935b633eb26a115 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/capture_io_test.exs | aJunKobayashi/elixir | 14fde590a8222b845c975b594935b633eb26a115 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule ExUnit.CaptureIOTest do
use ExUnit.Case
defmodule GetUntil do
def until_new_line(_, :eof, _) do
{:done, :eof, []}
end
def until_new_line(this_far, chars, stop_char) do
case Enum.split_while(chars, fn c -> c != stop_char end) do
... | 25.167382 | 164 | 0.528479 |
93ec0896cbd8b38522540d0b00802f240fa69575 | 1,982 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/managed_zone_forwarding_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/managed_zone_forwarding_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/managed_zone_forwarding_config.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.036364 | 262 | 0.745207 |
93ec19d58df3c284a48086cc6790a02aec3c1b2d | 27,217 | ex | Elixir | lib/mix/lib/mix/tasks/test.ex | moogle19/elixir | 91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/test.ex | moogle19/elixir | 91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/test.ex | moogle19/elixir | 91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Test do
use Mix.Task
alias Mix.Compilers.Test, as: CT
@compile {:no_warn_undefined, [ExUnit, ExUnit.Filters]}
@shortdoc "Runs a project's tests"
@recursive true
@preferred_cli_env :test
@moduledoc ~S"""
Runs the tests for a project.
This task starts the current application, loa... | 33.518473 | 113 | 0.678951 |
93ec26972df0ec6b0e3e716b24f6e16bc7ac480a | 14,034 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_networking/lib/google_api/service_networking/v1/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_networking/lib/google_api/service_networking/v1/api/operations.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... | 50.482014 | 607 | 0.641015 |
93ec78fa6905e4cd3b5d6a0a9251cb9db56a6769 | 3,953 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/user.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/user.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/user.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 59.893939 | 620 | 0.743992 |
93ec7d05b4ef8b73fc195ff4a47f9fe6b6776847 | 1,683 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/model/state_and_notification_payload.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/state_and_notification_payload.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/home_graph/lib/google_api/home_graph/v1/model/state_and_notification_payload.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... | 35.808511 | 169 | 0.767083 |
93ec838d3aff9acca60ecad88983b7c300a8eb61 | 2,237 | ex | Elixir | lib/central/logging/lib/startup.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/central/logging/lib/startup.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central/logging/lib/startup.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.Logging.Startup do
@moduledoc false
use CentralWeb, :startup
def startup do
add_permission_set("logging", "page_view", ~w(show delete report))
add_permission_set("logging", "aggregate", ~w(show delete report))
add_permission_set("logging", "audit", ~w(show delete report))
add_pe... | 30.22973 | 84 | 0.569066 |
93ecba0ccbefeff350a97399d82d0f5c84be066a | 2,288 | exs | Elixir | apps/omg_watcher/test/db/txoutput_test.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/db/txoutput_test.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/db/txoutput_test.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.342466 | 101 | 0.698427 |
93ecc73ae0320719424a1d10371167fe156d8935 | 17,966 | ex | Elixir | lib/prom_ex/plugins/phoenix.ex | cschmatzler/prom_ex | ca899bdc92d7372609b46685127faba7f02d8102 | [
"MIT"
] | 354 | 2020-10-21T06:27:15.000Z | 2022-03-29T13:22:46.000Z | lib/prom_ex/plugins/phoenix.ex | cschmatzler/prom_ex | ca899bdc92d7372609b46685127faba7f02d8102 | [
"MIT"
] | 111 | 2020-11-25T21:27:13.000Z | 2022-03-28T10:42:59.000Z | lib/prom_ex/plugins/phoenix.ex | cschmatzler/prom_ex | ca899bdc92d7372609b46685127faba7f02d8102 | [
"MIT"
] | 45 | 2020-12-31T20:37:11.000Z | 2022-03-18T13:12:21.000Z | if Code.ensure_loaded?(Phoenix) do
defmodule PromEx.Plugins.Phoenix do
@moduledoc """
This plugin captures metrics emitted by Phoenix. Specifically, it captures HTTP request metrics and
Phoenix channel metrics.
## Plugin options
This plugin supports the following options:
- `metric_prefix`: ... | 32.139535 | 126 | 0.593009 |
93ed02800f2c366cf9d10883bf3de68d24c21cfc | 534 | exs | Elixir | test/fake_server/server/access_test.exs | TakteS/fake_server | c982457977acb1aee491a5d5102e68eed84873f2 | [
"Apache-2.0"
] | 72 | 2016-09-20T21:45:33.000Z | 2021-06-10T17:35:35.000Z | test/fake_server/server/access_test.exs | TakteS/fake_server | c982457977acb1aee491a5d5102e68eed84873f2 | [
"Apache-2.0"
] | 44 | 2016-09-20T18:31:36.000Z | 2020-05-31T17:31:00.000Z | test/fake_server/server/access_test.exs | TakteS/fake_server | c982457977acb1aee491a5d5102e68eed84873f2 | [
"Apache-2.0"
] | 21 | 2016-09-22T08:27:07.000Z | 2021-11-09T21:29:39.000Z | defmodule FakeServer.Server.AccessTest do
use ExUnit.Case
alias FakeServer.Server.Access
test "compute access for a route" do
{:ok, server} = Access.start_link()
assert Access.compute_access(server, %FakeServer.Request{
path: "/test",
method: "PUT",
headers: %{},
... | 24.272727 | 86 | 0.565543 |
93ed1970b5aa7d7ad3fba29daed2f85a4aaa8ead | 3,080 | ex | Elixir | lib/ibmcloud/crn.ex | Bhaskers-Blu-Org1/elixir-ibmcloud | 28639020a3e5c222356329917b3fb37c5da3eb42 | [
"Apache-2.0"
] | 1 | 2020-01-13T19:30:37.000Z | 2020-01-13T19:30:37.000Z | lib/ibmcloud/crn.ex | IBM/elixir-ibmcloud | b57888b18006ffaadb6fbc2adf9685e30c86c082 | [
"Apache-2.0"
] | null | null | null | lib/ibmcloud/crn.ex | IBM/elixir-ibmcloud | b57888b18006ffaadb6fbc2adf9685e30c86c082 | [
"Apache-2.0"
] | 1 | 2020-06-29T15:04:34.000Z | 2020-06-29T15:04:34.000Z | defmodule IBMCloud.CRN do
@moduledoc """
Cloud Resource Name.
- [Cloud Resource Names](https://cloud.ibm.com/docs/overview/crn.html)
"""
@type scope() :: {:account | :organization | :space, binary()} | nil
@type t :: %__MODULE__{
version: binary(),
cname: binary(),
ctype: bin... | 29.615385 | 76 | 0.57987 |
93ed1a10f6304b9abbaf13624a7a0505d6d5f442 | 376 | exs | Elixir | examples/profiling/mix.exs | SergeTupchiy/nonuniform_rand | c6ddd4be2b6c06707ca54f4a98cdbe401e4968b2 | [
"MIT"
] | null | null | null | examples/profiling/mix.exs | SergeTupchiy/nonuniform_rand | c6ddd4be2b6c06707ca54f4a98cdbe401e4968b2 | [
"MIT"
] | null | null | null | examples/profiling/mix.exs | SergeTupchiy/nonuniform_rand | c6ddd4be2b6c06707ca54f4a98cdbe401e4968b2 | [
"MIT"
] | null | null | null | defmodule Profiling.MixProject do
use Mix.Project
def project do
[
app: :profiling,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
... | 14.461538 | 42 | 0.529255 |
93ed4887c8ddf58de1ab5457a29d6610d917f382 | 642 | ex | Elixir | web/router.ex | chrhsmt/hello_phoenix | 18c719cab56827847ddcf676df5141d1cf5e420b | [
"MIT"
] | null | null | null | web/router.ex | chrhsmt/hello_phoenix | 18c719cab56827847ddcf676df5141d1cf5e420b | [
"MIT"
] | 1 | 2018-12-14T08:36:11.000Z | 2018-12-14T08:36:11.000Z | web/router.ex | chrhsmt/hello_phoenix | 18c719cab56827847ddcf676df5141d1cf5e420b | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.Router do
use HelloPhoenix.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", HelloPhoenix do
pipe_through :browser # Use the ... | 20.0625 | 57 | 0.676012 |
93ed6dab18adbfe7b5dbe4b097555db752faabe8 | 1,902 | ex | Elixir | lib/livebook/system_resources.ex | gpopides/livebook | ec6de91674b894c0585adc893133735a590ba8c8 | [
"Apache-2.0"
] | null | null | null | lib/livebook/system_resources.ex | gpopides/livebook | ec6de91674b894c0585adc893133735a590ba8c8 | [
"Apache-2.0"
] | null | null | null | lib/livebook/system_resources.ex | gpopides/livebook | ec6de91674b894c0585adc893133735a590ba8c8 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.SystemResources do
@moduledoc false
# Periodically computes system resource usage.
@type memory :: %{total: non_neg_integer(), free: non_neg_integer()}
use GenServer
@name __MODULE__
@doc """
Returns system memory.
"""
@spec memory() :: memory()
def memory do
:ets.lookup_e... | 21.613636 | 97 | 0.662986 |
93ed81732e5b6a1e09a907ac74d58fb1865f02cf | 1,475 | exs | Elixir | test/support/test_tcp_tunnel.exs | lucaong/tortoise | fd2f83527937ba39b47f58eb8d392a1aa927e28f | [
"Apache-2.0"
] | 272 | 2018-04-22T22:47:35.000Z | 2022-03-01T05:22:02.000Z | test/support/test_tcp_tunnel.exs | lucaong/tortoise | fd2f83527937ba39b47f58eb8d392a1aa927e28f | [
"Apache-2.0"
] | 120 | 2018-04-22T20:42:04.000Z | 2022-01-20T23:12:13.000Z | test/support/test_tcp_tunnel.exs | lucaong/tortoise | fd2f83527937ba39b47f58eb8d392a1aa927e28f | [
"Apache-2.0"
] | 58 | 2018-04-24T06:28:36.000Z | 2022-02-09T06:55:42.000Z | defmodule Tortoise.Integration.TestTCPTunnel do
@moduledoc """
Create a TCP-tunnel making it possible to use :gen_tcp.send/2-3 to
send to the client_socket and assert on the received data on the
server_socket.
This work for our Transmitter-module which is handled a TCP-socket
from the Receiver.
"""
use... | 30.102041 | 79 | 0.669153 |
93ed95cea1d44da210566289770df2ec96b689d5 | 109 | ex | Elixir | web/views/admin/page_view.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | web/views/admin/page_view.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | web/views/admin/page_view.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Changelog.Admin.PageView do
use Changelog.Web, :view
alias Changelog.Admin.NewsletterView
end
| 18.166667 | 38 | 0.807339 |
93edc1e20cf8036abfd0edea71db9f4bda56c97e | 3,203 | exs | Elixir | exercises/concept/file-sniffer/test/file_sniffer_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/file-sniffer/test/file_sniffer_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/file-sniffer/test/file_sniffer_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule FileSnifferTest do
use ExUnit.Case
@bmp_file File.read!(Path.join("assets", "bmp.bmp"))
@gif_file File.read!(Path.join("assets", "gif.gif"))
@jpg_file File.read!(Path.join("assets", "jpeg.jpg"))
@png_file File.read!(Path.join("assets", "png-transparent.png"))
@exe_file File.read!(Path.join("asset... | 26.04065 | 86 | 0.614112 |
93ededdf358f60808ae2510d572ebd9a3f1c67dc | 1,559 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_remove_fulfillment_places_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_remove_fulfillment_places_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_remove_fulfillment_places_metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.170213 | 183 | 0.782553 |
93edf095a75c7301151283ff1a6f0bc07c170abf | 702 | ex | Elixir | lib/iona/document.ex | mad42/iona | 784cb4884f8dd158f618c15fa56d914f9be786c2 | [
"Apache-2.0"
] | 12 | 2019-11-26T14:52:53.000Z | 2022-03-15T07:54:26.000Z | lib/iona/document.ex | mad42/iona | 784cb4884f8dd158f618c15fa56d914f9be786c2 | [
"Apache-2.0"
] | 12 | 2019-11-25T17:24:35.000Z | 2021-07-19T17:50:52.000Z | lib/iona/document.ex | mad42/iona | 784cb4884f8dd158f618c15fa56d914f9be786c2 | [
"Apache-2.0"
] | 7 | 2019-11-25T17:25:39.000Z | 2021-05-22T05:07:24.000Z | defmodule Iona.Document do
@moduledoc false
defstruct [:format, :output_path]
@type t :: %__MODULE__{format: Iona.supported_format_t(), output_path: Path.t()}
@spec read(document :: t) :: {:ok, binary} | {:error, File.posix()}
def read(%{output_path: path}), do: File.read(path)
@spec read!(document :: t... | 35.1 | 85 | 0.653846 |
93ee150386a58e7c39ea480b5309d9b0a8f76832 | 4,369 | exs | Elixir | test/lib/kitten_blue/jwk/google_test.exs | enerick/elixir-kitten-blue | 4e7884d65c188dfc9afe0efa93fc21deb4237b26 | [
"MIT"
] | null | null | null | test/lib/kitten_blue/jwk/google_test.exs | enerick/elixir-kitten-blue | 4e7884d65c188dfc9afe0efa93fc21deb4237b26 | [
"MIT"
] | null | null | null | test/lib/kitten_blue/jwk/google_test.exs | enerick/elixir-kitten-blue | 4e7884d65c188dfc9afe0efa93fc21deb4237b26 | [
"MIT"
] | null | null | null | defmodule KittenBlue.JWK.GoogleTest do
use ExUnit.Case
doctest KittenBlue.JWK.Google
import Mock
@google_jwks_body """
{
\"keys\": [
{
\"kty\": \"RSA\",
\"alg\": \"RS256\",
\"use\": \"sig\",
\"kid\": \"4ef5118b0800bd60a4194186dcb538fc66e5eb34\",
\"n\": \"4ZSPB8TO7y3xZF_GxB_JS... | 58.253333 | 848 | 0.700847 |
93ee21dbf8c744fba86ab611acadd6bc7ff804bb | 1,359 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.357143 | 100 | 0.779249 |
93ee24a1b909cda5fd035422d9e5e35e243d06eb | 1,960 | ex | Elixir | deps/plug_wait1/lib/plug/adapters/wait1/handler.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/plug_wait1/lib/plug/adapters/wait1/handler.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/plug_wait1/lib/plug/adapters/wait1/handler.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | defmodule Plug.Adapters.Wait1.Handler do
@moduledoc false
alias :cowboy_req, as: Request
alias Plug.Adapters.Wait1.Protocol
def init({transport, :http}, req, {plug, opts, onconnection}) when transport in [:tcp, :ssl] do
case Request.header("upgrade", req) do
{upgrade, _} when upgrade in ["Websocket"... | 39.2 | 97 | 0.632143 |
93ee95b8183a37a33f39b383756a035c214e0f41 | 1,546 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/branch_impl.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/branch_impl.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/branch_impl.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.BranchImpl do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class",
:"displayName",
:"estimat... | 28.109091 | 96 | 0.666235 |
93ee9b1b8b1dfaa8b2f644750e4f9c60f80df423 | 195 | exs | Elixir | emporium/test/controllers/page_controller_test.exs | sbezugliy/couchdb_elixir | 2fdcb1617918324315a2217b2d1567e9a2c68558 | [
"Apache-2.0"
] | null | null | null | emporium/test/controllers/page_controller_test.exs | sbezugliy/couchdb_elixir | 2fdcb1617918324315a2217b2d1567e9a2c68558 | [
"Apache-2.0"
] | null | null | null | emporium/test/controllers/page_controller_test.exs | sbezugliy/couchdb_elixir | 2fdcb1617918324315a2217b2d1567e9a2c68558 | [
"Apache-2.0"
] | null | null | null | defmodule Emporium.PageControllerTest do
use Emporium.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.666667 | 60 | 0.676923 |
93eecae4ef424ee097728827d0d59bd3de692718 | 1,606 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/git_source_context.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/git_source_context.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/git_source_context.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... | 30.884615 | 81 | 0.720423 |
93eee1a8516030e979216d3b0ee14804820f0395 | 2,029 | ex | Elixir | apps/gitgud_web/lib/gitgud_web/views/helpers/navigation_helpers.ex | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web/views/helpers/navigation_helpers.ex | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web/views/helpers/navigation_helpers.ex | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | defmodule GitGud.Web.NavigationHelpers do
@moduledoc """
Conveniences for routing and navigation.
"""
import Phoenix.HTML.Tag
import Phoenix.Controller, only: [controller_module: 1, action_name: 1]
import GitGud.Web.Router, only: [__routes__: 0]
@doc """
Returns `true` if `conn` matches the given rou... | 34.982759 | 102 | 0.682602 |
93eef701d66b8e527ed607552fe447c72b05d419 | 323 | ex | Elixir | lib/jumubase_web/views/generators/pdf_generator/engine.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase_web/views/generators/pdf_generator/engine.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase_web/views/generators/pdf_generator/engine.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.PDFGenerator.Engine do
@type performance :: Jumubase.Showtime.Performance.t()
@type contest :: Jumubase.Foundation.Contest.t()
@callback jury_sheets([performance], integer) :: binary
@callback jury_table([performance]) :: binary
@callback certificates([performance], contest) :: binary
e... | 35.888889 | 58 | 0.758514 |
93ef107198c5750b2cb1d60af76b67e092690635 | 274 | exs | Elixir | test/tic_tac_toe_web/views/layout_view_test.exs | bryanchun/tic_tac_toe | cad397ce72857669a685337911c7ae692cbd1695 | [
"MIT"
] | null | null | null | test/tic_tac_toe_web/views/layout_view_test.exs | bryanchun/tic_tac_toe | cad397ce72857669a685337911c7ae692cbd1695 | [
"MIT"
] | 1 | 2021-05-22T02:09:13.000Z | 2021-05-22T02:09:13.000Z | test/tic_tac_toe_web/views/layout_view_test.exs | devrafaelantunes/tic_tac_toe_liveview | 9055aff27b45e5d34898bb57018c5a90ea6a8c9e | [
"MIT"
] | null | null | null | defmodule TicTacToeWeb.LayoutViewTest do
use TicTacToeWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.444444 | 65 | 0.770073 |
93ef1c8f946a4e30c3ef18571a4af0368514445c | 1,437 | ex | Elixir | lib/cartel/pusher/gcm.ex | lucacorti/cartel | da86c1428b2c5ce1d8859c40e74e3499bf09dfb4 | [
"MIT"
] | 17 | 2016-03-09T19:44:55.000Z | 2022-01-31T20:23:28.000Z | lib/cartel/pusher/gcm.ex | lucacorti/cartel | da86c1428b2c5ce1d8859c40e74e3499bf09dfb4 | [
"MIT"
] | 18 | 2016-03-09T21:10:52.000Z | 2020-11-17T09:05:17.000Z | lib/cartel/pusher/gcm.ex | lucacorti/cartel | da86c1428b2c5ce1d8859c40e74e3499bf09dfb4 | [
"MIT"
] | 3 | 2016-03-11T22:08:11.000Z | 2016-05-19T05:32:17.000Z | defmodule Cartel.Pusher.Gcm do
@moduledoc """
Google GCM interface worker
"""
use GenServer
use Cartel.Pusher, message_module: Cartel.Message.Gcm
alias Cartel.HTTP
alias HTTP.{Request, Response}
@gcm_server_url "https://gcm-http.googleapis.com/gcm/send"
@doc """
Starts the pusher
"""
@spec s... | 26.127273 | 70 | 0.597773 |
93ef237ab4a31d8e5b333fb2184fa4c9cecbf95f | 244 | ex | Elixir | lib/hl7/2.5/datatypes/vid.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/vid.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/vid.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.DataTypes.Vid do
@moduledoc false
alias HL7.V2_5.{DataTypes}
use HL7.DataType,
fields: [
version_id: nil,
internationalization_code: DataTypes.Ce,
international_version_id: DataTypes.Ce
]
end
| 20.333333 | 46 | 0.704918 |
93ef2c2ad232639e459d0de0890be53ef33513f3 | 2,255 | ex | Elixir | lib/ex_venture/release_tasks.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/ex_venture/release_tasks.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/ex_venture/release_tasks.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | # Loosely from https://github.com/bitwalker/distillery/blob/master/docs/Running%20Migrations.md
defmodule ExVenture.ReleaseTasks do
@moduledoc false
@start_apps [
:crypto,
:ssl,
:postgrex,
:ecto,
:ecto_sql,
:bamboo,
:ranch,
:phoenix,
:gettext
]
@repos [
ExVenture.Repo
... | 20.5 | 95 | 0.661641 |
93ef3661d022dc84104f1350f72a17de1a07f326 | 198 | ex | Elixir | lib/phone/gy.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/gy.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/gy.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.GY do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(592)()(.{8})/
def country, do: "Guyana"
def a2, do: "GY"
def a3, do: "GUY"
matcher :regex, ["592"]
end
| 15.230769 | 35 | 0.59596 |
93ef3ecbfec490ce996c675eb24d01b11d169727 | 2,103 | ex | Elixir | lib/ex_twilio/config.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/config.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/config.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | defmodule ExTwilio.Config do
@moduledoc """
Stores configuration variables used to communicate with Twilio's API.
All settings also accept `{:system, "ENV_VAR_NAME"}` to read their
values from environment variables at runtime.
"""
@doc """
Returns the Twilio Account SID. Set it in `mix.exs`:
conf... | 31.863636 | 91 | 0.697575 |
93ef505c9b69022d8ae668dcba199d35a184568b | 364 | exs | Elixir | .credo.exs | facto/tgdb | 35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d | [
"MIT"
] | 2 | 2018-04-09T07:34:37.000Z | 2020-03-08T06:50:03.000Z | .credo.exs | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | .credo.exs | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ~w{config lib test}
},
strict: true,
color: true,
checks: [
{Credo.Check.Readability.MaxLineLength, max_length: 80},
{Credo.Check.Readability.ParenthesesOnZeroArityDefs, false},
{Credo.Check.R... | 20.222222 | 68 | 0.543956 |
93ef5e3a5c6bc1563556d7b0d73d70cfcb319be1 | 1,804 | exs | Elixir | clients/slides/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/slides/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/slides/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"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... | 26.925373 | 97 | 0.65133 |
93ef7df14658e3f5f044706a290a913cf08ab819 | 942 | ex | Elixir | lib/ex_mustang/responders/urban_dictionary.ex | theodowling/ex_mustang | 0bf0d96c0e33e8291eb4d911bfdcdc57902fa78d | [
"Apache-2.0"
] | 69 | 2016-08-17T06:50:58.000Z | 2021-01-26T00:43:34.000Z | lib/ex_mustang/responders/urban_dictionary.ex | onixus74/ex_mustang | e7c8ae51027d717c20784abad76b846198a980b9 | [
"Apache-2.0"
] | 55 | 2016-08-16T01:05:39.000Z | 2020-10-08T15:53:35.000Z | lib/ex_mustang/responders/urban_dictionary.ex | onixus74/ex_mustang | e7c8ae51027d717c20784abad76b846198a980b9 | [
"Apache-2.0"
] | 10 | 2017-01-20T19:45:43.000Z | 2020-09-30T20:32:23.000Z | defmodule ExMustang.Responders.UrbanDictionary do
@moduledoc """
Grabs word of the day from urban dictionary
"""
use Hedwig.Responder
import ExMustang.Utils, only: [useragent: 0]
@feed_url "http://feeds.urbandictionary.com/UrbanWordOfTheDay"
@usage """
urbandictionary | udict - Gets word of the day fr... | 24.789474 | 72 | 0.629512 |
93ef97fb9616aaed57134471bde81a793eb4ca9a | 65 | ex | Elixir | lib/store_card_web/views/page_view.ex | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | lib/store_card_web/views/page_view.ex | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | lib/store_card_web/views/page_view.ex | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | defmodule StoreCardWeb.PageView do
use StoreCardWeb, :view
end
| 16.25 | 34 | 0.815385 |
93efd00aa2939e9e06fda16ded99042416dec058 | 406 | ex | Elixir | lib/lightbulb.ex | thomasvolk/lightbulb | f8d512c62073f814846762093076cf16a1e100be | [
"Apache-2.0"
] | null | null | null | lib/lightbulb.ex | thomasvolk/lightbulb | f8d512c62073f814846762093076cf16a1e100be | [
"Apache-2.0"
] | null | null | null | lib/lightbulb.ex | thomasvolk/lightbulb | f8d512c62073f814846762093076cf16a1e100be | [
"Apache-2.0"
] | null | null | null | defmodule Lightbulb do
use Application
def start(_type, []) do
Lightbulb.Supervisor.start_link()
end
def get_nodes() do
Lightbulb.Registry.get_nodes()
end
def subscribe() do
Lightbulb.Registry.subscribe()
end
def unsubscribe() do
Lightbulb.Registry.unsubscribe()
end
end
defmodule... | 16.24 | 57 | 0.714286 |
93f00466c9fa3df6ddf323e612dd148f33158f95 | 1,859 | ex | Elixir | lib/ratatouille/renderer/element/progress_bar.ex | CyberFlameGO/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 504 | 2019-01-13T21:53:21.000Z | 2022-03-31T20:58:21.000Z | lib/ratatouille/renderer/element/progress_bar.ex | iboard/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 28 | 2019-01-26T21:00:23.000Z | 2021-12-28T19:06:15.000Z | lib/ratatouille/renderer/element/progress_bar.ex | iboard/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 21 | 2019-02-21T09:08:27.000Z | 2021-12-20T15:51:10.000Z | defmodule Ratatouille.Renderer.Element.ProgressBar do
@moduledoc false
@behaviour Ratatouille.Renderer
alias ExTermbox.Position
alias Ratatouille.Renderer.{Box, Canvas, Element, Text}
@fill_char "█"
def render(%Canvas{render_box: box} = canvas, %Element{attributes: attrs}, _render_fn) do
width = Box... | 26.557143 | 91 | 0.602474 |
93f00ccea7a58cdfaf0786d4527b9201a3d39f8a | 95 | exs | Elixir | apps/tai/test/tai/venue_adapters/bitmex/transform_position_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/venue_adapters/bitmex/transform_position_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venue_adapters/bitmex/transform_position_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.VenueAdapters.Bitmex.TransformPositionTest do
use ExUnit.Case, async: true
end
| 23.75 | 59 | 0.831579 |
93f01317963d0a6b0062b527ba6f09c74d86de98 | 2,323 | exs | Elixir | triangle/test/triangle_test.exs | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | triangle/test/triangle_test.exs | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | triangle/test/triangle_test.exs | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | defmodule TriangleTest do
use ExUnit.Case
# @tag :pending
test "equilateral triangles have equal sides" do
assert Triangle.kind(2, 2, 2) == {:ok, :equilateral}
end
# @tag :pending
test "larger equilateral triangles also have equal sides" do
assert Triangle.kind(10, 10, 10) == {:ok, :equilateral}
... | 29.405063 | 89 | 0.671976 |
93f014ca1f138cc4bf31fe2842491b3ef8b61413 | 1,630 | exs | Elixir | src/074/problem074.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | 9 | 2018-05-06T04:43:08.000Z | 2020-12-01T20:51:34.000Z | src/074/problem074.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | null | null | null | src/074/problem074.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | null | null | null | #!/usr/bin/env elixir
defmodule Problem074 do
@moduledoc """
The number 145 is well known for the property that the sum of the factorial of its digits is equal to 145:
1! + 4! + 5! = 1 + 24 + 120 = 145
Perhaps less well known is 169, in that it produces the longest chain of numbers that link back to 169; it... | 27.627119 | 118 | 0.641718 |
93f03b054b3a8fc0c7b0ef14d838b0f47ad3c429 | 591 | exs | Elixir | bench/shortuuid_bench.exs | gpedic/ecto_shortuuid | 8e6be9b3853b1bf27173a6359aecd23776f4b112 | [
"MIT"
] | 23 | 2019-02-22T09:22:45.000Z | 2022-03-18T15:27:43.000Z | bench/shortuuid_bench.exs | gpedic/ecto_shortuuid | 8e6be9b3853b1bf27173a6359aecd23776f4b112 | [
"MIT"
] | 1 | 2019-12-12T14:45:10.000Z | 2020-02-20T21:21:53.000Z | bench/shortuuid_bench.exs | gpedic/ecto_shortuuid | 8e6be9b3853b1bf27173a6359aecd23776f4b112 | [
"MIT"
] | 3 | 2019-11-28T18:31:07.000Z | 2021-02-21T17:09:06.000Z | defmodule EctoShortUUIDBench do
use Benchfella
bench "generate/0" do
Ecto.ShortUUID.generate()
nil
end
# bench "bingenerate/0" do
# Ecto.ShortUUID.bingenerate()
# nil
# end
bench "cast/1 UUID" do
Ecto.ShortUUID.cast("0160280f-1d70-1568-b097-7bdca2801de3")
end
bench "cast/1 ShortU... | 20.37931 | 99 | 0.666667 |
93f041e9042bf6bf18a51101d4372d2b64cea673 | 822 | exs | Elixir | test/yourbot_web/controllers/user_session_controller_test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | 3 | 2021-11-08T15:19:19.000Z | 2021-11-11T03:18:35.000Z | test/yourbot_web/controllers/user_session_controller_test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | test/yourbot_web/controllers/user_session_controller_test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | defmodule YourBotWeb.UserSessionControllerTest do
use YourBotWeb.ConnCase, async: true
import YourBot.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "DELETE /users/log_out" do
test "logs the user out", %{conn: conn, user: user} do
conn = conn |> log_in_user(user) |> delete(Rou... | 31.615385 | 89 | 0.681265 |
93f0b28e0a9879b1996a921a8ca1946fab6cb5cb | 778 | ex | Elixir | test/support/channel_case.ex | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | test/support/channel_case.ex | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | test/support/channel_case.ex | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | defmodule TribevibeWeb.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 interacts ... | 22.882353 | 58 | 0.727506 |
93f0d301e617fe8ac921c2328c5aca45d2396a11 | 394 | ex | Elixir | lib/media_sample/guardian_serializer.ex | kenta-aktsk/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 99 | 2016-04-19T11:11:57.000Z | 2021-12-12T14:38:02.000Z | lib/media_sample/guardian_serializer.ex | ogamw/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 48 | 2016-04-06T02:28:46.000Z | 2016-05-31T06:56:56.000Z | lib/media_sample/guardian_serializer.ex | ogamw/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 32 | 2016-04-19T11:12:00.000Z | 2021-03-25T18:19:52.000Z | defmodule MediaSample.GuardianSerializer do
@behaviour Guardian.Serializer
alias MediaSample.{Repo, User}
def for_token(user = %User{}), do: {:ok, "User:#{user.id}"}
def for_token(_), do: {:error, "Unknown resource type"}
def from_token("User:" <> id), do: {:ok, User |> User.valid |> Repo.get(String.to_int... | 32.833333 | 97 | 0.680203 |
93f0ff491d24f7a25b991f1f705342ca79f43510 | 2,043 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_image_oriented_bounding_box_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_image_oriented_bounding_box_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_image_oriented_bounding_box_operation_metadata.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... | 35.224138 | 174 | 0.780225 |
93f141416bd6aacafc9475f435dae960182abc4a | 1,023 | ex | Elixir | RAEM/raem/test/support/conn_case.ex | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | null | null | null | RAEM/raem/test/support/conn_case.ex | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | null | null | null | RAEM/raem/test/support/conn_case.ex | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | 2 | 2018-02-24T19:56:21.000Z | 2018-02-26T00:16:41.000Z | defmodule RaemWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the te... | 26.230769 | 66 | 0.715543 |
93f145417d9d40c29474b33d268890212a62d565 | 328 | exs | Elixir | test/controllers/page_controller_test.exs | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | defmodule CiVisuals.PageControllerTest do
use CiVisuals.ConnCase
test "Socket" do
color = Colors.HSL.white
rgb_color = Conversions.hsl_to_rgb color
s = Socket.TCP.connect! "localhost", 8888
Enum.each 1..60, fn x_ ->
Socket.Stream.send! s, <<rgb_color.r, rgb_color.g, rgb_color.b>>
end
... | 21.866667 | 70 | 0.685976 |
93f1458fd672fb09ab23cbdef9222d87e288fafb | 107 | ex | Elixir | lib/dark_dev.ex | dark-elixir/dark_dev | 496681639161cff1f6e17c87bf924ab38846ea05 | [
"Apache-2.0"
] | null | null | null | lib/dark_dev.ex | dark-elixir/dark_dev | 496681639161cff1f6e17c87bf924ab38846ea05 | [
"Apache-2.0"
] | null | null | null | lib/dark_dev.ex | dark-elixir/dark_dev | 496681639161cff1f6e17c87bf924ab38846ea05 | [
"Apache-2.0"
] | null | null | null | defmodule DarkDev do
@moduledoc """
Documentation for `DarkDev`.
"""
@moduledoc since: "1.0.0"
end
| 15.285714 | 30 | 0.654206 |
93f15607bebbb9e38f134012637d6802e0d9e02e | 337 | ex | Elixir | lib/event/supervisor.ex | ammbot/event-nanny | 101608149b78a1b70728a3c2ec3996359b0ac760 | [
"Apache-2.0"
] | 4 | 2016-04-23T19:37:25.000Z | 2016-09-04T03:10:57.000Z | lib/event/supervisor.ex | ammbot/event-nanny | 101608149b78a1b70728a3c2ec3996359b0ac760 | [
"Apache-2.0"
] | null | null | null | lib/event/supervisor.ex | ammbot/event-nanny | 101608149b78a1b70728a3c2ec3996359b0ac760 | [
"Apache-2.0"
] | null | null | null | defmodule EventNanny.Event.Supervisor do
use Supervisor
def start_link(args) do
Supervisor.start_link __MODULE__, args, [name: __MODULE__]
end
def init(args) do
children = [worker(EventNanny.Event.Server, [args], restart: :transient)]
opts = [strategy: :simple_one_for_one]
supervise(children, ... | 22.466667 | 77 | 0.724036 |
93f17ad888590c78b6bec0a9b2025ef5143aaf4f | 1,322 | exs | Elixir | mix.exs | kianmeng/shippex | 0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/shippex | 0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/shippex | 0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718 | [
"MIT"
] | null | null | null | defmodule Shippex.Mixfile do
use Mix.Project
def project do
[
app: :shippex,
version: "0.9.0",
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end
d... | 22.793103 | 80 | 0.54236 |
93f196c0500cc05db8f8dc153f0dd0e5c37f7c9f | 1,960 | ex | Elixir | apps/tai/lib/tai/orders/services/execute_order_callback.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/orders/services/execute_order_callback.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/orders/services/execute_order_callback.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.Services.ExecuteOrderCallback do
require Logger
alias Tai.Orders.{
Order,
OrderCallbackStore,
Transitions
}
@type order :: Order.t()
@type transition :: Transitions.transition()
@spec call(order | nil, order, transition | nil) :: :ok | {:error, :noproc}
def call(previou... | 26.486486 | 98 | 0.666327 |
93f196daaf57ec7fdd15d11e6e7725351fcd307f | 92 | ex | Elixir | lib/hey_cake/mailer.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 1 | 2020-06-03T07:45:17.000Z | 2020-06-03T07:45:17.000Z | lib/hey_cake/mailer.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 6 | 2021-06-17T23:13:19.000Z | 2021-08-31T21:15:21.000Z | lib/hey_cake/mailer.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 2 | 2020-06-03T22:08:06.000Z | 2022-03-11T22:13:36.000Z | defmodule HeyCake.Mailer do
@moduledoc false
use Bamboo.Mailer, otp_app: :hey_cake
end
| 15.333333 | 39 | 0.771739 |
93f1a868a9b2fc2f2fc60de1984e30d0c7da9662 | 137 | exs | Elixir | test/adify/tool/installation_strategy/workflow/op_test.exs | ericsullivan/adify | 25b842498ccfbf612e42d8b46530aad1ffb1af5a | [
"MIT"
] | 5 | 2019-07-14T22:24:32.000Z | 2020-11-25T20:36:11.000Z | test/adify/tool/installation_strategy/workflow/op_test.exs | ericsullivan/adify | 25b842498ccfbf612e42d8b46530aad1ffb1af5a | [
"MIT"
] | 43 | 2018-01-18T15:16:30.000Z | 2021-01-23T22:12:17.000Z | test/adify/tool/installation_strategy/workflow/op_test.exs | ericsullivan/adify | 25b842498ccfbf612e42d8b46530aad1ffb1af5a | [
"MIT"
] | 2 | 2019-05-28T17:50:27.000Z | 2020-03-23T21:00:02.000Z | defmodule Adify.Tool.InstallationStrategy.Workflow.OpTest do
use ExUnit.Case
doctest Adify.Tool.InstallationStrategy.Workflow.Op
end
| 27.4 | 60 | 0.846715 |
93f1d0a29ebc00240e4346596f74f4854d224c45 | 2,404 | ex | Elixir | lib/vapor.ex | cheerfulstoic/vapor | 326a9e8fe0bba706b9726e136b4a51726f9d99f7 | [
"Apache-2.0"
] | null | null | null | lib/vapor.ex | cheerfulstoic/vapor | 326a9e8fe0bba706b9726e136b4a51726f9d99f7 | [
"Apache-2.0"
] | null | null | null | lib/vapor.ex | cheerfulstoic/vapor | 326a9e8fe0bba706b9726e136b4a51726f9d99f7 | [
"Apache-2.0"
] | null | null | null | defmodule Vapor do
@moduledoc """
Vapor provides mechanisms for handling runtime configuration in your system.
"""
alias Vapor.{
Store,
Watch
}
@type key :: String.t() | list()
@type type :: :string | :int | :float | :bool
@type value :: String.t() | integer | float | boolean
@doc """
Fet... | 20.904348 | 80 | 0.578203 |
93f1fb4c8fe5539ebbd346e3c0ee4acbb7a594cc | 956 | ex | Elixir | apps/api/web/controllers/pids_controller.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/api/web/controllers/pids_controller.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/api/web/controllers/pids_controller.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | defmodule Api.PIDsController do
use Api.Web, :controller
@pids [Brain.PitchRatePIDController, Brain.RollRatePIDController, Brain.YawRatePIDController, Brain.PitchAnglePIDController, Brain.RollAnglePIDController]
def index(conn, _params) do
pids = @pids |> Enum.reduce([], fn (pid_controller, acc) ->
{:... | 39.833333 | 156 | 0.692469 |
93f25df949a53c789fadefcdf44e72683d3558de | 1,661 | exs | Elixir | mix.exs | exrny/paginator | 40a2cb7f3b6c2a9ba818e78d4d1c98c8efadc616 | [
"MIT"
] | null | null | null | mix.exs | exrny/paginator | 40a2cb7f3b6c2a9ba818e78d4d1c98c8efadc616 | [
"MIT"
] | null | null | null | mix.exs | exrny/paginator | 40a2cb7f3b6c2a9ba818e78d4d1c98c8efadc616 | [
"MIT"
] | null | null | null | defmodule Paginator.Mixfile do
use Mix.Project
@version "1.0.4"
def project do
[
app: :paginator,
version: @version,
elixir: "~> 1.5",
elixirc_options: [warnings_as_errors: System.get_env("CI") == "true"],
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env()... | 24.072464 | 76 | 0.554485 |
93f2657d9c3e20d40b0667335baa68d7f38bb184 | 13,731 | ex | Elixir | lib/table_rex/renderer/text.ex | namjae/table_rex | 70b2cb8a4d630648055f0ab1b8a9668a42a34087 | [
"MIT"
] | null | null | null | lib/table_rex/renderer/text.ex | namjae/table_rex | 70b2cb8a4d630648055f0ab1b8a9668a42a34087 | [
"MIT"
] | null | null | null | lib/table_rex/renderer/text.ex | namjae/table_rex | 70b2cb8a4d630648055f0ab1b8a9668a42a34087 | [
"MIT"
] | null | null | null | defmodule TableRex.Renderer.Text do
@moduledoc """
Renderer module which handles outputting ASCII-style tables for display.
"""
alias TableRex.Cell
alias TableRex.Table
alias TableRex.Renderer.Text.Meta
@behaviour TableRex.Renderer
# horizontal_styles: [:all, :header, :frame:, :off]
# vertical_style... | 30.925676 | 101 | 0.660695 |
93f26b37a451fd928e5d5e79475c58cadde2655a | 2,028 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_impression_metrics_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_impression_metrics_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_impression_metrics_response.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... | 40.56 | 280 | 0.783531 |
93f27052b05cae129531830fc2e86d0fedce1991 | 782 | exs | Elixir | test/examples/skip_example_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | test/examples/skip_example_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | test/examples/skip_example_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule SkipExampleTest do
use ExUnit.Case, async: true
defmodule SomeSpec do
use ESpec
it do: "Example"
it "skipped", [skip: true], do: "skipped"
xit(do: "skipped")
xit("skipped", do: "skipped")
xit("skipped", [some: :option], do: "skipped")
xexample(do: "skipped")
xexample("s... | 26.965517 | 72 | 0.626598 |
93f275210ed35fb7b20ec549f33fcacb3ccc3904 | 12,047 | exs | Elixir | apps/reaper/test/integration/reaper/reaper_full_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/integration/reaper/reaper_full_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/integration/reaper/reaper_full_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.FullTest do
use ExUnit.Case
use Divo
use Tesla
use Placebo
require Logger
alias SmartCity.TestDataGenerator, as: TDG
import SmartCity.TestHelper
import SmartCity.Event, only: [dataset_update: 0]
@endpoints Application.get_env(:reaper, :elsa_brokers)
@brod_endpoints Enum.map(@endpoi... | 30.1175 | 123 | 0.557068 |
93f296da8fb84036298b0588b0b33ca00893a6cc | 8,774 | exs | Elixir | test/mojito_test.exs | marcdel/mojito | ce1ba49fdfeaf2098953e5d188b37ce8082ab737 | [
"MIT"
] | null | null | null | test/mojito_test.exs | marcdel/mojito | ce1ba49fdfeaf2098953e5d188b37ce8082ab737 | [
"MIT"
] | null | null | null | test/mojito_test.exs | marcdel/mojito | ce1ba49fdfeaf2098953e5d188b37ce8082ab737 | [
"MIT"
] | null | null | null | defmodule MojitoTest do
use ExSpec, async: true
doctest Mojito
doctest Mojito.Utils
alias Mojito.{Error, Headers}
context "url validation" do
it "fails on url without protocol" do
assert({:error, _} = Mojito.request(:get, "localhost/path"))
assert({:error, _} = Mojito.request(:get, "/localho... | 26.91411 | 79 | 0.542398 |
93f2be9298f8b16940921d5b81de700eb5ae5e0d | 1,222 | exs | Elixir | test/test_helper.exs | Fullrate/my_acs | 52b179267eb450b49dcc1c4a368605c62e7f2abe | [
"Unlicense"
] | 5 | 2016-11-24T07:34:29.000Z | 2019-09-06T15:55:35.000Z | test/test_helper.exs | Fullrate/my_acs | 52b179267eb450b49dcc1c4a368605c62e7f2abe | [
"Unlicense"
] | null | null | null | test/test_helper.exs | Fullrate/my_acs | 52b179267eb450b49dcc1c4a368605c62e7f2abe | [
"Unlicense"
] | 4 | 2017-11-29T05:07:10.000Z | 2021-12-06T10:35:03.000Z | ExUnit.start
defmodule RequestSenders do
# sends a POST request, and eats the response and returns it
def sendFile(file, sessioncookie \\ []) do
{ :ok, data } = File.read(file)
sendStr(data, sessioncookie)
end
# sends a POST request, and eats the response and returns it
def sendStr(str, sessioncooki... | 30.55 | 120 | 0.56874 |
93f2c70f11c61f6a3f3f0e29b19a989b2885ed5f | 1,960 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_delete_document_operation_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_delete_document_operation_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_delete_document_operation_metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.385965 | 193 | 0.771939 |
93f2ca08ac8557e93ac6e8b4cd30e8b7879b9ae4 | 2,808 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_sync_authorization.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_sync_authorization.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_sync_authorization.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... | 56.16 | 725 | 0.768519 |
93f2f82492862b145deed8079af4177baceb8e09 | 3,470 | ex | Elixir | lib/club/brands/aggregates/brand.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | lib/club/brands/aggregates/brand.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | lib/club/brands/aggregates/brand.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Brands.Aggregates.Brand do
@derive Jason.Encoder
defstruct uuid: nil,
name: nil,
url: "",
product_count: 0,
products: [],
deleted?: false
alias Club.Brands.Aggregates.Brand
alias Club.Brands.Commands.{
AddBrand,
RenameBrand,
... | 24.097222 | 98 | 0.626513 |
93f2f9b08c916748654d71d4ed16bd9b3164128e | 1,499 | ex | Elixir | lib/serum/html_tree_helper.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | lib/serum/html_tree_helper.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | null | null | null | lib/serum/html_tree_helper.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | null | null | null | defmodule Serum.HtmlTreeHelper do
@moduledoc "Provides useful functions for working with HTML trees."
@type tree :: binary() | tag() | [binary() | tag()]
@type tag :: {binary(), [attribute()], [tree()]}
@type attribute :: {binary(), binary()}
@type tree_fun :: (tree() -> tree())
@type acc_tree_fun :: (tree... | 28.283019 | 77 | 0.624416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.