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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4aa22c9f01189d08e2f86b946e6f8bbb3caff407 | 537 | ex | Elixir | episode-037/web/controllers/page_controller.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 84 | 2016-07-02T05:21:36.000Z | 2021-02-12T22:45:45.000Z | episode-037/web/controllers/page_controller.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 3 | 2016-07-02T06:03:47.000Z | 2017-06-03T14:11:06.000Z | episode-037/web/controllers/page_controller.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 6 | 2017-02-16T19:33:49.000Z | 2019-04-05T19:27:17.000Z | defmodule ElmIsFun.PageController do
use ElmIsFun.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
def wins(conn, _params) do
:timer.sleep(2000)
conn
|> put_resp_header("content-type", "application/json; charset=utf-8")
|> send_resp(200, Poison.encode!(10, pretty:... | 24.409091 | 73 | 0.674115 |
4aa25b52373c4ca29eddcb0f0e5097a864ea30bd | 3,229 | exs | Elixir | test/ex_config/type/number_test.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | test/ex_config/type/number_test.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | test/ex_config/type/number_test.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | defmodule ExConfig.Type.NumberTest do
use ExUnit.Case, async: true
alias ExConfig.Type.Number
alias ExConfig.Param.TypeOptionError
defp instance(opts \\ []),
do: ExConfig.Param.create_type_instance(Number, opts)
test "init/1" do
assert %Number{} == instance([])
assert %Number{range: {2, 10}} == ... | 34.72043 | 76 | 0.551564 |
4aa26a56e4d759e11877361dfc0505af5ce4d728 | 1,185 | exs | Elixir | config/config.exs | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | config/config.exs | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | config/config.exs | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :protected_hell... | 35.909091 | 92 | 0.771308 |
4aa29d554bc9810ae004f378a7a726a0458d5a58 | 274 | exs | Elixir | test/grizzly/zwave/commands/barrier_operator_get_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/barrier_operator_get_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/barrier_operator_get_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.BarrierOperatorGetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.BarrierOperatorGet
test "creates the command and validates params" do
params = []
{:ok, _command} = BarrierOperatorGet.new(params)
end
end
| 24.909091 | 58 | 0.759124 |
4aa2b76a57c33d2715344fe4742054b537b1adf4 | 905 | ex | Elixir | lib/surface_boostrap4/badge.ex | tschmidleithner/surface_bootstrap4 | 1968905a01d451639b52f58ab0e397aba1f938e6 | [
"MIT"
] | 10 | 2020-06-14T01:40:19.000Z | 2020-11-17T05:39:37.000Z | lib/surface_boostrap4/badge.ex | tschmidleithner/surface_bootstrap4 | 1968905a01d451639b52f58ab0e397aba1f938e6 | [
"MIT"
] | null | null | null | lib/surface_boostrap4/badge.ex | tschmidleithner/surface_bootstrap4 | 1968905a01d451639b52f58ab0e397aba1f938e6 | [
"MIT"
] | 1 | 2020-06-14T01:40:22.000Z | 2020-06-14T01:40:22.000Z | defmodule SurfaceBootstrap4.Badge do
@moduledoc """
Bootstrap4 badge component.
"""
use Surface.Component
@doc "The label of the badge"
prop label, :string
@doc "Additional CSS classes"
prop class, :css_class
@doc "The color of the badge"
prop color, :string, values: ~w(primary secondary success... | 20.111111 | 96 | 0.61326 |
4aa2bf0e9da657cbe1b356456e635e7a9069ca24 | 2,686 | ex | Elixir | lib/radiator/feed/podcast_builder.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | lib/radiator/feed/podcast_builder.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | lib/radiator/feed/podcast_builder.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | defmodule Radiator.Feed.PodcastBuilder do
import XmlBuilder
import Radiator.Feed.Builder, only: [add: 2]
import Radiator.Feed.Guards
alias Radiator.Directory.Podcast
alias Radiator.Feed.EpisodeBuilder
alias Radiator.Feed.PagingMeta
@doc """
See `Radiator.Feed.Builder.new/2` for parameter docs.
"""
... | 25.826923 | 87 | 0.665674 |
4aa2cf4af597166a3403a48e9903036bafb278a1 | 1,073 | ex | Elixir | lib/bgsite_official/application.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 1 | 2021-08-05T12:44:37.000Z | 2021-08-05T12:44:37.000Z | lib/bgsite_official/application.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 16 | 2021-02-20T19:22:45.000Z | 2021-06-14T13:59:01.000Z | lib/bgsite_official/application.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 3 | 2021-05-17T17:54:43.000Z | 2021-11-03T15:30:30.000Z | defmodule BgsiteOfficial.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
BgsiteOfficial.Repo,
# Start the Telemetry supervisor... | 30.657143 | 72 | 0.719478 |
4aa2e3515afb4c47c1466f8c44df72beecc47d1a | 2,182 | ex | Elixir | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_public_jwk_set.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_public_jwk_set.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_public_jwk_set.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.983051 | 276 | 0.742896 |
4aa2f0be05485c8c1683b17a79b142eb12728dc7 | 3,570 | exs | Elixir | test/sequence/sequence_data_test_long_test.exs | patricknevindwyer/chunky | e17df98df24d079c84fc8c51fbbd3ec57f77166b | [
"BSD-3-Clause"
] | 1 | 2020-12-18T11:00:32.000Z | 2020-12-18T11:00:32.000Z | test/sequence/sequence_data_test_long_test.exs | patricknevindwyer/chunky | e17df98df24d079c84fc8c51fbbd3ec57f77166b | [
"BSD-3-Clause"
] | null | null | null | test/sequence/sequence_data_test_long_test.exs | patricknevindwyer/chunky | e17df98df24d079c84fc8c51fbbd3ec57f77166b | [
"BSD-3-Clause"
] | null | null | null | defmodule Chunky.SequenceDataTestLong do
use ExUnit.Case, async: true
@moduledoc """
These are the particularly long running tests that would normally be in SequenceDataTest, but
are here instead to take advantage of async testing.
"""
alias Chunky.Sequence
@sequences [
%{
module: Elixir.Chunk... | 26.641791 | 97 | 0.580952 |
4aa2f6c9e0a5db24910cc6e4569c6ced08795641 | 2,326 | ex | Elixir | lib/elastic/index.ex | bypasslane/elastic | b6a776d5c03bb7a4ee7c0b8cb8e3065b4fe77610 | [
"MIT"
] | null | null | null | lib/elastic/index.ex | bypasslane/elastic | b6a776d5c03bb7a4ee7c0b8cb8e3065b4fe77610 | [
"MIT"
] | null | null | null | lib/elastic/index.ex | bypasslane/elastic | b6a776d5c03bb7a4ee7c0b8cb8e3065b4fe77610 | [
"MIT"
] | null | null | null | defmodule Elastic.Index do
alias Elastic.HTTP
alias Elastic.Query
@moduledoc ~S"""
Collection of functions to work with indices.
"""
@doc """
Helper function for getting the name of an index combined with the
`index_prefix` and `mix_env` configuration.
"""
def name(index) do
[index_prefix(), m... | 21.738318 | 151 | 0.656062 |
4aa30f878f7bde624fcf45d7154a33c194dd1867 | 3,217 | exs | Elixir | test/instagram_clone_web/controllers/user_session_controller_test.exs | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 69 | 2021-04-11T21:57:26.000Z | 2022-03-30T01:09:40.000Z | test/instagram_clone_web/controllers/user_session_controller_test.exs | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 1 | 2021-04-16T17:38:11.000Z | 2021-04-16T17:38:11.000Z | test/instagram_clone_web/controllers/user_session_controller_test.exs | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 4 | 2021-04-16T10:45:18.000Z | 2021-07-23T15:08:08.000Z | defmodule InstagramCloneWeb.UserSessionControllerTest do
use InstagramCloneWeb.ConnCase, async: true
import InstagramClone.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/log_in" do
test "renders log in page", %{conn: conn} do
conn = get(conn, Routes.user_session_pa... | 32.494949 | 89 | 0.60429 |
4aa3130e71a879fc6c251defef7e7e128acbd0de | 267 | ex | Elixir | bot/lib/bot/server.ex | hectorip/Facebook_Bot_Elixir | 097967c985f2b48c7fc9d67979fed9b4821c888b | [
"Apache-2.0"
] | 1 | 2016-05-25T04:39:09.000Z | 2016-05-25T04:39:09.000Z | bot/lib/bot/server.ex | hectorip/Facebook_Bot_Elixir | 097967c985f2b48c7fc9d67979fed9b4821c888b | [
"Apache-2.0"
] | null | null | null | bot/lib/bot/server.ex | hectorip/Facebook_Bot_Elixir | 097967c985f2b48c7fc9d67979fed9b4821c888b | [
"Apache-2.0"
] | null | null | null | defmodule Bot.Server do
@default_port 4000
def start_link(nil), do: start_server(@default_port)
def start_link(port), do: port |> String.to_integer |> start_server
def start_server(port) do
Plug.Adapters.Cowboy.http(Bot.Router, [], port: port)
end
end | 26.7 | 69 | 0.730337 |
4aa32d735c0960b6876c217956c657cd118986b6 | 4,005 | exs | Elixir | test/config_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | test/config_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | test/config_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | defmodule EventStore.ConfigTest do
use ExUnit.Case
alias EventStore.Config
test "parse keys" do
original = [
username: "postgres",
hostname: "localhost",
database: "eventstore_test",
password: "postgres",
pool: EventStore.Config.get_pool()
]
assert Config.parse(origina... | 26.176471 | 92 | 0.554307 |
4aa38187898540f09f3e49d659162cb124461901 | 2,084 | ex | Elixir | lib/mix/tasks/poeditor_update.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/mix/tasks/poeditor_update.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/mix/tasks/poeditor_update.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Poeditor.Update do
@moduledoc "Downloads updated translation files from POEditor. Please ensure you have the configuration applied!"
@shortdoc "Downloads updated translation files from POEditor"
use Mix.Task
@requirements ["app.start"]
@impl Mix.Task
def run(_args) do
api_token = ... | 31.575758 | 115 | 0.636756 |
4aa41142ad6b531873c6ac6481828b8bf323010f | 32,131 | exs | Elixir | integration_test/cases/transaction_test.exs | jonatanklosko/db_connection | 80928db6de9752c0243a959f41a18c3b80a1eeeb | [
"Apache-2.0"
] | 227 | 2016-06-16T13:56:02.000Z | 2022-03-09T23:03:58.000Z | integration_test/cases/transaction_test.exs | jonatanklosko/db_connection | 80928db6de9752c0243a959f41a18c3b80a1eeeb | [
"Apache-2.0"
] | 198 | 2016-06-20T08:08:15.000Z | 2022-03-06T17:54:37.000Z | integration_test/cases/transaction_test.exs | jonatanklosko/db_connection | 80928db6de9752c0243a959f41a18c3b80a1eeeb | [
"Apache-2.0"
] | 110 | 2016-06-20T03:50:39.000Z | 2022-03-03T20:53:01.000Z | defmodule TransactionTest do
use ExUnit.Case, async: true
alias TestPool, as: P
alias TestAgent, as: A
test "transaction returns result" do
stack = [
{:ok, :state},
{:ok, :began, :new_state},
{:ok, :committed, :newer_state},
{:ok, :began, :newest_state},
{:ok, :committed, :ne... | 28.535524 | 147 | 0.585603 |
4aa430b5aefed7b4dd3cca035f04c3d5afb7ee2c | 5,794 | ex | Elixir | elixir/lib/homework/transactions.ex | adaugherty42/web-homework | c3a729db5ff554abe9db515ae225c0f2afec6e48 | [
"MIT"
] | null | null | null | elixir/lib/homework/transactions.ex | adaugherty42/web-homework | c3a729db5ff554abe9db515ae225c0f2afec6e48 | [
"MIT"
] | null | null | null | elixir/lib/homework/transactions.ex | adaugherty42/web-homework | c3a729db5ff554abe9db515ae225c0f2afec6e48 | [
"MIT"
] | 1 | 2021-12-27T15:33:07.000Z | 2021-12-27T15:33:07.000Z | defmodule Homework.Transactions do
@moduledoc """
The Transactions context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Transactions.Transaction
alias Homework.Companies
alias Homework.Util.Transforms
alias Homework.Util.Paginator
@doc """
Returns the list of transacti... | 28.401961 | 111 | 0.65913 |
4aa4363cc5484260cacdcb65538a248ec846382e | 3,203 | ex | Elixir | lib/client/users/client_user_schema.ex | farhangj2020/mishka-auth | 33d461f248d5cdcc935c0d64a93faf95830fe500 | [
"MIT"
] | 8 | 2020-09-07T14:47:42.000Z | 2021-11-03T21:53:37.000Z | lib/client/users/client_user_schema.ex | farhangj2020/mishka-auth | 33d461f248d5cdcc935c0d64a93faf95830fe500 | [
"MIT"
] | 1 | 2022-03-11T09:51:34.000Z | 2022-03-11T09:51:34.000Z | lib/client/users/client_user_schema.ex | farhangj2020/mishka-auth | 33d461f248d5cdcc935c0d64a93faf95830fe500 | [
"MIT"
] | 3 | 2020-08-02T14:05:21.000Z | 2020-09-12T12:58:59.000Z | defmodule MishkaAuth.Client.Users.ClientUserSchema do
use Ecto.Schema
alias MishkaAuth.Helper.SanitizeStrategy
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :name, :string, size: 20, null: false
field :lastname, :... | 43.283784 | 130 | 0.680612 |
4aa4a20dfbef16f239016113fa23567581914139 | 3,675 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.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... | 42.732558 | 238 | 0.660408 |
4aa4a4eef79272f211325f86c57c73741ec22895 | 656 | exs | Elixir | test/partial_test.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 44 | 2017-01-22T03:54:32.000Z | 2022-01-24T16:06:19.000Z | test/partial_test.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 2 | 2018-09-28T03:07:30.000Z | 2022-01-13T00:02:46.000Z | test/partial_test.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 6 | 2018-03-03T16:45:11.000Z | 2021-05-28T16:09:20.000Z | defmodule WebAssembly.Partial.Test do
use ExUnit.Case
import WebAssembly.TestHelper
import WebAssembly.DSL
import WebAssembly.Builder
import WebAssembly.HTML, only: [text: 1]
def partial1 do
void_element :bar
end
def partial2 do
element :bar2 do
text "Hey!"
end
end
test "use ... | 16.820513 | 42 | 0.570122 |
4aa4c445587428afce446c536309ae4869169108 | 1,529 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/report_key.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/report_key.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/report_key.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.58 | 82 | 0.718116 |
4aa52dd0ef5ef37c0c6e23b5d9386eedb63b1a32 | 3,631 | exs | Elixir | test/changelog_web/controllers/slack_controller_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | test/changelog_web/controllers/slack_controller_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | test/changelog_web/controllers/slack_controller_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.SlackControllerTest do
use ChangelogWeb.ConnCase
import Mock
alias Changelog.Slack.{Client, Messages, Tasks}
describe "the countdown endpoint" do
setup do
{:ok, conn: build_conn(), podcast: insert(:podcast, name: "Go Time", slug: "gotime")}
end
test "it works when no... | 35.598039 | 120 | 0.609749 |
4aa5351f6ecd3fed75fcf9f5cf8501b0b57ba2b6 | 1,764 | ex | Elixir | elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/parser/bitstring/array.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2021-06-16T14:06:34.000Z | 2021-06-16T14:06:34.000Z | elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/parser/bitstring/array.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/parser/bitstring/array.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule JSON.Parser.Bitstring.Array do
@doc """
parses a valid JSON array value, returns its elixir list representation
## Examples
iex> JSON.Parser.Bitstring.Array.parse ""
{:error, :unexpected_end_of_buffer}
iex> JSON.Parser.Bitstring.Array.parse "[1, 2 "
{:error, :unexpected_end_of... | 33.283019 | 96 | 0.620181 |
4aa54b09a2d9afe073da90757661d72dc5945665 | 1,469 | exs | Elixir | test/cron_expression_parser_test.exs | chadeyrasal/cron-expression-parser | fe922683f95f0b9b757393455524c42c63914016 | [
"MIT"
] | null | null | null | test/cron_expression_parser_test.exs | chadeyrasal/cron-expression-parser | fe922683f95f0b9b757393455524c42c63914016 | [
"MIT"
] | null | null | null | test/cron_expression_parser_test.exs | chadeyrasal/cron-expression-parser | fe922683f95f0b9b757393455524c42c63914016 | [
"MIT"
] | null | null | null | defmodule CronExpressionParserTest do
use ExUnit.Case
doctest CronExpressionParser
describe "expression_parser/1" do
test "returns an ok tuple with the expected result if the argument format is correct" do
{:ok, result} = CronExpressionParser.expression_parser(["*/15 0 1,15 * 1-5 /usr/bin/find"])
... | 36.725 | 106 | 0.644656 |
4aa565e9b516110ed935ab66d2e56d1e1dddcdc9 | 542 | exs | Elixir | bench/jaro.exs | joshrotenberg/strsim_ex | 7dfb472c4a4e82e65450c489548131441381333c | [
"Apache-2.0"
] | 3 | 2020-04-29T14:29:00.000Z | 2022-02-10T02:35:35.000Z | bench/jaro.exs | joshrotenberg/strsim_ex | 7dfb472c4a4e82e65450c489548131441381333c | [
"Apache-2.0"
] | null | null | null | bench/jaro.exs | joshrotenberg/strsim_ex | 7dfb472c4a4e82e65450c489548131441381333c | [
"Apache-2.0"
] | null | null | null | Benchee.run(
%{
"strsim jaro" => fn -> Strsim.jaro("Dwayne", "Duane") end,
"elixir jaro" => fn -> String.jaro_distance("Dwayne", "Duane") end,
"the_fuzz jaro" => fn -> TheFuzz.Similarity.Jaro.compare("Dwayne", "Duane") end
},
formatters: [
{Benchee.Formatters.Markdown,
file: "bench/jaro_bench... | 30.111111 | 83 | 0.642066 |
4aa579cc70ba59d9e826ef17a0e88342970cf09a | 4,155 | ex | Elixir | lib/ex_fix.ex | tokenhousefx/ex_fix | 3bce1628bef4afc2016b51a54885d474149ea2ad | [
"Apache-2.0"
] | 18 | 2017-08-05T09:03:49.000Z | 2022-03-05T02:29:51.000Z | lib/ex_fix.ex | tokenhousefx/ex_fix | 3bce1628bef4afc2016b51a54885d474149ea2ad | [
"Apache-2.0"
] | 2 | 2017-08-03T11:57:59.000Z | 2017-10-29T18:26:55.000Z | lib/ex_fix.ex | tokenhousefx/ex_fix | 3bce1628bef4afc2016b51a54885d474149ea2ad | [
"Apache-2.0"
] | 5 | 2017-10-29T18:24:19.000Z | 2022-03-30T05:48:35.000Z | defmodule ExFix do
@moduledoc """
Elixir implementation of FIX Session Protocol FIXT.1.1.
Currently only supports FIX session initiator (buy side).
## Usage
```
defmodule MySessionHandler do
@behaviour ExFix.SessionHandler
require Logger
alias ExFix.InMessage
alias ExFix.OutMessage
al... | 29.260563 | 98 | 0.652708 |
4aa57e5245d540be7a34e8462e82ed079db15e47 | 2,031 | exs | Elixir | test/cldr_html_unit_test.exs | kipcole9/cldr_html | d06fa8a3530b9f04bc483c877d1dde944f26dc18 | [
"Apache-2.0"
] | 1 | 2019-10-18T13:02:59.000Z | 2019-10-18T13:02:59.000Z | test/cldr_html_unit_test.exs | kipcole9/cldr_html | d06fa8a3530b9f04bc483c877d1dde944f26dc18 | [
"Apache-2.0"
] | 3 | 2018-05-28T19:01:54.000Z | 2018-05-29T11:38:25.000Z | test/cldr_html_unit_test.exs | kipcole9/cldr_html | d06fa8a3530b9f04bc483c877d1dde944f26dc18 | [
"Apache-2.0"
] | 2 | 2018-05-28T16:06:55.000Z | 2020-01-20T07:15:41.000Z | defmodule Cldr.HTML.Unit.Test do
use ExUnit.Case
doctest Cldr.HTML.Unit
import Phoenix.HTML, only: [safe_to_string: 1]
describe "unit_select/3" do
test "with selected unit" do
string =
safe_to_string(
Cldr.HTML.Unit.select(
:my_form,
:unit,
units... | 25.708861 | 69 | 0.464796 |
4aa5c941fb4d50785ea699b3cddef183bce967f2 | 77 | exs | Elixir | test/test_helper.exs | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | 3 | 2018-08-17T13:42:45.000Z | 2018-08-17T17:05:11.000Z | test/test_helper.exs | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(DataProcessor.Repo, :manual)
| 15.4 | 59 | 0.779221 |
4aa5cd93c969fb3be591e7cd0eb6f9e52ed5ece2 | 2,347 | ex | Elixir | lib/glimesh/streams.ex | YFG-Online/glimesh.tv | 5d9bb6f4ab383897c383bf33bbfac783b09e294e | [
"MIT"
] | null | null | null | lib/glimesh/streams.ex | YFG-Online/glimesh.tv | 5d9bb6f4ab383897c383bf33bbfac783b09e294e | [
"MIT"
] | null | null | null | lib/glimesh/streams.ex | YFG-Online/glimesh.tv | 5d9bb6f4ab383897c383bf33bbfac783b09e294e | [
"MIT"
] | null | null | null | defmodule Glimesh.Streams do
@moduledoc """
The Streamers context.
"""
import Ecto.Query, warn: false
alias Glimesh.Repo
alias Glimesh.Accounts.User
alias Glimesh.Streams.UserModerationLog
alias Glimesh.Chat
## Database getters
@doc """
Get all streamers.
## Examples
iex> list_streams... | 24.705263 | 120 | 0.695356 |
4aa5e5633cd5b51647fcb397e4619c867382532b | 997 | ex | Elixir | apps/omg_watcher_rpc/lib/web/serializers/base.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher_rpc/lib/web/serializers/base.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/lib/web/serializers/base.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 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... | 34.37931 | 91 | 0.728185 |
4aa601603df89891499398d00e4cfe43687f9742 | 1,557 | ex | Elixir | clients/container/lib/google_api/container/v1/model/logging_component_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container/lib/google_api/container/v1/model/logging_component_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container/lib/google_api/container/v1/model/logging_component_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.12766 | 146 | 0.749518 |
4aa61bac828e445d73f750f68f4265e314d7780e | 4,460 | ex | Elixir | lib/soap.ex | youalreadydid/soap | d81aead923a622718ae21c6985efe136bfaa5cf7 | [
"MIT"
] | null | null | null | lib/soap.ex | youalreadydid/soap | d81aead923a622718ae21c6985efe136bfaa5cf7 | [
"MIT"
] | null | null | null | lib/soap.ex | youalreadydid/soap | d81aead923a622718ae21c6985efe136bfaa5cf7 | [
"MIT"
] | null | null | null | defmodule Soap do
@moduledoc """
The SOAP client for Elixir based on HTTPoison (for send requests) and SweetXml (for xml parsing).
Soap contains 5 main modules:
* `Soap.Wsdl` - Build wsdl components data map. Can parse raw wsdl file from external url or local path.
Wsdl which is prepared this module are ... | 33.283582 | 118 | 0.66861 |
4aa6a37835934579e8d680f244d442ee9c8bc802 | 1,308 | ex | Elixir | lib/phoenix_vue_webpack_template/endpoint.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | lib/phoenix_vue_webpack_template/endpoint.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | lib/phoenix_vue_webpack_template/endpoint.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | defmodule PhoenixVueWebpackTemplate.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenix_vue_webpack_template
socket "/socket", PhoenixVueWebpackTemplate.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deployi... | 30.418605 | 69 | 0.740061 |
4aa6a5afcda78e861cbf3cc02b3f55cd28a7c440 | 842 | ex | Elixir | lib/excoveralls_linter/rules/errors/file_rule_error.ex | miros/excoveralls_linter | 661e9d4019d9f8842340c172d78341e8822d4d6c | [
"Apache-2.0"
] | 4 | 2019-11-25T15:32:45.000Z | 2020-01-29T23:27:45.000Z | lib/excoveralls_linter/rules/errors/file_rule_error.ex | miros/excoveralls_linter | 661e9d4019d9f8842340c172d78341e8822d4d6c | [
"Apache-2.0"
] | null | null | null | lib/excoveralls_linter/rules/errors/file_rule_error.ex | miros/excoveralls_linter | 661e9d4019d9f8842340c172d78341e8822d4d6c | [
"Apache-2.0"
] | null | null | null | defmodule ExCoverallsLinter.Rules.Errors.FileRuleError do
alias ExCoverallsLinter.SourceFile
alias __MODULE__
defexception [:file, :reasons]
@type t :: %__MODULE__{
file: SourceFile.t(),
reasons: list()
}
@impl Exception
def message(exc) do
total_lines = SourceFile.total_l... | 27.16129 | 79 | 0.682898 |
4aa6e5ba29c236789ab8c57e48a04aeab6c63dd4 | 1,461 | exs | Elixir | apps/rent_bot/mix.exs | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 94 | 2018-02-19T11:53:45.000Z | 2021-11-15T12:20:24.000Z | apps/rent_bot/mix.exs | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 1 | 2018-04-21T08:54:23.000Z | 2018-04-21T18:06:44.000Z | apps/rent_bot/mix.exs | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 28 | 2018-02-19T11:53:48.000Z | 2021-01-02T21:55:36.000Z | defmodule RentBot.Mixfile do
use Mix.Project
def project do
[
app: :rent_bot,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths... | 25.189655 | 79 | 0.593429 |
4aa722f8f9e0a7416c9f3ee0bb6310653339e9d2 | 120 | exs | Elixir | vaop/test/vaop_test.exs | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | vaop/test/vaop_test.exs | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | vaop/test/vaop_test.exs | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | defmodule ExpostTest do
use ExUnit.Case
doctest Vaop
test "hello" do
assert Vaop.hello() == :world
end
end
| 13.333333 | 33 | 0.683333 |
4aa742f032824ade3dee276d24257ea91b8d6fcb | 2,035 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_stats.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_stats.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_stats.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... | 37 | 193 | 0.752334 |
4aa765e7f18eb224089eac81dedb996a5d851251 | 1,693 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/managed_instance_instance_health.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/managed_instance_instance_health.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/managed_instance_instance_health.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.86 | 150 | 0.736562 |
4aa77cbb7c26195dc6a2b502bfe20a056aff03f5 | 12,810 | ex | Elixir | lib/fluxter.ex | parody/fluxter | ea66a81153825158587c261c3c21af8985eabc8a | [
"ISC"
] | null | null | null | lib/fluxter.ex | parody/fluxter | ea66a81153825158587c261c3c21af8985eabc8a | [
"ISC"
] | 1 | 2019-11-19T13:27:53.000Z | 2019-11-19T13:27:53.000Z | lib/fluxter.ex | parody/fluxter | ea66a81153825158587c261c3c21af8985eabc8a | [
"ISC"
] | 1 | 2020-04-21T11:32:05.000Z | 2020-04-21T11:32:05.000Z | defmodule Fluxter do
@moduledoc """
InfluxDB writer for Elixir that uses InfluxDB's line protocol over UDP.
To get started with Fluxter, you have to create a module that calls `use
Fluxter`, like this:
defmodule MyApp.Fluxter do
use Fluxter
end
This way, `MyApp.Fluxter` becomes an Influ... | 33.534031 | 97 | 0.671741 |
4aa77ec77d8324e3067c230cc49cfcfb7c3485af | 968 | ex | Elixir | lib/kvstore/ttl_worker.ex | W1ntersnow/kv_storage | 85829cd8ba62967cab7a4b8e1dfa889757bbee68 | [
"MIT"
] | null | null | null | lib/kvstore/ttl_worker.ex | W1ntersnow/kv_storage | 85829cd8ba62967cab7a4b8e1dfa889757bbee68 | [
"MIT"
] | null | null | null | lib/kvstore/ttl_worker.ex | W1ntersnow/kv_storage | 85829cd8ba62967cab7a4b8e1dfa889757bbee68 | [
"MIT"
] | null | null | null | defmodule KVstore.TTLworker do
use GenServer
def init(_) do
Process.send(__MODULE__, :exec_ttl, [])
{:ok, {}}
end
def delete_key_after(key, ttl) do
Process.send_after(__MODULE__, {:delete, key}, ttl)
end
def handle_info({:delete, key}, state) do
ttl = KVstore.get_ttl(key)
current_ts =... | 22 | 74 | 0.649793 |
4aa7e4fb54c4a7ba38425d852e8a8058d392086c | 7,170 | exs | Elixir | test/vintage_net/ip/ipv4_config_test.exs | mnishiguchi/vintage_net | b2c9848c15d1e72f142981e00186b314d47647d7 | [
"Apache-2.0"
] | null | null | null | test/vintage_net/ip/ipv4_config_test.exs | mnishiguchi/vintage_net | b2c9848c15d1e72f142981e00186b314d47647d7 | [
"Apache-2.0"
] | null | null | null | test/vintage_net/ip/ipv4_config_test.exs | mnishiguchi/vintage_net | b2c9848c15d1e72f142981e00186b314d47647d7 | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.IP.IPv4ConfigTest do
use ExUnit.Case
import VintageNetTest.Utils
alias VintageNet.IP.IPv4Config
test "raises if no method" do
assert_raise ArgumentError, fn -> IPv4Config.normalize(%{ipv4: %{}}) end
end
test "ipv4 disabled default" do
default_config = %{ipv4: %{method: :disab... | 29.751037 | 89 | 0.54198 |
4aa7f2b405fa15a522cf09e97226a78cd9763e0f | 137,076 | ex | Elixir | lib/elixir/lib/kernel.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | # Use elixir_bootstrap module to be able to bootstrap Kernel.
# The bootstrap module provides simpler implementations of the
# functions removed, simple enough to bootstrap.
import Kernel,
except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2, defmacro: 1, defmacro: 2, defmacrop: 2]
import :elixir_bootstrap
defmodul... | 26.793589 | 104 | 0.635275 |
4aa80ef08677159c7f58cb997379af6922d44bd8 | 12,796 | ex | Elixir | lib/from_port.ex | ScenicFramework/scenic_driver_local | 2a40c21dd7eac94f2251bc28f22f8fd24c049bf4 | [
"Apache-2.0"
] | 3 | 2021-09-25T17:47:15.000Z | 2021-11-04T02:02:46.000Z | lib/from_port.ex | ScenicFramework/scenic_driver_local | 2a40c21dd7eac94f2251bc28f22f8fd24c049bf4 | [
"Apache-2.0"
] | 4 | 2021-10-01T22:20:09.000Z | 2022-01-07T07:27:52.000Z | lib/from_port.ex | ScenicFramework/scenic_driver_local | 2a40c21dd7eac94f2251bc28f22f8fd24c049bf4 | [
"Apache-2.0"
] | 2 | 2021-09-25T19:42:49.000Z | 2021-11-11T10:05:00.000Z | #
# Created by Boyd Multerer on 2021-09-04.
# Copyright 2018-2021 Kry10 Limited
#
defmodule Scenic.Driver.Local.FromPort do
@moduledoc false
alias Scenic.ViewPort
alias Scenic.Driver
# import IEx
require Logger
import Scenic.Driver,
only: [
assign: 3,
set_busy: 2,
send_input: 2
... | 26.547718 | 83 | 0.51899 |
4aa8357192525c60faac06496cfd5d3d7ef31ceb | 7,821 | ex | Elixir | lib/mix/lib/mix/project_stack.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/mix/lib/mix/project_stack.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/mix/lib/mix/project_stack.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Mix.ProjectStack do
@moduledoc false
use GenServer
@name __MODULE__
@timeout :infinity
# compile.lock is not the best name, but the name is completely
# opaque and we keep it for backwards compatibility (just in case).
@manifest "compile.lock"
@typep file :: binary
@typep config :: keywor... | 24.364486 | 86 | 0.572305 |
4aa85bd880eab2310d9958bf70ad35611541a035 | 657 | exs | Elixir | config/config.exs | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | config/config.exs | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | config/config.exs | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | use Mix.Config
if Mix.env() in [:test, :test_phoenix, :test_no_nif] do
config :logger,
level: :warn,
handle_otp_reports: false,
handle_sasl_reports: false
config :appsignal, appsignal_system: Appsignal.FakeSystem
config :appsignal, appsignal_nif: Appsignal.FakeNif
config :appsignal, appsignal_demo... | 31.285714 | 77 | 0.757991 |
4aa87f6227723b02f1c72443010b8f85b9315283 | 8,889 | exs | Elixir | test/bolt_sips/internals/bolt_protocol_bolt_v3_test.exs | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 242 | 2016-09-09T22:32:00.000Z | 2022-02-20T18:50:29.000Z | test/bolt_sips/internals/bolt_protocol_bolt_v3_test.exs | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 100 | 2016-10-18T04:19:09.000Z | 2021-11-15T19:14:47.000Z | test/bolt_sips/internals/bolt_protocol_bolt_v3_test.exs | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 51 | 2016-10-31T20:05:52.000Z | 2022-01-20T11:45:49.000Z | defmodule Bolt.Sips.Internals.BoltProtocolBoltV3Test do
use ExUnit.Case, async: true
@moduletag :bolt_v3
alias Bolt.Sips.Internals.BoltProtocol
alias Bolt.Sips.Metadata
alias Bolt.Sips.Utils
setup do
app_config = Application.get_env(:bolt_sips, Bolt)
port = Keyword.get(app_config, :port, 7687)
... | 32.206522 | 98 | 0.530543 |
4aa88f1ef905224d00c144eecec31f6274d9f059 | 67 | ex | Elixir | lib/teslamate_web/views/import_view.ex | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2021-10-31T13:22:49.000Z | 2021-10-31T13:22:49.000Z | lib/teslamate_web/views/import_view.ex | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2021-05-12T00:04:50.000Z | 2021-05-12T00:04:50.000Z | lib/teslamate_web/views/import_view.ex | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2019-10-24T13:17:57.000Z | 2019-10-24T13:17:57.000Z | defmodule TeslaMateWeb.ImportView do
use TeslaMateWeb, :view
end
| 16.75 | 36 | 0.820896 |
4aa8b5127b8020ddd2b46d2f11cc532caea38afb | 1,121 | exs | Elixir | config/config.exs | keiththomps/wargaming | 2b5cbdef49744906930574835cb2d70bc4c987d7 | [
"MIT"
] | null | null | null | config/config.exs | keiththomps/wargaming | 2b5cbdef49744906930574835cb2d70bc4c987d7 | [
"MIT"
] | null | null | null | config/config.exs | keiththomps/wargaming | 2b5cbdef49744906930574835cb2d70bc4c987d7 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.756467 |
4aa8dd7c9b9613f1feb8d8b3fd7e00e031758c04 | 23,756 | ex | Elixir | lib/builtins.ex | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | 60 | 2018-01-12T12:53:13.000Z | 2022-02-23T23:32:59.000Z | lib/builtins.ex | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | 1 | 2018-02-22T13:09:08.000Z | 2018-02-22T18:33:53.000Z | lib/builtins.ex | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | null | null | null | require Logger
require Integer
defmodule ExoSQL.Builtins do
@moduledoc """
Builtin functions.
There are two categories, normal functions and aggregate functions. Aggregate
functions receive as first parameter a ExoSQL.Result with a full table,
and the rest of parameters are the function calling parameters, ... | 25.737811 | 127 | 0.601406 |
4aa8e80b483956accbf74f1c8e54faa7aef5250a | 599 | exs | Elixir | priv/repo/migrations/20210617202341_recreate_statistics.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | priv/repo/migrations/20210617202341_recreate_statistics.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | priv/repo/migrations/20210617202341_recreate_statistics.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMini.Repo.Migrations.RecreateStatistics do
use PolicrMini.Migration
alias PolicrMini.EctoEnums.StatVerificationStatus
def change do
create table(:statistics) do
add :chat_id, references(:chats), comment: "群组编号"
add :verifications_count, :integer, comment: "验证次数"
add :langua... | 31.526316 | 78 | 0.707846 |
4aa9416f10f8cacd3d605bfe408c679053ab0412 | 4,487 | ex | Elixir | lib/hui/url.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | null | null | null | lib/hui/url.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | null | null | null | lib/hui/url.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | null | null | null | defmodule Hui.URL do
@moduledoc """
Struct and utilities for working with Solr URLs and parameters.
Use the module `t:Hui.URL.t/0` struct to specify
Solr core or collection URLs with request handlers.
### Hui URL endpoints
```
# binary
url = "http://localhost:8983/solr/collection"
Hui.search(... | 34.251908 | 158 | 0.662804 |
4aa95e3b4a72586bcf9acf97d8e36b8e12b9f5a8 | 4,025 | ex | Elixir | lib/workex/aggregate.ex | odp/workex | 5596cb87e37015a0c04ddc53bce8059a4a0c087b | [
"MIT"
] | 1 | 2015-01-15T18:57:39.000Z | 2015-01-15T18:57:39.000Z | lib/workex/aggregate.ex | odp/workex | 5596cb87e37015a0c04ddc53bce8059a4a0c087b | [
"MIT"
] | null | null | null | lib/workex/aggregate.ex | odp/workex | 5596cb87e37015a0c04ddc53bce8059a4a0c087b | [
"MIT"
] | null | null | null | defprotocol Workex.Aggregate do
@moduledoc """
Specifies the protocol used by `Workex` behaviour to aggregate incoming messages.
"""
@doc "Value that contains aggregated messages which are passed to the worker process."
@type value :: any
@doc "Adds the new item to the aggregate."
@spec add(t, any) :: t... | 28.75 | 88 | 0.703106 |
4aa966605cacaa76368f70a7526666a8df406475 | 382 | ex | Elixir | lib/find_a_fluff_web/views/error_view.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | 1 | 2018-06-03T15:37:23.000Z | 2018-06-03T15:37:23.000Z | lib/find_a_fluff_web/views/error_view.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | null | null | null | lib/find_a_fluff_web/views/error_view.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | null | null | null | defmodule FindAFluffWeb.ErrorView do
use FindAFluffWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_t... | 21.222222 | 47 | 0.706806 |
4aa9a338008d56427e77ac5124f071c6b6b7ff16 | 3,452 | exs | Elixir | test/control_node/namespace/deploy_test.exs | beamX/control-node | 5f054ca1318abc1184c2c881f1e76f6486878dfe | [
"MIT"
] | 20 | 2021-09-09T09:26:02.000Z | 2022-01-16T18:48:11.000Z | test/control_node/namespace/deploy_test.exs | beamX/control-node | 5f054ca1318abc1184c2c881f1e76f6486878dfe | [
"MIT"
] | 5 | 2020-09-19T09:46:05.000Z | 2020-10-31T10:33:03.000Z | test/control_node/namespace/deploy_test.exs | beamX/control-node | 5f054ca1318abc1184c2c881f1e76f6486878dfe | [
"MIT"
] | 1 | 2020-10-25T10:34:30.000Z | 2020-10-25T10:34:30.000Z | defmodule ControlNode.Namespace.DeployTest do
use ExUnit.Case, async: false
import Mock
import ControlNode.Factory
alias ControlNode.{Release, Namespace, Namespace.Workflow}
@moduletag capture_log: true
describe "handle_event/4 [:ensure_running, version]" do
setup_with_mocks([
{Release, [],
... | 35.22449 | 98 | 0.672943 |
4aa9ae051681c186529456d87a8d9ba74a979ac6 | 1,488 | ex | Elixir | lib/bike_brigade_web/live/sms_message_live/form_component.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade_web/live/sms_message_live/form_component.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade_web/live/sms_message_live/form_component.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigadeWeb.SmsMessageLive.FormComponent do
use BikeBrigadeWeb, :live_component
alias BikeBrigade.Messaging
alias BikeBrigade.Riders
alias BikeBrigade.SmsService
@impl true
def mount(socket) do
changeset =
Messaging.new_sms_message()
|> Messaging.send_sms_message_changeset()
... | 27.054545 | 90 | 0.691532 |
4aaa36e840ddc0fceac0d59be8572d40c235e5c9 | 52 | exs | Elixir | test/test_helper.exs | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 9 | 2017-12-17T02:58:48.000Z | 2018-11-07T13:48:50.000Z | test/test_helper.exs | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 35 | 2020-08-12T16:04:46.000Z | 2022-03-24T04:07:16.000Z | test/test_helper.exs | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 3 | 2017-12-12T23:57:20.000Z | 2018-03-03T22:13:38.000Z | ExUnit.start()
ExUnit.configure(timeout: :infinity)
| 17.333333 | 36 | 0.788462 |
4aaa50264f2061ff1175e835a8cfdfbb2faf69c0 | 1,334 | exs | Elixir | apps/demon_spirit_game/test/chat_server_test.exs | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 12 | 2019-09-17T13:47:57.000Z | 2021-12-11T17:11:11.000Z | apps/demon_spirit_game/test/chat_server_test.exs | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 181 | 2019-10-15T01:21:44.000Z | 2021-08-31T19:26:54.000Z | apps/demon_spirit_game/test/chat_server_test.exs | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 2 | 2020-07-11T02:18:46.000Z | 2021-05-31T10:46:39.000Z | defmodule ChatServerTest do
use ExUnit.Case, async: true
alias DemonSpiritGame.{ChatServer}
describe "start_link/1" do
test "spawns a process" do
chat_name = generate_chat_name()
assert {:ok, _pid} = ChatServer.start_link(chat_name)
end
test "each name can only have one process" do
... | 26.68 | 65 | 0.667166 |
4aaa795a794f0fa1d7260398ceaab6cd280f06b6 | 2,080 | ex | Elixir | web/models/board.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/models/board.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/models/board.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | defmodule ExTrello.Board do
use ExTrello.Web, :model
alias __MODULE__
alias ExTrello.{Repo, Permalink, List, Comment, Card, UserBoard, User}
@primary_key {:id, Permalink, autogenerate: true}
schema "boards" do
field :name, :string
field :slug, :string
belongs_to :user, User
has_many :lists... | 25.060241 | 104 | 0.669231 |
4aaac405ce0124d7e03872377400b1993f40c7d3 | 2,134 | ex | Elixir | lib/controller/controller.ex | diegonogueira/essencial | 4de662ada8f559a49d9a389c3f3d0d99ba187dad | [
"MIT"
] | 1 | 2020-04-14T15:29:55.000Z | 2020-04-14T15:29:55.000Z | lib/controller/controller.ex | diegonogueira/skeleton | 6e87a74b9cae14e2c735b532568a2cc41655766a | [
"MIT"
] | null | null | null | lib/controller/controller.ex | diegonogueira/skeleton | 6e87a74b9cae14e2c735b532568a2cc41655766a | [
"MIT"
] | null | null | null | defmodule SkeletonLegacy.Controller do
import Plug.Conn
defmacro __using__(_) do
alias SkeletonLegacy.Controller, as: Ctrl
quote do
def ensure_authenticated(%{halted: true} = conn), do: conn
def ensure_authenticated(conn), do: Ctrl.ensure_authenticated(__MODULE__, conn)
def ensure_not_a... | 31.850746 | 93 | 0.676195 |
4aaae5f3cf266b3d63269f405d1d54d9821e55ce | 6,032 | exs | Elixir | lib/elixir/test/elixir/module/locals_tracker_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/test/elixir/module/locals_tracker_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/locals_tracker_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Module.LocalsTrackerTest do
use ExUnit.Case, async: true
alias Module.LocalsTracker, as: D
setup do
{:ok, pid} = D.start_link
{:ok, [pid: pid]}
end
## Locals
test "can add definitions", config do
D.add_definition(config[:pid], :def, ... | 34.272727 | 95 | 0.637268 |
4aab3adba7566023a3b06d8aaa037898618735bf | 1,912 | exs | Elixir | config/dev.exs | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | config/dev.exs | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | config/dev.exs | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :slackin_ex, SlackinEx.Web.Endpoint,
http: [po... | 34.142857 | 170 | 0.702929 |
4aab9fe3fe05314ec685d1e3f1034d53dc144188 | 1,783 | ex | Elixir | clients/gke_hub/lib/google_api/gke_hub/v1/model/resource_manifest.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/resource_manifest.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/resource_manifest.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... | 35.66 | 265 | 0.733034 |
4aabadc356e891b910fe13321c411674197629ae | 3,097 | ex | Elixir | apps/nerves_hub_api/lib/nerves_hub_api_web/controllers/deployment_controller.ex | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | 1 | 2019-10-13T10:56:28.000Z | 2019-10-13T10:56:28.000Z | apps/nerves_hub_api/lib/nerves_hub_api_web/controllers/deployment_controller.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_api/lib/nerves_hub_api_web/controllers/deployment_controller.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubAPIWeb.DeploymentController do
use NervesHubAPIWeb, :controller
alias NervesHubWebCore.{Deployments, Firmwares}
alias NervesHubWebCore.Deployments.Deployment
action_fallback(NervesHubAPIWeb.FallbackController)
plug(:validate_role, [product: :delete] when action in [:delete])
plug(:vali... | 39.202532 | 90 | 0.659994 |
4aabcd66e9ce3f0e4c1e8cc8df1b5511d57f5de7 | 1,719 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/iam_policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/iam_policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/iam_policy.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... | 33.057692 | 124 | 0.744619 |
4aac09fa9030ce4e949586196b41bc250e90ebf7 | 330 | exs | Elixir | test/stellar/metrics_test.exs | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 25 | 2018-01-23T13:56:28.000Z | 2021-11-08T08:10:53.000Z | test/stellar/metrics_test.exs | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 91 | 2018-01-30T20:10:44.000Z | 2022-01-12T19:50:24.000Z | test/stellar/metrics_test.exs | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 5 | 2018-04-17T15:08:26.000Z | 2019-08-07T19:08:49.000Z | defmodule Stellar.Metrics.Test do
use Stellar.HttpCase
alias Stellar.Metrics
test "get metrics", %{bypass: bypass} do
Bypass.expect_once(bypass, "GET", "/metrics", fn conn ->
Plug.Conn.resp(conn, 200, ~s<{"goroutines": {"value": 3193}}>)
end)
assert {:ok, %{"goroutines" => _}} = Metrics.get()
... | 25.384615 | 68 | 0.636364 |
4aac11c4855e7c41e10b125fff5c5616de4f92ac | 827 | ex | Elixir | lib/meeseeks_html5ever.ex | szlend/meeseeks_html5ever | 711ce0c49996b49fb18bc77ee5ffabe7feac5802 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/meeseeks_html5ever.ex | szlend/meeseeks_html5ever | 711ce0c49996b49fb18bc77ee5ffabe7feac5802 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/meeseeks_html5ever.ex | szlend/meeseeks_html5ever | 711ce0c49996b49fb18bc77ee5ffabe7feac5802 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-03-23T13:54:10.000Z | 2020-03-23T13:54:10.000Z | defmodule MeeseeksHtml5ever do
@moduledoc """
MeeseeksHtml5ever is intended for internal use by
[Meeseeks](https://github.com/mischov/meeseeks), and parses HTML or XML into
a `Meeseeks.Document`.
"""
@doc """
Parses an HTML string into a `Meeseeks.Document`.
"""
def parse_html(html) do
MeeseeksHt... | 21.763158 | 78 | 0.633615 |
4aac3b6933e0a1678be166b8c0d30280c5d69322 | 858 | ex | Elixir | lib/ada/setup.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 7 | 2019-05-11T12:14:48.000Z | 2021-04-02T18:42:51.000Z | lib/ada/setup.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 3 | 2019-05-11T08:01:47.000Z | 2019-05-14T12:06:50.000Z | lib/ada/setup.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 1 | 2021-01-06T14:57:32.000Z | 2021-01-06T14:57:32.000Z | defmodule Ada.Setup do
@moduledoc false
def ensure_data_directory! do
db_file()
|> Path.dirname()
|> File.mkdir_p!()
end
def ensure_migrations! do
{:ok, pid} = Ada.Repo.start_link([])
Ecto.Migrator.run(Ada.Repo, migrations_path(:ada, Ada.Repo), :up, all: true, log: false)
Ada.Repo.stop(... | 23.833333 | 92 | 0.664336 |
4aac70778cc5d80d0741d3bae0501c95445c2127 | 2,256 | ex | Elixir | lib/conduit_amqp/meta.ex | Moronisauner/conduit_amqp | 453af122b2f98c31034916097ad20b4128b51e7a | [
"MIT"
] | 9 | 2017-02-01T14:12:28.000Z | 2021-07-06T23:22:29.000Z | lib/conduit_amqp/meta.ex | Moronisauner/conduit_amqp | 453af122b2f98c31034916097ad20b4128b51e7a | [
"MIT"
] | 77 | 2018-02-02T19:17:08.000Z | 2021-08-03T05:20:21.000Z | lib/conduit_amqp/meta.ex | Moronisauner/conduit_amqp | 453af122b2f98c31034916097ad20b4128b51e7a | [
"MIT"
] | 10 | 2018-02-02T19:07:44.000Z | 2021-05-05T03:34:41.000Z | defmodule ConduitAMQP.Meta do
@moduledoc false
@type broker :: atom
@type status :: :incomplete | :complete
@type exchange :: String.t()
@type queue :: String.t()
@type binding :: String.t()
@spec create(broker) :: atom
def create(broker) do
broker
|> meta_name()
|> :ets.new([:set, :public... | 24.258065 | 71 | 0.667553 |
4aac8befe9e954573f182b3314da47aab3a7ed69 | 2,003 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/forwarding_rule_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/forwarding_rule_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/forwarding_rule_list_warning_data.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... | 40.06 | 527 | 0.741887 |
4aaca7c1d46f60d4813d3656b2623411536d6f76 | 419 | ex | Elixir | elixir/rosalind/lib/nucleotides.ex | abingham/rosalind | 4757669a7712c02c88dc208e9565ee9c9b7c833f | [
"MIT"
] | null | null | null | elixir/rosalind/lib/nucleotides.ex | abingham/rosalind | 4757669a7712c02c88dc208e9565ee9c9b7c833f | [
"MIT"
] | null | null | null | elixir/rosalind/lib/nucleotides.ex | abingham/rosalind | 4757669a7712c02c88dc208e9565ee9c9b7c833f | [
"MIT"
] | null | null | null | defmodule Rosalind do
defmodule Nucleotides do
def count_single_nucleotide(base, counts) do
base_atom = String.to_atom(base)
Dict.put(counts, base_atom, Dict.fetch!(counts, base_atom) + 1)
end
def count_nucleotides(input) do
Enum.reduce(String.codepoints(input),
%{:A... | 27.933333 | 69 | 0.606205 |
4aad03da6b1aa4649ba3f253cf8fde5706271273 | 7,532 | exs | Elixir | test/kalevala/communication_test.exs | fugufish/kalevala | 34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94 | [
"MIT"
] | 125 | 2020-02-09T17:05:27.000Z | 2022-03-31T03:31:00.000Z | test/kalevala/communication_test.exs | fugufish/kalevala | 34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94 | [
"MIT"
] | 19 | 2020-02-20T02:36:38.000Z | 2021-08-03T16:24:19.000Z | test/kalevala/communication_test.exs | fugufish/kalevala | 34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94 | [
"MIT"
] | 8 | 2020-04-07T05:06:20.000Z | 2021-11-20T06:43:14.000Z | defmodule Kalevala.CommunicationTest do
use ExUnit.Case
alias Kalevala.Event
alias Kalevala.Event.Message
defmodule TestCommunication do
use Kalevala.Communication
end
defmodule BroadcastChannel do
use Kalevala.Communication.Channel
end
defmodule RestrictedChannel do
use Kalevala.Communi... | 31.780591 | 98 | 0.693574 |
4aad17aa22f00e5d9ec46473be0c5e73ae133dab | 1,117 | exs | Elixir | config/test.exs | jellybob/comparator | e9528341366641baa7fa49690fdd6ffa3e2159a0 | [
"MIT"
] | null | null | null | config/test.exs | jellybob/comparator | e9528341366641baa7fa49690fdd6ffa3e2159a0 | [
"MIT"
] | null | null | null | config/test.exs | jellybob/comparator | e9528341366641baa7fa49690fdd6ffa3e2159a0 | [
"MIT"
] | null | null | null | import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
co... | 32.852941 | 86 | 0.767234 |
4aad18f340da1336fbbde5195632bf1e044ef27c | 577 | exs | Elixir | test/elaborate_image/images/images_test.exs | bionikspoon/elaborate_image | bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf | [
"MIT"
] | null | null | null | test/elaborate_image/images/images_test.exs | bionikspoon/elaborate_image | bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf | [
"MIT"
] | null | null | null | test/elaborate_image/images/images_test.exs | bionikspoon/elaborate_image | bd7f2cd413fdf4ae38829dbaf9a8a72c9b8e97cf | [
"MIT"
] | null | null | null | defmodule ElaborateImage.ImagesTest do
use ExUnit.Case, async: true
alias ElaborateImage.Images
alias Exredis.Api, as: R
@url "https://s3.amazonaws.com/elaborate-image/demo/resized/pexels-photo-736008.jpeg"
setup do
R.flushall()
end
describe "find/2" do
test "returns an undefined url result" d... | 23.08 | 87 | 0.670711 |
4aad4692480319dd9eac14d3e634d1701aa05842 | 699 | ex | Elixir | web/controllers/private_page_controller.ex | aforward-oss/phoenix_guardian | c6dbf4e5e8571f42fc14b1437b9ae2e0485fdbb2 | [
"MIT"
] | null | null | null | web/controllers/private_page_controller.ex | aforward-oss/phoenix_guardian | c6dbf4e5e8571f42fc14b1437b9ae2e0485fdbb2 | [
"MIT"
] | null | null | null | web/controllers/private_page_controller.ex | aforward-oss/phoenix_guardian | c6dbf4e5e8571f42fc14b1437b9ae2e0485fdbb2 | [
"MIT"
] | null | null | null | defmodule PhoenixGuardian.PrivatePageController do
@moduledoc """
This controller _must_ have a valid JWT of type "token".
These are only granted when logging in via the browser.
"""
use PhoenixGuardian.Web, :controller
plug Guardian.Plug.EnsureAuthenticated, handler: __MODULE__, typ: "token"
def index(... | 31.772727 | 75 | 0.741059 |
4aad47dbc8bba2654aa809acbaead74163f2f689 | 1,748 | exs | Elixir | test/pile/extras/enum_x_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/pile/extras/enum_x_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/pile/extras/enum_x_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule EnumXTest do
use ExUnit.Case, async: true
def equals(n) do
fn x -> x == n end
end
describe "extract" do
test "splits into an element and the remainder of the list" do
assert {1, [2, 3]} = EnumX.extract([1, 2, 3], equals(1))
assert {2, [1, 3]} = EnumX.extract([1, 2, 3], equals(2))... | 27.746032 | 76 | 0.537757 |
4aad92e697e220a2f76692f731d415dad396417a | 208 | ex | Elixir | lib/hl7/2.3/datatypes/vh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/vh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/vh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.DataTypes.Vh do
@moduledoc false
use HL7.DataType,
fields: [
start_day_range: nil,
end_day_range: nil,
start_hour_range: nil,
end_hour_range: nil
]
end
| 17.333333 | 34 | 0.653846 |
4aad9aeab5e33a971c050fe66b7b36b73442a032 | 1,074 | ex | Elixir | generated-sources/elixir/mojang-sessions/lib/com/github/asyncmc/mojang/sessions/elixir/server/model/player_profile_texture_property_value.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-sessions/lib/com/github/asyncmc/mojang/sessions/elixir/server/model/player_profile_texture_property_value.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-sessions/lib/com/github/asyncmc/mojang/sessions/elixir/server/model/player_profile_texture_property_value.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.github.asyncmc.mojang.sessions.elixir.server.Model.PlayerProfileTexturePropertyValue do
@moduledoc """
This is obtained by decoding the \"... | 29.833333 | 120 | 0.711359 |
4aad9e75da66668480a6bcdc0e47566ee799f2a0 | 1,272 | ex | Elixir | apps/snitch_core/priv/repo/seed/stock_location.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/snitch_core/priv/repo/seed/stock_location.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_core/priv/repo/seed/stock_location.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule Snitch.Seed.StockLocation do
alias Snitch.Core.Tools.MultiTenancy.Repo
alias Snitch.Data.Schema.{State, StockLocation}
def seed!() do
Repo.delete_all(StockLocation)
state = get_state
create_stock_location!(
"default",
"default",
true,
"Oxford Hallmark",
"Stree... | 20.190476 | 80 | 0.590409 |
4aada1b9ba9007d423b2ae29786091f8a52c223f | 5,803 | exs | Elixir | .credo.exs | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 442 | 2015-06-22T00:24:07.000Z | 2021-12-07T21:09:38.000Z | .credo.exs | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 202 | 2015-06-21T18:09:54.000Z | 2021-12-13T15:11:02.000Z | .credo.exs | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 86 | 2015-06-22T16:04:25.000Z | 2021-07-25T08:39:03.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.02069 | 81 | 0.649492 |
4aadafe336c16524401924220914749e9b74e88d | 654 | exs | Elixir | test/tirexs/search_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 384 | 2015-03-09T05:03:42.000Z | 2022-02-27T00:45:58.000Z | test/tirexs/search_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 144 | 2015-03-06T11:19:49.000Z | 2021-06-11T11:26:39.000Z | test/tirexs/search_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 97 | 2015-03-21T13:58:38.000Z | 2022-01-07T14:40:49.000Z | defmodule Tirexs.SearchTest do
use ExUnit.Case
import Tirexs.Search
test "search w/ query, filter" do
search = search do
query do
term "tag", "wow"
end
filter do
term "filter_tag", "wwoww"
end
end
expected = [search: [query: [term: [tag: "wow"]], filter: [t... | 18.166667 | 93 | 0.562691 |
4aadb1cd1ca658fe3e8230f40606d0e05cece6d0 | 4,826 | ex | Elixir | lib/imglab.ex | imglab-io/imglab-ex | 54ca3b0ebfdf6412921ca0c9bc28f0d4508053fa | [
"MIT"
] | null | null | null | lib/imglab.ex | imglab-io/imglab-ex | 54ca3b0ebfdf6412921ca0c9bc28f0d4508053fa | [
"MIT"
] | null | null | null | lib/imglab.ex | imglab-io/imglab-ex | 54ca3b0ebfdf6412921ca0c9bc28f0d4508053fa | [
"MIT"
] | 1 | 2021-12-03T09:00:25.000Z | 2021-12-03T09:00:25.000Z | defmodule Imglab do
@moduledoc """
Provides a set of functions to work with imglab services.
"""
alias Imglab.Source
alias Imglab.Signature
alias Imglab.Utils
@doc """
Returns a formatted URL `string` with the specified parameters.
* `source_name_or_source` must be a `string` indicating a source na... | 37.123077 | 181 | 0.701616 |
4aadb819d56a3c90b5f68ca20ac8e8267cb1b896 | 52 | ex | Elixir | web/views/page_view.ex | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | 3 | 2015-01-13T18:38:37.000Z | 2017-10-27T17:04:09.000Z | web/views/page_view.ex | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | null | null | null | web/views/page_view.ex | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | null | null | null | defmodule Exgitd.PageView do
use Exgitd.View
end
| 10.4 | 28 | 0.788462 |
4aadb8cd290918858fa84fb92d1073981405c5ff | 2,023 | ex | Elixir | lib/koans/09_map_sets.ex | colinwarmstrong/elixir-koans | a70f2a37865011546364a774ba9875a2ab87e272 | [
"MIT"
] | 1 | 2018-08-09T17:29:02.000Z | 2018-08-09T17:29:02.000Z | lib/koans/09_map_sets.ex | colinwarmstrong/elixir-koans | a70f2a37865011546364a774ba9875a2ab87e272 | [
"MIT"
] | null | null | null | lib/koans/09_map_sets.ex | colinwarmstrong/elixir-koans | a70f2a37865011546364a774ba9875a2ab87e272 | [
"MIT"
] | 1 | 2019-03-24T23:56:21.000Z | 2019-03-24T23:56:21.000Z | defmodule MapSets do
use Koans
@intro "My name is Set, MapSet."
@set MapSet.new([1, 2, 3, 4, 5])
koan "I am very similar to a list" do
assert Enum.fetch(@set, 0) == {:ok, 1}
end
koan "However, I do not allow duplication" do
new_set = MapSet.new([1, 1, 2, 3, 3, 3])
assert MapSet.size(new_set... | 24.975309 | 85 | 0.645082 |
4aadd706c8c72128ab2255fd79c9d27026b0625c | 2,250 | exs | Elixir | test/lib/absinthe/middleware/batch_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | test/lib/absinthe/middleware/batch_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | test/lib/absinthe/middleware/batch_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Middleware.BatchTest do
use Absinthe.Case, async: true
defmodule Schema do
use Absinthe.Schema
@organizations 1..3 |> Map.new(&{&1, %{
id: &1,
name: "Organization: ##{&1}"
}})
@users 1..3 |> Enum.map(&%{
id: &1,
name: "User: ##{&1}",
organization_id... | 23.4375 | 196 | 0.509778 |
4aadd841e9bfe3f83f7571989106c59160e63875 | 6,092 | exs | Elixir | lib/elixir/test/elixir/io_test.exs | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/io_test.exs | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/io_test.exs | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule IOTest do
use ExUnit.Case
doctest IO
import ExUnit.CaptureIO
test "read with count" do
{:ok, file} = File.open(Path.expand('fixtures/file.txt', __DIR__), [:charlist])
assert 'FOO' == IO.read(file, 3)
assert File.close(file) == :ok
end
t... | 33.472527 | 94 | 0.599967 |
4aade80ed9cc9b41e68786cfd47d5a659220d57e | 8,022 | ex | Elixir | lib/telnet/options.ex | oestrich/telnet-elixir | 9a1e431d9d67914d83a051a9bb93183b21f34a53 | [
"MIT"
] | 3 | 2019-04-16T22:17:33.000Z | 2019-09-14T06:18:04.000Z | lib/telnet/options.ex | oestrich/telnet-elixir | 9a1e431d9d67914d83a051a9bb93183b21f34a53 | [
"MIT"
] | null | null | null | lib/telnet/options.ex | oestrich/telnet-elixir | 9a1e431d9d67914d83a051a9bb93183b21f34a53 | [
"MIT"
] | null | null | null | defmodule Telnet.Options do
@moduledoc """
Parse telnet IAC options coming from the game
"""
alias Telnet.GMCP
alias Telnet.MSSP
alias Telnet.NewEnviron
alias Telnet.OAuth
@se 240
@nop 241
@ga 249
@sb 250
@will 251
@wont 252
@iac_do 253
@dont 254
@iac 255
@echo 1
@term_type 24
@... | 23.184971 | 91 | 0.597981 |
4aae2b409008960cebbc90b53268a7ae3ead1d73 | 593 | exs | Elixir | priv/repo/seeds.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# PhoenixTrello.Repo.insert!(%PhoenixTrello.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) a... | 23.72 | 61 | 0.667791 |
4aae2bac67eb9e17a4438e2b7c18eb71db4cbfd7 | 3,276 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/expr.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... | 58.5 | 1,092 | 0.737179 |
4aae74fced22118f2bcb50ea5fe8e9fcc4b2a271 | 1,039 | ex | Elixir | lib/autox/utils/session_utils.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | lib/autox/utils/session_utils.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | lib/autox/utils/session_utils.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | defmodule Autox.SessionUtils do
alias Fox.RecordExt
import Plug.Conn
def logged_in?(conn) do
conn
|> get_session(:current_session)
|> case do
nil -> false
_ -> true
end
end
def change(conn, session) do
conn |> put_session(:current_session, session |> serialize)
end
def l... | 19.603774 | 63 | 0.640038 |
4aaec46fce28eb94fdf2793c505a2cb884ece705 | 2,418 | ex | Elixir | lib/norm/spec/selection.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | lib/norm/spec/selection.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | lib/norm/spec/selection.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | defmodule Norm.Spec.Selection do
@moduledoc false
# Provides the definition for selections
defstruct [subset: nil]
alias Norm.Schema
alias Norm.SpecError
def new(schema, path) do
select(schema, path, %{})
end
defp select(_, [], selection), do: %__MODULE__{subset: selection}
defp select(schema,... | 24.18 | 81 | 0.538875 |
4aaed1e0a655f294096ca216f0988ad10f49fc5b | 273 | ex | Elixir | apps/speedrun_blog_engine/lib/speedrun_blog_engine.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | null | null | null | apps/speedrun_blog_engine/lib/speedrun_blog_engine.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | 1 | 2021-04-12T17:10:05.000Z | 2021-04-12T17:10:05.000Z | apps/speedrun_blog_engine/lib/speedrun_blog_engine.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | null | null | null | defmodule SpeedrunBlogEngine do
@moduledoc """
SpeedrunBlogEngine 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
| 27.3 | 66 | 0.772894 |
4aaf01c3059a2c8aa49ba35da45369ada8e4ffdc | 38,440 | ex | Elixir | lib/nadia.ex | cplotter/nadia | a3cb8f8249903a76cbff281c0773087a437df215 | [
"MIT"
] | null | null | null | lib/nadia.ex | cplotter/nadia | a3cb8f8249903a76cbff281c0773087a437df215 | [
"MIT"
] | 5 | 2022-02-23T20:34:30.000Z | 2022-03-24T20:38:19.000Z | lib/nadia.ex | cplotter/nadia | a3cb8f8249903a76cbff281c0773087a437df215 | [
"MIT"
] | null | null | null | defmodule Nadia do
@moduledoc """
Provides access to Telegram Bot API.
## Reference
https://core.telegram.org/bots/api#available-methods
"""
alias Nadia.Model.{User, Message, Update, UserProfilePhotos, File, Error, WebhookInfo}
import Nadia.API
@behaviour Nadia.Behaviour
@doc """
A simple metho... | 42.663707 | 108 | 0.709053 |
4aaf0546445f40a8bb51114d785ee7cabe2b9229 | 265 | exs | Elixir | farmbot_os/test/easter_eggs_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_os/test/easter_eggs_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_os/test/easter_eggs_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotOS.EasterEggsTest do
use ExUnit.Case
use Mimic
setup :verify_on_exit!
alias FarmbotOS.EasterEggs
test "load_data/0" do
%{"verbs" => verbs} = EasterEggs.load_data()
idk = "¯\\_(ツ)_/¯"
assert Enum.member?(verbs, idk)
end
end
| 20.384615 | 48 | 0.675472 |
4aaf14b89b6868c6243822d315141736b7139ccc | 1,456 | ex | Elixir | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.666667 | 282 | 0.757555 |
4aaf34a4d5152c46f1d6e712db1850124f00999f | 3,579 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/path_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/path_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/path_rule.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... | 63.910714 | 614 | 0.754401 |
4aaf3dcbb74be91afa4cfa504af0b8d11503bc26 | 1,236 | exs | Elixir | test/http_proxy/utils/file_test.exs | KazuCocoa/http_proxy | f8050af0ecb6629e2c4e6c3e7507de3af5a108e5 | [
"MIT"
] | 62 | 2015-11-08T05:16:22.000Z | 2021-12-24T21:23:30.000Z | test/http_proxy/utils/file_test.exs | KazuCocoa/http_proxy | f8050af0ecb6629e2c4e6c3e7507de3af5a108e5 | [
"MIT"
] | 30 | 2015-12-18T03:38:07.000Z | 2021-06-25T15:16:18.000Z | test/http_proxy/utils/file_test.exs | KazuCocoa/http_proxy | f8050af0ecb6629e2c4e6c3e7507de3af5a108e5 | [
"MIT"
] | 9 | 2016-01-17T06:57:21.000Z | 2022-02-17T08:42:39.000Z | defmodule HttpProxy.Utils.FileTest do
use ExUnit.Case, async: true
use Plug.Test
alias HttpProxy.Utils.File, as: HttpProxyFile
doctest HttpProxy.Utils.File
doctest HttpProxy.Utils
test "check read json files" do
json_test_dir = "test/data/mappings"
json_file_path = [
"test/data/mappings/sa... | 30.146341 | 97 | 0.641586 |
4aaf4a111a383facc3aeba7146a9bdd26bb51dfa | 61 | ex | Elixir | lib/bitpal_web/views/layout_view.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal_web/views/layout_view.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal_web/views/layout_view.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPalWeb.LayoutView do
use BitPalWeb, :view
end
| 15.25 | 33 | 0.803279 |
4aaf778a0bb58c1190d31281dcd846cdda463b7c | 1,524 | exs | Elixir | test/camino_challenge/pessoas/repositories/pessoas_fisicas_test.exs | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | test/camino_challenge/pessoas/repositories/pessoas_fisicas_test.exs | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | test/camino_challenge/pessoas/repositories/pessoas_fisicas_test.exs | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | defmodule CaminoChallenge.Pessoas.Repositories.PessoasFisicasTest do
use CaminoChallenge.DataCase
require Logger
alias CaminoChallenge.Pessoas.Repositories.PessoaFisicaRepository
describe "pessoas_fisicas" do
alias CaminoChallenge.Fixtures.PessoaFisicaFixture
alias CaminoChallenge.Pessoas.Entities.Pess... | 34.636364 | 79 | 0.704724 |
4aaf889fd699e60577d83691c3d00314adf14093 | 1,013 | exs | Elixir | config/config.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | config/config.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | config/config.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :skillset,
ecto_repos: [Skillset.Repo]
... | 32.677419 | 86 | 0.771964 |
4aafab4ea610b8a35ebae05789a14de01fe5935d | 2,382 | ex | Elixir | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/google_location.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/google_location.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/google_location.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... | 44.943396 | 245 | 0.74937 |
4aafaf07180a9d026882f93d85e4e04a7ff8e227 | 2,250 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/handler.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... | 39.473684 | 153 | 0.736889 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.