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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d5021d062f68de1a67f7f19b8ded19a30d6e512 | 3,873 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/product_purchase.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/product_purchase.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/product_purchase.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... | 44.517241 | 221 | 0.687064 |
2d503ef69b34ef336c3c456d168a68ed0c2d22b3 | 5,121 | ex | Elixir | lib/date.ex | agix/momento | cd42abe9322f27e65278b65fb35d223baa317423 | [
"MIT"
] | 37 | 2016-07-01T22:35:41.000Z | 2020-10-02T23:41:45.000Z | lib/date.ex | agix/momento | cd42abe9322f27e65278b65fb35d223baa317423 | [
"MIT"
] | 5 | 2016-07-02T14:15:57.000Z | 2016-07-24T09:46:22.000Z | lib/date.ex | agix/momento | cd42abe9322f27e65278b65fb35d223baa317423 | [
"MIT"
] | 5 | 2016-07-02T03:46:52.000Z | 2019-04-23T14:15:54.000Z | defmodule Momento.Date do
import Momento.Guards
@moduledoc """
This module holds all the various `date/0`, 'date/1' and `date!/1` methods.
"""
@doc """
Get a `DateTime` struct representng now.
## Examples
iex> Momento.date
{:ok,
%DateTime{calendar: Calendar.ISO, day: 1, hour: 22, mi... | 37.108696 | 116 | 0.593439 |
2d5051e0b28745cbd3aabde8fc5dbd5ccafba70e | 676 | ex | Elixir | apps/buzzcms/lib/buzzcms/schema/product.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms/lib/buzzcms/schema/product.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms/lib/buzzcms/schema/product.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule Buzzcms.Schema.Product do
use Ecto.Schema
import Ecto.Changeset
@required_fields [:entry_id, :available_at, :discontinue_at]
@optional_fields []
schema "product" do
belongs_to :entry, Buzzcms.Schema.Entry
has_one :master_variant, Buzzcms.Schema.Variant
has_many :variants, Buzzcms.Schem... | 28.166667 | 62 | 0.736686 |
2d5086f2a8f2a321d201e6b45d6ecb737b6302e1 | 1,249 | ex | Elixir | lib/drempel_backoff.ex | zuckschwerdt/drempel | 06e073ba509b374d196174e6e5e2bc4f788ed22a | [
"MIT"
] | null | null | null | lib/drempel_backoff.ex | zuckschwerdt/drempel | 06e073ba509b374d196174e6e5e2bc4f788ed22a | [
"MIT"
] | null | null | null | lib/drempel_backoff.ex | zuckschwerdt/drempel | 06e073ba509b374d196174e6e5e2bc4f788ed22a | [
"MIT"
] | null | null | null | defmodule Drempel.Backoff do
@moduledoc """
Backoff functions for Drempel
"""
@doc """
Backoff function based on exponential growth.
"""
def exponential_backoff(x) when x > 14,
do: exponential_backoff(14)
def exponential_backoff(x),
do: (:erlang.bsl(1, x) - 1) * 1_000
@doc """
Backoff func... | 31.225 | 48 | 0.589271 |
2d50bd9d74d766f8a1a2321b6f32bc4327a571ee | 839 | ex | Elixir | lib/blog/post.ex | joshnuss/blog | e05eef5f6a9f6c42cdfbbda7ee9d826b82391e37 | [
"MIT"
] | null | null | null | lib/blog/post.ex | joshnuss/blog | e05eef5f6a9f6c42cdfbbda7ee9d826b82391e37 | [
"MIT"
] | null | null | null | lib/blog/post.ex | joshnuss/blog | e05eef5f6a9f6c42cdfbbda7ee9d826b82391e37 | [
"MIT"
] | null | null | null | defmodule Blog.Post do
use Ecto.Schema
import Ecto.Changeset
schema "posts" do
field(:title, :string)
field(:permalink, :string)
field(:subtitle, :string, default: "")
field(:tags, {:array, :string}, default: [])
field(:content, :string, default: "")
field(:content_html, :string, default:... | 27.064516 | 98 | 0.649583 |
2d50d7ad3130fd0593892670beada24ec3d1bfb4 | 585 | exs | Elixir | exercises/concept/language-list/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/language-list/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 1,938 | 2019-12-12T08:07:10.000Z | 2021-01-29T12:56:13.000Z | exercises/concept/language-list/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 239 | 2019-12-12T14:09:08.000Z | 2022-03-18T00:04:07.000Z | defmodule LanguageList.MixProject do
use Mix.Project
def project do
[
app: :language_list,
version: "0.1.0",
# elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.172414 | 87 | 0.582906 |
2d510c11f23a13ccb3860bc9f4d78fa034c632e7 | 1,682 | exs | Elixir | data/dev.secret.exs | argrath/pleroma-vagrant | edeb6777dd1d775fbf4f1ac40e5d485905cf0066 | [
"CC0-1.0"
] | 2 | 2018-04-20T13:16:26.000Z | 2019-02-16T21:53:23.000Z | data/dev.secret.exs | argrath/pleroma-vagrant | edeb6777dd1d775fbf4f1ac40e5d485905cf0066 | [
"CC0-1.0"
] | null | null | null | data/dev.secret.exs | argrath/pleroma-vagrant | edeb6777dd1d775fbf4f1ac40e5d485905cf0066 | [
"CC0-1.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :pleroma, Pleroma.Web.Endpoint,
http: [port: 4... | 29.508772 | 170 | 0.725922 |
2d513aaa933baf05f14651e2cb1fa17f62c40951 | 4,004 | exs | Elixir | test/guardian/plug/ensure_authenticated_test.exs | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | test/guardian/plug/ensure_authenticated_test.exs | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | test/guardian/plug/ensure_authenticated_test.exs | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | defmodule Guardian.Plug.EnsureAuthenticatedTest do
@moduledoc false
use ExUnit.Case, async: true
use Plug.Test
import ExUnit.CaptureLog
import Guardian.TestHelper
alias Guardian.Plug.EnsureAuthenticated
defmodule TestHandler do
@moduledoc false
def unauthenticated(conn, _) do
conn
|... | 27.238095 | 80 | 0.665834 |
2d517ac532925f4651cde08d79fccec676477f01 | 62 | ex | Elixir | lib/solarex.ex | vhyza/solarex | 2f277e2f0e6572a1319dfa102533a24a6e9c2891 | [
"MIT"
] | 3 | 2019-05-05T11:08:10.000Z | 2019-05-06T11:24:11.000Z | lib/solarex.ex | vhyza/solarex | 2f277e2f0e6572a1319dfa102533a24a6e9c2891 | [
"MIT"
] | null | null | null | lib/solarex.ex | vhyza/solarex | 2f277e2f0e6572a1319dfa102533a24a6e9c2891 | [
"MIT"
] | null | null | null | defmodule Solarex do
@moduledoc File.read!("README.md")
end
| 15.5 | 36 | 0.741935 |
2d517bac8533fd478de4b6a97538d5dffcbc6f03 | 494 | ex | Elixir | lib/elixir_bot.ex | clszzyh/elixir-bot | 1351635f1a95fb80204ddf6ed472352a7d991152 | [
"MIT"
] | 4 | 2021-01-09T11:41:07.000Z | 2022-02-15T16:33:05.000Z | lib/elixir_bot.ex | clszzyh/elixir-bot | 1351635f1a95fb80204ddf6ed472352a7d991152 | [
"MIT"
] | 120 | 2021-01-04T04:24:56.000Z | 2022-03-31T02:06:14.000Z | lib/elixir_bot.ex | clszzyh/elixir-bot | 1351635f1a95fb80204ddf6ed472352a7d991152 | [
"MIT"
] | null | null | null | defmodule ElixirBot do
@external_resource readme = Path.join([__DIR__, "../README.md"])
@moduledoc readme
|> File.read!()
|> String.split("<!-- MDOC -->")
|> Enum.slice(1..-2)
|> Enum.join("\n")
@version Mix.Project.config()[:version]
def version, do: @versi... | 22.454545 | 66 | 0.576923 |
2d517cd64ddcf28cc4dab473816a67ff6b3d05de | 1,557 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/duplicate_filter_view_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/duplicate_filter_view_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/duplicate_filter_view_response.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 ... | 33.12766 | 111 | 0.748876 |
2d51afa1e50bb1fd83fcee32b6799ab4e1b5291e | 140 | ex | Elixir | lib/appsignal/transaction_registry.ex | anronin/appsignal-elixir | 0c62aee7e34b8647315538882de745ae861b6621 | [
"MIT"
] | null | null | null | lib/appsignal/transaction_registry.ex | anronin/appsignal-elixir | 0c62aee7e34b8647315538882de745ae861b6621 | [
"MIT"
] | null | null | null | lib/appsignal/transaction_registry.ex | anronin/appsignal-elixir | 0c62aee7e34b8647315538882de745ae861b6621 | [
"MIT"
] | null | null | null | defmodule Appsignal.TransactionRegistry do
@doc false
@deprecated "Use Appsignal.Span instead."
def lookup(pid) do
nil
end
end
| 15.555556 | 43 | 0.735714 |
2d51c2a1c550fbc35f22a70d84666c5fdbf6318b | 812 | exs | Elixir | mix.exs | erickgnavar/alfred | 0f6c8b4e644596a4d7c719018957c25f9dca032d | [
"MIT"
] | null | null | null | mix.exs | erickgnavar/alfred | 0f6c8b4e644596a4d7c719018957c25f9dca032d | [
"MIT"
] | null | null | null | mix.exs | erickgnavar/alfred | 0f6c8b4e644596a4d7c719018957c25f9dca032d | [
"MIT"
] | null | null | null | defmodule Alfred.Mixfile do
use Mix.Project
def project do
[app: :alfred,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more... | 21.945946 | 77 | 0.597291 |
2d51d57e55eee76e2ec4b17a4858a8898148342c | 3,727 | ex | Elixir | test/support/test_consumers.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | null | null | null | test/support/test_consumers.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | null | null | null | test/support/test_consumers.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | null | null | null | defmodule TestConsumer do
defmodule Default do
@moduledoc false
@behaviour GenRMQ.Consumer
def init() do
[
queue: "gen_rmq_in_queue",
exchange: "gen_rmq_in_exchange",
routing_key: "#",
prefetch_count: "10",
uri: "amqp://guest:guest@localhost:5672",
qu... | 22.865031 | 77 | 0.626509 |
2d525d507d01feb47db3e8ecbe4c67f803a6c362 | 3,311 | ex | Elixir | lib/dealer_rater/scraper.ex | andrhevictor/review_scraper | 7628b814d7d35b185bd9bfbe83400c68486bd19a | [
"MIT"
] | null | null | null | lib/dealer_rater/scraper.ex | andrhevictor/review_scraper | 7628b814d7d35b185bd9bfbe83400c68486bd19a | [
"MIT"
] | null | null | null | lib/dealer_rater/scraper.ex | andrhevictor/review_scraper | 7628b814d7d35b185bd9bfbe83400c68486bd19a | [
"MIT"
] | null | null | null | defmodule ReviewScraper.DealerRater.Scraper do
@moduledoc """
Module responsible for parsing the HTML document.
"""
alias ReviewScraper.DealerRater.Review
@doc """
Find the reviews in an HTML document and parse into the `ReviewScraper.DealerRater.Review` struct.
"""
@spec get_reviews(String.t()) :: [R... | 28.791304 | 100 | 0.681667 |
2d52688b4cdeb0d464f6f4f67ea04d8f47cc302c | 1,651 | ex | Elixir | lib/free_fall_web/live/game_live.ex | lamboap/free_fall | 43b4b592ae9f8b1f7ec6c479609339e8945d049e | [
"MIT"
] | 1 | 2021-11-17T21:16:30.000Z | 2021-11-17T21:16:30.000Z | lib/free_fall_web/live/game_live.ex | lamboap/free_fall | 43b4b592ae9f8b1f7ec6c479609339e8945d049e | [
"MIT"
] | null | null | null | lib/free_fall_web/live/game_live.ex | lamboap/free_fall | 43b4b592ae9f8b1f7ec6c479609339e8945d049e | [
"MIT"
] | 9 | 2021-07-29T23:36:54.000Z | 2021-09-30T22:47:39.000Z | defmodule FreeFallWeb.GameLive do
# use FreeFallWeb, :live_view
use Surface.LiveView
alias FreeFall.Game.{Tetro, Board}
alias FreeFall.Game
alias FreeFallWeb.Live.Components.{Title, Button, Shape}
@impl true
def render(assigns) do
~F"""
<Title message={@title} id="title" />
<pre>
{ inspec... | 30.574074 | 115 | 0.660206 |
2d528aff274087ce204863a32b0983d2d5e0fbd4 | 5,647 | ex | Elixir | lib/cizen/dispatcher/node.ex | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | lib/cizen/dispatcher/node.ex | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | lib/cizen/dispatcher/node.ex | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | defmodule Cizen.Dispatcher.Node do
@moduledoc false
use GenServer
alias Cizen.Event
alias Cizen.Pattern
alias Cizen.Pattern.Code
def initialize do
:ets.new(__MODULE__, [
:set,
:public,
:named_table,
{:read_concurrency, true},
{:write_concurrency, true}
])
end
def... | 25.668182 | 95 | 0.61059 |
2d529bbff54ee4b05163343ba432069748e7b06e | 145 | ex | Elixir | lib/hl7/2.5.1/datatypes/nr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/nr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/nr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.DataTypes.Nr do
@moduledoc false
use HL7.DataType,
fields: [
low_value: nil,
high_value: nil
]
end
| 14.5 | 36 | 0.641379 |
2d52c846cb8a8175b5d1083948970d0824764a06 | 571 | ex | Elixir | lib/edgedb/protocol/types/header.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | lib/edgedb/protocol/types/header.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | lib/edgedb/protocol/types/header.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.Protocol.Types.Header do
use EdgeDB.Protocol.Type
alias EdgeDB.Protocol.Datatypes
deftype(
name: :header,
fields: [
code: Datatypes.UInt16.t(),
value: Datatypes.Bytes.t()
]
)
@impl EdgeDB.Protocol.Type
def encode_type(header(code: code, value: value)) do
[Data... | 22.84 | 66 | 0.67951 |
2d52cc7d543f7a4f36df006a7101f05813530fd0 | 191 | exs | Elixir | apps/web/test/web_web/controllers/page_controller_test.exs | bitwalker/distillery-umbrella-test | 8ef95eba16f769eacf7a636cabc6dcc7b3d9f7e7 | [
"Apache-2.0"
] | 31 | 2016-11-14T20:44:37.000Z | 2021-12-06T09:27:17.000Z | apps/web/test/web_web/controllers/page_controller_test.exs | bitwalker/distillery-umbrella-test | 8ef95eba16f769eacf7a636cabc6dcc7b3d9f7e7 | [
"Apache-2.0"
] | 8 | 2016-11-01T17:59:34.000Z | 2021-05-07T15:52:26.000Z | apps/web/test/web_web/controllers/page_controller_test.exs | bitwalker/distillery-umbrella-test | 8ef95eba16f769eacf7a636cabc6dcc7b3d9f7e7 | [
"Apache-2.0"
] | 11 | 2016-11-01T21:24:13.000Z | 2020-01-24T22:34:52.000Z | defmodule WebWeb.PageControllerTest do
use WebWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.222222 | 60 | 0.670157 |
2d52cee2332c043dd067ffc43d9cb88798a5c600 | 1,161 | ex | Elixir | lib/llp_web/channels/user_socket.ex | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | 2 | 2019-01-02T11:02:59.000Z | 2019-04-15T10:07:40.000Z | lib/llp_web/channels/user_socket.ex | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | null | null | null | lib/llp_web/channels/user_socket.ex | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | null | null | null | defmodule LlpWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", LlpWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authentic... | 30.552632 | 83 | 0.700258 |
2d52d2365bb1404c003623c1be41525d389da2ce | 151 | exs | Elixir | test/test_helper.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | test/test_helper.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | null | null | null | test/test_helper.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Rockelivery.Repo, :manual)
Mox.defmock(Rockelivery.ViaCep.ClientMock, for: Rockelivery.ViaCep.Behavior)
| 30.2 | 76 | 0.81457 |
2d5309a6ef149176f4db05ab101ab4882dfc1fb5 | 1,868 | exs | Elixir | mix.exs | laodc/ex_rated | 30d1c2cf62913eade12a146b23882bf38766890a | [
"Apache-2.0"
] | null | null | null | mix.exs | laodc/ex_rated | 30d1c2cf62913eade12a146b23882bf38766890a | [
"Apache-2.0"
] | null | null | null | mix.exs | laodc/ex_rated | 30d1c2cf62913eade12a146b23882bf38766890a | [
"Apache-2.0"
] | null | null | null | defmodule ExRated.Mixfile do
use Mix.Project
def project do
[app: :ex_rated,
version: "1.3.2",
elixir: "~> 1.6",
description: description(),
package: package(),
deps: deps(),
name: "ExRated",
source_url: "https://github.com/grempe/ex_rated",
homepage_url: "https://github... | 29.1875 | 89 | 0.634904 |
2d5322c26d6c226abf8ed358afd6f73455ff6cca | 470 | ex | Elixir | lib/lotus/component.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 3 | 2021-09-20T10:34:15.000Z | 2021-09-20T16:23:07.000Z | lib/lotus/component.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | lib/lotus/component.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 1 | 2021-11-23T13:10:27.000Z | 2021-11-23T13:10:27.000Z | defmodule Lotus.Component do
@moduledoc """
Base component for Lotus, encapsulating mixins and prop modules
"""
defmacro __using__(_) do
quote do
use Lotus.SimpleComponent
use Lotus.Props.Text
use Lotus.Props.Utility
use Lotus.Props.Width
defp base_classes(assigns) do
... | 23.5 | 65 | 0.661702 |
2d5345c742cfca3c9476f0f46ad75b23ddb052ee | 2,999 | ex | Elixir | lib/ecto/query/select_builder.ex | MSch/ecto | 648f785b2202193921fe00d68bc334399f5edb93 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/select_builder.ex | MSch/ecto | 648f785b2202193921fe00d68bc334399f5edb93 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/select_builder.ex | MSch/ecto | 648f785b2202193921fe00d68bc334399f5edb93 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.SelectBuilder do
@moduledoc false
alias Ecto.Query.BuilderUtil
@doc """
Escapes a select.
It allows tuples, lists and variables at the top level or a
single `assoc(x, y)` expression.
## Examples
iex> escape({ 1, 2 }, [])
{ :{}, [], [ :{}, [], [1, 2] ] }
iex> es... | 27.018018 | 95 | 0.613538 |
2d539f1179119383723b9c1087097b8922fa2c93 | 4,108 | ex | Elixir | lib/meshx_node.ex | andrzej-mag/meshx_node | c91526e0d7059373aa02fa9e43888456157dbcfb | [
"Apache-2.0"
] | 2 | 2021-05-20T07:09:58.000Z | 2021-05-24T14:19:01.000Z | lib/meshx_node.ex | andrzej-mag/meshx_node | c91526e0d7059373aa02fa9e43888456157dbcfb | [
"Apache-2.0"
] | null | null | null | lib/meshx_node.ex | andrzej-mag/meshx_node | c91526e0d7059373aa02fa9e43888456157dbcfb | [
"Apache-2.0"
] | null | null | null | defmodule MeshxNode do
@readme File.read!("docs/README.md") |> String.split("<!-- MDOC !-->") |> Enum.fetch!(1)
@moduledoc """
#{@readme}
## Configuration options
* `:mesh_adapter` - Required. Specifies service mesh adapter module. Example: `mesh_adapter: MeshxConsul`.
* `:service_params` - 2-arity functi... | 49.493976 | 390 | 0.688413 |
2d53f5b906d2858359ebff5ef5de7c42d2ecb0ea | 62 | ex | Elixir | lib/tag_it/repo.ex | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | 2 | 2016-03-15T09:35:48.000Z | 2016-03-16T10:27:06.000Z | lib/tag_it/repo.ex | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | 7 | 2016-03-15T08:33:54.000Z | 2016-03-15T09:12:39.000Z | lib/tag_it/repo.ex | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | null | null | null | defmodule TagIt.Repo do
use Ecto.Repo, otp_app: :tag_it
end
| 15.5 | 33 | 0.758065 |
2d543cd22f9c71a57051876c9f7e5e3ec37cd51e | 312 | ex | Elixir | lib/console_web/views/api_key_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console_web/views/api_key_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console_web/views/api_key_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule ConsoleWeb.ApiKeyView do
use ConsoleWeb, :view
def render("show.json", %{api_key: api_key, key: key}) do
%{
id: api_key.id,
name: api_key.name,
role: api_key.role,
user_id: api_key.user_id,
organization_id: api_key.organization_id,
key: key
}
end
end
| 20.8 | 59 | 0.634615 |
2d545626bf8d65fa82def4937a76296af9cc3658 | 17,009 | ex | Elixir | lib/ecto/repo/preloader.ex | fuww/ecto | b0e9a145d180e387a040edd404d04bff2c9cb9ee | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/preloader.ex | fuww/ecto | b0e9a145d180e387a040edd404d04bff2c9cb9ee | [
"Apache-2.0"
] | 2 | 2020-04-23T00:19:07.000Z | 2020-04-23T00:24:25.000Z | lib/ecto/repo/preloader.ex | fuww/ecto | b0e9a145d180e387a040edd404d04bff2c9cb9ee | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo.Preloader do
# The module invoked by user defined repo_names
# for preload related functionality.
@moduledoc false
require Ecto.Query
@doc """
Transforms a result set based on query preloads, loading
the associations onto their parent schema.
"""
@spec query([list], Ecto.Repo.t, ... | 34.641548 | 115 | 0.616909 |
2d54583124d6ace452b360555d8bc7cb4916da79 | 4,961 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_set_account_info_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_set_account_info_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_set_account_info_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.689076 | 162 | 0.69099 |
2d547613dff4dd7b9ba441a785ef440094d1ce25 | 2,300 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/usage_export_location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/usage_export_location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/usage_export_location.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... | 46 | 415 | 0.75 |
2d547c5a3ee946f4e1d790cefe79f32745ada8eb | 169 | ex | Elixir | elixir/lib/homework_web/schemas/input/pagination.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/input/pagination.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/input/pagination.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Input.Pagination do
use Absinthe.Schema.Notation
input_object :pagination do
field(:limit, :integer)
field(:skip, :integer)
end
end
| 18.777778 | 41 | 0.739645 |
2d5489c5836429682e5135099f223c0b836a1393 | 1,826 | ex | Elixir | lib/utility_web/router.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | null | null | null | lib/utility_web/router.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | null | null | null | lib/utility_web/router.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | null | null | null | defmodule UtilityWeb.Router do
use UtilityWeb, :router
import Phoenix.LiveDashboard.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :put_root_layout, {UtilityWeb.LayoutView, :ro... | 24.346667 | 64 | 0.649507 |
2d549696593e6249b11736b8d2a37683dc12573a | 3,068 | exs | Elixir | test/xml_node_test.exs | jmn/elixir-feed-parser | 88ab8466036d8a9dc76e67444eb43e04bd6546ba | [
"MIT"
] | 51 | 2015-11-06T09:42:37.000Z | 2022-01-26T06:32:42.000Z | test/xml_node_test.exs | jmn/elixir-feed-parser | 88ab8466036d8a9dc76e67444eb43e04bd6546ba | [
"MIT"
] | 12 | 2015-11-06T16:11:42.000Z | 2021-02-19T07:03:09.000Z | test/xml_node_test.exs | jmn/elixir-feed-parser | 88ab8466036d8a9dc76e67444eb43e04bd6546ba | [
"MIT"
] | 16 | 2017-03-26T22:58:26.000Z | 2022-02-02T02:35:48.000Z | defmodule XmlNodeTest do
use ExUnit.Case
alias ElixirFeedParser.XmlNode
test "parsing an element with text" do
sample_xml = "<title>test title</title>"
{:ok, xml} = XmlNode.parse_string(sample_xml)
assert XmlNode.find(xml, "/title") |> XmlNode.text() == "test title"
end
test "parsing an element... | 29.5 | 93 | 0.614081 |
2d54b10312928ba1dab53e1dc2f436fbb239f86f | 527 | exs | Elixir | test/ex_limiter/storage/pruner_test.exs | Miserlou/ex_limiter | 31391989dfca30d2f86cba04c5510c386efacdf4 | [
"MIT"
] | 28 | 2018-08-06T16:08:27.000Z | 2022-03-01T16:54:10.000Z | test/ex_limiter/storage/pruner_test.exs | Miserlou/ex_limiter | 31391989dfca30d2f86cba04c5510c386efacdf4 | [
"MIT"
] | 3 | 2019-03-11T17:20:50.000Z | 2019-05-10T02:17:53.000Z | test/ex_limiter/storage/pruner_test.exs | Miserlou/ex_limiter | 31391989dfca30d2f86cba04c5510c386efacdf4 | [
"MIT"
] | 4 | 2019-04-18T00:06:05.000Z | 2021-12-01T18:30:05.000Z | defmodule ExLimiter.Storage.PG2Shard.PrunerTest do
use ExUnit.Case, async: false
alias ExLimiter.Storage.PG2Shard.Pruner
@table_name :pruner_test
describe "#remove" do
test "it will remove stale bucket entries" do
table = :ets.new(@table_name, [:set, :public, read_concurrency: true, write_concurrency... | 32.9375 | 101 | 0.694497 |
2d54d19b144bac5cf853e77dd5ee218e1943776a | 440 | exs | Elixir | test/models/domain_test.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 96 | 2016-02-26T20:20:33.000Z | 2020-10-02T16:21:00.000Z | test/models/domain_test.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 12 | 2016-02-27T16:23:55.000Z | 2017-07-04T13:46:00.000Z | test/models/domain_test.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 24 | 2016-03-10T23:55:33.000Z | 2019-06-07T18:32:34.000Z | defmodule Lyn.DomainTest do
use Lyn.ModelCase
alias Lyn.Domain
@valid_attrs %{name: "some content", site_id: 42, sort_order: 42}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Domain.changeset(%Domain{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with i... | 23.157895 | 67 | 0.718182 |
2d54dcad93e27693fc6483185dffaf84d7ecb9b8 | 2,352 | ex | Elixir | lib/live_view_test_web.ex | PJUllrich/LiveX_examples | 0de120cc99cefd304a5cf50d4822e2a9cdd96778 | [
"MIT"
] | 6 | 2019-09-03T17:19:07.000Z | 2020-05-02T08:26:26.000Z | lib/live_view_test_web.ex | PJUllrich/LiveX_example | 0de120cc99cefd304a5cf50d4822e2a9cdd96778 | [
"MIT"
] | 9 | 2020-07-17T17:11:17.000Z | 2021-07-19T15:47:09.000Z | lib/live_view_test_web.ex | PJUllrich/LiveX_example | 0de120cc99cefd304a5cf50d4822e2a9cdd96778 | [
"MIT"
] | 2 | 2019-09-03T17:19:08.000Z | 2019-10-02T20:37:46.000Z | defmodule LiveViewExampleWeb 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 LiveViewExampleWeb, :controller
use LiveViewExampleWeb, :view
The definitions below will be executed for ev... | 24.5 | 83 | 0.699405 |
2d55386affaef4ac71cfeba2e54924aa48fe1d2d | 6,048 | ex | Elixir | lib/swoosh/adapters/postmark.ex | mpran/swoosh | 712cac1b1ab6adebf2d9ba6eb764467b3d2e0aa1 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/postmark.ex | mpran/swoosh | 712cac1b1ab6adebf2d9ba6eb764467b3d2e0aa1 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/postmark.ex | mpran/swoosh | 712cac1b1ab6adebf2d9ba6eb764467b3d2e0aa1 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.Postmark do
@moduledoc ~S"""
An adapter that sends email using the Postmark API.
For reference: [Postmark API docs](http://developer.postmarkapp.com/developer-send-api.html)
## Example
# config/config.exs
config :sample, Sample.Mailer,
adapter: Swoosh.Adapters.Po... | 31.664921 | 97 | 0.656581 |
2d5548b590b314e091e2585bf5a9e189a96858fe | 1,677 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_create_test_return_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_create_test_return_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_create_test_return_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... | 33.54 | 196 | 0.737627 |
2d5550dd30b9d6b2d137f3215694b23626b61159 | 1,292 | ex | Elixir | lib/upstream/b2/upload/file.ex | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 5 | 2018-02-16T15:32:41.000Z | 2020-03-31T10:55:24.000Z | lib/upstream/b2/upload/file.ex | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 8 | 2017-07-12T04:27:31.000Z | 2017-12-26T06:30:47.000Z | lib/upstream/b2/upload/file.ex | upmaru/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 2 | 2018-02-16T15:32:45.000Z | 2018-03-04T12:11:57.000Z | defmodule Upstream.B2.Upload.File do
@moduledoc """
Upload Standard File
"""
@derive Jason.Encoder
defstruct [
:file_id,
:file_name,
:account_id,
:bucket_id,
:content_length,
:content_sha1,
:content_type,
:file_info,
:action,
:upload_timestamp
]
@type t :: %__MODU... | 23.071429 | 71 | 0.582043 |
2d555ac18cfe1d1e4224441dc1db1c3e5f0d3174 | 878 | ex | Elixir | clients/slides/lib/google_api/slides/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.518519 | 74 | 0.757403 |
2d557a0535bfc52e6c8cb94bd9c34beec94b5712 | 1,199 | exs | Elixir | config/config.exs | cameronp/exkismet | fb1c9dec828bd68bf62bb1e22c85a682349a6b07 | [
"MIT"
] | 1 | 2016-08-19T18:09:26.000Z | 2016-08-19T18:09:26.000Z | config/config.exs | tcitworld/exkismet | fb1c9dec828bd68bf62bb1e22c85a682349a6b07 | [
"MIT"
] | null | null | null | config/config.exs | tcitworld/exkismet | fb1c9dec828bd68bf62bb1e22c85a682349a6b07 | [
"MIT"
] | 2 | 2019-12-14T15:10:27.000Z | 2021-09-29T10:07:08.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.333333 | 78 | 0.749791 |
2d557f02f298fce284472bfb95a413d84a2d8a82 | 71 | ex | Elixir | lib/coderjobs_web/views/auth/reset_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 28 | 2017-11-20T02:01:17.000Z | 2021-05-08T16:52:58.000Z | lib/coderjobs_web/views/auth/reset_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 1 | 2018-12-05T06:07:36.000Z | 2018-12-09T17:33:28.000Z | lib/coderjobs_web/views/auth/reset_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 3 | 2017-12-21T03:29:39.000Z | 2019-08-11T02:56:08.000Z | defmodule CoderjobsWeb.Auth.ResetView do
use CoderjobsWeb, :view
end
| 17.75 | 40 | 0.816901 |
2d558befdb6e66f8e1b19ce9e7c3e9caf331edf9 | 651 | exs | Elixir | config/test.exs | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | config/test.exs | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | config/test.exs | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :tanks, Tanks.Repo,
username: "postgres",
password: "postgres",
database: "tanks_test#{System.get_env(... | 28.304348 | 64 | 0.745008 |
2d55d21725a9d20cf82d6d2a54d990767851a720 | 6,835 | exs | Elixir | test/extensions/reset_password/phoenix/controllers/reset_password_controller_test.exs | jordelver/pow | 60235189155c87efbb40238ce5008340d470e995 | [
"MIT"
] | null | null | null | test/extensions/reset_password/phoenix/controllers/reset_password_controller_test.exs | jordelver/pow | 60235189155c87efbb40238ce5008340d470e995 | [
"MIT"
] | null | null | null | test/extensions/reset_password/phoenix/controllers/reset_password_controller_test.exs | jordelver/pow | 60235189155c87efbb40238ce5008340d470e995 | [
"MIT"
] | null | null | null | defmodule PowResetPassword.Phoenix.ResetPasswordControllerTest do
use PowResetPassword.TestWeb.Phoenix.ConnCase
alias PowResetPassword.Store.ResetTokenCache
alias PowResetPassword.Test.Users.User
@user %User{id: 1}
@password "secret1234"
describe "new/2" do
test "shows", %{conn: conn} do
conn =... | 38.835227 | 164 | 0.672275 |
2d5630860c4de4adca319f34bc21146aa4146fe3 | 894 | exs | Elixir | test/test-umbrella/apps/two/mix.exs | Batou99/mix_docker | 746048b6942a2a52686ac0658aa66d25f106d82b | [
"MIT"
] | 2 | 2018-05-09T20:32:57.000Z | 2018-09-20T05:04:23.000Z | test/test-umbrella/apps/two/mix.exs | Batou99/mix_docker | 746048b6942a2a52686ac0658aa66d25f106d82b | [
"MIT"
] | null | null | null | test/test-umbrella/apps/two/mix.exs | Batou99/mix_docker | 746048b6942a2a52686ac0658aa66d25f106d82b | [
"MIT"
] | 2 | 2018-12-16T00:06:42.000Z | 2019-03-01T10:31:38.000Z | defmodule Two.Mixfile do
use Mix.Project
def project do
[app: :two,
version: "0.1.2",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_perman... | 21.804878 | 77 | 0.587248 |
2d567b206adccb7a92679f07eadaf0930134de51 | 57,572 | ex | Elixir | lib/elixir/lib/string.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [length: 1]
defmodule String do
@moduledoc ~S"""
A String in Elixir is a UTF-8 encoded binary.
## Codepoints and grapheme cluster
The functions in this module act according to the Unicode
Standard, version 10.0.0.
As per the standard, a codepoint is a single Unicode Character,
w... | 27.003752 | 100 | 0.640832 |
2d569b4d0cdcad420b50b987a9c757ff38654c2b | 20,734 | ex | Elixir | lib/money.ex | javierEd/money | a1f98a1404bf6c7618671afcf83aa53f336f4332 | [
"MIT"
] | null | null | null | lib/money.ex | javierEd/money | a1f98a1404bf6c7618671afcf83aa53f336f4332 | [
"MIT"
] | null | null | null | lib/money.ex | javierEd/money | a1f98a1404bf6c7618671afcf83aa53f336f4332 | [
"MIT"
] | null | null | null | defmodule Money do
import Kernel, except: [abs: 1]
@moduledoc """
Defines a `Money` struct along with convenience methods for working with currencies.
## Examples
iex> money = Money.new(500, :USD)
%Money{amount: 500, currency: :USD}
iex> money = Money.add(money, 550)
%Money{amount: 10... | 30.808321 | 120 | 0.641989 |
2d56a0a9d1320e26d1f93755466571cfaab3818a | 527 | exs | Elixir | test/functional/parser/whitespace_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/functional/parser/whitespace_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/functional/parser/whitespace_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | defmodule Parser.WhitespaceTest do
use ExUnit.Case
alias Earmark.Parser
alias Earmark.Block
test "Whitespace before and after code is ignored" do
{result, _, _} = Parser.parse(["",
" line 1",
" line 2",
"",
"",
"para"])
expected = [
%Block.Code{lnb: 2, attrs:... | 20.269231 | 55 | 0.559772 |
2d56a1d9b802b57b91b86bd3bd79ae675c47333e | 972 | exs | Elixir | apps/extended_api/config/config.exs | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 19 | 2019-09-17T18:14:36.000Z | 2021-12-06T07:29:27.000Z | apps/extended_api/config/config.exs | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 5 | 2019-09-30T04:57:14.000Z | 2020-11-10T15:41:03.000Z | apps/extended_api/config/config.exs | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 2 | 2019-09-17T19:03:16.000Z | 2021-03-01T01:04:31.000Z | # 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
# Configures the endpoint
config :extended_api, ... | 34.714286 | 86 | 0.776749 |
2d56a37415f60a82de034dc165d664beaf294a09 | 48 | exs | Elixir | priv/v02/ch13/pm3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 4 | 2019-04-21T05:46:19.000Z | 2021-09-13T01:56:33.000Z | priv/v02/ch13/pm3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 1 | 2020-09-24T00:13:40.000Z | 2020-09-24T00:13:40.000Z | priv/v02/ch13/pm3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 3 | 2019-10-26T01:41:53.000Z | 2020-09-21T01:13:02.000Z | x = [a: 1, b: 2]
[a: y, b: 2] = x
IO.inspect(y)
| 12 | 16 | 0.416667 |
2d56a4c2031e58dd716f2b73d55a8696fefc6ba4 | 1,591 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/add_note_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/add_note_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/add_note_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.145833 | 86 | 0.754243 |
2d56aa1357279f93a6bb597f71d6fc8881c28105 | 325 | exs | Elixir | test/lstm_test.exs | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | test/lstm_test.exs | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | test/lstm_test.exs | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | defmodule LSTMTest do
use ExUnit.Case
setup do
{:ok, [lstm: gen_lstm]}
end
def gen_lstm, do: LSTM.new(%{input_ids: [:x, :y], output_ids: [:a, :b, :c, :d]})
test "LSTM training", context do
IO.puts "Training LSTM"
NeuralNet.Tester.test_training(context.lstm, gen_lstm, 100, 10, 1.5, 2, 0.2)
end... | 21.666667 | 82 | 0.636923 |
2d56bbcaea2b78b2a08e6206d2761ad7599dfd1f | 290 | exs | Elixir | apps/data/test/grapevine_data/channels_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/data/test/grapevine_data/channels_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/data/test/grapevine_data/channels_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineData.ChannelsTest do
use Grapevine.DataCase
alias GrapevineData.Channels
describe "creating a channel" do
test "creates a new channel" do
{:ok, channel} = Channels.create(%{name: "grapevine"})
assert channel.name == "grapevine"
end
end
end
| 20.714286 | 60 | 0.7 |
2d56c5443daaaf99eceb2c6a7155f8d4e45b0f81 | 40 | ex | Elixir | testData/org/elixir_lang/formatting/indent_before_else_keyword.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/formatting/indent_before_else_keyword.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/formatting/indent_before_else_keyword.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | if eh? do
truthy()
else
falsy()
end
| 6.666667 | 10 | 0.6 |
2d56d07aeeb71188e3fa7de41413831112714f87 | 34,271 | ex | Elixir | lib/absinthe/subscription/registry.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/subscription/registry.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/subscription/registry.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Subscription.Registry do
# This is a clone of the Elixir 1.5 Registry, included here for use to support
# Elixir 1.4 Registry. The `unregister_match/3` function doesn't exist until
# Elixir 1.5, but is essential for unsubscribing.
alias __MODULE__
@moduledoc false
@keys [:unique, :dupl... | 32.858102 | 107 | 0.65589 |
2d5709397e6ba0ca7a2a2499333f98beb8aa42c2 | 1,736 | exs | Elixir | test/slack/web/documentation_test.exs | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 657 | 2015-01-05T21:56:30.000Z | 2022-03-28T12:56:47.000Z | test/slack/web/documentation_test.exs | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 214 | 2015-02-15T18:06:20.000Z | 2022-02-21T21:15:53.000Z | test/slack/web/documentation_test.exs | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 207 | 2015-02-26T23:24:36.000Z | 2022-02-27T21:53:57.000Z | defmodule Slack.Web.DocumentationTest do
use ExUnit.Case
alias Slack.Web.Documentation
test "it returns a proper keyword list" do
doc = %Documentation{required_params: [:channel, :text]}
argument_value_keyword_list = Documentation.arguments_with_values(doc)
assert argument_value_keyword_list === [te... | 31 | 97 | 0.640553 |
2d571320038a223312ab91fab0b3d8fa0c394204 | 6,299 | ex | Elixir | app/lib/noodl_web/live/messaging/chat.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl_web/live/messaging/chat.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl_web/live/messaging/chat.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.Live.Messaging.Chat do
@moduledoc """
Chat Component that is also a live view module.
"""
use NoodlWeb, :live_view
require Logger
alias Noodl.{Accounts, Events}
alias Noodl.Events.EventBan
alias Noodl.Events.Event.Session
alias NoodlWeb.{Endpoint, Presence}
@impl true
def mo... | 25.399194 | 99 | 0.589141 |
2d576c1f8364c9844213b680b65a5521c6854b20 | 2,182 | exs | Elixir | test/venue_test.exs | tommyp/Bees | 4d4ca98264fabf13a4b6a55e5ecd5142cd900594 | [
"MIT"
] | null | null | null | test/venue_test.exs | tommyp/Bees | 4d4ca98264fabf13a4b6a55e5ecd5142cd900594 | [
"MIT"
] | null | null | null | test/venue_test.exs | tommyp/Bees | 4d4ca98264fabf13a4b6a55e5ecd5142cd900594 | [
"MIT"
] | null | null | null | defmodule VenueTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
doctest Bees.Venue
defp client() do
%Bees.Client{
client_id: "CLIENT_ID",
client_secret: "CLIENT_SECRET",
access_token: "ACCESS_TOKEN"
}
end
setup_all do
Bees.Client.start
end
test "se... | 28.337662 | 101 | 0.567828 |
2d5786a40f0c9a28c6ec9da50242c217035e2596 | 1,111 | exs | Elixir | config/config.exs | jamesotron/ease.ex | 9f6dbe5affcdbbfe44e613e0f78e1ad55214e2f0 | [
"MIT"
] | 1 | 2017-02-21T23:44:32.000Z | 2017-02-21T23:44:32.000Z | config/config.exs | jamesotron/ease.ex | 9f6dbe5affcdbbfe44e613e0f78e1ad55214e2f0 | [
"MIT"
] | null | null | null | config/config.exs | jamesotron/ease.ex | 9f6dbe5affcdbbfe44e613e0f78e1ad55214e2f0 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.83871 | 73 | 0.749775 |
2d57adeffd0241b7551ff64ed0bfd9ec8369c2a3 | 35,228 | exs | Elixir | deps/ecto/integration_test/cases/repo.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/cases/repo.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/cases/repo.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.RepoTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true)
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.User
alias Ecto.Integr... | 36.168378 | 110 | 0.628648 |
2d57b068a6cf53e59a9606dc49c0cd0f19863d27 | 11,202 | ex | Elixir | lib/elixir/unicode/unicode.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/unicode/unicode.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 1 | 2021-07-01T17:58:37.000Z | 2021-07-01T19:05:37.000Z | lib/elixir/unicode/unicode.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | # How to update the Unicode files
#
# Unicode files can be found in https://www.unicode.org/Public/
#
# 1. Replace UnicodeData.txt by copying original
# 2. Replace PropList.txt by copying original
# 3. Replace SpecialCasing.txt by copying original and removing conditional mappings
# 4. Update String.Unicode.version/0 a... | 26.234192 | 97 | 0.609623 |
2d57c04028f82dca0128f37c18638f15f4f057c9 | 864 | ex | Elixir | lib/lang/gen_server.ex | sturmer/elixir_playground | 3b557fb89c24fc07b35705826434625b4522f22f | [
"MIT"
] | null | null | null | lib/lang/gen_server.ex | sturmer/elixir_playground | 3b557fb89c24fc07b35705826434625b4522f22f | [
"MIT"
] | null | null | null | lib/lang/gen_server.ex | sturmer/elixir_playground | 3b557fb89c24fc07b35705826434625b4522f22f | [
"MIT"
] | null | null | null | defmodule GenServerExample do
use GenServer
@initial_state %{name: __MODULE__, message: "sõnum"}
# Client API
def start_link(_opts) do
GenServer.start_link(__MODULE__, @initial_state, name: __MODULE__)
end
@impl true
def init(_init_arg) do
{:ok, @initial_state}
end
def state() do
GenSe... | 22.736842 | 71 | 0.674769 |
2d5808b319d2313a30fb0dda046e2b0c1c0e011e | 14,165 | ex | Elixir | lib/mix/tasks/hex.build.ex | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | 1 | 2019-04-29T12:35:49.000Z | 2019-04-29T12:35:49.000Z | lib/mix/tasks/hex.build.ex | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.build.ex | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.Build do
use Mix.Task
@shortdoc "Builds a new package version locally"
@moduledoc """
Builds a new local version of your package.
The package .tar file is created in the current directory, but is not pushed
to the repository. An app named `foo` at version `1.2.3` will be built as
... | 28.558468 | 114 | 0.624921 |
2d5819f51471699b73365e9a6c23e4df2fcd9279 | 3,130 | ex | Elixir | lib/brando/content/palette.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/content/palette.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/content/palette.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Content.Palette do
@moduledoc """
Blueprint for palettes
Palettes are used by container blocks via CSS variables to set a color scheme
"""
@type t :: %__MODULE__{}
use Brando.Blueprint,
application: "Brando",
domain: "Content",
schema: "Palette",
singular: "palette",
... | 24.645669 | 160 | 0.554313 |
2d582a52f8c9cb1a99a77bcd28780e338c8de6b2 | 293 | exs | Elixir | test/test_helper.exs | kianmeng/mogrify | 507c13b8eb41befc521cda0ecbfb51d73f412fb9 | [
"MIT"
] | null | null | null | test/test_helper.exs | kianmeng/mogrify | 507c13b8eb41befc521cda0ecbfb51d73f412fb9 | [
"MIT"
] | null | null | null | test/test_helper.exs | kianmeng/mogrify | 507c13b8eb41befc521cda0ecbfb51d73f412fb9 | [
"MIT"
] | null | null | null | import Mogrify.Detect
excluded = [:skip]
excluded =
if has_imagemagick?() do
excluded = if has_pango?(), do: excluded ++ [:pango], else: excluded
if has_plasma?(), do: excluded ++ [:plasma], else: excluded
else
[:skip, :pango, :plasma]
end
ExUnit.start(exclude: excluded)
| 20.928571 | 72 | 0.65529 |
2d584d0f4d0576163cd3cd095e3995e64cba0f5c | 386 | ex | Elixir | lib/Structs/Channels/dm_channel.ex | Dreae/alchemy | 6b142c4d2418ae5f388a307bf973e0491566d992 | [
"MIT"
] | null | null | null | lib/Structs/Channels/dm_channel.ex | Dreae/alchemy | 6b142c4d2418ae5f388a307bf973e0491566d992 | [
"MIT"
] | null | null | null | lib/Structs/Channels/dm_channel.ex | Dreae/alchemy | 6b142c4d2418ae5f388a307bf973e0491566d992 | [
"MIT"
] | null | null | null | defmodule Alchemy.Channel.DMChannel do
@moduledoc false
alias Alchemy.User
import Alchemy.Structs
@derive [Poison.Encoder]
defstruct [:id, :recipients, :last_message_id]
def from_map(map) do
map
|> field_map("recipients", &map_struct(&1, User))
|> to_struct(__MODULE__)
end
def to_map(chan... | 20.315789 | 53 | 0.699482 |
2d5862f26e558335d4c9a214ecc7ed3acdc0a51d | 1,612 | ex | Elixir | lib/flow/window/periodic.ex | koode/flow | 348966136976a3874ba2a452e95374318ab784a2 | [
"Apache-2.0"
] | 398 | 2020-01-21T16:28:14.000Z | 2022-03-29T11:51:21.000Z | lib/flow/window/periodic.ex | koode/flow | 348966136976a3874ba2a452e95374318ab784a2 | [
"Apache-2.0"
] | 21 | 2020-02-03T11:00:38.000Z | 2022-03-30T17:15:18.000Z | lib/flow/window/periodic.ex | koode/flow | 348966136976a3874ba2a452e95374318ab784a2 | [
"Apache-2.0"
] | 24 | 2020-03-08T17:35:32.000Z | 2022-03-22T17:54:20.000Z | defmodule Flow.Window.Periodic do
@moduledoc false
@enforce_keys [:duration]
defstruct [:duration, :trigger, periodically: []]
def materialize(%{duration: duration}, reducer_acc, reducer_fun, reducer_trigger, _options) do
ref = make_ref()
acc = fn ->
timer = send_after(ref, duration)
{0, ... | 26.42623 | 96 | 0.568859 |
2d58711aed86030510b8b86bbce6078ea2398f22 | 1,172 | ex | Elixir | lib/dqs/customer.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 6 | 2021-03-17T13:38:27.000Z | 2021-05-09T04:01:08.000Z | lib/dqs/customer.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 12 | 2021-03-21T14:44:11.000Z | 2021-07-31T09:35:00.000Z | lib/dqs/customer.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 3 | 2021-04-11T11:08:59.000Z | 2021-11-02T15:36:04.000Z | defmodule Dqs.Consumer do
use Nostrum.Consumer
alias Dqs.Command
alias Nostrum.Api
@prefix Application.get_env(:dqs, :prefix)
@question_channel_id Application.get_env(:dqs, :board_channel_id)
def start_link do
Consumer.start_link(__MODULE__)
end
def handle_event({:MESSAGE_CREATE, %{author: %{bot:... | 28.585366 | 115 | 0.687713 |
2d587b23568b3c6e7f97a878be9d2078af8e37e9 | 2,081 | ex | Elixir | lib/credo/code/parameters.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/code/parameters.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/code/parameters.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.Code.Parameters do
@moduledoc """
This module provides helper functions to analyse the parameters taken by a
function.
"""
@def_ops [:def, :defp, :defmacro]
@doc "Returns the parameter count for the given function's AST"
def count(nil), do: 0
for op <- @def_ops do
def count({unquot... | 27.025974 | 96 | 0.645363 |
2d589ef50be6eae0c452c5163cc02b4045f14c5b | 372 | ex | Elixir | lib/ash_policy_authorizer/check/attribute.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | lib/ash_policy_authorizer/check/attribute.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | lib/ash_policy_authorizer/check/attribute.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | defmodule AshPolicyAuthorizer.Check.Attribute do
@moduledoc "This check is true when a field on the record matches a specific filter"
use AshPolicyAuthorizer.FilterCheck
@impl true
def describe(opts) do
"record.#{opts[:attribute]} matches #{inspect(opts[:filter])}"
end
@impl true
def filter(opts) d... | 23.25 | 86 | 0.717742 |
2d58adb262571a5d6c592faa7d2d59ac76c25523 | 3,873 | exs | Elixir | elixir/dot-dsl/test/dot_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/dot-dsl/test/dot_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/dot-dsl/test/dot_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule DotTest do
use ExUnit.Case
require Dot
# Expand at RunTime, used to avoid invalid macro calls preventing compilation
# of the tests.
#
# Inspired by (read: clone of) Support.CompileHelpers.delay_compile in Ecto.
defmacrop exprt(ast) do
escaped = Macro.escape(ast)
quote do
Code.ev... | 20.277487 | 79 | 0.466305 |
2d58c794ebc9d85fff375a4f01c2df4500dddc3e | 62 | ex | Elixir | lib/benzinpreise_web/views/data_view.ex | zookzook/benzinpreise | 05f7946bc2b181ca9e3260b388ae45a55829b9a9 | [
"MIT"
] | null | null | null | lib/benzinpreise_web/views/data_view.ex | zookzook/benzinpreise | 05f7946bc2b181ca9e3260b388ae45a55829b9a9 | [
"MIT"
] | null | null | null | lib/benzinpreise_web/views/data_view.ex | zookzook/benzinpreise | 05f7946bc2b181ca9e3260b388ae45a55829b9a9 | [
"MIT"
] | null | null | null | defmodule BenzinpreiseWeb.DataView do
@moduledoc false
end
| 12.4 | 37 | 0.822581 |
2d58d4f4c75221ef3f138ec192bd4004b5d0c323 | 349 | exs | Elixir | priv/repo/seeds.exs | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Dnsapp.Repo.insert!(%Dnsapp.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will f... | 29.083333 | 61 | 0.704871 |
2d592aac70b90320431b2d87f222923f0b7738cb | 126 | exs | Elixir | test/test_helper.exs | trusty/elixir_google_spreadsheets | b7f74d75e61027dc0b12aa5260168563d0777c92 | [
"MIT"
] | 50 | 2016-12-21T06:39:08.000Z | 2022-03-16T04:52:42.000Z | test/test_helper.exs | trusty/elixir_google_spreadsheets | b7f74d75e61027dc0b12aa5260168563d0777c92 | [
"MIT"
] | 36 | 2017-01-31T19:12:19.000Z | 2022-03-10T17:27:58.000Z | test/test_helper.exs | nested-tech/elixir_google_spreadsheets | 45895fe6ac5bc9f256bc2e271be1a3324ce8aded | [
"MIT"
] | 34 | 2017-01-16T04:22:16.000Z | 2022-03-01T01:46:39.000Z | # Code.require_file "./support/test_tools.ex", __DIR__
# Code.require_file "./support/test_repo.exs", __DIR__
ExUnit.start()
| 25.2 | 54 | 0.753968 |
2d593880406bea8401ad130be6f79bf714b402a5 | 7,586 | ex | Elixir | lib/speedtest.ex | mithereal/speedtest.net | 9ac45e641f2ac2775654d335ea00ee80e683c951 | [
"Apache-2.0"
] | 3 | 2022-02-02T18:47:05.000Z | 2022-02-03T01:20:23.000Z | lib/speedtest.ex | mithereal/speedtest.net | 9ac45e641f2ac2775654d335ea00ee80e683c951 | [
"Apache-2.0"
] | 2 | 2021-09-13T04:54:04.000Z | 2022-02-03T00:47:08.000Z | lib/speedtest.ex | mithereal/speedtest.net | 9ac45e641f2ac2775654d335ea00ee80e683c951 | [
"Apache-2.0"
] | 1 | 2022-02-02T20:18:09.000Z | 2022-02-02T20:18:09.000Z | defmodule Speedtest do
@moduledoc """
Speedtest.net client for Elixir.
"""
alias Speedtest.Ping
alias Speedtest.Decoder
alias Speedtest.Result
require Logger
defstruct config: [],
servers: [],
include: nil,
exclude: nil,
threads: nil,
sele... | 22.987879 | 119 | 0.604535 |
2d593e699f65caa75c35c74129ac9431beb1ec0b | 6,490 | exs | Elixir | test/lib/openflow/ofp_flow_mod_test.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | test/lib/openflow/ofp_flow_mod_test.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | test/lib/openflow/ofp_flow_mod_test.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule OfpFlowModTest do
use ExUnit.Case
doctest Openflow
@flow_mod1 "test/packet_data/4-2-ofp_flow_mod.packet"
@flow_mod2 "test/packet_data/4-3-ofp_flow_mod.packet"
@flow_mod3 "test/packet_data/4-46-ofp_flow_mod.packet"
@flow_mod4 "test/packet_data/4-60-ofp_flow_mod.packet"
@flow_mod5 "test/packet_da... | 33.626943 | 93 | 0.554545 |
2d5970cc56f78d46149bebe29adc8e0415f5b9e8 | 22,605 | ex | Elixir | lib/ecto/adapters/sql.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQL do
@moduledoc """
Behaviour and implementation for SQL adapters.
The implementation for SQL adapter relies on `DBConnection`
to provide pooling, prepare, execute and more.
Developers that use `Ecto.Adapters.SQL` should implement
the callbacks required both by this module and th... | 30.713315 | 141 | 0.630215 |
2d59718dea3c22d75e38ac8a556755cf15525329 | 6,489 | exs | Elixir | test/unit/discovery_api_web/controllers/metadata_controller_detail_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/controllers/metadata_controller_detail_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/controllers/metadata_controller_detail_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApiWeb.MetadataController.DetailTest do
use DiscoveryApiWeb.ConnCase
use Placebo
alias DiscoveryApi.Test.Helper
alias DiscoveryApi.Data.Model
@dataset_id "123"
describe "fetch dataset detail" do
test "retrieves dataset + organization from retriever when organization found", %{conn: ... | 34.515957 | 107 | 0.552165 |
2d598cdb7d27478c08be9595635e242f6fbda52b | 1,532 | exs | Elixir | mix.exs | Ispirata/cfexexl | 98dc50b1cfe5a682b051b38b83cebc644bc08488 | [
"Apache-2.0"
] | 5 | 2017-09-25T18:09:08.000Z | 2017-09-26T07:09:10.000Z | mix.exs | Ispirata/cfexexl | 98dc50b1cfe5a682b051b38b83cebc644bc08488 | [
"Apache-2.0"
] | 11 | 2017-09-25T17:03:33.000Z | 2021-03-12T15:13:54.000Z | mix.exs | Ispirata/cfexexl | 98dc50b1cfe5a682b051b38b83cebc644bc08488 | [
"Apache-2.0"
] | 3 | 2017-10-11T16:38:07.000Z | 2021-03-12T10:54:50.000Z | defmodule CFXXL.Mixfile do
use Mix.Project
def project do
[
app: :cfxxl,
description: "CFSSL API client for Elixir",
version: "1.0.0",
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
... | 23.569231 | 79 | 0.56658 |
2d59920dafdde0fe8a7ef0b798d6aedc1313fe27 | 1,232 | exs | Elixir | test/portmidi/input/server_test.exs | bwanab/ex-portmidi | 9e10a5ff007ebef81c5212dbfb65b4bd90e49daa | [
"MIT"
] | 36 | 2016-03-28T15:01:18.000Z | 2021-09-11T02:41:31.000Z | test/portmidi/input/server_test.exs | bwanab/ex-portmidi | 9e10a5ff007ebef81c5212dbfb65b4bd90e49daa | [
"MIT"
] | 15 | 2016-05-29T13:01:33.000Z | 2021-11-18T18:24:23.000Z | test/portmidi/input/server_test.exs | bwanab/ex-portmidi | 9e10a5ff007ebef81c5212dbfb65b4bd90e49daa | [
"MIT"
] | 11 | 2016-05-19T15:37:49.000Z | 2020-12-13T21:34:07.000Z | defmodule PortMidiInputServerTest do
alias PortMidi.Input.Reader
alias PortMidi.Listeners
import PortMidi.Input.Server
use ExUnit.Case, async: false
import Mock
test "new_messages/2 broadcasts to processes in Listeners" do
{:ok, input} = Agent.start(fn -> [] end)
Listeners.register(input, self)
... | 28 | 80 | 0.645292 |
2d59ad1a45520ec941d90cc94a18bed12664462d | 3,533 | ex | Elixir | src/build-system/config.site.ex | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 3 | 2018-01-18T21:46:01.000Z | 2021-04-06T03:04:00.000Z | src/build-system/config.site.ex | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | null | null | null | src/build-system/config.site.ex | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 4 | 2018-01-18T21:44:47.000Z | 2020-12-13T14:38:18.000Z | #!/bin/sh
# $Id: config.site.ex 110239 2007-09-10 21:07:17Z ucko $
### You can control where the C++ Toolkit's configure script looks for
### various packages by copying or renaming this file to "config.site"
### and then uncommenting and adjusting the relevant settings.
### NOTE: configure reads this file after pars... | 23.091503 | 76 | 0.712143 |
2d59bce941ad972802943ab7ea6419a34a5c6b08 | 2,109 | exs | Elixir | apps/viztube_web/mix.exs | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | null | null | null | apps/viztube_web/mix.exs | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | 3 | 2020-07-16T23:48:01.000Z | 2021-05-08T15:54:04.000Z | apps/viztube_web/mix.exs | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | null | null | null | defmodule ViztubeWeb.Mixfile do
use Mix.Project
def project do
[
app: :viztube_web,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixirc... | 26.696203 | 76 | 0.548601 |
2d59bd9daf1b6c539604cd6bf4108c03e5cb28ef | 4,226 | ex | Elixir | clients/domains/lib/google_api/domains/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1/model/binding.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... | 79.735849 | 1,970 | 0.750118 |
2d59c605a95cad9b4b765766342d959306b252fb | 636 | ex | Elixir | lib/protoc/context.ex | kor-and-m/exproto | 64fcacd898b7a7947ec224e799caf9feacf78928 | [
"MIT"
] | 4 | 2018-03-19T13:34:35.000Z | 2018-07-11T19:20:34.000Z | lib/protoc/context.ex | kor-and-m/exproto | 64fcacd898b7a7947ec224e799caf9feacf78928 | [
"MIT"
] | 1 | 2019-07-08T09:57:25.000Z | 2019-07-08T09:57:25.000Z | lib/protoc/context.ex | k10pr0f/exproto | 3ae86c1308527a723465a14236849c7ab9ba949c | [
"MIT"
] | 1 | 2019-05-27T11:46:01.000Z | 2019-05-27T11:46:01.000Z | defmodule Protobuf.Protoc.Context do
defstruct plugins: [],
# For all files
# Plugins passed by options
# Mapping from file name to package name
pkg_mapping: %{},
# For a file
# Package name
package: nil,
# Package names ... | 31.8 | 109 | 0.553459 |
2d5a2187388c761e259dc2db196fb87be49835f1 | 379 | ex | Elixir | lib/hap/characteristics/saturation.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 40 | 2019-10-26T01:58:42.000Z | 2022-03-09T18:18:39.000Z | lib/hap/characteristics/saturation.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 11 | 2021-04-02T14:55:02.000Z | 2021-11-05T13:49:55.000Z | lib/hap/characteristics/saturation.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 6 | 2020-05-18T09:34:14.000Z | 2021-11-04T11:14:15.000Z | defmodule HAP.Characteristics.Saturation do
@moduledoc """
Definition of the `public.hap.characteristic.saturation` characteristic
"""
@behaviour HAP.CharacteristicDefinition
def type, do: "2F"
def perms, do: ["pr", "pw", "ev"]
def format, do: "float"
def min_value, do: 0.0
def max_value, do: 100.0
... | 23.6875 | 73 | 0.691293 |
2d5a397caf299fa7c88531aef8d759d37b2abedc | 3,495 | ex | Elixir | lib/logger_json/ecto.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 148 | 2017-04-10T06:22:02.000Z | 2022-03-31T11:19:14.000Z | lib/logger_json/ecto.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 81 | 2017-04-09T15:17:03.000Z | 2022-03-01T16:25:32.000Z | lib/logger_json/ecto.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 62 | 2018-05-31T06:49:55.000Z | 2022-01-24T09:15:04.000Z | if Code.ensure_loaded?(Ecto) do
defmodule LoggerJSON.Ecto do
@moduledoc """
Implements the behaviour of `Ecto.LogEntry` and sends query as a string
to Logger with additional metadata:
* query.execution_time_μs - the time spent executing the query in microseconds;
* query.decode_time_μs - the ... | 33.285714 | 110 | 0.628898 |
2d5a581e213c2f8896374fad80d8ace295093dc1 | 539 | ex | Elixir | lib/sakavault_web/views/error_view.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | lib/sakavault_web/views/error_view.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | 3 | 2020-09-20T22:59:35.000Z | 2020-09-20T23:00:47.000Z | lib/sakavault_web/views/error_view.ex | SEGURANCA-DA-INFORMACAO-LGPD/sakavault_api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | defmodule SakaVaultWeb.ErrorView do
use SakaVaultWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message ... | 31.705882 | 83 | 0.721707 |
2d5a6dcc510fd0de2722ee7c642407487ce8a158 | 2,029 | exs | Elixir | b1/config/runtime.exs | calazans10/e4p2-hangman | 96f9cfe9ae0417c606f19b10321b6351ad4e6b5d | [
"MIT"
] | null | null | null | b1/config/runtime.exs | calazans10/e4p2-hangman | 96f9cfe9ae0417c606f19b10321b6351ad4e6b5d | [
"MIT"
] | null | null | null | b1/config/runtime.exs | calazans10/e4p2-hangman | 96f9cfe9ae0417c606f19b10321b6351ad4e6b5d | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.283019 | 80 | 0.703795 |
2d5a960664eeabc1f34dea4b40fe367e0e1d9358 | 776 | ex | Elixir | server/lib/server_web/router.ex | dannicolici/news.ex | 301395a324a2c5fd3eb6255d598bc3a9cf20670e | [
"Apache-2.0"
] | null | null | null | server/lib/server_web/router.ex | dannicolici/news.ex | 301395a324a2c5fd3eb6255d598bc3a9cf20670e | [
"Apache-2.0"
] | 5 | 2018-11-28T06:32:38.000Z | 2019-02-07T08:05:32.000Z | server/lib/server_web/router.ex | dannicolici/news.ex | 301395a324a2c5fd3eb6255d598bc3a9cf20670e | [
"Apache-2.0"
] | null | null | null | defmodule ServerWeb.Router do
use ServerWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", ServerWeb do
pipe_thr... | 20.972973 | 52 | 0.673969 |
2d5aacc31311a3155b34a6e730e034141c4114e8 | 370 | ex | Elixir | api/web/channels/users_channel.ex | panayi/react-phoenix-starter-kit | 6615402deeac9b359954cdd8b523f7735b75eec9 | [
"MIT"
] | null | null | null | api/web/channels/users_channel.ex | panayi/react-phoenix-starter-kit | 6615402deeac9b359954cdd8b523f7735b75eec9 | [
"MIT"
] | null | null | null | api/web/channels/users_channel.ex | panayi/react-phoenix-starter-kit | 6615402deeac9b359954cdd8b523f7735b75eec9 | [
"MIT"
] | null | null | null | defmodule App.UsersChannel do
use Phoenix.Channel
def join("users:new", _auth_msg, socket) do
{:ok, socket}
end
def handle_in("new:user", %{"user" => user}, socket) do
{:noreply, socket}
end
def handle_in("remove:user", %{"user_id" => user_id}, socket) do
broadcast! socket, "remove:user", %{u... | 21.764706 | 66 | 0.645946 |
2d5ab2954d6a8ce93ff0717ef3d33f7013e1e8a8 | 220 | ex | Elixir | lib/cog/pipeline/output_sink_sup.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/pipeline/output_sink_sup.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/pipeline/output_sink_sup.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Pipeline.OutputSinkSup do
alias Cog.Util.FactorySup
alias Cog.Pipeline.OutputSink
use FactorySup, worker: OutputSink
def create(opts) do
Supervisor.start_child(__MODULE__, [opts])
end
end
| 16.923077 | 46 | 0.763636 |
2d5ab3bb31e9e9853422a479a7bc893aa0a4f969 | 906 | ex | Elixir | lib/personal/endpoint.ex | rockerBOO/rockerboo.net | 13716f3c0ac6bac370919c3d6f2394a9dbdd4b3b | [
"MIT"
] | null | null | null | lib/personal/endpoint.ex | rockerBOO/rockerboo.net | 13716f3c0ac6bac370919c3d6f2394a9dbdd4b3b | [
"MIT"
] | null | null | null | lib/personal/endpoint.ex | rockerBOO/rockerboo.net | 13716f3c0ac6bac370919c3d6f2394a9dbdd4b3b | [
"MIT"
] | null | null | null | defmodule Personal.Endpoint do
use Phoenix.Endpoint, otp_app: :personal
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at: "/", from: :personal, gzip: fal... | 24.486486 | 65 | 0.703091 |
2d5aeae09e37c9c9fa2057ec849da977dda34317 | 288 | exs | Elixir | priv/perf/mix.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | priv/perf/mix.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | priv/perf/mix.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | defmodule Perf.MixProject do
use Mix.Project
def project do
[
app: :perf,
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
defp deps do
[
{:credo, "~> 1.5", only: [:dev, :test], runtime: false}
]
end
end
| 15.157895 | 61 | 0.527778 |
2d5afc8efcd38c58c315a8a505877aeb511ba878 | 930 | ex | Elixir | debian/postrm.ex | tarkhov/apache-site-commands | 952dd06da901c3dd49ae89ae583612de55151913 | [
"MIT"
] | null | null | null | debian/postrm.ex | tarkhov/apache-site-commands | 952dd06da901c3dd49ae89ae583612de55151913 | [
"MIT"
] | 6 | 2016-11-02T14:14:04.000Z | 2017-03-10T07:41:39.000Z | debian/postrm.ex | tarkhov/apache-site-commands | 952dd06da901c3dd49ae89ae583612de55151913 | [
"MIT"
] | null | null | null | #!/bin/sh
# postrm script for a2site
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | 24.473684 | 78 | 0.627957 |
2d5b5198f6aecea594b96ebad291ba943841f9fa | 2,798 | ex | Elixir | test/support/code_lock.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 2 | 2021-02-05T02:07:17.000Z | 2021-07-31T22:38:54.000Z | test/support/code_lock.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 79 | 2021-01-14T02:39:36.000Z | 2022-03-31T02:06:27.000Z | test/support/code_lock.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | null | null | null | defmodule CodeLock do
@moduledoc """
## See also
* https://erlang.org/doc/design_principles/statem.html#example
"""
defmodule Locked do
@moduledoc false
use Flexflow.State
@code_length 6
@impl true
def init(e, %{__args__: %{code: code}})
when is_binary(code) and byte_size(code... | 24.761062 | 97 | 0.595425 |
2d5b7ab3d308c20373ea998de25f65f0f1ccb3af | 1,108 | ex | Elixir | lib/tentacat/comments/reactions.ex | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | lib/tentacat/comments/reactions.ex | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | lib/tentacat/comments/reactions.ex | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 1 | 2018-11-02T15:59:28.000Z | 2018-11-02T15:59:28.000Z | defmodule Tentacat.Comments.Reactions do
import Tentacat
alias Tentacat.Client
@doc """
List the reactions on a comment
## Example
Tentacat.Comments.Reactions.list "elixir-lang" , "elixir", "345434"
More info at: https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
"""
@s... | 30.777778 | 95 | 0.68231 |
2d5b8cf7cd49a76da4ec60b21b99d2388efb9f3b | 2,527 | exs | Elixir | config/runtime.exs | jobsonita/rocketseat-yt-cd-111-elixir-protocols | d5e683ff53fa764dd4b8adae6f75ef1abd010d97 | [
"MIT"
] | null | null | null | config/runtime.exs | jobsonita/rocketseat-yt-cd-111-elixir-protocols | d5e683ff53fa764dd4b8adae6f75ef1abd010d97 | [
"MIT"
] | null | null | null | config/runtime.exs | jobsonita/rocketseat-yt-cd-111-elixir-protocols | d5e683ff53fa764dd4b8adae6f75ef1abd010d97 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 41.42623 | 82 | 0.709141 |
2d5bbbf4faae4d526f1e4ede28de53c11830d13f | 1,902 | ex | Elixir | apps/bytepack_web/lib/bytepack_web/controllers/user_confirmation_controller.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack_web/lib/bytepack_web/controllers/user_confirmation_controller.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack_web/lib/bytepack_web/controllers/user_confirmation_controller.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule BytepackWeb.UserConfirmationController do
use BytepackWeb, :controller
alias Bytepack.Accounts
alias Bytepack.Orgs
plug :put_layout, "authentication.html"
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email}}) do
if user = Accounts.g... | 32.793103 | 91 | 0.644585 |
2d5c19b229e92e47b7c15f8a1f0cfbd8d7cf7c8e | 425 | ex | Elixir | apps/soccer_team_app/lib/soccer_team_app/application.ex | jmschles/absinthe-schema-stitching-example | 66f1ef18bb535e8fff7121ab64755553056a7d9f | [
"Apache-2.0"
] | 48 | 2019-09-04T18:30:56.000Z | 2021-12-07T10:24:27.000Z | apps/soccer_team_app/lib/soccer_team_app/application.ex | jmschles/absinthe-schema-stitching-example | 66f1ef18bb535e8fff7121ab64755553056a7d9f | [
"Apache-2.0"
] | 3 | 2019-10-17T20:36:52.000Z | 2020-06-05T16:26:38.000Z | apps/soccer_team_app/lib/soccer_team_app/application.ex | jmschles/absinthe-schema-stitching-example | 66f1ef18bb535e8fff7121ab64755553056a7d9f | [
"Apache-2.0"
] | 5 | 2019-10-17T18:16:13.000Z | 2021-06-14T11:51:30.000Z | # Copyright (c) New Relic Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
defmodule SoccerTeamApp.Application do
use Application
def start(_type, _args) do
children = [
Plug.Cowboy.child_spec(scheme: :http, plug: SoccerTeamApp.Router, options: [port: 8080])
]
opts = [str... | 26.5625 | 94 | 0.724706 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.