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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21dcdc0001a1a6c23259d2505515ddcb8cc44a8b | 2,414 | ex | Elixir | lib/findmy_personal_web.ex | carlosviana/find_mypersonal | 6fadea6135b074a296c6f2a501a694b5222ec6db | [
"MIT"
] | null | null | null | lib/findmy_personal_web.ex | carlosviana/find_mypersonal | 6fadea6135b074a296c6f2a501a694b5222ec6db | [
"MIT"
] | 6 | 2021-07-06T17:41:35.000Z | 2021-07-10T10:26:30.000Z | lib/findmy_personal_web.ex | carlosviana/find_mypersonal | 6fadea6135b074a296c6f2a501a694b5222ec6db | [
"MIT"
] | null | null | null | defmodule FindmyPersonalWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use FindmyPersonalWeb, :controller
use FindmyPersonalWeb, :view
The definitions below will be executed for every... | 23.211538 | 78 | 0.693869 |
21dce4d54c02ca1cf3d566e9508965b8d5e42daf | 12,955 | ex | Elixir | installer/lib/phx_new/generator.ex | starkeepers/phoenix | 3e04a29a90a0d256aae50f7953733a4f83177002 | [
"MIT"
] | null | null | null | installer/lib/phx_new/generator.ex | starkeepers/phoenix | 3e04a29a90a0d256aae50f7953733a4f83177002 | [
"MIT"
] | null | null | null | installer/lib/phx_new/generator.ex | starkeepers/phoenix | 3e04a29a90a0d256aae50f7953733a4f83177002 | [
"MIT"
] | null | null | null | defmodule Phx.New.Generator do
@moduledoc false
import Mix.Generator
alias Phx.New.{Project}
@phoenix Path.expand("../..", __DIR__)
@phoenix_version Version.parse!(Mix.Project.config()[:version])
@callback prepare_project(Project.t()) :: Project.t()
@callback generate(Project.t()) :: Project.t()
defm... | 31.216867 | 105 | 0.62856 |
21dce67c31539a93f693447685ce1a707889b6c3 | 5,426 | ex | Elixir | lib/ueberauth/strategy/keycloak/oauth.ex | Liftitapp/ueberauth_keycloak | 58a9db8b2aeb3f04e60779725f437893a2aba271 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/keycloak/oauth.ex | Liftitapp/ueberauth_keycloak | 58a9db8b2aeb3f04e60779725f437893a2aba271 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/keycloak/oauth.ex | Liftitapp/ueberauth_keycloak | 58a9db8b2aeb3f04e60779725f437893a2aba271 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Keycloak.OAuth do
@moduledoc """
An implementation of OAuth2 for keycloak.
To add your `client_id` and `client_secret` include these values in your configuration.
config :ueberauth, Ueberauth.Strategy.Keycloak.OAuth,
client_id: System.get_env("KEYCLOAK_CLIENT_ID"),
... | 33.9125 | 112 | 0.639698 |
21dd0e3181b0fa385e045050a689de5c22cb3b26 | 2,122 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance_deployment_status_deployed_route.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance_deployment_status_deployed_route.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance_deployment_status_deployed_route.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.786885 | 142 | 0.720547 |
21dd12d625f1c3309700ff95635599536cb55ffa | 21,415 | ex | Elixir | lib/phoenix/test/conn_test.ex | type1fool/phoenix | 068331c079d61c64b32f42a8bf6cd9797bbc04cb | [
"MIT"
] | null | null | null | lib/phoenix/test/conn_test.ex | type1fool/phoenix | 068331c079d61c64b32f42a8bf6cd9797bbc04cb | [
"MIT"
] | 1 | 2020-11-08T08:30:10.000Z | 2020-11-08T08:30:10.000Z | lib/phoenix/test/conn_test.ex | Mattlk13/phoenix | ec06fb3a6ae9fc0f6795dd9e19f62c5ce731248c | [
"MIT"
] | null | null | null | defmodule Phoenix.ConnTest do
@moduledoc """
Conveniences for testing Phoenix endpoints and connection related helpers.
You likely want to use this module or make it part of your `ExUnit.CaseTemplate`.
Once used, this module automatically imports all functions defined here as
well as the functions in `Plug.C... | 31.86756 | 116 | 0.681018 |
21dd16e910dcfe0c9427e96789daaed7e574ac97 | 69 | ex | Elixir | test/fixtures/delegate.ex | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | 16 | 2020-05-28T20:41:45.000Z | 2022-03-29T13:51:14.000Z | test/fixtures/delegate.ex | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | null | null | null | test/fixtures/delegate.ex | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | 1 | 2021-08-23T02:51:47.000Z | 2021-08-23T02:51:47.000Z | defmodule Delegate do
defdelegate now(time_zone), to: DateTime
end
| 17.25 | 42 | 0.797101 |
21dd305192f22ebe3a5ef173dff72118dcb1e71d | 44,647 | exs | Elixir | lib/elixir/test/elixir/typespec_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-11-12T22:34:19.000Z | 2018-11-12T22:34:19.000Z | lib/elixir/test/elixir/typespec_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/typespec_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
# Holds tests for both Kernel.Typespec and Code.Typespec
defmodule TypespecTest do
use ExUnit.Case, async: true
alias TypespecTest.TypespecSample
defstruct [:hello]
defmacrop test_module(do: block) do
quote do
{:module, _, bytecode, _} =
defmodu... | 33.900532 | 110 | 0.535131 |
21dd418d901efb33b4ef7de3a4be2cb5ef27d366 | 396 | ex | Elixir | sources/Chapter12/fizzbuzz1.ex | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | sources/Chapter12/fizzbuzz1.ex | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | sources/Chapter12/fizzbuzz1.ex | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | defmodule FizzBuzz do
def upto(n) when n > 0, do: _downto(n, [])
defp _downto(0, result), do: result
defp _downto(current, result) do
next_answer = cond do
rem(current, 3) == 0 and rem(current, 5) == 0 -> "FizzBuzz"
rem(current, 3) == 0 -> "Fizz"
rem(current, 5) == 0 -> "Buzz"
true ->... | 26.4 | 65 | 0.583333 |
21dd4942e2b33888dead9b85cd8b5353475a6e34 | 978 | ex | Elixir | test/support/channel_case.ex | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | 2 | 2021-03-10T06:19:38.000Z | 2021-05-11T02:11:14.000Z | test/support/channel_case.ex | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | defmodule FullStackorySlackWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case i... | 25.736842 | 79 | 0.726994 |
21dd866bf680cc4e5bdabb53644dba226686fecc | 922 | ex | Elixir | lib/githubist_web/schema/enums.ex | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | lib/githubist_web/schema/enums.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | lib/githubist_web/schema/enums.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule GithubistWeb.Schema.Enums do
@moduledoc """
Enums that used in all across the schema
"""
use Absinthe.Schema.Notation
enum :developer_order_field do
value(:name)
value(:username)
value(:score)
value(:total_starred)
value(:followers)
value(:github_created_at)
end
enum :... | 18.078431 | 42 | 0.677874 |
21dd8c211f6b862f872e488fc908f665561095cd | 26,502 | exs | Elixir | lib/elixir/test/elixir/kernel/parser_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/test/elixir/kernel/parser_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/test/elixir/kernel/parser_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ParserTest do
use ExUnit.Case, async: true
describe "unary ops" do
test "in keywords" do
assert parse!("f(!: :ok)") == {:f, [line: 1], [[!: :ok]]}
assert parse!("f @: :ok") == {:f, [line: 1], [[@: :ok]]}
end
test "ambiguous... | 32.358974 | 266 | 0.536526 |
21ddb6ffc0d86c5ad2d43cce254376b4d96ee9da | 264 | ex | Elixir | test/support/content.ex | francolucas/slugy | ab6a77d01a68e5700a8c8f0340fe368a9b0423e3 | [
"MIT"
] | null | null | null | test/support/content.ex | francolucas/slugy | ab6a77d01a68e5700a8c8f0340fe368a9b0423e3 | [
"MIT"
] | null | null | null | test/support/content.ex | francolucas/slugy | ab6a77d01a68e5700a8c8f0340fe368a9b0423e3 | [
"MIT"
] | null | null | null | defmodule Slugy.Support.Content do
use Ecto.Schema
embedded_schema do
field(:name, :string)
field(:type, :string)
end
end
defimpl Slugy.Slug, for: Slugy.Support.Content do
def to_slug(%{name: name, type: type}) do
"#{name} #{type}"
end
end
| 17.6 | 49 | 0.674242 |
21dde5aef64540956fa81b5d3fb34627b05aa450 | 2,140 | exs | Elixir | exercises/rail-fence-cipher/rail_fence_cipher_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/rail-fence-cipher/rail_fence_cipher_test.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/rail-fence-cipher/rail_fence_cipher_test.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("rail_fence_cipher.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule RailFenceCipherTest do
use ExUnit.Case
# @tag :pending
test "encode with ending at the first rail" do
assert RailFenceCipher.encode("... | 26.75 | 93 | 0.702336 |
21de06641117ac04f986ee00a377aeabe3851fc7 | 339 | exs | Elixir | test/jeff_bank/contas/login_test.exs | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | test/jeff_bank/contas/login_test.exs | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | test/jeff_bank/contas/login_test.exs | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | defmodule JeffBank.Contas.LoginTest do
use JeffBank.DataCase, async: true
use JeffBank.TestUtils
alias JeffBank.Contas.Login
describe "call/2" do
test "quando parâmetros válidos, deve retornar token jwt" do
conta = criar_conta()
assert {:ok, _token, _decoded} = Login.call(conta.cpf, "123456")... | 22.6 | 70 | 0.707965 |
21de0d534fb1a759a3755987e59328b7adc83d6b | 3,813 | exs | Elixir | test/models/item/food/ingredient_list_test.exs | ZURASTA/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 1 | 2017-06-15T11:20:27.000Z | 2017-06-15T11:20:27.000Z | test/models/item/food/ingredient_list_test.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | null | null | null | test/models/item/food/ingredient_list_test.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 2 | 2017-07-25T10:16:19.000Z | 2017-08-02T06:54:22.000Z | defmodule Bonbon.Model.Item.Food.IngredientListTest do
use Bonbon.ModelCase
alias Bonbon.Model.Item.Food.IngredientList
@valid_model %IngredientList{
food_id: 1,
ingredient_id: 1,
addon: false,
price: Decimal.new(1),
currency: "AUD"
}
test "empty" do
... | 39.309278 | 190 | 0.643063 |
21de93b2f7ffce95b76273e58c9a8a87024575e3 | 1,014 | ex | Elixir | apps/hometree/lib/hometree/endpoint.ex | sheltont/pandora | a83a67000cfd1171bca90fade9de4a69bec3587f | [
"MIT"
] | null | null | null | apps/hometree/lib/hometree/endpoint.ex | sheltont/pandora | a83a67000cfd1171bca90fade9de4a69bec3587f | [
"MIT"
] | null | null | null | apps/hometree/lib/hometree/endpoint.ex | sheltont/pandora | a83a67000cfd1171bca90fade9de4a69bec3587f | [
"MIT"
] | null | null | null | defmodule Hometree.Endpoint do
use Phoenix.Endpoint, otp_app: :hometree
socket "/socket", Hometree.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static... | 25.35 | 69 | 0.711045 |
21dec4c7e577dac8575c6c582dbdfdb26ceef781 | 934 | ex | Elixir | apps/wifi/lib/wifi/network_wrapper.ex | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | 1 | 2018-12-30T04:37:15.000Z | 2018-12-30T04:37:15.000Z | apps/wifi/lib/wifi/network_wrapper.ex | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | apps/wifi/lib/wifi/network_wrapper.ex | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | defmodule Wifi.NetworkWrapper do
@moduledoc """
Responsible for setting up WiFi with `Nerves.Network`.
Uses `WiFi.Settings` to access the WiFi config in such a way that the SSID and secret can be overwritten
without having to replace the firmware image.
By setting up the WiFi in a process we can take the co... | 25.944444 | 106 | 0.722698 |
21ded73245829cb8575236462ac899a988903124 | 1,174 | exs | Elixir | mix.exs | GregMefford/custom_rpi0 | ce2f34f3b8642393defb535e1b9477b672409151 | [
"Apache-2.0"
] | null | null | null | mix.exs | GregMefford/custom_rpi0 | ce2f34f3b8642393defb535e1b9477b672409151 | [
"Apache-2.0"
] | null | null | null | mix.exs | GregMefford/custom_rpi0 | ce2f34f3b8642393defb535e1b9477b672409151 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi0.Mixfile do
use Mix.Project
@version Path.join(__DIR__, "VERSION")
|> File.read!
|> String.trim
def project do
[app: :nerves_system_rpi0,
version: @version,
elixir: "~> 1.3",
compilers: Mix.compilers ++ [:nerves_package],
description: description(),
... | 26.681818 | 195 | 0.61925 |
21dedd2870c5de19043d0ccbd5eec8c13c93c751 | 970 | ex | Elixir | lib/request_cache/util.ex | MikaAK/request_cache_plug | de5c413b686e4dc71cf2bb7c8784353a404acf32 | [
"MIT"
] | 3 | 2022-03-27T22:42:09.000Z | 2022-03-28T17:50:37.000Z | lib/request_cache/util.ex | MikaAK/request_cache_plug | de5c413b686e4dc71cf2bb7c8784353a404acf32 | [
"MIT"
] | null | null | null | lib/request_cache/util.ex | MikaAK/request_cache_plug | de5c413b686e4dc71cf2bb7c8784353a404acf32 | [
"MIT"
] | 1 | 2022-03-28T17:48:58.000Z | 2022-03-28T17:48:58.000Z | defmodule RequestCache.Util do
require Logger
@moduledoc false
def parse_gql_name(query_string) do
case Regex.run(~r/^(?:query) ([^\({]+(?=\(|{))/, query_string, capture: :all_but_first) do
[query_name] -> String.trim(query_name)
_ -> nil
end
end
def merge_default_opts(opts) do
Keyw... | 25.526316 | 142 | 0.693814 |
21dede372aa8ce8493af9a0648f82327858181d4 | 1,616 | ex | Elixir | lib/streamex/request.ex | avail-app/streamex | ef20ad00454428d7a84f827e8dc1434f68119ee1 | [
"MIT"
] | 1 | 2018-04-25T23:50:01.000Z | 2018-04-25T23:50:01.000Z | lib/streamex/request.ex | logit-ai/streamex | ef20ad00454428d7a84f827e8dc1434f68119ee1 | [
"MIT"
] | 1 | 2018-07-19T18:13:40.000Z | 2018-07-19T18:13:40.000Z | lib/streamex/request.ex | logit-ai/streamex | ef20ad00454428d7a84f827e8dc1434f68119ee1 | [
"MIT"
] | null | null | null | defmodule Streamex.Request do
@moduledoc """
The `Streamex.Request` module wraps `Streamex.Client` requests.
It's not meant to be used directly, although functions are
publicly available in case of need.
"""
alias Streamex.{Config, Token}
@default_headers [
{"content-type", "application/json"}
]
... | 20.455696 | 78 | 0.612624 |
21deed05326bc6903b1f3ed8355bf33bd8e46f69 | 1,636 | ex | Elixir | lib/web/endpoint.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/web/endpoint.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/web/endpoint.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule Web.Endpoint do
use Phoenix.Endpoint, otp_app: :challenge_gov
plug RemoteIp
plug CORSPlug
if Application.get_env(:challenge_gov, :sql_sandbox) do
plug Phoenix.Ecto.SQL.Sandbox
end
@session_options [
store: :cookie,
key: "_challenge_gov_key",
signing_salt: "+S7HWPoL"
]
socke... | 25.968254 | 97 | 0.706601 |
21deed245a58d5cd5e306ecad0512e961ed3b4b3 | 639 | ex | Elixir | lib/test.ex | batate/elixir-animations | 4637e76b9d0266e18d929d4146cfc6efb23046f1 | [
"MIT"
] | null | null | null | lib/test.ex | batate/elixir-animations | 4637e76b9d0266e18d929d4146cfc6efb23046f1 | [
"MIT"
] | null | null | null | lib/test.ex | batate/elixir-animations | 4637e76b9d0266e18d929d4146cfc6efb23046f1 | [
"MIT"
] | null | null | null | defmodule Test do
def frames() do
"""
1
2
3
4
5
6
7
8
=====
1
2
3
4
5
6
7
8
=====
1
2
3
4
5
6
7
8
=====
1
2
3
4
5
6
7
8
=====
1
2
3
4
5
6
7... | 6.726316 | 17 | 0.175274 |
21def72c4799698fb7c007418965c2af25f28814 | 1,844 | exs | Elixir | mix.exs | Youimmi/coffee_compiler | f809a7514e52b43e1c247056f036fc07b6d03199 | [
"MIT"
] | 3 | 2019-12-07T18:59:04.000Z | 2020-11-22T14:51:03.000Z | mix.exs | Youimmi/coffee_compiler | f809a7514e52b43e1c247056f036fc07b6d03199 | [
"MIT"
] | null | null | null | mix.exs | Youimmi/coffee_compiler | f809a7514e52b43e1c247056f036fc07b6d03199 | [
"MIT"
] | null | null | null | defmodule CoffeeCompiler.MixProject do
use Mix.Project
@version "0.1.4"
@description """
CoffeeScript core compiler for Elixir
"""
def project do
[
app: :coffee_compiler,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(... | 23.948052 | 84 | 0.569414 |
21df3f40171cd3e3ae2c4780cf6960a6b807046e | 6,368 | ex | Elixir | lib/chat_api_web/controllers/message_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/message_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/message_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.MessageController do
use ChatApiWeb, :controller
use PhoenixSwagger
alias ChatApi.Messages
alias ChatApi.Messages.Message
action_fallback(ChatApiWeb.FallbackController)
plug(:authorize when action in [:show, :update, :delete])
defp authorize(conn, _) do
id = conn.path_params["... | 32.824742 | 94 | 0.652324 |
21df5cc8059158cc675dbfbbdd926a2aa4205433 | 7,684 | ex | Elixir | lib/chess/move/end_move.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 8 | 2018-11-12T13:45:42.000Z | 2022-03-15T14:45:26.000Z | lib/chess/move/end_move.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 1 | 2021-08-30T08:58:53.000Z | 2021-10-13T09:15:36.000Z | lib/chess/move/end_move.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 3 | 2020-12-08T22:32:37.000Z | 2022-01-27T17:54:55.000Z | defmodule Chess.Move.EndMove do
@moduledoc """
Module for checking attacked squares
"""
alias Chess.{Figure, Game, Position}
defmacro __using__(_opts) do
quote do
defp do_end_move(move, game, current_position) do
case game.status do
:completed -> {:error, "The game is over"}
... | 41.989071 | 151 | 0.641072 |
21df68bf550cd3bbce608b43379e01f0f982a9d1 | 165 | ex | Elixir | lib/midifile.ex | lucidstack/elixir-midifile | 7eac20c6da3b84804987a5ec0eb3c6f40bce3a8c | [
"Apache-2.0"
] | 7 | 2016-10-09T06:59:31.000Z | 2022-02-09T22:23:09.000Z | lib/midifile.ex | lucidstack/elixir-midifile | 7eac20c6da3b84804987a5ec0eb3c6f40bce3a8c | [
"Apache-2.0"
] | null | null | null | lib/midifile.ex | lucidstack/elixir-midifile | 7eac20c6da3b84804987a5ec0eb3c6f40bce3a8c | [
"Apache-2.0"
] | 5 | 2016-01-06T17:37:04.000Z | 2022-02-09T22:23:24.000Z | defmodule Midifile do
def read(path) do
Midifile.Reader.read(path)
end
def write(sequence, path) do
Midifile.Writer.write(sequence, path)
end
end
| 13.75 | 41 | 0.70303 |
21df750331a098f64d22affef1a94cefac4f69dd | 1,611 | ex | Elixir | lib/blockfrost/response/cardano/transactions/specific_transaction_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | lib/blockfrost/response/cardano/transactions/specific_transaction_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | lib/blockfrost/response/cardano/transactions/specific_transaction_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Response.SpecificTransactionResponse do
use Blockfrost.Response.BaseSchema
@type t :: %__MODULE__{
hash: String.t(),
block: String.t(),
block_height: integer(),
slot: integer(),
index: integer(),
output_amount: list(Blockfrost.Shared.... | 32.22 | 60 | 0.628181 |
21df75b4fe6a863081fb56811b425c8bdc1013c4 | 267 | ex | Elixir | lib/open_submissions.ex | csfalcione/open-submissions-api | b7af153ebe9c1a9bd487f7fc30a25007bdf2b9c3 | [
"MIT"
] | 7 | 2019-02-11T14:31:24.000Z | 2021-12-28T08:15:00.000Z | lib/open_submissions.ex | tblount/open-submissions-api | fb7395175e8079a659bc65ff7c5a7f1f4fc4b422 | [
"MIT"
] | null | null | null | lib/open_submissions.ex | tblount/open-submissions-api | fb7395175e8079a659bc65ff7c5a7f1f4fc4b422 | [
"MIT"
] | 2 | 2019-02-11T14:31:37.000Z | 2021-12-28T08:15:01.000Z | defmodule OpenSubmissions do
@moduledoc """
OpenSubmissions 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
| 26.7 | 66 | 0.76779 |
21df8cf732b95d703ebba7d598183ae9af5e29ad | 2,169 | exs | Elixir | test/traverser_test.exs | xerb/html_sanitize_ex | 19be904571a9b444f3cf8e2e4e21ddb0fcbae6c5 | [
"MIT"
] | 222 | 2015-07-05T22:57:10.000Z | 2022-03-11T19:41:48.000Z | test/traverser_test.exs | xerb/html_sanitize_ex | 19be904571a9b444f3cf8e2e4e21ddb0fcbae6c5 | [
"MIT"
] | 52 | 2015-08-06T11:52:35.000Z | 2022-01-08T18:07:54.000Z | test/traverser_test.exs | xerb/html_sanitize_ex | 19be904571a9b444f3cf8e2e4e21ddb0fcbae6c5 | [
"MIT"
] | 66 | 2015-08-06T11:23:57.000Z | 2022-02-03T11:09:57.000Z | defmodule StripEverythingButB do
def scrub({"b", attributes, children}), do: {"b", attributes, children}
def scrub({_tag, _attributes, children}) do
children
end
def scrub(text) do
text
end
end
defmodule HtmlSanitizeExTraverserTest do
use ExUnit.Case, async: true
def parse_to_tree(html) do
... | 28.168831 | 201 | 0.601199 |
21df92337474c175d7891ce8e42d59c49b162661 | 65 | exs | Elixir | day04_ex/test/day04_ex_test.exs | meox/AOC2020 | 9aff1c00191802328ead1f4f7d1288319e33470d | [
"MIT"
] | null | null | null | day04_ex/test/day04_ex_test.exs | meox/AOC2020 | 9aff1c00191802328ead1f4f7d1288319e33470d | [
"MIT"
] | null | null | null | day04_ex/test/day04_ex_test.exs | meox/AOC2020 | 9aff1c00191802328ead1f4f7d1288319e33470d | [
"MIT"
] | null | null | null | defmodule Day04ExTest do
use ExUnit.Case
doctest Day04Ex
end
| 13 | 24 | 0.8 |
21df99a9ae6f6a10698c0b39bd9952ae6aa84c6b | 12,113 | exs | Elixir | test/pow/store/backend/mnesia_cache_test.exs | joelbyler/pow | be956671a551324aa328684b526b2bedc84bd693 | [
"MIT"
] | null | null | null | test/pow/store/backend/mnesia_cache_test.exs | joelbyler/pow | be956671a551324aa328684b526b2bedc84bd693 | [
"MIT"
] | null | null | null | test/pow/store/backend/mnesia_cache_test.exs | joelbyler/pow | be956671a551324aa328684b526b2bedc84bd693 | [
"MIT"
] | null | null | null | defmodule Pow.Store.Backend.MnesiaCacheTest do
use ExUnit.Case
doctest Pow.Store.Backend.MnesiaCache
alias Pow.{Config, Config.ConfigError, Store.Backend.MnesiaCache}
@default_config [namespace: "pow:test", ttl: :timer.hours(1)]
setup_all do
# Turn node into a distributed node with the given long name
... | 41.061017 | 134 | 0.647899 |
21dfcd1d572a2c5c9afe01c7cd0d643f595260d3 | 1,706 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_update_merchant_order_id_response.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_update_merchant_order_id_response.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_update_merchant_order_id_response.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.12 | 206 | 0.744431 |
21e00f0504889e1ac3d45cd3f4eb9c13102c3bf7 | 1,848 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/list_executions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/list_executions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/list_executions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.222222 | 121 | 0.738636 |
21e07c7ab36b299f93a869bf30ba15839b44ea2d | 906 | ex | Elixir | lib/jollacn/db/model/author.ex | TylerTemp/jollacn-api | 4e0d887ea9bf4c5fd94dd1880682de1f6384a078 | [
"MIT"
] | null | null | null | lib/jollacn/db/model/author.ex | TylerTemp/jollacn-api | 4e0d887ea9bf4c5fd94dd1880682de1f6384a078 | [
"MIT"
] | null | null | null | lib/jollacn/db/model/author.ex | TylerTemp/jollacn-api | 4e0d887ea9bf4c5fd94dd1880682de1f6384a078 | [
"MIT"
] | null | null | null | defmodule JollaCNAPI.DB.Model.Author do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:name, :string, []}
schema "author" do
field(:display_name, :string, null: false, comment: "显示名")
field(:avatar, JollaCNAPI.DB.Util.Type.JSON, null: true, comment: "头像{}, default: 默认")
field(:description, :s... | 24.486486 | 90 | 0.63245 |
21e0c0f7b4fabe265d0aa68f1874712c894308f6 | 290 | ex | Elixir | lib/codes/codes_r64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_R64 do
alias IcdCode.ICDCode
def _R64 do
%ICDCode{full_code: "R64",
category_code: "R64",
short_code: "",
full_name: "Cachexia",
short_name: "Cachexia",
category_name: "Cachexia"
}
end
end
| 18.125 | 38 | 0.582759 |
21e0ccf1b758e6757ce475f43173599131e3f50d | 289 | exs | Elixir | programming_elixir/chapter8/query.exs | hectoregm/elixir | c4dc9cd327c6d935de93337e5c52d58b82c4d339 | [
"MIT"
] | null | null | null | programming_elixir/chapter8/query.exs | hectoregm/elixir | c4dc9cd327c6d935de93337e5c52d58b82c4d339 | [
"MIT"
] | null | null | null | programming_elixir/chapter8/query.exs | hectoregm/elixir | c4dc9cd327c6d935de93337e5c52d58b82c4d339 | [
"MIT"
] | null | null | null | people = [
%{ name: "Grumpy", height: 1.24},
%{ name: "Dave", height: 1.88},
%{ name: "Dopey", height: 1.32},
%{ name: "Shaquille", height: 2.16},
%{ name: "Sneezy", height: 1.28},
]
for person = %{ height: height } <- people,
height > 1.5,
do: IO.inspect person
| 24.083333 | 43 | 0.529412 |
21e0d42490facd70834e775700be41d20a53f041 | 1,096 | exs | Elixir | config/config.exs | envylabs/distillery-aws-example | 98bf10958ca26c5e35e576436ffaae52efcc371a | [
"Apache-2.0"
] | null | null | null | config/config.exs | envylabs/distillery-aws-example | 98bf10958ca26c5e35e576436ffaae52efcc371a | [
"Apache-2.0"
] | null | null | null | config/config.exs | envylabs/distillery-aws-example | 98bf10958ca26c5e35e576436ffaae52efcc371a | [
"Apache-2.0"
] | 1 | 2022-03-14T09:43:36.000Z | 2022-03-14T09:43:36.000Z | # 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.
use Mix.Config
# General application configuration
config :distillery_example,
ecto_repos: [Exampl... | 29.621622 | 86 | 0.752737 |
21e0db640a38beb971a7e3886ccfea2e74835413 | 4,213 | exs | Elixir | apps/tai/test/tai/venue_adapters/bitmex/stream/process_order_book_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/venue_adapters/bitmex/stream/process_order_book_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venue_adapters/bitmex/stream/process_order_book_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessOrderBookTest do
use ExUnit.Case, async: false
alias Tai.VenueAdapters.Bitmex.Stream.ProcessOrderBook
alias Tai.Markets.OrderBook
@venue :venue_a
@symbol :xbtusd
@venue_symbol "XBTUSD"
@process_quote_name Tai.Markets.ProcessQuote.to_name(@venue, @symbol)
... | 34.818182 | 91 | 0.623546 |
21e0ef480a364348470285f7aeee1e99991f97fa | 448 | exs | Elixir | priv/repo/migrations/20181015203718_create_companies.exs | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 333 | 2019-05-18T14:01:17.000Z | 2022-03-22T05:07:40.000Z | priv/repo/migrations/20181015203718_create_companies.exs | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 89 | 2019-05-18T10:01:54.000Z | 2021-05-12T15:19:26.000Z | priv/repo/migrations/20181015203718_create_companies.exs | envato/elixir-companies | 7488075d1a372c9ca8fa6603f93e384b73977526 | [
"MIT"
] | 33 | 2019-06-07T00:33:53.000Z | 2022-03-21T05:38:28.000Z | defmodule Companies.Repo.Migrations.CreateCompanies do
use Ecto.Migration
def change do
create table(:companies) do
add(:name, :string)
add(:description, :string)
add(:url, :string)
add(:github, :string)
add(:location, :string)
add(:blog, :string)
add(:industry_id, ref... | 22.4 | 69 | 0.642857 |
21e10604d13d6f564b426b91ef1ad32698b1effc | 831 | ex | Elixir | web/plugs/deserialize.ex | JKGisMe/square_square_backend | 1b5237fff2c9dab0e03082ecf5a5a28a1133935b | [
"MIT"
] | null | null | null | web/plugs/deserialize.ex | JKGisMe/square_square_backend | 1b5237fff2c9dab0e03082ecf5a5a28a1133935b | [
"MIT"
] | null | null | null | web/plugs/deserialize.ex | JKGisMe/square_square_backend | 1b5237fff2c9dab0e03082ecf5a5a28a1133935b | [
"MIT"
] | null | null | null | defmodule SquareSquareBackend.DeserializePlug do
def init(options) do
options
end
def call(%Plug.Conn{params: %{"format" => "json-api"}, method: "POST"}=conn, _opts) do
result = _deserialize(conn)
end
def call(%Plug.Conn{params: %{"format" => "json-api"}, method: "PUT"}=conn, _opts) do
_deserial... | 27.7 | 93 | 0.655836 |
21e12be3115d861cbb3e3e0614e3861de26bdf29 | 68 | exs | Elixir | eSalud/test/test_helper.exs | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | eSalud/test/test_helper.exs | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | eSalud/test/test_helper.exs | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(ESalud.Repo, :manual)
| 13.6 | 52 | 0.779412 |
21e130690905dc40dccff986b0680d83cc10ff82 | 551 | ex | Elixir | lib/meal_tracker/commands/status.ex | lee-dohm/meal-tracker | cfcf738ecf262b1763d239e6936826909d23f46e | [
"MIT"
] | 2 | 2019-07-21T22:47:33.000Z | 2020-01-26T17:54:07.000Z | lib/meal_tracker/commands/status.ex | lee-dohm/meal-tracker | cfcf738ecf262b1763d239e6936826909d23f46e | [
"MIT"
] | 21 | 2015-09-14T06:37:06.000Z | 2019-08-05T02:30:22.000Z | lib/meal_tracker/commands/status.ex | lee-dohm/meal-tracker | cfcf738ecf262b1763d239e6936826909d23f46e | [
"MIT"
] | null | null | null | defmodule MealTracker.Commands.Status do
@moduledoc """
Displays the current day's meal log.
Creates an empty meal log if one does not exist.
```
track status
```
"""
use MealTracker.Command
alias MealTracker.Log
@shortdoc "Display the daily meal log"
@doc false
def run(_options) do
pa... | 15.305556 | 50 | 0.591652 |
21e1345e34d8b20ded27fef87b2fcd0a1490a677 | 2,937 | ex | Elixir | lib/clickhousex/query.ex | moldmn/clickhousex | b39016714e346490ff8e9c4432006827612fba11 | [
"Apache-2.0"
] | 43 | 2018-04-02T07:00:44.000Z | 2020-08-14T18:47:26.000Z | lib/clickhousex/query.ex | moldmn/clickhousex | b39016714e346490ff8e9c4432006827612fba11 | [
"Apache-2.0"
] | 21 | 2020-09-07T08:19:59.000Z | 2021-08-25T03:46:38.000Z | lib/clickhousex/query.ex | moldmn/clickhousex | b39016714e346490ff8e9c4432006827612fba11 | [
"Apache-2.0"
] | 22 | 2018-08-08T07:45:44.000Z | 2020-09-01T07:58:54.000Z | defmodule Clickhousex.Query do
@moduledoc """
Query struct returned from a successfully prepared query.
"""
@type t :: %__MODULE__{
name: iodata,
type: :select | :insert | :alter | :create | :drop,
param_count: integer,
params: iodata | nil,
columns: [String.t(... | 27.448598 | 85 | 0.645897 |
21e16ab6621fdb691196c84ca69460083653c002 | 1,699 | ex | Elixir | lib/bsoneach/stream.ex | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 8 | 2016-08-05T19:28:16.000Z | 2021-07-15T22:00:30.000Z | lib/bsoneach/stream.ex | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 5 | 2016-08-29T13:07:15.000Z | 2016-11-24T16:58:01.000Z | lib/bsoneach/stream.ex | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 5 | 2018-06-19T02:43:46.000Z | 2021-07-15T22:00:36.000Z | defmodule BSONEach.Stream do
@moduledoc """
This module creates stream of Elixir structures from a BSON file with one or many documents.
"""
import BSONEach.Reader
import BSONEach.File
@doc """
Create a documents stream from batch to BSON file.
You can define different strategies when dealing with cor... | 24.985294 | 113 | 0.599176 |
21e18639b193a7c661ae6f967db0b7c1cbf8eff0 | 37,136 | ex | Elixir | lib/ecto/adapters/myxql/connection.ex | mjaric/ecto_sql | c89e3040bc98e3a3eb2da4faf84b08df0f846520 | [
"Apache-2.0"
] | 4 | 2019-06-26T22:43:55.000Z | 2020-01-19T17:37:07.000Z | lib/ecto/adapters/myxql/connection.ex | mjaric/ecto_sql | c89e3040bc98e3a3eb2da4faf84b08df0f846520 | [
"Apache-2.0"
] | 3 | 2019-07-15T06:54:40.000Z | 2020-02-09T16:36:44.000Z | lib/ecto/adapters/myxql/connection.ex | mjaric/ecto_sql | c89e3040bc98e3a3eb2da4faf84b08df0f846520 | [
"Apache-2.0"
] | 15 | 2019-01-15T18:17:44.000Z | 2020-01-12T03:52:35.000Z | if Code.ensure_loaded?(MyXQL) do
defmodule Ecto.Adapters.MyXQL.Connection do
@moduledoc false
@behaviour Ecto.Adapters.SQL.Connection
## Connection
@impl true
def child_spec(opts) do
MyXQL.child_spec(opts)
end
## Query
@impl true
def prepare_execute(conn, name, sql, param... | 36.019399 | 135 | 0.600603 |
21e192a90e2b653b09999248b00078ba1bf3f111 | 1,737 | exs | Elixir | config/config.exs | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | null | null | null | config/config.exs | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | null | null | null | config/config.exs | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"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.
use Mix.Config
# General application configuration
config :espy,
ecto_repos: [Espy.Repo]
# Config... | 32.773585 | 86 | 0.739781 |
21e19db4c4532b061bb16f8aef6164fd801739e8 | 1,598 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/model/sync_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/home_graph/lib/google_api/home_graph/v1/model/sync_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/home_graph/lib/google_api/home_graph/v1/model/sync_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.96 | 91 | 0.718398 |
21e1a6b2344ee28f844e9b3982ef339190cd3c85 | 273 | exs | Elixir | apps/artemis_web/test/test_helper.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis_web/test/test_helper.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis_web/test/test_helper.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | {:ok, _} = Application.ensure_all_started(:hound)
# configuration = ExUnit.configuration()
# excludes = Keyword.fetch!(configuration, :exclude)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Artemis.Repo, :manual)
Ecto.Adapters.SQL.Sandbox.mode(ArtemisLog.Repo, :manual)
| 27.3 | 56 | 0.765568 |
21e1cb8a9fef104c0fb43af4aafdbbabb2abd0a7 | 103 | ex | Elixir | ether/lib/pfiles/repo.ex | entro-pi/cauldron | 13688f0bff08604cf5097d3f89ab9253b0230b5b | [
"MIT"
] | 5 | 2019-10-27T07:02:30.000Z | 2019-11-26T18:48:22.000Z | ether/lib/pfiles/repo.ex | entro-pi/idleHands | 13688f0bff08604cf5097d3f89ab9253b0230b5b | [
"MIT"
] | null | null | null | ether/lib/pfiles/repo.ex | entro-pi/idleHands | 13688f0bff08604cf5097d3f89ab9253b0230b5b | [
"MIT"
] | null | null | null | defmodule Pfiles.Repo do
use Ecto.Repo,
otp_app: :ether,
adapter: Ecto.Adapters.Postgres
end
| 17.166667 | 35 | 0.718447 |
21e1cfa8abc143d0c509aad2eddab4d0180908c8 | 550 | exs | Elixir | exercises/concept/rpn-calculator/test/rpn_calculator_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 1 | 2021-06-09T06:57:02.000Z | 2021-06-09T06:57:02.000Z | exercises/concept/rpn-calculator/test/rpn_calculator_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 6 | 2022-03-04T13:05:25.000Z | 2022-03-30T18:36:49.000Z | exercises/concept/rpn-calculator/test/rpn_calculator_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | null | null | null | defmodule RPNCalculatorTest do
use ExUnit.Case
@task_id 1
test "let it crash" do
assert_raise(RuntimeError, fn ->
RPNCalculator.calculate!([], fn _ -> raise "test error" end)
end)
end
@task_id 2
test "rescue the crash, no message" do
assert RPNCalculator.calculate([], fn _ -> raise "test... | 25 | 81 | 0.654545 |
21e1f05519b9491dd82cc3db7de40be34f4eeda8 | 1,285 | exs | Elixir | config/dev.exs | robvandenbogaard/elm-blogger | 53ba88e125c9ddf90a5e5e5a0b68914bf6d81003 | [
"BSD-3-Clause"
] | 19 | 2017-02-26T10:18:00.000Z | 2022-01-18T18:21:28.000Z | config/dev.exs | robvandenbogaard/elm-blogger | 53ba88e125c9ddf90a5e5e5a0b68914bf6d81003 | [
"BSD-3-Clause"
] | 1 | 2017-10-29T22:37:47.000Z | 2017-10-29T22:37:47.000Z | config/dev.exs | robvandenbogaard/elm-blogger | 53ba88e125c9ddf90a5e5e5a0b68914bf6d81003 | [
"BSD-3-Clause"
] | 4 | 2017-08-07T23:33:01.000Z | 2020-02-27T12:36:25.000Z | 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 :elm_blogger, ElmBlogger.Endpoint,
http: [port... | 29.883721 | 74 | 0.714397 |
21e1f178de6768369708647a591ad3232740e25f | 3,629 | ex | Elixir | clients/content/lib/google_api/content/v2/model/liasettings_custom_batch_request_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/liasettings_custom_batch_request_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/liasettings_custom_batch_request_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.12987 | 260 | 0.691099 |
21e201c567733538f0df0451dbde12496f79459d | 1,044 | exs | Elixir | mix.exs | avvo/kafka_impl | 64adcc805038677c6da57a807525a80c2e484b3c | [
"MIT"
] | null | null | null | mix.exs | avvo/kafka_impl | 64adcc805038677c6da57a807525a80c2e484b3c | [
"MIT"
] | null | null | null | mix.exs | avvo/kafka_impl | 64adcc805038677c6da57a807525a80c2e484b3c | [
"MIT"
] | 2 | 2017-01-27T22:16:27.000Z | 2018-11-22T19:11:37.000Z | defmodule KafkaImpl.Mixfile do
use Mix.Project
def project do
[
app: :kafka_impl,
build_embedded: Mix.env == :prod,
deps: deps(),
description: description(),
elixir: "~> 1.4",
package: package(),
start_permanent: Mix.env == :prod,
version: "0.4.5"
]
end
... | 20.470588 | 76 | 0.542146 |
21e223b77f001e6b60ad5e0f0ac2a12220c9a96b | 1,085 | exs | Elixir | config/config.exs | sunkibaek/cors_plug | 3ed5608fd3165d2daf7203035d19930623a2d2fb | [
"Apache-2.0"
] | 377 | 2015-01-10T12:47:07.000Z | 2022-03-06T08:05:40.000Z | config/config.exs | sunkibaek/cors_plug | 3ed5608fd3165d2daf7203035d19930623a2d2fb | [
"Apache-2.0"
] | 81 | 2015-04-28T18:09:42.000Z | 2022-03-02T10:00:59.000Z | config/config.exs | sunkibaek/cors_plug | 3ed5608fd3165d2daf7203035d19930623a2d2fb | [
"Apache-2.0"
] | 95 | 2015-01-10T16:22:11.000Z | 2022-03-07T08:39:21.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 40.185185 | 73 | 0.747465 |
21e23b51363ea20a95213dc02b60bc222d41a110 | 1,940 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/converted_other_regions_price.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/converted_other_regions_price.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/converted_other_regions_price.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.8 | 165 | 0.748969 |
21e2514a62fd271271dd22fa77673a6426cd1ba7 | 6,510 | ex | Elixir | apps/alerts/lib/parser.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/alerts/lib/parser.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/alerts/lib/parser.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Alerts.Parser do
@moduledoc """
This is the logic for parsing the different alerts on the website.
"""
defmodule Alert do
@moduledoc """
This is the module to parse alerts
"""
@spec parse(JsonApi.Item.t()) :: Alerts.Alert.t()
def parse(%JsonApi.Item{type: "alert", id: id, attribute... | 29.457014 | 87 | 0.60722 |
21e27f4c8bddd2cb720e0a77c07ad0b85626207f | 5,911 | ex | Elixir | deps/gettext/lib/gettext/po/parser.ex | pdamoc/cowboy_issue | 3873ffed5cc2b15ead54b2d3e95575b09ba1833a | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/po/parser.ex | pdamoc/cowboy_issue | 3873ffed5cc2b15ead54b2d3e95575b09ba1833a | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/po/parser.ex | pdamoc/cowboy_issue | 3873ffed5cc2b15ead54b2d3e95575b09ba1833a | [
"MIT"
] | null | null | null | defmodule Gettext.PO.Parser do
@moduledoc false
alias Gettext.PO.Translations
alias Gettext.PO.Translation
alias Gettext.PO.PluralTranslation
@doc """
Parses a list of tokens into a list of translations.
"""
@spec parse([Gettext.PO.Tokenizer.token]) ::
{:ok, [binary], [Gettext.PO.translation]} | G... | 36.94375 | 121 | 0.667061 |
21e284460f85c6660c334413a42c551130619482 | 144 | exs | Elixir | apps/arbitrage/test/arbitrage_test.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/arbitrage/test/arbitrage_test.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/arbitrage/test/arbitrage_test.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | defmodule ArbitrageTest do
use ExUnit.Case
doctest Arbitrage
test "greets the world" do
assert Arbitrage.hello() == :world
end
end
| 16 | 38 | 0.722222 |
21e29afefb9d8fa0a505a50e98f4cb9bec1ba635 | 4,443 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/enrollment_token.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/enrollment_token.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/enrollment_token.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... | 62.577465 | 514 | 0.728337 |
21e2a932db188cd3e79742c4fb6b805eecc54f52 | 3,498 | exs | Elixir | lib/ex_unit/test/ex_unit/runner_stats_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/runner_stats_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/runner_stats_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule ExUnit.RunnerStatsTest do
use ExUnit.Case, async: false
alias ExUnit.{Manifest, RunnerStats}
import Manifest, only: [entry: 1]
import ExUnit.TestHelpers, only: [in_tmp: 2]
@manifest_path "manifests"
@manifest_file "#{@manifest_path}/.ex_unit_resu... | 32.691589 | 94 | 0.631218 |
21e2c7e8a477c73e77f7a93ee5ac6273c2c9079e | 72 | exs | Elixir | apps/web/test/web_web/views/page_view_test.exs | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | 31 | 2016-11-14T20:44:37.000Z | 2021-12-06T09:27:17.000Z | apps/web/test/web_web/views/page_view_test.exs | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | 80 | 2020-03-02T20:34:55.000Z | 2022-03-30T12:11:21.000Z | apps/web/test/web_web/views/page_view_test.exs | 9renpoto/phx | 06457b5e5630e45e17add8cb5097004dc1ff7e9d | [
"MIT"
] | 11 | 2016-11-01T21:24:13.000Z | 2020-01-24T22:34:52.000Z | defmodule WebWeb.PageViewTest do
use WebWeb.ConnCase, async: true
end
| 18 | 34 | 0.805556 |
21e2e3a1cc2efe95529e501482225b9d0a0e5d10 | 476 | ex | Elixir | lib/mechanize/html_parser.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 25 | 2020-06-26T02:21:35.000Z | 2022-03-05T18:51:46.000Z | lib/mechanize/html_parser.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 29 | 2019-07-02T21:50:06.000Z | 2020-05-28T18:34:01.000Z | lib/mechanize/html_parser.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 4 | 2020-06-24T02:11:47.000Z | 2022-03-06T00:50:59.000Z | defmodule Mechanize.HTMLParser do
@moduledoc false
alias Mechanize.Page
alias Mechanize.Page.Element
@type selector :: String.t()
@type attribute :: atom()
@type parser_node :: any()
@callback parse_document(String.t()) :: list(parser_node())
@callback search(Page.t() | Element.t(), selector) :: lis... | 28 | 77 | 0.676471 |
21e31e524f739800b974f8f345b908db314723f7 | 13,435 | ex | Elixir | lib/cabbage/feature.ex | hauleth/cabbage | e29557f3a05f779407040930abdda41479a1fa8e | [
"MIT"
] | null | null | null | lib/cabbage/feature.ex | hauleth/cabbage | e29557f3a05f779407040930abdda41479a1fa8e | [
"MIT"
] | null | null | null | lib/cabbage/feature.ex | hauleth/cabbage | e29557f3a05f779407040930abdda41479a1fa8e | [
"MIT"
] | null | null | null | defmodule Cabbage.Feature do
@moduledoc """
An extension on ExUnit to be able to execute feature files.
## Configuration
In `config/test.exs`
config :cabbage,
# Default is "test/features/"
features: "my/path/to/features/"
# Default is []
global_tags: :integration
- `f... | 33.009828 | 346 | 0.628582 |
21e33f13c782ba34083456dcdfa76064426b2925 | 14,220 | ex | Elixir | lib/elasticsearch.ex | szajbus/elasticsearch-elixir | 4ce751b4b5379ccc168a8930bca9c3ad99ffbc55 | [
"MIT"
] | 1 | 2019-10-11T02:30:58.000Z | 2019-10-11T02:30:58.000Z | lib/elasticsearch.ex | szajbus/elasticsearch-elixir | 4ce751b4b5379ccc168a8930bca9c3ad99ffbc55 | [
"MIT"
] | null | null | null | lib/elasticsearch.ex | szajbus/elasticsearch-elixir | 4ce751b4b5379ccc168a8930bca9c3ad99ffbc55 | [
"MIT"
] | null | null | null | defmodule Elasticsearch do
@moduledoc """
Entry-point for interacting with your Elasticsearch cluster(s).
You should configure at least one `Elasticsearch.Cluster` in order to
use the functions in this module, or else you'll need to pass all the
configuration for the cluster into each function call.
"""
... | 32.099323 | 109 | 0.578692 |
21e341dd7c29b15ac6a6ffd0c876fcb6f7b49454 | 190 | exs | Elixir | test/controllers/page_controller_test.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | defmodule MyApp_810758.PageControllerTest do
use MyApp_810758.ConnCase
test "GET /" do
conn = get conn(), "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.111111 | 60 | 0.694737 |
21e366a901cef87b9c0bbd2d59f25063051eb3d2 | 2,152 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_response_message_live_agent_handoff.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_response_message_live_agent_handoff.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_response_message_live_agent_handoff.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.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... | 41.384615 | 514 | 0.768587 |
21e36fb6256aeb0c879c9bb61a8478d0d7bb6283 | 6,577 | ex | Elixir | lib/calcinator/controller/error.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | lib/calcinator/controller/error.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | 1 | 2018-09-24T21:48:46.000Z | 2018-09-24T21:48:46.000Z | lib/calcinator/controller/error.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Phoenix.Controller) do
defmodule Calcinator.Controller.Error do
@moduledoc """
Errors returned by `Calcinator.Controller`. Public, so that other controllers not using `Calcinator.Controller` can
have same format for errors.
"""
alias Calcinator.Alembic.Document
alias J... | 37.369318 | 120 | 0.668086 |
21e37434df22478fd4a654a6d93397a7f0dbb663 | 11,409 | ex | Elixir | lib/plug/parsers.ex | bmarkons/plug | 5c7c6815732a645870f2ae01ae5154741b45107a | [
"Apache-2.0"
] | null | null | null | lib/plug/parsers.ex | bmarkons/plug | 5c7c6815732a645870f2ae01ae5154741b45107a | [
"Apache-2.0"
] | null | null | null | lib/plug/parsers.ex | bmarkons/plug | 5c7c6815732a645870f2ae01ae5154741b45107a | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Parsers do
defmodule RequestTooLargeError do
@moduledoc """
Error raised when the request is too large.
"""
defexception message:
"the request is too large. If you are willing to process " <>
"larger requests, please give a :length to Plug.Parser... | 34.783537 | 100 | 0.656675 |
21e3a3d9872594910381fc29e577e1bb263ae9c4 | 1,364 | ex | Elixir | lib/towwwer/release_tasks.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 1 | 2019-05-03T13:39:40.000Z | 2019-05-03T13:39:40.000Z | lib/towwwer/release_tasks.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 13 | 2019-03-27T05:40:41.000Z | 2019-05-24T10:43:31.000Z | lib/towwwer/release_tasks.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | null | null | null | defmodule Towwwer.ReleaseTasks do
@moduledoc false
@start_apps [
:crypto,
:ssl,
:postgrex,
:ecto,
# If using Ecto 3.0 or higher
:ecto_sql
]
@repos Application.get_env(:towwwer, :ecto_repos, [])
def migrate(_argv) do
start_services()
run_migrations()
stop_services()
end... | 21.650794 | 61 | 0.656891 |
21e3d68418a2681e8c0602244f616d6704ce4b51 | 3,581 | ex | Elixir | apps/glayu_core/lib/glayu/path.ex | pmartinezalvarez/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 51 | 2017-05-21T07:27:34.000Z | 2017-11-30T04:34:17.000Z | apps/glayu_core/lib/glayu/path.ex | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 17 | 2017-06-14T18:40:44.000Z | 2017-08-20T16:14:58.000Z | apps/glayu_core/lib/glayu/path.ex | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 5 | 2017-06-04T19:55:56.000Z | 2017-07-29T16:18:58.000Z | defmodule Glayu.Path do
@drafts_dir "_drafts"
@posts_dir "_posts"
@themes_dir "themes"
@layouts_dir "_layouts"
@partials_dir "_partials"
@assets_dir "assets"
@config_file "_config.yml"
@index "index"
@md_ext ".md"
@html_ext ".html"
@eex_ext ".eex"
alias Glayu.Slugger
alias Glayu.Config
de... | 23.559211 | 86 | 0.670762 |
21e43e37daeecbe350354048e740d1d698d35f87 | 1,151 | exs | Elixir | test/parser/components_test.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | test/parser/components_test.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | test/parser/components_test.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | null | null | null | defmodule Temple.Parser.ComponentsTest do
use ExUnit.Case, async: false
alias Temple.Parser.Components
use Temple.Support.Utils
describe "applicable?/1" do
test "runs when using the `c` ast with a block" do
ast =
quote do
c SomeModule, foo: :bar do
div do
"... | 22.134615 | 141 | 0.552563 |
21e4719abed5a0666c3ca064861875edc3b93e9c | 875 | ex | Elixir | lib/servy/bear_controller.ex | lcr0815/pcw | 17b3b86059fa5e7fac41e28b2b54e4011491c3f9 | [
"MIT"
] | null | null | null | lib/servy/bear_controller.ex | lcr0815/pcw | 17b3b86059fa5e7fac41e28b2b54e4011491c3f9 | [
"MIT"
] | null | null | null | lib/servy/bear_controller.ex | lcr0815/pcw | 17b3b86059fa5e7fac41e28b2b54e4011491c3f9 | [
"MIT"
] | null | null | null | defmodule Servy.BearController do
alias Servy.Wildthings
alias Servy.Bear
@templates_path Path.expand("../../templates", __DIR__)
defp render(conv, template, bindings \\ []) do
content =
@templates_path
|> Path.join(template)
|> EEx.eval_file(bindings)
%{ conv | status: 200, respo... | 21.875 | 60 | 0.626286 |
21e4aac7a69a656e748dfb81e3513f42296ac6e4 | 1,109 | exs | Elixir | config/config.exs | techgaun/ex_sma | 9058cfbf36c987fe9bf805e807e14334c7c393dc | [
"Apache-2.0"
] | 3 | 2016-07-19T15:51:23.000Z | 2019-08-13T00:59:47.000Z | config/config.exs | techgaun/ex_sma | 9058cfbf36c987fe9bf805e807e14334c7c393dc | [
"Apache-2.0"
] | null | null | null | config/config.exs | techgaun/ex_sma | 9058cfbf36c987fe9bf805e807e14334c7c393dc | [
"Apache-2.0"
] | 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... | 35.774194 | 73 | 0.749324 |
21e4c5760f0d3b9897e31b40b4e8b8bd6cb36aa1 | 6,067 | exs | Elixir | test/unit/management_api/controllers/api_plugin_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | test/unit/management_api/controllers/api_plugin_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | test/unit/management_api/controllers/api_plugin_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.ManagementAPI.Controllers.APIPluginTest do
@moduledoc false
use Annon.ConnCase, async: true
alias Annon.Factories.Configuration, as: ConfigurationFactory
setup %{conn: conn} do
conn =
conn
|> put_req_header("accept", "application/json")
|> put_req_header("content-type", "a... | 31.273196 | 110 | 0.611835 |
21e4ea8941a42fa357cfc378f72330a8d5e4c176 | 272 | exs | Elixir | test/catcasts_web/views/layout_view_test.exs | kniarzyn/catcasts | 69d62bde811f8dbc531e41add1223cc7bc6c175d | [
"MIT"
] | null | null | null | test/catcasts_web/views/layout_view_test.exs | kniarzyn/catcasts | 69d62bde811f8dbc531e41add1223cc7bc6c175d | [
"MIT"
] | 1 | 2021-03-10T08:15:15.000Z | 2021-03-10T08:15:15.000Z | test/catcasts_web/views/layout_view_test.exs | kniarzyn/catcasts | 69d62bde811f8dbc531e41add1223cc7bc6c175d | [
"MIT"
] | null | null | null | defmodule CatcastsWeb.LayoutViewTest do
use CatcastsWeb.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.222222 | 65 | 0.768382 |
21e4ff1834c73e1a74744ea3306b0c77dfc0ff10 | 711 | ex | Elixir | lib/helmsman_web/gettext.ex | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 2 | 2017-10-25T14:21:36.000Z | 2018-08-24T17:49:51.000Z | lib/helmsman_web/gettext.ex | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 4 | 2017-10-18T01:36:16.000Z | 2018-03-20T20:07:41.000Z | lib/helmsman_web/gettext.ex | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | null | null | null | defmodule HelmsmanWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import HelmsmanWeb.Gettext
# Simple translation
gettext "Here is... | 28.44 | 72 | 0.682138 |
21e50bc29c18810b935212cf64338a3e8aafebca | 2,236 | ex | Elixir | lib/shelving/locations.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | lib/shelving/locations.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | lib/shelving/locations.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | defmodule Shelving.Locations do
@moduledoc """
The Locations context.
"""
import Ecto.Query, warn: false
alias Shelving.Repo
alias Shelving.Accounts.Account
alias Shelving.Locations.Warehouse
@doc """
Returns the list of warehouses.
## Examples
iex> list_warehouses()
[%Warehouse{}, ... | 19.614035 | 70 | 0.63059 |
21e53c5ad02976ad4f0dc2e6c89d3b803dc41bd8 | 427 | ex | Elixir | examples/nfq/lib/nfq/supervisor.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | examples/nfq/lib/nfq/supervisor.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | examples/nfq/lib/nfq/supervisor.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | defmodule NFQ.Supervisor do
@moduledoc false
@nfq_handler %{
id: NFQ.Handler,
start: {NFQ.Handler, :start_link, []},
restart: :permanent,
shutdown: 5000,
type: :worker,
modules: [NFQ.Handler]
}
@children [@nfq_handler]
def start_link do
Supervisor.start_link(__MODULE__, [], name... | 18.565217 | 59 | 0.662763 |
21e5441274607b3df1ef5766bc3f73a255a7108a | 358 | exs | Elixir | phoenix_maru/priv/repo/seeds.exs | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 27 | 2016-12-28T15:00:19.000Z | 2021-11-09T12:55:23.000Z | phoenix_maru/priv/repo/seeds.exs | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 5 | 2017-02-13T13:11:55.000Z | 2019-07-22T19:38:09.000Z | phoenix_maru/priv/repo/seeds.exs | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 8 | 2017-02-08T10:18:50.000Z | 2020-06-01T11:42:04.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# PhoenixMaru.Repo.insert!(%PhoenixMaru.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as th... | 29.833333 | 61 | 0.712291 |
21e569f15eddf583401ec6c3931af4f7b9ffe236 | 1,396 | ex | Elixir | ch4_data_abstractions/todo_builder.ex | arilsonsouza/elixir-in-action | 8684605dac35717003c76f85c0b55f0336147963 | [
"MIT"
] | null | null | null | ch4_data_abstractions/todo_builder.ex | arilsonsouza/elixir-in-action | 8684605dac35717003c76f85c0b55f0336147963 | [
"MIT"
] | null | null | null | ch4_data_abstractions/todo_builder.ex | arilsonsouza/elixir-in-action | 8684605dac35717003c76f85c0b55f0336147963 | [
"MIT"
] | null | null | null | defmodule TodoList do
defstruct auto_id: 1, entries: %{}
def new(entries \\ []) do
Enum.reduce(
entries,
%TodoList{},
fn entry, todo_list_acc ->
add_entry(todo_list_acc, entry)
end
)
end
def add_entry(todo_list, entry) do
entry = Map.put(entry, :id, todo_list.auto_i... | 24.491228 | 79 | 0.628223 |
21e57aedb3846c1b7a04bc756a749ce3ffef1303 | 599 | ex | Elixir | lib/keyboard_layout/led.ex | nerves-keyboard/keyboard_layout | 6e3e840e824b3b34dd29997f206c06b5bb30318d | [
"MIT"
] | 2 | 2020-10-16T05:15:06.000Z | 2020-10-17T04:34:39.000Z | lib/keyboard_layout/led.ex | nerves-keyboard/keyboard_layout | 6e3e840e824b3b34dd29997f206c06b5bb30318d | [
"MIT"
] | 40 | 2020-10-19T03:19:14.000Z | 2022-03-30T13:04:29.000Z | lib/keyboard_layout/led.ex | nerves-keyboard/keyboard_layout | 6e3e840e824b3b34dd29997f206c06b5bb30318d | [
"MIT"
] | null | null | null | defmodule KeyboardLayout.LED do
@moduledoc """
Describes a physical LED location.
"""
@typedoc """
An atom used as a unique LED identifier
"""
@type id :: atom
@typedoc """
An LED struct with an `id`, an `x` position, and a `y` position.
"""
@type t :: %__MODULE__{
id: id,
x:... | 18.151515 | 66 | 0.51586 |
21e57e4d89e7bd4fe06d92f9ea7880b1f31a25ed | 2,775 | ex | Elixir | test/support/test_datatypes.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/support/test_datatypes.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/support/test_datatypes.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.TestDatatypes do
defmodule Initials do
use RDF.XSD.Datatype.Restriction,
name: "initials",
id: "http://example.com/initials",
base: RDF.XSD.String
def_facet_constraint RDF.XSD.Facets.Length, 2
end
defmodule UsZipcode do
use RDF.XSD.Datatype.Restriction,
... | 27.475248 | 71 | 0.673514 |
21e580196a4963f4899c3f47aad7068698880c6c | 2,274 | exs | Elixir | apps/omg_watcher/test/web/controllers/status_test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/web/controllers/status_test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/web/controllers/status_test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 39.206897 | 110 | 0.689974 |
21e590b1a7d18d785bb17798ae78e256b751c1a7 | 183 | ex | Elixir | lib/ofh_web/views/auth_view.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh_web/views/auth_view.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh_web/views/auth_view.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | defmodule OfhWeb.AuthView do
use OfhWeb, :view
#alias OfhWeb.AuthView
def render("tokens.json", %{data: %{access_token: _, refresh_token: _} = tokens}) do
tokens
end
end
| 20.333333 | 86 | 0.693989 |
21e5f5f61daba8ca019a6f45103b61dfae5621bb | 7,967 | exs | Elixir | test/grakn_test.exs | taxfix/grakn-elixir | 23d094bad69cfbd1c021cf782fd8aff1bff38140 | [
"MIT"
] | 16 | 2018-10-10T09:29:19.000Z | 2021-07-17T03:37:03.000Z | test/grakn_test.exs | taxfix/grakn-elixir | 23d094bad69cfbd1c021cf782fd8aff1bff38140 | [
"MIT"
] | 8 | 2019-01-12T19:35:17.000Z | 2020-02-20T16:02:52.000Z | test/grakn_test.exs | taxfix/grakn-elixir | 23d094bad69cfbd1c021cf782fd8aff1bff38140 | [
"MIT"
] | 6 | 2018-12-11T08:12:10.000Z | 2020-04-27T02:52:53.000Z | defmodule GraknTest do
use ExUnit.Case
doctest Grakn
@keyspace "grakn_elixir_test"
setup do
{:ok, conn} = Grakn.start_link(hostname: "localhost")
Grakn.command(conn, Grakn.Command.delete_keyspace(@keyspace))
Grakn.transaction(conn, &insert_test_data/1,
keyspace: @keyspace,
type: Grakn... | 32.786008 | 97 | 0.474457 |
21e6248850fc390ad69f3bbb4175e8ab9a6c000f | 767 | exs | Elixir | config/prod.exs | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | null | null | null | config/prod.exs | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | 1 | 2021-06-04T13:53:01.000Z | 2021-06-04T13:53:01.000Z | config/prod.exs | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | null | null | null | import Config
# 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,
# which you should run after static files are built and
# before starting your production server.
config :demo, Demo.Endpoint,
url: [host: "d... | 28.407407 | 58 | 0.724902 |
21e62dd2c06a6d05fdc88a97a5c45e967ec4ad40 | 929 | ex | Elixir | lib/chaperon/action/websocket/close.ex | kianmeng/chaperon | 6161aaace38d86f54a25e2dba68e27747c134d60 | [
"MIT"
] | 97 | 2017-09-20T09:09:11.000Z | 2022-01-13T18:26:22.000Z | lib/chaperon/action/websocket/close.ex | kianmeng/chaperon | 6161aaace38d86f54a25e2dba68e27747c134d60 | [
"MIT"
] | 13 | 2017-10-25T08:47:33.000Z | 2022-03-24T16:39:49.000Z | lib/chaperon/action/websocket/close.ex | kianmeng/chaperon | 6161aaace38d86f54a25e2dba68e27747c134d60 | [
"MIT"
] | 18 | 2018-02-02T19:19:01.000Z | 2022-03-23T16:59:06.000Z | defmodule Chaperon.Action.WebSocket.Close do
@moduledoc """
WebSocket connection action that can be run to close the WebSocket connection
with the given `options`.
Closes & removes the `websocket` and `websocket_url` assigned values in
a session when run.
"""
defstruct options: []
end
defimpl Chaperon.... | 23.820513 | 79 | 0.722282 |
21e62fff1c482a882a6ae622eff9327c27abb28b | 1,276 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/model/start_runtime_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/start_runtime_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/start_runtime_request.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... | 30.380952 | 80 | 0.764107 |
21e65afce5233b9f8411fa680eb89f1fbf3fd637 | 93 | ex | Elixir | lib/matrix/events.ex | djmaze/mxbridge | 816dd7159fa4f3fcc0b1a74dacd17cc74acd3618 | [
"MIT"
] | 2 | 2018-09-05T22:15:59.000Z | 2018-09-11T05:06:39.000Z | lib/matrix/events.ex | djmaze/mxbridge | 816dd7159fa4f3fcc0b1a74dacd17cc74acd3618 | [
"MIT"
] | null | null | null | lib/matrix/events.ex | djmaze/mxbridge | 816dd7159fa4f3fcc0b1a74dacd17cc74acd3618 | [
"MIT"
] | 1 | 2019-11-29T20:02:56.000Z | 2019-11-29T20:02:56.000Z | defmodule Matrix.Events do
@derive [Poison.Encoder]
defstruct [:events, :next_batch]
end
| 18.6 | 34 | 0.752688 |
21e65c4638427f700330f3d72ee5b37d9bba02e9 | 877 | exs | Elixir | code/basic/01-ExUnit.exs | kwchang0831/path-learning-elixir | ee53e9aa4e446252dd41dd06cc69a1ae9183885a | [
"MIT"
] | null | null | null | code/basic/01-ExUnit.exs | kwchang0831/path-learning-elixir | ee53e9aa4e446252dd41dd06cc69a1ae9183885a | [
"MIT"
] | null | null | null | code/basic/01-ExUnit.exs | kwchang0831/path-learning-elixir | ee53e9aa4e446252dd41dd06cc69a1ae9183885a | [
"MIT"
] | null | null | null | ###
# References:
# https://hexdocs.pm/ex_unit/ExUnit.html
# https://hexdocs.pm/ex_unit/ExUnit.Assertions.html#functions
###
# 1) Start ExUnit
ExUnit.start()
# 2) Create test module
defmodule AssertionTest_01ExUnit do
use ExUnit.Case, async: true
test "positive assertion" do
assert true
end
test "ne... | 18.270833 | 63 | 0.6374 |
21e68942bc6e3f5a578e4a0d3abc745ba4f919c9 | 298 | exs | Elixir | programming/elixir-course/cards/test/cards_test.exs | filippo-fonseca/learning | 426c7e3a904e2dcd389f1c4ecd5b1484571f937d | [
"MIT"
] | 1 | 2021-09-24T22:47:33.000Z | 2021-09-24T22:47:33.000Z | programming/elixir-course/cards/test/cards_test.exs | filippo-fonseca/learning | 426c7e3a904e2dcd389f1c4ecd5b1484571f937d | [
"MIT"
] | null | null | null | programming/elixir-course/cards/test/cards_test.exs | filippo-fonseca/learning | 426c7e3a904e2dcd389f1c4ecd5b1484571f937d | [
"MIT"
] | 1 | 2020-08-28T22:52:08.000Z | 2020-08-28T22:52:08.000Z | defmodule CardsTest do
use ExUnit.Case
doctest Cards
test "create_deck makes 20 cards" do
deck_length = length(Cards.create_deck)
assert deck_length == 20
end
test "shuffling a deck randomizes it" do
deck = Cards.create_deck
refute deck == Cards.shuffle(deck)
end
end
| 19.866667 | 43 | 0.714765 |
21e69eae2bacbe30a1e6eb460b9df4bbcbf992d6 | 224 | exs | Elixir | priv/repo/migrations/20190528004301_add_price_fields_to_material.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190528004301_add_price_fields_to_material.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | 4 | 2021-03-09T00:47:04.000Z | 2022-02-10T15:15:28.000Z | priv/repo/migrations/20190528004301_add_price_fields_to_material.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | defmodule Onsor.Repo.Migrations.AddPriceFieldsToMaterial do
use Ecto.Migration
def change do
alter table(:materials) do
add :price_cents, :integer
add :price_currency, :string, size: 3
end
end
end
| 20.363636 | 59 | 0.714286 |
21e6b67c27001c3fd7794e63c493e08d7e8d05f5 | 157 | exs | Elixir | test/controllers/page_controller_test.exs | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | 2 | 2015-05-12T04:00:03.000Z | 2016-05-02T06:05:25.000Z | test/controllers/page_controller_test.exs | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | defmodule DemoChat.PageControllerTest do
use DemoChat.ConnCase
test "GET /" do
conn = get conn(), "/"
assert html_response(conn, 200)
end
end
| 17.444444 | 40 | 0.687898 |
21e6c812929c7eb202dbe24d5376cdc63a178a0c | 79 | ex | Elixir | lib/resque_web_potion_web/views/layout_view.ex | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | lib/resque_web_potion_web/views/layout_view.ex | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | lib/resque_web_potion_web/views/layout_view.ex | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | defmodule ResqueWebPotionWeb.LayoutView do
use ResqueWebPotionWeb, :view
end
| 19.75 | 42 | 0.848101 |
21e6cc5206606ed54c3993e8513381559b00d135 | 1,916 | ex | Elixir | elixir_backend/clubhouse_phx/lib/clubhouse_phx_web/controllers/user_controller.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx_web/controllers/user_controller.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx_web/controllers/user_controller.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | defmodule ClubhousePhxWeb.UserController do
use ClubhousePhxWeb, :controller
import ClubhousePhxWeb.Authorize
alias Phauxth.Log
alias ClubhouseData.Users
alias ClubhousePhxWeb.{Auth.Token, Email}
action_fallback ClubhousePhxWeb.FallbackController
# the following plugs are defined in the controllers/au... | 32.474576 | 85 | 0.663361 |
21e6cf5b784d0488b4c55149d9fd980387cd4bdd | 979 | exs | Elixir | mix.exs | kwando/ex_viva | 21ac00fcb187295c4038584fd25f78b56cfde418 | [
"MIT"
] | null | null | null | mix.exs | kwando/ex_viva | 21ac00fcb187295c4038584fd25f78b56cfde418 | [
"MIT"
] | null | null | null | mix.exs | kwando/ex_viva | 21ac00fcb187295c4038584fd25f78b56cfde418 | [
"MIT"
] | 1 | 2021-01-06T06:58:02.000Z | 2021-01-06T06:58:02.000Z | defmodule ExViva.MixProject do
use Mix.Project
def project do
[
app: :ex_viva,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Weather observations from the Swedish Maritime Administration",
package: package()
]
... | 22.767442 | 83 | 0.552605 |
21e6dc1557329d0db038f7f164ec2904d528bdaf | 76 | ex | Elixir | lib/events_tools_web/views/venue_view.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | lib/events_tools_web/views/venue_view.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | lib/events_tools_web/views/venue_view.ex | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityToolsWeb.VenueView do
use CommunityToolsWeb, :view
end
| 19 | 40 | 0.842105 |
21e6dd521e7932cc5a48322904b921921c35079a | 1,313 | ex | Elixir | lib/hl7/2.5/segments/sch.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/sch.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/sch.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.SCH do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
placer_appointment_id: DataTypes.Ei,
filler_appointment_id: DataTypes.Ei,
occurrence_number: nil,
placer_group_number: DataTypes.Ei,
sc... | 33.666667 | 49 | 0.733435 |
21e6fcf242ab02f531c378913d7d38cb9c723771 | 50 | exs | Elixir | test/litestream_test.exs | akoutmos/litestream | c0ad1cbe8ffba320dcbed7559a407586d068f4c8 | [
"MIT"
] | 28 | 2022-03-05T05:19:33.000Z | 2022-03-08T09:45:22.000Z | test/litestream_test.exs | akoutmos/litestream | c0ad1cbe8ffba320dcbed7559a407586d068f4c8 | [
"MIT"
] | 1 | 2022-03-07T19:01:00.000Z | 2022-03-07T19:01:00.000Z | test/litestream_test.exs | akoutmos/litestream | c0ad1cbe8ffba320dcbed7559a407586d068f4c8 | [
"MIT"
] | null | null | null | defmodule LitestreamTest do
use ExUnit.Case
end
| 12.5 | 27 | 0.82 |
21e71d8b899cfaa5d68b87306c039b9b2a25bf0f | 1,765 | exs | Elixir | mix.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | null | null | null | mix.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 2 | 2021-03-09T00:39:53.000Z | 2021-05-08T00:42:23.000Z | mix.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | null | null | null | defmodule Artour.Mixfile do
use Mix.Project
def project do
[app: :artour,
version: "0.0.1",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases:... | 28.015873 | 78 | 0.576771 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.