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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
917549a6e7d7c01ef3549b92aaa810ee5ce3eeb2 | 295 | exs | Elixir | test/test_helper.exs | membraneframework/membrane_timescaledb_reporter | 9300a743c41f45bdbc880def2aec55166baf4885 | [
"Apache-2.0"
] | 2 | 2020-10-13T18:04:54.000Z | 2021-12-15T08:23:28.000Z | test/test_helper.exs | membraneframework/membrane_timescaledb_reporter | 9300a743c41f45bdbc880def2aec55166baf4885 | [
"Apache-2.0"
] | 9 | 2020-07-30T14:57:46.000Z | 2021-12-28T07:37:27.000Z | test/test_helper.exs | membraneframework/membrane_timescaledb_reporter | 9300a743c41f45bdbc880def2aec55166baf4885 | [
"Apache-2.0"
] | null | null | null | Application.put_env(:membrane_timescaledb_reporter, :reporters, 5)
Application.put_env(:membrane_timescaledb_reporter, :auto_migrate?, true)
Membrane.Telemetry.TimescaleDB.TestApplication.start([], [])
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Membrane.Telemetry.TimescaleDB.Repo, :manual)
| 42.142857 | 76 | 0.823729 |
917563c552b42677376a81e123987bc6a6187b56 | 172 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/MatchedQualifiedAliasOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/MatchedQualifiedAliasOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/MatchedQualifiedAliasOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | One.{}.{}
One.{}.{Two}
One.{}.{Two, Three}
One.{Two}.{}
One.{Two}.{Three}
One.{Two}.{Three, Four}
One.{Two, Three}.{}
One.{Two, Three}.{Four}
One.{Two, Three}.{Four, Five}
| 17.2 | 29 | 0.563953 |
91758ce7454e59c1ee99423de80906f38f77e81d | 910 | ex | Elixir | lib/gissues/github_issues.ex | nayed/gissues | fc930d44793f028b6a1e72715a0135342d5fbf68 | [
"MIT"
] | null | null | null | lib/gissues/github_issues.ex | nayed/gissues | fc930d44793f028b6a1e72715a0135342d5fbf68 | [
"MIT"
] | null | null | null | lib/gissues/github_issues.ex | nayed/gissues | fc930d44793f028b6a1e72715a0135342d5fbf68 | [
"MIT"
] | null | null | null | defmodule Gissues.GithubIssues do
@moduledoc """
Fetch Github issues
"""
require Logger
@user_agent [ {"User-agent", "Nayed nayed.saidali@gmail.com"} ]
# use a module attribute to fetch the value at compile time
@github_url Application.get_env(:gissues, :github_url)
def fetch(user, project) do
... | 26.764706 | 65 | 0.671429 |
9175def1921c6da1220d371c3d74dec7bf84afe9 | 2,413 | exs | Elixir | apps/ewallet_db/priv/repo/seeds_sample/00_account.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/seeds_sample/00_account.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/seeds_sample/00_account.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.75 | 102 | 0.623291 |
9175e17851ef025ab6fa4b343f829ea14418b9e1 | 166 | ex | Elixir | web/resolvers/changeset_errors.ex | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | web/resolvers/changeset_errors.ex | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | web/resolvers/changeset_errors.ex | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | defmodule ProjectsStatistics.ChangesetErrors do
def to_map(errors) do
errors
|> Enum.into(%{}, fn {field, { message, _}} -> {field, message} end)
end
end
| 23.714286 | 72 | 0.668675 |
9175f4686b01ac4b52131eb06cfe21b593b6cd13 | 1,460 | ex | Elixir | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/nfs_mount.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/nfs_mount.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/nfs_mount.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.06383 | 125 | 0.732877 |
9176107850dbd7571cc2032bb836ea0e0fb83315 | 598 | exs | Elixir | languages/elixir/exercises/concept/boutique-suggestions/mix.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 3 | 2020-07-25T06:24:00.000Z | 2020-09-14T17:39:11.000Z | languages/elixir/exercises/concept/boutique-suggestions/mix.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 1 | 2020-01-26T20:08:06.000Z | 2020-01-26T20:08:06.000Z | languages/elixir/exercises/concept/boutique-suggestions/mix.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | null | null | null | defmodule BoutiqueSuggestions.MixProject do
use Mix.Project
def project do
[
app: :list_comprehensions,
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 applicati... | 20.62069 | 87 | 0.591973 |
917625d638c5ce73878b6bfff4d752619183b0db | 1,257 | ex | Elixir | lib/console_web/plug/check_domain.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console_web/plug/check_domain.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console_web/plug/check_domain.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule ConsoleWeb.Plug.CheckDomain do
def init(default), do: default
def call(conn, _default) do
header_cl = Plug.Conn.get_req_header(conn, "content-length")
header_te = Plug.Conn.get_req_header(conn, "transfer-encoding")
cl_te_error = List.first(header_cl) != nil and List.first(header_te) != nil
... | 31.425 | 84 | 0.586317 |
91762d50a171ab571473c629ff0d9fb3aab281ff | 681 | ex | Elixir | lib/hl7/2.5/segments/om4.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/om4.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/om4.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.OM4 do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
sequence_number_test_observation_master_file: nil,
derived_specimen: nil,
container_description: nil,
container_volume: nil,
container_... | 26.192308 | 56 | 0.704846 |
91764564ba15f3965dade836eba71a4ac239643b | 569 | ex | Elixir | 2022/w04/bank_kata_ex/test/support/support.ex | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/test/support/support.ex | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/test/support/support.ex | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | defmodule Bank.Tests.Support do
@moduledoc false
@spec parse_date(binary) :: NaiveDateTime.t()
def parse_date(date_string) do
[dd, mm, yyyy] = String.split(date_string, "-")
[{day, _}, {month, _}, {year, _}] = [
Integer.parse(dd, 10),
Integer.parse(mm, 10),
Integer.parse(yyyy, 10)
... | 19.62069 | 51 | 0.59051 |
917657c3c9e99a6fed62d3218c7a542a582b4747 | 270 | exs | Elixir | config/dev.exs | functional-miners/workshop-production-debugging-techniques-for-elixir | 5856795d9394f8a2ebcf0f8d1c7c933b122370b6 | [
"MIT"
] | 4 | 2016-11-23T21:20:10.000Z | 2017-11-20T09:14:09.000Z | config/dev.exs | functional-miners/workshop-production-debugging-techniques-for-elixir | 5856795d9394f8a2ebcf0f8d1c7c933b122370b6 | [
"MIT"
] | null | null | null | config/dev.exs | functional-miners/workshop-production-debugging-techniques-for-elixir | 5856795d9394f8a2ebcf0f8d1c7c933b122370b6 | [
"MIT"
] | 1 | 2016-12-04T13:20:46.000Z | 2016-12-04T13:20:46.000Z | use Mix.Config
config :kv_store,
port: 8888,
http_acceptors: 2,
persistence: true,
persistence_interval: 10_000,
ttl_scanning_interval: 10_000
config :logger,
level: :debug,
handle_otp_reports: true,
handle_sasl_reports: true,
backends: [ :console ]
| 18 | 31 | 0.737037 |
9176603453784ecfe0e0775e8a118a347203843c | 1,171 | ex | Elixir | lib/freshbooks_api_client/interface/time_entries.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 2 | 2018-09-18T21:26:55.000Z | 2020-04-24T15:29:05.000Z | lib/freshbooks_api_client/interface/time_entries.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 1 | 2018-03-02T14:33:21.000Z | 2018-03-02T14:33:21.000Z | lib/freshbooks_api_client/interface/time_entries.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | null | null | null | defmodule FreshbooksApiClient.Interface.TimeEntries do
@moduledoc """
This module handles the interface operations to interact with Freshbooks
time entries resource.
It uses a FreshbooksApiClient.Interface
"""
use FreshbooksApiClient.Interface,
schema: FreshbooksApiClient.Schema.TimeEntry,
resourc... | 23.42 | 74 | 0.626815 |
917663cda7a1007c5fedd387e4cb2424c0b3d6e1 | 1,418 | ex | Elixir | exercises/practice/complex-numbers/lib/complex_numbers.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | exercises/practice/complex-numbers/lib/complex_numbers.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 9 | 2021-09-12T15:19:06.000Z | 2022-03-30T22:24:24.000Z | exercises/practice/complex-numbers/lib/complex_numbers.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | defmodule ComplexNumbers do
@typedoc """
In this module, complex numbers are represented as a tuple-pair containing the real and
imaginary parts.
For example, the real number `1` is `{1, 0}`, the imaginary number `i` is `{0, 1}` and
the complex number `4+3i` is `{4, 3}'.
"""
@type complex :: {float, float... | 19.424658 | 89 | 0.601551 |
91766d1da28c3b3f1c8d2194a99c8d39d82d2989 | 23 | exs | Elixir | logo.exs | princemaple/elixir-logo | e28fa38a6c08fc57f451bc00b8a4b987066bf153 | [
"MIT"
] | null | null | null | logo.exs | princemaple/elixir-logo | e28fa38a6c08fc57f451bc00b8a4b987066bf153 | [
"MIT"
] | null | null | null | logo.exs | princemaple/elixir-logo | e28fa38a6c08fc57f451bc00b8a4b987066bf153 | [
"MIT"
] | null | null | null | Logo.main(System.argv)
| 11.5 | 22 | 0.782609 |
9176712bdaef1d23462bc248800d561b9cf28822 | 2,189 | ex | Elixir | lib/ex_raft/log.ex | bajankristof/ex_raft | 09c3234355d2792922b17a71e3c32b3e57f0a277 | [
"Apache-2.0"
] | 1 | 2021-08-25T10:49:26.000Z | 2021-08-25T10:49:26.000Z | lib/ex_raft/log.ex | bajankristof/ex_raft | 09c3234355d2792922b17a71e3c32b3e57f0a277 | [
"Apache-2.0"
] | null | null | null | lib/ex_raft/log.ex | bajankristof/ex_raft | 09c3234355d2792922b17a71e3c32b3e57f0a277 | [
"Apache-2.0"
] | null | null | null | defmodule ExRaft.Log do
@moduledoc false
require ExRaft.Log.Entry
alias ExRaft.Log.Entry
def new() do
:ets.new(__MODULE__, [:ordered_set, :public])
end
def insert_new(log, term, type, command, ref \\ nil)
when is_integer(term) do
index = last_index(log) + 1
entry = Entry.new(index: inde... | 23.793478 | 87 | 0.617177 |
9176892d15299f170ccc48c79bc08dd6fadced8a | 23,658 | ex | Elixir | lib/elixir/lib/regex.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/regex.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/regex.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | defmodule Regex do
@moduledoc ~S"""
Provides regular expressions for Elixir.
Regex is based on PCRE (Perl Compatible Regular Expressions) and
built on top of Erlang's `:re` module. More information can be found
in the [`:re` module documentation](http://www.erlang.org/doc/man/re.html).
Regular expressions... | 29.462017 | 98 | 0.623595 |
9176b9e16e10abcf8fb394af4e6a69b4fb67f543 | 721 | ex | Elixir | bench/geohash_bench/decode.ex | wstucco/geohash_nif | c6f0cadd737b5b5f9278e1be891d9f4e7abbbb91 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-08-13T01:49:03.000Z | 2020-08-13T01:49:03.000Z | bench/geohash_bench/decode.ex | wstucco/geohash_nif | c6f0cadd737b5b5f9278e1be891d9f4e7abbbb91 | [
"Apache-2.0",
"MIT"
] | null | null | null | bench/geohash_bench/decode.ex | wstucco/geohash_nif | c6f0cadd737b5b5f9278e1be891d9f4e7abbbb91 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule GeohashBench.Decode do
def bench_spec do
[
benchmarks: %{
"decode with NIF" => fn input ->
Geohash.Nif.decode(input)
end,
"decode with Elixir" => fn input ->
Geohash.decode(input)
end
},
inputs: %{
"length: 01" => "g",
... | 24.862069 | 43 | 0.454924 |
9176be5f82cd2149b39d1604809704abb9cacb44 | 921 | ex | Elixir | test/support/conn_case.ex | kimlindholm/phoenix_component_folders | 2d07f4966fe473063183e97009955b82a93b181f | [
"MIT"
] | 30 | 2017-05-05T09:30:06.000Z | 2021-03-29T15:08:02.000Z | test/support/conn_case.ex | kimlindholm/phoenix_component_folders | 2d07f4966fe473063183e97009955b82a93b181f | [
"MIT"
] | 4 | 2017-05-01T18:53:57.000Z | 2020-11-22T06:46:55.000Z | test/support/conn_case.ex | kimlindholm/phoenix_component_folders | 2d07f4966fe473063183e97009955b82a93b181f | [
"MIT"
] | 7 | 2017-11-09T06:34:07.000Z | 2021-03-01T20:14:18.000Z | defmodule PhoenixComponentFoldersWeb.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 datastructures and query the data layer.
... | 27.909091 | 58 | 0.744843 |
9176bedd72ed258d9d7c696def3cc21f5b25ac31 | 523 | exs | Elixir | mix.exs | dzimi/accept | 4b93a8a65def67370d5dd10828fac1e70bf947a3 | [
"MIT"
] | 8 | 2016-10-20T11:48:02.000Z | 2020-03-15T01:05:06.000Z | mix.exs | dzimi/accept | 4b93a8a65def67370d5dd10828fac1e70bf947a3 | [
"MIT"
] | 1 | 2019-02-19T17:31:06.000Z | 2019-02-20T06:48:58.000Z | mix.exs | dzimi/accept | 4b93a8a65def67370d5dd10828fac1e70bf947a3 | [
"MIT"
] | 3 | 2019-02-19T17:18:13.000Z | 2021-03-02T13:31:25.000Z | defmodule Accept.Mixfile do
use Mix.Project
def project do
[app: :accept,
version: "0.3.5",
description: description(),
package: package()]
end
defp description do
"""
Accept header(s) for Erlang/Elixir.
"""
end
defp package do
[build_tools: ["rebar3"],
maintainers... | 20.92 | 78 | 0.596558 |
9176ef3121537b76f0ba4f7f1a07599531d596af | 7,251 | ex | Elixir | lib/plug/verify_token.ex | Betterez/btrz_ex_auth_api | cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed | [
"MIT"
] | 1 | 2018-10-16T08:13:12.000Z | 2018-10-16T08:13:12.000Z | lib/plug/verify_token.ex | Betterez/btrz_ex_auth_api | cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed | [
"MIT"
] | null | null | null | lib/plug/verify_token.ex | Betterez/btrz_ex_auth_api | cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule BtrzAuth.Plug.VerifyToken do
@moduledoc """
It depends on `BtrzAuth.Plug.VerifyApiKey`, looks for a token in the `Authorization` header and verify it using first the account's private key, if not valid, then main and secondary secrets provided by your app for interna... | 32.662162 | 241 | 0.610674 |
9177041be252ac0532b45e86a90dfd8d050da82c | 160 | exs | Elixir | config/config.exs | grain-team/ueberauth_zoom | 115367b5a6dbae3807dd469a5ccc6d0bcc5289bb | [
"MIT"
] | 1 | 2020-07-20T15:58:33.000Z | 2020-07-20T15:58:33.000Z | config/config.exs | grain-team/ueberauth_zoom | 115367b5a6dbae3807dd469a5ccc6d0bcc5289bb | [
"MIT"
] | null | null | null | config/config.exs | grain-team/ueberauth_zoom | 115367b5a6dbae3807dd469a5ccc6d0bcc5289bb | [
"MIT"
] | 3 | 2021-04-02T14:14:41.000Z | 2021-11-23T19:32:19.000Z | use Mix.Config
config :ueberauth, Ueberauth,
providers: [
zoom:
{Ueberauth.Strategy.Zoom,
[
oauth2_module: OAuthMock
]}
]
| 14.545455 | 33 | 0.575 |
917704ac7376efd4189550320441c8ff4eb8b714 | 2,320 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_sentiment_analysis_result.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_sentiment_analysis_result.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_sentiment_analysis_result.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... | 43.773585 | 563 | 0.787069 |
91771469a866a9c35fda340246e369fc78034dc7 | 1,903 | ex | Elixir | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_carriers_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_carriers_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_carriers_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.596154 | 224 | 0.753547 |
91777c8b9f834352ed836bbd3215ec8f293d795f | 3,202 | ex | Elixir | lib/geo/json/encoder.ex | Aethelflaed/geo | a8bc2d5d51d9550d70c0a187e79e31831dbbba92 | [
"MIT"
] | null | null | null | lib/geo/json/encoder.ex | Aethelflaed/geo | a8bc2d5d51d9550d70c0a187e79e31831dbbba92 | [
"MIT"
] | null | null | null | lib/geo/json/encoder.ex | Aethelflaed/geo | a8bc2d5d51d9550d70c0a187e79e31831dbbba92 | [
"MIT"
] | null | null | null | defmodule Geo.JSON.Encoder do
@moduledoc false
alias Geo.{
Point,
PointZ,
LineString,
Polygon,
MultiPoint,
MultiLineString,
MultiPolygon,
GeometryCollection
}
defmodule EncodeError do
@type t :: %__MODULE__{message: String.t(), value: any}
defexception [:message, :valu... | 25.212598 | 93 | 0.628357 |
91779b9623c14647baf3768dd2bb6def6d32ea05 | 2,315 | ex | Elixir | lib/ecto/query/builder/dynamic.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | lib/ecto/query/builder/dynamic.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 2 | 2020-04-23T00:19:07.000Z | 2020-04-23T00:24:25.000Z | lib/ecto/query/builder/dynamic.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.Dynamic do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Builds a dynamic expression.
"""
@spec build([Macro.t], Macro.t, Macro.Env.t) :: Macro.t
def build(binding, expr, env) do
{query, vars} = Builder.escape_binding(quote(do: que... | 35.075758 | 94 | 0.595248 |
9177d455804bf9f63026c443cb3260198dbcaa20 | 930 | exs | Elixir | test/vorm/reify1_test.exs | ianrumford/plymio_ast_vorm | 4ebe9ae6e43889e51066ee7257f3e351797de535 | [
"MIT"
] | null | null | null | test/vorm/reify1_test.exs | ianrumford/plymio_ast_vorm | 4ebe9ae6e43889e51066ee7257f3e351797de535 | [
"MIT"
] | null | null | null | test/vorm/reify1_test.exs | ianrumford/plymio_ast_vorm | 4ebe9ae6e43889e51066ee7257f3e351797de535 | [
"MIT"
] | null | null | null | defmodule PlymioAstVormReify1ModuleTest do
use PlymioAstVormHelperTest
import Plymio.Ast.Vorm, only: [reify_pipeline: 1]
[
add: quote do
def add_xy(x, y) do
x + y
end
end,
add: quote do
def sub_xy(x, y) do
x - y
end
end... | 15.245902 | 51 | 0.556989 |
9178114ca42ae6c7b689db174bcfefe8db17680e | 145 | exs | Elixir | mix.exs | alco/pipespect | 4433fe45543964870404f21833fac8aaf88ea448 | [
"MIT"
] | 28 | 2015-06-16T22:57:03.000Z | 2021-07-29T08:18:15.000Z | mix.exs | alco/pipespect | 4433fe45543964870404f21833fac8aaf88ea448 | [
"MIT"
] | null | null | null | mix.exs | alco/pipespect | 4433fe45543964870404f21833fac8aaf88ea448 | [
"MIT"
] | 2 | 2015-08-22T11:56:47.000Z | 2016-05-19T10:00:08.000Z | defmodule Pipespect.Mixfile do
use Mix.Project
def project do
[app: :pipespect,
version: "1.0.0",
elixir: "~> 1.0"]
end
end
| 14.5 | 30 | 0.606897 |
91782960944ec5f3ac22ee59151e80aabde55a5d | 76 | ex | Elixir | lib/elixir_s3_cached/bucket.ex | Pedneri1/elixir_s3_cached | 3c864897e43480df79bfaf55545f73f20b1f94c6 | [
"MIT"
] | null | null | null | lib/elixir_s3_cached/bucket.ex | Pedneri1/elixir_s3_cached | 3c864897e43480df79bfaf55545f73f20b1f94c6 | [
"MIT"
] | null | null | null | lib/elixir_s3_cached/bucket.ex | Pedneri1/elixir_s3_cached | 3c864897e43480df79bfaf55545f73f20b1f94c6 | [
"MIT"
] | null | null | null | defmodule Elixir_S3_Cached.Bucket do
defstruct name: nil, prefix: nil
end
| 19 | 36 | 0.802632 |
9178516cff29a6b149102a5b0fa378c1002b2716 | 2,356 | exs | Elixir | lib/elixir/test/elixir/application_test.exs | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/application_test.exs | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/application_test.exs | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ApplicationTest do
use ExUnit.Case, async: true
test "application environment" do
assert Application.get_env(:elixir, :unknown) == nil
assert Application.get_env(:elixir, :unknown, :default) == :default
assert Application.fetch_env(:elixir, :unkno... | 36.8125 | 83 | 0.703735 |
91785580bc089c4dc71c01270290f86da51da2fc | 3,998 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/operations.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/operations.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/operations.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.531915 | 196 | 0.656328 |
91785c91402ffa33759a6cbda9affb922db94076 | 1,982 | exs | Elixir | clients/container_analysis/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/mix.exs | 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... | 29.58209 | 188 | 0.671544 |
9178710ffc033d2970d1572a3e66d0c10dc36003 | 2,102 | ex | Elixir | lib/mix/lib/mix/tasks/run.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/run.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/run.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Run do
use Mix.Task
@shortdoc "Run the given file or expression"
@moduledoc """
Runs the given file or expression in the context of the application.
Before running the code, it invokes the `app.start` task which compiles
and loads your project.
It is the goal of this task to provid... | 29.605634 | 78 | 0.636061 |
917898476f169316942310d810de4badd54f21f2 | 1,792 | ex | Elixir | clients/content/lib/google_api/content/v2/model/pos_custom_batch_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/pos_custom_batch_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/pos_custom_batch_response.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... | 35.84 | 161 | 0.737723 |
917899f883611a6a2ff63d8135d8263c3b0df742 | 1,946 | ex | Elixir | apps/admin_app/lib/admin_app_web/channels/user_socket.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/admin_app/lib/admin_app_web/channels/user_socket.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/admin_app/lib/admin_app_web/channels/user_socket.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule AdminAppWeb.UserSocket do
use Phoenix.Socket
@secret_key_base Application.get_env(:admin_app, AdminAppWeb.Endpoint)[:secret_key_base]
## Channels
# channel "room:*", AdminAppWeb.RoomChannel
channel("product:*", AdminAppWeb.ProductChannel)
channel("order:*", AdminAppWeb.OrderChannel)
## Transpo... | 29.938462 | 90 | 0.65519 |
91789ddbd34ca49bd29e6e4f86adcb117abe8c50 | 76 | exs | Elixir | test/draft_web/views/page_view_test.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | test/draft_web/views/page_view_test.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | test/draft_web/views/page_view_test.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | defmodule DraftWeb.PageViewTest do
use DraftWeb.ConnCase, async: true
end
| 19 | 36 | 0.815789 |
9178b7edee4aa00a0951e55725fdc234a28dd432 | 2,743 | exs | Elixir | templates/elchemy.exs | wende/elchemy-library | 442ecdf740678df7ef17ae57ac14eecbe6221fed | [
"MIT"
] | null | null | null | templates/elchemy.exs | wende/elchemy-library | 442ecdf740678df7ef17ae57ac14eecbe6221fed | [
"MIT"
] | null | null | null | templates/elchemy.exs | wende/elchemy-library | 442ecdf740678df7ef17ae57ac14eecbe6221fed | [
"MIT"
] | null | null | null | defmodule ElchemyInit do
@deps_directory_depth 3
def init(project, {__MODULE, _}) do
if !project || !project[:deps] do
IO.warn """
The project structure is invalid. Make sure that
|> Code.eval_file(\".elchemy.exs\").init
Line was put __after__ the closing bracked `]`
""... | 24.711712 | 84 | 0.565439 |
9178d9ac7cdab4c2326736cfba7b0a92534f1b08 | 2,819 | exs | Elixir | test/guardian/plug/error_handler_test.exs | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | test/guardian/plug/error_handler_test.exs | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | test/guardian/plug/error_handler_test.exs | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | defmodule Guardian.Plug.ErrorHandlerTest do
@moduledoc false
use ExUnit.Case, async: true
use Plug.Test
alias Guardian.Plug.ErrorHandler
setup do
conn = conn(:get, "/foo")
{:ok, %{conn: conn}}
end
test "unauthenticated/2 sends a 401 response when text/html", %{conn: conn} do
conn = put_req_... | 26.101852 | 80 | 0.629656 |
91790bbb0649a7380a22b40537a065fab3c06040 | 2,617 | exs | Elixir | mix.exs | cdegroot/nerves_system_rpi3_tftfb | db339241cf931d8b986bdf993258f06478e46837 | [
"Apache-2.0"
] | null | null | null | mix.exs | cdegroot/nerves_system_rpi3_tftfb | db339241cf931d8b986bdf993258f06478e46837 | [
"Apache-2.0"
] | 2 | 2018-06-27T13:37:11.000Z | 2018-06-27T13:39:06.000Z | mix.exs | cdegroot/nerves_system_rpi3_tftfb | db339241cf931d8b986bdf993258f06478e46837 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi3TftFb.MixProject do
use Mix.Project
@app :nerves_system_rpi3_tftfb
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ ... | 22.560345 | 79 | 0.5812 |
917938af672800abd5231b8069d2d264744d4199 | 1,239 | exs | Elixir | test/lib/absinthe/type/input_object_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | test/lib/absinthe/type/input_object_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | test/lib/absinthe/type/input_object_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Type.InputObjectTest do
use Absinthe.Case, async: true
defmodule TestSchema do
use Absinthe.Schema
query do
#Query type must exist
end
input_object :profile do
description "A profile"
field :name, :string
field :profile_picture,
type: :string,
... | 22.125 | 123 | 0.635997 |
917941baa157b74cc15e3c6ccbb8b62a5885eaf0 | 14,706 | exs | Elixir | test/ex_doc/autolink_test.exs | LauraBeatris/ex_doc | 3803bfc77e2a6631ceea19733a6a34782bea4af3 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-03-13T14:49:36.000Z | 2021-03-13T14:49:36.000Z | test/ex_doc/autolink_test.exs | LauraBeatris/ex_doc | 3803bfc77e2a6631ceea19733a6a34782bea4af3 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/autolink_test.exs | LauraBeatris/ex_doc | 3803bfc77e2a6631ceea19733a6a34782bea4af3 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.AutolinkTest do
use ExUnit.Case, async: true
doctest ExDoc.Autolink
import ExUnit.CaptureIO
defp sigil_m(text, []) do
[{:p, _, [ast]}] = ExDoc.Markdown.to_ast(text, [])
ast
end
setup do
ExDoc.Refs.clear()
:ok
end
describe "doc/3" do
test "elixir stdlib module" do
... | 34.359813 | 260 | 0.55984 |
91794ba26753a26532da6a25a064e2bf6f63d995 | 1,580 | ex | Elixir | apps/sherbet_service/lib/sherbet.service.ex | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | 3 | 2017-05-02T12:52:54.000Z | 2017-05-28T11:53:17.000Z | apps/sherbet_service/lib/sherbet.service.ex | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | null | null | null | apps/sherbet_service/lib/sherbet.service.ex | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | 2 | 2017-05-02T13:13:25.000Z | 2019-10-24T11:55:39.000Z | defmodule Sherbet.Service do
@moduledoc """
The service application for managing contacts.
## Configurable Options
* `:server` - The name the server should be registered as. This takes a
function that accepts a module and returns a valid named server.
An example configuration:
... | 26.779661 | 77 | 0.611392 |
917962640fea9c764ad5910d8602adfc70c68d70 | 2,558 | ex | Elixir | lib/rummage_phoenix/hooks/controllers/search_controller.ex | Thopiax/rummage_phoenix | 22c9a3f499abeaf61af29998c4164d177bfe6521 | [
"MIT"
] | null | null | null | lib/rummage_phoenix/hooks/controllers/search_controller.ex | Thopiax/rummage_phoenix | 22c9a3f499abeaf61af29998c4164d177bfe6521 | [
"MIT"
] | null | null | null | lib/rummage_phoenix/hooks/controllers/search_controller.ex | Thopiax/rummage_phoenix | 22c9a3f499abeaf61af29998c4164d177bfe6521 | [
"MIT"
] | 1 | 2018-08-31T16:07:29.000Z | 2018-08-31T16:07:29.000Z | defmodule Rummage.Phoenix.SearchController do
@moduledoc """
`SearchController` a controller helper in `Rummage.Phoenix` which stores
helpers for Search hook in `Rummage`. This formats params before `index`
action into a format that is expected by the default `Rummage.Ecto`'s search
hook: `Rummage.Ecto.Search... | 35.041096 | 99 | 0.639562 |
91796bbf5cdf5d7671c1392b1d690f763792cbca | 1,255 | exs | Elixir | test/bootleg/tasks/build_task_test.exs | parthi82/bootleg | 1b8d05bfded54b5ed6845661de516055edd8c498 | [
"MIT"
] | null | null | null | test/bootleg/tasks/build_task_test.exs | parthi82/bootleg | 1b8d05bfded54b5ed6845661de516055edd8c498 | [
"MIT"
] | null | null | null | test/bootleg/tasks/build_task_test.exs | parthi82/bootleg | 1b8d05bfded54b5ed6845661de516055edd8c498 | [
"MIT"
] | null | null | null | defmodule Bootleg.Tasks.BuildTaskTest do
use Bootleg.TestCase, async: false
import ExUnit.CaptureIO
import Mock
alias Bootleg.{Config, Git, SSH}
test "building without specified port" do
use Bootleg.DSL
role(:build, "build.example.com", user: "foo", workspace: "bar")
ssh_host =
:build
... | 24.607843 | 86 | 0.490837 |
91797f0bd08234e823e3363e44c024b80198f301 | 164 | exs | Elixir | priv/repo/migrations/20161004123829_add_name_to_users.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | priv/repo/migrations/20161004123829_add_name_to_users.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | priv/repo/migrations/20161004123829_add_name_to_users.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Repo.Migrations.AddNameToUsers do
use Ecto.Migration
def change() do
alter table(:users) do
add(:full_name, :text)
end
end
end
| 16.4 | 49 | 0.689024 |
91798e26f1b49b4de039faf5bc9998598fd3918c | 2,564 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/cloud_api/discovery_client.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/cloud_api/discovery_client.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 10 | 2022-02-23T06:44:58.000Z | 2022-03-23T21:04:37.000Z | implementations/elixir/ockam/ockam/lib/ockam/cloud_api/discovery_client.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.CloudApi.DiscoveryClient do
@moduledoc """
Client API for discovery service
"""
alias Ockam.Bare.Extended, as: BareExtended
alias Ockam.Router
require Logger
def register_service(discovery_route, id, route, metadata \\ %{}) do
Logger.info("Registering #{inspect(id)}, #{inspect(route... | 28.488889 | 94 | 0.658346 |
9179917a972e24631f687baf0b4e9d2e962daf8f | 436 | ex | Elixir | lib/aliyun/oss/object.ex | imeidada/aliyun-elixir-sdk | 2d7315db1a45ff0b66443ae47e1386512cdc26e8 | [
"MIT"
] | 1 | 2019-04-29T14:26:12.000Z | 2019-04-29T14:26:12.000Z | lib/aliyun/oss/object.ex | imeidada/aliyun-elixir-sdk | 2d7315db1a45ff0b66443ae47e1386512cdc26e8 | [
"MIT"
] | null | null | null | lib/aliyun/oss/object.ex | imeidada/aliyun-elixir-sdk | 2d7315db1a45ff0b66443ae47e1386512cdc26e8 | [
"MIT"
] | 2 | 2020-12-31T06:01:13.000Z | 2021-08-16T10:04:26.000Z | defmodule Aliyun.OSS.Object do
defstruct path: nil,
filename: "file",
bucket: nil,
key: [],
content_type: nil,
permission: :private
@type t :: %__MODULE__{
path: String.t(),
filename: String.t(),
bucket: String.t(),
... | 24.222222 | 45 | 0.486239 |
917992917b1a270457dd61631ed9e9806a7334c3 | 407 | ex | Elixir | lib/strategy/consul/agent.ex | rstgroup/libcluster_consul | 5bf0136f3f8ac90b5da68b4fe509168e63e6fab6 | [
"Apache-2.0"
] | null | null | null | lib/strategy/consul/agent.ex | rstgroup/libcluster_consul | 5bf0136f3f8ac90b5da68b4fe509168e63e6fab6 | [
"Apache-2.0"
] | null | null | null | lib/strategy/consul/agent.ex | rstgroup/libcluster_consul | 5bf0136f3f8ac90b5da68b4fe509168e63e6fab6 | [
"Apache-2.0"
] | null | null | null | defmodule Cluster.Strategy.Consul.Agent do
@moduledoc """
This endpoint grab nodes from Consul using the
[Agent HTTP API](https://www.consul.io/api/agent.html).
"""
use Cluster.Strategy.Consul.Endpoint
@impl true
def build_url(%URI{} = url, config) do
%{url | path: "/agent/service/#{config[:service_... | 23.941176 | 60 | 0.670762 |
917993c6d90573770678e0a5c4b36ec58362be27 | 1,870 | exs | Elixir | test/opentelemetry/honeycomb/attributes_cleaning_test.exs | lirossarvet/opentelemetry_honeycomb | 24d7ad9e318a758f8154c6294aab6c67084280ac | [
"Apache-2.0"
] | null | null | null | test/opentelemetry/honeycomb/attributes_cleaning_test.exs | lirossarvet/opentelemetry_honeycomb | 24d7ad9e318a758f8154c6294aab6c67084280ac | [
"Apache-2.0"
] | 11 | 2020-04-25T06:15:09.000Z | 2022-02-22T23:11:17.000Z | test/opentelemetry/honeycomb/attributes_cleaning_test.exs | lirossarvet/opentelemetry_honeycomb | 24d7ad9e318a758f8154c6294aab6c67084280ac | [
"Apache-2.0"
] | 5 | 2020-09-28T10:51:18.000Z | 2021-03-16T01:29:19.000Z | defmodule OpenTelemetry.Honeycomb.Attributes.CleaningTest do
use ExUnit.Case
alias OpenTelemetry.Honeycomb.Attributes
doctest OpenTelemetry.Honeycomb.Attributes
defmodule UnexpectedSpanishInquisition do
defstruct []
end
describe "clean/1 passes through" do
test "strings" do
assert %{string: ... | 25.972222 | 96 | 0.566845 |
91799fc72438f50ce51eca2c2fcbe1601a32d3e9 | 1,615 | ex | Elixir | lib/day8.ex | ntwyman/aoc_2019 | 444dfd58ce9272d79a511785d24d5ba8443a2dfa | [
"MIT"
] | null | null | null | lib/day8.ex | ntwyman/aoc_2019 | 444dfd58ce9272d79a511785d24d5ba8443a2dfa | [
"MIT"
] | null | null | null | lib/day8.ex | ntwyman/aoc_2019 | 444dfd58ce9272d79a511785d24d5ba8443a2dfa | [
"MIT"
] | null | null | null | defmodule Day8 do
def make_splits(string, size) do
{layer, rest} = String.split_at(string, size)
if String.length(rest) <= size do
[layer, rest]
else
[layer | make_splits(rest, size)]
end
end
def count_chars(layer) do
Enum.reduce(
to_charlist(layer),
%{},
fn chr... | 21.533333 | 68 | 0.570279 |
9179bb38884026387853ba2129e2273581d9a445 | 878 | ex | Elixir | lib/bitpal/events/exchange_rate_events.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/events/exchange_rate_events.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/events/exchange_rate_events.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule BitPal.ExchangeRateEvents do
alias BitPal.EventHelpers
alias BitPal.ExchangeRate
alias BitPal.ExchangeRateSupervisor
alias BitPal.ExchangeRateSupervisor.Result
@spec subscribe(ExchangeRate.pair(), keyword) :: :ok | {:error, term}
def subscribe(pair, opts \\ []) do
case EventHelpers.subscribe(... | 26.606061 | 76 | 0.687927 |
9179daeca8e66c8a41f1e273f9631473cbf99f5b | 5,144 | exs | Elixir | test/integration/alert_test.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | test/integration/alert_test.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | test/integration/alert_test.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.Integration.AlertTest do
use ExUnit.Case, async: false
alias WebDriverClient.IntegrationTesting.Scenarios
alias WebDriverClient.IntegrationTesting.Scenarios.Scenario
alias WebDriverClient.IntegrationTesting.TestGenerator
alias WebDriverClient.IntegrationTesting.TestPages.Interaction... | 33.402597 | 95 | 0.716563 |
9179dc05b593900dda5032e592faf21e062f8d38 | 163 | exs | Elixir | apps/omg_api/config/test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/config/test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/config/test.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :omg_api,
ethereum_event_block_finality_margin: 2,
ethereum_event_check_height_interval_ms: 50,
rootchain_height_sync_interval_ms: 50
| 23.285714 | 46 | 0.846626 |
9179e756cd24241189046d7b5b3aecbb423573ff | 1,995 | ex | Elixir | clients/content/lib/google_api/content/v2/model/datafeed_format.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/datafeed_format.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/datafeed_format.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.641509 | 228 | 0.726817 |
917a299fb5613439ab7b044258478eb6544359af | 1,974 | ex | Elixir | lib/pointer.ex | commonspub/pointers | f4f7f2a2e5a5902e3e2515a5c1b1d5b57dc6590e | [
"Apache-2.0"
] | 3 | 2020-06-01T07:40:08.000Z | 2020-08-17T14:41:09.000Z | lib/pointer.ex | commonspub/pointers | f4f7f2a2e5a5902e3e2515a5c1b1d5b57dc6590e | [
"Apache-2.0"
] | 2 | 2020-06-17T09:36:59.000Z | 2020-07-09T14:31:25.000Z | lib/pointer.ex | commonspub/pointers | f4f7f2a2e5a5902e3e2515a5c1b1d5b57dc6590e | [
"Apache-2.0"
] | 2 | 2020-06-11T13:21:15.000Z | 2020-07-09T07:35:35.000Z | defmodule Pointers.Pointer do
@moduledoc """
A Pointer is any object that can be referenced by its id.
Pointer is a simple table consisting of three fields:
* id - the database-unique id for this pointer in ULID format.
* table_id - a type tag, references `Table`.
* deleted_at - timestamp of when the objec... | 33.457627 | 99 | 0.713273 |
917a3e45d682aff02b6204d1d356c0bae6380b03 | 855 | ex | Elixir | apps/ello_serve/lib/ello_serve/default_to_html.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_serve/lib/ello_serve/default_to_html.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_serve/lib/ello_serve/default_to_html.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Serve.DefaultToHTML do
@moduledoc """
Adds the accepts `*/*` header if the request has no accept header.
This ensures even clients not sending accepts headers get responses.
"""
@behaviour Plug
import Plug.Conn
def init(opts), do: opts
def call(conn, _) do
case get_req_header(conn,... | 26.71875 | 75 | 0.663158 |
917a64bc31e799f0cd2b391757a8902614bc96e2 | 3,338 | ex | Elixir | lib/layouts/components/button.ex | axelson/scenic_layout_o_matic | 164d7f7100a93d47cf6f3f76cb5644997e882d88 | [
"MIT"
] | 43 | 2019-10-03T20:08:37.000Z | 2021-11-15T11:22:59.000Z | lib/layouts/components/button.ex | axelson/scenic_layout_o_matic | 164d7f7100a93d47cf6f3f76cb5644997e882d88 | [
"MIT"
] | 13 | 2019-09-03T16:37:37.000Z | 2019-10-03T16:06:47.000Z | lib/layouts/components/button.ex | axelson/scenic_layout_o_matic | 164d7f7100a93d47cf6f3f76cb5644997e882d88 | [
"MIT"
] | 2 | 2019-10-19T21:05:13.000Z | 2019-11-06T22:53:12.000Z | defmodule LayoutOMatic.Button do
# Buttons size based on :button_font_size with 20 being the default; width/height override. Button position is based on the top left point.
@default_font_size 20
@default_font :roboto
@spec translate(%{
component: map,
starting_xy: {number, number},
... | 30.072072 | 141 | 0.582984 |
917a76c7bb5ffdd8764a04278e5a0c4b47dbfd96 | 1,447 | ex | Elixir | lib/database/attempt_state.ex | gfleury/bors-ng | 02ca714283a5c5a2592c8b5ce5409e3db00ac954 | [
"Apache-2.0"
] | 1,223 | 2017-01-11T19:25:08.000Z | 2022-03-21T12:31:28.000Z | lib/database/attempt_state.ex | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 1,428 | 2017-01-09T16:36:18.000Z | 2022-03-28T14:19:40.000Z | lib/database/attempt_state.ex | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 184 | 2017-01-10T18:08:06.000Z | 2022-03-14T18:53:24.000Z | defmodule BorsNG.Database.AttemptState do
use Ecto.Type
@moduledoc """
A type to represent the attmept state.
"""
@type t :: :waiting | :running | :ok | :error | :canceled
@typep internal :: 0..4
# Underlying storage is an integer.
def type, do: :integer
@spec cast(t | internal) :: {:ok, t}
# Ac... | 21.279412 | 76 | 0.520387 |
917a85899c766409d87da3f684de3db0b90477a1 | 2,140 | ex | Elixir | lib/chat_api/notes.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | null | null | null | lib/chat_api/notes.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | lib/chat_api/notes.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | null | null | null | defmodule ChatApi.Notes do
@moduledoc """
The Notes context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.Notes.Note
# TODO: remove and replace with `list_notes_by_account/2`
@spec list_notes_for_customer(account_id: binary, customer_id: binary) :: [Note.t()]
def list_notes_f... | 28.533333 | 86 | 0.631776 |
917a8dcc5a2f7f9bb2d4b0b95d543d8b32c0150b | 1,231 | ex | Elixir | lib/poniverse.ex | Poniverse/elixir-poniverse | b077777e780f3967000df8831503bb613204fd43 | [
"Apache-2.0"
] | null | null | null | lib/poniverse.ex | Poniverse/elixir-poniverse | b077777e780f3967000df8831503bb613204fd43 | [
"Apache-2.0"
] | null | null | null | lib/poniverse.ex | Poniverse/elixir-poniverse | b077777e780f3967000df8831503bb613204fd43 | [
"Apache-2.0"
] | null | null | null | defmodule Poniverse do
@moduledoc """
An OAuth2 strategy for Poniverse.
"""
use OAuth2.Strategy
alias OAuth2.Strategy.AuthCode
defp config do
[
strategy: __MODULE__,
site: "https://api.poniverse.net/v1",
authorize_url: "https://poniverse.net/oauth/authorize",
token_url: "https:... | 24.62 | 138 | 0.691308 |
917a92f753d4c55d944926ec1e79234782702170 | 190 | ex | Elixir | lib/four_lucha/resource/game_rating.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | 1 | 2021-02-21T19:15:27.000Z | 2021-02-21T19:15:27.000Z | lib/four_lucha/resource/game_rating.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | lib/four_lucha/resource/game_rating.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.Resource.GameRating do
@moduledoc false
defstruct(
api_detail_url: nil,
guid: nil,
id: nil,
image: nil,
name: nil,
raiting_board: nil
)
end
| 15.833333 | 42 | 0.652632 |
917a9cd3f2de02b1b18fbc1ae138a550c14ac422 | 4,811 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v5/api/pagespeedapi.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v5/api/pagespeedapi.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/page_speed_online/lib/google_api/page_speed_online/v5/api/pagespeedapi.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... | 43.736364 | 196 | 0.643941 |
917ac7cda896ad85d0f4f098e909b5721fa2cde5 | 584 | exs | Elixir | apps/ex_wire/test/ex_wire/connection_observer_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/test/ex_wire/connection_observer_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/test/ex_wire/connection_observer_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule ExWire.ConnectionObserverTest do
use ExUnit.Case, async: true
alias ExWire.ConnectionObserver
alias ExWire.FakeKademlia
test "if we are notified of discovery round messages" do
pid = Process.whereis(ConnectionObserver)
{:ok, kademlia_pid} = FakeKademlia.start_link()
:ok = GenServer.call(k... | 30.736842 | 75 | 0.732877 |
917af7de50fc9b47e5a174042ac6f5a2d7f43688 | 359 | ex | Elixir | app/lib/noodl_web/live/messaging/user_list.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl_web/live/messaging/user_list.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl_web/live/messaging/user_list.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.Live.Messaging.UserList do
use NoodlWeb, :live_component
alias NoodlWeb.Live.Messaging.Chat
defdelegate is_organizer?(user, organizers), to: Chat
defdelegate user_banned?(user, banned_users), to: Chat
defdelegate get_username(user), to: NoodlWeb.SharedView
defdelegate within_allowed_tim... | 32.636364 | 66 | 0.793872 |
917b0fd795367d10dcc3c88db4b66678d2aa562b | 4,830 | exs | Elixir | test/parsers/atom_test.exs | wstrinz/elixir-feed-parser | 673b2dd13b164c9691b1361e9475e9c001d1abd7 | [
"MIT"
] | null | null | null | test/parsers/atom_test.exs | wstrinz/elixir-feed-parser | 673b2dd13b164c9691b1361e9475e9c001d1abd7 | [
"MIT"
] | null | null | null | test/parsers/atom_test.exs | wstrinz/elixir-feed-parser | 673b2dd13b164c9691b1361e9475e9c001d1abd7 | [
"MIT"
] | null | null | null | defmodule ElixirFeedParser.Test.AtomTest do
use ExUnit.Case
alias ElixirFeedParser.XmlNode
alias ElixirFeedParser.Parsers.Atom
setup do
example1_file = File.read!("test/fixtures/atom/example1.xml")
example1 = with {:ok, xml} <- XmlNode.parse_string(example1_file), do: Atom.parse(xml)
example2_file... | 34.014085 | 191 | 0.66853 |
917b3fa4f20cb51efd6eaf92a779d9452ab626df | 588 | exs | Elixir | test/chatroom_web/views/error_view_test.exs | hotpyn/phoenix-chat-demo | 0726e6d4dc9482230a1e4d2b3edbe83b19924521 | [
"MIT"
] | null | null | null | test/chatroom_web/views/error_view_test.exs | hotpyn/phoenix-chat-demo | 0726e6d4dc9482230a1e4d2b3edbe83b19924521 | [
"MIT"
] | 2 | 2021-03-09T12:17:18.000Z | 2021-05-10T02:09:33.000Z | test/chatroom_web/views/error_view_test.exs | hotpyn/phoenix-chat-demo | 0726e6d4dc9482230a1e4d2b3edbe83b19924521 | [
"MIT"
] | null | null | null | defmodule ChatroomWeb.ErrorViewTest do
use ChatroomWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(ChatroomWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 5... | 26.727273 | 69 | 0.687075 |
917b42835f883fdf1a42c39fe7ad6bd8cf649530 | 614 | exs | Elixir | test/absinthe/federation/schema/prototype_test.exs | trbngr/absinthe_federation | 7ebe9c26c16ea088e42914df9797acd04e9d9894 | [
"MIT"
] | 40 | 2021-06-26T08:43:50.000Z | 2022-03-30T15:41:08.000Z | test/absinthe/federation/schema/prototype_test.exs | trbngr/absinthe_federation | 7ebe9c26c16ea088e42914df9797acd04e9d9894 | [
"MIT"
] | 22 | 2021-07-14T20:01:08.000Z | 2022-03-31T15:58:02.000Z | test/absinthe/federation/schema/prototype_test.exs | trbngr/absinthe_federation | 7ebe9c26c16ea088e42914df9797acd04e9d9894 | [
"MIT"
] | 4 | 2021-08-23T14:38:41.000Z | 2021-11-30T00:16:19.000Z | defmodule Absinthe.Federation.Schema.PrototypeTest do
use Absinthe.Federation.Case, async: true
describe "import_sdl" do
defmodule SDLSchema do
use Absinthe.Schema
use Absinthe.Federation.Schema
import_sdl """
type Query {
me: User
}
type User @extends @key(fields:... | 21.172414 | 61 | 0.604235 |
917b53343f70b4255d8911253b6610152e0e2fd3 | 1,487 | ex | Elixir | lib/table_tennis_web/views/error_helpers.ex | artukrap/table-tennis-score-dashboard | 4e0c20adeebc6755bb858c624310158a8f73cfe8 | [
"MIT"
] | 3 | 2018-05-11T11:28:20.000Z | 2019-02-22T22:59:42.000Z | lib/table_tennis_web/views/error_helpers.ex | krapans/table-tennis-score-dashboard | 4e0c20adeebc6755bb858c624310158a8f73cfe8 | [
"MIT"
] | 4 | 2018-04-30T12:13:36.000Z | 2018-05-04T12:17:38.000Z | lib/table_tennis_web/views/error_helpers.ex | krapans/table-tennis-score-dashboard | 4e0c20adeebc6755bb858c624310158a8f73cfe8 | [
"MIT"
] | null | null | null | defmodule TableTennisWeb.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 ->
content_... | 33.044444 | 80 | 0.67384 |
917b53d19a3e8b84ca25bf7c64221731235e5eaf | 2,401 | exs | Elixir | test/lob/address_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | null | null | null | test/lob/address_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | null | null | null | test/lob/address_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | null | null | null | defmodule Lob.AddressTest do
use ExUnit.Case
alias Lob.Address
setup do
%{
sample_address: %{
name: "TestAddress",
email: "test@test.com",
address_line1: "185 Berry Street",
address_line2: "Suite 6100",
address_city: "San Francisco",
address_state: "CA",... | 26.677778 | 81 | 0.645148 |
917ba9d7fc5a8e0dc441080d431b9043b619f2e8 | 4,710 | ex | Elixir | lophi-disk-introspection-server/debian/manpage.sgml.ex | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 28 | 2016-02-26T00:54:16.000Z | 2022-02-24T12:21:15.000Z | lophi-disk-introspection-server/debian/manpage.sgml.ex | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T21:49:09.000Z | 2016-07-12T22:11:39.000Z | lophi-disk-introspection-server/debian/manpage.sgml.ex | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 9 | 2016-06-08T14:42:28.000Z | 2021-11-11T03:51:34.000Z | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Ma... | 30.387097 | 88 | 0.660297 |
917bb0d92979cafe3c04469582e245a4887f022f | 2,802 | ex | Elixir | lib/mix/lib/mix/shell.ex | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/lib/mix/shell.ex | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/shell.ex | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Shell do
@moduledoc """
Defines `Mix.Shell` contract.
"""
@doc false
defstruct [:callback]
@doc """
Prints the given ANSI message to the shell.
"""
@callback info(message :: IO.ANSI.ansidata()) :: :ok
@doc """
Prints the given ANSI error to the shell.
"""
@callback error(messa... | 23.546218 | 76 | 0.640257 |
917bc62a1f86d8b6d233a4c4b7117bcae8c92eec | 174 | exs | Elixir | config/dev.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 190 | 2015-03-11T14:05:44.000Z | 2021-11-13T03:42:59.000Z | config/dev.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 48 | 2015-03-14T17:41:25.000Z | 2016-08-16T11:37:37.000Z | config/dev.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 62 | 2015-03-20T04:31:34.000Z | 2020-08-24T05:05:12.000Z | use Mix.Config
config :phoenix_token_auth,
email_sender: "myapp@example.com"
# Setting configuration for the Joken library
config :joken,
secret_key: "very secret key"
| 19.333333 | 45 | 0.775862 |
917bd1458d980e93000096028a161c0dd72f856a | 89 | ex | Elixir | lib/sse_test_server.ex | praekeltfoundation/sse_test_server | 1e30a7719a40b3581e87bca540e3b7f57a4ad352 | [
"MIT"
] | null | null | null | lib/sse_test_server.ex | praekeltfoundation/sse_test_server | 1e30a7719a40b3581e87bca540e3b7f57a4ad352 | [
"MIT"
] | 9 | 2018-01-12T10:47:41.000Z | 2018-07-26T09:54:05.000Z | lib/sse_test_server.ex | praekeltfoundation/sse_test_server | 1e30a7719a40b3581e87bca540e3b7f57a4ad352 | [
"MIT"
] | null | null | null | defmodule SSETestServer do
@moduledoc """
Documentation for SSETestServer.
"""
end
| 14.833333 | 34 | 0.730337 |
917c28eee86d5911394a4decae16323cd765eb09 | 1,236 | ex | Elixir | lib/noa_web/controllers/idrp/idrp_controller.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 9 | 2017-08-16T14:55:48.000Z | 2019-03-06T15:06:49.000Z | lib/noa_web/controllers/idrp/idrp_controller.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | null | null | null | lib/noa_web/controllers/idrp/idrp_controller.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 1 | 2022-03-17T18:32:59.000Z | 2022-03-17T18:32:59.000Z | defmodule NoaWeb.IdrpController do
@moduledoc false
use NoaWeb, :controller
action_fallback NoaWeb.FallbackController
import NoaWeb.Router.Helpers, only: [consent_path: 3]
def request(conn, _attrs), do: conn
def callback(%{assigns: %{ueberauth_failure: failure}} = conn, _attrs) do
desc = "idrpc-1 #{... | 30.9 | 79 | 0.660194 |
917ca8131cf97f01a40d5dd521be61e3539e559f | 14,234 | ex | Elixir | lib/ex_doc/formatter/html.ex | vgsantoniazzi/ex_doc | 0f6f24b300d5486e6aaef3c13fbfab2f74cd4c5c | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-03-13T14:49:36.000Z | 2021-03-13T14:49:36.000Z | lib/ex_doc/formatter/html.ex | vgsantoniazzi/ex_doc | 0f6f24b300d5486e6aaef3c13fbfab2f74cd4c5c | [
"Apache-2.0",
"CC-BY-4.0"
] | 25 | 2015-02-03T02:21:01.000Z | 2021-04-01T13:13:56.000Z | lib/ex_doc/formatter/html.ex | eksperimental/ex_doc | 12c0a0157bd5ce33f6f4adf38bdfb58e400dbc96 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML do
@moduledoc false
alias __MODULE__.{Assets, Templates, SearchItems}
alias ExDoc.{Autolink, Markdown, GroupMatcher}
@main "api-reference"
@assets_dir "assets"
@doc """
Generate HTML documentation for the given modules.
"""
@spec run(list, ExDoc.Config.t()) :: String.... | 28.872211 | 102 | 0.641071 |
917cd0be61ebdffa7b25d751da32485c213953e6 | 1,097 | ex | Elixir | lib/chewiepay_web/channels/user_socket.ex | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | 4 | 2021-02-22T18:27:51.000Z | 2021-02-28T21:54:12.000Z | lib/chewiepay_web/channels/user_socket.ex | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | null | null | null | lib/chewiepay_web/channels/user_socket.ex | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | null | null | null | defmodule ChewiepayWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ChewiepayWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all ch... | 30.472222 | 84 | 0.696445 |
917d167fcf30f6d3d1362376e3d8ce4bcd0b3d38 | 3,280 | ex | Elixir | clients/content/lib/google_api/content/v21/model/product_status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/product_status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/product_status.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... | 41.518987 | 169 | 0.696951 |
917d611f04727cd1461d8cc48fb062a43b1f65ab | 74 | exs | Elixir | test/test_helper.exs | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | test/test_helper.exs | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | test/test_helper.exs | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(SpaceRaiders.Repo, :manual)
| 24.666667 | 58 | 0.797297 |
917d7e807921b7edd058c1345620ce5dc814c515 | 1,105 | ex | Elixir | lib/tortoise311/registry.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 2 | 2021-12-23T21:51:31.000Z | 2022-02-20T22:29:24.000Z | lib/tortoise311/registry.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 11 | 2021-11-18T01:23:15.000Z | 2022-03-28T18:15:18.000Z | lib/tortoise311/registry.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 3 | 2021-11-19T16:23:38.000Z | 2022-03-18T11:36:54.000Z | defmodule Tortoise311.Registry do
@moduledoc false
@type via :: {:via, Registry, {__MODULE__, {module(), Tortoise311.client_id()}}}
@type key :: atom() | tuple()
@spec via_name(module(), Tortoise311.client_id()) :: via() | pid()
def via_name(_module, pid) when is_pid(pid), do: pid
def via_name(module, cl... | 26.95122 | 82 | 0.635294 |
917d8ecd8c9f745cf088d7706f44b30b04adc62c | 1,008 | exs | Elixir | mix.exs | antoniogalvao/elixir-uuid | 5628bb1c65fea295dcf747f6fee45a4304041a9a | [
"Apache-2.0"
] | null | null | null | mix.exs | antoniogalvao/elixir-uuid | 5628bb1c65fea295dcf747f6fee45a4304041a9a | [
"Apache-2.0"
] | null | null | null | mix.exs | antoniogalvao/elixir-uuid | 5628bb1c65fea295dcf747f6fee45a4304041a9a | [
"Apache-2.0"
] | null | null | null | defmodule UUID.Mixfile do
use Mix.Project
@version "1.2.0"
def project do
[app: :elixir_uuid,
name: "UUID",
version: @version,
elixir: "~> 1.7",
docs: [extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_ref: "v#{@version}"],
source_url: "https://gi... | 21 | 65 | 0.563492 |
917dc3cfd708d64ebf110c66e0e0f4aa0e689f20 | 374 | ex | Elixir | auth/web/views/error_helpers.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 274 | 2017-08-25T06:39:51.000Z | 2022-03-15T21:03:27.000Z | auth/web/views/error_helpers.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 15 | 2017-10-03T17:05:48.000Z | 2021-11-23T00:33:23.000Z | auth/web/views/error_helpers.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 42 | 2017-08-28T20:08:47.000Z | 2022-01-18T07:51:02.000Z | defmodule GoogleOAuth2Example.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
if error = form.errors[field] do
{msg, _} = error
content_... | 20.777778 | 59 | 0.673797 |
917dd3813ace160f5a2b14561d7f9a38a1b40919 | 13,174 | exs | Elixir | test/oli_web/controllers/delivery_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli_web/controllers/delivery_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli_web/controllers/delivery_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.DeliveryControllerTest do
use OliWeb.ConnCase
alias Oli.Accounts
alias OliWeb.Common.LtiSession
alias Oli.Publishing
alias Oli.Seeder
alias Lti_1p3.Tool.ContextRoles
alias Oli.Delivery.Sections
describe "delivery_controller index" do
setup [:setup_lti_session]
test "handles s... | 31.744578 | 104 | 0.634659 |
917e0b4da30f046eb7d53e9fe4631cfc9aa5fa42 | 737 | exs | Elixir | test/rock/struct/point_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 10 | 2017-06-24T10:23:25.000Z | 2022-03-28T09:15:00.000Z | test/rock/struct/point_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 2 | 2017-10-17T21:06:56.000Z | 2020-07-14T13:43:32.000Z | test/rock/struct/point_test.exs | ayrat555/rock | bd0dfdd3a7bfb028e27cfda32f271879dedac1b9 | [
"MIT"
] | 3 | 2017-09-01T09:37:13.000Z | 2020-07-13T18:16:58.000Z | defmodule Rock.Struct.PointTest do
use ExUnit.Case
alias Rock.Struct.Point
test "calculates intersection of two points" do
point1 = Point.new(["1", "2", "5", "6", "9", "10"])
point2 = Point.new(["3", "4", "5", "6", "7", "8"])
intersection = Point.intersection(point1, point2)
^intersection = ["5... | 23.774194 | 55 | 0.587517 |
917e182cca572aa3f98b196b8fc5894b34d166fb | 1,756 | exs | Elixir | test/oriza/context_test.exs | rmparr/oriza | 9bb629a0d1cdf2b0604979ed892e046bd188ca2d | [
"MIT"
] | null | null | null | test/oriza/context_test.exs | rmparr/oriza | 9bb629a0d1cdf2b0604979ed892e046bd188ca2d | [
"MIT"
] | null | null | null | test/oriza/context_test.exs | rmparr/oriza | 9bb629a0d1cdf2b0604979ed892e046bd188ca2d | [
"MIT"
] | null | null | null | defmodule Oriza.ContextTest do
use ExUnit.Case
alias Oriza.Context
describe "new/1" do
test "with valid keys" do
user_keys = [user: :read]
function_keys = [admin: [:read, :write]]
assert %Context{keys: ^user_keys} = Context.new(user_keys)
assert %Context{keys: ^function_keys} = Conte... | 30.275862 | 89 | 0.656606 |
917e1cf3882b51fe0aaf3d7559c0b2dc229be857 | 1,871 | ex | Elixir | lib/hook/consumers/websocket.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | lib/hook/consumers/websocket.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/hook/consumers/websocket.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.Hook.Consumers.Websocket do
use Accent.Hook.EventConsumer, subscribe_to: [Accent.Hook.Producers.Websocket]
alias Accent.Hook
alias Accent.User
@channel "projects:"
@supported_events ~w(sync create_collaborator create_comment)
def handle_events(events, _from, state = {:endpoint, endpoint}... | 24.946667 | 120 | 0.611438 |
917e320694cf50b75322898bb98ab122279473a7 | 1,194 | ex | Elixir | web/channels/user_socket.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 73 | 2017-06-06T20:10:11.000Z | 2020-12-05T22:11:31.000Z | web/channels/user_socket.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 8 | 2017-05-24T02:08:58.000Z | 2018-05-11T14:54:29.000Z | web/channels/user_socket.ex | krondev/elm-elixir-starter | 3954fb3982e9e2330cfae197c7ecea34402cfcea | [
"MIT"
] | 22 | 2017-07-30T02:59:23.000Z | 2020-12-05T22:13:18.000Z | defmodule Elmelixirstarter.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Elmelixirstarter.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to... | 31.421053 | 89 | 0.707705 |
917e321aba61cc2100e000ba32e690af0fad8486 | 898 | ex | Elixir | lib/tarearbol/telemetria.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 49 | 2017-07-22T12:25:46.000Z | 2022-02-12T20:29:36.000Z | lib/tarearbol/telemetria.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 15 | 2017-07-21T13:17:32.000Z | 2021-02-25T05:40:11.000Z | lib/tarearbol/telemetria.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 4 | 2017-10-26T10:28:00.000Z | 2019-09-13T08:04:01.000Z | defmodule Tarearbol.Telemetria do
@moduledoc false
@default_options [use: [], apply: [level: :info]]
@all_options :telemetria
|> Application.get_env(:applications, [])
|> Keyword.get(:tarearbol, [])
@options if @all_options == true,
do: @default_options,
... | 26.411765 | 89 | 0.620267 |
917e41130dc2602924fb7de5d23895cdc037bb75 | 26 | ex | Elixir | lib/callisto.ex | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | lib/callisto.ex | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | lib/callisto.ex | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | defmodule Callisto do
end
| 8.666667 | 21 | 0.846154 |
917e4aa76649dbf2c453cb3530e538b81ad6af14 | 104 | exs | Elixir | config/dev.exs | nerves-build/dark_sky_sensor | 0588655e79950ce8a3c75c1e9db47d853c9aa0e0 | [
"MIT"
] | 3 | 2018-09-17T02:14:11.000Z | 2019-03-11T22:51:25.000Z | config/dev.exs | nerves-build/dark_sky_sensor | 0588655e79950ce8a3c75c1e9db47d853c9aa0e0 | [
"MIT"
] | null | null | null | config/dev.exs | nerves-build/dark_sky_sensor | 0588655e79950ce8a3c75c1e9db47d853c9aa0e0 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, :console, format: "[$level] $message\n"
import_config "dev.secret.exs"
| 17.333333 | 55 | 0.721154 |
917e683a31ef293687e7e8b86c94e4a48e642b05 | 1,432 | ex | Elixir | lib/phx_scaffold_bulma_tailwind_web/telemetry.ex | fvideen-com/phx_scaffold_bulma_tailwind | 588041c60d99c89848320e1ef18ad8953b3c873f | [
"MIT"
] | 5 | 2022-01-02T06:32:03.000Z | 2022-01-29T23:35:03.000Z | lib/phx_scaffold_bulma_tailwind_web/telemetry.ex | fvideen-com/phx_scaffold_bulma_tailwind | 588041c60d99c89848320e1ef18ad8953b3c873f | [
"MIT"
] | null | null | null | lib/phx_scaffold_bulma_tailwind_web/telemetry.ex | fvideen-com/phx_scaffold_bulma_tailwind | 588041c60d99c89848320e1ef18ad8953b3c873f | [
"MIT"
] | null | null | null | defmodule PhxScaffoldBulmaTailwindWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every... | 29.22449 | 86 | 0.678073 |
917e6bc2f0ec1e674591f5e669c239be9b62ebdc | 905 | ex | Elixir | lib/mix/lib/mix/tasks/deps.get.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.get.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.get.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps.Get do
use Mix.Task
@shortdoc "Gets all out of date dependencies"
@moduledoc """
Gets all out of date dependencies, i.e. dependencies
that are not available or have an invalid lock.
## Command line options
* `--only` - only fetches dependencies for given environment
* `-... | 25.138889 | 74 | 0.644199 |
917ea998ee79c86974760f322bd0366f2e5ab65d | 8,728 | exs | Elixir | test/fusion_auth/groups_test.exs | Cogility/fusion_auth | bb765849d6e1d6bc105c2316ea5fe5dd792bd49e | [
"MIT"
] | 10 | 2020-11-13T08:33:22.000Z | 2021-08-09T17:37:09.000Z | test/fusion_auth/groups_test.exs | Cogility/fusion_auth | bb765849d6e1d6bc105c2316ea5fe5dd792bd49e | [
"MIT"
] | 11 | 2021-01-06T21:30:14.000Z | 2021-09-08T09:04:51.000Z | test/fusion_auth/groups_test.exs | Cogility/fusion_auth | bb765849d6e1d6bc105c2316ea5fe5dd792bd49e | [
"MIT"
] | null | null | null | defmodule FusionAuth.GroupsTest do
use ExUnit.Case
alias FusionAuth.Groups
alias FusionAuth.Helpers.Mock
@groups_url "/api/group"
@members_url "/api/group/member"
@application_id "861f5558-34a8-43e4-ab50-317bdcd47671"
@role_id "3ebbc43c-7add-42cd-87b4-c6eca0438c6c"
@group_id "8c08f404-3a05-4e60-9d1c-... | 25.595308 | 96 | 0.554766 |
917ed401eb72603cebc8ef7932f0b24307efa9ef | 9,975 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/api/tokens.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/tokens.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/tokens.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.727273 | 196 | 0.630175 |
917ed5703bed1c6b1d05c7f68eaa534469cd709c | 2,605 | ex | Elixir | lib/bolt_sips/metadata.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | 242 | 2016-09-09T22:32:00.000Z | 2022-02-20T18:50:29.000Z | lib/bolt_sips/metadata.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | 100 | 2016-10-18T04:19:09.000Z | 2021-11-15T19:14:47.000Z | lib/bolt_sips/metadata.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | 51 | 2016-10-31T20:05:52.000Z | 2022-01-20T11:45:49.000Z | defmodule Bolt.Sips.Metadata do
@moduledoc false
defstruct [:bookmarks, :tx_timeout, :metadata]
@type t :: %__MODULE__{
bookmarks: [String.t()],
tx_timeout: non_neg_integer(),
metadata: map()
}
alias Bolt.Sips.Metadata
@doc """
Create a new metadata structure.
Data... | 26.313131 | 97 | 0.609213 |
917ee2919f4ea59930e25e1dc51fab67eb0a114e | 1,840 | ex | Elixir | lib/gexbot/github/app/token.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot/github/app/token.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot/github/app/token.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | defmodule Gexbot.Github.App.Token do
alias Gexbot.Github.{App, KeyCache}
defstruct([type: nil, secret: nil, expiry: nil, cached: false])
import Joken, only: [token: 1, sign: 2, rs256: 1, get_compact: 1, with_iat: 1, with_exp: 2]
def jwt(%{app_id: id, private_key: %JOSE.JWK{} = key}) do
token = %{iss: id}
... | 33.454545 | 111 | 0.651087 |
917f3032d3f593972a11ed25e2206681562c2ff8 | 532 | ex | Elixir | apps/gitgud_web/lib/gitgud_web/views/repo_view.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud_web/lib/gitgud_web/views/repo_view.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud_web/lib/gitgud_web/views/repo_view.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Web.RepoView do
@moduledoc false
use GitGud.Web, :view
alias GitGud.User
@spec title(atom, map) :: binary
def title(:index, %{current_user: %User{id: user_id}, user: %User{id: user_id}}), do: "Your repositories"
def title(:index, %{user: user}), do: "Repositories · #{user.login} (#{user.n... | 40.923077 | 117 | 0.672932 |
917f6cabc75cdc7fd4a9b66cd7489785bdf1b333 | 1,578 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/label_descriptor.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/label_descriptor.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/label_descriptor.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... | 30.941176 | 96 | 0.736375 |
917f7b7ac60ff7466bf4d630e9b9f3aa8507d98f | 7,275 | exs | Elixir | .credo.exs | membraneframework/memebrane-element-rawvideo-parser | 90451f9dbb688947d2e43e33a7fa7127bf8430b2 | [
"Apache-2.0"
] | 12 | 2018-07-26T18:45:54.000Z | 2019-05-23T22:10:12.000Z | .credo.exs | membraneframework/memebrane-element-rawvideo-parser | 90451f9dbb688947d2e43e33a7fa7127bf8430b2 | [
"Apache-2.0"
] | 9 | 2018-10-15T07:58:53.000Z | 2020-10-22T13:51:43.000Z | .credo.exs | membraneframework/membrane-element-aac | 3a7ce5ecec74883fcb73d971590bf6deabef97a8 | [
"Apache-2.0"
] | 2 | 2020-01-22T16:16:56.000Z | 2020-07-13T14:41:48.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.696809 | 97 | 0.613196 |
917fb08e2b3ea1d5c128a5a4cd391448b9c83779 | 799 | ex | Elixir | lib/absinthe/schema/rule/type_names_are_unique.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/schema/rule/type_names_are_unique.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | lib/absinthe/schema/rule/type_names_are_unique.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Schema.Rule.TypeNamesAreUnique do
use Absinthe.Schema.Rule
@moduledoc false
@description """
References to types must be unique.
> All types within a GraphQL schema must have unique names. No two provided
> types may have the same name. No provided type may have a name which
> confli... | 27.551724 | 113 | 0.707134 |
917fb404c27fb84ae30ea0e5618773a98e9a81fe | 1,570 | ex | Elixir | lib/hierbautberlin_web/views/error_helpers.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | 13 | 2021-03-06T12:16:34.000Z | 2022-03-31T09:46:35.000Z | lib/hierbautberlin_web/views/error_helpers.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | 148 | 2021-03-05T12:44:55.000Z | 2022-03-11T12:09:06.000Z | lib/hierbautberlin_web/views/error_helpers.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | 2 | 2021-06-02T14:31:21.000Z | 2022-02-14T08:36:51.000Z | defmodule HierbautberlinWeb.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 ->
conte... | 32.708333 | 83 | 0.670064 |
917fbff6d2b5d2ce441ecba701a30201edc3f11a | 52,374 | ex | Elixir | lib/elixir/lib/macro.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | import Kernel, except: [to_string: 1]
defmodule Macro do
@moduledoc ~S"""
Macros are compile-time constructs that are invoked with Elixir's AST
as input and a superset of Elixir's AST as output.
Let's see a simple example that shows the difference between functions and macros:
defmodule Example do
... | 31.11943 | 103 | 0.618284 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.