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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
979c47722d83d7db39998310a2e12c868b6dfd95 | 1,972 | ex | Elixir | lib/core/counter.ex | c-brenn/telemetry_metrics_prometheus_core | cd8bea3df0c0b4c6aaad5c2b7d42760cbadf0c07 | [
"Apache-2.0"
] | null | null | null | lib/core/counter.ex | c-brenn/telemetry_metrics_prometheus_core | cd8bea3df0c0b4c6aaad5c2b7d42760cbadf0c07 | [
"Apache-2.0"
] | null | null | null | lib/core/counter.ex | c-brenn/telemetry_metrics_prometheus_core | cd8bea3df0c0b4c6aaad5c2b7d42760cbadf0c07 | [
"Apache-2.0"
] | null | null | null | defmodule TelemetryMetricsPrometheus.Core.Counter do
@moduledoc false
alias Telemetry.Metrics
alias TelemetryMetricsPrometheus.Core.EventHandler
@type config :: %{
keep: Metrics.keep(),
measurement: atom(),
metric_name: String.t(),
name: Metrics.normalized_metric_name()... | 29.432836 | 87 | 0.575051 |
979c66b1d70aae4decb6614ff0032c1e100c6904 | 442 | ex | Elixir | lib/upstream/b2/delete.ex | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 5 | 2018-02-16T15:32:41.000Z | 2020-03-31T10:55:24.000Z | lib/upstream/b2/delete.ex | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 8 | 2017-07-12T04:27:31.000Z | 2017-12-26T06:30:47.000Z | lib/upstream/b2/delete.ex | upmaru/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 2 | 2018-02-16T15:32:45.000Z | 2018-03-04T12:11:57.000Z | defmodule Upstream.B2.Delete do
@moduledoc """
Handles Deletion of Files
"""
alias Upstream.B2.Account.Authorization
alias Upstream.B2.Delete.{
FileVersion
}
@spec file_version(Authorization.t(), any(), any()) :: {:error, struct} | {:ok, struct}
def file_version(auth, file_name, file_id) do
F... | 19.217391 | 89 | 0.628959 |
979c681452f535940119c20e3f7eacd600ac4bf9 | 397 | exs | Elixir | priv/repo/migrations/20160413171353_add_repositories_table.exs | inaka/credo_server | fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa | [
"Apache-2.0"
] | 12 | 2016-05-27T23:37:37.000Z | 2019-11-09T04:03:03.000Z | priv/repo/migrations/20160413171353_add_repositories_table.exs | inaka/credo_server | fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa | [
"Apache-2.0"
] | 18 | 2016-05-27T14:57:30.000Z | 2016-09-20T17:05:22.000Z | priv/repo/migrations/20160413171353_add_repositories_table.exs | inaka/credo_server | fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa | [
"Apache-2.0"
] | 1 | 2019-11-09T04:03:06.000Z | 2019-11-09T04:03:06.000Z | defmodule CredoServer.Repo.Migrations.AddRepositoriesTable do
use Ecto.Migration
def change do
create table(:repositories) do
add :user_id, references(:users)
add :github_id, :integer
add :name, :string
add :full_name, :string
add :html_url, :string
add :private, :boolean, d... | 22.055556 | 61 | 0.662469 |
979c735dfc231bb28a2f31317c6c7771e6e72335 | 631 | exs | Elixir | apps/forklift/config/dev.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/forklift/config/dev.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/forklift/config/dev.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :forklift,
topic_writer: MockTopic,
table_writer: MockTable,
message_processing_cadence: 15_000,
user: "forklift"
config :prestige, :session_opts, url: "http://127.0.0.1:8080"
config :redix,
args: [host: "localhost"]
config :forklift, :brook,
instance: :forklift,
handlers: [Forkl... | 19.121212 | 61 | 0.638669 |
979c8524ba1d053c1f0ceee4de97bede56927e5d | 2,339 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/person_name.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/person_name.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/person_name.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... | 37.126984 | 142 | 0.71056 |
979cba8f6affbf5176cb1a72c632fd917c9446d7 | 1,498 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_add_fulfillment_places_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_add_fulfillment_places_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_add_fulfillment_places_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.87234 | 150 | 0.777036 |
979cc310a8ceb20cc50e05db00e5c47abaceb1a8 | 4,232 | exs | Elixir | config/config.exs | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | config/config.exs | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | config/config.exs | Simon-Initiative/oli-torus | 7f3eaeaa18ca8837e5afbff3e8899ae13b49de8b | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.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
config :elixir, :time_zone_database, Tzdata.Time... | 32.806202 | 97 | 0.734877 |
979cc58fd7e0fcb8267858b7e8f8aa32c28f575b | 8,978 | ex | Elixir | deps/phoenix_ecto/lib/phoenix_ecto/html.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/phoenix_ecto/lib/phoenix_ecto/html.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/phoenix_ecto/lib/phoenix_ecto/html.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Phoenix.HTML) do
defimpl Phoenix.HTML.FormData, for: Ecto.Changeset do
def to_form(%Ecto.Changeset{model: model, params: params} = changeset, opts) do
{name, opts} = Keyword.pop(opts, :name)
name = to_string(name || form_for_name(model))
%Phoenix.HTML.Form{
source... | 31.724382 | 113 | 0.571842 |
979cc902f9208fe9bcd9aa5191dd38b9f35866ff | 1,328 | exs | Elixir | mix.exs | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | 4 | 2018-05-17T09:56:51.000Z | 2022-02-26T21:24:47.000Z | mix.exs | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | null | null | null | mix.exs | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | null | null | null | defmodule PhxInPlace.Mixfile do
use Mix.Project
def project do
[
app: :phx_in_place,
version: "0.1.3",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
description: description(),
deps: deps(),
package: package(),
docs: docs(),
elixirc_paths: ["lib", "t... | 23.298246 | 79 | 0.59262 |
979cd9bfa8bca489860b703ef655efcd8f9d70b6 | 652 | ex | Elixir | lib/ex338_web/live/modal_component.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | lib/ex338_web/live/modal_component.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | lib/ex338_web/live/modal_component.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338Web.ModalComponent do
use Ex338Web, :live_component
@impl true
def render(assigns) do
~L"""
<div id="<%= @id %>" class="phx-modal"
phx-capture-click="close"
phx-window-keydown="close"
phx-key="escape"
phx-target="#<%= @id %>"
phx-page-loading>
<div clas... | 24.148148 | 82 | 0.590491 |
979cdd961d04d029f63ecda3ec92333323c5cd5d | 1,172 | exs | Elixir | test/phoenix/html_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | test/phoenix/html_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | test/phoenix/html_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | defmodule Phoenix.HTMLTest do
use ExUnit.Case, async: true
use RouterHelper
use Phoenix.HTML
doctest Phoenix.HTML
alias Phoenix.HTML.Safe
test "html_escape/1 entities" do
assert html_escape("foo") == {:safe, "foo"}
assert html_escape("<foo>") == {:safe, "<foo>"}
assert html_escape("\" &... | 28.585366 | 73 | 0.598976 |
979d04e2f773ab31bdea10f47c36f9e0d958dde3 | 1,937 | exs | Elixir | test/stripi/customers/sources_test.exs | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 7 | 2018-03-20T14:18:01.000Z | 2019-10-02T22:40:02.000Z | test/stripi/customers/sources_test.exs | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-03-12T16:37:39.000Z | 2019-03-12T18:28:03.000Z | test/stripi/customers/sources_test.exs | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-10-04T17:35:44.000Z | 2019-12-04T20:27:52.000Z | defmodule Stripi.Customers.SourcesTest do
use ExUnit.Case, async: false
alias Stripi.Customers
alias Stripi.Customers.Sources
@valid_credit_card_data %{source: "tok_amex"}
setup do
{:ok, customer} = Customers.create(%{email: "example@example.com"})
%{customer_id: customer["id"]}
end
test "shoul... | 41.212766 | 109 | 0.706247 |
979d6b703a9c61d1326b1e0aada158ad3a8399f1 | 2,095 | exs | Elixir | config/test.exs | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | 1 | 2019-10-13T10:56:28.000Z | 2019-10-13T10:56:28.000Z | config/test.exs | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | config/test.exs | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | import Config
web_port = 5000
config :bcrypt_elixir, log_rounds: 4
# Print only warnings and errors during test
config :logger, level: :warn
##
# NervesHub API
#
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :nerves_hub_api, NervesHubAPIWeb.Endpoint,
htt... | 26.858974 | 88 | 0.730788 |
979d9a4ced603fbef1057d69c0a30aa510f74267 | 105 | exs | Elixir | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}/config/config.exs | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}/config/config.exs | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}/config/config.exs | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | use Mix.Config
config :{{APP_NAME}}, ecto_repos: [{{MODULE_NAME}}.Repo]
import_config "#{Mix.env}.exs"
| 17.5 | 56 | 0.695238 |
979da05e39e8d416eab975911eb2526b300dd852 | 17 | ex | Elixir | testData/org/elixir_lang/parser_definition/interpolated_regex_line_parsing_test_case/Chevrons.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/interpolated_regex_line_parsing_test_case/Chevrons.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/interpolated_regex_line_parsing_test_case/Chevrons.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~r<{}[]<\>"/()|'> | 17 | 17 | 0.058824 |
979da52c1ea7f13781746e448397ca56bc2f7585 | 1,871 | ex | Elixir | lib/oban/migrations/v10.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | 2,219 | 2019-04-10T01:50:19.000Z | 2022-03-30T11:20:01.000Z | lib/oban/migrations/v10.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | 532 | 2019-05-16T00:22:28.000Z | 2022-03-31T19:04:02.000Z | lib/oban/migrations/v10.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | 230 | 2019-05-15T14:15:18.000Z | 2022-03-23T22:59:43.000Z | defmodule Oban.Migrations.V10 do
@moduledoc false
use Ecto.Migration
def up(%{prefix: prefix}) do
# These didn't have defaults out of consideration for older PG versions
alter table(:oban_jobs, prefix: prefix) do
modify :args, :map, default: %{}
modify :priority, :integer, null: false
en... | 34.648148 | 93 | 0.658471 |
979dab056a8f9ce9646af1aef4a13e64b8fa7330 | 4,539 | exs | Elixir | test/xml_parser_test.exs | milendd/xslt_parser | 91f870d86184180a8c05d2e85aa1138f46e0606d | [
"MIT"
] | null | null | null | test/xml_parser_test.exs | milendd/xslt_parser | 91f870d86184180a8c05d2e85aa1138f46e0606d | [
"MIT"
] | null | null | null | test/xml_parser_test.exs | milendd/xslt_parser | 91f870d86184180a8c05d2e85aa1138f46e0606d | [
"MIT"
] | null | null | null | defmodule XmlParserTest do
use ExUnit.Case
doctest XmlParser
# TODO: add local-name() and namespaces
# TODO: add more functions from xpath
# TODO: add wildcards
test "can extract simple node with xpath" do
simple_xml = "<person ref=\"1234\"><name title=\"\">pesho</name></person>"
# extract text f... | 37.204918 | 92 | 0.667989 |
979dcbb72641bd28f583bb6c97c23d65a84899b4 | 2,614 | exs | Elixir | test/mock_transport_test.exs | lorantkurthy/elixir-janus | 3c468b91445f8bcddc58fe7c5356ddc6da625c9e | [
"Apache-2.0"
] | 8 | 2020-10-06T01:01:19.000Z | 2022-01-22T06:06:51.000Z | test/mock_transport_test.exs | lorantkurthy/elixir-janus | 3c468b91445f8bcddc58fe7c5356ddc6da625c9e | [
"Apache-2.0"
] | 12 | 2020-08-24T14:47:34.000Z | 2020-10-05T08:03:56.000Z | test/mock_transport_test.exs | lorantkurthy/elixir-janus | 3c468b91445f8bcddc58fe7c5356ddc6da625c9e | [
"Apache-2.0"
] | 3 | 2020-11-06T18:44:16.000Z | 2022-03-17T08:14:59.000Z | defmodule Janus.Mock.TransportTest do
use ExUnit.Case
alias Janus.Mock.Transport, as: MockTransport
@request_response_pairs [
{
%{
janus: :create
},
%{
"janus" => "success",
"data" => %{"id" => "session id"}
}
},
{
%{
janus: :keepalive
... | 21.966387 | 91 | 0.555853 |
979e0bf1572c8777a1b930459b417c98d1d7298d | 989 | exs | Elixir | inventory/config/config.exs | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | 2 | 2021-09-21T13:36:49.000Z | 2021-09-25T13:17:40.000Z | inventory/config/config.exs | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | null | null | null | inventory/config/config.exs | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :inventory, Inv... | 34.103448 | 86 | 0.775531 |
979e10cd6c9355892431ef36cb124696a39862de | 5,786 | ex | Elixir | lib/faktory_worker/job.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | null | null | null | lib/faktory_worker/job.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | null | null | null | lib/faktory_worker/job.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | null | null | null | defmodule FaktoryWorker.Job do
@moduledoc """
The `FaktoryWorker.Job` module is used to perform jobs in the background by sending to and fetching from Faktory.
To build a worker you must `use` the job module within a module in your application.
```elixir
defmodule MyApp.SomeWorker do
use FaktoryWorker.J... | 30.135417 | 129 | 0.705496 |
979e27f1cd90eca32936d840f5e396bb72bee4b6 | 201 | exs | Elixir | design/data_model_playground/priv/repo/migrations/20170208174751_make_user_username_unique.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | design/data_model_playground/priv/repo/migrations/20170208174751_make_user_username_unique.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | design/data_model_playground/priv/repo/migrations/20170208174751_make_user_username_unique.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule DataModelPlayground.Repo.Migrations.MakeUserUsernameUnique do
use Ecto.Migration
def change do
drop index(:users, [:username])
create unique_index(:users, [:username])
end
end
| 22.333333 | 71 | 0.756219 |
979e9bc643a621108beff00cff3f947e9b4196ec | 81 | ex | Elixir | backendElixir/lib/backendElixir_web/gettext.ex | deibsoncogo/NLW7Impulse | d530204a01085668d29e7bc303ba6263783283a1 | [
"MIT"
] | null | null | null | backendElixir/lib/backendElixir_web/gettext.ex | deibsoncogo/NLW7Impulse | d530204a01085668d29e7bc303ba6263783283a1 | [
"MIT"
] | null | null | null | backendElixir/lib/backendElixir_web/gettext.ex | deibsoncogo/NLW7Impulse | d530204a01085668d29e7bc303ba6263783283a1 | [
"MIT"
] | null | null | null | defmodule BackendElixirWeb.Gettext do
use Gettext, otp_app: :backendElixir
end
| 20.25 | 38 | 0.82716 |
979ebd3710231b5bef5ea16ce96770b9631fa332 | 2,354 | exs | Elixir | test/cachex/actions/export_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | test/cachex/actions/export_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | test/cachex/actions/export_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Actions.ExportTest do
use CachexCase
# This test verifies that it's possible to export the entries from a cache.
# As it stands, this is a barebones test to ensure the length of the export
# as it's covered more heavily by the test cases based on `dump/3`.
test "exporting records from a cach... | 34.617647 | 77 | 0.646134 |
979ebe83711d2117566a792df0f4d799eb036501 | 94 | exs | Elixir | test/ant_test.exs | renatoalmeidaoliveira/elixir-crawler | dc900bcd293344376aea906f7115585c0873a082 | [
"Apache-2.0"
] | null | null | null | test/ant_test.exs | renatoalmeidaoliveira/elixir-crawler | dc900bcd293344376aea906f7115585c0873a082 | [
"Apache-2.0"
] | null | null | null | test/ant_test.exs | renatoalmeidaoliveira/elixir-crawler | dc900bcd293344376aea906f7115585c0873a082 | [
"Apache-2.0"
] | null | null | null | defmodule AntTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 11.75 | 21 | 0.638298 |
979ecea359b307f68d6c25aaab833dbff38ddb9f | 793 | ex | Elixir | lib/level/spaces/space_user.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | lib/level/spaces/space_user.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | lib/level/spaces/space_user.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | defmodule Level.Spaces.SpaceUser do
@moduledoc """
The SpaceUser context.
"""
use Ecto.Schema
import Ecto.Changeset
alias Level.Spaces.Space
alias Level.Users.User
@type t :: %__MODULE__{}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "space_users" do
... | 20.868421 | 52 | 0.677175 |
979ef91c76d558c9942d0dcb12ad08e3de6ac53a | 347 | exs | Elixir | priv/repo/seeds.exs | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | 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:
#
# Naboo.Repo.insert!(%Naboo.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
979f06c970a6f06f8bbd346694f1f2eb566f2b03 | 1,694 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_short_id.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_short_id.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_short_id.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... | 33.88 | 145 | 0.732586 |
979f0f5dd411c0c29a87229bb9f740d5a0c48863 | 1,454 | ex | Elixir | apps/feedex_core/lib/feedex_core/metrics/inspect_handler.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_core/lib/feedex_core/metrics/inspect_handler.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_core/lib/feedex_core/metrics/inspect_handler.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | # defmodule FeedexCore.Metrics.InspectHandler do
#
# def setup do
# events = [
# [:vm, :memory],
# [:vm, :total_run_queue_lengths],
# [:feedex_core, :repo, :query],
# [:phoenix, :endpoint, :stop]
# ]
#
# :telemetry.attach_many(
# "inspect-reporter",
# events,
# &h... | 30.93617 | 86 | 0.46011 |
979f1b50639f33b3a768c04ac7b9598b950464c2 | 501 | ex | Elixir | lib/materia_batch_web/views/error_view.ex | karabiner-inc/materia_batch | 92508508e2cfcdf8c938093e5cdc5b11b730ca67 | [
"Apache-2.0"
] | null | null | null | lib/materia_batch_web/views/error_view.ex | karabiner-inc/materia_batch | 92508508e2cfcdf8c938093e5cdc5b11b730ca67 | [
"Apache-2.0"
] | 1 | 2019-12-13T06:26:50.000Z | 2019-12-13T06:26:55.000Z | lib/materia_batch_web/views/error_view.ex | karabiner-inc/materia_batch | 92508508e2cfcdf8c938093e5cdc5b11b730ca67 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaBatchWeb.ErrorView do
use MateriaBatchWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the tem... | 29.470588 | 61 | 0.740519 |
979f4bd6d68cfac69c8eb91bf067f96e2a832158 | 1,743 | ex | Elixir | lib/ash_postgres.ex | kingshalaby1/ash_postgres | 4aa76a522b85138860c7ec1f2e1a3d8b8fc833a3 | [
"MIT"
] | null | null | null | lib/ash_postgres.ex | kingshalaby1/ash_postgres | 4aa76a522b85138860c7ec1f2e1a3d8b8fc833a3 | [
"MIT"
] | null | null | null | lib/ash_postgres.ex | kingshalaby1/ash_postgres | 4aa76a522b85138860c7ec1f2e1a3d8b8fc833a3 | [
"MIT"
] | null | null | null | defmodule AshPostgres do
@moduledoc """
A postgres extension library for `Ash`.
`AshPostgres.DataLayer` provides a DataLayer, and a DSL extension to configure that data layer.
The dsl extension exposes the `postgres` section. See: `AshPostgres.DataLayer.postgres/1` for more.
"""
alias Ash.Dsl.Extension
... | 33.519231 | 110 | 0.73494 |
979f5bb350c7d8d05c7164baa03c5b02281f0c9e | 8,515 | exs | Elixir | .credo.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | .credo.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | .credo.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.35545 | 99 | 0.586494 |
979f88596649e1f65edfb5ff90039106eba07f34 | 1,904 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/diagnostics.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/diagnostics.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/diagnostics.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... | 37.333333 | 244 | 0.749475 |
979f99243087d0584e04e8507274eac6bc885df6 | 603 | ex | Elixir | lib/rate_limit_app.ex | tmcgilchrist/rate_limit | 11fccefc000cc8dfd731c192d486f9626e1d716f | [
"BSD-3-Clause"
] | null | null | null | lib/rate_limit_app.ex | tmcgilchrist/rate_limit | 11fccefc000cc8dfd731c192d486f9626e1d716f | [
"BSD-3-Clause"
] | null | null | null | lib/rate_limit_app.ex | tmcgilchrist/rate_limit | 11fccefc000cc8dfd731c192d486f9626e1d716f | [
"BSD-3-Clause"
] | null | null | null | defmodule RateLimitApp do
@moduledoc """
Application wrapper for RateLimit
"""
use Application
def start(_type, _args) do
dispatch = :cowboy_router.compile([
{:_,
[
{"/", RateLimitHttp, []}
]}
])
{:ok, _} = :cowboy.start_clear(
:http,
[{:port, 8080}],
... | 17.228571 | 53 | 0.552239 |
979fac04df7db841c7cf90b11a834c8ca133d436 | 3,707 | exs | Elixir | test/suite/draft7/pattern_properties_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft7/pattern_properties_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft7/pattern_properties_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft7.PatternPropertiesTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "patternProperties validates properties matching a regex" do
setup do
%{schema: Xema.new(pattern_properties: %{"f.*o" => :integer})}
end
test "a single valid match is valid", %{schem... | 26.29078 | 90 | 0.59509 |
979fbe82e619e55c857db039de7a01d260b107d1 | 681 | exs | Elixir | config/test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | config/test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | config/test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :plausible, PlausibleWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Reduce bcrypt rounds to speed up test suite
con... | 24.321429 | 56 | 0.753304 |
979fcb554135e7ac354614d62b7dd53fbb2027b2 | 6,188 | ex | Elixir | lib/pow/phoenix/routes.ex | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | 1 | 2021-06-25T10:36:01.000Z | 2021-06-25T10:36:01.000Z | lib/pow/phoenix/routes.ex | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | null | null | null | lib/pow/phoenix/routes.ex | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | null | null | null | defmodule Pow.Phoenix.Routes do
@moduledoc """
Module that handles routes.
## Usage
defmodule MyAppWeb.Pow.Routes do
use Pow.Phoenix.Routes
alias MyAppWeb.Router.Helpers, as: Routes
@impl true
def after_sign_out_path(conn), do: Routes.some_path(conn, :index)
end
U... | 34.187845 | 113 | 0.689237 |
979fd22e139b7da13fa3fdb432f20402c5a5bceb | 509 | ex | Elixir | lib/commcare_api/config.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | lib/commcare_api/config.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | lib/commcare_api/config.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | defmodule CommcareAPI.Config do
@moduledoc false
@type t :: %__MODULE__{
client: module(),
http_client: module(),
username: String.t(),
user_id: String.t(),
api_token: String.t()
}
@enforce_keys [:username, :user_id, :api_token]
defstruct client: Comm... | 25.45 | 49 | 0.581532 |
979fdd71e5672884f20f3f0609438348d6978625 | 2,065 | ex | Elixir | clients/poly/lib/google_api/poly/v1/model/list_assets_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/poly/lib/google_api/poly/v1/model/list_assets_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/model/list_assets_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 ... | 36.875 | 151 | 0.716707 |
979ff04bba28b7b8ec676b71e4973473c738fd3b | 266 | exs | Elixir | priv/repo/migrations/20151223195129_add_auth_stuff_to_people.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | priv/repo/migrations/20151223195129_add_auth_stuff_to_people.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | priv/repo/migrations/20151223195129_add_auth_stuff_to_people.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Repo.Migrations.AddAuthStuffToPeople do
use Ecto.Migration
def change do
alter table(:people) do
add :auth_token, :string
add :auth_token_expires_at, :naive_datetime
add :signed_in_at, :naive_datetime
end
end
end
| 22.166667 | 59 | 0.729323 |
979ffbda3faf3f4900c5450a36bd66fc82bbbda2 | 1,837 | ex | Elixir | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/attribute_parameters.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/attribute_parameters.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/attribute_parameters.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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.74 | 253 | 0.744148 |
97a0008927ecc6477543e61dce4ba45e8e95aa70 | 161 | ex | Elixir | lib/sentinel_api/secret_key.ex | fs/sentinel_api | 6f6f8ab3e3bf10c44a1d8e025aceded121a420e0 | [
"MIT"
] | null | null | null | lib/sentinel_api/secret_key.ex | fs/sentinel_api | 6f6f8ab3e3bf10c44a1d8e025aceded121a420e0 | [
"MIT"
] | null | null | null | lib/sentinel_api/secret_key.ex | fs/sentinel_api | 6f6f8ab3e3bf10c44a1d8e025aceded121a420e0 | [
"MIT"
] | null | null | null | defmodule SentinelApi.SecretKey do
@moduledoc """
Secret key init
"""
def fetch do
System.get_env("SECRET_KEY_PASSPHRASE") || "example"
end
end
| 16.1 | 56 | 0.68323 |
97a022326c40ea51adea0e1c7b7e57fc004d4dc4 | 856 | ex | Elixir | lib/beam_to_ex_ast/receive.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 16 | 2016-02-12T15:15:58.000Z | 2021-08-24T21:48:34.000Z | lib/beam_to_ex_ast/receive.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 1 | 2016-02-17T04:58:38.000Z | 2016-02-17T04:58:38.000Z | lib/beam_to_ex_ast/receive.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 2 | 2016-02-17T03:21:23.000Z | 2016-03-08T09:23:27.000Z | import ProtocolEx
alias BeamToExAst.Translate
defimplEx BeamToExAst.Receive1, {:receive, _ln, _params}, for: Translate do
alias BeamToExAst.Translate
def to_elixir({:receive, ln, params}, opts) do
opts = Map.update!(opts, :parents, &[:receive | &1])
{:receive, [line: ln], [[do: Translate.to_elixir(params,... | 27.612903 | 97 | 0.626168 |
97a030df99f0790682a7936bf3fff0ff1c75a9e9 | 45,608 | ex | Elixir | lib/elixir/lib/stream.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/lib/stream.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/stream.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | defmodule Stream do
@moduledoc """
Module for creating and composing streams.
Streams are composable, lazy enumerables. Any enumerable that generates
items one by one during enumeration is called a stream. For example,
Elixir's `Range` is a stream:
iex> range = 1..5
1..5
iex> Enum.map rang... | 29.634828 | 108 | 0.611888 |
97a04f65b863d6e119fca608042747451f82e2b3 | 1,452 | exs | Elixir | mix.exs | samhamilton/httpoison | ae7a8eafa06c9ed8019dfc965d2f3f275e23e77f | [
"MIT"
] | null | null | null | mix.exs | samhamilton/httpoison | ae7a8eafa06c9ed8019dfc965d2f3f275e23e77f | [
"MIT"
] | null | null | null | mix.exs | samhamilton/httpoison | ae7a8eafa06c9ed8019dfc965d2f3f275e23e77f | [
"MIT"
] | null | null | null | defmodule HTTPoison.Mixfile do
use Mix.Project
@description """
Yet Another HTTP client for Elixir powered by hackney
"""
def project do
[
app: :httpoison,
version: "1.6.2",
elixir: "~> 1.7",
name: "HTTPoison",
description: @description,
package: package(),
de... | 22 | 84 | 0.504132 |
97a06fdfc540e23f650ecfe421f133c4869f6d91 | 537 | ex | Elixir | web/router.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | web/router.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | web/router.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | defmodule SamplePhoenix.Router do
use SamplePhoenix.Web, :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 "/", SamplePhoenix... | 19.888889 | 57 | 0.687151 |
97a08d6c930f9c6221ef2de50be29387ec4f1964 | 7,279 | exs | Elixir | test/circuits_gpio_test.exs | henrythebuilder/circuits_gpio | 5d06df22aa0f8dae3781bfd77d95443353021095 | [
"Apache-2.0"
] | 101 | 2018-11-11T12:38:44.000Z | 2022-02-01T20:17:26.000Z | test/circuits_gpio_test.exs | elixir-circuits/circuits_gpio | 2b6dd23c853222156cf12a2944e63e5c3e1f0b28 | [
"Apache-2.0"
] | 40 | 2018-10-30T19:36:54.000Z | 2022-02-09T02:00:54.000Z | test/circuits_gpio_test.exs | henrythebuilder/circuits_gpio | 5d06df22aa0f8dae3781bfd77d95443353021095 | [
"Apache-2.0"
] | 22 | 2018-11-30T06:01:41.000Z | 2021-11-14T22:00:11.000Z | defmodule Circuits.GPIOTest do
use ExUnit.Case
alias Circuits.GPIO
# Many of these tests take advantage of the "stub" HAL. The "stub"
# HAL connects GPIO 0 to 1, 2 to 3, etc. It is useful for testing
# the interface and much of the NIF source code without needing
# real hardware.
test "info returns a ma... | 26.761029 | 83 | 0.636076 |
97a0d17e0cbfb602fc9f06dbb936b947e5ade371 | 900 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.333333 | 74 | 0.763333 |
97a0d6fb93d1a72cd47d626738c17537246de6ef | 1,426 | ex | Elixir | web/plugs.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | 1 | 2016-06-02T21:21:42.000Z | 2016-06-02T21:21:42.000Z | web/plugs.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | null | null | null | web/plugs.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | null | null | null | defmodule Pxscratch.Plugs do
import Phoenix.Controller
import Pxscratch.Router.Helpers
import Plug.Conn
alias Pxscratch.User
alias Pxscratch.Repo
def authorize_user(conn, _) do
case load_user(conn) do
{:ok, conn} ->
conn
{:error, _} ->
redirect_unauthorized(conn)
end
... | 20.666667 | 63 | 0.608696 |
97a0e927615665e082c9bedc014258c2ce8d544c | 9,225 | ex | Elixir | lib/ex_messenger/storage/ets.ex | vheathen/ex_messenger | 03ec264dabc23d14c3d4e84888c7ab839c94959f | [
"MIT"
] | null | null | null | lib/ex_messenger/storage/ets.ex | vheathen/ex_messenger | 03ec264dabc23d14c3d4e84888c7ab839c94959f | [
"MIT"
] | null | null | null | lib/ex_messenger/storage/ets.ex | vheathen/ex_messenger | 03ec264dabc23d14c3d4e84888c7ab839c94959f | [
"MIT"
] | null | null | null | defmodule ExMessenger.Storage.Ets do
@behaviour ExMessenger.Storage
@moduledoc false
import Ex2ms
alias ExMessenger.Config
alias ExMessenger.Manager
# id,
# state - internal status: :queued, :working, :sent, :failured, :finished
# status - external status from the SMS service
# phone,
# text... | 29.758065 | 111 | 0.588184 |
97a0f9b0efd98878742f397ca9176591054070e5 | 6,166 | ex | Elixir | test/elixir/lib/couch.ex | van-mronov/couchdb | 25838d078b1cf8ef5554f41c0b51d8628ca712ba | [
"Apache-2.0"
] | 1 | 2017-07-05T18:50:12.000Z | 2017-07-05T18:50:12.000Z | test/elixir/lib/couch.ex | van-mronov/couchdb | 25838d078b1cf8ef5554f41c0b51d8628ca712ba | [
"Apache-2.0"
] | 1 | 2017-09-05T15:46:20.000Z | 2017-09-05T15:46:20.000Z | test/elixir/lib/couch.ex | garrensmith/couchdb | 25838d078b1cf8ef5554f41c0b51d8628ca712ba | [
"Apache-2.0"
] | null | null | null | defmodule Couch.Session do
@moduledoc """
CouchDB session helpers.
"""
@enforce_keys [:cookie]
defstruct [:cookie]
def new(cookie) do
%Couch.Session{cookie: cookie}
end
def logout(sess) do
headers = [
"Content-Type": "application/x-www-form-urlencoded",
"X-CouchDB-WWW-Authenticate... | 27.162996 | 90 | 0.619364 |
97a10da16b545cf453f449d732997003ed2f618c | 1,125 | ex | Elixir | lib/mine/alias.ex | sgilson/mine | aa07682525ff72545dc2df91a68c23c1d5c937ef | [
"MIT"
] | 1 | 2019-11-15T22:59:57.000Z | 2019-11-15T22:59:57.000Z | lib/mine/alias.ex | sgilson/mine | aa07682525ff72545dc2df91a68c23c1d5c937ef | [
"MIT"
] | null | null | null | lib/mine/alias.ex | sgilson/mine | aa07682525ff72545dc2df91a68c23c1d5c937ef | [
"MIT"
] | null | null | null | defmodule Mine.Alias do
@moduledoc false
import Mine.AstUtils
@type t :: %__MODULE__{as: Mine.key(), default: any}
defstruct [:as, :default, :map_to, :map_from]
@doc "Creates a new `Mine.Alias` struct"
@spec new(Mine.key(), any) :: t
def new(as, default), do: %__MODULE__{as: as, default: default}
@d... | 26.785714 | 82 | 0.633778 |
97a11ba33bc7a282ab413b7f6b1af670b91c2357 | 1,093 | ex | Elixir | test/support/channel_case.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | test/support/channel_case.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | test/support/channel_case.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule FlixWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts with... | 26.658537 | 66 | 0.722781 |
97a13da0de6af7feec2ba6de32cd611c1d1bd381 | 570 | exs | Elixir | test/features/exception_test.exs | qhwa/formular | d836a38f437a947684913de42460203cdf2a5ae2 | [
"MIT"
] | 9 | 2021-05-07T22:26:34.000Z | 2022-02-16T09:30:02.000Z | test/features/exception_test.exs | qhwa/formular | d836a38f437a947684913de42460203cdf2a5ae2 | [
"MIT"
] | 6 | 2021-08-29T01:57:03.000Z | 2021-12-27T03:00:59.000Z | test/features/exception_test.exs | qhwa/formular | d836a38f437a947684913de42460203cdf2a5ae2 | [
"MIT"
] | null | null | null | defmodule ExceptionTest do
use ExUnit.Case
defdelegate eval(code, binding, opts \\ []), to: Formular
test "disallowing `raise`" do
code = """
raise "test"
"""
assert_compile_error("undefined function raise/1", code)
end
test "disallowing `throw`" do
code = """
throw "test"
"""
... | 21.111111 | 98 | 0.649123 |
97a1495692a3fcdb532874007d78904c89f48515 | 921 | ex | Elixir | lib/concentrate/filter.ex | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 19 | 2018-01-22T18:39:20.000Z | 2022-02-22T16:15:30.000Z | lib/concentrate/filter.ex | mbta/concentrate | bae6e05713ed079b7da53867a01dd007861fb656 | [
"MIT"
] | 216 | 2018-01-22T14:22:39.000Z | 2022-03-31T10:30:31.000Z | lib/concentrate/filter.ex | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 5 | 2018-01-22T14:18:15.000Z | 2021-04-26T18:34:19.000Z | defmodule Concentrate.Filter do
@moduledoc """
Defines the behaviour for filtering.
Each filter gets called for each parsed item, along with some (optional)
state that's passed along.
Filter modules have one callback:
* `filter/1`: takes the item and returns either:
* `{:cont, new_item}`
* `:skip`... | 23.615385 | 79 | 0.660152 |
97a14a4da5fb8f9e45ab8d08879284d4906f693f | 14,607 | exs | Elixir | server/test/fakers_api/people_test.exs | bart-kosmala/fakers | aff49689c2507a5f8e6e81441bd922ec8887bbc9 | [
"MIT"
] | 5 | 2020-11-15T17:46:40.000Z | 2021-06-15T16:10:57.000Z | server/test/fakers_api/people_test.exs | bart-kosmala/fakers | aff49689c2507a5f8e6e81441bd922ec8887bbc9 | [
"MIT"
] | 5 | 2020-12-04T13:38:10.000Z | 2020-12-18T11:15:50.000Z | server/test/fakers_api/people_test.exs | bart-kosmala/fakers | aff49689c2507a5f8e6e81441bd922ec8887bbc9 | [
"MIT"
] | 2 | 2020-12-18T11:16:18.000Z | 2021-01-19T22:03:35.000Z | defmodule FakersApi.PeopleTest do
use FakersApi.DataCase
alias FakersApi.People
describe "people" do
alias FakersApi.People.Person
@valid_attrs %{
birth_date: ~D[2010-04-17],
first_name: "some first_name",
last_name: "some last_name",
pesel: "11111111111",
second_name: "so... | 33.425629 | 107 | 0.673513 |
97a14bcec54cb8f44b8c90d462ea6ae79f4626c6 | 3,518 | ex | Elixir | lib/farside.ex | rottenstonks/farside | 3654fee2b36a2e770a056bd36f9884cba4a453de | [
"MIT"
] | null | null | null | lib/farside.ex | rottenstonks/farside | 3654fee2b36a2e770a056bd36f9884cba4a453de | [
"MIT"
] | null | null | null | lib/farside.ex | rottenstonks/farside | 3654fee2b36a2e770a056bd36f9884cba4a453de | [
"MIT"
] | null | null | null | defmodule Farside do
@service_prefix Application.fetch_env!(:farside, :service_prefix)
@fallback_suffix Application.fetch_env!(:farside, :fallback_suffix)
@previous_suffix Application.fetch_env!(:farside, :previous_suffix)
# Define relation between available services and their parent service.
# This enables ... | 24.430556 | 80 | 0.54946 |
97a19e0a32dbd6b5257681a122c415c42277bb1c | 2,365 | exs | Elixir | packages/engine_umbrella/apps/engine/test/booking_updates_processor_test.exs | PredictiveMovement/predictivemovement | f5e62d4aed4d2068026aecf3f7f8b6749a0b0563 | [
"MIT"
] | 2 | 2021-12-09T16:06:51.000Z | 2021-12-09T16:06:55.000Z | packages/engine_umbrella/apps/engine/test/booking_updates_processor_test.exs | PredictiveMovement/predictivemovement | f5e62d4aed4d2068026aecf3f7f8b6749a0b0563 | [
"MIT"
] | 18 | 2021-09-20T08:04:41.000Z | 2021-11-08T14:58:47.000Z | packages/engine_umbrella/apps/engine/test/booking_updates_processor_test.exs | PredictiveMovement/predictivemovement | f5e62d4aed4d2068026aecf3f7f8b6749a0b0563 | [
"MIT"
] | null | null | null | defmodule BookingUpdatesProcessorTest do
use ExUnit.Case
alias MessageGenerator.BookingGenerator
alias MessageGenerator.Id
import TestHelper
import Mox
setup do
Engine.Adapters.MockRMQ
|> stub(:publish, fn data, _, _ -> data end)
|> stub(:publish, fn data, _ -> data end)
:ok
end
test ... | 26.277778 | 72 | 0.585201 |
97a1adf0170026560db721dfe6c146f08fcb3206 | 5,064 | ex | Elixir | lib/cldr/number/transliterate.ex | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | lib/cldr/number/transliterate.ex | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | lib/cldr/number/transliterate.ex | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Number.Transliterate do
@moduledoc """
Transliteration for digits and separators.
Transliterating a string is an expensive business. First the string has to
be exploded into its component graphemes. Then for each grapheme we have
to map to the equivalent in the other `{locale, number_system}... | 40.512 | 108 | 0.725908 |
97a1b190a33df9a6e1e4d323237f02bdbb19a052 | 376 | ex | Elixir | lib/meeseeks/selector/combinator/ancestors_or_self.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/selector/combinator/ancestors_or_self.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/selector/combinator/ancestors_or_self.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.Combinator.AncestorsOrSelf do
use Meeseeks.Selector.Combinator
@moduledoc false
alias Meeseeks.Document
defstruct selector: nil
@impl true
def next(_combinator, node, document) do
case Document.ancestors(document, node.id) do
[] -> node
ancestors -> [node | Doc... | 22.117647 | 67 | 0.726064 |
97a1eb3d4e5f125288f7ddbbe8549d2622c55527 | 49 | exs | Elixir | HelloWorld.exs | 00mjk/HelloWorld-2 | 3edea3a1fc117628cc3fd8490785f9a290fd0426 | [
"MIT"
] | 1 | 2021-11-26T19:33:08.000Z | 2021-11-26T19:33:08.000Z | HelloWorld.exs | 00mjk/HelloWorld-2 | 3edea3a1fc117628cc3fd8490785f9a290fd0426 | [
"MIT"
] | null | null | null | HelloWorld.exs | 00mjk/HelloWorld-2 | 3edea3a1fc117628cc3fd8490785f9a290fd0426 | [
"MIT"
] | null | null | null | # elixir HelloWorld.exs
IO.puts "Hello, World!"
| 12.25 | 23 | 0.714286 |
97a208ac795bca87dfef9996dfa8643a10ec288e | 628 | ex | Elixir | elixir/high-score/lib/high_score.ex | joabehenrique/exercism-tracks | 397c7e685a7952b2bdbf694c285e74b67bfa864f | [
"MIT"
] | null | null | null | elixir/high-score/lib/high_score.ex | joabehenrique/exercism-tracks | 397c7e685a7952b2bdbf694c285e74b67bfa864f | [
"MIT"
] | null | null | null | elixir/high-score/lib/high_score.ex | joabehenrique/exercism-tracks | 397c7e685a7952b2bdbf694c285e74b67bfa864f | [
"MIT"
] | null | null | null | defmodule HighScore do
@initial_score 0
def new, do: %{}
def add_player(scores, name, score \\ @initial_score), do: Map.put(scores, name, score)
def remove_player(scores, name), do: Map.delete(scores, name)
def reset_score(%{}, name), do: Map.put(%{}, name, @initial_score)
def reset_score(scores, name),... | 28.545455 | 89 | 0.66242 |
97a23f05342aea47e54b2b3a89b8decc1f53262b | 984 | ex | Elixir | lib/web/endpoint.ex | ricardobaumann/phoenix_helloworld | 7cc23508ed2c996383d915e322da5ce8ca001ed7 | [
"MIT"
] | null | null | null | lib/web/endpoint.ex | ricardobaumann/phoenix_helloworld | 7cc23508ed2c996383d915e322da5ce8ca001ed7 | [
"MIT"
] | null | null | null | lib/web/endpoint.ex | ricardobaumann/phoenix_helloworld | 7cc23508ed2c996383d915e322da5ce8ca001ed7 | [
"MIT"
] | null | null | null | defmodule Web.Endpoint do
use Phoenix.Endpoint, otp_app: :web
socket "/socket", Web.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 Plug.Static,
at: "/", ... | 24.6 | 69 | 0.702236 |
97a2570310baefb3795d71145eb427f5e7c19fb4 | 700 | ex | Elixir | chromoid_web/lib/chromoid_discord/supervisor.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/lib/chromoid_discord/supervisor.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/lib/chromoid_discord/supervisor.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule ChromoidDiscord.Supervisor do
@moduledoc false
use Supervisor
@dispatch_source Application.get_env(:chromoid, __MODULE__)[:dispatch_source]
@dispatch_source || Mix.raise("dispatch_source unconfigured")
@doc false
def start_link(args) do
Supervisor.start_link(__MODULE__, args, name: __MODULE_... | 25.925926 | 79 | 0.727143 |
97a2b1a6fb8d06ccc4f4174f1f748273927c01ad | 4,074 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/evaluation_metrics.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/evaluation_metrics.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/evaluation_metrics.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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... | 53.605263 | 232 | 0.758468 |
97a2c441c0b408c253f80ce9ff236214d831aa41 | 151 | ex | Elixir | lib/oli_web/controllers/api/helpers.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/api/helpers.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/api/helpers.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule OliWeb.Api.Helpers do
import Plug.Conn
def error(conn, code, reason) do
conn
|> send_resp(code, reason)
|> halt()
end
end
| 15.1 | 34 | 0.649007 |
97a2d7d18967ce6a5b0930593bc5d7e04d835085 | 4,380 | ex | Elixir | lib/helper.ex | rcdilorenzo/repeatex | eb7e1ec5d0431bef936a01e656b4454ed555ae00 | [
"MIT"
] | 51 | 2015-01-22T14:16:59.000Z | 2021-07-27T15:51:47.000Z | lib/helper.ex | ruby2elixir/repeatex | eb7e1ec5d0431bef936a01e656b4454ed555ae00 | [
"MIT"
] | 15 | 2015-02-07T19:33:04.000Z | 2019-03-22T19:51:04.000Z | lib/helper.ex | ruby2elixir/repeatex | eb7e1ec5d0431bef936a01e656b4454ed555ae00 | [
"MIT"
] | 6 | 2016-01-08T05:41:10.000Z | 2019-04-02T12:27:34.000Z | defmodule Repeatex.Helper do
@external_resource metadata = "lib/metadata.json"
@data File.read!(metadata) |> Poison.decode!
@day_patterns Enum.map @data["day_patterns"], fn ({key, value}) ->
{String.to_atom(key), Regex.compile!(value, "i")}
end
@months Enum.map @data["month_patterns"], fn ({key, value}... | 26.871166 | 115 | 0.655023 |
97a2e74743a60448358f4a905deea720bbd71a8b | 15,817 | exs | Elixir | lib/mix/test/mix/umbrella_test.exs | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/umbrella_test.exs | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/umbrella_test.exs | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.UmbrellaTest do
use MixTest.Case
@moduletag apps: [:foo, :bar]
test "apps_paths" do
in_fixture "umbrella_dep/deps/umbrella", fn ->
assert Mix.Project.apps_paths() == nil
Mix.Project.in_project(:umbrella, ".", fn _ ->
assert... | 32.279592 | 97 | 0.578618 |
97a3091dcd9417c01cd53fd9ba3fa2e5c0400049 | 3,385 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/expr.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/expr.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/expr.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.197802 | 129 | 0.711078 |
97a33c6b77e8d34cd077aeae2d94286736d0ea9b | 5,492 | exs | Elixir | .credo.exs | mosic/guardian_jwe | e8a40b4c8a08f1c363fb8d49f6fc5947478e3c96 | [
"MIT"
] | 2 | 2018-11-09T21:37:30.000Z | 2020-12-10T20:25:38.000Z | .credo.exs | mosic/guardian_jwe | e8a40b4c8a08f1c363fb8d49f6fc5947478e3c96 | [
"MIT"
] | 1 | 2020-05-26T19:41:56.000Z | 2020-05-26T19:41:56.000Z | .credo.exs | mosic/guardian_jwe | e8a40b4c8a08f1c363fb8d49f6fc5947478e3c96 | [
"MIT"
] | 3 | 2018-11-13T23:50:49.000Z | 2020-05-13T14:54:29.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 41.293233 | 81 | 0.658776 |
97a3567a84ca82d4a2932be96de94ffc54086315 | 1,247 | exs | Elixir | config/config.exs | curator-ex/curator_registerable | f786edbf8ef43553261e68dc136b6cede91e2c52 | [
"MIT"
] | null | null | null | config/config.exs | curator-ex/curator_registerable | f786edbf8ef43553261e68dc136b6cede91e2c52 | [
"MIT"
] | null | null | null | config/config.exs | curator-ex/curator_registerable | f786edbf8ef43553261e68dc136b6cede91e2c52 | [
"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.628571 | 73 | 0.737771 |
97a37c98e40a32a073c7378fac49aae0df48d5f5 | 509 | exs | Elixir | config/integration.exs | svnlto/andi | 153465c92f01d776579dca5b8e7bcbc78a8d2e6a | [
"Apache-2.0"
] | 2 | 2021-01-19T04:40:37.000Z | 2021-04-21T18:56:42.000Z | config/integration.exs | svnlto/andi | 153465c92f01d776579dca5b8e7bcbc78a8d2e6a | [
"Apache-2.0"
] | null | null | null | config/integration.exs | svnlto/andi | 153465c92f01d776579dca5b8e7bcbc78a8d2e6a | [
"Apache-2.0"
] | null | null | null | use Mix.Config
host =
case System.get_env("HOST_IP") do
nil -> "localhost"
defined -> defined
end
config :andi,
divo: "./docker-compose.yaml",
divo_wait: [dwell: 700, max_tries: 50],
ldap_user: [cn: "admin"],
ldap_pass: "admin",
ldap_env_ou: "integration"
config :smart_city_registry,
redis: [... | 18.178571 | 41 | 0.666012 |
97a382079323775a08b0daf2eff8618d9aeda57b | 1,490 | exs | Elixir | gigasecond/gigasecond.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | gigasecond/gigasecond.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | gigasecond/gigasecond.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | defmodule Gigasecond do
@day 11574
@hour 1
@minute 46
@second 40
@day_of_month_map %{
1 => 31,
2 => 28,
3 => 31,
4 => 30,
5 => 31,
6 => 30,
7 => 31,
8 => 31,
9 => 30,
10 => 31,
11 => 30,
12 => 31
}
@doc """
Calculate a date one billion seconds after an i... | 26.607143 | 118 | 0.550336 |
97a395aa8ce3c5bab662c28e589d9c4faa5deacf | 1,420 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1_update_database_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1_update_database_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1_update_database_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.212766 | 91 | 0.772535 |
97a3a9fec2d8c62b9e03cddcca8c930373e1ecf6 | 345 | exs | Elixir | config/config.exs | rozap/corpcrawl | 3ed872f8833f8ecae94d076c6989aa0d52650973 | [
"MIT"
] | 3 | 2015-04-08T23:14:58.000Z | 2020-01-13T21:45:05.000Z | config/config.exs | rozap/corpcrawl | 3ed872f8833f8ecae94d076c6989aa0d52650973 | [
"MIT"
] | null | null | null | config/config.exs | rozap/corpcrawl | 3ed872f8833f8ecae94d076c6989aa0d52650973 | [
"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
config :logger, :console,
level: :info
config :corpcrawl, Corpcrawl.Repo,
adapter: Ecto.Adapters.Postgres,
database: "corpcrawl",
username: "postgres",
password: "postgres",... | 26.538462 | 61 | 0.750725 |
97a3aa3da86e590940d6cd0fac8284146032ee9e | 158 | exs | Elixir | priv/repo/migrations/20211220105800_create_recipes.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20211220105800_create_recipes.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20211220105800_create_recipes.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | defmodule Receptar.Repo.Migrations.CreateRecipes do
use Ecto.Migration
def change do
create table(:recipes) do
timestamps()
end
end
end
| 14.363636 | 51 | 0.708861 |
97a3c358c7502c055d36f044a8d6b4554831b23f | 708 | ex | Elixir | lib/turret_web/gettext.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 1 | 2021-02-03T23:34:04.000Z | 2021-02-03T23:34:04.000Z | lib/turret_web/gettext.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 58 | 2021-02-16T10:16:08.000Z | 2022-03-07T10:57:32.000Z | lib/turret_web/gettext.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | null | null | null | defmodule TurretWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import TurretWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
97a3d1bef00851086958a5ae6ed866396ad5bc04 | 1,140 | exs | Elixir | services/fc_identity/test/fc_identity/commands/change_password_test.exs | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | services/fc_identity/test/fc_identity/commands/change_password_test.exs | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | services/fc_identity/test/fc_identity/commands/change_password_test.exs | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | defmodule FCIdentity.ChangePasswordTest do
use FCIdentity.UnitCase, async: true
import FCSupport.Validation
alias FCIdentity.ChangePassword
describe "validations" do
test "when requester id not provided" do
{:error, {:validation_failed, errors}} = validate(%ChangePassword{})
refute has_error(... | 30.810811 | 78 | 0.685965 |
97a3fbbcd524f40cbe558d586fa51ffa92f367ef | 63 | ex | Elixir | apps/cronitex_web/lib/cronitex_web/views/user_view.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 1 | 2020-11-05T15:38:53.000Z | 2020-11-05T15:38:53.000Z | apps/cronitex_web/lib/cronitex_web/views/user_view.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 36 | 2020-10-24T01:28:42.000Z | 2022-02-07T11:11:37.000Z | apps/cronitex_web/lib/cronitex_web/views/user_view.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | null | null | null | defmodule CronitexWeb.UserView do
use CronitexWeb, :view
end
| 15.75 | 33 | 0.809524 |
97a418625c2d78e1d31b69b54f7c4d12323af4ef | 2,197 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_human_review_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_human_review_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_human_review_status.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... | 37.87931 | 319 | 0.738279 |
97a428565c94525acb5853046e9bd1dba37c6eec | 1,668 | ex | Elixir | lib/chat/accounts.ex | Jethro-Mushilingwa/chat | 9ed85178c3f95ab63cb8ac4eb234e2291c3fa801 | [
"MIT"
] | null | null | null | lib/chat/accounts.ex | Jethro-Mushilingwa/chat | 9ed85178c3f95ab63cb8ac4eb234e2291c3fa801 | [
"MIT"
] | 1 | 2021-03-10T17:36:53.000Z | 2021-03-10T17:36:53.000Z | lib/chat/accounts.ex | Jethro-Mushilingwa/chat | 9ed85178c3f95ab63cb8ac4eb234e2291c3fa801 | [
"MIT"
] | null | null | null | defmodule Chat.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Chat.Repo
alias Chat.Accounts.User
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
Repo.all(User)
end
@doc """
... | 15.885714 | 59 | 0.563549 |
97a46f56c19667e8d1f7c954e8645d5c676c86ed | 458 | ex | Elixir | lib/codes/codes_f09.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_f09.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_f09.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_F09 do
alias IcdCode.ICDCode
def _F09 do
%ICDCode{full_code: "F09",
category_code: "F09",
short_code: "",
full_name: "Unspecified mental disorder due to known physiological condition",
short_name: "Unspecified mental disorder due to known ph... | 28.625 | 91 | 0.689956 |
97a485d67a3938b5cbbd1a9ecc8f06d7a4bfe65d | 1,028 | ex | Elixir | lib/web_authn_lite/challenge.ex | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 10 | 2018-11-21T03:17:05.000Z | 2022-03-10T17:17:00.000Z | lib/web_authn_lite/challenge.ex | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 6 | 2018-11-08T15:12:59.000Z | 2022-03-09T08:57:10.000Z | lib/web_authn_lite/challenge.ex | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 2 | 2019-01-14T09:18:09.000Z | 2022-03-08T04:15:03.000Z | defmodule WebAuthnLite.Challenge do
@moduledoc """
Base64 encoded challenge generator
```
In order to prevent replay attacks, the challenges MUST contain enough entropy to make guessing them infeasible. Challenges SHOULD therefore be at least 16 bytes long.
```
https://www.w3.org/TR/webauthn/#cryptographic... | 35.448276 | 169 | 0.7607 |
97a4946a1137a87a67addcca86c65f24843b59f2 | 1,303 | ex | Elixir | lib/google_api/you_tube/v3/model/channel_conversion_pings.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/channel_conversion_pings.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/channel_conversion_pings.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.410256 | 118 | 0.76132 |
97a49aaa3ec4eeaea5cac9a30b697052ca002e6c | 2,133 | ex | Elixir | demo/lib/demo_web/router.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 16 | 2021-11-08T12:15:27.000Z | 2022-02-11T01:00:20.000Z | demo/lib/demo_web/router.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | null | null | null | demo/lib/demo_web/router.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 2 | 2021-11-19T11:32:58.000Z | 2022-01-16T00:36:32.000Z | defmodule DemoWeb.Router do
use DemoWeb, :router
pipeline :browser do
plug :accepts, ["html", "text"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {DemoWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
plug DemoWeb.Plugs.Locale, "en"... | 26.6625 | 70 | 0.684013 |
97a4abe7b6f65e80db4fd84228f344c3932c0210 | 2,461 | ex | Elixir | apps/core/lib/core/driver.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | 1 | 2020-01-14T23:19:25.000Z | 2020-01-14T23:19:25.000Z | apps/core/lib/core/driver.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | null | null | null | apps/core/lib/core/driver.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | null | null | null | defmodule Ornia.Core.Driver do
use GenServer, restart: :transient
alias Ornia.Core.{
Grid,
RideSupervisor,
Passenger,
Pickup,
Ride,
}
def start_link([user, coordinates]) do
state = %{
user: user,
coordinates: coordinates,
pickup: nil,
passenger: nil,
ride:... | 28.287356 | 129 | 0.658269 |
97a4c05eff1531c741dfbfa84d6b2554a79ccff1 | 77 | exs | Elixir | test/test_helper.exs | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | test/test_helper.exs | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | test/test_helper.exs | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(LoopsWithFriends.Repo, :manual)
| 19.25 | 62 | 0.818182 |
97a4e83f2ed7d94630e08fa89bc26fa94c6c5a97 | 2,794 | ex | Elixir | lib/inertia_phoenix/controller.ex | devato/inertia_phoenix | 7f78601853369806bed3d3b9e8567592fa465170 | [
"MIT"
] | 82 | 2020-02-17T16:02:58.000Z | 2022-01-25T23:46:17.000Z | lib/inertia_phoenix/controller.ex | devato/inertia_phoenix | 7f78601853369806bed3d3b9e8567592fa465170 | [
"MIT"
] | 52 | 2020-02-16T00:15:04.000Z | 2021-11-16T16:25:09.000Z | lib/inertia_phoenix/controller.ex | devato/inertia_phoenix | 7f78601853369806bed3d3b9e8567592fa465170 | [
"MIT"
] | 22 | 2020-02-17T13:16:32.000Z | 2022-02-26T19:04:14.000Z | defmodule InertiaPhoenix.Controller do
@moduledoc false
import InertiaPhoenix
import Plug.Conn,
only: [
get_req_header: 2,
put_resp_header: 3,
put_resp_cookie: 4
]
alias Phoenix.Controller
def render_inertia(conn, component, assigns \\ [props: %{}])
def render_inertia(%{assigns... | 25.633028 | 88 | 0.647817 |
97a4ed684c7fb66385cb16e5d00ecf057f34dde9 | 125 | ex | Elixir | lib/stripe/refund.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | 70 | 2016-07-28T16:39:36.000Z | 2021-08-03T14:26:19.000Z | lib/stripe/refund.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | 29 | 2018-09-17T11:35:17.000Z | 2021-08-01T11:15:09.000Z | lib/stripe/refund.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | 30 | 2016-10-11T21:07:27.000Z | 2020-12-23T20:15:41.000Z | defmodule Stripe.Refund do
use Stripe.API, [:create, :retrieve, :update, :list]
def endpoint do
"refunds"
end
end
| 15.625 | 54 | 0.68 |
97a50c5a160c0d66e8a4b9b982de7c412bd977d6 | 2,039 | ex | Elixir | clients/games/lib/google_api/games/v1/model/room_auto_matching_criteria.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room_auto_matching_criteria.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room_auto_matching_criteria.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... | 39.211538 | 222 | 0.760667 |
97a5192c90db1b007f0e624ea60edd40290d3065 | 1,887 | exs | Elixir | clients/android_enterprise/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.164179 | 109 | 0.662957 |
97a52f0a70fe817aca7cec0265a21f9bf657fb03 | 1,145 | exs | Elixir | clients/cloud_trace/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_trace/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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.935484 | 73 | 0.757205 |
97a53690a05fade6e0c1ae6ae9e66a61b6989223 | 1,988 | ex | Elixir | apps/omg_api/lib/omg_api/fresh_blocks/core.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/omg_api/fresh_blocks/core.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/omg_api/fresh_blocks/core.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 36.145455 | 118 | 0.711268 |
97a576dc68cb19fffcce2ccdd2e671fd204ced35 | 1,520 | ex | Elixir | test/support/data_case.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | 3 | 2021-04-17T15:25:42.000Z | 2021-04-22T22:31:23.000Z | test/support/data_case.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | null | null | null | defmodule Expay.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to the... | 27.142857 | 77 | 0.686184 |
97a57c1602ed27bdf8f15afed9fec0c411e98baf | 8,827 | ex | Elixir | backend/lib/spades_game/ai/game_ai_play.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_game/ai/game_ai_play.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_game/ai/game_ai_play.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesGame.GameAI.Play do
@moduledoc """
Functions for the AI figuring out which card to play.
"""
alias SpadesGame.{Card, Deck, Game, TrickCard}
alias SpadesGame.GameAI.PlayInfo
@spec play(Game.t()) :: Card.t()
def play(%Game{turn: turn, trick: trick} = game) when turn != nil do
{:ok, vali... | 26.349254 | 95 | 0.59386 |
97a586c1c5420be80e0222a558dc588127ac595a | 1,652 | ex | Elixir | capitulo-6/calculator.ex | mdcg/elixir_do_zero_a_concorrencia | 769bfa810f3d4359a969dadd3dc1bca8619ef940 | [
"MIT"
] | null | null | null | capitulo-6/calculator.ex | mdcg/elixir_do_zero_a_concorrencia | 769bfa810f3d4359a969dadd3dc1bca8619ef940 | [
"MIT"
] | null | null | null | capitulo-6/calculator.ex | mdcg/elixir_do_zero_a_concorrencia | 769bfa810f3d4359a969dadd3dc1bca8619ef940 | [
"MIT"
] | null | null | null | defmodule Calculator do
@moduledoc """
Define a Calculator module and functions to execute it.
"""
@doc """
Start the system to process some result.
"""
def start() do
joao = %Student{name: "João Joaquim", result: build_subjects([5.2, 3.9, 2.7, 9.8])}
maria = %Student{name: "Maria da Silva", resu... | 22.944444 | 90 | 0.596852 |
97a5b74ca4f07baf3a05e0356dbbbcf6ffb89150 | 280 | ex | Elixir | lib/rumbl_web/views/annotation_view.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | null | null | null | lib/rumbl_web/views/annotation_view.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | lib/rumbl_web/views/annotation_view.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule RumblWeb.AnnotationView do
use RumblWeb, :view
alias RumblWeb.UserView
def render("annotation.json", %{annotation: ann}) do
%{
id: ann.id,
body: ann.body,
at: ann.at,
user: render_one(ann.user, UserView, "user.json"),
}
end
end
| 18.666667 | 56 | 0.625 |
97a5bc01ed533f9eecc28e90274aef4d20a5726d | 84 | exs | Elixir | phoenix_app/benchmarker/test/views/layout_view_test.exs | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | phoenix_app/benchmarker/test/views/layout_view_test.exs | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | phoenix_app/benchmarker/test/views/layout_view_test.exs | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | defmodule Benchmarker.LayoutViewTest do
use Benchmarker.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
97a5dbfe477a0511b79d204092e9941e1460f3c6 | 2,746 | ex | Elixir | lib/mix/phoenix/context.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 7 | 2021-01-31T04:51:08.000Z | 2022-01-09T06:59:28.000Z | lib/mix/phoenix/context.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 2 | 2022-02-19T12:43:20.000Z | 2022-02-27T23:30:32.000Z | lib/mix/phoenix/context.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 2 | 2021-02-06T08:40:23.000Z | 2021-03-20T16:35:47.000Z | defmodule Mix.Phoenix.Context do
@moduledoc false
alias Mix.Phoenix.{Context, Schema}
defstruct name: nil,
module: nil,
schema: nil,
alias: nil,
base_module: nil,
web_module: nil,
basename: nil,
file: nil,
test_file:... | 28.020408 | 93 | 0.590313 |
97a5eb222914c5619bee2ccd14b71fe6b357a0bc | 1,767 | exs | Elixir | mix.exs | alvaroico/NLW5Elixir | 0f62119c422fc40a9ec0b4f700742fa4b6f1271e | [
"MIT"
] | 1 | 2021-10-18T21:31:58.000Z | 2021-10-18T21:31:58.000Z | mix.exs | alvaroico/NLW5Elixir | 0f62119c422fc40a9ec0b4f700742fa4b6f1271e | [
"MIT"
] | null | null | null | mix.exs | alvaroico/NLW5Elixir | 0f62119c422fc40a9ec0b4f700742fa4b6f1271e | [
"MIT"
] | null | null | null | defmodule Inmana.MixProject do
use Mix.Project
def project do
[
app: :inmana,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.184615 | 84 | 0.576684 |
97a613c6c20ca631c0c2ad279dbfe3dc52f98168 | 858 | exs | Elixir | test/web/views/shared_view_test.exs | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 48 | 2017-04-25T16:02:08.000Z | 2021-01-23T01:57:29.000Z | test/web/views/shared_view_test.exs | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 5 | 2018-03-09T20:17:55.000Z | 2018-07-23T16:29:21.000Z | test/web/views/shared_view_test.exs | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 4 | 2017-05-21T14:38:38.000Z | 2017-12-29T11:09:54.000Z | defmodule LoadedBike.Web.SharedViewTest do
use LoadedBike.Web.ConnCase, async: true
import Phoenix.HTML, only: [safe_to_string: 1]
alias LoadedBike.Web.SharedView
test "disqus for tour" do
conn = get build_conn(), "/"
tour = insert(:tour)
html = SharedView.disqus(conn, tour)
|> safe_to_string
... | 30.642857 | 102 | 0.646853 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.