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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2525d83c7ddda4dfdd40e47f9ff588efee6acee | 1,432 | exs | Elixir | test/type/literal_emptylist/usable_as_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/literal_emptylist/usable_as_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/literal_emptylist/usable_as_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | defmodule TypeTest.LiteralEmptyList.UsableAsTest do
use ExUnit.Case, async: true
@moduletag :usable_as
import Type, only: [builtin: 1]
use Type.Operators
alias Type.{Bitstring, List, Message}
describe "empty list are usable as" do
test "themselves" do
assert ([] ~> []) == :ok
end
tes... | 24.689655 | 74 | 0.553073 |
b2527f707f053d2c3bd4f6f053eda0243634e3d3 | 4,802 | ex | Elixir | lib/cbor.ex | scalpel-software/cbor | b81571c1e6753c73234b29c651f9081240713190 | [
"MIT"
] | 15 | 2019-07-22T22:43:13.000Z | 2022-03-10T03:02:22.000Z | lib/cbor.ex | scalpel-software/cbor | b81571c1e6753c73234b29c651f9081240713190 | [
"MIT"
] | 2 | 2020-11-13T14:59:38.000Z | 2021-09-14T01:33:49.000Z | lib/cbor.ex | scalpel-software/cbor | b81571c1e6753c73234b29c651f9081240713190 | [
"MIT"
] | 4 | 2020-02-04T01:19:06.000Z | 2021-09-14T01:20:17.000Z | defmodule CBOR do
@moduledoc """
The Concise Binary Object Representation (CBOR) is a data format
whose design goals include the possibility of extremely small code
size, fairly small message size, and extensibility without the need
for version negotiation. These design goals make it different from
earlier... | 36.378788 | 93 | 0.66389 |
b252872c3016be488c637e54ea5806691b6f4d38 | 908 | ex | Elixir | lib/tokenizers/yearly.ex | rcdilorenzo/repeatex | eb7e1ec5d0431bef936a01e656b4454ed555ae00 | [
"MIT"
] | 51 | 2015-01-22T14:16:59.000Z | 2021-07-27T15:51:47.000Z | lib/tokenizers/yearly.ex | ruby2elixir/repeatex | eb7e1ec5d0431bef936a01e656b4454ed555ae00 | [
"MIT"
] | 15 | 2015-02-07T19:33:04.000Z | 2019-03-22T19:51:04.000Z | lib/tokenizers/yearly.ex | ruby2elixir/repeatex | eb7e1ec5d0431bef936a01e656b4454ed555ae00 | [
"MIT"
] | 6 | 2016-01-08T05:41:10.000Z | 2019-04-02T12:27:34.000Z | defmodule Repeatex.Tokenizer.Yearly do
@behaviour Repeatex.Tokenizer
use Repeatex.Helper
match_type :yearly, ~r/(year|annual)/i
match_freq 1, ~r/(yearly|annually)/i
match_freq 1, ~r/(each|every|of the).year/i
match_freq 2, ~r/bi-year(ly)?/i
match_freq 2, ~r/(each|every).other.year/i
match_freq "digit"... | 31.310345 | 88 | 0.636564 |
b252aab04d4b961c3ccc2d33ab2328a0dd2c81f5 | 1,022 | exs | Elixir | mix.exs | vovayartsev/travis_ex | 3f4c4b5fde1cc1995710504f26bd0167fa8741f6 | [
"MIT"
] | null | null | null | mix.exs | vovayartsev/travis_ex | 3f4c4b5fde1cc1995710504f26bd0167fa8741f6 | [
"MIT"
] | null | null | null | mix.exs | vovayartsev/travis_ex | 3f4c4b5fde1cc1995710504f26bd0167fa8741f6 | [
"MIT"
] | 1 | 2018-04-14T14:47:58.000Z | 2018-04-14T14:47:58.000Z | defmodule TravisEx.Mixfile do
use Mix.Project
@description """
Travis-ci API client library for Elixir
"""
def project do
[app: :travis_ex,
version: "0.0.2",
elixir: "~> 1.0",
description: @description,
package: package,
build_embedded: Mix.env == :prod,
start_permanent: ... | 22.217391 | 65 | 0.576321 |
b252b1b7df5417aee31e04ec65e8b6a9b39fb067 | 1,121 | exs | Elixir | config/config.exs | arghmeleg/conqueuer | da58f5bfb074543ed88138b28c3db40d5a986cd5 | [
"MIT"
] | 10 | 2015-10-29T16:43:50.000Z | 2021-03-17T13:23:48.000Z | config/config.exs | arghmeleg/conqueuer | da58f5bfb074543ed88138b28c3db40d5a986cd5 | [
"MIT"
] | 5 | 2016-05-22T02:34:33.000Z | 2016-10-13T02:14:21.000Z | config/config.exs | arghmeleg/conqueuer | da58f5bfb074543ed88138b28c3db40d5a986cd5 | [
"MIT"
] | 6 | 2016-05-11T15:33:04.000Z | 2019-03-28T15:29:14.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.752007 |
b252b96703aa6697e12f173da10c2bb706ab7a2e | 1,649 | ex | Elixir | lib/google_api/you_tube/v3/model/video_file_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_file_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_file_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 34.354167 | 199 | 0.7453 |
b252bf560a544c4c5d7ec3dcd558a2e8a4f2c6c6 | 5,350 | ex | Elixir | lib/glimesh_web/live/chat_live/index.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/chat_live/index.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/chat_live/index.ex | ACPixel/glimesh.tv | 4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.ChatLive.Index do
use GlimeshWeb, :live_view
alias Glimesh.Accounts
alias Glimesh.ChannelLookups
alias Glimesh.Chat
alias Glimesh.Chat.ChatMessage
alias Glimesh.Presence
alias Glimesh.Streams
@impl true
def mount(_params, %{"channel_id" => channel_id} = session, socket) do
i... | 31.28655 | 184 | 0.675701 |
b252cc1bb3f059f422c40ddda14d452f5a0f692f | 1,442 | exs | Elixir | mix.exs | jxub/barrel_ex_http | fe00edc2e69b3378c9531b32120237a765c9f5dd | [
"MIT"
] | null | null | null | mix.exs | jxub/barrel_ex_http | fe00edc2e69b3378c9531b32120237a765c9f5dd | [
"MIT"
] | null | null | null | mix.exs | jxub/barrel_ex_http | fe00edc2e69b3378c9531b32120237a765c9f5dd | [
"MIT"
] | null | null | null | defmodule BarrelEx.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :barrel_ex,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
name: "barrel_ex_http",
... | 23.258065 | 74 | 0.538835 |
b252d86c3f64a9214d9dd11dbe368904506ae995 | 475 | ex | Elixir | lib/symphony/object.ex | efcasado/symphony | 64f0db4493b19057100929a1a475357b2824f0d5 | [
"MIT",
"Unlicense"
] | null | null | null | lib/symphony/object.ex | efcasado/symphony | 64f0db4493b19057100929a1a475357b2824f0d5 | [
"MIT",
"Unlicense"
] | null | null | null | lib/symphony/object.ex | efcasado/symphony | 64f0db4493b19057100929a1a475357b2824f0d5 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule Symphony.Object do
@moduledoc """
Symphony's internal object. This object is returned in response to
most of the requests.
"""
defstruct [:location, :etag]
@doc """
Creates a Symphony object out of a HTTP response.
"""
def from_http_resp(resp) do
{"Location", location} = List.keyfind(re... | 27.941176 | 70 | 0.671579 |
b252faee634b266d864d944d8ad6a9391048ac11 | 1,258 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/model/sync_repo_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/source_repo/lib/google_api/source_repo/v1/model/sync_repo_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/model/sync_repo_request.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 ... | 29.952381 | 77 | 0.760731 |
b25309ce990bedd8eddc085fa86626ffeaaac9f4 | 1,448 | exs | Elixir | test/plausible_web/controllers/api/stats_controller/conversions_test.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 1 | 2020-10-08T13:33:04.000Z | 2020-10-08T13:33:04.000Z | test/plausible_web/controllers/api/stats_controller/conversions_test.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | test/plausible_web/controllers/api/stats_controller/conversions_test.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.Api.StatsController.ConversionsTest do
use PlausibleWeb.ConnCase
import Plausible.TestUtils
describe "GET /api/stats/:domain/conversions" do
setup [:create_user, :log_in, :create_site]
test "returns mixed conversions in ordered by count", %{conn: conn, site: site} do
insert(... | 34.47619 | 95 | 0.603591 |
b25328be1dbdc7de0637a2b3f4e8a7edd5ced671 | 1,160 | exs | Elixir | system6/config/config.exs | mihaivanea/broadcast_algorithms | 124a93791c0589e4f56088fe98b0a3469b3d90c7 | [
"MIT"
] | null | null | null | system6/config/config.exs | mihaivanea/broadcast_algorithms | 124a93791c0589e4f56088fe98b0a3469b3d90c7 | [
"MIT"
] | null | null | null | system6/config/config.exs | mihaivanea/broadcast_algorithms | 124a93791c0589e4f56088fe98b0a3469b3d90c7 | [
"MIT"
] | null | null | null | # Mihail Vanea (mv1315)
# 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 lo... | 35.151515 | 73 | 0.752586 |
b2533bc9429132f5d2146251252206ec67a37994 | 678 | exs | Elixir | test/node_pinger_test.exs | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | null | null | null | test/node_pinger_test.exs | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | 1 | 2020-07-22T14:46:30.000Z | 2020-07-22T14:46:30.000Z | test/node_pinger_test.exs | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | 1 | 2019-11-15T07:22:49.000Z | 2019-11-15T07:22:49.000Z | defmodule NodePingerTest do
use ExUnit.Case
import ExUnit.CaptureLog
test "check pinger logs for present nodes" do
assert capture_log(fn -> NodePinger.Application.restart_children(NodePinger) end) =~
"[warn] Unsuccessful ping for node name@host"
end
test "check pinger logs for nonexistent... | 29.478261 | 91 | 0.728614 |
b25359b2017634a9eef8149d5b7370c893ba39b2 | 1,001 | exs | Elixir | dingen/config/config.exs | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/config/config.exs | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/config/config.exs | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :dingen,
ecto_repos: [Dingen.Repo]
# C... | 32.290323 | 86 | 0.766234 |
b2538930dad348ada134362eadf1878bdc2021f2 | 13,221 | ex | Elixir | lib/geocalc.ex | kianmeng/geocalc | 8022321193d8071af43040b4cc58c62af04b8e0d | [
"MIT"
] | null | null | null | lib/geocalc.ex | kianmeng/geocalc | 8022321193d8071af43040b4cc58c62af04b8e0d | [
"MIT"
] | null | null | null | lib/geocalc.ex | kianmeng/geocalc | 8022321193d8071af43040b4cc58c62af04b8e0d | [
"MIT"
] | null | null | null | defmodule Geocalc do
@moduledoc """
Calculate distance, bearing and more between Latitude/Longitude points.
"""
alias Geocalc.Calculator
alias Geocalc.Calculator.Polygon
alias Geocalc.Point
@doc """
Calculates distance between 2 points.
Return distance in meters.
## Example
iex> berlin = [5... | 33.302267 | 114 | 0.675441 |
b2538b074d5fb7d5d5c6e2d148eee141c2f5eaec | 579 | ex | Elixir | lib/math.ex | inodaf/elixir | e6390cadae4f6bc53a4bf93733372971a20438c5 | [
"Unlicense"
] | null | null | null | lib/math.ex | inodaf/elixir | e6390cadae4f6bc53a4bf93733372971a20438c5 | [
"Unlicense"
] | null | null | null | lib/math.ex | inodaf/elixir | e6390cadae4f6bc53a4bf93733372971a20438c5 | [
"Unlicense"
] | null | null | null | defmodule Taskr.Math do
def multiply(number, multiplier) when is_integer(number) do
calculation = number * multiplier
{:ok, calculation}
end
def multiply(numbers, multiplier) do
import Enum, only: [map: 2]
calculation = case has_values?(numbers) do
true -> map(numbers, fn n -> multiply(n, ... | 22.269231 | 63 | 0.658031 |
b253f73473d187e5284c98af8836bda4ea4a0d1c | 20,307 | ex | Elixir | lib/cldr/backend/interval.ex | elixir-cldr/cldr_dates_times | 04e9e14faa260e98f2d2fad302554c6fa17d9a5c | [
"Apache-2.0"
] | 36 | 2019-07-26T18:08:04.000Z | 2022-03-08T00:37:49.000Z | lib/cldr/backend/interval.ex | elixir-cldr/cldr_dates_times | 04e9e14faa260e98f2d2fad302554c6fa17d9a5c | [
"Apache-2.0"
] | 20 | 2019-06-12T07:44:57.000Z | 2022-03-02T15:31:52.000Z | lib/cldr/backend/interval.ex | elixir-cldr/cldr_dates_times | 04e9e14faa260e98f2d2fad302554c6fa17d9a5c | [
"Apache-2.0"
] | 4 | 2020-05-29T08:42:08.000Z | 2022-03-01T15:40:24.000Z | defmodule Cldr.Interval.Backend do
@moduledoc false
def define_interval_module(config) do
backend = config.backend
config = Macro.escape(config)
quote location: :keep, bind_quoted: [config: config, backend: backend] do
defmodule Interval do
@moduledoc """
Interval formats allow f... | 39.662109 | 106 | 0.601812 |
b253fc2852cee38a428531836f747cc23e3d6f8e | 1,352 | exs | Elixir | mix.exs | mogorman/server_sent_event_stage | 70a9396f9dcb1d22c5f01b61935096d895420ba9 | [
"MIT"
] | null | null | null | mix.exs | mogorman/server_sent_event_stage | 70a9396f9dcb1d22c5f01b61935096d895420ba9 | [
"MIT"
] | null | null | null | mix.exs | mogorman/server_sent_event_stage | 70a9396f9dcb1d22c5f01b61935096d895420ba9 | [
"MIT"
] | null | null | null | defmodule ServerSentEventStage.MixProject do
use Mix.Project
def project do
[
app: :server_sent_event_stage,
version: "0.2.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "ServerSentEventStage",
description: "GenStage producer for ServerS... | 27.04 | 93 | 0.592456 |
b254174e63becb50216368085414eb9967da0fc9 | 2,137 | exs | Elixir | mix.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | 1 | 2021-11-19T01:13:45.000Z | 2021-11-19T01:13:45.000Z | mix.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | 11 | 2021-01-31T11:05:50.000Z | 2021-11-22T08:32:03.000Z | mix.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | null | null | null | defmodule LastCrusader.MixProject do
use Mix.Project
def project do
[
app: :last_crusader,
version: "0.7.0",
elixir: "~> 1.11",
start_permanent: Mix.env() in [:prod, :perso],
deps: deps(),
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
... | 26.060976 | 75 | 0.511933 |
b25425e65dd4cb1124d431ab14574509855fe207 | 3,942 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/quota_operation.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/quota_operation.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/quota_operation.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... | 63.580645 | 674 | 0.745814 |
b2543834b3c26e03ef6b3a76d02766ca9dfabc42 | 1,965 | exs | Elixir | test/teslamate/vehicles/vehicle/charging_sync_test.exs | aishlai/teslamate | c736497d1972563c49e48f08f9c76dd08ce546e5 | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | test/teslamate/vehicles/vehicle/charging_sync_test.exs | aishlai/teslamate | c736497d1972563c49e48f08f9c76dd08ce546e5 | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | test/teslamate/vehicles/vehicle/charging_sync_test.exs | aishlai/teslamate | c736497d1972563c49e48f08f9c76dd08ce546e5 | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMate.Vehicles.Vehicle.ChargingSyncTest do
use TeslaMate.VehicleCase, async: false
import ExUnit.CaptureLog
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.Log
@log_opts format: "[$level] $message\n",
colors: [enabled: false]
@tag :capture_log
test "handles invalid c... | 30.703125 | 92 | 0.562341 |
b2546558b58c4afe062765e7d1e87f81db04a99e | 445 | exs | Elixir | priv/repo/migrations/20190818231316_create_social_media_accounts.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | priv/repo/migrations/20190818231316_create_social_media_accounts.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | priv/repo/migrations/20190818231316_create_social_media_accounts.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule Vutuv.Repo.Migrations.CreateSocialMediaAccounts do
use Ecto.Migration
def change do
create table(:social_media_accounts) do
add :user_id, references(:users, on_delete: :delete_all)
add :provider, :string
add :value, :string
timestamps()
end
create unique_index(:socia... | 26.176471 | 91 | 0.716854 |
b2547778ae0bc66cebaae878b4372c2fff533cd8 | 1,068 | ex | Elixir | lib/notion/property.ex | dunyakirkali/notion.ex | 4b03de3f0a41577672c722ac2b71c7c8d559a504 | [
"Apache-2.0"
] | 2 | 2021-05-14T07:42:14.000Z | 2021-05-14T07:46:21.000Z | lib/notion/property.ex | dunyakirkali/notion.ex | 4b03de3f0a41577672c722ac2b71c7c8d559a504 | [
"Apache-2.0"
] | 5 | 2021-11-22T04:11:48.000Z | 2022-03-24T04:07:59.000Z | lib/notion/property.ex | dunyakirkali/notion.ex | 4b03de3f0a41577672c722ac2b71c7c8d559a504 | [
"Apache-2.0"
] | null | null | null | defmodule Notion.Property do
@moduledoc """
Property
"""
alias Notion.{User, RichText}
import EnumType
defenum Type do
value(Text, "text")
value(Number, "number")
end
@derive Jason.Encoder
defstruct id: nil,
type: nil,
text: [],
number: nil,
... | 22.25 | 39 | 0.472846 |
b25498c38939b8c66a7f598bf5996cf18534f52c | 1,967 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/condition_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/condition_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/condition_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.245902 | 106 | 0.712252 |
b254b4265e93830de04ede85384d73597f101c29 | 542 | exs | Elixir | farmbot_core/priv/asset/migrations/20190724183349_create_public_keys_table.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/asset/migrations/20190724183349_create_public_keys_table.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/asset/migrations/20190724183349_create_public_keys_table.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.Repo.Migrations.CreatePublicKeysTable do
use Ecto.Migration
def change do
create table("public_keys", primary_key: false) do
add(:local_id, :binary_id, primary_key: true)
add(:id, :id)
add(:name, :string)
add(:public_key, :string)
add(:monitor, :boolean... | 25.809524 | 68 | 0.664207 |
b254d0cf6dfb925f5759f7712887bb9af9cf5861 | 223 | ex | Elixir | lib/exq/backoff/sidekiq_default.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | 1,406 | 2015-01-16T03:00:32.000Z | 2022-03-28T11:38:22.000Z | lib/exq/backoff/sidekiq_default.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | 372 | 2015-01-08T05:15:11.000Z | 2022-03-18T18:05:34.000Z | lib/exq/backoff/sidekiq_default.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | 217 | 2015-02-01T20:21:36.000Z | 2022-01-28T16:19:55.000Z | defmodule Exq.Backoff.SidekiqDefault do
@behaviour Exq.Backoff.Behaviour
alias Exq.Support.Randomize
def offset(job) do
:math.pow(job.retry_count, 4) + 15 + Randomize.random(30) * (job.retry_count + 1)
end
end
| 24.777778 | 85 | 0.730942 |
b254e745f7671842cd561e958e2b290210cdc17f | 2,489 | ex | Elixir | lib/appsignal/ecto.ex | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | lib/appsignal/ecto.ex | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | lib/appsignal/ecto.ex | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | defmodule Appsignal.Ecto do
require Appsignal.Utils
@tracer Appsignal.Utils.compile_env(:appsignal, :appsignal_tracer, Appsignal.Tracer)
@span Appsignal.Utils.compile_env(:appsignal, :appsignal_span, Appsignal.Span)
import Appsignal.Utils, only: [module_name: 1]
require Logger
@doc """
Attaches `Appsig... | 29.630952 | 94 | 0.658096 |
b254f3a97032170223f2293dbe7a9746ee8532af | 948 | ex | Elixir | web/resolvers/people_resolver.ex | geowa4/hello-phoenix | e67f9cee5dc354864ddadc958bb1dda563aa70c5 | [
"MIT"
] | null | null | null | web/resolvers/people_resolver.ex | geowa4/hello-phoenix | e67f9cee5dc354864ddadc958bb1dda563aa70c5 | [
"MIT"
] | null | null | null | web/resolvers/people_resolver.ex | geowa4/hello-phoenix | e67f9cee5dc354864ddadc958bb1dda563aa70c5 | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.PeopleResolver do
@moduledoc """
"""
alias HelloPhoenix.Person
alias HelloPhoenix.Repo
require Logger
import Ecto.Query
def all(args, _info) do
if Map.has_key?(args, :family_name) do
query = from p in Person,
where: p.family_name == ^Map.get(args, :family_name),
... | 24.307692 | 75 | 0.646624 |
b254fb7fda4ea4fe686f02bcdfa8301dcde0c40e | 577 | exs | Elixir | exercises/practice/parallel-letter-frequency/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/parallel-letter-frequency/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/parallel-letter-frequency/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Frequency.MixProject do
use Mix.Project
def project do
[
app: :frequency,
version: "0.1.0",
# elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ext... | 19.896552 | 87 | 0.577123 |
b254fd18e8373abae99b5c065f48eaf5e8cec115 | 155 | exs | Elixir | test/test_helper.exs | duxet/opentelemetry_plug | 48ae8d438f369f2bfd5dee189950665560bfb8b8 | [
"Apache-2.0"
] | 24 | 2020-06-01T00:54:21.000Z | 2022-03-09T23:07:18.000Z | test/test_helper.exs | duxet/opentelemetry_plug | 48ae8d438f369f2bfd5dee189950665560bfb8b8 | [
"Apache-2.0"
] | 12 | 2020-05-10T02:20:35.000Z | 2021-08-03T19:46:55.000Z | test/test_helper.exs | duxet/opentelemetry_plug | 48ae8d438f369f2bfd5dee189950665560bfb8b8 | [
"Apache-2.0"
] | 12 | 2020-05-21T14:06:17.000Z | 2022-01-05T15:45:14.000Z | ExUnit.start()
Application.ensure_all_started(:hackney)
Application.ensure_all_started(:opentelemetry_api)
Application.ensure_all_started(:opentelemetry)
| 25.833333 | 50 | 0.870968 |
b2552813f04ea7d0d5f586da973273c46fd0506c | 3,604 | exs | Elixir | test/grpc/transport/http2_test.exs | carrascoacd/grpc | 6493159b763530f7d04a904885ab315d2cafc05f | [
"Apache-2.0"
] | 2 | 2019-06-18T18:31:24.000Z | 2020-12-31T07:24:12.000Z | test/grpc/transport/http2_test.exs | carrascoacd/grpc | 6493159b763530f7d04a904885ab315d2cafc05f | [
"Apache-2.0"
] | 4 | 2020-02-10T23:40:06.000Z | 2021-03-23T18:33:11.000Z | test/grpc/transport/http2_test.exs | carrascoacd/grpc | 6493159b763530f7d04a904885ab315d2cafc05f | [
"Apache-2.0"
] | 7 | 2019-08-14T21:46:56.000Z | 2021-03-23T18:09:21.000Z | defmodule GRPC.Transport.HTTP2Test do
use ExUnit.Case, async: true
alias GRPC.Channel
alias GRPC.Transport.HTTP2
@channel %Channel{scheme: "http", host: "grpc.io"}
alias GRPC.Client.Stream
defp assert_header({key, _v} = pair, headers) do
assert pair == Enum.find(headers, nil, fn {k, _v} -> if k == key... | 35.333333 | 99 | 0.620977 |
b25557e969b15328f9171a1dffabf907ce972b89 | 317 | ex | Elixir | web/views/api_tag_view.ex | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/web/views/api_tag_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/web/views/api_tag_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.ApiTagView do
use Artour.Web, :view
@doc """
Renders individual tag instance to json
key has to be api_tag, not tag, because that is how
render_many and render work by default
"""
def render("tag.json", %{api_tag: tag}) do
%{
id: tag.id,
name: tag.name
}
end
end
| 19.8125 | 53 | 0.643533 |
b2556637838a50397b5d1e1049e1dfdbc51e1395 | 3,712 | exs | Elixir | mix.exs | geometerio/playwright-elixir | 39a87744ffa2534dd68ac2d4eaa83ebe88ed612b | [
"MIT"
] | 30 | 2021-06-01T16:59:35.000Z | 2022-03-25T16:56:19.000Z | mix.exs | geometerio/playwright-elixir | 39a87744ffa2534dd68ac2d4eaa83ebe88ed612b | [
"MIT"
] | 35 | 2021-06-10T17:05:31.000Z | 2022-02-11T22:30:36.000Z | mix.exs | geometerio/playwright-elixir | 39a87744ffa2534dd68ac2d4eaa83ebe88ed612b | [
"MIT"
] | 4 | 2021-08-13T20:38:18.000Z | 2022-01-31T04:32:35.000Z | defmodule Playwright.MixProject do
use Mix.Project
@source_url "https://github.com/geometerio/playwright-elixir"
def project do
[
app: :playwright,
consolidate_protocols: Mix.env() != :dev,
deps: deps(),
description:
"Playwright is an Elixir library to automate Chromium, Fire... | 27.496296 | 190 | 0.559267 |
b25567ceb102365df1972137d23e60bef3db5708 | 1,546 | ex | Elixir | lib/miotwo_web.ex | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | 2 | 2018-08-24T18:09:34.000Z | 2020-07-20T01:42:37.000Z | lib/miotwo_web.ex | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | null | null | null | lib/miotwo_web.ex | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | 1 | 2018-05-16T22:57:57.000Z | 2018-05-16T22:57:57.000Z | defmodule MiotwoWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use MiotwoWeb, :controller
use MiotwoWeb, :view
The definitions below will be executed for every view,
controller, etc... | 23.424242 | 69 | 0.688228 |
b2559b10e00f92d120b7689e59dbea69ec10023e | 732 | ex | Elixir | lib/rasa_api/model/model_request.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/model_request.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/model_request.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"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 RasaApi.Model.ModelRequest do
@moduledoc """
"""
alias RasaApi.Model.EndpointConfig
@derive [Poison.Encoder]
defstruct [
:model_file... | 22.181818 | 91 | 0.711749 |
b255af8a15a1e4372756053d774919aa5e43f6d3 | 982 | exs | Elixir | spec/domain/accounts/services/create_user_settings_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/domain/accounts/services/create_user_settings_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/domain/accounts/services/create_user_settings_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Accounts.Services.CreateUserSettingsSpec do
use ESpec.Phoenix, async: true
use ESpec.Phoenix.Extend, :domain
alias Squadster.Accounts.UserSettings
alias Squadster.Accounts.Services.CreateUserSettings
describe "#call/1" do
let :user, do: insert(:user)
subject CreateUserSettings.c... | 23.95122 | 71 | 0.668024 |
b255d65f236344f69549e101653ed1a163b1c4f4 | 633 | ex | Elixir | lib/slax_web/router.ex | revelrylabs/slax | dd631c6a3c36512f79c4bf2cc78671ad8aecae5f | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | lib/slax_web/router.ex | revelrylabs/slax | dd631c6a3c36512f79c4bf2cc78671ad8aecae5f | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | lib/slax_web/router.ex | revelrylabs/slax | dd631c6a3c36512f79c4bf2cc78671ad8aecae5f | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | defmodule SlaxWeb.Router do
use SlaxWeb, :router
scope "/", SlaxWeb do
post("/auth", AuthController, :start)
get("/auth/github_redirect", AuthController, :github_redirect)
get("/auth/github_callback", AuthController, :github_callback)
post("/issue", IssueController, :start)
post("/comment", Co... | 33.315789 | 66 | 0.693523 |
b256844040637eb794e3ccd22841c5f5026eaecf | 1,588 | exs | Elixir | test/lib/code_corps/stripe_service/adapters/stripe_connect_charge_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/stripe_service/adapters/stripe_connect_charge_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/stripe_service/adapters/stripe_connect_charge_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.StripeService.Adapters.StripeConnectChargeTest do
use CodeCorps.ModelCase
alias CodeCorps.StripeService.Adapters.StripeConnectChargeAdapter
describe "to_params/2" do
test "adds customer and user id if those records exist" do
# load a predefined fixture to use for adapter testing
... | 32.408163 | 82 | 0.685768 |
b256875544210a30c2d7090708f7f7ef82f31e2e | 2,477 | exs | Elixir | test/petal/button_test.exs | MortadaAK/petal_components | 69980b96afec232715071d75d3a394ac6daf75b3 | [
"MIT"
] | null | null | null | test/petal/button_test.exs | MortadaAK/petal_components | 69980b96afec232715071d75d3a394ac6daf75b3 | [
"MIT"
] | null | null | null | test/petal/button_test.exs | MortadaAK/petal_components | 69980b96afec232715071d75d3a394ac6daf75b3 | [
"MIT"
] | null | null | null | defmodule PetalComponents.ButtonTest do
use ComponentCase
import PetalComponents.Button
test "button" do
assigns = %{}
html =
rendered_to_string(~H"""
<.button label="Press me" phx-click="click_event" />
""")
assert html =~ "Press me"
end
test "a" do
assigns = %{}
ht... | 20.641667 | 91 | 0.567218 |
b25698aa42d3225c062c62b57a5e496cc76c1e05 | 1,533 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_add_fulfillment_places_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_add_fulfillment_places_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_add_fulfillment_places_response.ex | 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... | 32.617021 | 165 | 0.781474 |
b256ae612b08d79da392fa936358e62d99d1aa08 | 1,858 | exs | Elixir | year_2019/test/day_12/moon_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/test/day_12/moon_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/test/day_12/moon_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day12.MoonTest do
use ExUnit.Case
test "it steps through movement" do
moons = [
Day12.Moon.at(-1, 0, 2),
Day12.Moon.at(2, -10, -7),
Day12.Moon.at(4, -8, 8),
Day12.Moon.at(3, 5, -1)
] |> Day12.Moon.step(2) |> Enum.sort
assert moons == [%Day12.Moon{position: Day12.Vector... | 43.209302 | 130 | 0.596878 |
b256b6f744138721a78edd73ca417fa5ef434161 | 266 | ex | Elixir | priv/gear_template/web/asset.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | priv/gear_template/web/asset.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | priv/gear_template/web/asset.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | defmodule <%= gear_name_camel %>.Asset do
#
# If your gear uses CDN to serve static assets in `priv/static/`, uncomment the following line.
# For more detailed information please refer to documentation of `Antikythera.Asset`.
#
# use Antikythera.Asset
end
| 33.25 | 97 | 0.736842 |
b256c49116dd7728aaf83d5e4d70dcb0b2557ebc | 635 | ex | Elixir | lib/opencov/services/parser/highlight.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/opencov/services/parser/highlight.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/opencov/services/parser/highlight.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Parser.Highlight do
require Logger
alias Librecov.File, as: InternalFile
def parse(%InternalFile{source: string, coverage_lines: coverage_lines}) do
with {:ok, styled_code} <- NodeJS.call("#{File.cwd!()}/code.js", [string]) do
lines_with_style = styled_code |> String.split("\n")
... | 33.421053 | 145 | 0.691339 |
b256e1d2ad42743d2388225a5fe16da1bd237a1a | 1,795 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/campaign_creative_association.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/campaign_creative_association.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/campaign_creative_association.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.9 | 200 | 0.744847 |
b256f195d2f01d25b9a108fdfdc083181934788c | 61 | ex | Elixir | lib/console_web/views/page_view.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | lib/console_web/views/page_view.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | lib/console_web/views/page_view.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule ConsoleWeb.PageView do
use ConsoleWeb, :view
end
| 15.25 | 32 | 0.803279 |
b256faf0899b774b0d584b8340abe8bc3142803c | 829 | exs | Elixir | mix.exs | angelo-moreira/scrivener | f4bcfc54fd0e364cc5dca70b0637df94a769f9cd | [
"MIT"
] | null | null | null | mix.exs | angelo-moreira/scrivener | f4bcfc54fd0e364cc5dca70b0637df94a769f9cd | [
"MIT"
] | null | null | null | mix.exs | angelo-moreira/scrivener | f4bcfc54fd0e364cc5dca70b0637df94a769f9cd | [
"MIT"
] | null | null | null | defmodule Scrivener.Mixfile do
use Mix.Project
def project do
[
app: :scrivener,
version: "2.7.0",
elixir: "~> 1.2",
package: package(),
description: "Pagination for the Elixir ecosystem",
deps: deps(),
docs: [
main: "readme",
extras: [
"READM... | 17.270833 | 69 | 0.481303 |
b256fc7d1b5d90b3a15bbbe165fb534835334205 | 580 | exs | Elixir | config/config.exs | gumi/connex | 0552f25a878348a43a073df9d4e66e3dad2e5df5 | [
"Apache-2.0"
] | 2 | 2020-02-07T17:49:52.000Z | 2021-05-31T14:35:34.000Z | config/config.exs | gumi/connex | 0552f25a878348a43a073df9d4e66e3dad2e5df5 | [
"Apache-2.0"
] | 2 | 2019-02-26T05:09:20.000Z | 2019-07-11T09:46:25.000Z | config/config.exs | gumi/connex | 0552f25a878348a43a073df9d4e66e3dad2e5df5 | [
"Apache-2.0"
] | null | null | null | import Config
config :connex, Connex.PoolTest,
pools: [
pool1: {[], [key: "value1"]},
pool2: {[], [key: "value2"]},
pool3: {[], [key: "value3"]}
],
shards: [shard1: [:pool1, :pool2, :pool3], shard2: [:pool2, :pool3]]
config :connex, Connex.Redis,
pools: [
pool1: {[], [host: {:system, "CONNEX_R... | 30.526316 | 71 | 0.574138 |
b2570e37d3a90b33f866344265a636a0817e1206 | 5,559 | ex | Elixir | lib/amqp/gen/consumer.ex | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | null | null | null | lib/amqp/gen/consumer.ex | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | null | null | null | lib/amqp/gen/consumer.ex | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | null | null | null | defmodule Amqpx.Gen.Consumer do
@moduledoc """
Generic implementation of amqp consumer
"""
require Logger
use GenServer
import Amqpx.Core
alias Amqpx.{Basic, Channel}
defstruct [
:channel,
:handler_module,
:handler_state,
prefetch_count: 50,
backoff: 5_000
]
@type state() :: %_... | 26.725962 | 88 | 0.609102 |
b257130474b1c9fca08ac4009b21aec644e7d162 | 3,194 | exs | Elixir | test/xdr/transactions/operations/path_payment_strict_receive_result_code_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | null | null | null | test/xdr/transactions/operations/path_payment_strict_receive_result_code_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | null | null | null | test/xdr/transactions/operations/path_payment_strict_receive_result_code_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | null | null | null | defmodule StellarBase.XDR.Operations.PathPaymentStrictReceiveResultCodeTest do
use ExUnit.Case
alias StellarBase.XDR.Operations.PathPaymentStrictReceiveResultCode
@codes [
:PATH_PAYMENT_STRICT_RECEIVE_SUCCESS,
:PATH_PAYMENT_STRICT_RECEIVE_MALFORMED,
:PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED,
:PAT... | 33.621053 | 97 | 0.664371 |
b2571c0aad7e7aaeb7c949c1784731e700815d42 | 6,038 | exs | Elixir | test/support/test_cache.exs | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | 1 | 2021-03-04T12:47:10.000Z | 2021-03-04T12:47:10.000Z | test/support/test_cache.exs | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | null | null | null | test/support/test_cache.exs | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | null | null | null | defmodule Nebulex.Version.Timestamp do
@behaviour Nebulex.Object.Version
alias Nebulex.Object
@impl true
def generate(nil), do: now()
def generate(%Object{}), do: now()
defp now, do: DateTime.to_unix(DateTime.utc_now(), :nanoseconds)
end
defmodule Nebulex.TestCache do
:ok = Application.put_env(:nebule... | 21.335689 | 88 | 0.595727 |
b25725320a908901277137ecb2f547fc7d405c08 | 4,272 | ex | Elixir | lib/maxwell/middleware/logger.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 130 | 2016-03-24T02:48:26.000Z | 2021-04-10T19:29:06.000Z | lib/maxwell/middleware/logger.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 78 | 2016-06-28T06:33:01.000Z | 2021-12-15T01:37:54.000Z | lib/maxwell/middleware/logger.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 24 | 2016-04-09T16:44:19.000Z | 2020-12-01T10:57:22.000Z | defmodule Maxwell.Middleware.Logger do
@moduledoc """
Log the request and response by Logger, default log_level is :info.
Setting log_level in 3 ways:
### Log everything by log_level
middleware Maxwell.Middleware.Logger, log_level: :debug
### Log request by specific status code.
middleware Max... | 27.921569 | 116 | 0.632257 |
b2577fd777d514d86ea56e0177b39f929976ce26 | 753 | ex | Elixir | apps/omg_status/lib/omg_status/metric/tracer.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_status/lib/omg_status/metric/tracer.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_status/lib/omg_status/metric/tracer.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 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 writi... | 34.227273 | 74 | 0.759628 |
b257864f032335c29508e20813336521032078db | 222 | ex | Elixir | lib/erlef/rosters.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef/rosters.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef/rosters.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Rosters do
@moduledoc """
Erlef.Members
"""
def get("board") do
Application.get_env(:erlef, :board_members)
end
def get("sponsors") do
Application.get_env(:erlef, :sponsors)
end
end
| 15.857143 | 47 | 0.671171 |
b257a43ac6743096749cb27deb959bd661274eb6 | 824 | exs | Elixir | test/rocketpay_web/views/users_view_test.exs | Ives-Gomes/Rocketpay | a9d8f1dc448319031bfb799645aebe33ac124b52 | [
"MIT"
] | 2 | 2021-02-25T17:05:30.000Z | 2021-02-26T15:52:33.000Z | test/rocketpay_web/views/users_view_test.exs | Ives-Gomes/Rocketpay | a9d8f1dc448319031bfb799645aebe33ac124b52 | [
"MIT"
] | null | null | null | test/rocketpay_web/views/users_view_test.exs | Ives-Gomes/Rocketpay | a9d8f1dc448319031bfb799645aebe33ac124b52 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersViewTest do
use RocketpayWeb.ConnCase, async: true
import Phoenix.View
alias Rocketpay.{Account, User}
alias RocketpayWeb.UsersView
test "renders create.json" do
params = %{
name: "Ives",
password: "123456",
nickname: "IvesM",
email: "ives.gomes@email... | 21.128205 | 73 | 0.587379 |
b257c5742f64ce657ffc12062e020947b387ff38 | 162,183 | ex | Elixir | lib/codes/codes_s22.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s22.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s22.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_S22 do
alias IcdCode.ICDCode
def _S22000A do
%ICDCode{full_code: "S22000A",
category_code: "S22",
short_code: "000A",
full_name: "Wedge compression fracture of unspecified thoracic vertebra, initial encounter for closed fracture",
short_name... | 50.793298 | 142 | 0.688845 |
b257cd45bbb20e6d0ee5465aa0e41d46f3836dce | 8,376 | ex | Elixir | lib/mix/tasks/phx.gen.context.ex | sjBao/phoenix | e0be71759d83c15f6d1a852d9872d6de1ea0db24 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.context.ex | sjBao/phoenix | e0be71759d83c15f6d1a852d9872d6de1ea0db24 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.context.ex | sjBao/phoenix | e0be71759d83c15f6d1a852d9872d6de1ea0db24 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Context do
@shortdoc "Generates a context with functions around an Ecto schema"
@moduledoc """
Generates a context with functions around an Ecto schema.
mix phx.gen.context Accounts User users name:string age:integer
The first argument is the context module followed by the s... | 31.847909 | 132 | 0.706304 |
b257d4cc23db7160ee186ec9043a1d5ca87f5654 | 521 | ex | Elixir | lib/parser/schedule_inform.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/parser/schedule_inform.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/parser/schedule_inform.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Parser.Messages.ScheduleInform do
use CWMP.Protocol.ParserHelpers
alias CWMP.Protocol.Messages.ScheduleInform
def initial_acc do
%ScheduleInform{}
end
def end_element(state, ['DelaySeconds']) do
ds=integerValue(state.last_text,fn(x) -> x >= 0 end)
update_acc(state, fn ac... | 26.05 | 87 | 0.727447 |
b2582c98d95349809c7c9510a8acdbb142271d8f | 1,557 | exs | Elixir | mix.exs | kianmeng/elixir-request-validator | 751b3d837267c18292f953fe1b03891f4ee8a163 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/elixir-request-validator | 751b3d837267c18292f953fe1b03891f4ee8a163 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/elixir-request-validator | 751b3d837267c18292f953fe1b03891f4ee8a163 | [
"MIT"
] | null | null | null | defmodule RequestValidator.MixProject do
use Mix.Project
def project do
[
app: :request_validator,
version: "0.1.1",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
packag... | 23.590909 | 73 | 0.579961 |
b2585f1b7d152c8fb9d142a78fc53b7e84554f1c | 368 | ex | Elixir | lib/yatzy/scoring/threes.ex | idabmat/yatzy | fb1cc1f13670a19f3541a3b1df15e9897ffcfae3 | [
"MIT"
] | 3 | 2020-04-23T14:38:39.000Z | 2020-05-03T17:20:32.000Z | lib/yatzy/scoring/threes.ex | idabmat/yatzy | fb1cc1f13670a19f3541a3b1df15e9897ffcfae3 | [
"MIT"
] | null | null | null | lib/yatzy/scoring/threes.ex | idabmat/yatzy | fb1cc1f13670a19f3541a3b1df15e9897ffcfae3 | [
"MIT"
] | null | null | null | defmodule Yatzy.Scoring.Threes do
@moduledoc """
Threes: The sum of all dice showing the number 3.
"""
alias Yatzy.Roll
defstruct roll: %Roll{},
name: "Threes",
description: "The sum of all dice showind the number 3."
defimpl Yatzy.Scoring.Score do
def execute(%{roll: roll}), ... | 23 | 69 | 0.646739 |
b25871004054a0d064810e2c15a81c6f23510291 | 600 | ex | Elixir | lib/telemetry_metrics/counter.ex | artemk/telemetry_metrics | 48adb2bdda283a8e06023c1ade78fa634be437f3 | [
"Apache-2.0"
] | null | null | null | lib/telemetry_metrics/counter.ex | artemk/telemetry_metrics | 48adb2bdda283a8e06023c1ade78fa634be437f3 | [
"Apache-2.0"
] | null | null | null | lib/telemetry_metrics/counter.ex | artemk/telemetry_metrics | 48adb2bdda283a8e06023c1ade78fa634be437f3 | [
"Apache-2.0"
] | null | null | null | defmodule Telemetry.Metrics.Counter do
@moduledoc """
Defines a specification of counter metric.
"""
alias Telemetry.Metrics
defstruct [:name, :event_name, :measurement, :tags, :tag_values, :description, :unit]
@type t :: %__MODULE__{
name: Metrics.normalized_metric_name(),
event_name... | 30 | 87 | 0.645 |
b25895d9e011b6730bb816900108c162a820200a | 14,550 | ex | Elixir | deps/phoenix/lib/phoenix/endpoint/supervisor.ex | thaisfiori/blog_da_tha | e860e64e5251dae03b95fdf1e339ec0a3d789a29 | [
"Apache-2.0"
] | 1 | 2021-04-19T23:18:06.000Z | 2021-04-19T23:18:06.000Z | deps/phoenix/lib/phoenix/endpoint/supervisor.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/phoenix/lib/phoenix/endpoint/supervisor.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.Supervisor do
# This module contains the logic used by most functions in Phoenix.Endpoint
# as well the supervisor for sockets, adapters, watchers, etc.
@moduledoc false
require Logger
use Supervisor
alias Phoenix.Endpoint.{CowboyAdapter, Cowboy2Adapter}
@doc """
Starts the ... | 29.275654 | 117 | 0.659794 |
b2589aeafc04a0ac82c03299c18299d9aac7bf94 | 740 | exs | Elixir | apps/extract_decode_gtfs/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/extract_decode_gtfs/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/extract_decode_gtfs/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule ExtractGtfs.MixProject do
use Mix.Project
def project do
[
app: :extract_decode_gtfs,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_perm... | 21.142857 | 47 | 0.521622 |
b258dfdcf82b99e68fce39a7af12e9c0d4dd8497 | 15,306 | ex | Elixir | clients/run/lib/google_api/run/v1/api/api.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/api/api.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/api/api.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.365217 | 196 | 0.624069 |
b258ecefb6a74d84439b013298779d53caadd900 | 4,841 | ex | Elixir | lib/infinity_one_web/controllers/coherence/password_controller.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | lib/infinity_one_web/controllers/coherence/password_controller.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | lib/infinity_one_web/controllers/coherence/password_controller.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule InfinityOneWeb.Coherence.PasswordController do
@moduledoc """
Handle password recovery actions.
Controller that handles the recover password feature.
Actions:
* new - render the recover password form
* create - verify user's email address, generate a token, and send the email
* edit - render ... | 33.157534 | 90 | 0.653377 |
b259045de915a9ee88138869f54b9af3def4ca2e | 157 | ex | Elixir | lib/hl7/2.5.1/datatypes/wvs.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/wvs.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/wvs.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.DataTypes.Wvs do
@moduledoc false
use HL7.DataType,
fields: [
source_one_name: nil,
source_two_name: nil
]
end
| 15.7 | 37 | 0.66879 |
b2591efae9a6c4e77b7b1edb29ee91e550f0bddf | 1,479 | exs | Elixir | test/pow_assent/config_test.exs | dclausen/pow_assent | 63dfe3bd55e6b0a6e30bc95daefb9074f7f73691 | [
"MIT"
] | null | null | null | test/pow_assent/config_test.exs | dclausen/pow_assent | 63dfe3bd55e6b0a6e30bc95daefb9074f7f73691 | [
"MIT"
] | null | null | null | test/pow_assent/config_test.exs | dclausen/pow_assent | 63dfe3bd55e6b0a6e30bc95daefb9074f7f73691 | [
"MIT"
] | null | null | null | defmodule PowAssent.ConfigTest do
use ExUnit.Case
doctest PowAssent.Config
alias PowAssent.Config
test "get/3" do
Application.put_env(:pow_assent, :key, 1)
assert Config.get([], :key) == 1
Application.put_env(:test, :pow_assent, key: 2)
assert Config.get([otp_app: :test], :key) == 2
end
... | 35.214286 | 133 | 0.705206 |
b2594343c068fc6ae440a5281dfd9365660137b0 | 836 | ex | Elixir | web/controllers/comment_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/comment_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/comment_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.CommentController do
use CodeCorps.Web, :controller
use JaResource
import CodeCorps.Helpers.Query, only: [id_filter: 2]
alias CodeCorps.Comment
plug :load_and_authorize_changeset, model: Comment, only: [:create]
plug :load_and_authorize_resource, model: Comment, only: [:update]
plug... | 29.857143 | 77 | 0.73445 |
b25943eb93839f969bcc257a79fea39802f2ef97 | 654 | ex | Elixir | lib/amad/similarity_lookup.ex | junna9a1/elixir-amazon-product-advertising-client | 13d470e0236a33dcefcbd0232ebaa74661b3bf65 | [
"MIT"
] | null | null | null | lib/amad/similarity_lookup.ex | junna9a1/elixir-amazon-product-advertising-client | 13d470e0236a33dcefcbd0232ebaa74661b3bf65 | [
"MIT"
] | null | null | null | lib/amad/similarity_lookup.ex | junna9a1/elixir-amazon-product-advertising-client | 13d470e0236a33dcefcbd0232ebaa74661b3bf65 | [
"MIT"
] | null | null | null | defmodule Amad.SimilarityLookup do
@moduledoc """
The [SimilarityLookup](http://docs.aws.amazon.com/AWSECommerceService/latest/DG/SimilarityLookup.html) operation
"""
alias __MODULE__
alias Amad.Config
defstruct "Condition": "All",
"ItemId": nil, # Required ASIN - Can include up to ten comma-separ... | 26.16 | 114 | 0.692661 |
b25954dce0a47dfa66c25219ababfd1dae2324dc | 128 | exs | Elixir | config/test.exs | adherr/darkskyx | f1bc895893c97c858228f8e658ccc8b485661b31 | [
"Apache-2.0"
] | null | null | null | config/test.exs | adherr/darkskyx | f1bc895893c97c858228f8e658ccc8b485661b31 | [
"Apache-2.0"
] | null | null | null | config/test.exs | adherr/darkskyx | f1bc895893c97c858228f8e658ccc8b485661b31 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :darkskyx, api_key: System.get_env("DARKSKY_API_KEY"),
defaults: [
units: "us",
lang: "en"
]
| 16 | 61 | 0.640625 |
b259556f79cf5deb2c29884dc0831a57ed66f5dd | 35,050 | ex | Elixir | lib/elixir/lib/file.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | 1 | 2017-10-29T16:37:08.000Z | 2017-10-29T16:37:08.000Z | lib/elixir/lib/file.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/file.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | defrecord File.Stat, Record.extract(:file_info, from_lib: "kernel/include/file.hrl"), moduledoc: """
A record responsible to hold file information. Its fields are:
* `size` - Size of file in bytes.
* `type` - `:device`, `:directory`, `:regular`, `:other`. The type of the file.
* `access` - `:read`, `:write`, `:read_wr... | 28.519121 | 120 | 0.62388 |
b2597be6de4617c57f91e180777a441967a12c6a | 1,437 | exs | Elixir | mix.exs | mzabka/exgencode | 5976eb2c0f9bfdc18984d1ec91a4ee7e60edd2f1 | [
"MIT"
] | null | null | null | mix.exs | mzabka/exgencode | 5976eb2c0f9bfdc18984d1ec91a4ee7e60edd2f1 | [
"MIT"
] | null | null | null | mix.exs | mzabka/exgencode | 5976eb2c0f9bfdc18984d1ec91a4ee7e60edd2f1 | [
"MIT"
] | null | null | null | defmodule Exgencode.Mixfile do
use Mix.Project
def project do
[
app: :exgencode,
version: "2.3.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: [extras: ["README.md"], main: "readme"],
description: description()
... | 24.775862 | 145 | 0.570633 |
b2598b6fb05796f4693f1db8c6c169ebe99ce3c3 | 726 | ex | Elixir | lib/autox/views/changeset_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | lib/autox/views/changeset_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | lib/autox/views/changeset_view.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Autox.ChangesetView do
def render("error.json", %{changeset: changeset}) do
# When encoded, the changeset returns its errors
# as a JSON object. So we just pass it forward.
%{errors: changeset.errors |> jsonapi}
end
def jsonapi(errors) do
errors
|> Enum.map(&format_each/1)
end
... | 23.419355 | 69 | 0.629477 |
b2599bcbf00d592891d71496c6c4c1bbf0a8064a | 3,688 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/api/page_views.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/api/page_views.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/blogger/lib/google_api/blogger/v3/api/page_views.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... | 42.390805 | 196 | 0.642896 |
b259a1eb1c092dc801db61ed037029d8741f4fab | 3,595 | exs | Elixir | test/stone_challenge_test.exs | ViniciusLinharesAO/stone_challenge | 57790d6c5a273b785f29a5c3b6bb4e886a52b395 | [
"MIT"
] | null | null | null | test/stone_challenge_test.exs | ViniciusLinharesAO/stone_challenge | 57790d6c5a273b785f29a5c3b6bb4e886a52b395 | [
"MIT"
] | null | null | null | test/stone_challenge_test.exs | ViniciusLinharesAO/stone_challenge | 57790d6c5a273b785f29a5c3b6bb4e886a52b395 | [
"MIT"
] | 1 | 2021-04-29T20:54:13.000Z | 2021-04-29T20:54:13.000Z | defmodule StoneChallengeTest do
use ExUnit.Case
doctest StoneChallenge
@files_path "./test/support_lists/"
# empty lists paths
@empty_items_lists_path @files_path<>"empty_items_lists.json"
@empty_email_lists_path @files_path<>"empty_email_lists.json"
# lists with many things paths
@many_items_lists_p... | 43.313253 | 145 | 0.71516 |
b259bcdb33771489fc113e4b86f840eca19a61a9 | 571 | exs | Elixir | apps/ok/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/ok/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/ok/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule Ok.MixProject do
use Mix.Project
def project do
[
app: :ok,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,... | 18.419355 | 64 | 0.495622 |
b259be8fc26d908c3b6b032f652c68063b7582fe | 465 | ex | Elixir | lib/team_budget/members/data/member.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | lib/team_budget/members/data/member.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | lib/team_budget/members/data/member.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | defmodule TeamBudget.Members.Data.Member do
use Ecto.Schema
import Ecto.Changeset
alias TeamBudget.Accounts.Data.User
alias TeamBudget.Teams.Data.Team
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "members" do
belongs_to :user, User
belongs_to :team, Team
... | 20.217391 | 52 | 0.703226 |
b259c86a6c56df9a54fb50713ff1adce6da5d70b | 611 | ex | Elixir | lib/spender_web/schema/user_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 2 | 2018-02-27T06:29:59.000Z | 2018-06-09T16:53:49.000Z | lib/spender_web/schema/user_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 94 | 2018-02-22T06:03:19.000Z | 2018-06-28T14:30:31.000Z | lib/spender_web/schema/user_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 1 | 2020-03-04T19:41:06.000Z | 2020-03-04T19:41:06.000Z | defmodule SpenderWeb.Schema.UserTypes do
use Absinthe.Schema.Notation
@desc "A system user"
object :user do
field :avatar, :string
field :first_name, :string
field :last_name, :string
field :email, :string
field :provider, :string
field :token, :string
field :id, :id
... | 24.44 | 40 | 0.621931 |
b259dba34bcb8b02aa074c2823766365a7457edc | 1,671 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/property.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/property.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/property.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 30.944444 | 77 | 0.714542 |
b259f62182eab108a6759b7d6b50cebea7a4fe81 | 2,023 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/saved_ad_style.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/saved_ad_style.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/saved_ad_style.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... | 36.125 | 202 | 0.701434 |
b25a15f2f620fe6a0b565eb24f2dbff1b62ae77e | 8,243 | ex | Elixir | lib/wobserver/util/process.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 984 | 2017-02-06T17:13:48.000Z | 2022-03-18T22:46:55.000Z | lib/wobserver/util/process.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 52 | 2017-02-13T16:12:10.000Z | 2021-04-08T22:31:28.000Z | lib/wobserver/util/process.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 74 | 2017-02-13T15:23:49.000Z | 2021-07-30T07:43:27.000Z | defmodule Wobserver.Util.Process do
@moduledoc ~S"""
Process and pid handling.
"""
import Wobserver.Util.Helper, only: [string_to_module: 1, format_function: 1]
@process_summary [
:registered_name,
:initial_call,
:memory,
:reductions,
:current_function,
:message_queue_len,
:dicti... | 25.840125 | 82 | 0.613733 |
b25a415c789eb45dcfb61667960628cfae6db0f5 | 105 | ex | Elixir | lib/home_ui/repo.ex | khozyainov/home-ui | 78eaa16bec6e10eb2e4a40dd5a7f56836f2e8c82 | [
"MIT"
] | null | null | null | lib/home_ui/repo.ex | khozyainov/home-ui | 78eaa16bec6e10eb2e4a40dd5a7f56836f2e8c82 | [
"MIT"
] | null | null | null | lib/home_ui/repo.ex | khozyainov/home-ui | 78eaa16bec6e10eb2e4a40dd5a7f56836f2e8c82 | [
"MIT"
] | null | null | null | defmodule HomeUi.Repo do
use Ecto.Repo,
otp_app: :home_ui,
adapter: Ecto.Adapters.Postgres
end
| 17.5 | 35 | 0.72381 |
b25a534bc8bca9858b03076c9b89a003dd08a1af | 258 | ex | Elixir | lib/membrane/element/callback_context/pad_removed.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 515 | 2018-06-18T11:09:44.000Z | 2020-07-31T07:54:35.000Z | lib/membrane/element/callback_context/pad_removed.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 120 | 2018-06-07T08:34:06.000Z | 2020-07-30T07:09:50.000Z | lib/membrane/element/callback_context/pad_removed.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 13 | 2018-07-27T11:58:15.000Z | 2020-05-06T15:19:55.000Z | defmodule Membrane.Element.CallbackContext.PadRemoved do
@moduledoc """
Structure representing a context that is passed to the element
when a dynamic pad is removed
"""
use Membrane.Core.Element.CallbackContext,
direction: :input | :output
end
| 28.666667 | 64 | 0.763566 |
b25a60912065ff2f3958976de899e3ca6919ebfd | 2,474 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/config_map_key_selector.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/config_map_key_selector.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/config_map_key_selector.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.432432 | 185 | 0.714228 |
b25a7137e14ec9025e7c1135c5320febfb2e0fcd | 3,175 | ex | Elixir | lib/parcel.ex | fdorothy/parcel | 67772a2a048edad0b66012a413734132df4e82ee | [
"BSD-3-Clause"
] | 1 | 2020-05-13T01:54:27.000Z | 2020-05-13T01:54:27.000Z | lib/parcel.ex | fdorothy/parcel | 67772a2a048edad0b66012a413734132df4e82ee | [
"BSD-3-Clause"
] | null | null | null | lib/parcel.ex | fdorothy/parcel | 67772a2a048edad0b66012a413734132df4e82ee | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016, Fredric Dorothy All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... | 36.494253 | 87 | 0.712756 |
b25a9070dab26269c97aeae3001196a6e2b1435e | 26 | ex | Elixir | lib/tpuserve.ex | seanmor5/tpuserve | 0a0a5fb74457b3893d87cb52bf98a660f8d1190d | [
"Apache-2.0"
] | null | null | null | lib/tpuserve.ex | seanmor5/tpuserve | 0a0a5fb74457b3893d87cb52bf98a660f8d1190d | [
"Apache-2.0"
] | null | null | null | lib/tpuserve.ex | seanmor5/tpuserve | 0a0a5fb74457b3893d87cb52bf98a660f8d1190d | [
"Apache-2.0"
] | null | null | null | defmodule TPUServe do
end
| 8.666667 | 21 | 0.846154 |
b25ac2bb54b190817ff88224fa7efba926c270f2 | 1,044 | ex | Elixir | lib/elixir_blog/application.ex | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | lib/elixir_blog/application.ex | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | lib/elixir_blog/application.ex | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | defmodule ElixirBlog.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.625 | 88 | 0.719349 |
b25ad92d8ab67d9792782b8fe121ffa5c0c3f92b | 93 | exs | Elixir | test/stemmer/step1a_test.exs | fredwu/stemmer | 750514636c399350e7ee7fbef5b731ea1cf0335c | [
"MIT"
] | 149 | 2016-07-18T14:21:16.000Z | 2022-02-24T01:23:17.000Z | test/stemmer/step1a_test.exs | fredwu/stemmer | 750514636c399350e7ee7fbef5b731ea1cf0335c | [
"MIT"
] | 1 | 2022-01-09T03:18:14.000Z | 2022-01-09T13:16:43.000Z | test/stemmer/step1a_test.exs | fredwu/stemmer | 750514636c399350e7ee7fbef5b731ea1cf0335c | [
"MIT"
] | 8 | 2016-07-19T09:23:31.000Z | 2022-01-08T14:29:33.000Z | defmodule Stemmer.Step1aTest do
use ExUnit.Case, async: true
doctest Stemmer.Step1a
end
| 15.5 | 31 | 0.784946 |
b25b84af7c862a7d5eaec343c5080edded0a3b3e | 827 | ex | Elixir | lib/ex_bitmex/rest/instrument/active_intervals.ex | eduardoscottini/ex_bitmex | f8528bd635922e1777a5b01ea4941d625da7396e | [
"MIT"
] | 6 | 2019-02-13T04:05:19.000Z | 2020-12-31T07:40:09.000Z | lib/ex_bitmex/rest/instrument/active_intervals.ex | eduardoscottini/ex_bitmex | f8528bd635922e1777a5b01ea4941d625da7396e | [
"MIT"
] | 28 | 2021-03-29T06:46:42.000Z | 2022-03-28T11:03:38.000Z | lib/ex_bitmex/rest/instrument/active_intervals.ex | yurikoval/ex_bitmex | d9492789fb319fbdf78d90a99f7c0e40c95c1885 | [
"MIT"
] | 4 | 2019-05-03T21:27:10.000Z | 2021-01-12T09:26:34.000Z | defmodule ExBitmex.Rest.Instrument.ActiveIntervals do
alias ExBitmex.Rest
@type params :: map
@type active_interval :: ExBitmex.ActiveInterval.t()
@type rate_limit :: ExBitmex.RateLimit.t()
@type error_reason :: term
@path "/instrument/activeIntervals"
@spec get :: {:ok, [active_interval], rate_limit} ... | 25.060606 | 94 | 0.679565 |
b25b9a5ca82fe1f9f0fdd4cb392c2afd74cbb33c | 7,567 | ex | Elixir | lib/phoenix_live_view/helpers.ex | SherSpock/phoenix_live_view | 56a777cb995486ec2286c620223c07c7d7961b45 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | SherSpock/phoenix_live_view | 56a777cb995486ec2286c620223c07c7d7961b45 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | SherSpock/phoenix_live_view | 56a777cb995486ec2286c620223c07c7d7961b45 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Helpers do
@moduledoc """
A collection of helpers to be imported into your views.
"""
alias Phoenix.LiveView.{Component, Socket, Static}
@doc """
Generates a live link for HTML5 pushState based navigation without page reloads.
## Options
* `:to` - the required path to li... | 32.476395 | 101 | 0.658121 |
b25bb22e85950447ee19dcf105a73969131ce920 | 694 | ex | Elixir | test/support/telemetry_test_helpers.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/telemetry_test_helpers.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/telemetry_test_helpers.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElement.TelemetryTestHelpers do
@moduledoc false
import ExUnit.Callbacks, only: [on_exit: 1]
def attach_telemetry(prefix) when is_list(prefix) do
unique_name = :"PID#{System.unique_integer()}"
Process.register(self(), unique_name)
for suffix <- [:start, :stop, :exception] do
:te... | 24.785714 | 68 | 0.618156 |
b25bd7791dd454939f8f79388d9ae018371c3625 | 1,109 | ex | Elixir | app/lib/devops_fitness_web/channels/user_socket.ex | ohr486/devops.fitness | 848f36c5076627f12b5a5453a47081aad126d045 | [
"MIT"
] | null | null | null | app/lib/devops_fitness_web/channels/user_socket.ex | ohr486/devops.fitness | 848f36c5076627f12b5a5453a47081aad126d045 | [
"MIT"
] | null | null | null | app/lib/devops_fitness_web/channels/user_socket.ex | ohr486/devops.fitness | 848f36c5076627f12b5a5453a47081aad126d045 | [
"MIT"
] | null | null | null | defmodule DevopsFitnessWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", DevopsFitnessWeb.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 fo... | 30.805556 | 88 | 0.699729 |
b25bdc0aef641b342e7b81986b1864fa662e0ec9 | 362 | ex | Elixir | exercises/practice/resistor-color/.meta/example.ex | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/practice/resistor-color/.meta/example.ex | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 6 | 2021-05-12T06:06:14.000Z | 2022-03-21T16:08:49.000Z | exercises/practice/resistor-color/.meta/example.ex | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | null | null | null | defmodule ResistorColor do
@moduledoc false
@colors [
"black",
"brown",
"red",
"orange",
"yellow",
"green",
"blue",
"violet",
"grey",
"white"
]
@spec colors() :: list(String.t())
def colors, do: @colors
@spec code(String.t()) :: integer()
def code(color), do: Enu... | 15.73913 | 63 | 0.541436 |
b25bf06435bdfc24f68bf6e3ede3fc62bd0a3f4a | 2,021 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_import_jobs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_import_jobs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_import_jobs_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... | 38.132075 | 194 | 0.730332 |
b25bf266b7e9136aebf34615e9ae9797408b16f5 | 7,253 | exs | Elixir | test/machinery_test.exs | patatoid/machinery | ecf2112e137de096231666c24e63284134d048a6 | [
"Apache-2.0"
] | null | null | null | test/machinery_test.exs | patatoid/machinery | ecf2112e137de096231666c24e63284134d048a6 | [
"Apache-2.0"
] | null | null | null | test/machinery_test.exs | patatoid/machinery | ecf2112e137de096231666c24e63284134d048a6 | [
"Apache-2.0"
] | null | null | null | defmodule MachineryTest do
use ExUnit.Case, async: false
doctest Machinery
alias MachineryTest.Helper
alias MachineryTest.TestDefaultFieldStruct
alias MachineryTest.TestStruct
alias MachineryTest.TestStateMachine
alias MachineryTest.TestStateMachineWithGuard
alias MachineryTest.TestStateMachineDefaultF... | 42.168605 | 151 | 0.744382 |
b25bf463bc2c4eb5d5ad623a5d9d10459dbdc7e8 | 1,741 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/set_iam_policy_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/set_iam_policy_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/set_iam_policy_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.82 | 158 | 0.740379 |
b25bf7295894b8a4876de1618b85157c808cf4f9 | 665 | ex | Elixir | lib/elixero/core_api/models/common/payment_terms/terms.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | lib/elixero/core_api/models/common/payment_terms/terms.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | lib/elixero/core_api/models/common/payment_terms/terms.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.CoreApi.Models.Common.PaymentTerms.Terms do
use Ecto.Schema
import Ecto.Changeset
@derive {Poison.Encoder, except: [:__meta__, :id]}
schema "terms" do
field :Day, :integer
field :Type, :string
embeds_many :ValidationErrors, EliXero.CoreApi.Models.Comm... | 31.666667 | 75 | 0.639098 |
b25c08ff3cb2ffa90fffc1d4ff51fe8743f2ffa6 | 454 | ex | Elixir | lib/ada/source/weather/report.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 7 | 2019-05-11T12:14:48.000Z | 2021-04-02T18:42:51.000Z | lib/ada/source/weather/report.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 3 | 2019-05-11T08:01:47.000Z | 2019-05-14T12:06:50.000Z | lib/ada/source/weather/report.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 1 | 2021-01-06T14:57:32.000Z | 2021-01-06T14:57:32.000Z | defmodule Ada.Source.Weather.Report do
@moduledoc false
alias Ada.Source.Weather.DataPoint
defstruct summary: "",
icon: "",
location: {0, 0},
data_points: [],
currently: %DataPoint{}
@type t :: %__MODULE__{
summary: String.t(),
icon: String.... | 22.7 | 39 | 0.522026 |
b25c422fb2b290f43d8171f81fdc048aab40f8d8 | 169 | exs | Elixir | elixir/elixir-sips/samples/twitter_playground/config/prod.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/twitter_playground/config/prod.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/twitter_playground/config/prod.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | use Mix.Config
config :twitter_playground, TwitterPlayground.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: "example.com"]
import_config "prod.secret.exs"
| 21.125 | 55 | 0.721893 |
b25c63a063fc7bd8801b0bdd879f062780a26544 | 1,886 | ex | Elixir | lib/find_my_personal_web/controllers/teacher_controller.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | lib/find_my_personal_web/controllers/teacher_controller.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | 11 | 2022-01-12T02:39:42.000Z | 2022-02-09T02:17:04.000Z | lib/find_my_personal_web/controllers/teacher_controller.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | defmodule FindMyPersonalWeb.TeacherController do
use FindMyPersonalWeb, :controller
alias FindMyPersonal.Teachers
alias FindMyPersonal.Teachers.Teacher
def index(conn, _params) do
teachers = Teachers.list_teacher()
render(conn, "index.html", teachers: teachers)
end
def search(conn, %{"filter" => ... | 28.149254 | 73 | 0.651644 |
b25c66fa02b2c96516dea56551a0b7e28657e490 | 6,170 | ex | Elixir | lib/mix/lib/mix/tasks/deps.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps do
use Mix.Task
import Mix.Dep, only: [load_on_environment: 1, format_dep: 1, format_status: 1, check_lock: 1]
@shortdoc "Lists dependencies and their status"
@moduledoc ~S"""
Lists all dependencies and their status.
Dependencies must be specified in the `mix.exs` file in one of... | 37.393939 | 105 | 0.686872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.