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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
740bed2a871eb0bdad9becd7f37ff26c12f9425c | 91 | exs | Elixir | phoenix_tutorial/test/views/layout_view_test.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | phoenix_tutorial/test/views/layout_view_test.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | phoenix_tutorial/test/views/layout_view_test.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | defmodule PhoenixTutorial.LayoutViewTest do
use PhoenixTutorial.ConnCase, async: true
end | 30.333333 | 43 | 0.857143 |
740bee79d2498d91ee085f884c960a57fa808c33 | 713 | ex | Elixir | lib/xcribe/json.ex | antedeguemon/xcribe | 00cbcaf150a04fd07b6ec727be9aa34f92a81a72 | [
"Apache-2.0"
] | 30 | 2019-12-17T20:09:41.000Z | 2021-01-11T13:58:24.000Z | lib/xcribe/json.ex | Finbits/xcribe | 37f4195315e27e415212910f0219c68d96a16d4a | [
"Apache-2.0"
] | 36 | 2019-12-17T20:32:04.000Z | 2020-12-02T17:50:49.000Z | lib/xcribe/json.ex | Finbits/xcribe | 37f4195315e27e415212910f0219c68d96a16d4a | [
"Apache-2.0"
] | 3 | 2020-02-21T18:13:59.000Z | 2020-10-20T07:59:05.000Z | defmodule Xcribe.JSON do
@moduledoc false
alias Xcribe.Config
@doc """
wrapper for json library encode function
"""
def encode(value, options \\ []) do
json_library().encode(value, options)
end
@doc """
wrapper for json library encode! function
"""
def encode!(value, options \\ []) do
j... | 19.805556 | 46 | 0.654979 |
740bfacb89e0136663848e7c85e855869ab1b91e | 185 | ex | Elixir | test/support/test_patterns.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | test/support/test_patterns.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | test/support/test_patterns.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | defmodule EPSWeb.TestPatterns do
@moduledoc """
A collection of patterns that represent returned JSON objects.any()
See https://hexdocs.pm/expat/Expat.html
"""
use Expat
end
| 20.555556 | 69 | 0.735135 |
740bfb0bf45da5e13880f152405c88b932810e62 | 42,704 | ex | Elixir | lib/tds/types.ex | ArKeD17/tds | cc81d97d6676bbb7f571661e0bf78e4a80390d60 | [
"Apache-2.0"
] | null | null | null | lib/tds/types.ex | ArKeD17/tds | cc81d97d6676bbb7f571661e0bf78e4a80390d60 | [
"Apache-2.0"
] | null | null | null | lib/tds/types.ex | ArKeD17/tds | cc81d97d6676bbb7f571661e0bf78e4a80390d60 | [
"Apache-2.0"
] | null | null | null | defmodule Tds.Types do
import Tds.BinaryUtils
import Tds.Utils
alias Tds.Parameter
alias Tds.DateTime
alias Tds.DateTime2
@year_1900_days :calendar.date_to_gregorian_days({1900,1,1})
#@days_in_month 30
@secs_in_min 60
@secs_in_hour 60 * @secs_in_min
#@secs_in_day 24 * @secs_in_hour
@tds_data_ty... | 30.722302 | 257 | 0.61931 |
740c15d86d598424b79c18f17c4e8882a4fd80d6 | 1,061 | exs | Elixir | mix.exs | AndriyLazorenko/restoration_of_erathia | 31b5de7b3bf77fae5ac023177dc6f4c5ca9aba58 | [
"MIT"
] | null | null | null | mix.exs | AndriyLazorenko/restoration_of_erathia | 31b5de7b3bf77fae5ac023177dc6f4c5ca9aba58 | [
"MIT"
] | null | null | null | mix.exs | AndriyLazorenko/restoration_of_erathia | 31b5de7b3bf77fae5ac023177dc6f4c5ca9aba58 | [
"MIT"
] | null | null | null | defmodule RestorationOfErathia.MixProject do
use Mix.Project
def project do
[
app: :restoration_of_erathia,
version: "0.1.1",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
source_url: "https://github.com/AndriyL... | 24.113636 | 87 | 0.619227 |
740c20f06c169d9060c26766aa004cecc1381b75 | 974 | ex | Elixir | test/support/channel_case.ex | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | 1 | 2017-03-08T18:46:17.000Z | 2017-03-08T18:46:17.000Z | test/support/channel_case.ex | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | null | null | null | defmodule Elixircast.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot ... | 23.190476 | 69 | 0.704312 |
740c47cd4d8dc7c39fcb03caa418832d6b7d067e | 3,151 | exs | Elixir | elixir/isbn-verifier/test/isbn_verifier_test.exs | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | elixir/isbn-verifier/test/isbn_verifier_test.exs | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | elixir/isbn-verifier/test/isbn_verifier_test.exs | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | defmodule IsbnVerifierTest do
use ExUnit.Case
# @tag :pending
test "valid isbn number" do
assert IsbnVerifier.isbn?("3-598-21508-8")
end
# @tag :pending
test "invalid isbn check digit" do
refute IsbnVerifier.isbn?("3-598-21508-9")
end
# @tag :pending
test "valid isbn number with a check dig... | 23.871212 | 100 | 0.684227 |
740c61df38dc53c5ec2bc601e608fad242cf1ac0 | 629 | ex | Elixir | word-count/lib/word_count.ex | quatauta/exercism-elixir | 3635610f25111f2afd3bb748e86f9b478ec239b0 | [
"MIT"
] | 1 | 2022-01-23T20:34:09.000Z | 2022-01-23T20:34:09.000Z | word-count/lib/word_count.ex | quatauta/exercism-elixir | 3635610f25111f2afd3bb748e86f9b478ec239b0 | [
"MIT"
] | null | null | null | word-count/lib/word_count.ex | quatauta/exercism-elixir | 3635610f25111f2afd3bb748e86f9b478ec239b0 | [
"MIT"
] | null | null | null | defmodule WordCount do
@moduledoc """
Count the number of words in the sentence.
Words are compared case-insensitively.
"""
@spec count(String.t()) :: map
def count(sentence) do
sentence |> downcase() |> split() |> count_words()
end
defp downcase(sentence) do
String.downcase(sentence)
end
... | 22.464286 | 73 | 0.662957 |
740c8b283f1ec6f14dd054e8d3b003b1b043d0fa | 1,459 | ex | Elixir | lib/client/default/content.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | 1 | 2021-12-21T14:22:12.000Z | 2021-12-21T14:22:12.000Z | lib/client/default/content.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | lib/client/default/content.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | defmodule PlayfabEx.Client.Default.Content do
@doc """
This API retrieves a pre-signed URL for accessing a content file for the title. A subsequent HTTP GET to the returned URL will attempt to download the content. A HEAD query to the returned URL will attempt to retrieve the metadata of the content. Note that a... | 44.212121 | 565 | 0.716244 |
740c8b67bed27eed6c033a0172f1a524d63d10fc | 7,187 | ex | Elixir | lib/bamboo/mailer.ex | alexparker/bamboo | aea3edcb9d4ab0b3a6261a3ff848763aefb35078 | [
"MIT"
] | null | null | null | lib/bamboo/mailer.ex | alexparker/bamboo | aea3edcb9d4ab0b3a6261a3ff848763aefb35078 | [
"MIT"
] | null | null | null | lib/bamboo/mailer.ex | alexparker/bamboo | aea3edcb9d4ab0b3a6261a3ff848763aefb35078 | [
"MIT"
] | null | null | null | defmodule Bamboo.Mailer do
@moduledoc """
Functions for delivering emails using adapters and delivery strategies.
Adds `deliver_now/1` and `deliver_later/1` functions to the mailer module it
is used by.
Bamboo [ships with several adapters][available-adapters]. It is also possible
to create your own adapte... | 27.856589 | 97 | 0.675804 |
740c92e42b6455ddaf512fd97df3e75e8a425163 | 15,533 | ex | Elixir | lib/hexpm/accounts/users.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm/accounts/users.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm/accounts/users.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Accounts.Users do
use Hexpm.Context
alias Hexpm.Accounts.{RecoveryCode, TFA}
def get(username_or_email, preload \\ []) do
User.get(String.downcase(username_or_email), preload)
|> Repo.one()
end
def public_get(username_or_email, preload \\ []) do
User.public_get(String.downcase(u... | 28.605893 | 100 | 0.617331 |
740c9b3559436969c9e717bad2a7c882b49105fe | 1,425 | ex | Elixir | apps/tai/lib/tai/venue_adapters/okex/stream/process_optional_channels.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/okex/stream/process_optional_channels.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/okex/stream/process_optional_channels.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.VenueAdapters.OkEx.Stream.ProcessOptionalChannels do
use GenServer
alias Tai.{Events, VenueAdapters.OkEx.Stream}
defmodule State do
@type venue_id :: Tai.Venue.id()
@type t :: %State{venue: venue_id}
@enforce_keys ~w(venue)a
defstruct ~w(venue)a
end
@type venue_id :: Tai.Venue... | 26.886792 | 79 | 0.65614 |
740cbdebd08ccae6ee212eefe95a275b1a7aa59b | 11,259 | ex | Elixir | lib/ex_admin/table.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 1 | 2019-11-25T17:53:57.000Z | 2019-11-25T17:53:57.000Z | lib/ex_admin/table.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | null | null | null | lib/ex_admin/table.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | null | null | null | Code.ensure_compiled(ExAdmin.Utils)
defmodule ExAdmin.Table do
@moduledoc false
require Integer
use Xain
import ExAdmin.Helpers
import ExAdmin.Utils
import ExAdmin.Render
import ExAdmin.Theme.Helpers
import Kernel, except: [to_string: 1]
alias ExAdmin.Schema
def attributes_table(conn, resource, sc... | 28.503797 | 103 | 0.560441 |
740cf663a5c533fe0fd6cf4d52011e60989b8c10 | 652 | ex | Elixir | web/api/lib/worker/adapter/gazetteer.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | web/api/lib/worker/adapter/gazetteer.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | web/api/lib/worker/adapter/gazetteer.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | defmodule Api.Worker.Adapter.Gazetteer do
require Logger
alias HTTPoison.Response
alias HTTPoison.Error
def get_place(gazetteer_id) do
HTTPoison.get("#{Api.Core.Config.get(:gazetteer_url)}/doc/#{gazetteer_id}.json")
|> handle_result
end
defguard is_ok(status_code) when status_code >= 200 and stat... | 25.076923 | 84 | 0.723926 |
740d16b1f542a627ddf2373d1daf912645cd52e1 | 250 | ex | Elixir | lib/elixir_linter/store.ex | SophieDeBenedetto/elixir_linter | 3feb3f6ce4ea566958ac29548ea16cf8cedd6a42 | [
"MIT"
] | 1 | 2017-03-20T22:47:20.000Z | 2017-03-20T22:47:20.000Z | lib/elixir_linter/store.ex | SophieDeBenedetto/elixir_linter | 3feb3f6ce4ea566958ac29548ea16cf8cedd6a42 | [
"MIT"
] | null | null | null | lib/elixir_linter/store.ex | SophieDeBenedetto/elixir_linter | 3feb3f6ce4ea566958ac29548ea16cf8cedd6a42 | [
"MIT"
] | null | null | null | require IEx;
defmodule ElixirLinter.Store do
use GenServer
def start_link(repo) do
Agent.start_link(fn -> %{repo_name: repo} end, name: __MODULE__)
end
def get_repo(pid) do
Agent.get(pid, fn dict -> dict[:repo_name] end)
end
end | 20.833333 | 68 | 0.696 |
740d1929ef04d205b68631ce1cb9bc28bd17e4ea | 345 | ex | Elixir | lib/relay.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | lib/relay.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | lib/relay.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule Relay do
@moduledoc """
Documentation for Relay.
"""
use Application
alias Relay.Supervisor
def start(_type, _args) do
listen = Application.fetch_env!(:relay, :listen)
addr = Keyword.get(listen, :address)
port = Keyword.get(listen, :port)
Supervisor.start_link({addr, port}, nam... | 19.166667 | 57 | 0.684058 |
740d29b0bce70d0248eefa739cfc30dd2766eb9c | 99 | ex | Elixir | lib/stripe_app_web/views/user_view.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | lib/stripe_app_web/views/user_view.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | lib/stripe_app_web/views/user_view.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | defmodule StripeAppWeb.UserView do
use StripeAppWeb, :view
alias StripeApp.Coherence.User
end
| 16.5 | 34 | 0.808081 |
740dd5b3d278c8abb6cf541a61f05a70a784c81c | 906 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.555556 | 74 | 0.764901 |
740e00753c1fa722b140c3a3fa61f9e560ee1e5c | 23,526 | exs | Elixir | test/changeset/changeset_test.exs | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | test/changeset/changeset_test.exs | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | test/changeset/changeset_test.exs | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Test.Changeset.ChangesetTest do
@moduledoc false
use ExUnit.Case, async: true
alias Ash.Changeset
require Ash.Query
defmodule Category do
use Ash.Resource, data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
identities do
identity :unique_name, [:name]
en... | 26.734091 | 121 | 0.581399 |
740e05439fae1a28539a8fcbb1b82ff23cfc2bf1 | 123 | ex | Elixir | lib/fib.ex | byhbt/ex_kata | 022a6c245ab84a62046703d71c490c9b89d404a3 | [
"MIT"
] | null | null | null | lib/fib.ex | byhbt/ex_kata | 022a6c245ab84a62046703d71c490c9b89d404a3 | [
"MIT"
] | 4 | 2021-07-10T15:41:49.000Z | 2021-07-18T12:21:14.000Z | lib/fib.ex | byhbt/ex_kata | 022a6c245ab84a62046703d71c490c9b89d404a3 | [
"MIT"
] | null | null | null | defmodule Fib do
def naive(1), do: 1
def naive(2), do: 1
def naive(n) do
naive(n - 2) + naive(n - 1)
end
end
| 12.3 | 31 | 0.560976 |
740e3ed15028a9fc7556926819fbe495ccb3f608 | 1,555 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/empty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/empty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/empty.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... | 31.1 | 76 | 0.744051 |
740e5982b55c07a317274e7b28a058929152a7fd | 4,025 | exs | Elixir | test/sanbase/signals/history/trigger_price_volume_diff_history_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | test/sanbase/signals/history/trigger_price_volume_diff_history_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | test/sanbase/signals/history/trigger_price_volume_diff_history_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Signal.PriceVolumeDiffHistoryTest do
use Sanbase.DataCase, async: false
import Mock
import Sanbase.Factory
alias Sanbase.Signal.UserTrigger
@moduletag capture_log: true
setup do
Sanbase.Signal.Evaluator.Cache.clear()
project =
insert(:project, %{
main_contract_add... | 30.263158 | 86 | 0.488944 |
740e5bc25418ad0177e12f0a31e13f149d424561 | 1,838 | ex | Elixir | lib/survey_api_web/telemetry.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | lib/survey_api_web/telemetry.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | lib/survey_api_web/telemetry.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | defmodule SurveyApiWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Lear... | 32.821429 | 86 | 0.67519 |
740e627b614f3ab7af49a8bc316eeeea9da68556 | 506 | ex | Elixir | lib/sptfy/object/cursor_paging.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 5 | 2020-12-14T15:46:26.000Z | 2021-03-20T22:32:58.000Z | lib/sptfy/object/cursor_paging.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 9 | 2020-12-25T14:36:11.000Z | 2021-01-25T14:03:18.000Z | lib/sptfy/object/cursor_paging.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | null | null | null | defmodule Sptfy.Object.CursorPaging do
@moduledoc """
Module for cursor based paging struct.
"""
use Sptfy.Object
alias Sptfy.Object.Cursors
defstruct ~w[
href
items
limit
next
cursors
total
]a
def new(fields, item_module) do
fields =
fields
|> Helpers.atomize... | 17.448276 | 84 | 0.628458 |
740e7bea907c7217df4fdd9acc6407a82ccd6529 | 3,563 | exs | Elixir | test/intel_hex_test.exs | fhunleth/intel_hex | 391162d40cf7fd283a2c708006a964df30848f52 | [
"Apache-2.0"
] | 2 | 2018-01-05T16:52:12.000Z | 2018-01-31T17:35:35.000Z | test/intel_hex_test.exs | fhunleth/intel_hex | 391162d40cf7fd283a2c708006a964df30848f52 | [
"Apache-2.0"
] | null | null | null | test/intel_hex_test.exs | fhunleth/intel_hex | 391162d40cf7fd283a2c708006a964df30848f52 | [
"Apache-2.0"
] | 2 | 2019-02-25T16:58:31.000Z | 2019-02-25T16:58:31.000Z | defmodule IntelHexTest do
use ExUnit.Case
doctest IntelHex
alias IntelHex.DecodeError
test "raises on records without start codes" do
assert_raise(DecodeError, fn -> IntelHex.decode_record!("abc") end)
end
test "decodes extended linear address record" do
rec = IntelHex.decode_record!(":0200000400... | 29.446281 | 90 | 0.540556 |
740e885e3a84d193ed88a7a9ac1b62ab24ecf8ba | 1,284 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.1 | 87 | 0.754673 |
740e8fc0a8934969d1428fc4dc391e0fa127fa99 | 528 | ex | Elixir | lib/hl7/2.4/segments/rqd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/rqd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/rqd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.RQD do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
requisition_line_number: nil,
item_code_internal: DataTypes.Ce,
item_code_external: DataTypes.Ce,
hospital_item_code: DataTypes.Ce,
req... | 24 | 48 | 0.69697 |
740e9be733f1204ea0b9d7df66a5d6187716c382 | 1,011 | exs | Elixir | mix.exs | f17antonio/blake2_elixir | 33c2e4ed217859e6d92b7bf47c35399f96d7d187 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | f17antonio/blake2_elixir | 33c2e4ed217859e6d92b7bf47c35399f96d7d187 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | f17antonio/blake2_elixir | 33c2e4ed217859e6d92b7bf47c35399f96d7d187 | [
"BSD-3-Clause"
] | null | null | null | defmodule Blake2.Mixfile do
use Mix.Project
@version "0.8.0"
@description """
Blake2 cryptographic hashing function for Elixir
"""
def project do
[
app: :blake2_elixir,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
compilers: [:elixir_make] ++... | 21.510638 | 78 | 0.568744 |
740f3562df967df8e87dc6524bf45ad892a33bda | 316 | ex | Elixir | web/views/error_view.ex | Microflow/how-can-we-fix | 62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6 | [
"MIT"
] | 93 | 2017-08-17T13:52:53.000Z | 2022-02-06T17:28:35.000Z | web/views/error_view.ex | rudi-c/alchemy-book | 979e1f08711eb3449913be47cddf1969beff518c | [
"MIT"
] | 6 | 2017-10-07T22:55:46.000Z | 2019-04-03T20:05:30.000Z | web/views/error_view.ex | Microflow/how-can-we-fix | 62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6 | [
"MIT"
] | 11 | 2017-08-17T13:54:54.000Z | 2022-01-14T09:53:58.000Z | defmodule AlchemyBook.ErrorView do
use AlchemyBook.Web, :view
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, assigns) do
render "500.html", assigns
end
end
| 22.571429 | 47 | 0.721519 |
740f4def495d111d1c0a984bb34fd8f5a98466e9 | 2,176 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_set_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_set_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/thumbnail_set_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.881356 | 176 | 0.703125 |
740f4ebfea1d24d0692022c636aea4bdc5bfa65d | 1,568 | exs | Elixir | test/error_correction_test.exs | botsquad/qr_code | 55fcad19eb56c5f260c8489b7fe85ce2516778d6 | [
"BSD-4-Clause"
] | 29 | 2018-12-22T07:53:55.000Z | 2022-03-04T10:14:44.000Z | test/error_correction_test.exs | botsquad/qr_code | 55fcad19eb56c5f260c8489b7fe85ce2516778d6 | [
"BSD-4-Clause"
] | 21 | 2018-12-16T12:56:22.000Z | 2022-02-23T17:11:34.000Z | test/error_correction_test.exs | botsquad/qr_code | 55fcad19eb56c5f260c8489b7fe85ce2516778d6 | [
"BSD-4-Clause"
] | 5 | 2020-01-17T11:01:29.000Z | 2022-03-01T17:44:08.000Z | defmodule ErrorCorrectionTest do
@moduledoc false
use ExUnit.Case
use PropCheck
doctest QRCode.ErrorCorrection
alias QRCode.{ErrorCorrection, QR}
alias Generators.QR, as: QRGenerator
# Tests
# Properties
@tag timeout: 180_000
property "should have right split to groups and blocks" do
forall ... | 23.402985 | 91 | 0.652423 |
740f59bca093719ec9f9d049d6740ca464d2badc | 47,063 | ex | Elixir | lib/phoenix_live_view.ex | wojtekmach/phoenix_live_view | 61067e14c31833605c902d02ddd163d2a89c325f | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | wojtekmach/phoenix_live_view | 61067e14c31833605c902d02ddd163d2a89c325f | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | wojtekmach/phoenix_live_view | 61067e14c31833605c902d02ddd163d2a89c325f | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc """
LiveView provides rich, real-time user experiences with
server-rendered HTML.
LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to its stat... | 38.607875 | 106 | 0.692455 |
740f73b90d50e3a5f181a5cc30ab711e950f5ff1 | 1,211 | ex | Elixir | apps/ui/web/views/error_helpers.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | 4 | 2016-09-21T11:22:27.000Z | 2017-12-09T02:06:52.000Z | apps/ui/web/views/error_helpers.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | null | null | null | apps/ui/web/views/error_helpers.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | 2 | 2017-12-09T02:07:22.000Z | 2021-01-06T15:30:03.000Z | defmodule Ui.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(error), class... | 29.536585 | 68 | 0.663088 |
740f886e8d0c9bcd72f453e2da0d3d9e2a7bd252 | 1,518 | exs | Elixir | mix.exs | sobolevn/ueberauth_vk | 25d234341ff685ed9d4827e50e40648478d581d6 | [
"MIT"
] | 19 | 2016-04-03T18:10:58.000Z | 2020-01-12T04:29:46.000Z | mix.exs | sobolevn/ueberauth_vk | 25d234341ff685ed9d4827e50e40648478d581d6 | [
"MIT"
] | 94 | 2016-05-07T08:48:31.000Z | 2020-03-10T02:21:02.000Z | mix.exs | sobolevn/ueberauth_vk | 25d234341ff685ed9d4827e50e40648478d581d6 | [
"MIT"
] | 17 | 2016-05-07T10:12:10.000Z | 2018-03-23T11:36:45.000Z | defmodule UeberauthVK.Mixfile do
use Mix.Project
@version "0.4.0"
@url "https://github.com/ueberauth/ueberauth_vk"
def project do
[
app: :ueberauth_vk,
version: @version,
name: "Ueberauth VK Strategy",
package: package(),
elixir: "~> 1.4",
build_embedded: Mix.env() == :... | 20.24 | 59 | 0.530962 |
740fd6899322815e035ad695d4ab2876b46e7bdd | 867 | ex | Elixir | lib/koans/01_equalities.ex | JesusGH123/ElixirKoans | 54c46953b594df280fe5aedf37a01292780a726a | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | JesusGH123/ElixirKoans | 54c46953b594df280fe5aedf37a01292780a726a | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | JesusGH123/ElixirKoans | 54c46953b594df280fe5aedf37a01292780a726a | [
"MIT"
] | null | null | null | defmodule Equalities do
use Koans
@intro """
Welcome to the Elixir koans.
Let these be your first humble steps towards learning a new language.
The path laid in front of you is one of many.
"""
# Replace ___ with the answer to make the koan pass.
koan "We shall contemplate truth by testing reality, v... | 21.675 | 83 | 0.680507 |
740fe3065b2bb009710ccc119bda76ebeaec497a | 889 | ex | Elixir | lib/future_tweet.ex | farazfazli/futuretweet | 0fa2c900d3fb9453862ade7a6346ef2dec288119 | [
"MIT"
] | 2 | 2016-11-29T09:33:42.000Z | 2016-11-29T11:31:45.000Z | lib/future_tweet.ex | farazfazli/futuretweet | 0fa2c900d3fb9453862ade7a6346ef2dec288119 | [
"MIT"
] | null | null | null | lib/future_tweet.ex | farazfazli/futuretweet | 0fa2c900d3fb9453862ade7a6346ef2dec288119 | [
"MIT"
] | null | null | null | defmodule FutureTweet do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
children = [
# Starts a ... | 35.56 | 100 | 0.721035 |
74101492d93c15ad4c75104a140042c609590886 | 2,777 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_feed.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_feed.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_feed.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 ... | 40.838235 | 214 | 0.683471 |
7410234f92092ca8937225a9d363660502b514b7 | 67 | exs | Elixir | Functions/4.exs | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | Functions/4.exs | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | Functions/4.exs | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | prefix = fn first ->
fn second ->
"#{first} #{second}"
end
end | 13.4 | 22 | 0.567164 |
741036b67d7af7a35c28edcb3b108d3d359c87b5 | 2,366 | exs | Elixir | test/groupher_server_web/mutation/cms/sink/works_sink_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/sink/works_sink_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/sink/works_sink_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Sink.WorksSink do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.CMS
alias CMS.Model.Works
alias Helper.ORM
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
{:ok, works} = CMS.create_article(community, ... | 30.333333 | 88 | 0.647084 |
741047836d47522beb180b421c5d7b2e0bf0dee7 | 1,340 | ex | Elixir | lib/idea_portal/timeline.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 5 | 2019-08-29T20:22:25.000Z | 2020-04-01T17:40:48.000Z | lib/idea_portal/timeline.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 34 | 2019-03-06T17:53:29.000Z | 2021-09-01T01:25:23.000Z | lib/idea_portal/timeline.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 2 | 2020-01-10T22:12:36.000Z | 2021-01-22T04:37:45.000Z | defmodule IdeaPortal.Timeline do
@moduledoc """
Timeline for challenges
"""
alias IdeaPortal.Timeline.Event
alias IdeaPortal.Repo
@doc """
Get today, timezone shifted to Eastern
"""
def today() do
new_york = Timex.Timezone.get("America/New_York", Timex.now())
Timex.now()
|> Timex.Timezo... | 17.866667 | 66 | 0.621642 |
74107ae4c13cb8b5014db65e5dbd94bbc6401ece | 548 | ex | Elixir | apps/xee/lib/xee/token_generator.ex | xeejp/xee | 669e5a8030948e6d37ee0d33d3b37b4abdc34001 | [
"MIT"
] | 11 | 2015-12-24T07:51:45.000Z | 2019-03-05T12:29:31.000Z | apps/xee/lib/xee/token_generator.ex | xeejp/xee | 669e5a8030948e6d37ee0d33d3b37b4abdc34001 | [
"MIT"
] | 62 | 2015-12-25T02:58:20.000Z | 2020-03-04T06:52:11.000Z | apps/xee/lib/xee/token_generator.ex | xeejp/xee | 669e5a8030948e6d37ee0d33d3b37b4abdc34001 | [
"MIT"
] | 1 | 2016-07-19T03:28:08.000Z | 2016-07-19T03:28:08.000Z | defmodule Xee.TokenGenerator do
@doc """
Generate 'Universally Unique Identifier' with version 4.
"""
def generate() do
{unique, ""} = UUID.uuid4(:hex) |> Integer.parse(16)
shorten_hex(unique + 1)
end
def shorten_hex(hex) do
characters = Enum.to_list(?0..?9) ++ Enum.to_list(?a..?z)
to_stri... | 23.826087 | 72 | 0.65146 |
741080bed1e08031931cfe4b6ca570d79f81967d | 275 | exs | Elixir | exp/macro/defkv2.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | exp/macro/defkv2.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | exp/macro/defkv2.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | defmodule DKV do
defmacro defkv(kv) do
quote bind_quoted: [kv: kv] do
Enum.map kv, fn {k, v} ->
def unquote(k)(), do: unquote(v)
end
end
end
end
defmodule X do
import DKV
kv = [foo: 1, bar: 2]
defkv kv
end
IO.puts X.foo
IO.puts X.bar
| 13.75 | 40 | 0.581818 |
741082833f24c587fa03dfd99a2a1f736a534da8 | 538 | ex | Elixir | lib/ash/error/query/no_read_action.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/error/query/no_read_action.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/error/query/no_read_action.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Error.Query.NoReadAction do
@moduledoc "Used when a resource would be read but has no read action"
use Ash.Error.Exception
def_ash_error([:resource, :when], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ash.UUID.generate()
def code(_), do: "no_read_action"
def message(er... | 25.619048 | 83 | 0.663569 |
7410881c66549d373b1e58a99cddc14e12fb8490 | 759 | exs | Elixir | priv/repo/migrations/20220330070447_create_users_auth_tables.exs | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | priv/repo/migrations/20220330070447_create_users_auth_tables.exs | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | priv/repo/migrations/20220330070447_create_users_auth_tables.exs | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | defmodule Lifelog.Repo.Migrations.CreateUsersAuthTables do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:users) do
add :email, :citext, null: false
add :hashed_password, :string, null: false
add :confirmed_at, :naive_datetime
tim... | 27.107143 | 75 | 0.673254 |
7410a2269ab1f59b1b0a8142bf9191046736dd7d | 80 | ex | Elixir | web/model.ex | ZURASTA/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 1 | 2017-06-15T11:20:27.000Z | 2017-06-15T11:20:27.000Z | web/model.ex | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | null | null | null | web/model.ex | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 2 | 2017-07-25T10:16:19.000Z | 2017-08-02T06:54:22.000Z | defmodule Bonbon.Model do
@moduledoc File.read!("web/models/README.md")
end
| 20 | 49 | 0.7375 |
7410ac51bbd21f1de3d5a280d353b4c2a57d77d7 | 1,250 | exs | Elixir | test/langue/es6_module/expectation_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/langue/es6_module/expectation_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/langue/es6_module/expectation_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule LangueTest.Formatter.Es6Module.Expectation do
alias Langue.Entry
defmodule Simple do
use Langue.Expectation.Case
def render do
"""
export default {
"general": {
"nested": "value ok",
"roles": {
"owner": "Owner"
}
},
"t... | 23.148148 | 116 | 0.52 |
7410f1f60d3bfe45df6ce412444a71b909e68b56 | 223 | ex | Elixir | lib/cloudflare/client.ex | princemaple/elixir-cloudflare-api-client | 874bed28bdd7d91ccb5f1f5eeccf37bad0c52495 | [
"MIT"
] | null | null | null | lib/cloudflare/client.ex | princemaple/elixir-cloudflare-api-client | 874bed28bdd7d91ccb5f1f5eeccf37bad0c52495 | [
"MIT"
] | 2 | 2021-08-23T17:31:14.000Z | 2021-10-19T21:31:13.000Z | lib/cloudflare/client.ex | princemaple/elixir-cloudflare-api-client | 874bed28bdd7d91ccb5f1f5eeccf37bad0c52495 | [
"MIT"
] | 1 | 2021-06-13T13:24:25.000Z | 2021-06-13T13:24:25.000Z | defmodule Cloudflare.Client do
use Restlax.Client,
base_url: "https://api.cloudflare.com/client/v4"
plug Cloudflare.Auth
def init do
:persistent_term.put({:cloudflare, :client}, Cloudflare.Client)
end
end
| 20.272727 | 67 | 0.730942 |
7410fc515d282099f136c5a76507e7da5790aa79 | 2,249 | ex | Elixir | architect/lib/architect_web/channels/builder_channel.ex | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 3 | 2017-12-09T21:05:54.000Z | 2019-08-06T08:13:34.000Z | architect/lib/architect_web/channels/builder_channel.ex | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 63 | 2017-09-09T15:44:24.000Z | 2022-03-03T22:16:24.000Z | architect/lib/architect_web/channels/builder_channel.ex | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 5 | 2017-09-14T00:17:22.000Z | 2019-11-27T14:43:45.000Z | defmodule ArchitectWeb.BuilderChannel do
use Phoenix.Channel
alias Architect.Builders
require Logger
@event_prefix "vlcty_"
def join("builders:pool", _, socket) do
send(self(), :after_join)
{:ok, socket}
end
def handle_in("new_msg", %{"uid" => _uid, "body" => _body}, socket) do
# broadcas... | 21.419048 | 91 | 0.598044 |
7411205b69ad30073eaca7afda521f6036f4e225 | 2,480 | ex | Elixir | lib/elixir/lib/range.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | defmodule Range do
@moduledoc """
Defines a Range.
A Range represents a discrete number of values where
the first and last values are integers.
Ranges can be either increasing (first <= last) or
decresing (first > last). Ranges are also always
inclusive.
A Range is represented internally as a struct.... | 22.142857 | 96 | 0.603226 |
7411277adf4982665753eb185879f1ca9535e09c | 1,050 | ex | Elixir | test/support/conn_case.ex | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | defmodule LibLeafWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if th... | 26.923077 | 69 | 0.718095 |
7411378eddcf0868a0f8e753329820922bd9ef17 | 2,207 | exs | Elixir | test/middleware/sign_request_test.exs | ryanbrainard/tesla_aws_sigv4 | 02c334265c332971e2e419c9b740005d0300b552 | [
"MIT"
] | null | null | null | test/middleware/sign_request_test.exs | ryanbrainard/tesla_aws_sigv4 | 02c334265c332971e2e419c9b740005d0300b552 | [
"MIT"
] | null | null | null | test/middleware/sign_request_test.exs | ryanbrainard/tesla_aws_sigv4 | 02c334265c332971e2e419c9b740005d0300b552 | [
"MIT"
] | null | null | null | defmodule AwsSigV4.Middleware.SignRequestTest do
use ExUnit.Case
doctest AwsSigV4.Middleware.SignRequest
alias Tesla.Env
@auth_regex ~r/AWS4-HMAC-SHA256 Credential=(?<access_key_id>\w+)\/(?<date>\d{8})\/(?<region>\w+)\/(?<service>\w+)\/aws4_request,SignedHeaders=(content-type;)?host;x-amz-date,Signature=(?<sig... | 32.940299 | 204 | 0.646579 |
7411384ad2afffdc2eb79b87c76e3cdc0d6db299 | 3,168 | ex | Elixir | web/controllers/admin/user_controller.ex | zhangsoledad/Doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 6 | 2016-03-17T08:45:34.000Z | 2016-10-10T01:20:37.000Z | web/controllers/admin/user_controller.ex | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | null | null | null | web/controllers/admin/user_controller.ex | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 2 | 2016-04-01T06:28:56.000Z | 2016-04-28T09:35:07.000Z | defmodule Doom.Admin.UserController do
use Doom.Web, :controller
import Doom.Authorize
alias Openmaize.ConfirmEmail
alias Doom.{Mailer, User, Group}
plug :scrub_params, "user" when action in [:create]
def action(conn, _), do: authorize_action conn, ["admin"], __MODULE__
def index(conn, params) do
... | 28.8 | 105 | 0.636364 |
7411631af34ee023726d1d00aa8ba20ff44a70b7 | 2,067 | ex | Elixir | lib/socket_client.ex | UrbanOS-Examples/scos-system-test | 5b24020b308bf54e3365704d0b3ab0e0187c3f6e | [
"Apache-2.0"
] | null | null | null | lib/socket_client.ex | UrbanOS-Examples/scos-system-test | 5b24020b308bf54e3365704d0b3ab0e0187c3f6e | [
"Apache-2.0"
] | null | null | null | lib/socket_client.ex | UrbanOS-Examples/scos-system-test | 5b24020b308bf54e3365704d0b3ab0e0187c3f6e | [
"Apache-2.0"
] | null | null | null | defmodule ScosSystemTest.SocketClient do
@moduledoc """
This module collects messages from Discovery Streams and stores them in an ets table
"""
use WebSockex
require Logger
@max_attempts 10
@backoff 500
def start_link(url, state \\ %{}) do
state = Map.put(state, :attempts, 0)
{:ok, pid} =
... | 27.56 | 93 | 0.623125 |
74119e06903104d9e36698b14ca1313baef2fa81 | 2,525 | exs | Elixir | test/controllers/saledetaill_controller_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/controllers/saledetaill_controller_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/controllers/saledetaill_controller_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | defmodule Otherpool.SaledetaillControllerTest do
use Otherpool.ConnCase
alias Otherpool.Saledetaill
@valid_attrs %{due_date: %{day: 17, month: 4, year: 2010}, order_date: %{day: 17, month: 4, year: 2010}, subtotal: 42}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", ... | 38.846154 | 120 | 0.692277 |
7411b974f192d9acb2a577e7388dedb64b70ebef | 1,425 | exs | Elixir | mix.exs | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | 2 | 2019-11-17T02:31:18.000Z | 2019-11-20T22:00:29.000Z | mix.exs | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | null | null | null | mix.exs | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | 1 | 2019-11-16T18:08:18.000Z | 2019-11-16T18:08:18.000Z | defmodule AWS.Mixfile do
use Mix.Project
@version "0.5.0"
def project do
[app: :aws,
description: "AWS clients for Elixir",
package: package(),
version: @version,
name: "aws-elixir",
source_url: "https://github.com/jkakar/aws-elixir",
homepage_url: "http://github.com/jkakar/aws... | 26.886792 | 94 | 0.573333 |
7411c83c93c6edd2bf9cde3a92461ad20a5662c2 | 1,716 | ex | Elixir | lib/nigiwiki_web/endpoint.ex | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | 2 | 2017-12-07T10:57:47.000Z | 2018-02-04T09:01:05.000Z | lib/nigiwiki_web/endpoint.ex | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | null | null | null | lib/nigiwiki_web/endpoint.ex | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | null | null | null | defmodule NigiwikiWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :nigiwiki
socket("/socket", NigiwikiWeb.UserSocket)
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug(
... | 26 | 95 | 0.690559 |
7411d0e1cd447d14d84bdae2a314f4cf79caccd3 | 345 | ex | Elixir | lib/supabase_surface/components/icons/icon_pie_chart.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_pie_chart.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_pie_chart.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconPieChart do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.pie_chart(width: icon_size, height: icon_size)}
</IconCont... | 23 | 67 | 0.721739 |
7411d832cc04b3465813cf6f36f134dcf3a5a99b | 2,242 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config.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 ... | 42.301887 | 137 | 0.75959 |
7411f16e383f6c6040befa080aba36fab5c6227f | 1,319 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/stratum.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/stratum.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/stratum.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... | 28.06383 | 75 | 0.72934 |
7411f6940d4389d78d06ec88584e6e013da5c35f | 1,901 | ex | Elixir | 2021/elixir/apps/day4/lib/part2.ex | ColdOrange/advent_of_code | 18c4054558fdcaf123c8d8057b6de23894488a73 | [
"MIT"
] | null | null | null | 2021/elixir/apps/day4/lib/part2.ex | ColdOrange/advent_of_code | 18c4054558fdcaf123c8d8057b6de23894488a73 | [
"MIT"
] | null | null | null | 2021/elixir/apps/day4/lib/part2.ex | ColdOrange/advent_of_code | 18c4054558fdcaf123c8d8057b6de23894488a73 | [
"MIT"
] | null | null | null | defmodule Day4Part2 do
@moduledoc """
Day4 - Part2
"""
defmodule Board do
defstruct rows: [], cols: []
def new(lines) do
rows =
lines
|> Enum.map(fn line ->
line |> String.split(" ", trim: true) |> Enum.map(&String.to_integer/1)
end)
cols =
rows
... | 23.7625 | 81 | 0.567596 |
7411fa12e9468394886224f6f0ea0a35785df13b | 19,679 | ex | Elixir | tests/syntax_test_strings.ex | elixir-sublime/elixir-sublime-syntax | 5f8aae15bfe5f12e31ec7a3509bc5619aa74babd | [
"MIT"
] | 3 | 2021-12-25T23:42:54.000Z | 2022-03-20T22:50:08.000Z | tests/syntax_test_strings.ex | elixir-sublime/elixir-sublime-syntax | 5f8aae15bfe5f12e31ec7a3509bc5619aa74babd | [
"MIT"
] | 9 | 2021-10-12T01:01:00.000Z | 2022-02-26T03:57:14.000Z | tests/syntax_test_strings.ex | elixir-sublime/elixir-sublime-syntax | 5f8aae15bfe5f12e31ec7a3509bc5619aa74babd | [
"MIT"
] | null | null | null | # SYNTAX TEST "Elixir.sublime-syntax"
# Strings
""
# ^ punctuation.definition.string.end
#^ punctuation.definition.string.begin
#^^ meta.string.elixir string.quoted.double.elixir
''
#^^ meta.string.elixir string.quoted.single.elixir
<<>>
#^^^^ meta.string.binary.elixir string.other.binary.elixir
"""
#^^^ meta.str... | 29.067947 | 104 | 0.513034 |
741229a93abec0504817561a2f34058654ceeed7 | 11,771 | ex | Elixir | clients/search_console/lib/google_api/search_console/v1/api/sites.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/search_console/lib/google_api/search_console/v1/api/sites.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/search_console/lib/google_api/search_console/v1/api/sites.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... | 45.801556 | 196 | 0.620848 |
7412416a359e0122473dc84b8e28748409a5f1f3 | 66 | exs | Elixir | test/test_helper.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | null | null | null | test/test_helper.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | 3 | 2020-07-17T03:56:23.000Z | 2021-05-09T00:04:45.000Z | test/test_helper.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Epcc.Repo, :manual)
| 22 | 50 | 0.772727 |
74128c0ba65c4ee40f6ddc3a6c43705b19c1d567 | 2,158 | ex | Elixir | lib/data/save/config.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/save/config.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/save/config.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Save.Config do
@moduledoc """
Helpers for the player's configuration
"""
alias Data.Color
alias Game.ColorCodes
@doc """
Determine if a string is a configuration option
"""
@spec option?(String.t() | atom()) :: boolean()
def option?(config) do
case to_string(config) do
"pr... | 19.981481 | 97 | 0.581557 |
7412a14691f5e491578e318174c1bb1dd9b5a497 | 1,621 | ex | Elixir | lib/chaperon/export/json.ex | hasclass/chaperon | d63e68033a354dd43491c76cd8afc30241422015 | [
"MIT"
] | null | null | null | lib/chaperon/export/json.ex | hasclass/chaperon | d63e68033a354dd43491c76cd8afc30241422015 | [
"MIT"
] | null | null | null | lib/chaperon/export/json.ex | hasclass/chaperon | d63e68033a354dd43491c76cd8afc30241422015 | [
"MIT"
] | null | null | null | defmodule Chaperon.Export.JSON do
@moduledoc """
JSON metrics export module.
"""
@behaviour Chaperon.Exporter
alias Chaperon.Scenario.Metrics
@columns [
:total_count,
:max,
:mean,
:min
] ++ for(p <- Metrics.percentiles(), do: {:percentile, p}... | 21.613333 | 84 | 0.529303 |
7412e771cd21f1c479a3ab96ef55c4937cddfc89 | 2,087 | exs | Elixir | test/top5_2/accounts/accounts_test.exs | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | test/top5_2/accounts/accounts_test.exs | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 2 | 2021-03-09T09:26:25.000Z | 2021-05-09T08:58:51.000Z | test/top5_2/accounts/accounts_test.exs | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | null | null | null | defmodule Top52.AccountsTest do
use Top52.DataCase
alias Top52.Accounts
describe "users" do
alias Top52.Accounts.User
@valid_attrs %{username: "some username", email: "test@test.com", password: "password123"}
@update_attrs %{username: "some updated username", email: "newtest@test.com"}
@invalid... | 31.149254 | 94 | 0.656445 |
74130a11ca7ad8ffc5147fea6313b46560b48d79 | 3,219 | exs | Elixir | test/integration/uniqueness_test.exs | rockwood/oban | 34d3b159b4cfb73a76aa081f64fcb2a1c28dc129 | [
"Apache-2.0"
] | null | null | null | test/integration/uniqueness_test.exs | rockwood/oban | 34d3b159b4cfb73a76aa081f64fcb2a1c28dc129 | [
"Apache-2.0"
] | null | null | null | test/integration/uniqueness_test.exs | rockwood/oban | 34d3b159b4cfb73a76aa081f64fcb2a1c28dc129 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.UniquenessTest do
use Oban.Case
import Ecto.Query
alias Ecto.Multi
@moduletag :integration
@oban_opts repo: Repo, queues: [alpha: 5]
defmodule UniqueWorker do
use Oban.Worker, queue: :upsilon, unique: [period: 30]
@impl Worker
def perform(_args, _job), do: :ok
... | 31.871287 | 94 | 0.612302 |
74134670574f342ed73ebbe9478a0a1682673819 | 38 | ex | Elixir | lib/conreality/machinery.ex | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 2 | 2015-09-23T19:18:50.000Z | 2015-09-24T21:08:13.000Z | lib/conreality/machinery.ex | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 3 | 2015-09-24T20:38:41.000Z | 2015-09-26T21:26:49.000Z | lib/conreality/machinery.ex | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | null | null | null | defmodule Conreality.Machinery do
end
| 12.666667 | 33 | 0.868421 |
74134cc047cba2dd502b6a68330597d0380be719 | 6,290 | ex | Elixir | farmbot_core/lib/farmbot_core/asset_workers/pin_binding_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_core/lib/farmbot_core/asset_workers/pin_binding_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset_workers/pin_binding_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.PinBinding do
@moduledoc """
Worker for monitoring hardware GPIO. (not related to the mcu firmware.)
Upon a button trigger, a `sequence`, or `special_action` will be executed by
the CeleryScript Runtime.
This module also defines a behaviour that allow... | 32.25641 | 107 | 0.681876 |
74137972c2ba7932365407e642ab81fcbda172c0 | 2,858 | exs | Elixir | test/meeseeks/result_test.exs | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | test/meeseeks/result_test.exs | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | test/meeseeks/result_test.exs | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.ResultTest do
use ExUnit.Case
doctest Meeseeks.Result
alias Meeseeks.Result
@document Meeseeks.Parser.parse("""
<!DOCTYPE html>
<html>
<head></head>
<body>
<div class="main">
0
<special:p... | 29.163265 | 209 | 0.582925 |
7413978ba6dcc9a5734d0e2ed1d4ff13d7d42d48 | 1,296 | exs | Elixir | test/stripe/issuing/cardholder_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | test/stripe/issuing/cardholder_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | test/stripe/issuing/cardholder_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.Issuing.CardholderTest do
use Stripe.StripeCase, async: true
test "is creatable" do
params = %{
name: "Jenny Rosen",
type: :individual,
billing: %{
address: %{
line1: "123 Fake St",
line2: "Apt 3",
city: "Beverly Hills",
state: ... | 28.173913 | 94 | 0.637346 |
7413ca258ca3aa184b39c04229d469e448ea1136 | 8,316 | exs | Elixir | test/helper/converter/md_to_editor_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | test/helper/converter/md_to_editor_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | test/helper/converter/md_to_editor_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | null | null | null | defmodule GroupherServer.Test.Helper.Converter.MdToEditor do
@moduledoc """
parse markdown string to editorjs's json format
"""
use GroupherServerWeb.ConnCase, async: true
alias Helper.Converter.MdToEditor, as: Converter
alias Helper.Converter.EditorToHTML
alias Helper.Converter.EditorToHTML.Class
@ro... | 31.740458 | 138 | 0.425926 |
7413d3c636b50a2e85518657b1c90af23cd3f453 | 17,599 | ex | Elixir | lib/protox/define_decoder.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | lib/protox/define_decoder.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | lib/protox/define_decoder.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | defmodule Protox.DefineDecoder do
@moduledoc false
# Internal. Generates the decoder of a message.
use Protox.{
Float,
WireTypes
}
def define(msg_name, fields, required_fields, opts \\ []) do
set_fields_var = quote do: set_fields
{keep_unknown_fields, _opts} = Keyword.pop(opts, :keep_unknow... | 31.59605 | 97 | 0.65481 |
7413dda0238b0b938890380ada0c918618a83290 | 1,280 | exs | Elixir | mix.exs | voughtdq/recurring_events | 93bc1ce12f20d18c6ba9decb33a74bf8619fab0e | [
"MIT"
] | 21 | 2017-01-11T00:02:46.000Z | 2020-12-28T15:59:04.000Z | mix.exs | voughtdq/recurring_events | 93bc1ce12f20d18c6ba9decb33a74bf8619fab0e | [
"MIT"
] | 20 | 2017-04-11T20:39:55.000Z | 2021-09-18T09:20:44.000Z | mix.exs | voughtdq/recurring_events | 93bc1ce12f20d18c6ba9decb33a74bf8619fab0e | [
"MIT"
] | 9 | 2017-04-11T19:31:20.000Z | 2020-10-14T18:36:27.000Z | defmodule RecurringEvents.Mixfile do
use Mix.Project
def project do
[
app: :recurring_events,
version: "0.4.0",
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
description: description(),
docs: [
... | 22.857143 | 78 | 0.59375 |
7413f8ceca1e2f45ac36b5f9c2434103e04a50df | 546 | ex | Elixir | lib/ofh_web/views/changeset_view.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh_web/views/changeset_view.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh_web/views/changeset_view.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | defmodule OfhWeb.ChangesetView do
use OfhWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`OfhWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changeset, &translate_err... | 27.3 | 65 | 0.732601 |
7413faeb6b65f95c4bf5c8c8cf3a70e5fcdabc8a | 3,665 | exs | Elixir | lib/elixir/test/elixir/access_test.exs | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/access_test.exs | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/access_test.exs | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule AccessTest do
use ExUnit.Case, async: true
doctest Access
# Test nil at compilation time does not fail
# and that @config[:foo] has proper precedence.
@config nil
nil = @config[:foo]
@config [foo: :bar]
:bar = @config[:foo]
@mod :lists
[1, ... | 33.018018 | 142 | 0.581719 |
74141314af859c73c70fe969a9c7fc2c0546cf5f | 3,600 | ex | Elixir | lib/quantum_storage_ets.ex | AndreOrlov/quantum-storage-persistent-ets | 888502d9a427c7a1c66b588077be33112aebd658 | [
"Apache-2.0"
] | 6 | 2020-07-23T18:16:12.000Z | 2021-06-05T15:13:36.000Z | lib/quantum_storage_ets.ex | AndreOrlov/quantum-storage-persistent-ets | 888502d9a427c7a1c66b588077be33112aebd658 | [
"Apache-2.0"
] | 9 | 2018-03-22T11:40:55.000Z | 2020-02-28T16:48:03.000Z | lib/quantum_storage_ets.ex | AndreOrlov/quantum-storage-persistent-ets | 888502d9a427c7a1c66b588077be33112aebd658 | [
"Apache-2.0"
] | 1 | 2021-03-11T08:54:31.000Z | 2021-03-11T08:54:31.000Z | defmodule QuantumStoragePersistentEts do
@moduledoc """
`PersistentEts` based implementation of a `Quantum.Storage`.
"""
use GenServer
require Logger
alias __MODULE__.State
@behaviour Quantum.Storage
@doc false
def start_link(opts),
do: GenServer.start_link(__MODULE__, opts, opts)
@doc fal... | 24 | 107 | 0.643611 |
74141cbed96291381c2c8e46184fe1e55e5c70f6 | 1,122 | ex | Elixir | lib/ports/js/generic_port.ex | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 26 | 2017-03-04T20:07:09.000Z | 2018-08-15T10:16:06.000Z | lib/ports/js/generic_port.ex | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 18 | 2017-03-18T13:59:31.000Z | 2018-09-06T10:08:33.000Z | lib/ports/js/generic_port.ex | metachaos-systems/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 9 | 2017-03-16T19:02:04.000Z | 2018-06-02T23:44:52.000Z | defmodule Exos.Proc do
use GenServer
@moduledoc """
Generic port as gen_server wrapper :
send a message at init, first message is remote initial state
cast and call encode and decode erlang binary format
"""
def start_link(args, options \\ []) do
# FIXME GolosJS name should be configured in the ... | 37.4 | 82 | 0.683601 |
74142491818be8f6066e830e32b9175b38a14e71 | 3,032 | ex | Elixir | lib/poxa.ex | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 742 | 2015-01-02T14:27:45.000Z | 2022-03-17T06:42:52.000Z | lib/poxa.ex | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 126 | 2015-02-08T04:39:53.000Z | 2022-01-02T14:43:27.000Z | lib/poxa.ex | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 105 | 2015-01-28T20:41:40.000Z | 2022-02-14T07:48:50.000Z | defmodule Poxa do
@moduledoc """
This application is a server that understands the Pusher Protocol
More info at: http://pusher.com/docs/pusher_protocol
"""
use Application
require Logger
@registry_adapter Poxa.Registry.adapter()
def registry, do: @registry_adapter
def start(_type, _args) do
dis... | 31.583333 | 94 | 0.612797 |
74146a8e9e919b01c24a9f1c711bde19bf75db6d | 2,035 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list_warning_data.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... | 40.7 | 527 | 0.745946 |
741474ec4c88775faae01ae7615fd40e9b91635b | 2,327 | exs | Elixir | mix.exs | joshuataylor/phoenix_live_view | 4b4023c07b5c082505961139c4a5c92045c95e23 | [
"MIT"
] | 1 | 2020-07-26T12:20:43.000Z | 2020-07-26T12:20:43.000Z | mix.exs | mcrumm/phoenix_live_view | ff2313f42444c27e7652ebc5e4ee94ffa619bf85 | [
"MIT"
] | null | null | null | mix.exs | mcrumm/phoenix_live_view | ff2313f42444c27e7652ebc5e4ee94ffa619bf85 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.MixProject do
use Mix.Project
@version "0.12.1"
def project do
[
app: :phoenix_live_view,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: compilers(Mix.env()),
p... | 24.239583 | 99 | 0.59003 |
7414761928d86dc489bfa13252ad40998a390fe1 | 485 | exs | Elixir | spec/shared/check_error_shared_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | spec/shared/check_error_shared_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | spec/shared/check_error_shared_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule CheckErrorSharedSpec do
use ESpec, shared: true
it "checks error" do
try do
shared[:expectation].()
rescue
error in [ESpec.AssertionError] ->
expect(error.message) |> to(eq shared[:message])
case shared[:extra] do
nil -> :ok
true -> expect(error.ex... | 24.25 | 57 | 0.573196 |
741476850ca9848bd1d810f5878fac1be7da4b8b | 64,197 | exs | Elixir | test/ecto/adapters/postgres_test.exs | chulkilee/ecto_sql | ba4627f1d1ad7af849eaf53041b27d7c45a8ccd2 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | chulkilee/ecto_sql | ba4627f1d1ad7af849eaf53041b27d7c45a8ccd2 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | chulkilee/ecto_sql | ba4627f1d1ad7af849eaf53041b27d7c45a8ccd2 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.PostgresTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Queryable
alias Ecto.Adapters.Postgres.Connection, as: SQL
defmodule Schema do
use Ecto.Schema
schema "schema" do
field :x, :integer
field :y, :integer
field :z, :integer
field... | 43.493902 | 172 | 0.574201 |
7414858e48fc1fdf66d055ac6984e0af5c367f25 | 2,498 | exs | Elixir | config/prod.exs | floriank/react_relay_kitten_uploader | 1b8988bdf9fe01a263dc59097652ddb2c50520f6 | [
"MIT"
] | 3 | 2020-02-25T16:49:06.000Z | 2020-04-24T03:14:11.000Z | config/prod.exs | floriank/react_relay_kitten_uploader | 1b8988bdf9fe01a263dc59097652ddb2c50520f6 | [
"MIT"
] | 3 | 2021-03-09T03:17:50.000Z | 2021-09-01T04:37:12.000Z | config/prod.exs | floriank/react_relay_kitten_uploader | 1b8988bdf9fe01a263dc59097652ddb2c50520f6 | [
"MIT"
] | 2 | 2019-05-06T08:27:54.000Z | 2021-10-05T20:33:30.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 34.694444 | 69 | 0.718975 |
74149f768bb32eeb8ce072f7aeb6fd87fff97d3e | 2,105 | ex | Elixir | lib/codes/codes_j12.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j12.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j12.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_J12 do
alias IcdCode.ICDCode
def _J120 do
%ICDCode{full_code: "J120",
category_code: "J12",
short_code: "0",
full_name: "Adenoviral pneumonia",
short_name: "Adenoviral pneumonia",
category_name: "Adenoviral pneumonia"
}
... | 30.071429 | 71 | 0.609026 |
7414c9a7c3f967c4cdcd1246091bf7babb27db9d | 681 | ex | Elixir | lib/sanbase_web/controllers/cryptocompare_asset_mapping_controller.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/controllers/cryptocompare_asset_mapping_controller.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/controllers/cryptocompare_asset_mapping_controller.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.CryptocompareAssetMappingController do
use SanbaseWeb, :controller
alias Sanbase.Model.Project
require Logger
def data(conn, _params) do
cache_key = {__MODULE__, __ENV__.function} |> Sanbase.Cache.hash()
data = Sanbase.Cache.get_or_store(cache_key, &get_data/0)
conn
|> pu... | 28.375 | 73 | 0.696035 |
7414e93839cad9873d135dea8b72fab315ca0628 | 866 | exs | Elixir | mix.exs | alephao/brazilian-utils-elixir | 37574b9a8fa6f9601e3fbfe4411ef5954a96806c | [
"MIT"
] | 1 | 2021-04-27T19:16:06.000Z | 2021-04-27T19:16:06.000Z | mix.exs | alephao/brazilian-utils-elixir | 37574b9a8fa6f9601e3fbfe4411ef5954a96806c | [
"MIT"
] | null | null | null | mix.exs | alephao/brazilian-utils-elixir | 37574b9a8fa6f9601e3fbfe4411ef5954a96806c | [
"MIT"
] | null | null | null | defmodule BrazilianUtils.MixProject do
use Mix.Project
def project do
[
app: :brazilian_utils,
version: "0.2.0",
description: "Utilities library for Brazilian Businesses",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package()
] ++... | 20.619048 | 79 | 0.558891 |
7414fc668601e91e5ae6dcbc21d75974f6b8d69c | 1,260 | ex | Elixir | lib/scenic/primitive/scene_ref.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/scene_ref.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/scene_ref.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 3/16/18.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.SceneRef do
use Scenic.Primitive
# ============================================================================
# data verification and serialization
# ---------------------------... | 36 | 88 | 0.498413 |
74153f6cfad7866cb33fc6ef14fb11f77a62c850 | 241 | ex | Elixir | lib/phone/es/sa.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/es/sa.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/es/sa.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.ES.SA do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(34)(923|823)(.{6})$/
def area_name, do: "Salamanca"
def area_type, do: "province"
def area_abbreviation, do: "SA"
matcher(["34923", "34823"])
end
| 18.538462 | 42 | 0.647303 |
74154b783d07bd733ef2b100e59a676bdc18340d | 6,384 | ex | Elixir | lib/ex_minimatch.ex | bucha/ex_minimatch | 3cf358f9a6fcf6c3d39951c22ba202a58c3338d5 | [
"MIT"
] | 12 | 2015-04-07T12:55:50.000Z | 2020-03-08T20:40:15.000Z | lib/ex_minimatch.ex | bucha/ex_minimatch | 3cf358f9a6fcf6c3d39951c22ba202a58c3338d5 | [
"MIT"
] | 1 | 2018-03-30T10:53:31.000Z | 2018-03-30T10:53:31.000Z | lib/ex_minimatch.ex | bucha/ex_minimatch | 3cf358f9a6fcf6c3d39951c22ba202a58c3338d5 | [
"MIT"
] | 8 | 2015-04-09T22:56:59.000Z | 2021-12-09T11:28:07.000Z | defmodule ExMinimatch do
@moduledoc """
ExMinimatch
===========
Globbing paths without walking the tree! Elixir and Erlang provide `wildcard`
functions in the stdlib. But these will walk the directory tree. If you simply
want to test whether a file path matches a glob, ExMinimatch is for you.
Quick exa... | 29.831776 | 109 | 0.654135 |
7415526485393983e54b27e1adce87dd189a461d | 1,685 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/registry_credential.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/registry_credential.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/registry_credential.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 35.104167 | 133 | 0.765579 |
74155d51a083bacd5fc944a8ed695de4c5c914a1 | 5,602 | ex | Elixir | lib/broadway_cloud_pub_sub/acknowledger.ex | fersandiP/broadway_cloud_pub_sub | 3122585fe45e34206ed10d0c73399563836f0271 | [
"Apache-2.0"
] | null | null | null | lib/broadway_cloud_pub_sub/acknowledger.ex | fersandiP/broadway_cloud_pub_sub | 3122585fe45e34206ed10d0c73399563836f0271 | [
"Apache-2.0"
] | null | null | null | lib/broadway_cloud_pub_sub/acknowledger.ex | fersandiP/broadway_cloud_pub_sub | 3122585fe45e34206ed10d0c73399563836f0271 | [
"Apache-2.0"
] | null | null | null | defmodule BroadwayCloudPubSub.Acknowledger do
@moduledoc false
alias Broadway.{Acknowledger, TermStorage}
alias BroadwayCloudPubSub.Client
@behaviour Acknowledger
@typedoc """
Acknowledgement data for a `Broadway.Message`.
"""
@type ack_data :: %{
:ack_id => Client.ack_id(),
option... | 32.381503 | 110 | 0.679043 |
741572c266430883a5b70573d672f0f91c4b1fc5 | 2,372 | ex | Elixir | test/support/conn_case.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | test/support/conn_case.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | test/support/conn_case.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlannerWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts wit... | 30.410256 | 127 | 0.653879 |
741575a4dcbe331f064f2f328d14bfbe1ff372f8 | 1,827 | exs | Elixir | phoenix_commerce/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_commerce/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_commerce/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule PhoenixCommerce.Mixfile do
use Mix.Project
def project do
[app: :phoenix_commerce,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :... | 26.867647 | 78 | 0.597154 |
7415820ebe40f0f10209a96f0ab53f38bd88540d | 1,541 | exs | Elixir | apps/grapevine/priv/repo/seeds.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/grapevine/priv/repo/seeds.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/grapevine/priv/repo/seeds.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | alias GrapevineData.Accounts
alias GrapevineData.Channels
alias GrapevineData.Games
alias GrapevineData.Repo
{:ok, channel} = Channels.create(%{name: "gossip"})
channel
|> Ecto.Changeset.change(%{hidden: false})
|> Repo.update!()
{:ok, channel} = Channels.create(%{name: "testing"})
channel
|> Ecto.Changeset.change(%{h... | 26.568966 | 135 | 0.690461 |
74158f7cf9e5ebd9ee455618366595bf2fe04cab | 140 | ex | Elixir | web/controllers/tp_supplier_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_supplier_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_supplier_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpSupplierImportJobController do
use CgratesWebJsonapi.CsvImportJob, module: CgratesWebJsonapi.TpSupplier
end
| 35 | 74 | 0.892857 |
7415b56afe8e2ad55795dbf7da4e583e8bcedeb1 | 792 | ex | Elixir | lib/battle_city/protocols/object.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | lib/battle_city/protocols/object.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | 38 | 2020-12-17T12:40:44.000Z | 2022-03-31T02:05:59.000Z | lib/battle_city/protocols/object.ex | clszzyh/battle_city | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | defprotocol Object do
@type t :: %__MODULE__{
type: BattleCity.short_type(),
id: BattleCity.id(),
enemy?: boolean() | nil
}
@type kv :: {t, value}
@type value :: BattleCity.Position.direction() | nil
@enforce_keys [:type, :id]
defstruct [:type, :id, :enemy?]
@spec fing... | 24.75 | 61 | 0.614899 |
7415e1ea17805cd26c982df56ec026edd60a2846 | 20,606 | ex | Elixir | lib/cldr/interval/date_time.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/interval/date_time.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/interval/date_time.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.DateTime.Interval do
@moduledoc """
Interval formats allow for software to format intervals like "Jan 10-12, 2008" as a
shorter and more natural format than "Jan 10, 2008 - Jan 12, 2008". They are designed
to take a start and end date, time or datetime plus a formatting pattern
and use that inf... | 33.615008 | 106 | 0.676502 |
74161b71a53cae47007ab88f2744b93e99259e38 | 1,123 | ex | Elixir | programming/elixir/conduit/lib/conduit_web/controllers/favorite_article_controller.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/lib/conduit_web/controllers/favorite_article_controller.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/lib/conduit_web/controllers/favorite_article_controller.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule ConduitWeb.FavoriteArticleController do
use ConduitWeb, :controller
use Guardian.Phoenix.Controller
alias Conduit.Blog
alias Conduit.Blog.Projections.Article
alias ConduitWeb.ArticleView
plug Guardian.Plug.EnsureAuthenticated, %{handler: ConduitWeb.ErrorHandler} when action in [:create, :delete]... | 33.029412 | 111 | 0.710597 |
74161c48319558bf9f4abce0097c3a2409a99c8b | 666 | ex | Elixir | lib/hexpm/accounts/password_reset.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm/accounts/password_reset.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm/accounts/password_reset.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Accounts.PasswordReset do
use Hexpm.Schema
schema "password_resets" do
field :key, :string
field :primary_email, :string
belongs_to :user, User
timestamps(updated_at: false)
end
def changeset(reset, user) do
change(reset, %{
key: Auth.gen_key(),
primary_email: ... | 24.666667 | 74 | 0.696697 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.