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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
182105450e3fff570c4115fb11ed9423353534c6 | 3,011 | ex | Elixir | lib/parallel_task.ex | Fabianlindfors/parallel_task | a6428e5948b10dded57e018088a554427e0603b2 | [
"MIT"
] | 24 | 2017-08-11T12:21:55.000Z | 2018-06-04T16:53:20.000Z | lib/parallel_task.ex | fabianlindfors/parallel_task | a6428e5948b10dded57e018088a554427e0603b2 | [
"MIT"
] | null | null | null | lib/parallel_task.ex | fabianlindfors/parallel_task | a6428e5948b10dded57e018088a554427e0603b2 | [
"MIT"
] | 1 | 2018-12-05T17:15:33.000Z | 2018-12-05T17:15:33.000Z | defmodule ParallelTask do
@moduledoc """
Elixir library to run multiple functions in parallel and capture the results.
Suitable for multiple slow tasks such as API calls and database queries which can be performed concurrently. The process will be blocked until all functions have returned or the timeout has been... | 31.694737 | 205 | 0.659914 |
18214a0acc0b7cb3982a23da68e7ec3b4a284a92 | 1,403 | ex | Elixir | apps/language_server/lib/language_server/providers/code_lens/test/describe_block.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/lib/language_server/providers/code_lens/test/describe_block.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/lib/language_server/providers/code_lens/test/describe_block.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.LanguageServer.Providers.CodeLens.Test.DescribeBlock do
alias ElixirSense.Core.State.Env
@struct_keys [:line, :name, :body_scope_id]
@enforce_keys @struct_keys
defstruct @struct_keys
def find_block_info(line, lines_to_env_list, lines_to_env_list_length, source_lines) do
name = get_na... | 26.471698 | 89 | 0.66928 |
182166f8d5e2957090b4565dad98a7a7fdfb90b1 | 57 | ex | Elixir | lib/axon_web/views/upload_view.ex | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | lib/axon_web/views/upload_view.ex | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | lib/axon_web/views/upload_view.ex | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | defmodule AxonWeb.UploadView do
use AxonWeb, :view
end
| 14.25 | 31 | 0.789474 |
182173f35cf87f960d1cfd60f509fdaeda61a0ea | 11,362 | exs | Elixir | test/oauth2/client_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | null | null | null | test/oauth2/client_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 2 | 2018-09-07T04:52:56.000Z | 2018-09-07T04:53:07.000Z | test/oauth2/client_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 1 | 2020-02-07T15:27:26.000Z | 2020-02-07T15:27:26.000Z | defmodule OAuth2.ClientTest do
use ExUnit.Case, async: true
use Plug.Test
doctest OAuth2.Client
import OAuth2.Client
import OAuth2.TestHelpers
alias OAuth2.Client
alias OAuth2.Response
setup do
server = Bypass.open
client = build_client(site: bypass_server(server))
client_with_token = tok... | 34.534954 | 156 | 0.639588 |
18219a7ddbc7898ba9dc020803fad4eb9327853f | 32,080 | ex | Elixir | lib/kafka_ex/server.ex | aram0112/kafka_ex | 9e7a08061e6b0eb1df921d32a630c8d53b28f61c | [
"MIT"
] | null | null | null | lib/kafka_ex/server.ex | aram0112/kafka_ex | 9e7a08061e6b0eb1df921d32a630c8d53b28f61c | [
"MIT"
] | null | null | null | lib/kafka_ex/server.ex | aram0112/kafka_ex | 9e7a08061e6b0eb1df921d32a630c8d53b28f61c | [
"MIT"
] | null | null | null | defmodule KafkaEx.Server do
@moduledoc """
Defines the KafkaEx.Server behavior that all Kafka API servers must implement, this module also provides some common callback functions that are injected into the servers that `use` it.
"""
alias KafkaEx.Config
alias KafkaEx.NetworkClient
alias KafkaEx.Protocol.Co... | 32.208835 | 187 | 0.54682 |
1821ada8d32be3b7dc292e14f3f8e23ee4191057 | 838 | ex | Elixir | examples/deployment_event_log_controller.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 227 | 2018-12-30T20:13:47.000Z | 2022-03-26T03:49:07.000Z | examples/deployment_event_log_controller.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 104 | 2018-12-20T02:16:28.000Z | 2022-03-28T07:18:06.000Z | examples/deployment_event_log_controller.ex | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | 24 | 2019-02-14T10:18:09.000Z | 2022-02-08T04:18:32.000Z | # credo:disable-for-this-file
defmodule DeploymentEventLogController do
@moduledoc """
This is a goofy config, but it makes this work in dev w/o having to POST an Example CRD.
This controller simply logs lifecycle events on Deployments.
"""
require Logger
use Bonny.Controller
@group "apps"
@version "v... | 19.488372 | 90 | 0.687351 |
1821b382ef4d170c4d6be5c50ebbb022b011ef9a | 1,804 | exs | Elixir | clients/slides/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/slides/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/slides/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.925373 | 97 | 0.65133 |
1821bb78ad9a0ea9ceaeb86bbc7ae437ca165603 | 75 | ex | Elixir | web/views/page_view.ex | jbr/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 335 | 2015-06-19T18:27:51.000Z | 2020-11-25T19:00:27.000Z | web/views/page_view.ex | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 33 | 2015-06-24T17:00:01.000Z | 2017-11-23T09:53:29.000Z | web/views/page_view.ex | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 95 | 2015-06-30T22:18:00.000Z | 2022-01-14T13:47:10.000Z | defmodule PhoenixGuardian.PageView do
use PhoenixGuardian.Web, :view
end
| 18.75 | 37 | 0.826667 |
1821e5d3d7bcbd3d3432442a0c151c89a24efaa5 | 1,340 | ex | Elixir | lib/astarte_flow_web/gettext.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 11 | 2020-01-30T17:44:35.000Z | 2022-01-13T19:17:21.000Z | lib/astarte_flow_web/gettext.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 100 | 2020-02-11T10:01:35.000Z | 2022-02-17T10:39:35.000Z | lib/astarte_flow_web/gettext.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 7 | 2020-01-30T11:33:20.000Z | 2021-05-03T09:48:41.000Z | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# 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 appl... | 31.162791 | 74 | 0.714925 |
1821eb12be684c6af3e0c69f5b7d18fbcc75f290 | 2,008 | ex | Elixir | clients/workflows/lib/google_api/workflows/v1/model/list_workflows_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/workflows/lib/google_api/workflows/v1/model/list_workflows_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/workflows/lib/google_api/workflows/v1/model/list_workflows_response.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... | 37.886792 | 189 | 0.723606 |
182205c350255f3dd89cde4e475b92a40c61bf57 | 329 | ex | Elixir | web/auth/guardian_error_handler.ex | Swuber/Epik-Club | 0e56e602f0934e0e6225c7456bcb37f5b852be2d | [
"Apache-2.0"
] | 1 | 2017-06-15T14:59:01.000Z | 2017-06-15T14:59:01.000Z | web/auth/guardian_error_handler.ex | Swuber/Epik-Club | 0e56e602f0934e0e6225c7456bcb37f5b852be2d | [
"Apache-2.0"
] | 1 | 2017-08-10T11:04:15.000Z | 2017-08-10T11:04:15.000Z | web/auth/guardian_error_handler.ex | Swuber/Epik-Club | 0e56e602f0934e0e6225c7456bcb37f5b852be2d | [
"Apache-2.0"
] | 3 | 2017-08-10T22:54:28.000Z | 2018-10-18T22:32:55.000Z | defmodule UnfSwuber.GuardianErrorHandler do
import UnfSwuber.Router.Helpers
def unauthenticated(conn, _params) do
conn
|> Phoenix.Controller.put_flash(:error,
"You must be signed in to access that page.")
|> Phoenix.Controller.redirect(to: session_path(conn, :new))
... | 29.909091 | 81 | 0.665653 |
18222116849433d43444f0be3654f83c6c218486 | 192 | ex | Elixir | lib/rdf/utils/guards.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | lib/rdf/utils/guards.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | lib/rdf/utils/guards.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.Utils.Guards do
defguard is_ordinary_atom(term)
when is_atom(term) and term not in [nil, true, false]
defguard maybe_module(term) when is_ordinary_atom(term)
end
| 27.428571 | 64 | 0.744792 |
182227944d6aaf021634319736b6d02d3e46f108 | 759 | ex | Elixir | generated-sources/elixir/mojang-api/lib/com/github/asyncmc/mojang/api/elixir/server/model/upload_skin_request.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-api/lib/com/github/asyncmc/mojang/api/elixir/server/model/upload_skin_request.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-api/lib/com/github/asyncmc/mojang/api/elixir/server/model/upload_skin_request.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.github.asyncmc.mojang.api.elixir.server.Model.UploadSkinRequest do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"model... | 25.3 | 107 | 0.706192 |
18222e6e2dad6290a141e207475f17af0a52b1b0 | 141 | exs | Elixir | config/dev.exs | danielspofford/nerves_hub_cli | 3d12abe873e27448ba5c862a08f03d719cc40dc2 | [
"Apache-2.0"
] | 28 | 2018-08-15T02:17:26.000Z | 2021-11-25T11:14:24.000Z | config/dev.exs | danielspofford/nerves_hub_cli | 3d12abe873e27448ba5c862a08f03d719cc40dc2 | [
"Apache-2.0"
] | 81 | 2018-08-13T17:14:14.000Z | 2021-09-11T13:08:29.000Z | config/dev.exs | danielspofford/nerves_hub_cli | 3d12abe873e27448ba5c862a08f03d719cc40dc2 | [
"Apache-2.0"
] | 13 | 2018-09-14T12:47:26.000Z | 2022-02-03T07:28:41.000Z | use Mix.Config
config :nerves_hub_cli,
home_dir: Path.expand(".nerves-hub")
config :nerves_hub_user_api,
host: "0.0.0.0",
port: 4002
| 15.666667 | 38 | 0.70922 |
18224836d0380d3d3ec48c17eaa4bff3761a5cd9 | 1,387 | ex | Elixir | lib/grizzly/command_class/manufacturer_specific.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/manufacturer_specific.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/manufacturer_specific.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.ManufacturerSpecific do
require Logger
@type device_id_type :: :oem_factory_default_device_id_type | :serial_number | :pseudo_random
@type device_id_type_byte :: 0 | 1 | 2
@type device_id_data_format :: :utf8 | :binary
@type device_id_data_format_byte :: 0 | 1
@type device_sp... | 32.255814 | 95 | 0.704398 |
18225eab4f026b3b2402369555017884e51a6524 | 12,909 | exs | Elixir | lib/elixir/test/elixir/code_formatter/containers_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/code_formatter/containers_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/code_formatter/containers_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.ContainersTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
@medium_length [line_length: 20]
describe "tuples" do
test "without arguments" do
assert_format "{ }", "{}"
end... | 19.952087 | 96 | 0.435045 |
182270505761fa5aef01e42eddcac4fc53ccec67 | 611 | exs | Elixir | hello_xprof/mix.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | hello_xprof/mix.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | 4 | 2021-10-06T22:07:13.000Z | 2022-02-27T10:35:34.000Z | hello_xprof/mix.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | defmodule HelloXprof.MixProject do
use Mix.Project
def project do
[
app: :hello_xprof,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
e... | 20.366667 | 87 | 0.569558 |
1822d5332c81d131d2a96320cba930331c19b6f7 | 5,310 | exs | Elixir | apps/omg_burner/test/state_test.exs | omisego/fee-burner | b1d23736f69769c2bd2bb2437de0c103fd6dba61 | [
"Apache-2.0"
] | 1 | 2018-10-09T13:49:02.000Z | 2018-10-09T13:49:02.000Z | apps/omg_burner/test/state_test.exs | omisego/fee-burner | b1d23736f69769c2bd2bb2437de0c103fd6dba61 | [
"Apache-2.0"
] | null | null | null | apps/omg_burner/test/state_test.exs | omisego/fee-burner | b1d23736f69769c2bd2bb2437de0c103fd6dba61 | [
"Apache-2.0"
] | 1 | 2018-07-16T14:15:09.000Z | 2018-07-16T14:15:09.000Z | defmodule OMG.Burner.StateTest do
use ExUnitFixtures
use ExUnit.Case
alias OMG.Burner.State
def test_token_values(token, accumulated, pending) do
test_accumulated(token, accumulated)
test_pending(token, pending)
:ok
end
def test_accumulated(token, 0) do
{:error, :no_such_record} = State.g... | 30.693642 | 111 | 0.70452 |
1822d6250a05383c0cef032825c8c93cafb61c67 | 1,321 | exs | Elixir | config/prod.secret.exs | JuliaMathias/speedrun_blogengine_umbrella | a75738fea06ff6a840f17c4e439a69bef9c04e14 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | JuliaMathias/speedrun_blogengine_umbrella | a75738fea06ff6a840f17c4e439a69bef9c04e14 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:14:50.000Z | 2021-09-18T01:14:50.000Z | config/prod.secret.exs | JuliaMathias/speedrun_blogengine_umbrella | a75738fea06ff6a840f17c4e439a69bef9c04e14 | [
"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.
import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envir... | 31.452381 | 83 | 0.735806 |
1822efaa58cb575f9a71263f4e03b76d004d2362 | 885 | ex | Elixir | web/gettext.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | web/gettext.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | web/gettext.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.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 UcxChat.Gettext
# Simple translation
gettext "Here is the str... | 23.918919 | 72 | 0.662147 |
18234b3f480d82b296304109ba5ab60cc00bf686 | 900 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.333333 | 74 | 0.763333 |
1823898a23fb9e4c785d9f2031a9dec2a17fc3b3 | 2,102 | exs | Elixir | config/prod.exs | jhonndabi/banking-api-challenge | 1e13c675b02c8e62a76e82b0a0dd6a44306a211e | [
"Apache-2.0"
] | null | null | null | config/prod.exs | jhonndabi/banking-api-challenge | 1e13c675b02c8e62a76e82b0a0dd6a44306a211e | [
"Apache-2.0"
] | null | null | null | config/prod.exs | jhonndabi/banking-api-challenge | 1e13c675b02c8e62a76e82b0a0dd6a44306a211e | [
"Apache-2.0"
] | 1 | 2021-04-20T19:05:48.000Z | 2021-04-20T19:05:48.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 37.535714 | 73 | 0.726927 |
1823e727aecd0e7b9a0c129c2ed30b6457e86f93 | 278 | exs | Elixir | test/twinklyhaha_web/views/layout_view_test.exs | sparrell/TwinklyHaHa | fc128e0ada46f447ef2e19acf130c237a227c86c | [
"MIT"
] | 2 | 2020-10-04T12:41:53.000Z | 2020-11-11T11:24:54.000Z | test/twinklyhaha_web/views/layout_view_test.exs | sparrell/TwinklyHaHa | fc128e0ada46f447ef2e19acf130c237a227c86c | [
"MIT"
] | 9 | 2020-07-26T20:45:04.000Z | 2021-02-17T05:57:38.000Z | test/twinklyhaha_web/views/layout_view_test.exs | sparrell/TwinklyHaHa | fc128e0ada46f447ef2e19acf130c237a227c86c | [
"MIT"
] | 2 | 2020-11-09T08:27:19.000Z | 2020-11-10T04:25:21.000Z | defmodule TwinklyhahaWeb.LayoutViewTest do
use TwinklyhahaWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.888889 | 65 | 0.773381 |
18242e1471b345364cb1a2b380f65d3409bbf383 | 517 | ex | Elixir | lib/ex_doc_refined.ex | shufo/ex_doc_refined | 2048231847b34fcd8d952ff72c76925dba8989ab | [
"MIT"
] | 29 | 2018-12-13T03:54:31.000Z | 2022-02-19T01:45:54.000Z | lib/ex_doc_refined.ex | shufo/ex_doc_refined | 2048231847b34fcd8d952ff72c76925dba8989ab | [
"MIT"
] | null | null | null | lib/ex_doc_refined.ex | shufo/ex_doc_refined | 2048231847b34fcd8d952ff72c76925dba8989ab | [
"MIT"
] | null | null | null | defmodule ExDocRefined do
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec, warn: false
standalone? = Application.get_env(:ex_doc_refined, :standalone, true)
children =
if standalone? do
[
worker(ExDocRefined.Server, [[port: Application.get_en... | 22.478261 | 98 | 0.655706 |
18243166086681bb7b2a7eb925f71d71ab31e8b0 | 527 | exs | Elixir | mix.exs | alertlogic/erllambda_elixir_example | af489591580a24e0f2fac75e4eda113f05ad7e07 | [
"MIT"
] | 26 | 2018-11-29T19:55:27.000Z | 2021-04-02T10:53:04.000Z | mix.exs | alertlogic/erllambda_elixir_example | af489591580a24e0f2fac75e4eda113f05ad7e07 | [
"MIT"
] | 1 | 2019-07-06T11:45:41.000Z | 2019-07-06T11:45:41.000Z | mix.exs | alertlogic/erllambda_elixir_example | af489591580a24e0f2fac75e4eda113f05ad7e07 | [
"MIT"
] | 5 | 2018-12-04T03:31:06.000Z | 2021-01-19T14:10:30.000Z | defmodule ErllambdaElixirExample.MixProject do
use Mix.Project
def project do
[
app: :erllambda_elixir_example,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def appl... | 18.821429 | 59 | 0.571157 |
182447e799c231460d11706b53f8ea6f3267199e | 52,730 | ex | Elixir | lib/teslamate/vehicles/vehicle.ex | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | 1 | 2020-08-31T10:21:12.000Z | 2020-08-31T10:21:12.000Z | lib/teslamate/vehicles/vehicle.ex | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | null | null | null | lib/teslamate/vehicles/vehicle.ex | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle do
use GenStateMachine
require Logger
alias __MODULE__.Summary
alias TeslaMate.{Vehicles, Api, Log, Locations, Settings, Convert, Repo, Terrain}
alias TeslaMate.Settings.CarSettings
alias TeslaMate.Locations.GeoFence
alias TeslaMate.Log.Car
alias TeslaApi.Vehicle.... | 34.307092 | 101 | 0.623516 |
182481e1438cd7483640a408c118ca0480485daa | 6,046 | exs | Elixir | apps/ewallet/test/ewallet/web/v1/serializers/configuration_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/web/v1/serializers/configuration_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/web/v1/serializers/configuration_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.159574 | 85 | 0.651671 |
1824b40bad26daf7b6926aa2bb082ef785b008f1 | 511 | ex | Elixir | lib/user/model/user_params.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | 2 | 2019-07-12T04:07:34.000Z | 2019-11-26T01:08:14.000Z | lib/user/model/user_params.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | null | null | null | lib/user/model/user_params.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | 1 | 2019-11-26T01:18:54.000Z | 2019-11-26T01:18:54.000Z | defmodule ExPnut.User.UserParams do
@moduledoc """
Any endpoint that returns user objects (including any that return post objects, message objects, etc.) can be
subject to these parameters.
[https://pnut.io/docs/api/resources/users](https://pnut.io/docs/api/resources/users)
"""
defstruct include_html: 1,
... | 30.058824 | 111 | 0.651663 |
1824b8cd713189f2fc733b7cbf234238082a6c1a | 1,465 | ex | Elixir | clients/service_control/lib/google_api/service_control/v2/model/third_party_principal.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v2/model/third_party_principal.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_control/lib/google_api/service_control/v2/model/third_party_principal.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... | 31.170213 | 99 | 0.745392 |
1824bc6d3ae9644d97cdf55174fcd96a89ff797d | 3,534 | ex | Elixir | lib/cat_show/accounts/accounts.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | lib/cat_show/accounts/accounts.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | 1 | 2021-05-11T15:49:58.000Z | 2021-05-11T15:49:58.000Z | lib/cat_show/accounts/accounts.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | defmodule CatShow.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias CatShow.Repo
alias CatShow.Accounts.User
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
Repo.all(User)
end
... | 20.666667 | 119 | 0.591964 |
1824c1bac6713e142426b8cbf5185e7b237a43dd | 1,165 | exs | Elixir | config/config.exs | tanguilp/attribute_repository_mnesia | 9e8d6284716bbbe8d24b6f551cd295fbaf5d7674 | [
"Apache-2.0"
] | 1 | 2022-01-27T11:48:58.000Z | 2022-01-27T11:48:58.000Z | config/config.exs | tanguilp/attribute_repository_mnesia | 9e8d6284716bbbe8d24b6f551cd295fbaf5d7674 | [
"Apache-2.0"
] | null | null | null | config/config.exs | tanguilp/attribute_repository_mnesia | 9e8d6284716bbbe8d24b6f551cd295fbaf5d7674 | [
"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.580645 | 73 | 0.758798 |
1824c68503bbd3e3e1ddc0e8fb3bceb181f5a86c | 1,424 | ex | Elixir | test/support/model_case.ex | napcs/realtime_phoenix | 7aa5c5c6f9b474459d9550f3e80f5a1e5d5c07af | [
"MIT"
] | 3 | 2015-09-13T02:54:15.000Z | 2016-11-22T02:15:18.000Z | test/support/model_case.ex | napcs/realtime_phoenix | 7aa5c5c6f9b474459d9550f3e80f5a1e5d5c07af | [
"MIT"
] | null | null | null | test/support/model_case.ex | napcs/realtime_phoenix | 7aa5c5c6f9b474459d9550f3e80f5a1e5d5c07af | [
"MIT"
] | null | null | null | defmodule Typepad.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For ... | 26.37037 | 81 | 0.691011 |
1824e99455dd31b164a007bafe67093e4af5df16 | 767 | ex | Elixir | lib/surface/catalogue/router.ex | mayel/surface_catalogue | a4145be7fe8c80f50a1c933c20befc17f144db4c | [
"MIT"
] | null | null | null | lib/surface/catalogue/router.ex | mayel/surface_catalogue | a4145be7fe8c80f50a1c933c20befc17f144db4c | [
"MIT"
] | null | null | null | lib/surface/catalogue/router.ex | mayel/surface_catalogue | a4145be7fe8c80f50a1c933c20befc17f144db4c | [
"MIT"
] | null | null | null | defmodule Surface.Catalogue.Router do
defmacro surface_catalogue(path, opts \\ []) do
quote bind_quoted: binding() do
scope path, alias: false, as: false do
import Phoenix.LiveView.Router
alias Surface.Catalogue.{
LayoutView,
PageLive,
ExampleLive,
Pl... | 26.448276 | 66 | 0.607562 |
18251de363c5f6356548e51fe0081f1bc3dccd40 | 2,028 | exs | Elixir | peep_blog_api/config/prod.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/config/prod.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/config/prod.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.709677 | 67 | 0.718935 |
182535b1ea4e7d06a7ab472542ccd69107e31bdf | 677 | ex | Elixir | lib/ex_onixo/parser/product21/serie.ex | damjack/ex_onixo | 5b1f97bc65867dcf1710540264094d147722ee11 | [
"MIT"
] | 1 | 2021-12-11T06:44:18.000Z | 2021-12-11T06:44:18.000Z | lib/ex_onixo/parser/product21/serie.ex | damjack/ex_onixo | 5b1f97bc65867dcf1710540264094d147722ee11 | [
"MIT"
] | null | null | null | lib/ex_onixo/parser/product21/serie.ex | damjack/ex_onixo | 5b1f97bc65867dcf1710540264094d147722ee11 | [
"MIT"
] | null | null | null | defmodule ExOnixo.Parser.Product21.Serie do
import SweetXml
alias ExOnixo.Helper.ElementYml
def parse_recursive(xml) do
SweetXml.xpath(xml, ~x"./Series"l)
|> Enum.map(fn serie ->
%{
id_type: ElementYml.get_tag21(serie, "/SeriesIdentifier/SeriesIDType", "SeriesIDType"),
id_valu... | 30.772727 | 97 | 0.646972 |
18255ffc5e1ac9d91503bb76eff92f1139393ec5 | 103 | exs | Elixir | apps/wifi/config/test.exs | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | 1 | 2018-12-30T04:37:15.000Z | 2018-12-30T04:37:15.000Z | apps/wifi/config/test.exs | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | apps/wifi/config/test.exs | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | use Mix.Config
config :wifi, Network.WifiSetup, Network.FakeWifiSetup
config :wifi, :ntp_servers, []
| 17.166667 | 54 | 0.76699 |
18257de6de441830db05333077af5d5198b69ac7 | 1,825 | ex | Elixir | lib/elixir_search_extractor_web/endpoint.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | lib/elixir_search_extractor_web/endpoint.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | 32 | 2021-05-24T06:52:33.000Z | 2021-07-19T05:04:40.000Z | lib/elixir_search_extractor_web/endpoint.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | defmodule ElixirSearchExtractorWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :elixir_search_extractor
if Application.get_env(:elixir_search_extractor, :sql_sandbox) do
plug Phoenix.Ecto.SQL.Sandbox
end
# The session will be stored in the cookie and signed,
# this means its contents can be read but not ... | 30.932203 | 97 | 0.738082 |
18259a761a17dbaec784597e242e1bc090b59afb | 1,396 | exs | Elixir | apps/artemis_web/test/artemis_web/browser/system_task_page_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/test/artemis_web/browser/system_task_page_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/test/artemis_web/browser/system_task_page_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisWeb.SystemTaskPageTest do
use ArtemisWeb.ConnCase
use ExUnit.Case
use Hound.Helpers
import ArtemisWeb.BrowserHelpers
import ArtemisWeb.Router.Helpers
@moduletag :browser
@url system_task_url(ArtemisWeb.Endpoint, :index)
hound_session()
describe "authentication" do
test "requir... | 20.231884 | 74 | 0.638252 |
18259bdf77536e0087160f8be98a6eb57e8214e7 | 1,526 | exs | Elixir | test/provider_test.exs | LostKobrakai/toml-elixir | f3f65a1897cf31b8d9d153050c0f4feed4bc3d01 | [
"Apache-2.0"
] | null | null | null | test/provider_test.exs | LostKobrakai/toml-elixir | f3f65a1897cf31b8d9d153050c0f4feed4bc3d01 | [
"Apache-2.0"
] | null | null | null | test/provider_test.exs | LostKobrakai/toml-elixir | f3f65a1897cf31b8d9d153050c0f4feed4bc3d01 | [
"Apache-2.0"
] | null | null | null | defmodule Toml.Test.ProviderTest do
use ExUnit.Case
test "can initialize provider from sample toml" do
file = Path.join([__DIR__, "fixtures", "provider.toml"])
assert :ok = Toml.Provider.init(path: file)
assert "success!" = Application.get_env(:toml, :provider_test)
assert {:ok, "success!"} = Toml.... | 39.128205 | 92 | 0.688729 |
1825a871f3432cfb8288dab4c1b16283cc957f42 | 667 | ex | Elixir | lib/doctor_schedule/appointments/core/schedules.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | lib/doctor_schedule/appointments/core/schedules.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | lib/doctor_schedule/appointments/core/schedules.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorSchedule.Appointments.Core.Schedules do
defstruct morning_appointments: nil, afternoon_apointments: nil
alias DoctorSchedule.Appointments.Repositories.ProviderRepository
def get_all_appointments(current_date, current_user_id) do
current_date = Timex.to_date(current_date)
schedules = Provi... | 39.235294 | 86 | 0.791604 |
182633423b688b6492a4a180190337d2ac495c2c | 709 | ex | Elixir | apps/fz_http/lib/fz_http_web/gettext.ex | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 1,429 | 2021-07-31T21:25:46.000Z | 2022-03-31T16:31:33.000Z | apps/fz_http/lib/fz_http_web/gettext.ex | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 132 | 2021-07-10T14:23:36.000Z | 2022-03-29T18:36:37.000Z | apps/fz_http/lib/fz_http_web/gettext.ex | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 48 | 2021-09-14T02:48:38.000Z | 2022-03-24T18:18:50.000Z | defmodule FzHttpWeb.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 FzHttpWeb.Gettext
# Simple translation
gettext("Here is the... | 28.36 | 72 | 0.67701 |
1826338043d9b1813152d5b9f4c853ef2318f44d | 1,246 | ex | Elixir | languages/elixir/exercises/concept/kitchen-calculator/.meta/example.ex | m-dango/v3 | 01a92d26c319df2a0b2c75e78f3decd18cc4ed8c | [
"MIT"
] | null | null | null | languages/elixir/exercises/concept/kitchen-calculator/.meta/example.ex | m-dango/v3 | 01a92d26c319df2a0b2c75e78f3decd18cc4ed8c | [
"MIT"
] | null | null | null | languages/elixir/exercises/concept/kitchen-calculator/.meta/example.ex | m-dango/v3 | 01a92d26c319df2a0b2c75e78f3decd18cc4ed8c | [
"MIT"
] | null | null | null | defmodule KitchenCalculator do
# Get the number component from the volume-unit pair '{:unit, volume}'
def get_volume(volume_pair), do: elem(volume_pair, 1)
# Convert to millilitre to another unit
def to_millilitre({:cup, cups}) do
{:millilitre, cups * 240}
end
def to_millilitre({:fluid_ounce, floz})... | 22.25 | 72 | 0.68138 |
1826534a6959fc28096d0eebac48ea30858cb7d6 | 500 | exs | Elixir | config/test.exs | alfredbaudisch/pardall-markdown-phoenix-demo | 701fa5b312f00d4076b471d9f880ea56bb3c4119 | [
"Apache-2.0"
] | null | null | null | config/test.exs | alfredbaudisch/pardall-markdown-phoenix-demo | 701fa5b312f00d4076b471d9f880ea56bb3c4119 | [
"Apache-2.0"
] | null | null | null | config/test.exs | alfredbaudisch/pardall-markdown-phoenix-demo | 701fa5b312f00d4076b471d9f880ea56bb3c4119 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Configure your database
#
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :pardall_web, PardallWeb.Endpoint,
http: [port: 4002],
server: false
config :pardall_markdown, PardallMarkdown.Content,
root_path: "./test/content",
static_asse... | 25 | 56 | 0.756 |
18265b6495636bf2e7063024889793f95df24d25 | 454 | exs | Elixir | test/tesla/middleware/keep_request_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2021-08-18T06:48:51.000Z | 2021-08-18T06:48:51.000Z | test/tesla/middleware/keep_request_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | null | null | null | test/tesla/middleware/keep_request_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2021-09-26T18:49:44.000Z | 2021-09-26T18:49:44.000Z | defmodule Tesla.Middleware.KeepRequestTest do
use ExUnit.Case
@middleware Tesla.Middleware.KeepRequest
test "put request metadata into opts" do
env = %Tesla.Env{url: "my_url", body: "reqbody", headers: [{"x-request", "header"}]}
assert {:ok, env} = @middleware.call(env, [], [])
assert env.opts[:req_... | 32.428571 | 88 | 0.660793 |
182687508edb7077e2b7254949a215d6aa477bb7 | 17,032 | ex | Elixir | lib/nebulex/caching.ex | Awlexus/nebulex | 6899b734239eaad493bd07282583416b3b85f670 | [
"MIT"
] | 1 | 2021-03-01T16:14:07.000Z | 2021-03-01T16:14:07.000Z | lib/nebulex/caching.ex | Awlexus/nebulex | 6899b734239eaad493bd07282583416b3b85f670 | [
"MIT"
] | null | null | null | lib/nebulex/caching.ex | Awlexus/nebulex | 6899b734239eaad493bd07282583416b3b85f670 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Decorator.Define) do
defmodule Nebulex.Caching do
@moduledoc ~S"""
Declarative annotation-based caching via function
[decorators](https://github.com/arjan/decorator).
For caching declaration, the abstraction provides three Elixir function
decorators: `cacheable `, `cache_ev... | 34.830266 | 130 | 0.640089 |
182693752d90f7633cc21a3d89284fd2a76c5853 | 283 | ex | Elixir | examples/elixir_client/lib/vertx_example/application.ex | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | 16 | 2019-03-18T12:46:38.000Z | 2020-10-14T09:30:52.000Z | examples/elixir_client/lib/vertx_example/application.ex | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | null | null | null | examples/elixir_client/lib/vertx_example/application.ex | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | 1 | 2019-04-30T21:26:28.000Z | 2019-04-30T21:26:28.000Z | defmodule VertxExample.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
{VertxExample.Listener, []}
]
opts = [strategy: :one_for_one, name: VertxExample.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 18.866667 | 66 | 0.696113 |
1826a5b8d402d53f0ca00c2acc40a34a4fc1ae0e | 708 | ex | Elixir | lib/winner_web/gettext.ex | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | lib/winner_web/gettext.ex | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | lib/winner_web/gettext.ex | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | defmodule WinnerWeb.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 WinnerWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
1826a74b4c72ba3f78a0747d0a7881ab041c7440 | 2,566 | ex | Elixir | apps/core/lib/core/services/base.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/services/base.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/services/base.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Services.Base do
defmacro __using__(_) do
quote do
import Core.Services.Base
defp conf(key),
do: Application.get_env(:core, __MODULE__)[key]
end
end
def ok(val), do: {:ok, val}
def error(val), do: {:error, val}
def start_transaction(), do: Ecto.Multi.new()
def... | 26.729167 | 75 | 0.610288 |
1826ba543803f6abdddfc553929476d30fdac5ae | 3,181 | ex | Elixir | router_light_firmware/lib/router_light_firmware/utilities/snmp.ex | itwasscience/router_light | 2c25643e43f8b670fbd1975d2eabddd3d9c3fd79 | [
"MIT"
] | 1 | 2021-04-26T12:35:03.000Z | 2021-04-26T12:35:03.000Z | router_light_firmware/lib/router_light_firmware/utilities/snmp.ex | itwasscience/router_light | 2c25643e43f8b670fbd1975d2eabddd3d9c3fd79 | [
"MIT"
] | null | null | null | router_light_firmware/lib/router_light_firmware/utilities/snmp.ex | itwasscience/router_light | 2c25643e43f8b670fbd1975d2eabddd3d9c3fd79 | [
"MIT"
] | null | null | null | defmodule RouterLightFirmware.Utilities.SNMP do
require Logger
defstruct t1_in_octets: 0,
t1_out_octets: 0,
lte_in_octets: 0,
lte_out_octets: 0,
ip_sla_10_rtt: 0,
ip_sla_10_status_code: :OFFLINE,
ip_sla_20_rtt: 0,
ip_sla_20_status_... | 32.793814 | 82 | 0.592895 |
1826cf3f6b5f61d770b98d858b7a4b984c3ce977 | 458 | ex | Elixir | tests/request_logger/lib/request_logger/log.ex | Webtrekk/Webtrekk-Smart-Pixel | 8ac5e5132d600ccd486573f88be84908b614530b | [
"MIT"
] | 6 | 2019-05-10T00:01:17.000Z | 2022-03-03T12:52:51.000Z | tests/request_logger/lib/request_logger/log.ex | Webtrekk/Webtrekk-Smart-Pixel | 8ac5e5132d600ccd486573f88be84908b614530b | [
"MIT"
] | 4 | 2020-01-20T13:19:30.000Z | 2021-10-15T07:46:59.000Z | tests/request_logger/lib/request_logger/log.ex | Webtrekk/Webtrekk-Smart-Pixel | 8ac5e5132d600ccd486573f88be84908b614530b | [
"MIT"
] | 2 | 2020-05-02T15:59:43.000Z | 2020-10-21T09:00:38.000Z | defmodule RequestLogger.Log do
@me __MODULE__
alias RequestLogger.Log
def start_link() do
Agent.start_link(fn -> [] end, name: @me)
end
def add(request) do
Agent.update(@me, fn state -> Log.update(request, state) end )
end
def get() do
Agent.get(@me, & &1)
e... | 19.083333 | 71 | 0.574236 |
1826cfa85a4d0c52e3ef574d29be30013f7dd129 | 2,503 | exs | Elixir | test/attendance_web/controllers/user_controller_test.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | test/attendance_web/controllers/user_controller_test.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | test/attendance_web/controllers/user_controller_test.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | defmodule AttendanceWeb.UserControllerTest do
use AttendanceWeb.ConnCase
alias Attendance.Accounts
alias Attendance.Accounts.User
@create_attrs %{email: "some email", password_hash: "some password_hash"}
@update_attrs %{email: "some updated email", password_hash: "some updated password_hash"}
@invalid_att... | 30.52439 | 91 | 0.628845 |
1826fe680c43fc1ef46b1e5f56923b2954fefeec | 240 | exs | Elixir | config/prod.exs | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | 16 | 2021-12-14T12:25:59.000Z | 2021-12-16T21:56:27.000Z | config/prod.exs | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | 19 | 2021-12-06T08:35:30.000Z | 2022-03-23T18:20:46.000Z | config/prod.exs | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | null | null | null | import Config
config :naboo, Naboo.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json",
server: true
config :logger, :console,
format: "$time $metadata[$level] $message\n",
level: :info,
metadata: ~w(request_id)a
| 21.818182 | 59 | 0.725 |
1827067e61f17fe48cc1f4f225396654e27705d8 | 931 | exs | Elixir | test/adoptoposs_web/views/settings_view_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | test/adoptoposs_web/views/settings_view_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | test/adoptoposs_web/views/settings_view_test.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | defmodule AdoptopossWeb.SettingsViewTest do
use AdoptopossWeb.ConnCase, async: true
import Adoptoposs.Factory
alias AdoptopossWeb.SettingsView
setup do
value = "off"
key = :email_when_contacted
changeset =
:user
|> build(settings: %{key => value})
|> Ecto.Changeset.cast(%{}, []... | 29.09375 | 93 | 0.680988 |
18272976a060fd3c1863d85af19cdb58f1e937dc | 7,431 | ex | Elixir | lib/earmark_parser/ast_renderer.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser/ast_renderer.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser/ast_renderer.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkParser.AstRenderer do
alias EarmarkParser.Block
alias EarmarkParser.Context
alias EarmarkParser.Options
import Context, only: [clear_value: 1, modify_value: 2, prepend: 2, prepend: 3]
import EarmarkParser.Ast.Emitter
import EarmarkParser.Ast.Inline, only: [convert: 3]
import EarmarkParse... | 32.592105 | 149 | 0.629794 |
1827315b7f0659f1de8717cea0812288f888f895 | 95 | exs | Elixir | elixir/tour/mix_and_otp/kv_umbrella/apps/kv/test/test_helper.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/mix_and_otp/kv_umbrella/apps/kv/test/test_helper.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/mix_and_otp/kv_umbrella/apps/kv/test/test_helper.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | exclude =
if Node.alive?, do: [], else: [distributed: true]
ExUnit.start(exclude: exclude)
| 19 | 51 | 0.673684 |
1827480bdc4c9895472e536dc7f7ebb68e015614 | 18,511 | ex | Elixir | lib/pathex.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | null | null | null | lib/pathex.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | null | null | null | lib/pathex.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | null | null | null | defmodule Pathex do
@moduledoc """
Main module. Use it inside your project to call Pathex macros
To use it just insert
```elixir
defmodule MyModule do
require Pathex
import Pathex, only: [path: 1, path: 2, "~>": 2, ...]
...
end
```
Or you can use `use`
```elixir
defmodule MyModule d... | 30.851667 | 103 | 0.568905 |
182795da58ecd7e6b359ccdb232e75f1952107b2 | 568 | exs | Elixir | test/unit/hologram/compiler/transformers/less_than_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/transformers/less_than_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/transformers/less_than_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.LessThanOperatorTransformerTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.Context
alias Hologram.Compiler.IR.IntegerType
alias Hologram.Compiler.IR.LessThanOperator
alias Hologram.Compiler.LessThanOperatorTransformer
test "transform/3" do
code = "1 ... | 24.695652 | 67 | 0.732394 |
18279c871e55f84028060a701dc1993d5c9168c1 | 406 | ex | Elixir | test/support/hooks/dependency.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | test/support/hooks/dependency.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | test/support/hooks/dependency.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule ExshomeTest.Hooks.Dependency do
@moduledoc """
Custom hooks for dependencies.
"""
alias ExshomeTest.TestRegistry
def get_pid(server) when is_pid(server), do: server
def get_pid(server) when is_atom(server) do
TestRegistry.get_dependency_pid(server)
end
def init(opts) do
custom_init... | 21.368421 | 53 | 0.741379 |
18279dfc610bd67775249114418cfbecfb2cf3b6 | 27,120 | ex | Elixir | lib/elixir/lib/access.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/access.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/access.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | defmodule Access do
@moduledoc """
Key-based access to data structures.
Elixir supports three main key-value constructs: keywords,
maps, and structs. It also supports two mechanisms to access those keys:
by brackets (via `data[key]`) and by dot-syntax (via `data.field`).
In the next section we will briefl... | 33.357934 | 114 | 0.6309 |
1827a8113f717ba71b2db47b332f88e50c6c163a | 1,853 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_subscriptions_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_subscriptions_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_subscriptions_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.06 | 243 | 0.744199 |
1827f7270c5a261cd322f51f5a1b8bcaaec2aa1a | 1,125 | ex | Elixir | external/activestorage_ex_phoenix/test/support/conn_case.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | null | null | null | external/activestorage_ex_phoenix/test/support/conn_case.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | null | null | null | external/activestorage_ex_phoenix/test/support/conn_case.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | 2 | 2019-05-30T18:29:37.000Z | 2020-06-27T18:40:03.000Z | defmodule ActivestorageExPhoenixWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
... | 28.846154 | 84 | 0.736889 |
182841cfea7b0c9e538cb0f34967999e026e7421 | 289 | ex | Elixir | lib/wizard/application.ex | jannikbecher/wizard | a4d10b6d2396b960ab7fabf6ec6b0dd0c995acb2 | [
"MIT"
] | null | null | null | lib/wizard/application.ex | jannikbecher/wizard | a4d10b6d2396b960ab7fabf6ec6b0dd0c995acb2 | [
"MIT"
] | 1 | 2020-02-27T13:04:41.000Z | 2020-02-27T13:04:41.000Z | lib/wizard/application.ex | jannikbecher/wizard | a4d10b6d2396b960ab7fabf6ec6b0dd0c995acb2 | [
"MIT"
] | null | null | null | defmodule Wizard.Application do
@moduledoc false
use Application
@doc false
def start(_type, _args) do
children = [
{DynamicSupervisor, strategy: :one_for_one, name: Wizard.DynamicSupervisor}
]
Supervisor.start_link(children, strategy: :one_for_one)
end
end
| 19.266667 | 81 | 0.719723 |
182850d36bfc82d52530d90a2af4000a895d78b0 | 1,508 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/router.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 29.568627 | 93 | 0.711538 |
18286924f3d9a57c5d31b8fac96d555b9374a65b | 20,887 | ex | Elixir | lib/surface/compiler/eex_engine.ex | shritesh/surface | 716319572addd8b5f6dcca332b67f15f3833e310 | [
"MIT"
] | 1 | 2020-12-29T10:43:19.000Z | 2020-12-29T10:43:19.000Z | lib/surface/compiler/eex_engine.ex | nilooy/surface | 481a8824a0c8d00d2661645662f7ff6f3bbad25a | [
"MIT"
] | null | null | null | lib/surface/compiler/eex_engine.ex | nilooy/surface | 481a8824a0c8d00d2661645662f7ff6f3bbad25a | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.EExEngine do
@moduledoc """
This module glues together surface's AST and Phoenix.LiveView.Engine to actually render an AST.
It takes a list of Surface AST nodes, and processes them into a sequence of static raw html items and
dynamic pieces. It then converts these into tokens which a... | 28.225676 | 120 | 0.582755 |
1828ad902096ab021ba192929099c30e09224dc0 | 425 | ex | Elixir | lib/utility.ex | rgeorgiev583/pmdb | e4a4fad8eb0f5b440b6dbf52621b5c3c57682a6e | [
"MIT"
] | null | null | null | lib/utility.ex | rgeorgiev583/pmdb | e4a4fad8eb0f5b440b6dbf52621b5c3c57682a6e | [
"MIT"
] | null | null | null | lib/utility.ex | rgeorgiev583/pmdb | e4a4fad8eb0f5b440b6dbf52621b5c3c57682a6e | [
"MIT"
] | null | null | null | defmodule Pmdb.Utility do
defp reduce_errors([]) do
:ok
end
defp reduce_errors(errors) do
{:error, Enum.join(errors, "\n")}
end
def reduce_results(results) do
errors =
results
|> Enum.filter(fn result ->
case result do
{:error, _} -> true
_ -> false
... | 17.708333 | 50 | 0.557647 |
1828d1d7e3eba3d9d61f5f9e6f51ed5b4052f466 | 275 | ex | Elixir | lib/maru/builder/versioning/accept_version_header.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 819 | 2016-11-25T07:12:04.000Z | 2022-03-16T06:59:36.000Z | lib/maru/builder/versioning/accept_version_header.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 71 | 2016-11-24T20:19:09.000Z | 2021-06-09T10:12:23.000Z | lib/maru/builder/versioning/accept_version_header.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 56 | 2015-01-10T23:34:12.000Z | 2016-11-17T00:13:56.000Z | defmodule Maru.Builder.Versioning.AcceptVersionHeader do
@moduledoc """
Adapter for accept-header versioning module.
"""
use Maru.Builder.Versioning
@doc false
def get_version_plug(_opts) do
[{Maru.Plugs.GetVersion, :accept_version_header, true}]
end
end
| 21.153846 | 59 | 0.749091 |
1828d3d32d0bd6e3cb7c132ebce255230b06d7b6 | 3,012 | ex | Elixir | apps/pipeline/lib/pipeline/writer/table_writer/statement/insert.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/pipeline/lib/pipeline/writer/table_writer/statement/insert.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/pipeline/lib/pipeline/writer/table_writer/statement/insert.ex | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Pipeline.Writer.TableWriter.Statement.Insert do
@moduledoc false
require Logger
def compose(config, data) do
columns = config.schema
columns_fragment =
columns
|> Enum.map(&Map.get(&1, :name))
|> Enum.map(&to_string/1)
|> Enum.map(&~s|"#{&1}"|)
|> Enum.join(",")
... | 24.688525 | 90 | 0.588977 |
1828e26411f288572efdd14af5abedb948e6d70c | 383 | ex | Elixir | lib/ex_anti_gate/tasks/no_captcha_task.ex | alexanderttalvarez/ex_anti_gate | 2827e8efed9606cce0a47b2968fd5cab68309e2c | [
"MIT"
] | 4 | 2017-02-07T17:06:27.000Z | 2019-08-20T20:01:38.000Z | lib/ex_anti_gate/tasks/no_captcha_task.ex | alexanderttalvarez/ex_anti_gate | 2827e8efed9606cce0a47b2968fd5cab68309e2c | [
"MIT"
] | 1 | 2019-08-20T09:47:28.000Z | 2019-08-20T17:40:55.000Z | lib/ex_anti_gate/tasks/no_captcha_task.ex | alexanderttalvarez/ex_anti_gate | 2827e8efed9606cce0a47b2968fd5cab68309e2c | [
"MIT"
] | 1 | 2022-02-20T18:09:37.000Z | 2022-02-20T18:09:37.000Z | defmodule ExAntiGate.Tasks.NoCaptchaTask do
@moduledoc false
def defaults, do:
[
type: "NoCaptchaTask",
websiteURL: nil,
websiteKey: nil,
websiteSToken: nil,
proxyType: nil,
proxyAddress: nil,
proxyPort: nil,
proxyLogin: nil,
proxyPassword: nil,
userAg... | 19.15 | 43 | 0.605744 |
1828fbf2601c3b59b2d2cbf9f406db498066ce24 | 9,540 | ex | Elixir | lib/scaffolding/internal/implementation/domain_object/core/base.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/internal/implementation/domain_object/core/base.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/internal/implementation/domain_object/core/base.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings <keith.brings@noizu.com>
# Copyright (C) 2021 Noizu Labs Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedScaffolding.Internal.Core.... | 35.864662 | 125 | 0.572956 |
182929b85ec1b4d154a0d54be0584f3bf04bee91 | 5,178 | ex | Elixir | lib/acme_bank/wallet/wallet.ex | alesshh/acme-bank | 0f885dc12614cba4c8f3a46c04b714f3ada8bb9b | [
"MIT"
] | null | null | null | lib/acme_bank/wallet/wallet.ex | alesshh/acme-bank | 0f885dc12614cba4c8f3a46c04b714f3ada8bb9b | [
"MIT"
] | null | null | null | lib/acme_bank/wallet/wallet.ex | alesshh/acme-bank | 0f885dc12614cba4c8f3a46c04b714f3ada8bb9b | [
"MIT"
] | null | null | null | defmodule AcmeBank.Wallet do
alias AcmeBank.Accounts
alias AcmeBank.Accounts.Account
alias AcmeBank.Kit.Changeset
alias AcmeBank.{Repo, WalletBehaviour}
alias AcmeBank.Wallet.{Transaction, Transfer}
alias Ecto.Multi
import Ecto.Query
@behaviour WalletBehaviour
@doc ~S"""
Place money in account
... | 34.065789 | 176 | 0.679606 |
182930355e92757d15a9c736854adb6f175d1528 | 1,961 | ex | Elixir | lib/identicon.ex | shahnCM/identicon | 14699d4903b5cc109b60270980d08c2ba521e1e5 | [
"MIT"
] | null | null | null | lib/identicon.ex | shahnCM/identicon | 14699d4903b5cc109b60270980d08c2ba521e1e5 | [
"MIT"
] | null | null | null | lib/identicon.ex | shahnCM/identicon | 14699d4903b5cc109b60270980d08c2ba521e1e5 | [
"MIT"
] | null | null | null | defmodule Identicon do
@moduledoc """
Documentation for `Identicon`.
"""
def main(input) do
input
|> hash_input
|> pick_color
|> build_grid
|> filter_odd_squares
|> build_pixel_map
|> draw_image
|> save_image(input)
end
def hash_input(input) do
:crypto.hash(:md5, input... | 22.284091 | 75 | 0.610913 |
18294217de6e76a8db46c5af3e7dbdb9adfc938f | 15,705 | ex | Elixir | lib/iex/lib/iex/pry.ex | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/pry.ex | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/pry.ex | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Pry do
@moduledoc """
The low-level API for prying sessions and setting up breakpoints.
"""
@doc false
use GenServer
@table __MODULE__
@server __MODULE__
@timeout :infinity
@initial_counter 1
@type id :: integer()
@type break :: {id, module, {function, arity}, pending :: non_neg_i... | 30.086207 | 100 | 0.606622 |
1829531e8b8c611afb16c373abdd30e12c6c33e9 | 574 | ex | Elixir | lib/blog/posts.ex | vrrpizzato/blog | bee1e71ca29925d43d62f0bbaa9ae7f4566d65fe | [
"MIT"
] | null | null | null | lib/blog/posts.ex | vrrpizzato/blog | bee1e71ca29925d43d62f0bbaa9ae7f4566d65fe | [
"MIT"
] | null | null | null | lib/blog/posts.ex | vrrpizzato/blog | bee1e71ca29925d43d62f0bbaa9ae7f4566d65fe | [
"MIT"
] | null | null | null | defmodule Blog.Posts do
@moduledoc false
alias Blog.{Posts.Post, Repo}
def list_posts, do: Blog.Repo.all(Post)
def get_post!(id), do: Repo.get!(Post, id)
def get_post_comments!(id), do: Repo.get!(Post, id) |> Repo.preload(:comments)
def create_post(user, attrs \\ %{}) do
user
|> Ecto.build_asso... | 19.133333 | 80 | 0.637631 |
182982e17a496515890e14170b5bee1dd128db87 | 601 | ex | Elixir | web/models/user.ex | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 189 | 2018-09-25T09:02:41.000Z | 2022-03-09T13:52:06.000Z | web/models/user.ex | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 29 | 2018-09-26T05:51:18.000Z | 2021-11-05T08:55:03.000Z | web/models/user.ex | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 32 | 2018-10-21T12:28:11.000Z | 2022-03-28T02:20:19.000Z | defmodule Opencov.User do
use Opencov.Web, :model
use SecurePassword
schema "users" do
field :email, :string
field :admin, :boolean, default: false
field :name, :string
field :password_initialized, :boolean, default: true
field :confirmation_token, :string
field :confirmed_at, :utc_datet... | 23.115385 | 56 | 0.718802 |
1829d78636b5302b4020f8727dff8404ea82dc10 | 1,728 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/modify_thread_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/modify_thread_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/modify_thread_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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.56 | 171 | 0.721644 |
182a0841c5101dd59c65b119fe570112e5d17426 | 872 | ex | Elixir | clients/run/lib/google_api/run/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/run/lib/google_api/run/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.296296 | 74 | 0.755734 |
182a2f78db61316f810bde867eedc77e3e710eaa | 744 | exs | Elixir | config/config.exs | paulo-silva/elixir_git_hooks | e9725bb85ba62d2c4032518567abbfea37ebc368 | [
"MIT"
] | null | null | null | config/config.exs | paulo-silva/elixir_git_hooks | e9725bb85ba62d2c4032518567abbfea37ebc368 | [
"MIT"
] | null | null | null | config/config.exs | paulo-silva/elixir_git_hooks | e9725bb85ba62d2c4032518567abbfea37ebc368 | [
"MIT"
] | null | null | null | use Mix.Config
config :git_hooks,
auto_install: false,
hooks: [
# prepare_commit_msg: [
# verbose: true,
# tasks: [
# {MyApp.GitHooks.PrepareCommitMsg, :execute, 4}
# ]
# ],
commit_msg: [
verbose: true,
tasks: [
{:file, "./priv/test_script", include_hook_args: true},... | 21.257143 | 69 | 0.508065 |
182a3ad634954563010c4aec794054c387d93a2d | 2,027 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/domain_mapping_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/domain_mapping_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/domain_mapping_spec.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... | 38.245283 | 309 | 0.730636 |
182a734a2a9a47fb94e2bf8be24a66b4807c1e69 | 502 | ex | Elixir | lib/oli/activities/model/feedback_action.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/activities/model/feedback_action.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/activities/model/feedback_action.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Activities.Model.FeedbackAction do
defstruct [:id, :score, :feedback]
def parse(%{"id" => id, "score" => score, "feedback" => feedback}) do
case Oli.Activities.Model.Feedback.parse(feedback) do
{:ok, feedback} ->
{:ok,
%Oli.Activities.Model.FeedbackAction{
id: id... | 21.826087 | 71 | 0.567729 |
182a739800360ae92db78300f52624e779c11db8 | 1,786 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/list_domains_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/list_domains_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/list_domains_response.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... | 35.72 | 137 | 0.741881 |
182a80e68f6f00ca1409465a00ad93570e928b69 | 201 | exs | Elixir | test/remote/list_supported_gateways_test.exs | fanhero/spreedly-elixir | ee65326a2c7ffccd4683b1be754e4a7db5857ab3 | [
"MIT"
] | 8 | 2018-03-09T18:12:26.000Z | 2020-08-25T02:29:12.000Z | test/remote/list_supported_gateways_test.exs | fanhero/spreedly-elixir | ee65326a2c7ffccd4683b1be754e4a7db5857ab3 | [
"MIT"
] | 17 | 2017-01-05T17:14:51.000Z | 2020-02-04T14:48:02.000Z | test/remote/list_supported_gateways_test.exs | fanhero/spreedly-elixir | ee65326a2c7ffccd4683b1be754e4a7db5857ab3 | [
"MIT"
] | 5 | 2017-05-01T18:23:54.000Z | 2021-03-19T01:34:26.000Z | defmodule Remote.ListSupportedGatewaysTest do
use Remote.Environment.Case
test "list supported gateways" do
{:ok, response} = Spreedly.list_supported_gateways()
assert response
end
end
| 20.1 | 56 | 0.766169 |
182a9fc1d559b249a235afb165dbe46b8175fb27 | 1,203 | exs | Elixir | exercises/05-supervisors/02-unfortunate-accidents/solution2.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/05-supervisors/02-unfortunate-accidents/solution2.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/05-supervisors/02-unfortunate-accidents/solution2.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Employee do
use GenServer
@initial_work 50
@work_interval 50
@enforce_keys [ :name ]
defstruct [ :name, work: @initial_work ]
def start_link(name) do
GenServer.start_link(__MODULE__, %__MODULE__{ name: name }, name: name)
end
def init(args) do
Process.send_after(self(), :work, @wor... | 22.277778 | 100 | 0.641729 |
182aaebfbd5f868b2491b7a5485d1def93807388 | 1,825 | exs | Elixir | config/dev.exs | allen-garvey/photog-react | c400174d0e456dcbfd565407eb85e8ce80ec59c0 | [
"MIT"
] | null | null | null | config/dev.exs | allen-garvey/photog-react | c400174d0e456dcbfd565407eb85e8ce80ec59c0 | [
"MIT"
] | null | null | null | config/dev.exs | allen-garvey/photog-react | c400174d0e456dcbfd565407eb85e8ce80ec59c0 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :photog, PhotogWeb.Endpoint,
http: [port: 5897... | 31.465517 | 170 | 0.705205 |
182ab9a0d4460a0132220b80762b899f6ca6f87f | 670 | ex | Elixir | apps/core/lib/core/schema/role_binding.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/schema/role_binding.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/schema/role_binding.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Schema.RoleBinding do
use Piazza.Ecto.Schema
alias Core.Schema.{User, Group, Role}
schema "role_bindings" do
belongs_to :user, User
belongs_to :role, Role
belongs_to :group, Group
timestamps()
end
@valid ~w(user_id group_id role_id)a
def changeset(model, attrs \\ %{}) do
... | 27.916667 | 92 | 0.697015 |
182ac1b6e97ede9c339eeb0d32f5910738bc233c | 2,150 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/set_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/set_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/set_iam_policy_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... | 37.719298 | 165 | 0.730698 |
182ae1ea0e27115d73ec197e9965952ef5b8c5fa | 3,624 | ex | Elixir | lib/tai_shang_nft_client.ex | WeLightProject/Tai-Shang-NFT-Client | e183a30e118db13061db0164c8e35065fb9f0a06 | [
"MIT"
] | null | null | null | lib/tai_shang_nft_client.ex | WeLightProject/Tai-Shang-NFT-Client | e183a30e118db13061db0164c8e35065fb9f0a06 | [
"MIT"
] | null | null | null | lib/tai_shang_nft_client.ex | WeLightProject/Tai-Shang-NFT-Client | e183a30e118db13061db0164c8e35065fb9f0a06 | [
"MIT"
] | null | null | null | defmodule TaiShangNftClient.CLI do
@moduledoc """
Documentation for `TaiShangNftClient`.
"""
alias Utils.IOOperators
@config_file_name "config.ini"
@key_store_file_name "keys.store"
@doc """
Hello world.
## Examples
iex> TaiShangNftClient.handle_opts([], ["import-priv"])
:ok
"""
de... | 29.225806 | 166 | 0.617826 |
182afe28b90fd5f791d059373f7d673c9f623e2d | 696 | ex | Elixir | server/bitcoinex/lib/secp256k1/params.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | 27 | 2022-01-01T14:58:22.000Z | 2022-03-22T06:11:18.000Z | server/bitcoinex/lib/secp256k1/params.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | 22 | 2022-01-01T04:26:10.000Z | 2022-03-22T00:02:31.000Z | server/bitcoinex/lib/secp256k1/params.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | 9 | 2022-01-03T07:34:36.000Z | 2022-03-14T23:19:56.000Z | defmodule Bitcoinex.Secp256k1.Params do
@doc """
Secp256k1 parameters.
http://www.secg.org/sec2-v2.pdf
"""
@spec curve :: map
def curve do
%{
p: 0xFFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFE_FFFFFC2F,
a: 0x00000000_00000000_00000000_00000000_00000000_00000000_00000000_0000... | 36.631579 | 85 | 0.806034 |
182b088629434b70144225a87917584ce2fd0a99 | 70 | exs | Elixir | test/views/page_view_test.exs | JoshAddington/phoenix_testing | 90316c47264f1dcbbd9194d8c0cdee3873787300 | [
"Apache-2.0"
] | null | null | null | test/views/page_view_test.exs | JoshAddington/phoenix_testing | 90316c47264f1dcbbd9194d8c0cdee3873787300 | [
"Apache-2.0"
] | null | null | null | test/views/page_view_test.exs | JoshAddington/phoenix_testing | 90316c47264f1dcbbd9194d8c0cdee3873787300 | [
"Apache-2.0"
] | null | null | null | defmodule Rocks.PageViewTest do
use Rocks.ConnCase, async: true
end
| 17.5 | 33 | 0.8 |
182b278266e570028e106d0577b1c2578ee03db6 | 105 | exs | Elixir | config/config.exs | rubberduck203/ex_behavior_example | c4b47ff4ace99e36c62aa4354294d85a89b69637 | [
"MIT"
] | null | null | null | config/config.exs | rubberduck203/ex_behavior_example | c4b47ff4ace99e36c62aa4354294d85a89b69637 | [
"MIT"
] | null | null | null | config/config.exs | rubberduck203/ex_behavior_example | c4b47ff4ace99e36c62aa4354294d85a89b69637 | [
"MIT"
] | null | null | null | use Mix.Config
config :ex_behavior_example,
writer: ConsoleWriter
import_config "#{Mix.env()}.exs"
| 15 | 32 | 0.742857 |
182b4975ab718e78181a00c5917d86773b243abf | 205 | exs | Elixir | priv/repo/migrations/20180106200748_create_options.exs | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20180106200748_create_options.exs | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20180106200748_create_options.exs | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | defmodule Cip.Repo.Migrations.CreateOptions do
use Ecto.Migration
def change do
create table(:options) do
add :name, :string
add :value, :string
timestamps()
end
end
end
| 14.642857 | 46 | 0.653659 |
182bb84cdd4a0588835d57ca68c00818250d2bfa | 1,609 | ex | Elixir | plugins/one_chat/lib/one_chat_web/channel_controllers/room/room_setting_controller.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat_web/channel_controllers/room/room_setting_controller.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat_web/channel_controllers/room/room_setting_controller.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChatWeb.RoomSettingChannelController do
use OneChatWeb, :channel_controller
alias OneChat.{Subscription, Web.FlexBarView, Channel, ChannelService}
alias OneChatWeb.FlexBarView
alias OneChat.ServiceHelpers, as: Helpers
require Logger
def edit(%{assigns: assigns} = socket, params) do
chann... | 30.358491 | 72 | 0.691734 |
182bc24ad1c491afb5d2248cb4f21251268919f6 | 823 | ex | Elixir | lib/vintage_net/property_table/supervisor.ex | takasehideki/vintage_net | 40678fc9d74df5ff9f9f36c6378b62e981ceaf31 | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/property_table/supervisor.ex | takasehideki/vintage_net | 40678fc9d74df5ff9f9f36c6378b62e981ceaf31 | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/property_table/supervisor.ex | takasehideki/vintage_net | 40678fc9d74df5ff9f9f36c6378b62e981ceaf31 | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.PropertyTable.Supervisor do
use Supervisor
alias VintageNet.PropertyTable
@moduledoc false
@spec start_link(PropertyTable.options()) :: Supervisor.on_start()
def start_link(options) do
Supervisor.start_link(__MODULE__, options)
end
@impl true
def init(options) do
name = ... | 25.71875 | 74 | 0.722965 |
182be4af279f4283a34bef9cef5ecbe1b7887bb7 | 15,442 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/http_rule.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/http_rule.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/http_rule.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 193.025 | 11,487 | 0.71176 |
182befa50b94923cae4df967c0346d84f8193911 | 2,340 | exs | Elixir | test/phoenix_and_elm_web/controllers/reply_controller_test.exs | The-Vikings/phoenix-and-elm | c6c6bcc2415a479b81cae09cd62872873c7b7e78 | [
"MIT"
] | 1 | 2018-10-27T13:52:51.000Z | 2018-10-27T13:52:51.000Z | test/phoenix_and_elm_web/controllers/reply_controller_test.exs | The-Vikings/phoenix-and-elm | c6c6bcc2415a479b81cae09cd62872873c7b7e78 | [
"MIT"
] | 1 | 2018-11-01T08:12:02.000Z | 2018-11-01T09:37:56.000Z | test/phoenix_and_elm_web/controllers/reply_controller_test.exs | The-Vikings/phoenix-and-elm | c6c6bcc2415a479b81cae09cd62872873c7b7e78 | [
"MIT"
] | null | null | null | defmodule PhoenixAndElmWeb.ReplyControllerTest do
use PhoenixAndElmWeb.ConnCase
alias PhoenixAndElm.Chatapp
alias PhoenixAndElm.Chatapp.Reply
@create_attrs %{body: "some body"}
@update_attrs %{body: "some updated body"}
@invalid_attrs %{body: nil}
def fixture(:reply) do
{:ok, reply} = Chatapp.creat... | 29.25 | 92 | 0.627778 |
182c0a6d447a49a53eba59829d5cc8e4d616af38 | 2,112 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info.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... | 39.111111 | 221 | 0.75947 |
182c2140cf1ac0ec15edfbb7cc1c9df5d9a58f19 | 249 | exs | Elixir | time_tracker_backend/priv/repo/migrations/20160908151941_add_uniqueness_constraint_to_users_name.exs | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 382 | 2016-08-18T07:34:27.000Z | 2021-02-25T20:46:34.000Z | time_tracker_backend/priv/repo/migrations/20160908151941_add_uniqueness_constraint_to_users_name.exs | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 1 | 2017-09-30T00:01:26.000Z | 2017-09-30T00:01:26.000Z | time_tracker_backend/priv/repo/migrations/20160908151941_add_uniqueness_constraint_to_users_name.exs | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 45 | 2016-08-30T07:34:04.000Z | 2020-01-27T11:39:26.000Z | defmodule TimeTrackerBackend.Repo.Migrations.AddUniquenessConstraintToUsersName do
use Ecto.Migration
def change do
alter table(:users) do
modify :name, :string, unique: true
end
create unique_index(:users, [:name])
end
end
| 22.636364 | 82 | 0.73494 |
182c45b4dbe917967c922bc088db7baaf657ffc2 | 205 | ex | Elixir | lib/phone/gb.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/gb.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/gb.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.GB do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(44)()(.{10})/
def country, do: "United Kingdom"
def a2, do: "GB"
def a3, do: "GBR"
matcher :regex, ["44"]
end
| 15.769231 | 35 | 0.604878 |
182c50946785d9be42cedc994358aa3a72aee891 | 57 | ex | Elixir | lib/draw_web/views/layout_view.ex | NatTuck/draw | e2a709925ae5dbcea008904fe03590623008c50e | [
"Apache-1.1"
] | null | null | null | lib/draw_web/views/layout_view.ex | NatTuck/draw | e2a709925ae5dbcea008904fe03590623008c50e | [
"Apache-1.1"
] | null | null | null | lib/draw_web/views/layout_view.ex | NatTuck/draw | e2a709925ae5dbcea008904fe03590623008c50e | [
"Apache-1.1"
] | null | null | null | defmodule DrawWeb.LayoutView do
use DrawWeb, :view
end
| 14.25 | 31 | 0.789474 |
182c7a13c8f2011cae9573b03bb9d58dedabe0b4 | 2,805 | ex | Elixir | lib/shopify/graphql/request.ex | malomohq/shopify-graphql-elixir | 9f13e2e6bdfa969c9512cde21f6f19d318d2b70b | [
"MIT"
] | 15 | 2020-01-13T22:36:52.000Z | 2022-01-26T10:45:25.000Z | lib/shopify/graphql/request.ex | malomohq/shopify-graphql | 9bef124b331fc42f35f3ece1a06ccb10965a243b | [
"MIT"
] | 14 | 2019-11-26T17:28:38.000Z | 2021-10-11T16:06:49.000Z | lib/shopify/graphql/request.ex | malomohq/shopify-graphql | 9bef124b331fc42f35f3ece1a06ccb10965a243b | [
"MIT"
] | 4 | 2020-08-01T02:25:05.000Z | 2021-02-24T16:11:38.000Z | defmodule Shopify.GraphQL.Request do
alias Shopify.GraphQL.{ Config, Helpers, Operation, Response }
defstruct [
body: nil,
config: nil,
headers: [],
method: :post,
private: %{},
url: nil
]
@type t ::
%__MODULE__{
body: String.t(),
config: Config.t(),
... | 26.714286 | 107 | 0.626381 |
182c9733406be06035b0166c0df4ac0f3974ebf5 | 3,175 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/update_borders_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_borders_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_borders_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 48.106061 | 431 | 0.71874 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.