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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9153d4d59bc29723259307a4d2b12fd359ff5bca | 1,682 | exs | Elixir | test/relationships_test.exs | lowks/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 94 | 2015-01-01T16:17:40.000Z | 2021-12-16T02:53:01.000Z | test/relationships_test.exs | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 2 | 2015-09-22T14:45:26.000Z | 2017-08-29T18:16:04.000Z | test/relationships_test.exs | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 11 | 2015-01-06T02:25:00.000Z | 2021-12-16T03:10:11.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule Atlas.RelationshipsTest do
use ExUnit.Case
use Atlas.PersistenceTestHelper
setup_all do
create_user(id: 1, name: "chris")
create_user(id: 2, name: "bob")
create_user(id: 3, name: "ted")
create_post(id: 12, message: "this is a post by chris",... | 31.148148 | 95 | 0.667063 |
91540183d8d54240c8af89bd78f9f64860fb75cd | 11,288 | ex | Elixir | source/output/elixir/Rabbit.ex | yannaing-lynn/Rabbit-Convertor | 8fe53707f97b64555ed430d8d8688c965c5c06a0 | [
"WTFPL"
] | null | null | null | source/output/elixir/Rabbit.ex | yannaing-lynn/Rabbit-Convertor | 8fe53707f97b64555ed430d8d8688c965c5c06a0 | [
"WTFPL"
] | null | null | null | source/output/elixir/Rabbit.ex | yannaing-lynn/Rabbit-Convertor | 8fe53707f97b64555ed430d8d8688c965c5c06a0 | [
"WTFPL"
] | null | null | null | # Rabbit Myanmart font converter
# Author : Arkar Aung for Elixir language
defmodule Rabbit do
"""
Unicode to Zawgyi Rules
"""
defp uni_to_zawgyi_rules() do
[{"\x{1004}\x{103a}\x{1039}","\x{1064}"},{"\x{1039}\x{1010}\x{103d}","\x{1096}"},{"\x{102b}\x{103a}","\x{105a}"},{"\x{100b}\x{1039}\x{100c}","\x{109... | 262.511628 | 5,644 | 0.495039 |
91542ef5c4b07b9f9cce2ccc7d74bddd74804d9a | 4,935 | ex | Elixir | mix/support/normalize/normalize_number.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | mix/support/normalize/normalize_number.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | mix/support/normalize/normalize_number.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Normalize.Number do
@moduledoc false
def normalize(content, locale) do
content
|> normalize_formats(locale)
|> normalize_symbols(locale)
end
@doc false
def normalize_formats(content, _locale) do
numbers = get_in(content, ["numbers"])
number_systems = number_system_names_fr... | 30.276074 | 89 | 0.667477 |
91543a51ea99563de840f8069fa78f9984f716e4 | 794 | exs | Elixir | elixir/tour/mix_and_otp/kv_umbrella/apps/kv/mix.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/mix_and_otp/kv_umbrella/apps/kv/mix.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/mix_and_otp/kv_umbrella/apps/kv/mix.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | defmodule KV.MixProject do
use Mix.Project
def project do
[
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
app: :kv,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod... | 22.055556 | 87 | 0.544081 |
91546dc2e547855ce12eb1afd01994414c9a2944 | 512 | exs | Elixir | mix.exs | launchdarkly/hello_elixir | 8bda9c104904d744e7a9692d1d24f7ea3bc79672 | [
"Apache-2.0"
] | null | null | null | mix.exs | launchdarkly/hello_elixir | 8bda9c104904d744e7a9692d1d24f7ea3bc79672 | [
"Apache-2.0"
] | null | null | null | mix.exs | launchdarkly/hello_elixir | 8bda9c104904d744e7a9692d1d24f7ea3bc79672 | [
"Apache-2.0"
] | null | null | null | defmodule HelloElixir.MixProject do
use Mix.Project
def project do
[
app: :hello_elixir,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 18.285714 | 59 | 0.591797 |
91547c438084d3bbc3dbba4df49b4b12c23cadfa | 1,109 | exs | Elixir | elixir/act/config/config.exs | da99/scrap | a4f04480fc27a93f25dd857ebc013d9da57fb58d | [
"MIT"
] | null | null | null | elixir/act/config/config.exs | da99/scrap | a4f04480fc27a93f25dd857ebc013d9da57fb58d | [
"MIT"
] | 3 | 2020-11-28T05:32:11.000Z | 2022-02-26T08:48:21.000Z | elixir/act/config/config.exs | da99/scrap | a4f04480fc27a93f25dd857ebc013d9da57fb58d | [
"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... | 35.774194 | 73 | 0.749324 |
91547e17a334c910e82d007f9264e5292bcdb98d | 1,036 | ex | Elixir | lib/elexeum/application.ex | elexeum/elexeum | a38bccdd21035e47b286e2ec128b3d217cc4d0bf | [
"Apache-2.0"
] | 2 | 2022-02-16T11:07:01.000Z | 2022-03-14T08:29:48.000Z | lib/elexeum/application.ex | elexeum/elexeum | a38bccdd21035e47b286e2ec128b3d217cc4d0bf | [
"Apache-2.0"
] | null | null | null | lib/elexeum/application.ex | elexeum/elexeum | a38bccdd21035e47b286e2ec128b3d217cc4d0bf | [
"Apache-2.0"
] | null | null | null | defmodule Elexeum.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
Elexeum.Repo,
# Start the Telemetry supervisor
... | 28 | 65 | 0.699807 |
9154ada770f66693ceaf6df93da1ca1dfb16f920 | 3,716 | ex | Elixir | apps/photog/lib/photog_web/views/image_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/photog/lib/photog_web/views/image_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/photog/lib/photog_web/views/image_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule PhotogWeb.ImageView do
use PhotogWeb, :view
alias PhotogWeb.ImageView
alias Photog.Image.Exif
alias Common.DateHelpers
def render("index.json", %{images: images}) do
%{data: render_many(images, ImageView, "image.json")}
end
def render("show.json", %{image: image}) do
%{data: render_one... | 29.728 | 91 | 0.627018 |
91552b88491db2b4b02b4028ea572ecb1dca8c9f | 1,303 | exs | Elixir | sous_chef/config/prod.secret.exs | sergiotapia/bakeware | e7b752c873a88c6a4018b6162608c16da109bf14 | [
"Apache-2.0"
] | null | null | null | sous_chef/config/prod.secret.exs | sergiotapia/bakeware | e7b752c873a88c6a4018b6162608c16da109bf14 | [
"Apache-2.0"
] | null | null | null | sous_chef/config/prod.secret.exs | sergiotapia/bakeware | e7b752c873a88c6a4018b6162608c16da109bf14 | [
"Apache-2.0"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.613636 | 67 | 0.72218 |
9155346ac24935d277976253eecb55c0e6d7fd30 | 939 | ex | Elixir | lib/typo_paint/application.ex | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 4 | 2019-07-31T03:34:19.000Z | 2019-08-03T04:53:48.000Z | lib/typo_paint/application.ex | elixir-sea/typo_kart | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T04:18:58.000Z | 2019-08-05T00:00:07.000Z | lib/typo_paint/application.ex | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T05:55:25.000Z | 2019-09-15T22:31:32.000Z | defmodule TypoPaint.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 29.34375 | 68 | 0.719915 |
91555197b66dc254d0915730af1533579b22484c | 3,249 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1beta1/model/operation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_management/lib/google_api/network_management/v1beta1/model/operation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_management/lib/google_api/network_management/v1beta1/model/operation.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... | 55.067797 | 543 | 0.727916 |
91556ba759b7526ce10347c707c3cd554960ee45 | 973 | ex | Elixir | 3-hello_api/lib/hello_api.ex | Holmes89/elixir-lessons | b800a943dc7fa45008fd9ea0bf1ae3318ec6fc61 | [
"MIT"
] | null | null | null | 3-hello_api/lib/hello_api.ex | Holmes89/elixir-lessons | b800a943dc7fa45008fd9ea0bf1ae3318ec6fc61 | [
"MIT"
] | null | null | null | 3-hello_api/lib/hello_api.ex | Holmes89/elixir-lessons | b800a943dc7fa45008fd9ea0bf1ae3318ec6fc61 | [
"MIT"
] | null | null | null | defmodule HelloApi do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when t... | 32.433333 | 86 | 0.72148 |
9155705018bdcdda6e828c496d26d9e453bcfb75 | 103 | ex | Elixir | lib/perx_parser.ex | lukerollans/perx_parser | 2c5d3c8bdfec284cac086a70c048696eb762c67a | [
"MIT"
] | null | null | null | lib/perx_parser.ex | lukerollans/perx_parser | 2c5d3c8bdfec284cac086a70c048696eb762c67a | [
"MIT"
] | null | null | null | lib/perx_parser.ex | lukerollans/perx_parser | 2c5d3c8bdfec284cac086a70c048696eb762c67a | [
"MIT"
] | null | null | null | defmodule PerxParser do
@moduledoc """
Parse CSV data containing postfix notation values
"""
end
| 17.166667 | 51 | 0.737864 |
9155afaa5191f0b1c27c8cc0b6bbd1e51018271b | 1,498 | ex | Elixir | mia_server/lib/mia_server/dice.ex | SteffenBauer/mia_elixir | 569388b1f9ddd09f8e21a4d9275c42a81d469857 | [
"MIT"
] | null | null | null | mia_server/lib/mia_server/dice.ex | SteffenBauer/mia_elixir | 569388b1f9ddd09f8e21a4d9275c42a81d469857 | [
"MIT"
] | null | null | null | mia_server/lib/mia_server/dice.ex | SteffenBauer/mia_elixir | 569388b1f9ddd09f8e21a4d9275c42a81d469857 | [
"MIT"
] | null | null | null | defmodule MiaServer.Dice do
defstruct die1: nil, die2: nil
def new(die1, die2) when not die1 in 1..6 or not die2 in 1..6, do: :invalid
def new(die1, die2) when die1 > die2, do: %MiaServer.Dice{die1: die1, die2: die2}
def new(die1, die2), do: %MiaServer.Dice{die1: die2, die2: die1}
def equal... | 34.837209 | 89 | 0.604806 |
9155b9dea5fc03ef0edbea547647a1c548e0ea14 | 33,401 | ex | Elixir | lib/marco_polo.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | null | null | null | lib/marco_polo.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | null | null | null | lib/marco_polo.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | null | null | null | defmodule MarcoPolo do
@moduledoc """
Main API for interfacing with OrientDB.
This module provides functions to connect to a running OrientDB server and to
perform commands on it.
A connection to OrientDB can be established using the `start_link/1` function
and stoppped with `stop/1`.
## Connection typ... | 33.704339 | 112 | 0.661028 |
9155f3798dc970a1a276feaeea602d897bf7cf48 | 1,090 | exs | Elixir | apps/blockchain/test/ropsten_test.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 22 | 2017-06-22T02:50:34.000Z | 2022-01-26T20:43:21.000Z | apps/blockchain/test/ropsten_test.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 9 | 2018-10-08T22:56:56.000Z | 2018-10-18T20:41:55.000Z | apps/blockchain/test/ropsten_test.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 5 | 2018-10-06T16:30:48.000Z | 2022-01-26T20:43:26.000Z | defmodule RopstenTest do
@moduledoc """
This test case has the first n blocks of Ropsten, which we
will verify and add to a block tree. As we process in our
progress with Exthereum, we will be able to load and verify
more of the Ropsten chain.
"""
use ExUnit.Case, async: true
alias MerklePatriciaTree.T... | 25.348837 | 95 | 0.651376 |
91560353268e76e8132c62824a7d3e9e2ce38d67 | 1,167 | ex | Elixir | web/channels/user_socket.ex | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | defmodule Guitars.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", Guitars.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authen... | 30.710526 | 83 | 0.701799 |
915628a606557c6c0a1ddd16f651381f6c992574 | 5,330 | ex | Elixir | lib/config_cat/client.ex | isabella232/elixir-sdk | 6f5358d04a11ef83f3ab693a9a05058911196091 | [
"MIT"
] | 14 | 2020-10-15T09:15:12.000Z | 2022-03-18T19:42:28.000Z | lib/config_cat/client.ex | isabella232/elixir-sdk | 6f5358d04a11ef83f3ab693a9a05058911196091 | [
"MIT"
] | 54 | 2020-10-14T05:08:21.000Z | 2021-05-28T13:00:22.000Z | lib/config_cat/client.ex | isabella232/elixir-sdk | 6f5358d04a11ef83f3ab693a9a05058911196091 | [
"MIT"
] | 5 | 2020-10-13T10:24:17.000Z | 2021-11-30T17:47:11.000Z | defmodule ConfigCat.Client do
@moduledoc false
use GenServer
alias ConfigCat.{CachePolicy, Config, Constants, Rollout, User}
require Constants
require Logger
@type client :: ConfigCat.instance_id()
@type option ::
{:cache_policy, module()} | {:cache_policy_id, CachePolicy.id()} | {:name, cli... | 31.169591 | 98 | 0.678799 |
9156856bcaf1c82d12f50df98d9ce2fc07c2ea4c | 3,394 | exs | Elixir | test/types/timestamptz_test.exs | kianmeng/timex_ecto | 6a6ab4f44270ae73f3b126367110d159a0aa613b | [
"MIT"
] | 171 | 2015-06-26T08:16:42.000Z | 2022-02-09T08:58:10.000Z | test/types/timestamptz_test.exs | kianmeng/timex_ecto | 6a6ab4f44270ae73f3b126367110d159a0aa613b | [
"MIT"
] | 79 | 2015-07-03T15:17:21.000Z | 2022-02-05T20:09:25.000Z | test/types/timestamptz_test.exs | kianmeng/timex_ecto | 6a6ab4f44270ae73f3b126367110d159a0aa613b | [
"MIT"
] | 97 | 2015-07-03T11:39:52.000Z | 2022-01-03T09:11:54.000Z | defmodule Timex.Ecto.TimestampWithTimezone.Test do
use ExUnit.Case
use Timex
@utc_timezone %{ "full_name" => "Etc/UTC", "abbreviation" => "UTC", "offset_std" => 0, "offset_utc" => 0}
@example_date Timex.to_datetime(~N[2017-06-27T13:31:43.763])
setup do
local_timezone = case Timezone.local() do
... | 40.891566 | 157 | 0.526517 |
9156988371783ddaac61a1e2e8c927d5db32cfc9 | 1,182 | ex | Elixir | lib/icalendar/deserialize.ex | lpil/icalendar | c2b62edaf7b37bcf1f504f1150fe867d5979b1d1 | [
"MIT"
] | 82 | 2016-05-13T10:13:10.000Z | 2022-02-23T04:11:12.000Z | lib/icalendar/deserialize.ex | lpil/icalendar | c2b62edaf7b37bcf1f504f1150fe867d5979b1d1 | [
"MIT"
] | 50 | 2015-12-24T12:30:55.000Z | 2022-03-22T18:13:19.000Z | lib/icalendar/deserialize.ex | lpil/icalendar | c2b62edaf7b37bcf1f504f1150fe867d5979b1d1 | [
"MIT"
] | 43 | 2016-05-25T15:11:18.000Z | 2022-03-19T16:54:58.000Z | defprotocol ICalendar.Deserialize do
def from_ics(ics)
end
alias ICalendar.Deserialize
defimpl ICalendar.Deserialize, for: BitString do
alias ICalendar.Util.Deserialize
def from_ics(ics) do
ics
|> String.trim()
|> String.split("\n")
|> Enum.map(&String.trim_trailing/1)
|> Enum.map(&String.r... | 28.142857 | 86 | 0.682741 |
9156aba8ade12c12bd822880368055836236e3fc | 1,436 | exs | Elixir | test/bupe_test.exs | kianmeng/bupe | 8662306a5e8b6ad80b309d7d0b73629d273252bd | [
"Apache-2.0"
] | 79 | 2016-08-02T13:17:09.000Z | 2021-12-24T21:47:28.000Z | test/bupe_test.exs | kianmeng/bupe | 8662306a5e8b6ad80b309d7d0b73629d273252bd | [
"Apache-2.0"
] | 48 | 2019-07-22T15:00:30.000Z | 2022-02-28T11:17:36.000Z | test/bupe_test.exs | kianmeng/bupe | 8662306a5e8b6ad80b309d7d0b73629d273252bd | [
"Apache-2.0"
] | 4 | 2017-04-08T17:29:35.000Z | 2021-11-29T01:33:23.000Z | defmodule BUPETest do
use BUPETest.Case, async: true
doctest BUPE
test "parser should detect that file does not exists" do
file_path = fixtures_dir("404.epub")
msg = "file #{file_path} does not exists"
assert_raise ArgumentError, msg, fn ->
BUPE.parse(file_path)
end
end
test "parser s... | 26.592593 | 64 | 0.672006 |
9156b349ea198c5f180f5d3d1b05caaa3ae80c47 | 9,787 | ex | Elixir | spec/fixtures/mix/deps/ex_doc/lib/mix/tasks/docs.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-10-01T18:00:25.000Z | 2022-02-23T18:26:53.000Z | spec/fixtures/mix/deps/ex_doc/lib/mix/tasks/docs.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 107 | 2016-08-03T18:16:51.000Z | 2021-07-23T08:42:51.000Z | spec/fixtures/mix/deps/ex_doc/lib/mix/tasks/docs.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2017-10-31T16:16:05.000Z | 2022-02-16T10:31:04.000Z | defmodule Mix.Tasks.Docs do
use Mix.Task
@shortdoc "Generate documentation for the project"
@moduledoc ~S"""
Uses ExDoc to generate a static web page from the project documentation.
## Command line options
* `--canonical`, `-n` - Indicate the preferred URL with
rel="canonical" link element, defa... | 32.30033 | 101 | 0.657709 |
9156c2427417c1eb05d24180f1feb7c12ed27a2b | 1,119 | exs | Elixir | config/config.exs | geowa4/streaming-github-repos-experiment | 03fac20a8b144fe6c3e19ea69244d817a1cbd9ad | [
"0BSD"
] | null | null | null | config/config.exs | geowa4/streaming-github-repos-experiment | 03fac20a8b144fe6c3e19ea69244d817a1cbd9ad | [
"0BSD"
] | null | null | null | config/config.exs | geowa4/streaming-github-repos-experiment | 03fac20a8b144fe6c3e19ea69244d817a1cbd9ad | [
"0BSD"
] | 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.096774 | 73 | 0.751564 |
9156f733eca1658a6ff59544ab9d9023512f6bef | 3,645 | ex | Elixir | farmbot_os/lib/farmbot_os/configurator/config_data_layer.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/configurator/config_data_layer.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/configurator/config_data_layer.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Configurator.ConfigDataLayer do
@moduledoc """
implementation of Configurator.DataLayer responsible for
gathering and storing data Via Ecto.
"""
@behaviour FarmbotOS.Configurator.DataLayer
require FarmbotCore.Logger
alias FarmbotCore.Config
alias FarmbotOS.FileSystem
alias Farmbot... | 35.735294 | 96 | 0.71797 |
915708903e117c52214c101c49f0b8167197ce50 | 83 | ex | Elixir | bench/algorithm/helloworld/1.ex | turururu/Programming-Language-Benchmarks | de58f0ec355cad32fc64c1df5c7125fc584bf3c4 | [
"MIT"
] | 92 | 2021-04-21T17:53:00.000Z | 2022-03-26T06:47:25.000Z | bench/algorithm/helloworld/1.ex | turururu/Programming-Language-Benchmarks | de58f0ec355cad32fc64c1df5c7125fc584bf3c4 | [
"MIT"
] | 49 | 2021-04-04T00:02:29.000Z | 2022-02-27T00:24:39.000Z | bench/algorithm/helloworld/1.ex | turururu/Programming-Language-Benchmarks | de58f0ec355cad32fc64c1df5c7125fc584bf3c4 | [
"MIT"
] | 47 | 2021-05-19T05:28:33.000Z | 2022-02-21T11:53:48.000Z | defmodule App do
def main(args) do
IO.puts("Hello world #{args}!")
end
end
| 13.833333 | 35 | 0.638554 |
91571341a53981295e1963497be672b5c2557a23 | 5,895 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/postal_codes.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/postal_codes.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/postal_codes.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 40.376712 | 187 | 0.640543 |
915726cbcf409c243da8281c38275dab4087a567 | 1,854 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/list_enabled_services_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_user/lib/google_api/service_user/v1/model/list_enabled_services_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_user/lib/google_api/service_user/v1/model/list_enabled_services_response.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... | 36.352941 | 147 | 0.744876 |
915732f7e2f8d980ec46d44154db0d059dc75f21 | 441 | exs | Elixir | elixir/word-count/word_count.exs | JonRowe/exercism_exercises | 7c840a122748ab59fc2b545c30b187626db87e3b | [
"MIT"
] | null | null | null | elixir/word-count/word_count.exs | JonRowe/exercism_exercises | 7c840a122748ab59fc2b545c30b187626db87e3b | [
"MIT"
] | null | null | null | elixir/word-count/word_count.exs | JonRowe/exercism_exercises | 7c840a122748ab59fc2b545c30b187626db87e3b | [
"MIT"
] | null | null | null | defmodule Words do
@doc """
Count the number of words in the sentence.
Words are compared case-insensitively.
"""
@spec count(String.t) :: map
def count(sentence) do
List.foldl list(sentence), %{}, &update_count/2
end
defp list(words) do
List.flatten Regex.scan ~r/(?:[^\W_]|-)+/u, String.downc... | 22.05 | 70 | 0.650794 |
91573ff3af2a9c8ba60bd2ca19433894d0b96ee0 | 11,325 | ex | Elixir | lib/siwapp/accounts.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 4 | 2015-02-12T09:23:47.000Z | 2022-03-09T18:11:06.000Z | lib/siwapp/accounts.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 254 | 2021-12-09T14:40:41.000Z | 2022-03-31T08:09:37.000Z | lib/siwapp/accounts.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 1 | 2022-03-07T10:25:49.000Z | 2022-03-07T10:25:49.000Z | defmodule Siwapp.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Siwapp.Repo
alias Siwapp.Accounts.User
alias Siwapp.Accounts.UserNotifier
alias Siwapp.Accounts.UserToken
@spec list_users :: [User.t()] | []
def list_users do
User
|> order_by([u], ... | 28.101737 | 114 | 0.658808 |
91578e8e257189cd24a665717cd1655638e42bc8 | 12,644 | ex | Elixir | lib/codes/codes_m94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M94 do
alias IcdCode.ICDCode
def _M940 do
%ICDCode{full_code: "M940",
category_code: "M94",
short_code: "0",
full_name: "Chondrocostal junction syndrome [Tietze]",
short_name: "Chondrocostal junction syndrome [Tietze]",
category_na... | 34.452316 | 84 | 0.615074 |
9157945c4021fdf19fbabce98746f75229e4e34b | 3,987 | exs | Elixir | test/json_schema_test_suite/draft7/pattern_properties_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft7/pattern_properties_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft7/pattern_properties_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | defmodule JsonSchemaTestSuite.Draft7.PatternPropertiesTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe "patternProperties validates properties matching a regex" do
setup do
%{
schema:
Xema.from_json_schema(
%{"patternProperties" => %{"f.*o" => %{"type" => "... | 26.939189 | 86 | 0.540757 |
91579ec46510242886bac8b38e53ded1953455bf | 571 | exs | Elixir | test/encoder_vmem/native_test.exs | membraneframework/membrane-element-msdk-h264 | b9333ea839912ab59cfc16ba8bc7fa96b351f611 | [
"Apache-2.0"
] | 1 | 2021-02-13T05:20:13.000Z | 2021-02-13T05:20:13.000Z | test/encoder_vmem/native_test.exs | membraneframework/membrane-element-msdk-h264 | b9333ea839912ab59cfc16ba8bc7fa96b351f611 | [
"Apache-2.0"
] | null | null | null | test/encoder_vmem/native_test.exs | membraneframework/membrane-element-msdk-h264 | b9333ea839912ab59cfc16ba8bc7fa96b351f611 | [
"Apache-2.0"
] | null | null | null | defmodule Encoder.NativeVmemTest do
use ExUnit.Case, async: true
alias Membrane.Element.Msdk.H264.EncoderVmem.Native, as: Enc
test "Encode 1 240p frame" do
in_path = "../fixtures/reference-100-240p.raw" |> Path.expand(__DIR__)
assert {:ok, file} = File.read(in_path)
assert {:ok, ref} = Enc.create(320... | 38.066667 | 74 | 0.66725 |
9157b6def3fbf91629bee10e265bc5d25cfce223 | 957 | exs | Elixir | test/stellar/network/payments_test.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 1 | 2019-12-19T14:12:20.000Z | 2019-12-19T14:12:20.000Z | test/stellar/network/payments_test.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | null | null | null | test/stellar/network/payments_test.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 4 | 2019-10-09T20:58:35.000Z | 2021-12-06T23:00:46.000Z | defmodule Stellar.Network.Payments.Test do
use Stellar.HttpCase
alias Stellar.Network.Payments
test "get all payments", %{bypass: bypass} do
Bypass.expect_once(bypass, "GET", "/payments", fn conn ->
Plug.Conn.resp(conn, 200, ~s<{"_embedded": { "records": [] }}>)
end)
assert {:ok, %{"_embedded"... | 33 | 77 | 0.624869 |
9157cf124d7351e250ff195ae3a6d69055a1e604 | 3,812 | exs | Elixir | test/queries/set_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 3 | 2020-03-09T14:28:52.000Z | 2021-06-27T13:29:27.000Z | test/queries/set_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 15 | 2019-12-25T23:31:02.000Z | 2020-02-21T16:45:11.000Z | test/queries/set_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | null | null | null | defmodule Queries.SetTest do
use ExUnit.Case
import ExCypher
describe "SET" do
test "allows updating a single property" do
query =
cypher do
match(node(:p, [:Person], %{name: "Andy"}))
set(p.name = "Bob")
return(p.name)
end
expected = "MATCH (p:Perso... | 25.756757 | 98 | 0.501049 |
9158703d45e1e0c4aed6775b4ca627fc6dae6bcc | 90 | ex | Elixir | lib/reservation_book_web/views/user_reset_password_view.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | lib/reservation_book_web/views/user_reset_password_view.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | lib/reservation_book_web/views/user_reset_password_view.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | defmodule ReservationBookWeb.UserResetPasswordView do
use ReservationBookWeb, :view
end
| 22.5 | 53 | 0.866667 |
9158ac77783f4dd66c813fab8b2a410ca686dddf | 540 | ex | Elixir | lib/cloudinary/transformation/angle.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | 1 | 2021-05-23T09:17:44.000Z | 2021-05-23T09:17:44.000Z | lib/cloudinary/transformation/angle.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | 44 | 2020-05-15T03:36:36.000Z | 2022-03-23T21:39:11.000Z | lib/cloudinary/transformation/angle.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | null | null | null | defmodule Cloudinary.Transformation.Angle do
@moduledoc false
defguardp is_mode(mode) when mode in [:auto_right, :auto_left, :ignore, :vflip, :hflip]
@spec to_url_string(Cloudinary.Transformation.angle()) :: String.t()
def to_url_string(angle) when is_number(angle) or is_mode(angle), do: "#{angle}"
def to_u... | 33.75 | 89 | 0.707407 |
9158b0cc0fd69180bdfc6d4e520897e619455861 | 1,517 | ex | Elixir | lib/ex_pwned.ex | techgaun/ex_pwned | 776dc6638aaa17b0e2c11afee6295054b87aeffd | [
"Apache-2.0"
] | 18 | 2017-03-04T11:35:34.000Z | 2020-04-29T22:24:26.000Z | lib/ex_pwned.ex | techgaun/ex_pwned | 776dc6638aaa17b0e2c11afee6295054b87aeffd | [
"Apache-2.0"
] | 11 | 2018-05-16T04:36:57.000Z | 2020-04-07T19:47:40.000Z | lib/ex_pwned.ex | techgaun/ex_pwned | 776dc6638aaa17b0e2c11afee6295054b87aeffd | [
"Apache-2.0"
] | 8 | 2018-05-16T18:15:51.000Z | 2020-06-23T16:58:52.000Z | defmodule ExPwned do
@moduledoc """
ExPwned is a client library for Elixir to interact with [haveibeenpwned.com](https://haveibeenpwned.com/API/v2).
"""
alias ExPwned.Breaches
alias ExPwned.Passwords
@doc """
A convenience to check if an account has been breached or not.
## Example
iex> ExPwned... | 25.283333 | 114 | 0.667765 |
9158cfcde414a6f29372f1446b43bd26ec14cfcc | 1,836 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/course_material_set.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/course_material_set.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/course_material_set.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... | 35.307692 | 133 | 0.73366 |
9158dba2f46a00ecf7a9786cacc3c53e2257ac7c | 12,747 | exs | Elixir | test/mix/tasks/phx.gen.context_test.exs | wgwz/phoenix | 39d1a24ad9bb072bf0962d2dfa30900132c85dd6 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.gen.context_test.exs | wgwz/phoenix | 39d1a24ad9bb072bf0962d2dfa30900132c85dd6 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.gen.context_test.exs | wgwz/phoenix | 39d1a24ad9bb072bf0962d2dfa30900132c85dd6 | [
"MIT"
] | null | null | null | Code.require_file "../../../installer/test/mix_helper.exs", __DIR__
defmodule Phoenix.DupContext do
end
defmodule Mix.Tasks.Phx.Gen.ContextTest do
use ExUnit.Case
import MixHelper
alias Mix.Tasks.Phx.Gen
alias Mix.Phoenix.{Context, Schema}
setup do
Mix.Task.clear()
:ok
end
test "new context", ... | 35.310249 | 120 | 0.621872 |
9158fbcfef75012581671cf5fcecaba9188ecf96 | 5,177 | ex | Elixir | apps/amqp_pubsub/lib/amqp_pubsub/worker.ex | Agosto/gcp-iot-adapter | 6dcc781066041aab248211e85166d1d915f699aa | [
"Apache-2.0"
] | 57 | 2016-11-03T19:27:21.000Z | 2021-11-14T06:15:16.000Z | apps/amqp_pubsub/lib/amqp_pubsub/worker.ex | Agosto/gcp-iot-adapter | 6dcc781066041aab248211e85166d1d915f699aa | [
"Apache-2.0"
] | 4 | 2017-03-27T04:54:47.000Z | 2018-02-16T01:03:31.000Z | apps/amqp_pubsub/lib/amqp_pubsub/worker.ex | Agosto/gcp-iot-adapter | 6dcc781066041aab248211e85166d1d915f699aa | [
"Apache-2.0"
] | 8 | 2017-03-24T12:13:46.000Z | 2021-11-18T09:11:26.000Z | defmodule AmqpPubsub.Worker do
alias AmqpPubsub.Google.Pubsub
require Logger
use GenServer
use AMQP
@max_message_batch_size 500
@prefetch_count 1500
@doc """
Starts a new worker.
"""
def start_link(connection, route, opts \\ []) do
#Agent.start_link(fn -> HashDict.new end)
GenServer.start_... | 35.951389 | 163 | 0.680124 |
915916a63dcf2495eaa691734f2ba4dce556d663 | 1,560 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/email_preferences.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/email_preferences.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/email_preferences.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... | 32.5 | 136 | 0.754487 |
9159466764cf6176d345a36b381c3eeb343ba3b3 | 651 | ex | Elixir | out/manticoresearch-elixir/lib/manticoresearch/model/update_response.ex | mihaj/openapi | 29e878b0be1218a897c4c86bf9d8d51f4d1a3e57 | [
"MIT"
] | null | null | null | out/manticoresearch-elixir/lib/manticoresearch/model/update_response.ex | mihaj/openapi | 29e878b0be1218a897c4c86bf9d8d51f4d1a3e57 | [
"MIT"
] | 3 | 2021-12-21T08:18:48.000Z | 2022-03-24T10:50:37.000Z | out/manticoresearch-elixir/lib/manticoresearch/model/update_response.ex | mihaj/openapi | 29e878b0be1218a897c4c86bf9d8d51f4d1a3e57 | [
"MIT"
] | 5 | 2021-12-11T06:10:14.000Z | 2022-03-18T11:05:24.000Z | # Manticore Search Client
# Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com)
#
# All rights reserved
# Do not edit the class manually.
defmodule Manticoresearch.Model.UpdateResponse do
@moduledoc """
Success response
"""
@derive [Poison.Encoder]
defstruct [
:"_index",
:... | 18.6 | 79 | 0.640553 |
915969aec9d3d636400a8ae8459c15c8b3dbb1cd | 1,807 | exs | Elixir | test/unit/discovery_api_web/plugs/no_store_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/plugs/no_store_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/plugs/no_store_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApiWeb.Plugs.NoStoreTest do
use DiscoveryApiWeb.ConnCase
use Placebo
alias DiscoveryApiWeb.Plugs.NoStore
alias DiscoveryApi.Data.{Model, SystemNameCache}
alias DiscoveryApi.Services.PrestoService
describe "call/2" do
test "adds cache-control: no-store to connection header" do
c... | 30.116667 | 94 | 0.594355 |
9159d72887fac1092ebd4b8c203da39772ec3dd3 | 1,530 | exs | Elixir | mix.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | mix.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | mix.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | defmodule RedPotion.Mixfile do
use Mix.Project
def project do
[app: :red_potion,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps()]
... | 28.867925 | 78 | 0.610458 |
915a23598539ac36697f5faa22122f860c317642 | 2,716 | exs | Elixir | test/divo_kafka_test.exs | SmartColumbusOS/divo_kafka | 1ddd7083a44480a6ebcf8732900e9f9eaf74b5b4 | [
"Apache-2.0"
] | 3 | 2019-07-09T15:52:03.000Z | 2020-06-24T03:40:24.000Z | test/divo_kafka_test.exs | smartcitiesdata/divo_kafka | 1ddd7083a44480a6ebcf8732900e9f9eaf74b5b4 | [
"Apache-2.0"
] | 1 | 2021-05-25T20:09:49.000Z | 2021-07-21T18:19:00.000Z | test/divo_kafka_test.exs | smartcitiesdata/divo_kafka | 1ddd7083a44480a6ebcf8732900e9f9eaf74b5b4 | [
"Apache-2.0"
] | null | null | null | defmodule DivoKafkaTest do
use ExUnit.Case
@zookeeper %{
zookeeper: %{
image: "wurstmeister/zookeeper:latest",
ports: ["2181:2181"],
healthcheck: %{
test: ["CMD-SHELL", "echo ruok | nc -w 2 zookeeper 2181"],
interval: "5s",
timeout: "10s",
retries: 3
}
... | 33.530864 | 119 | 0.557806 |
915a3999ef9684df82fa34b164ecd849e1fd3d8f | 1,050 | exs | Elixir | apps/legion/test/identity/telephony/phone_number/neglection_trait_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/identity/telephony/phone_number/neglection_trait_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/identity/telephony/phone_number/neglection_trait_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Identity.Telephony.PhoneNumber.NeglectionTraitTest do
@moduledoc false
use Legion.DataCase
alias Legion.Identity.Telephony.PhoneNumber.NeglectionTrait
@valid_params %{phone_number_id: 1, authority_id: 1}
test "changeset with valid attrs" do
changeset =
NeglectionTrait.changeset(
... | 22.340426 | 70 | 0.702857 |
915a4e9e4017c701bb897dd967b9b7b8917df5da | 4,688 | ex | Elixir | lib/colonel_kurtz/validation.ex | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 1 | 2020-05-20T18:31:40.000Z | 2020-05-20T18:31:40.000Z | lib/colonel_kurtz/validation.ex | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 11 | 2020-05-06T13:32:43.000Z | 2020-05-15T19:18:39.000Z | lib/colonel_kurtz/validation.ex | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | null | null | null | defmodule ColonelKurtz.Validation do
@moduledoc """
`ColonelKurtz.Validation` provides `validate_blocks/2` and `validate_blocks/3`
which are used to validate block data.
"""
import Ecto.Changeset
alias ColonelKurtz.BlockTypes
alias ColonelKurtz.EctoHelpers
@typep changeset :: %Ecto.Changeset{changes:... | 33.248227 | 90 | 0.697739 |
915a526d219656b8b51f64806e6e984abebfeac1 | 1,823 | ex | Elixir | lib/mockatron_web/router.ex | rzcastilho/mockatron | 237b2bad3e1bf167a6ebac218c7a46b74a9063ee | [
"MIT"
] | 1 | 2018-12-13T16:52:22.000Z | 2018-12-13T16:52:22.000Z | lib/mockatron_web/router.ex | rzcastilho/mockatron | 237b2bad3e1bf167a6ebac218c7a46b74a9063ee | [
"MIT"
] | 28 | 2019-07-04T08:42:33.000Z | 2022-03-28T08:24:07.000Z | lib/mockatron_web/router.ex | rzcastilho/mockatron | 237b2bad3e1bf167a6ebac218c7a46b74a9063ee | [
"MIT"
] | null | null | null | defmodule MockatronWeb.Router do
use MockatronWeb, :router
alias MockatronWeb.Guardian
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {MockatronWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_heade... | 28.046154 | 92 | 0.708722 |
915a589063fed1128197f38d19fcf2705b931b4f | 963 | exs | Elixir | installer/templates/phx_single/config/prod.secret.exs | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | 1 | 2020-04-14T09:49:46.000Z | 2020-04-14T09:49:46.000Z | installer/templates/phx_single/config/prod.secret.exs | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | 1 | 2020-11-08T08:30:10.000Z | 2020-11-08T08:30:10.000Z | installer/templates/phx_single/config/prod.secret.exs | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 32.1 | 71 | 0.71028 |
915a79bc97d368026ac191205fd51ccd24975f42 | 2,768 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api.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... | 42.584615 | 290 | 0.691474 |
915a893b19ac099732bb2b4c6e11a499a6103af6 | 706 | ex | Elixir | lib/eps_web/json_rest.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | lib/eps_web/json_rest.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | lib/eps_web/json_rest.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | defmodule EPSWeb.JsonRest do
@moduledoc """
The JsonRest module provides wrapper functions function HTTPoison.request
"""
def get_json(url, options) do
request(:get, url, "", options)
end
def post_json(url, options, body) do
request(:post, url, Jason.encode!(body), options)
end
### PRIVATE ##... | 22.0625 | 93 | 0.607649 |
915aa99ba2d0c1afb3d7ff0edea6c0d73be2888b | 4,500 | ex | Elixir | lib/vispana_web/live/common_live/index.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 30 | 2022-02-16T13:02:14.000Z | 2022-03-24T12:47:35.000Z | lib/vispana_web/live/common_live/index.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 5 | 2022-02-16T02:21:01.000Z | 2022-03-13T09:29:56.000Z | lib/vispana_web/live/common_live/index.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | null | null | null | defmodule VispanaWeb.VispanaCommon do
import Logger, warn: false
use VispanaWeb, :live_view
alias Vispana.ClusterLoader
alias Vispana.Component.Refresher.RefreshInterval
@impl true
def mount(params, _session, socket) do
log(:debug, "Started mounting...")
config_host = params["config_host"]
so... | 27.950311 | 86 | 0.618 |
915ac21bd1bf3a22bcf127f62b9e283bbdf55511 | 2,490 | ex | Elixir | lib/cadet_web/views/grading_view.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/views/grading_view.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 2 | 2020-04-22T09:06:38.000Z | 2020-04-22T09:15:33.000Z | lib/cadet_web/views/grading_view.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 1 | 2020-06-01T03:26:02.000Z | 2020-06-01T03:26:02.000Z | defmodule CadetWeb.GradingView do
use CadetWeb, :view
import CadetWeb.AssessmentsHelpers
def render("index.json", %{submissions: submissions}) do
render_many(submissions, CadetWeb.GradingView, "submission.json", as: :submission)
end
def render("show.json", %{answers: answers}) do
render_many(answer... | 31.125 | 86 | 0.665462 |
915aebd0e19c87696d82eda91d5e6faf3391a467 | 28,358 | exs | Elixir | lib/elixir/test/elixir/enum_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/test/elixir/enum_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule EnumTest.List do
use ExUnit.Case, async: true
test :empty? do
assert Enum.empty?([])
refute Enum.empty?([1, 2, 3])
refute Enum.empty?(1..3)
end
test :member? do
assert Enum.member?([1, 2, 3], 2)
refute Enum.member?([], 0)
refute E... | 30.75705 | 114 | 0.496474 |
915b53ae10c7531bfbc9e5990cb9c93d73d4a325 | 713 | ex | Elixir | test/support/pages/navigation.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/support/pages/navigation.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/support/pages/navigation.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.Test.Pages.Navigation do
import ExUnit.Assertions
alias Epicenter.Test
alias EpicenterWeb.Test.Pages
def assert_has_menu_item(view_or_conn_or_html, menu_item) do
assert menu_item in menu_items(view_or_conn_or_html)
end
def assert_has_search_field(view_or_conn_or_html) do
vi... | 24.586207 | 62 | 0.750351 |
915b6472fa0bd1b9b1242b47c98dc5e6a74a8e55 | 2,400 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.105263 | 305 | 0.748333 |
915b75d5a86b49787f4ed8a6df5939dbc13d2141 | 2,662 | ex | Elixir | clients/container/lib/google_api/container/v1/model/start_ip_rotation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/start_ip_rotation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/start_ip_rotation_request.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.731343 | 123 | 0.706236 |
915b7b59df8fd677e6ad29bc67e972709cd885c9 | 1,516 | exs | Elixir | code/typespecs/nospecs/config/config.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/typespecs/nospecs/config/config.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/typespecs/nospecs/config/config.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 38.871795 | 85 | 0.75066 |
915ba9a185c6d728e31fc5d5a24548c52be532ce | 1,177 | exs | Elixir | kousa/test/broth/_calls/get_my_following_test.exs | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/test/broth/_calls/get_my_following_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/test/broth/_calls/get_my_following_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule BrothTest.GetMyFollowingTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
client_ws = WsClientF... | 26.155556 | 88 | 0.667799 |
915bb24fdeeb732a335200bb0686f777ef05256a | 12,108 | exs | Elixir | lib/elixir/test/elixir/kernel/warning_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.WarningTest do
use ExUnit.Case
import ExUnit.CaptureIO
defp capture_err(fun) do
capture_io(:stderr, fun)
end
test :unused_variable do
assert capture_err(fn ->
Code.eval_string """
defmodule Sample do
def hello(arg)... | 23.10687 | 129 | 0.58449 |
915bb43f072581e31583b8b8a68fe74715b0251c | 5,015 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/network.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/network.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/network.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 56.988636 | 516 | 0.706879 |
915bc4bc14a5f8a0171ddf16a51f724aa4c217ad | 7,276 | ex | Elixir | lib/sortable.ex | gyson/sortable | adaaaf351ac1c18b5a909734b37f1909a5216b00 | [
"MIT"
] | 3 | 2019-04-28T18:55:35.000Z | 2020-03-06T16:32:31.000Z | lib/sortable.ex | gyson/sortable | adaaaf351ac1c18b5a909734b37f1909a5216b00 | [
"MIT"
] | 1 | 2019-08-11T02:57:47.000Z | 2019-08-11T02:57:47.000Z | lib/sortable.ex | gyson/sortable | adaaaf351ac1c18b5a909734b37f1909a5216b00 | [
"MIT"
] | null | null | null | defmodule Sortable do
@moduledoc """
Sortable is a library to provide serialization with order reserved.
"""
use Bitwise
@on_load :prepare
@zero_key Sortable.Zero
@spec prepare() :: :ok
@doc false
def prepare() do
:persistent_term.put(@zero_key, :binary.compile_pattern(<<0>>))
:ok
end
... | 24.013201 | 109 | 0.565833 |
915bd0175e6da9de1621cf38ea75ef1f5c688328 | 219 | exs | Elixir | priv/repo/migrations/20210511134719_add_repo_to_report.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210511134719_add_repo_to_report.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210511134719_add_repo_to_report.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.AddRepoToReport do
use Ecto.Migration
def change do
alter table(:abuse_reports) do
add(:repo_id, references(:cms_repos, on_delete: :delete_all))
end
end
end
| 21.9 | 67 | 0.744292 |
915bd851ee84b6b65fc16682776c7f21cc5e2b9e | 1,779 | ex | Elixir | lib/radixir/gateway/request/get_token_info.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 16 | 2022-01-05T20:41:55.000Z | 2022-03-25T09:06:43.000Z | lib/radixir/gateway/request/get_token_info.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | null | null | null | lib/radixir/gateway/request/get_token_info.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 1 | 2022-02-10T21:55:26.000Z | 2022-02-10T21:55:26.000Z | defmodule Radixir.Gateway.Request.GetTokenInfo do
@moduledoc false
# @moduledoc """
# Methods to create each map in `GetTokenInfo` request body.
# """
alias Radixir.StitchPlan
@type stitch_plans :: list(keyword)
@type params :: keyword
@doc """
Generates stitch plan for `network_identifier` map in `... | 37.851064 | 138 | 0.707139 |
915bed4d14b0e4d5632a52d99f8b7b6d97e413dd | 1,325 | ex | Elixir | lib/commerce_billing.ex | bcentinaro/commerce_billing | 8e227b16a38721c8441e0bd74d89ef17befda95c | [
"MIT"
] | 178 | 2015-06-01T19:53:18.000Z | 2022-03-29T00:52:38.000Z | lib/commerce_billing.ex | bcentinaro/commerce_billing | 8e227b16a38721c8441e0bd74d89ef17befda95c | [
"MIT"
] | 12 | 2015-05-13T20:33:28.000Z | 2017-02-18T16:17:23.000Z | lib/commerce_billing.ex | bcentinaro/commerce_billing | 8e227b16a38721c8441e0bd74d89ef17befda95c | [
"MIT"
] | 38 | 2015-05-12T16:05:52.000Z | 2021-07-23T18:05:24.000Z | defmodule Commerce.Billing do
use Application
import GenServer, only: [call: 2]
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Define workers and child su... | 30.813953 | 70 | 0.658113 |
915c1621d8249adfba8767218628d4f2adf480fd | 311 | ex | Elixir | lib/hologram/compiler/call_graph_builder/unary_positive_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/call_graph_builder/unary_positive_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/call_graph_builder/unary_positive_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | # TODO: test
alias Hologram.Compiler.CallGraphBuilder
alias Hologram.Compiler.IR.UnaryPositiveOperator
defimpl CallGraphBuilder, for: UnaryPositiveOperator do
def build(%{value: value}, module_defs, templates, from_vertex) do
CallGraphBuilder.build(value, module_defs, templates, from_vertex)
end
end
| 28.272727 | 70 | 0.810289 |
915c20399ffb70484652af2adb0eead43ecd38b5 | 1,691 | ex | Elixir | priv/cabbage/apps/itest/lib/api_model/utxo.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 4 | 2020-10-31T15:16:16.000Z | 2021-02-06T22:44:19.000Z | priv/cabbage/apps/itest/lib/api_model/utxo.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 4 | 2020-11-02T17:12:09.000Z | 2021-02-10T20:35:19.000Z | priv/cabbage/apps/itest/lib/api_model/utxo.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.519231 | 108 | 0.661739 |
915c353cefa9c4ee78d96eaf9359debb95496600 | 1,793 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/conversion_error.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/conversion_error.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/conversion_error.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.830189 | 176 | 0.715003 |
915c4dde03b6e5147d79b6a56d6304b8f48d30f8 | 418 | ex | Elixir | lib/bendpr_web/views/error_view.ex | hex337/bendpr | 503db8f510ff94826e948710fe95bb830eb96a3b | [
"MIT"
] | null | null | null | lib/bendpr_web/views/error_view.ex | hex337/bendpr | 503db8f510ff94826e948710fe95bb830eb96a3b | [
"MIT"
] | 3 | 2018-04-23T16:58:06.000Z | 2018-05-07T17:07:37.000Z | lib/bendpr_web/views/error_view.ex | hex337/bendpr | 503db8f510ff94826e948710fe95bb830eb96a3b | [
"MIT"
] | null | null | null | defmodule BendprWeb.ErrorView do
use BendprWeb, :view
def render("404.json", _assigns) do
%{errors: %{detail: "Page not found"}}
end
def render("500.json", _assigns) do
%{errors: %{detail: "Internal server error"}}
end
# In case no render clause matches or no
# template is found, let's render i... | 23.222222 | 49 | 0.684211 |
915c74d673a5938b15cee1d97ead7301e00e8e31 | 214 | ex | Elixir | lib/bpxe/engine/data_input.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/data_input.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/data_input.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | defmodule BPXE.Engine.DataInput do
defstruct attrs: %{}, value: nil, state: nil
use ExConstructor
import BPXE.Engine.BPMN
def add_data_state(pid, attrs) do
add_node(pid, "dataState", attrs)
end
end
| 19.454545 | 46 | 0.719626 |
915c843acfac2294fb7831f0aab7867915c968eb | 16,308 | exs | Elixir | test/hook/consumers/github_test.exs | VadymBerezdetskyi/accent | 19d2205c7594ac5f0de40e2aaa8ff3c5190a8518 | [
"BSD-3-Clause"
] | null | null | null | test/hook/consumers/github_test.exs | VadymBerezdetskyi/accent | 19d2205c7594ac5f0de40e2aaa8ff3c5190a8518 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | test/hook/consumers/github_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule AccentTest.Hook.Consumers.GitHub do
use Accent.RepoCase
alias Accent.Hook.Consumers.GitHub, as: Consumer
alias Accent.Hook.Consumers.GitHub.FileServerMock
alias Accent.{Document, Integration, Language, Operation, ProjectCreator, Repo, Revision, Translation, User, Version}
alias Ecto.UUID
import ... | 35.529412 | 150 | 0.562239 |
915c908703b3e633c4dd22a052a9f4ee45991c86 | 796 | ex | Elixir | lib/smache/cache.ex | selfup/smache | 5355418fbd0bc7d5c73e17647b41176079c7a242 | [
"MIT"
] | 7 | 2018-10-07T00:45:10.000Z | 2020-01-12T03:27:52.000Z | lib/smache/cache.ex | selfup/smache | 5355418fbd0bc7d5c73e17647b41176079c7a242 | [
"MIT"
] | 13 | 2018-04-13T00:47:37.000Z | 2019-08-10T22:20:27.000Z | lib/smache/cache.ex | selfup/smache | 5355418fbd0bc7d5c73e17647b41176079c7a242 | [
"MIT"
] | 2 | 2019-07-12T23:30:20.000Z | 2019-08-10T21:56:57.000Z | defmodule Smache.Cache do
def put_or_post(id, data) do
find_and_create_or_update(id, data)
end
defp find_and_create_or_update(id, data) do
case get(id) do
{:not_found} ->
set(id, data)
{:found, found_data} ->
get_or_update(id, data, found_data)
end
end
def get(id) do... | 17.688889 | 49 | 0.571608 |
915caccc31742f58e187b36728c50982447b9930 | 22,797 | ex | Elixir | lib/ecto/query/builder.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder do
@moduledoc false
@distinct ~w(count)a
alias Ecto.Query
@typedoc """
Quoted types store primitive types and types in the format
{source, quoted}. The latter are handled directly in the planner,
never forwarded to Ecto.Type.
The Ecto.Type module concerns itself only wit... | 36.128368 | 113 | 0.634426 |
915cc00c0dd9cdef6193e39b9c0613f1be18b3ed | 1,202 | exs | Elixir | test/rockelivery/user_test.exs | felipe-jm/ignite-elixir-rockelivery | 0c057a081561e7f0518be424dbb3647a7ac2401e | [
"MIT"
] | null | null | null | test/rockelivery/user_test.exs | felipe-jm/ignite-elixir-rockelivery | 0c057a081561e7f0518be424dbb3647a7ac2401e | [
"MIT"
] | null | null | null | test/rockelivery/user_test.exs | felipe-jm/ignite-elixir-rockelivery | 0c057a081561e7f0518be424dbb3647a7ac2401e | [
"MIT"
] | null | null | null | defmodule Rockelivery.UserTest do
use Rockelivery.DataCase, async: true
import Rockelivery.Factory
alias Ecto.Changeset
alias Rockelivery.User
describe "changeset/2" do
test "when all params are valid, returns a valid changeset" do
params = build(:user_params)
response = User.changeset(par... | 26.711111 | 89 | 0.65807 |
915cc370723b013d054f11f10b733415455462ff | 18,369 | exs | Elixir | test/api_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2021-04-30T14:28:08.000Z | 2021-04-30T14:28:08.000Z | test/api_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | test/api_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.APITest do
use ExUnit.Case, async: true
test "raise error at the right line" do
code = "prop label, :unknown_type"
message = ~r/code:4/
assert_raise(CompileError, message, fn -> eval(code) end)
end
test "validate type" do
code = "prop label, {:a, :b}"
message = ~r/invali... | 25.835443 | 98 | 0.577168 |
915cd19a2723db6e44728c8e46478d8962898644 | 694 | exs | Elixir | config/test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | import Config
import_config "releases.exs"
config :accent, Accent.Endpoint,
http: [port: 4001],
server: false
config :accent, Accent.Repo, pool: Ecto.Adapters.SQL.Sandbox
config :accent, Accent.Mailer,
webapp_url: "http://example.com",
mailer_from: "accent-test@example.com",
x_smtpapi_header: ~s({"categor... | 26.692308 | 70 | 0.757925 |
915ce145a13c77d098bd20875386c6f4ffc73430 | 663 | exs | Elixir | mix.exs | datx05/elixir-docker | e50aa6e5a44069fbe47ce89c316f06baf6673c47 | [
"MIT"
] | null | null | null | mix.exs | datx05/elixir-docker | e50aa6e5a44069fbe47ce89c316f06baf6673c47 | [
"MIT"
] | null | null | null | mix.exs | datx05/elixir-docker | e50aa6e5a44069fbe47ce89c316f06baf6673c47 | [
"MIT"
] | null | null | null | defmodule Docker.Mixfile do
use Mix.Project
def project do
[
app: :docker,
version: "0.0.1",
elixir: "~> 1.0",
description: desc(),
package: package(),
deps: deps()
]
end
def application do
[
applications: [
:logger,
:exjsx,
:hackne... | 14.413043 | 70 | 0.479638 |
915cea42b98eede8175b87c2078b81f686485231 | 4,300 | ex | Elixir | apps/fz_http/lib/fz_http/users/user.ex | CloudFire-LLC/fireguard | 50ccfc792cf580104922026fedbbf3cd6e374574 | [
"Apache-2.0"
] | 5 | 2020-05-22T00:24:39.000Z | 2021-06-18T18:28:45.000Z | apps/fz_http/lib/fz_http/users/user.ex | CloudFire-LLC/fireguard | 50ccfc792cf580104922026fedbbf3cd6e374574 | [
"Apache-2.0"
] | 64 | 2020-05-22T00:31:00.000Z | 2021-06-28T15:21:33.000Z | apps/fz_http/lib/fz_http/users/user.ex | CloudFire-LLC/fireguard | 50ccfc792cf580104922026fedbbf3cd6e374574 | [
"Apache-2.0"
] | 2 | 2020-05-22T00:27:52.000Z | 2021-03-14T19:37:27.000Z | defmodule FzHttp.Users.User do
@moduledoc """
Represents a User.
"""
@min_password_length 8
@max_password_length 64
use Ecto.Schema
import Ecto.Changeset
import FzHttp.Users.PasswordHelpers
alias FzCommon.FzMap
alias FzHttp.Devices.Device
schema "users" do
field :email, :string
field :... | 28.289474 | 94 | 0.655581 |
915cf2ab8501a5050f82fa477b96a7948c9e5a49 | 3,887 | ex | Elixir | lib/web/template/precompiler.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/web/template/precompiler.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/web/template/precompiler.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.TemplatePrecompiler do
@moduledoc """
Definition of macro to precompile HAML templates.
Each gear's template module (web/template.ex) must use this module as follows:
defmodule YourGear.Template do
use... | 40.915789 | 159 | 0.645228 |
915d24ccc15bdf23abf433aaeaef67952ac9f050 | 1,717 | ex | Elixir | lib/vax/types/counter.ex | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | 21 | 2022-01-22T21:41:30.000Z | 2022-03-25T20:39:04.000Z | lib/vax/types/counter.ex | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | 11 | 2022-01-18T15:56:37.000Z | 2022-03-21T23:26:37.000Z | lib/vax/types/counter.ex | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | null | null | null | defmodule Vax.Types.Counter do
@moduledoc """
Type for CRDT counters
"""
use Vax.Type
@impl Ecto.Type
def type(), do: :counter
@impl Ecto.Type
def load(value) do
{:ok, value}
end
@impl Ecto.Type
def dump(value) do
{:ok, value}
end
@impl Ecto.Type
def cast(value) when is_integer(v... | 24.183099 | 83 | 0.689575 |
915d3b29432797521fb2f031575668b097b7f877 | 726 | ex | Elixir | lib/code_corps_web/views/token_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps_web/views/token_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps_web/views/token_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.TokenView do
@moduledoc false
use CodeCorpsWeb, :view
def render("show.json", %{token: token, user_id: user_id}) do
%{
token: token,
user_id: user_id,
}
end
def render("401.json", %{message: message}) do
%{
errors: [
%{
id: "UNAUTHORIZED... | 17.285714 | 63 | 0.491736 |
915d61ca2323de206d7b013925ad899788bba90c | 8,852 | ex | Elixir | lib/rdf.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF do
@moduledoc """
The top-level module of RDF.ex.
RDF.ex consists of:
- modules for the nodes of an RDF graph
- `RDF.Term`
- `RDF.IRI`
- `RDF.BlankNode`
- `RDF.Literal`
- the `RDF.Literal.Datatype` system
- a facility for the mapping of URIs of a vocabulary to Elixir modules ... | 32.189091 | 99 | 0.641776 |
915d7852474af8beaef69665afc8183ca0471cd8 | 821 | exs | Elixir | mix.exs | martin-torhage/csv | beef74fc628821854ed789a90ba137044f538848 | [
"MIT"
] | 1 | 2021-07-08T16:29:25.000Z | 2021-07-08T16:29:25.000Z | mix.exs | martin-torhage/csv | beef74fc628821854ed789a90ba137044f538848 | [
"MIT"
] | null | null | null | mix.exs | martin-torhage/csv | beef74fc628821854ed789a90ba137044f538848 | [
"MIT"
] | 1 | 2020-04-16T15:30:33.000Z | 2020-04-16T15:30:33.000Z | defmodule Postgrex.MixProject do
use Mix.Project
def project() do
[
app: :csv,
version: "3.0.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: "Erlang CSV parser implemented with NIF",
package: package(),
deps: [{:ex_doc, "~> 0.18.0"... | 22.189189 | 68 | 0.509135 |
915db13bdd8b4dc3947e233cec77a822896f69e6 | 376 | ex | Elixir | lib/isaac.ex | joshuataylor/elixir-isaac | 0a775196bc949e040eb68a521eb8bcb1374d3913 | [
"Unlicense"
] | 6 | 2015-04-07T12:52:01.000Z | 2020-05-16T18:30:39.000Z | lib/isaac.ex | joshuataylor/elixir-isaac | 0a775196bc949e040eb68a521eb8bcb1374d3913 | [
"Unlicense"
] | 2 | 2018-03-21T05:42:01.000Z | 2018-03-29T12:39:26.000Z | lib/isaac.ex | joshuataylor/elixir-isaac | 0a775196bc949e040eb68a521eb8bcb1374d3913 | [
"Unlicense"
] | 3 | 2016-09-28T04:16:57.000Z | 2020-05-27T09:27:16.000Z | defmodule Isaac do
@moduledoc """
ISAAC stream cipher
"""
@on_load { :init, 0}
app = Mix.Project.config[:app]
def init do
path = :filename.join(:code.priv_dir(unquote(app)), 'isaac')
:ok = :erlang.load_nif(path,0)
end
def init(_seeds) do
exit(:nif_library_not_loaded)
end
def next_i... | 15.666667 | 64 | 0.651596 |
915dd77f6e11f39a2e4e9c8f434fc0874b012e6e | 1,794 | ex | Elixir | lib/quadquizaminos/courses.ex | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | lib/quadquizaminos/courses.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | lib/quadquizaminos/courses.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule Quadquizaminos.Courses do
@courses_directory Application.compile_env!(:quadquizaminos, :base_questions_directory) <>
"/courses"
def courses_list do
@courses_directory
|> File.ls!()
|> Enum.filter(fn folder ->
File.dir?("#{@courses_directory}/#{folder}") and
... | 26.776119 | 92 | 0.614827 |
915debb25c0c6192ff49c5ae65bac402187f84c2 | 18,596 | exs | Elixir | test/ecto/query/subquery_test.exs | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 2 | 2021-02-25T15:51:16.000Z | 2021-02-25T18:42:35.000Z | test/ecto/query/subquery_test.exs | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 1 | 2021-03-09T16:43:23.000Z | 2021-03-09T16:43:23.000Z | test/ecto/query/subquery_test.exs | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 1 | 2018-06-18T14:47:58.000Z | 2018-06-18T14:47:58.000Z | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Query.SubqueryTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Query.Planner
alias Ecto.Query.JoinExpr
defmodule Comment do
use Ecto.Schema
schema "comments" do
field :text, :string
... | 39.65032 | 129 | 0.566681 |
915df66d7fb18de991c323cccefddf563dbd407c | 856 | exs | Elixir | config/config.exs | mfunaro/handiman-phoenix | 5d94114f37561647096f1695e3f0a3a3d1c7ca34 | [
"MIT",
"Unlicense"
] | 1 | 2015-08-15T02:40:27.000Z | 2015-08-15T02:40:27.000Z | config/config.exs | mfunaro/handiman-phoenix | 5d94114f37561647096f1695e3f0a3a3d1c7ca34 | [
"MIT",
"Unlicense"
] | 1 | 2015-09-11T00:02:33.000Z | 2015-09-11T03:24:21.000Z | config/config.exs | mfunaro/handiman-phoenix | 5d94114f37561647096f1695e3f0a3a3d1c7ca34 | [
"MIT",
"Unlicense"
] | 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
# Configures the endpoint
config :handiman, Handiman.Endpoint,
url: [host: "localho... | 34.24 | 86 | 0.760514 |
915e047ff98f77bdcab8228482b2e47fa491493c | 3,034 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_api_http_body.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_api_http_body.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_api_http_body.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... | 57.245283 | 1,171 | 0.753131 |
915e10818b66925a10a19c48cfd43b14becf2da1 | 2,424 | ex | Elixir | clients/books/lib/google_api/books/v1/model/reading_position.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/books/lib/google_api/books/v1/model/reading_position.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/books/lib/google_api/books/v1/model/reading_position.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.292308 | 165 | 0.681931 |
915e1bd0bf665ebe5328b74ca7455342717ff69a | 19,182 | exs | Elixir | test/pdf_info_test.exs | preciz/pdf_info | d1601d6af706c25176a596e257f21a17c836405a | [
"MIT"
] | 6 | 2020-07-26T18:41:40.000Z | 2021-12-02T21:28:04.000Z | test/pdf_info_test.exs | preciz/pdf_info | d1601d6af706c25176a596e257f21a17c836405a | [
"MIT"
] | 8 | 2020-09-17T04:59:10.000Z | 2022-02-24T04:12:52.000Z | test/pdf_info_test.exs | preciz/pdf_info | d1601d6af706c25176a596e257f21a17c836405a | [
"MIT"
] | null | null | null | defmodule PDFInfoTest do
use ExUnit.Case
@info_binary """
trailer
<<
/Root 37907 0 R
/Info 1 0 R
/ID [<DD4EDCDA157A2F8C5AC9278D8AB4BED7> <DD4EDCDA157A2F8C5AC9278D8AB4BED7>]
/Size 37910
>>
1 0 obj
<<
/Title (PostgreSQL 12.2 Documentation)
/Author (The PostgreSQL Global Development Gro... | 48.19598 | 1,317 | 0.590084 |
915e2302a96de574de4955a33c1b592e597b7b80 | 3,447 | exs | Elixir | apps/reaper/test/unit/reaper/decoder/geojson_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/unit/reaper/decoder/geojson_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2020-01-09T21:00:10.000Z | 2020-01-09T21:00:10.000Z | apps/reaper/test/unit/reaper/decoder/geojson_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.Decoder.GeoJsonTest do
use ExUnit.Case
import Checkov
alias SmartCity.TestDataGenerator, as: TDG
@filename "#{__MODULE__}_temp_file"
setup do
on_exit(fn ->
File.rm(@filename)
end)
:ok
end
describe "decode/2" do
test "should return a list of feature maps when sou... | 30.504425 | 92 | 0.590949 |
915e2309199770becb8dfa92bb53ad482bf8ec79 | 46,664 | ex | Elixir | deps/db_connection/lib/db_connection.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | defmodule DBConnection do
@moduledoc """
A behaviour module for implementing efficient database connection
client processes, pools and transactions.
`DBConnection` handles callbacks differently to most behaviours. Some
callbacks will be called in the calling process, with the state
copied to and from the c... | 35.218113 | 102 | 0.650544 |
915e3bc5429bd4a13e208caef45e2172ec7a1d8d | 6,138 | ex | Elixir | core/web/conn.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | core/web/conn.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | core/web/conn.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Conn do
alias Antikythera.{Http.Method, Conn, Request, Context, GearName}
alias Antikythera.G2gRequest, as: GReq
alias Antikythera.G2gResponse, as: GRes
alias AntikytheraCore.Request, as: CoreReq
alias Antikyt... | 33.540984 | 130 | 0.659009 |
915e449943ea1881630a1bb1950e3c0f62478024 | 2,089 | ex | Elixir | lib/oli/resources/resource_type.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/resources/resource_type.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/resources/resource_type.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Resources.ResourceType do
use Ecto.Schema
import Ecto.Changeset
# It would be great to encapsulate all of this into a macro.
@types [
%{id: 1, type: "page"},
%{id: 2, type: "container"},
%{id: 3, type: "activity"},
%{id: 4, type: "objective"},
%{id: 5, type: "secondary"},
... | 36.649123 | 86 | 0.670177 |
915e47298bb254528e8942d5acee08ac355ff7b5 | 9,760 | ex | Elixir | lib/sanbase/external_services/coinmarketcap/coinmarketcap.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase/external_services/coinmarketcap/coinmarketcap.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase/external_services/coinmarketcap/coinmarketcap.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.ExternalServices.Coinmarketcap do
@moduledoc """
A GenServer, which updates the data from coinmarketcap on a regular basis.
On regular intervals it will fetch the data from coinmarketcap and insert it
into a local DB
"""
use GenServer, restart: :permanent, shutdown: 5_000
require ... | 32.105263 | 116 | 0.679098 |
915e51448fbf3ec3e3cb754324de0e6eb5708519 | 1,119 | exs | Elixir | hello/config/config.exs | kgantsov/learning-elixir | 020c28774ab036872ba8aa19e2a450310be0b338 | [
"MIT"
] | null | null | null | hello/config/config.exs | kgantsov/learning-elixir | 020c28774ab036872ba8aa19e2a450310be0b338 | [
"MIT"
] | null | null | null | hello/config/config.exs | kgantsov/learning-elixir | 020c28774ab036872ba8aa19e2a450310be0b338 | [
"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.096774 | 73 | 0.75067 |
915e7ac2e11172c55457e5df1ec2edfc315123ef | 1,578 | ex | Elixir | apps/blockchain_web/lib/blockchain_web/views/block_view.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/lib/blockchain_web/views/block_view.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/lib/blockchain_web/views/block_view.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | defmodule BlockchainWeb.BlockView do
require Logger
use BlockchainWeb, :view
defp encode_or_nil(binary) do
len = byte_size(binary) * 8
if binary == <<0::size(len)>>,
do: nil,
else: Base.url_encode64(binary, padding: false)
end
def render("index.json", %{blocks: blocks}) do
%{data: r... | 23.205882 | 71 | 0.583016 |
915e7b8e4cd561c12bf08c6c2df0a9d80d3ee2e7 | 973 | exs | Elixir | farmbot_core/priv/asset/migrations/20181022002449_create_syncs_table.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/asset/migrations/20181022002449_create_syncs_table.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/asset/migrations/20181022002449_create_syncs_table.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule Elixir.FarmbotCore.Asset.Repo.Migrations.CreateSyncsTable do
use Ecto.Migration
def change do
create table("syncs", primary_key: false) do
add(:local_id, :binary_id, primary_key: true)
add(:devices, {:array, :map})
add(:diagnostic_dumps, {:array, :map})
add(:farm_events, {:arr... | 34.75 | 70 | 0.612539 |
915e7f5396038421bda8f65a86aa00fa889e21c6 | 355 | ex | Elixir | lib/bypass/utils.ex | scoremedia/bypass | 530d6fc48c557ac85071c8df405a3efae3c91a03 | [
"MIT"
] | null | null | null | lib/bypass/utils.ex | scoremedia/bypass | 530d6fc48c557ac85071c8df405a3efae3c91a03 | [
"MIT"
] | null | null | null | lib/bypass/utils.ex | scoremedia/bypass | 530d6fc48c557ac85071c8df405a3efae3c91a03 | [
"MIT"
] | null | null | null | defmodule Bypass.Utils do
@moduledoc false
Application.load(:bypass)
if Application.get_env(:bypass, :enable_debug_log, false) do
defmacro debug_log(msg) do
quote bind_quoted: [msg: msg] do
require Logger
Logger.debug ["[bypass] ", msg]
end
end
else
defmacro debug_log(_m... | 19.722222 | 62 | 0.64507 |
915e810ae7cd649fe1ef40a0105ba20fe567388a | 150 | ex | Elixir | lib/errors/format.ex | gmartsenkov/gate | 67a1d9a3b0c0515312b49e9a110cb00ebc46d402 | [
"MIT"
] | 3 | 2019-11-04T21:40:10.000Z | 2021-12-22T11:25:37.000Z | lib/errors/format.ex | gmartsenkov/gate | 67a1d9a3b0c0515312b49e9a110cb00ebc46d402 | [
"MIT"
] | null | null | null | lib/errors/format.ex | gmartsenkov/gate | 67a1d9a3b0c0515312b49e9a110cb00ebc46d402 | [
"MIT"
] | null | null | null | defmodule Gate.Errors.Format do
@moduledoc false
def call([_h | _t] = value), do: "[#{Enum.join(value, ", ")}]"
def call(value), do: value
end
| 21.428571 | 64 | 0.626667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.