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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2112005147990ef85435b45f29c7549a4e8f1f3d | 1,559 | exs | Elixir | test/elixir_runtime/monitor/state_test.exs | RTLS/aws-lambda-elixir-runtime | 0b7799ea680b36528db441c8c8094575fb7c5d39 | [
"MIT-0"
] | 1 | 2020-12-16T12:22:53.000Z | 2020-12-16T12:22:53.000Z | test/elixir_runtime/monitor/state_test.exs | Xerpa/aws-lambda-elixir-runtime | a673c0e934ce49aab9e1f3eea51218c29d3cafde | [
"MIT-0"
] | null | null | null | test/elixir_runtime/monitor/state_test.exs | Xerpa/aws-lambda-elixir-runtime | a673c0e934ce49aab9e1f3eea51218c29d3cafde | [
"MIT-0"
] | 1 | 2020-10-20T12:28:22.000Z | 2020-10-20T12:28:22.000Z | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
defmodule ElixirRuntime.Monitor.State.Test do
use ExUnit.Case, async: true
doctest ElixirRuntime.Monitor.State
alias ElixirRuntime.Monitor
alias Monitor.State
defmodule FakeClient do
@behaviour El... | 25.983333 | 80 | 0.704298 |
211202bfa7956eaefb01a44d7fd5c869e3dbeb67 | 2,232 | ex | Elixir | apps/booklist/lib/booklist_web/controllers/reports_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/booklist/lib/booklist_web/controllers/reports_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/booklist/lib/booklist_web/controllers/reports_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule BooklistWeb.ReportsController do
use BooklistWeb, :controller
alias Booklist.Reports
def report_for_year(conn, year, current_year) when is_integer(year) do
should_show_next_year = year < current_year
ratings = Reports.get_ratings(year)
ratings_count = Enum.count(ratings)
average_rating... | 34.338462 | 97 | 0.738799 |
21120d07d825d3857a66e0e2a08c86892349e239 | 688 | exs | Elixir | test/neopixel_test.exs | DisruptiveAngels/nerves_neopixel | 712b2efc7bcd4dd0051f7791e16f786186d3377b | [
"MIT"
] | null | null | null | test/neopixel_test.exs | DisruptiveAngels/nerves_neopixel | 712b2efc7bcd4dd0051f7791e16f786186d3377b | [
"MIT"
] | null | null | null | test/neopixel_test.exs | DisruptiveAngels/nerves_neopixel | 712b2efc7bcd4dd0051f7791e16f786186d3377b | [
"MIT"
] | null | null | null | defmodule Nerves.Neopixel.Test do
use ExUnit.Case
doctest Nerves.Neopixel
alias Nerves.Neopixel
test "configuring a Neopixel interface" do
ch0_config = [pin: 18, count: 3]
ch1_config = [pin: 19, count: 3]
{:ok, pid} = Neopixel.start_link(ch0_config, ch1_config)
assert is_pid(pid)
end
tes... | 22.193548 | 61 | 0.622093 |
21123e0949633cb7eb430b47c04e7c9340dd9cca | 1,113 | exs | Elixir | config/config.exs | mlensment/durak | d28296a230c12c5eb8c21bf8bd31eb384b2d4ddc | [
"MIT"
] | null | null | null | config/config.exs | mlensment/durak | d28296a230c12c5eb8c21bf8bd31eb384b2d4ddc | [
"MIT"
] | null | null | null | config/config.exs | mlensment/durak | d28296a230c12c5eb8c21bf8bd31eb384b2d4ddc | [
"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.903226 | 73 | 0.750225 |
21124c12da173f5a58aa1cb25aa11626fac94dd6 | 300 | exs | Elixir | test/spigot_test.exs | Qqwy/elixir_spigot | b7dff45247c631060f207f0af8cd90ddfe36d635 | [
"MIT"
] | null | null | null | test/spigot_test.exs | Qqwy/elixir_spigot | b7dff45247c631060f207f0af8cd90ddfe36d635 | [
"MIT"
] | null | null | null | test/spigot_test.exs | Qqwy/elixir_spigot | b7dff45247c631060f207f0af8cd90ddfe36d635 | [
"MIT"
] | null | null | null | defmodule SpigotTest do
use ExUnit.Case
doctest Spigot
test "the truth" do
assert 1 + 1 == 2
end
test "The Spigot.convert/2 function works just like explained in the paper." do
assert Spigot.convert({3, 7}, [1,0,0,2,2,1,0,1,1,2]) |> Enum.take(100) === [2, 4, 0, 1, 1]
end
end
| 21.428571 | 95 | 0.63 |
2112871a31966e5c07f970535474181ed34601ce | 4,773 | exs | Elixir | test/replug_test.exs | akoutmos/replug | bb7cdbc17802725d3670350f3e9b60a5689647bc | [
"MIT"
] | 13 | 2020-08-04T15:14:56.000Z | 2021-09-21T00:17:35.000Z | test/replug_test.exs | akoutmos/replug | bb7cdbc17802725d3670350f3e9b60a5689647bc | [
"MIT"
] | null | null | null | test/replug_test.exs | akoutmos/replug | bb7cdbc17802725d3670350f3e9b60a5689647bc | [
"MIT"
] | 2 | 2021-09-21T00:17:37.000Z | 2022-03-28T22:05:35.000Z | defmodule ReplugTest do
use ExUnit.Case, async: false
use Plug.Test
alias Replug.TestPlugs.SimpleAssign
alias Replug.TestConfigs.SimpleConfig
describe "Replug" do
test "should reconfigure the intended plug per request" do
opts =
Replug.init(
plug: SimpleAssign,
opts: {S... | 28.242604 | 117 | 0.606118 |
2112958bc43b6d3e3e6557e3f3199419d8b7497b | 572 | exs | Elixir | mix.exs | iHDeveloper/compsys | 60d5c091db17f1c2892b04da3db7cad75d7c3bb9 | [
"MIT"
] | null | null | null | mix.exs | iHDeveloper/compsys | 60d5c091db17f1c2892b04da3db7cad75d7c3bb9 | [
"MIT"
] | null | null | null | mix.exs | iHDeveloper/compsys | 60d5c091db17f1c2892b04da3db7cad75d7c3bb9 | [
"MIT"
] | null | null | null | defmodule CompSys.MixProject do
use Mix.Project
def project do
[
app: :compsys,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_ap... | 19.724138 | 87 | 0.576923 |
2112a8b49963233c5b312b9e4743eb4510fea305 | 3,604 | exs | Elixir | test/abrechnomat_bot/commands/handle_payment/parser_test.exs | peterhass/abrechnomat_bot | b402e07b810d36443333c093dfac117768aea2cf | [
"MIT"
] | 1 | 2020-08-31T03:02:31.000Z | 2020-08-31T03:02:31.000Z | test/abrechnomat_bot/commands/handle_payment/parser_test.exs | peterhass/abrechnomat_bot | b402e07b810d36443333c093dfac117768aea2cf | [
"MIT"
] | 2 | 2020-12-20T12:16:49.000Z | 2020-12-31T14:33:36.000Z | test/abrechnomat_bot/commands/handle_payment/parser_test.exs | peterhass/abrechnomat_bot | b402e07b810d36443333c093dfac117768aea2cf | [
"MIT"
] | 1 | 2021-06-15T07:04:03.000Z | 2021-06-15T07:04:03.000Z | defmodule AbrechnomatBot.Commands.HandlePayment.ParserTest do
use ExUnit.Case
alias AbrechnomatBot.Commands.HandlePayment.Parser
test "amount and text for another user" do
update = %Nadia.Model.Update{
callback_query: nil,
channel_post: nil,
chosen_inline_result: nil,
edited_message: ... | 28.603175 | 81 | 0.504162 |
2112db8c2eb74cfbe899ce3ee3e6799dc6177b82 | 1,706 | ex | Elixir | clients/client/elixir/lib/ory/model/normalized_project_revision_hook.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/normalized_project_revision_hook.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/normalized_project_revision_hook.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.NormalizedProjectRevisionHook do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"config_key",
:"created_at",
... | 30.464286 | 91 | 0.686401 |
2112def8e66bdcd1b4e4de6c55495dc21c35f0ac | 1,151 | exs | Elixir | clients/speech/config/config.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/speech/config/config.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/speech/config/config.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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... | 37.129032 | 73 | 0.758471 |
2112e8cf654f5ceb25411281e4c569892a5f71d1 | 406 | ex | Elixir | test/support/id_counter_test_helper.ex | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | 17 | 2021-01-06T12:11:28.000Z | 2021-05-26T00:39:37.000Z | test/support/id_counter_test_helper.ex | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | test/support/id_counter_test_helper.ex | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | defmodule Grax.Id.CounterTestHelper do
import ExUnit.Callbacks
def with_counter(adapter, name) do
start_supervised!({adapter, name})
end
def with_clean_fs(adapter, name) do
remove_counter_file(adapter, name)
on_exit(fn -> remove_counter_file(adapter, name) end)
:ok
end
def remove_counter_... | 20.3 | 57 | 0.704433 |
2112e9e380fd19ee4b213f28355d0104d01c1866 | 943 | exs | Elixir | test/service_client_test.exs | skyguru/signalbroker-web-client | 18e4e6f3c4197ec2354d52a2c53918fb46346a73 | [
"Apache-2.0"
] | null | null | null | test/service_client_test.exs | skyguru/signalbroker-web-client | 18e4e6f3c4197ec2354d52a2c53918fb46346a73 | [
"Apache-2.0"
] | null | null | null | test/service_client_test.exs | skyguru/signalbroker-web-client | 18e4e6f3c4197ec2354d52a2c53918fb46346a73 | [
"Apache-2.0"
] | 1 | 2019-04-17T20:28:46.000Z | 2019-04-17T20:28:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 33.678571 | 62 | 0.76246 |
211319552c4d613ebe682757f175ba1d2142666b | 696 | ex | Elixir | lib/logger_fluentd_backend.ex | jackjoe/logger-fluentd-backend | 78e096b9d723eb93738594a7f4f256e64ae323b7 | [
"MIT"
] | 10 | 2018-09-21T18:08:36.000Z | 2022-01-21T22:10:14.000Z | lib/logger_fluentd_backend.ex | jackjoe/logger-fluentd-backend | 78e096b9d723eb93738594a7f4f256e64ae323b7 | [
"MIT"
] | null | null | null | lib/logger_fluentd_backend.ex | jackjoe/logger-fluentd-backend | 78e096b9d723eb93738594a7f4f256e64ae323b7 | [
"MIT"
] | 3 | 2019-02-25T00:19:46.000Z | 2019-07-31T16:56:39.000Z | defmodule LoggerFluentdBackend 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, warn: false
children = [
# Define workers and child supervisors to be supervised
... | 26.769231 | 67 | 0.706897 |
21136fcfa17b543845024f3e4696ec0b9e107529 | 58,164 | exs | Elixir | lib/elixir/test/elixir/kernel/expansion_test.exs | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | 1 | 2018-10-02T13:55:29.000Z | 2018-10-02T13:55:29.000Z | lib/elixir/test/elixir/kernel/expansion_test.exs | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/expansion_test.exs | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ExpansionTarget do
defmacro seventeen, do: 17
defmacro bar, do: "bar"
end
defmodule Kernel.ExpansionTest do
use ExUnit.Case, async: false
describe "__block__" do
test "expands to nil when empty" do
assert expand(quote(do: unquote(:__... | 25.277705 | 164 | 0.529211 |
21137283ef77642b176649059bac5c17d33a8082 | 2,108 | exs | Elixir | config/dev.exs | simonfraserduncan/my-copy | 03c618035a06a63d8fcf9f6511ef59d3e4cf2da9 | [
"Apache-2.0"
] | 4 | 2021-02-20T02:47:36.000Z | 2021-06-08T18:42:40.000Z | config/dev.exs | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | 1 | 2021-02-17T18:28:35.000Z | 2021-02-17T18:28:35.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 webpack to recompile .js and .css sources.
config :loom, LoomWeb.Endpoint,
http: [port: 4000],
d... | 28.106667 | 68 | 0.686907 |
21137a12dd79d76a747f2e3089c5d5a6ef5b222c | 3,825 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/api/text.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/api/text.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/api/text.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.977528 | 196 | 0.656209 |
21137bc46db5a8da75a7f33a022d1042cd7d47cf | 1,210 | exs | Elixir | test/phoenix/plugs/accepts_test.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | test/phoenix/plugs/accepts_test.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | test/phoenix/plugs/accepts_test.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | defmodule Phoenix.Plugs.AcceptsTest do
use ExUnit.Case, async: true
use PlugHelper
alias Phoenix.Plugs
alias Phoenix.Controller.Action
defmodule HtmlController do
use Phoenix.Controller
plug Plugs.Accepts, ["html"]
def show(conn, _), do: text(conn, "ok")
end
defmodule JsonController do
u... | 28.139535 | 93 | 0.663636 |
21138723d48dcca4f9c691f7a21149441001bc9d | 169 | ex | Elixir | lib/objects/import.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 16 | 2018-02-12T22:06:00.000Z | 2022-01-04T05:07:35.000Z | lib/objects/import.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 2 | 2019-12-07T15:54:10.000Z | 2019-12-07T19:21:14.000Z | lib/objects/import.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | null | null | null | defmodule OpenSCAD.Import do
use OpenSCAD.Object
@type t :: %{
file: String.t(),
convexity: integer(),
layer: integer()
}
end
| 16.9 | 31 | 0.526627 |
21138b0c4b25354333134eed64de2b82b2873190 | 2,181 | exs | Elixir | config/dev.exs | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | config/dev.exs | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | config/dev.exs | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :transferdrop, Transferdrop.Repo,
username: "postgres",
password: "postgres",
database: "transferdrop_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and... | 28.324675 | 68 | 0.696928 |
211391ea2337604f9db121341f121c1cd22cdd76 | 214 | ex | Elixir | lib/updown/errors.ex | milok7/Updown-elixir | 9342d7f163e6e43695fa3ba9f944aca23552c26c | [
"Apache-2.0"
] | 3 | 2016-07-06T13:39:31.000Z | 2017-08-23T08:50:06.000Z | lib/updown/errors.ex | milok7/Updown-elixir | 9342d7f163e6e43695fa3ba9f944aca23552c26c | [
"Apache-2.0"
] | null | null | null | lib/updown/errors.ex | milok7/Updown-elixir | 9342d7f163e6e43695fa3ba9f944aca23552c26c | [
"Apache-2.0"
] | null | null | null | defmodule Updown.Error do
@moduledoc false
@doc ~S"""
A basic error message, if the error being thrown is not known
"""
@spec message(atom):: binary
defexception message: "An unknown error has occurred"
end | 23.777778 | 63 | 0.733645 |
21139a13438c344a693b7cc51d8953bad4cbb3a5 | 1,247 | ex | Elixir | lib/asciinema/emails/email.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | lib/asciinema/emails/email.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | lib/asciinema/emails/email.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule Asciinema.Emails.Email do
use Bamboo.Phoenix, view: AsciinemaWeb.EmailView
import Bamboo.Email
def signup_email(email_address, signup_url) do
hostname = instance_hostname()
base_email()
|> to(email_address)
|> subject("Welcome to #{hostname}")
|> render("signup.text", signup_url: s... | 28.340909 | 77 | 0.696872 |
21139c3afea7c8b54b7c3ede90835f69d63a850a | 306 | exs | Elixir | priv/repo/migrations/20201101221029_make_users_disabled_field_not_null.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | priv/repo/migrations/20201101221029_make_users_disabled_field_not_null.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | priv/repo/migrations/20201101221029_make_users_disabled_field_not_null.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Repo.Migrations.MakeUsersDisabledFieldNotNull do
use Ecto.Migration
def change do
execute("update users set disabled=false where disabled is null;", "")
alter table(:users) do
modify :disabled, :boolean, default: false, null: false, from: :boolean
end
end
end
| 25.5 | 77 | 0.72549 |
2113a294973a6707678acd7515d65755de4f5948 | 772 | exs | Elixir | priv/repo/migrations/20180103102329_clear_projects_run_ico_import.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20180103102329_clear_projects_run_ico_import.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20180103102329_clear_projects_run_ico_import.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.ClearProjectsRunIcoImport do
use Ecto.Migration
require Logger
import Supervisor.Spec
def up do
# Making the migration no-op. The data migration is rerun in 20180108110118_clear_projects_run_ico_import2.exs
# faktory_host = System.get_env("FAKTORY_HOST")
#
#... | 28.592593 | 114 | 0.720207 |
2113b6f68b9d91702b5a00d255e2ba8a284809dd | 2,008 | exs | Elixir | implementations/elixir/ockam/ockam/mix.exs | gabhijit/ockam | fd8315801044afc0ffa4845fedf9f4a79dc9143b | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/mix.exs | gabhijit/ockam | fd8315801044afc0ffa4845fedf9f4a79dc9143b | [
"Apache-2.0"
] | 57 | 2021-07-05T01:21:31.000Z | 2022-03-24T01:12:50.000Z | implementations/elixir/ockam/ockam/mix.exs | gabhijit/ockam | fd8315801044afc0ffa4845fedf9f4a79dc9143b | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.MixProject do
use Mix.Project
@version "0.1.0"
@elixir_requirement "~> 1.10"
@ockam_github_repo "https://github.com/ockam-network/ockam"
@ockam_github_repo_path "implementations/elixir/ockam/ockam"
def project do
[
app: :ockam,
version: @version,
elixir: @elixir_req... | 23.904762 | 94 | 0.587151 |
2113edbc5c35d7449e91671af54ed4176bb738bb | 1,122 | exs | Elixir | config/config.exs | yorunoR/mongo_ecto | 70309dcf45690154a6979defed69a33d9f87fa3b | [
"MIT"
] | null | null | null | config/config.exs | yorunoR/mongo_ecto | 70309dcf45690154a6979defed69a33d9f87fa3b | [
"MIT"
] | null | null | null | config/config.exs | yorunoR/mongo_ecto | 70309dcf45690154a6979defed69a33d9f87fa3b | [
"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.193548 | 73 | 0.753119 |
2113fc2bcccaaa868c47eb5705e3d3a2238ebbd5 | 670 | ex | Elixir | elixir/TodoList.ex | mir-dhaka/coding_playground | f20138e404c27e008b2902d4be2e9f9d4c25b11f | [
"Apache-2.0"
] | 2 | 2019-05-23T06:05:20.000Z | 2019-11-17T01:35:45.000Z | elixir/TodoList.ex | mir-dhaka/coding_playground | f20138e404c27e008b2902d4be2e9f9d4c25b11f | [
"Apache-2.0"
] | 2 | 2020-08-29T12:29:11.000Z | 2020-08-29T12:30:14.000Z | elixir/TodoList.ex | mir-dhaka/coding_playground | f20138e404c27e008b2902d4be2e9f9d4c25b11f | [
"Apache-2.0"
] | 2 | 2020-07-18T17:07:36.000Z | 2021-12-06T02:21:15.000Z | defmodule TodoList do
def new, do: Map.new
def add_entry(todo_list, entry) do
Map.update(todo_list, entry.date, [entry.title], fn(titles) -> [entry.title | titles] end)
end
def entries(todo_list, date) do
Map.get(todo_list, date, [])
end
end
todo_list =
TodoList.new
|> TodoList.add_entr... | 27.916667 | 94 | 0.655224 |
2113fd2b7218e471b35d4c1dffb6bf59dcdb9ce0 | 685 | ex | Elixir | lib/metar_map_web/router.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | lib/metar_map_web/router.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | 2 | 2022-02-19T17:09:09.000Z | 2022-02-19T17:10:29.000Z | lib/metar_map_web/router.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | defmodule MetarMapWeb.Router do
use MetarMapWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {MetarMapWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
p... | 22.096774 | 66 | 0.70073 |
2114280a961bb33afcac14027a357f9a5316e57d | 5,611 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_face_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_face_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_face_annotation.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... | 57.255102 | 536 | 0.714311 |
21145563a2d364d06b350cf0f03d498c32f5d5f1 | 2,875 | ex | Elixir | lib/malan_web/controllers/session_controller.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 3 | 2021-04-24T17:54:55.000Z | 2021-09-10T15:40:19.000Z | lib/malan_web/controllers/session_controller.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 57 | 2021-04-24T03:17:16.000Z | 2022-03-27T04:50:22.000Z | lib/malan_web/controllers/session_controller.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | null | null | null | defmodule MalanWeb.SessionController do
use MalanWeb, :controller
require Logger
alias Malan.Accounts
alias Malan.Accounts.Session
action_fallback MalanWeb.FallbackController
def admin_index(conn, _params) do
sessions = Accounts.list_sessions()
render(conn, "index.json", sessions: sessions)
en... | 29.639175 | 95 | 0.657739 |
21147125498277a3bc7108397bc60538cd08caa4 | 73 | exs | Elixir | test/test_helper.exs | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 2 | 2021-06-28T07:06:13.000Z | 2021-07-18T01:13:27.000Z | test/test_helper.exs | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 1 | 2021-06-20T07:49:56.000Z | 2021-06-20T07:49:56.000Z | test/test_helper.exs | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 1 | 2021-07-17T10:23:36.000Z | 2021-07-17T10:23:36.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(FiveHundred.Repo, :manual)
| 24.333333 | 57 | 0.794521 |
2114831394eb87c47f79df4478ba32f3e9e8171c | 269 | ex | Elixir | lib/hexpm/web/views/api/download_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/api/download_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/api/download_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.DownloadView do
use Hexpm.Web, :view
def render("show." <> _, %{download: download}) do
render_one(download, __MODULE__, "show")
end
def render("show", %{download: download}) do
%{download.view => download.downloads}
end
end
| 22.416667 | 52 | 0.67658 |
2114acb717af3724f24c9b0db6547b1c8412ea8a | 1,513 | ex | Elixir | lib/ansible_phoenix_build_web/views/error_helpers.ex | danschultzer/ansible-phoenix-build | 093fdf6dae3cc5c1268750e0511364a80419f0a2 | [
"MIT"
] | 61 | 2017-12-04T20:10:48.000Z | 2021-08-28T14:16:13.000Z | lib/ansible_phoenix_build_web/views/error_helpers.ex | wtcross/ansible-phoenix-build | 093fdf6dae3cc5c1268750e0511364a80419f0a2 | [
"MIT"
] | 7 | 2017-12-15T04:39:02.000Z | 2021-05-06T19:41:22.000Z | lib/ansible_phoenix_build_web/views/error_helpers.ex | wtcross/ansible-phoenix-build | 093fdf6dae3cc5c1268750e0511364a80419f0a2 | [
"MIT"
] | 7 | 2017-12-16T05:58:08.000Z | 2021-08-03T20:41:34.000Z | defmodule AnsiblePhoenixBuildWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
... | 33.622222 | 88 | 0.678123 |
2114ca83afab3d26c2698559e894c2ad4a6b3334 | 171 | ex | Elixir | lib/sum_list.ex | tarcisiodelmondes/ignite-sum_list | d57364afc95aab63181dd14fe4bb236c7e7b7d9c | [
"MIT"
] | 1 | 2022-03-16T20:41:44.000Z | 2022-03-16T20:41:44.000Z | lib/sum_list.ex | riosvictor/sum_list | 32fabe2f94e92a2eb42827761839a3db1ce7517f | [
"MIT"
] | null | null | null | lib/sum_list.ex | riosvictor/sum_list | 32fabe2f94e92a2eb42827761839a3db1ce7517f | [
"MIT"
] | null | null | null | defmodule SumList do
def call(list), do: sum(list, 0)
defp sum([], acc), do: acc
defp sum([head | tail], acc) do
acc = acc + head
sum(tail, acc)
end
end
| 15.545455 | 34 | 0.584795 |
2114ce6eee2ce9f63a9e5c67afcc334a2128c746 | 3,318 | ex | Elixir | lib/mix/tasks/gen_resource.ex | nathanjohnson320/elmer | 41ce46422dec91a2ab342c098e010eaf1cc7c98f | [
"MIT"
] | 9 | 2016-05-31T04:49:27.000Z | 2017-06-17T11:50:36.000Z | lib/mix/tasks/gen_resource.ex | nathanjohnson320/elmer | 41ce46422dec91a2ab342c098e010eaf1cc7c98f | [
"MIT"
] | null | null | null | lib/mix/tasks/gen_resource.ex | nathanjohnson320/elmer | 41ce46422dec91a2ab342c098e010eaf1cc7c98f | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Elmer.Gen.Resource do
@shortdoc "Generates Model, View, Update, Msg files given a model definition."
@moduledoc """
Creates a complete Elm resource (Model, Update, Msgs, Listview, Editview, Cmds).
"""
use Mix.Task
@doc """
Creates a new elm Model in your elm path.
Run with `mix e... | 32.851485 | 118 | 0.64346 |
2114e44d56bde86f9c84eee442d510275e5d7866 | 1,822 | exs | Elixir | clients/iap/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/iap/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/iap/mix.exs | 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... | 27.19403 | 122 | 0.652031 |
2114ea1fdd2d6c4952f4b819c64919f9cffd0cec | 442 | ex | Elixir | lib/frankt/plug/set_gettext.ex | acutario/frankt | 0f77403d969d824e41cae7a235ebcc2d7e6a4d2c | [
"MIT"
] | 6 | 2018-01-07T13:49:20.000Z | 2020-01-19T02:29:47.000Z | lib/frankt/plug/set_gettext.ex | acutario/frankt | 0f77403d969d824e41cae7a235ebcc2d7e6a4d2c | [
"MIT"
] | 10 | 2018-01-03T18:09:35.000Z | 2018-07-02T16:25:02.000Z | lib/frankt/plug/set_gettext.ex | acutario/frankt | 0f77403d969d824e41cae7a235ebcc2d7e6a4d2c | [
"MIT"
] | 1 | 2018-07-16T08:57:35.000Z | 2018-07-16T08:57:35.000Z | # Sets the Frankt gettext information for the incoming action.
# The gettext module is stored under the `frankt_module` key in the socket.
defmodule Frankt.Plug.SetGettext do
@moduledoc false
use Frankt.Plug
@impl true
def call(socket = %{private: private = %{frankt_module: frankt_module}}, _opts) do
gett... | 31.571429 | 84 | 0.746606 |
2114eeba60085d33d5149cf489a9619be4d00097 | 9,490 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p2alpha1_label_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p2alpha1_label_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p2alpha1_label_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 58.220859 | 262 | 0.788936 |
2114f3ff0d62e7e5569bd159accd4500c47ab671 | 2,310 | ex | Elixir | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/status.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... | 43.584906 | 427 | 0.721212 |
21153324974291b53ea137059b00b9194ff72067 | 415 | ex | Elixir | lib/quantum/executor/start_opts.ex | happysalada/quantum-core | a4758de2edac7758f879a7e3f3fde5c3aca7bf71 | [
"Apache-2.0"
] | null | null | null | lib/quantum/executor/start_opts.ex | happysalada/quantum-core | a4758de2edac7758f879a7e3f3fde5c3aca7bf71 | [
"Apache-2.0"
] | null | null | null | lib/quantum/executor/start_opts.ex | happysalada/quantum-core | a4758de2edac7758f879a7e3f3fde5c3aca7bf71 | [
"Apache-2.0"
] | 1 | 2022-03-06T10:24:39.000Z | 2022-03-06T10:24:39.000Z | defmodule Quantum.Executor.StartOpts do
@moduledoc false
# Start Options for Quantum.Executor
@type t :: %__MODULE__{
task_supervisor_reference: GenServer.server(),
task_registry_reference: GenServer.server(),
debug_logging: boolean
}
@enforce_keys [
:task_supervisor... | 21.842105 | 56 | 0.696386 |
21153d2312e063c50765f0cbd6bb4cebd67d47af | 21,170 | ex | Elixir | lib/aws/elasticsearch.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/elasticsearch.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/elasticsearch.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Elasticsearch do
@moduledoc """
Amazon Elasticsearch Configuration Service
Use the Amazon Elasticsearch Configuration API to create, configure, and
manage Elasticsearch domains.
For sa... | 34.648118 | 173 | 0.679358 |
211552e388371debd9aba84091aa4f2c3a082ba1 | 1,663 | ex | Elixir | lib/cgrates_web_jsonapi_web/controllers/tp_resource_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_resource_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_resource_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.TpResourceController do
use CgratesWebJsonapiWeb, :controller
use JaResource
use CgratesWebJsonapi.TpSubresource
use CgratesWebJsonapi.DefaultSorting
use CgratesWebJsonapi.CsvExport
use CgratesWebJsonapi.DeleteAll
alias CgratesWebJsonapi.TariffPlans.TpResource
plug JaRes... | 33.938776 | 95 | 0.662057 |
21156604b7c0834681ba06fbcfa307420306e89a | 19,457 | ex | Elixir | clients/container/lib/google_api/container/v1/model/cluster.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/cluster.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/cluster.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.362179 | 198 | 0.705556 |
211569c6abdfc9c7924aa1b19e620b20f9b91b8b | 1,495 | exs | Elixir | test/bsv/key_pair_test.exs | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 26 | 2019-08-31T13:39:50.000Z | 2022-01-18T10:23:26.000Z | test/bsv/key_pair_test.exs | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-04-24T18:24:01.000Z | 2021-06-15T10:59:33.000Z | test/bsv/key_pair_test.exs | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-05-21T15:27:31.000Z | 2021-06-13T05:26:47.000Z | defmodule BSV.KeyPairTest do
use ExUnit.Case, async: true
alias BSV.KeyPair
alias BSV.PrivKey
doctest KeyPair
describe "KeyPair.new/1" do
test "generates new random keypair" do
assert %KeyPair{privkey: privkey, pubkey: pubkey} = KeyPair.new()
assert byte_size(privkey.d) == 32
assert pri... | 32.5 | 91 | 0.717057 |
21158386fab10e3cda08df08940e785deddad920 | 1,095 | exs | Elixir | mix.exs | dkataskin/libcluster_etcd | 598ef42035893dd083c286ff2cc1508e6a196a5d | [
"MIT"
] | 1 | 2019-06-10T11:48:26.000Z | 2019-06-10T11:48:26.000Z | mix.exs | dkataskin/libcluster_etcd | 598ef42035893dd083c286ff2cc1508e6a196a5d | [
"MIT"
] | null | null | null | mix.exs | dkataskin/libcluster_etcd | 598ef42035893dd083c286ff2cc1508e6a196a5d | [
"MIT"
] | null | null | null | defmodule LibclusterEtcd.MixProject do
use Mix.Project
def project do
[
app: :libcluster_etcd,
version: "1.1.1",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
source_url: "https://github.com/dkataskin/libcluster_... | 19.553571 | 74 | 0.554338 |
2115ca4dec14f062d086be4101ba67f0043b0b93 | 5,440 | ex | Elixir | lib/avrora/storage/registry.ex | mw23/avrora | a143537fdd0c5f1ad9567b6c3cfc260cb07fc7ce | [
"MIT"
] | null | null | null | lib/avrora/storage/registry.ex | mw23/avrora | a143537fdd0c5f1ad9567b6c3cfc260cb07fc7ce | [
"MIT"
] | null | null | null | lib/avrora/storage/registry.ex | mw23/avrora | a143537fdd0c5f1ad9567b6c3cfc260cb07fc7ce | [
"MIT"
] | null | null | null | defmodule Avrora.Storage.Registry do
@moduledoc """
`Avora.Storage` behavior implementation which uses [Confluent Schema
Registry](https://docs.confluent.io/current/schema-registry/develop/api.html).
This only implements the minimum client functionality needed to talk with the registry.
Inspired by [Schemex]... | 31.445087 | 160 | 0.623897 |
2115e45dcf543733b292cb91afd97cedbd604934 | 1,819 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_export_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_export_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_export_metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.38 | 145 | 0.741616 |
2115eb1cbf34e871b9db5b335ba1d856ad26da02 | 22,309 | ex | Elixir | lib/chromic_pdf/supervisor.ex | resterle/chromic_pdf | 58cf474f6ac60bebb205b382d4febd3ff2430247 | [
"Apache-2.0"
] | null | null | null | lib/chromic_pdf/supervisor.ex | resterle/chromic_pdf | 58cf474f6ac60bebb205b382d4febd3ff2430247 | [
"Apache-2.0"
] | null | null | null | lib/chromic_pdf/supervisor.ex | resterle/chromic_pdf | 58cf474f6ac60bebb205b382d4febd3ff2430247 | [
"Apache-2.0"
] | null | null | null | defmodule ChromicPDF.Supervisor do
@moduledoc """
Use this for multiple ChromicPDF instances.
## When is this useful?
* You want to completely separate two or more PDF worker pools
* You want to give your PDF module a custom API
## Usage
defmodule MyApp.MyPDFGenerator do
use ChromicPDF.Sup... | 36.572131 | 186 | 0.620512 |
2115fd1c814903556fffe39b6a41dc15f9df7131 | 4,298 | ex | Elixir | lib/tasks/phx.gen.tailwind.ex | walkr/phx_gen_tailwind | 4089468dd9951584e5245baff34cde5d3f5899c0 | [
"Apache-2.0"
] | 57 | 2021-08-30T00:08:17.000Z | 2022-03-09T22:22:55.000Z | lib/tasks/phx.gen.tailwind.ex | walkr/phx_gen_tailwind | 4089468dd9951584e5245baff34cde5d3f5899c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T23:26:28.000Z | 2022-01-13T09:30:19.000Z | lib/tasks/phx.gen.tailwind.ex | walkr/phx_gen_tailwind | 4089468dd9951584e5245baff34cde5d3f5899c0 | [
"Apache-2.0"
] | 6 | 2021-09-24T21:53:54.000Z | 2021-12-15T19:44:44.000Z | defmodule Mix.Tasks.Phx.Gen.Tailwind do
@shortdoc "Adds Tailwind to an existing Phoenix application"
@moduledoc """
Adds Tailwind to an existing Phoenix application.
mix phx.gen.tailwind
It will do the following:
* Create an `assets/package.json` file.
* Install `tailwindcss`
* Create a `tailwin... | 24.420455 | 97 | 0.624011 |
211601f36a5573fb086928c3c1ffb220a1ef55a0 | 718 | ex | Elixir | lib/get_shorty_web/gettext.ex | lancehalvorsen/get_shorty | 65459633f3166a5f3e8653ff928857266a0c6fbe | [
"MIT"
] | 1 | 2021-08-23T01:42:58.000Z | 2021-08-23T01:42:58.000Z | lib/get_shorty_web/gettext.ex | lancehalvorsen/get_shorty | 65459633f3166a5f3e8653ff928857266a0c6fbe | [
"MIT"
] | null | null | null | lib/get_shorty_web/gettext.ex | lancehalvorsen/get_shorty | 65459633f3166a5f3e8653ff928857266a0c6fbe | [
"MIT"
] | null | null | null | defmodule GetShortyWeb.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 GetShortyWeb.Gettext
# Simple translation
gettext("Here ... | 28.72 | 72 | 0.681058 |
21160c6706aba687849d2859edbfac7fbb4ded4b | 190 | ex | Elixir | 01-elixir-in-action/lib/robex.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | 01-elixir-in-action/lib/robex.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | 01-elixir-in-action/lib/robex.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | defmodule Robex do
@moduledoc """
Documentation for `Robex`.
"""
@doc """
Hello world.
## Examples
iex> Robex.hello()
:world
"""
def hello, do: :world
end
| 9.5 | 28 | 0.542105 |
21161dd18841f1f978e86ddbc8aa1cada34d423c | 2,709 | ex | Elixir | apps/meeple_web/lib/meeple_web/live/rules_live/index.ex | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | apps/meeple_web/lib/meeple_web/live/rules_live/index.ex | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | 13 | 2021-12-24T23:44:10.000Z | 2022-03-04T20:56:28.000Z | apps/meeple_web/lib/meeple_web/live/rules_live/index.ex | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | defmodule MeepleWeb.RulesLive.Index do
use MeepleWeb, :live_view
import MeepleWeb.BoardLive.FieldHelper
def mount(_params, _session, socket) do
{:ok, socket}
end
def render(assigns) do
~H"""
<h1>Meeple Rules</h1>
<h2>Vegetation</h2>
<p>
</p>
<div class="grid grid-cols-5">
... | 29.129032 | 87 | 0.533776 |
21164f1ff4cfa9118f48da3a6ec456cfd3086039 | 306 | exs | Elixir | priv/repo/migrations/20180412194247_add_log.exs | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1,223 | 2017-01-11T19:25:08.000Z | 2022-03-21T12:31:28.000Z | priv/repo/migrations/20180412194247_add_log.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 1,428 | 2017-01-09T16:36:18.000Z | 2022-03-28T14:19:40.000Z | priv/repo/migrations/20180412194247_add_log.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 184 | 2017-01-10T18:08:06.000Z | 2022-03-14T18:53:24.000Z | defmodule BorsNG.Database.Repo.Migrations.AddLog do
use Ecto.Migration
def change do
create table(:log) do
add :patch_id, references(:patches, on_delete: :delete_all)
add :user_id, references(:users, on_delete: :delete_all)
add :cmd, :binary
timestamps()
end
end
end
| 23.538462 | 65 | 0.686275 |
211662c6de7a9dfb469948172fe537f455d7f7ef | 1,977 | exs | Elixir | mix.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | mix.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | mix.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule Flowr.Umbrella.MixProject do
use Mix.Project
def project do
[
app: :flowr,
version: "0.1.0",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
lockfile: "mix.lock",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
... | 26.36 | 79 | 0.508852 |
21167dc954d1c54418ab554d5551c508a6f6cefc | 405 | ex | Elixir | lib/rocketpay/accounts/deposit.ex | lucas-sachet/NLW04 | 1c678764d49d421d73d6beb942036593863397e0 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/deposit.ex | lucas-sachet/NLW04 | 1c678764d49d421d73d6beb942036593863397e0 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/deposit.ex | lucas-sachet/NLW04 | 1c678764d49d421d73d6beb942036593863397e0 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Accounts.Deposit do
alias Rocketpay.Accounts.Operation
alias Rocketpay. Repo
def call(params) do
params
|> Operation.call( :deposit)
|> run_transaction()
end
defp run_transaction(multi) do
case Repo.transaction(multi) do
{:error, _operation, reason, _changes} -> {... | 20.25 | 64 | 0.664198 |
2116e88976d6f0a6b785dd664ef13ca7a2681513 | 2,749 | ex | Elixir | apps/parse/lib/parse/facility/parking.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/parse/lib/parse/facility/parking.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/parse/lib/parse/facility/parking.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Parse.Facility.Parking do
@moduledoc """
Parses the JSON from an IBM endpoint hooked up to some of the MBTA's parking garages.
## Format
The file looks like:
{
"counts": [
{
"garageName": "MBTA Route 128",
"freeSpace": "1020",
"capacity": ... | 28.340206 | 94 | 0.601673 |
2116f2a83207c3b7b79447d51b0f15c9071d6b7a | 2,352 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/cluster_istio.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/cluster_istio.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/cluster_istio.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... | 42 | 208 | 0.732993 |
2116f7d40220a9d11dea4d98488efbc08aefc47a | 875 | exs | Elixir | chapter2/exlivery/test/orders/agent_test.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter2/exlivery/test/orders/agent_test.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter2/exlivery/test/orders/agent_test.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule Exlivery.Orders.AgentTest do
use ExUnit.Case
import Exlivery.Factory
alias Exlivery.Orders.Agent, as: OrderAgent
describe "save/1" do
test "saves the order" do
order = build(:order)
OrderAgent.start_link(%{})
assert {:ok, _uuid} = OrderAgent.save(order)
end
end
desc... | 19.021739 | 56 | 0.637714 |
211716c75f237d8a64dc7ef44f49e21171a1cd7b | 925 | ex | Elixir | lib/common_graphql_client/caller/http.ex | gitdav/common_graphql_client | 0311d11a4ee7445c8b1ff46c5c068e1cec400819 | [
"MIT"
] | null | null | null | lib/common_graphql_client/caller/http.ex | gitdav/common_graphql_client | 0311d11a4ee7445c8b1ff46c5c068e1cec400819 | [
"MIT"
] | null | null | null | lib/common_graphql_client/caller/http.ex | gitdav/common_graphql_client | 0311d11a4ee7445c8b1ff46c5c068e1cec400819 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(HTTPoison) do
defmodule CommonGraphQLClient.Caller.Http do
@behaviour CommonGraphQLClient.CallerBehaviour
@impl CommonGraphQLClient.CallerBehaviour
def post(client, query, variables \\ []) do
body = %{
query: query,
variables: variables
} |> Poison.encod... | 30.833333 | 153 | 0.647568 |
21179108ad070a8be416dafb7152c25b0ea94130 | 73 | exs | Elixir | test/views/layout_view_test.exs | dkarter/exblog | 3bc2c52dc6b8263506d5fc5e842436f64414d9c7 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | dkarter/exblog | 3bc2c52dc6b8263506d5fc5e842436f64414d9c7 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | dkarter/exblog | 3bc2c52dc6b8263506d5fc5e842436f64414d9c7 | [
"MIT"
] | null | null | null | defmodule Exblog.LayoutViewTest do
use Exblog.ConnCase, async: true
end | 24.333333 | 34 | 0.821918 |
2117949054a3e685c621279320b41a2ef1e50728 | 203 | exs | Elixir | test/web/controllers/page_controller_test.exs | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/web/controllers/page_controller_test.exs | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/web/controllers/page_controller_test.exs | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | defmodule Chankins.Web.PageControllerTest do
use Chankins.Web.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.555556 | 60 | 0.679803 |
2117af097036470db00e6a5998794c6eed4619bc | 4,127 | ex | Elixir | lib/ex_clearbit.ex | EnaiaInc/ex_clearbit | 16d0ecc8ffe75c2df70fda703c5c085dbe20bea6 | [
"MIT"
] | 3 | 2017-03-16T20:55:36.000Z | 2018-01-29T04:20:04.000Z | lib/ex_clearbit.ex | EnaiaInc/ex_clearbit | 16d0ecc8ffe75c2df70fda703c5c085dbe20bea6 | [
"MIT"
] | 9 | 2016-12-24T05:02:03.000Z | 2020-03-10T20:37:14.000Z | lib/ex_clearbit.ex | EnaiaInc/ex_clearbit | 16d0ecc8ffe75c2df70fda703c5c085dbe20bea6 | [
"MIT"
] | 10 | 2017-06-29T15:36:24.000Z | 2021-12-03T16:30:02.000Z | defmodule ExClearbit do
use Application
use HTTPoison.Base
alias ExClearbit.Model.{Person, Company, NameToDomain, Prospector, Reveal}
alias ExClearbit.API
@moduledoc """
The main module for ExClearbit
"""
@type error :: {:error, %{code: atom, message: String.t}}
@version Mix.Project.config[:versi... | 26.625806 | 95 | 0.63654 |
2117bcd7b50aef8e99322a0537524ed07f340ba1 | 911 | ex | Elixir | lib/logger_json/plug_utils.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 148 | 2017-04-10T06:22:02.000Z | 2022-03-31T11:19:14.000Z | lib/logger_json/plug_utils.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 81 | 2017-04-09T15:17:03.000Z | 2022-03-01T16:25:32.000Z | lib/logger_json/plug_utils.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 62 | 2018-05-31T06:49:55.000Z | 2022-01-24T09:15:04.000Z | if Code.ensure_loaded?(Plug) do
defmodule LoggerJSON.PlugUtils do
@moduledoc """
This module contains functions that can be used across different
`LoggerJSON.Plug.MetadataFormatters` implementations to provide
common functionality.
"""
alias Plug.Conn
@doc """
Grabs the client IP add... | 25.305556 | 68 | 0.621295 |
2117c09194d5f2975a2bc21a02c246fc0b96fc2c | 1,716 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_normalized_vertex.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_normalized_vertex.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_normalized_vertex.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.32 | 144 | 0.730769 |
2117fd5ae45ceb1e774a1701f6466db4f0935609 | 1,708 | exs | Elixir | mix.exs | coingaming/mongodb | 7a730d6cf470558ac9444319ae75751922ff17f2 | [
"Apache-2.0"
] | null | null | null | mix.exs | coingaming/mongodb | 7a730d6cf470558ac9444319ae75751922ff17f2 | [
"Apache-2.0"
] | null | null | null | mix.exs | coingaming/mongodb | 7a730d6cf470558ac9444319ae75751922ff17f2 | [
"Apache-2.0"
] | null | null | null | defmodule Mongodb.Mixfile do
use Mix.Project
@version "0.5.3"
def project do
[
app: :mongodb,
version: @version,
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.5",
name: "Mongodb",
deps: deps(),
docs: docs(),
description: description(),
package: ... | 22.473684 | 95 | 0.544496 |
211802f03aacefa34c4feaba6e4bb9b0e02651a2 | 1,036 | ex | Elixir | lib/rocketpay_web/views/error_view.ex | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | 2 | 2021-04-22T10:54:55.000Z | 2021-06-17T03:09:14.000Z | lib/rocketpay_web/views/error_view.ex | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | null | null | null | lib/rocketpay_web/views/error_view.ex | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.ErrorView do
use RocketpayWeb, :view
import Ecto.Changeset, only: [traverse_errors: 2]
alias Ecto.Changeset
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal... | 27.263158 | 83 | 0.680502 |
21180d552bbd67c86c50352cb3e039ffeed0c901 | 352 | exs | Elixir | control_flow.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | control_flow.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | control_flow.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | defmodule FizzBuzz do
def up_to(n) when n > 0, do: 1..n |> Enum.map(&fizz_buzz/1)
def fizz_buzz(n) do
case {rem(n,3),rem(n,5),n} do
{0,0,_} -> FizzBuzz
{0,_,_} -> Fizz
{_,0,_} -> Buzz
{_,_,_} -> n
end
end
def ok!(input) do
case input do
{:ok,data} -> data
_ -> rai... | 19.555556 | 61 | 0.497159 |
2118224f992b7957c768cb39d9b63c6d76f1c0c7 | 1,135 | exs | Elixir | clients/speech/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/speech/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/speech/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.612903 | 73 | 0.755066 |
211838eb440174c5629576b67b02dc8f48f1e00e | 1,072 | ex | Elixir | lib/chankins/web/router.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | lib/chankins/web/router.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | lib/chankins/web/router.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | defmodule Chankins.Web.Router do
use Chankins.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Chankins.Web do
... | 27.487179 | 57 | 0.716418 |
211871e9e675662aa12b6d1a14ba7e2a73f9d73c | 1,570 | ex | Elixir | web/web.ex | JKGisMe/square_square_backend | 1b5237fff2c9dab0e03082ecf5a5a28a1133935b | [
"MIT"
] | null | null | null | web/web.ex | JKGisMe/square_square_backend | 1b5237fff2c9dab0e03082ecf5a5a28a1133935b | [
"MIT"
] | null | null | null | web/web.ex | JKGisMe/square_square_backend | 1b5237fff2c9dab0e03082ecf5a5a28a1133935b | [
"MIT"
] | null | null | null | defmodule SquareSquareBackend.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use SquareSquareBackend.Web, :controller
use SquareSquareBackend.Web, :view
The definitions below will be executed for every view,... | 20.933333 | 88 | 0.679618 |
2118a2bfe431eaeb5900c35d3f16dd951309e90d | 1,000 | ex | Elixir | lib/hound/helpers/save_page.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | lib/hound/helpers/save_page.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | lib/hound/helpers/save_page.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | defmodule Hound.Helpers.SavePage do
@moduledoc "Provides helper function to save the current page"
import Hound.RequestUtils
@doc """
Save the dom of the current page. The page is saved in the current working directory.
It returns the path of the html file, to which the dom has been saved.
For Elixir mix... | 29.411765 | 98 | 0.704 |
2118c5f9f6e396c5730ab172afd716baace445f8 | 6,507 | exs | Elixir | test/json_schema_test_suite/draft6/items_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/json_schema_test_suite/draft6/items_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/json_schema_test_suite/draft6/items_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule JsonSchemaTestSuite.Draft6.ItemsTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe ~s|a schema given for items| do
setup do
%{
schema:
Xema.from_json_schema(
%{"items" => %{"type" => "integer"}},
draft: "draft6",
atom: :force... | 26.028 | 84 | 0.434455 |
2118f06f919cc593c14f05e44610f6a360b2313b | 8,221 | exs | Elixir | test/q_test.exs | fidr/qh | 14d392c5612889c7ed9e88cf558e677ac06b39f4 | [
"MIT"
] | 5 | 2022-01-10T10:57:44.000Z | 2022-01-22T18:15:05.000Z | test/q_test.exs | fidr/qh | 14d392c5612889c7ed9e88cf558e677ac06b39f4 | [
"MIT"
] | null | null | null | test/q_test.exs | fidr/qh | 14d392c5612889c7ed9e88cf558e677ac06b39f4 | [
"MIT"
] | null | null | null | defmodule QTest do
use Qh.DataCase, async: true
use Qh
setup do
bob = QTest.Repo.insert!(%QTest.User{name: "Bob", age: 22, nicknames: ["Bobi", "Bobby"]})
anna = QTest.Repo.insert!(%QTest.User{name: "Anna", age: 21, nicknames: ["Ann"]})
_james = QTest.Repo.insert!(%QTest.User{name: "James", age: 65})... | 26.954098 | 99 | 0.57864 |
21193fbc8015e85120511b9b807a123b4e54c356 | 5,078 | ex | Elixir | lib/yacto/schema.ex | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | lib/yacto/schema.ex | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | lib/yacto/schema.ex | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | defmodule Yacto.Schema do
@moduledoc """
Yacto 用のスキーマ
以下のように利用する。
```
defmodule MyApp.Schema.Item do
use Yacto.Schema, dbname: :default
schema @auto_source do
field :name, :string, meta: [null: false, size: 16, index: true]
end
end
defmodule MyApp.Schema.Player do
use Yacto.Schem... | 26.310881 | 94 | 0.591571 |
21195a6eadda66ae27eb187aed4da68b2f479e1c | 338 | ex | Elixir | lib/supabase_surface/components/icons/icon_smile.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_smile.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_smile.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconSmile do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.smile(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.533333 | 63 | 0.715976 |
21197dc72975d60db8bc0b40c28b9af3c2fd670d | 352 | ex | Elixir | lib/level/web_push/adapter.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/web_push/adapter.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/web_push/adapter.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.WebPush.Adapter do
@moduledoc """
The behaviour for web push adapters.
"""
alias Level.WebPush.Payload
alias Level.WebPush.Subscription
@doc """
Sends a web push request to the subscription.
"""
@callback make_request(Payload.t(), Subscription.t()) ::
{:ok, any()} | {:e... | 23.466667 | 59 | 0.650568 |
21198b483f28b81e4f2a79052661b1bdbec8a5ab | 2,372 | exs | Elixir | examples/ct_ecto/test/ct_test.exs | 50kudos/closure_table | 4c1a8e321318dc2dcb2d178b9dbc58431e0211e4 | [
"Apache-2.0"
] | 16 | 2019-09-08T14:31:36.000Z | 2022-02-14T19:50:23.000Z | examples/ct_ecto/test/ct_test.exs | 50kudos/closure_table | 4c1a8e321318dc2dcb2d178b9dbc58431e0211e4 | [
"Apache-2.0"
] | 6 | 2019-09-14T06:03:41.000Z | 2021-05-16T00:53:40.000Z | examples/ct_ecto/test/ct_test.exs | 50kudos/closure_table | 4c1a8e321318dc2dcb2d178b9dbc58431e0211e4 | [
"Apache-2.0"
] | 7 | 2019-09-13T16:39:45.000Z | 2021-05-11T06:15:04.000Z | defmodule CTTest do
use CT.DataCase, async: false
describe "Forum" do
setup do
Repo.delete_all(Comment)
Repo.delete_all(Author)
Repo.delete_all(TreePath)
authors = [
# inserted_at: DateTime.utc_now()
[name: "Olie"],
[name: "Rolie"],
[name: "Polie"]
... | 27.264368 | 85 | 0.497049 |
2119b28b5b9b5b8d6713e8b1ca2cca7da6aadb37 | 2,782 | ex | Elixir | lib/ex_sdp/attribute/extmap.ex | membraneframework/membrane-protocol-sdp | 4cb3028d62a722e364196b58b73732567306a931 | [
"Apache-2.0"
] | null | null | null | lib/ex_sdp/attribute/extmap.ex | membraneframework/membrane-protocol-sdp | 4cb3028d62a722e364196b58b73732567306a931 | [
"Apache-2.0"
] | 1 | 2020-07-31T10:37:43.000Z | 2020-08-10T09:22:13.000Z | lib/ex_sdp/attribute/extmap.ex | membraneframework/membrane-protocol-sdp | 4cb3028d62a722e364196b58b73732567306a931 | [
"Apache-2.0"
] | null | null | null | defmodule ExSDP.Attribute.Extmap do
@moduledoc """
This module represents extmap (RFC 8285).
"""
alias ExSDP.Utils
@enforce_keys [:id, :uri]
defstruct @enforce_keys ++ [direction: nil, attributes: []]
@type extension_id :: 1..14
@type direction :: :sendonly | :recvonly | :sendrecv | :inactive | nil
... | 30.571429 | 91 | 0.62473 |
2119bc8260dd7e0d4b87a44685d05bb3c8e90e34 | 1,209 | ex | Elixir | lib/phoenixDSK/endpoint.ex | mark-b-kauffman/phoenixDSK | d68ff8daebc2641efbc2059320c8ab345203aa76 | [
"BSD-3-Clause",
"MIT"
] | 8 | 2017-07-24T20:54:25.000Z | 2021-04-06T19:19:32.000Z | lib/phoenixDSK/endpoint.ex | mark-b-kauffman/phoenixDSK | d68ff8daebc2641efbc2059320c8ab345203aa76 | [
"BSD-3-Clause",
"MIT"
] | 2 | 2021-03-08T16:21:37.000Z | 2021-05-06T17:53:24.000Z | lib/phoenixDSK/endpoint.ex | mark-b-kauffman/phoenixDSK | d68ff8daebc2641efbc2059320c8ab345203aa76 | [
"BSD-3-Clause",
"MIT"
] | 2 | 2019-12-12T17:04:32.000Z | 2020-07-22T15:42:32.000Z | defmodule PhoenixDSK.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenixDSK
socket "/socket", PhoenixDSK.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.... | 28.116279 | 69 | 0.718776 |
2119d411c54db5fd7a42663232fb33cbad4e582c | 1,707 | ex | Elixir | lib/mayo.ex | tommy351/mayo | 59df8af91eb12a9a289ca6e699ef4cd1f130d9ed | [
"MIT"
] | 1 | 2016-09-09T09:00:35.000Z | 2016-09-09T09:00:35.000Z | lib/mayo.ex | tommy351/mayo | 59df8af91eb12a9a289ca6e699ef4cd1f130d9ed | [
"MIT"
] | null | null | null | lib/mayo.ex | tommy351/mayo | 59df8af91eb12a9a289ca6e699ef4cd1f130d9ed | [
"MIT"
] | null | null | null | defmodule Mayo do
@doc """
Validates data with a schema.
iex> Mayo.validate "test", Mayo.String.min(4) |> String.capitalize
"Test"
iex> Mayo.validate 42, Mayo.Number.max(23)
{:error, %Mayo.Error{type: "number.max"}}
"""
defmacro validate(value, schema) do
compile(schema, value)
e... | 23.067568 | 72 | 0.58348 |
2119d53fec6876aef93f45da099b960eac5f2a93 | 5,224 | ex | Elixir | lib/livebook_web/live/session_live/bin_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/bin_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/bin_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.BinComponent do
use LivebookWeb, :live_component
alias Livebook.Notebook.Cell
@initial_limit 10
@limit_step 10
@impl true
def mount(socket) do
{:ok, assign(socket, search: "", limit: @initial_limit)}
end
@impl true
def update(assigns, socket) do
{bin_entri... | 35.297297 | 125 | 0.533499 |
2119fb3c62a635375bc9f16ced30a83042464e7c | 1,805 | exs | Elixir | rel/config.exs | onyxrev/MongooseICE | 358ba7087a6e19cd95313c365567663f4cab848f | [
"Apache-2.0"
] | 90 | 2017-09-26T12:20:06.000Z | 2022-01-30T17:58:11.000Z | rel/config.exs | onyxrev/MongooseICE | 358ba7087a6e19cd95313c365567663f4cab848f | [
"Apache-2.0"
] | 39 | 2017-01-20T08:54:13.000Z | 2017-09-13T11:30:14.000Z | rel/config.exs | onyxrev/MongooseICE | 358ba7087a6e19cd95313c365567663f4cab848f | [
"Apache-2.0"
] | 13 | 2018-03-29T07:03:25.000Z | 2022-03-06T10:21:45.000Z | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# Thi... | 32.232143 | 81 | 0.74072 |
211a410d7c1c9223b5c560b80218cdd6ffc32022 | 994 | exs | Elixir | 10/solution.exs | jochumb/aoc2015 | 4348372a79966bc4d6324d0874e018e6fe3c26df | [
"MIT"
] | null | null | null | 10/solution.exs | jochumb/aoc2015 | 4348372a79966bc4d6324d0874e018e6fe3c26df | [
"MIT"
] | null | null | null | 10/solution.exs | jochumb/aoc2015 | 4348372a79966bc4d6324d0874e018e6fe3c26df | [
"MIT"
] | null | null | null | defmodule LookSay do
def pass(input) do
res = translate(input, [], [])
|> Enum.reverse
res
end
defp translate([], [], acc), do: acc
defp translate([head | tail], [], acc), do: translate(tail, [head], acc)
defp translate([], [prev | rest], acc) do
translate([], [], add_to_result(prev, rest... | 34.275862 | 83 | 0.622736 |
211a5483eb773a94db45de26d8cd535da3e0af56 | 736 | exs | Elixir | config/dev.exs | Rabsztok/HexWorlds | 6d4b00824a6bf09ab84eca4efd14722cf3326616 | [
"MIT"
] | 7 | 2017-08-11T12:08:58.000Z | 2020-08-17T14:31:49.000Z | config/dev.exs | Rabsztok/HexWorlds | 6d4b00824a6bf09ab84eca4efd14722cf3326616 | [
"MIT"
] | 1 | 2020-06-20T17:54:12.000Z | 2020-06-20T17:54:12.000Z | config/dev.exs | Rabsztok/HexWorlds | 6d4b00824a6bf09ab84eca4efd14722cf3326616 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
config :game, GameWeb.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$... | 26.285714 | 68 | 0.752717 |
211a5f170ec0671f75a2d8b3aa35dc570049dde1 | 177 | exs | Elixir | priv/repo/migrations/20200105075952_create_users.exs | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200105075952_create_users.exs | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | priv/repo/migrations/20200105075952_create_users.exs | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule Health.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
timestamps()
end
end
end
| 14.75 | 47 | 0.672316 |
211a6c0a37e73f2a2588b39c0ffb866b0dac7076 | 1,480 | ex | Elixir | lib/typelixir.ex | damif94/typelixir | 73ca7cfdb79f57f8d39823f43cdf4322eba1b3e5 | [
"MIT"
] | null | null | null | lib/typelixir.ex | damif94/typelixir | 73ca7cfdb79f57f8d39823f43cdf4322eba1b3e5 | [
"MIT"
] | null | null | null | lib/typelixir.ex | damif94/typelixir | 73ca7cfdb79f57f8d39823f43cdf4322eba1b3e5 | [
"MIT"
] | null | null | null | # defmodule Typelixir do
# @moduledoc false
# require Typelixir.Utils
# alias Typelixir.{FunctionsExtractor, Processor}
# @env %{
# state: :ok,
# type: nil,
# error_data: %{},
# data: %{},
# prefix: nil,
# vars: %{},
# functions: %{}
# }
# def check(paths) do
# env_functio... | 29.019608 | 108 | 0.591892 |
211a72098d9985509909f729a4af20c7f4672691 | 991 | exs | Elixir | apps/social_feeds/test/cache_test.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | 13 | 2017-05-09T15:15:19.000Z | 2020-12-17T08:16:59.000Z | apps/social_feeds/test/cache_test.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | 65 | 2017-05-29T12:59:12.000Z | 2022-02-20T16:02:15.000Z | apps/social_feeds/test/cache_test.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | 13 | 2017-05-27T16:17:44.000Z | 2020-10-01T05:50:57.000Z | defmodule SocialFeeds.CacheTest do
use ExUnit.Case
alias SocialFeeds.Cache
describe "clear/0" do
test "clears keys from cache" do
Cache.fetch(:cached_key, fn -> :cached_val end, %{cache_ttl_in_msec: 1_000_000})
Cache.clear()
assert Cache.fetch(:new_key, fn -> :new_val end, %{}) == :new_v... | 24.775 | 86 | 0.640767 |
211a75165a0e9023114f4475e2468ad177b32fa2 | 2,750 | exs | Elixir | config/prod.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | config/prod.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | config/prod.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 34.810127 | 91 | 0.709455 |
211a821d882774f8308b7eb23b0af8100518ec2b | 1,986 | exs | Elixir | test/ecto/query/builder/select_test.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/select_test.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/select_test.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.SelectTest do
use ExUnit.Case, async: true
import Ecto.Query
import Ecto.Query.Builder.Select
doctest Ecto.Query.Builder.Select
test "escape" do
assert {Macro.escape(quote do &0 end), {%{}, %{}}} ==
escape(quote do x end, [x: 0], __ENV__)
assert {Macro.escape... | 38.941176 | 105 | 0.461229 |
211ade5ca002a6d73058485e7c56e1849ed4c6a6 | 200 | exs | Elixir | test/compiler_test.exs | kianmeng/linguist | e0274db74d374314e9334b4246409eca6e2bff1d | [
"MIT"
] | 100 | 2015-01-02T08:10:32.000Z | 2020-02-21T08:14:10.000Z | test/compiler_test.exs | kianmeng/linguist | e0274db74d374314e9334b4246409eca6e2bff1d | [
"MIT"
] | 24 | 2018-04-13T23:50:09.000Z | 2021-12-23T12:47:06.000Z | test/compiler_test.exs | kianmeng/linguist | e0274db74d374314e9334b4246409eca6e2bff1d | [
"MIT"
] | 19 | 2015-02-25T17:57:02.000Z | 2020-03-22T15:06:10.000Z | defmodule CompilerTest do
use ExUnit.Case
test "compiles keyword list of translations into function def AST" do
assert Linguist.Compiler.compile(en: [foo: "bar"], fr: [foo: "bar"])
end
end
| 25 | 72 | 0.72 |
211b29bcf9428eb8f9be25f0f35c79c4acec0b46 | 69 | ex | Elixir | lib/ciphoenix/repo.ex | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | lib/ciphoenix/repo.ex | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | lib/ciphoenix/repo.ex | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | defmodule Ciphoenix.Repo do
use Ecto.Repo, otp_app: :ciphoenix
end
| 17.25 | 36 | 0.782609 |
211b2b07cd93ae54276e686f9ec61a756588443a | 294 | ex | Elixir | lib/harald/data_type/manufacturer_behaviour.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 3 | 2020-08-07T02:09:09.000Z | 2020-08-28T12:25:48.000Z | lib/harald/data_type/manufacturer_behaviour.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | lib/harald/data_type/manufacturer_behaviour.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | defmodule Harald.ManufacturerDataBehaviour do
@moduledoc """
Defines a behaviour that manufacturer data modules should implement.
"""
@doc """
Returns the company associated with some manufacturer data.
See: `Harald.CompanyIdentifiers`
"""
@callback company :: String.t()
end
| 22.615385 | 70 | 0.734694 |
211b6830367de4005be5820535267fdee1ada0dc | 1,740 | exs | Elixir | mix.exs | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | mix.exs | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | mix.exs | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | defmodule Admin.MixProject do
use Mix.Project
def project do
[
app: :admin,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: d... | 26.769231 | 79 | 0.577011 |
211b847c37e3b8a9b32ea9e5814389d0af9b50c2 | 3,884 | ex | Elixir | apps/andi/lib/andi/harvest/data_json_dataset_mapper.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi/harvest/data_json_dataset_mapper.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi/harvest/data_json_dataset_mapper.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule Andi.Harvest.DataJsonDatasetMapper do
@moduledoc """
maps data json to %SmartCity.Dataset{}
"""
alias Andi.InputSchemas.Datasets
@scos_data_json_seed "1719bf64-38f5-40bf-9737-45e84f5c8419"
def dataset_mapper(%{"dataset" => datasets}, org) do
Enum.map(datasets, fn data_json_dataset -> dataset... | 34.678571 | 99 | 0.654222 |
211bce43ee1ccf955447596aefd31361d3dcb95a | 10,620 | ex | Elixir | lib/format/datetime/formatters/relative.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | lib/format/datetime/formatters/relative.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | lib/format/datetime/formatters/relative.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule Timex.Format.DateTime.Formatters.Relative do
@moduledoc """
Relative time, based on Moment.js
Uses localized strings.
The format string should contain {relative}, which is where the phrase will be injected.
| Range | Sample Output
-------------------------------------------... | 28.858696 | 98 | 0.500282 |
211c00e7a1dd53cec4813884338e37575ad5a73f | 10,403 | exs | Elixir | test/groupher_server_web/mutation/cms/comments/drink_comment_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/comments/drink_comment_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/comments/drink_comment_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Comments.DrinkComment do
use GroupherServer.TestTools
alias GroupherServer.CMS
alias CMS.Model.Drink
alias Helper.ORM
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
{:ok, drink} = CMS.create_article(community, :drink, mock... | 31.524242 | 97 | 0.627415 |
211c2380a006d5947e2a491b8d667d749176da5a | 1,130 | exs | Elixir | mix.exs | zookzook/polaris | 3948da74367555c93e0ec6ddcc5776efdec8f7b1 | [
"Apache-2.0"
] | 2 | 2020-05-02T00:16:35.000Z | 2020-06-18T11:43:17.000Z | mix.exs | zookzook/polaris | 3948da74367555c93e0ec6ddcc5776efdec8f7b1 | [
"Apache-2.0"
] | 2 | 2021-03-10T10:35:32.000Z | 2021-05-11T06:13:28.000Z | mix.exs | zookzook/polaris | 3948da74367555c93e0ec6ddcc5776efdec8f7b1 | [
"Apache-2.0"
] | 2 | 2020-12-03T10:41:14.000Z | 2022-01-17T20:22:50.000Z | defmodule Polaris.MixProject do
use Mix.Project
def project do
[
app: :polaris,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
en... | 24.042553 | 57 | 0.562832 |
211c32a917f788cbf15855f1d3cc59bfd3f9bf68 | 51 | exs | Elixir | test/test_helper.exs | lessless/exexec | b103fc806983faac9be3f176c6b0a27c4fc2a8c0 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | lessless/exexec | b103fc806983faac9be3f176c6b0a27c4fc2a8c0 | [
"Apache-2.0"
] | 1 | 2019-03-19T20:45:10.000Z | 2019-03-19T20:45:10.000Z | test/test_helper.exs | lessless/exexec | b103fc806983faac9be3f176c6b0a27c4fc2a8c0 | [
"Apache-2.0"
] | 1 | 2019-03-19T15:40:38.000Z | 2019-03-19T15:40:38.000Z | Application.ensure_started(:logger)
ExUnit.start()
| 17 | 35 | 0.823529 |
211c32e63a78525d4d69ee072f4710662b59f3b9 | 715 | ex | Elixir | lib/near_api/rpc/chunk.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 7 | 2021-12-27T19:02:30.000Z | 2022-03-30T14:08:46.000Z | lib/near_api/rpc/chunk.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 4 | 2021-12-29T21:16:02.000Z | 2022-01-01T22:07:17.000Z | lib/near_api/rpc/chunk.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 1 | 2022-02-21T18:17:36.000Z | 2022-02-21T18:17:36.000Z | defmodule NearApi.RPC.Chunk do
@moduledoc """
NEAR RPC - Chunk API
"""
import NearApi.Helpers, only: [api_call_method: 2]
@doc """
Returns details of a specific chunk. You can run a block details query to get a valid chunk hash.
"""
@spec chunk(chunk_id :: String.t(), block_id :: any, shard_id :: integ... | 35.75 | 99 | 0.678322 |
211c3ca2870067ccfbadec2fe02dfbe3f098609a | 67 | exs | Elixir | test/test_helper.exs | mithereal/elixir_license_server | 51a8383d4686c7cc7924763d85b9930e91138d2f | [
"MIT"
] | 2 | 2020-01-26T23:26:40.000Z | 2020-04-22T15:53:55.000Z | test/test_helper.exs | mithereal/ex_drm | 51a8383d4686c7cc7924763d85b9930e91138d2f | [
"MIT"
] | 1 | 2019-08-30T06:56:10.000Z | 2019-08-30T06:56:10.000Z | test/test_helper.exs | mithereal/elixir_license_server | 51a8383d4686c7cc7924763d85b9930e91138d2f | [
"MIT"
] | null | null | null | ExUnit.start()
# Ecto.Adapters.SQL.Sandbox.mode(Drm.Repo, :manual)
| 22.333333 | 51 | 0.746269 |
211c521073d81145c8d9daee2c8e68d5038ce41b | 5,958 | ex | Elixir | lib/bitpal/accounts/user_tokens.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal/accounts/user_tokens.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal/accounts/user_tokens.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.Accounts.UserTokens do
import Ecto.Query
alias BitPalSchemas.UserToken
@hash_algorithm :sha256
@rand_size 32
# It is very important to keep the reset password token expiry short,
# since someone with access to the email may take over the account.
@reset_password_validity_in_days 1
@co... | 34.439306 | 89 | 0.716516 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.