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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e895f5c6685bf3d5df36f618400397e016b7871c | 97 | exs | Elixir | Chapter13/todo_release/config/prod.exs | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter13/todo_release/config/prod.exs | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter13/todo_release/config/prod.exs | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | use Mix.Config
config :todo, :database, pool_size: 1_000
config :todo, :cache, pool_size: 1_000
| 19.4 | 41 | 0.752577 |
e8961d2d297976dd44abc99a102a5e4819abdd7c | 661 | ex | Elixir | apps/speedrun_blogengine_web/lib/speedrun_blogengine_web/endpoint.ex | jhonndabi/speedrun_blogengine | 3a4ae736be1a3e21634376cff1c2e2a60750dcba | [
"Apache-2.0"
] | null | null | null | apps/speedrun_blogengine_web/lib/speedrun_blogengine_web/endpoint.ex | jhonndabi/speedrun_blogengine | 3a4ae736be1a3e21634376cff1c2e2a60750dcba | [
"Apache-2.0"
] | null | null | null | apps/speedrun_blogengine_web/lib/speedrun_blogengine_web/endpoint.ex | jhonndabi/speedrun_blogengine | 3a4ae736be1a3e21634376cff1c2e2a60750dcba | [
"Apache-2.0"
] | null | null | null | defmodule SpeedrunBlogengineWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :speedrun_blogengine_web
@session_options [
store: :cookie,
key: "_speedrun_blogengine_web_key",
signing_salt: "zgxjoRvM"
]
if code_reloading? do
plug Phoenix.CodeReloader
plug Phoenix.Ecto.CheckRepoStatus, otp_app:... | 23.607143 | 72 | 0.739788 |
e896251fd27826f691180e1b06022241b4df3c1b | 762 | ex | Elixir | lib/linkex.ex | thiamsantos/linkex | 7554a8acca00faacd45580dcda6c9147065a8a10 | [
"Apache-2.0"
] | 1 | 2018-05-07T14:41:14.000Z | 2018-05-07T14:41:14.000Z | lib/linkex.ex | thiamsantos/linkex | 7554a8acca00faacd45580dcda6c9147065a8a10 | [
"Apache-2.0"
] | null | null | null | lib/linkex.ex | thiamsantos/linkex | 7554a8acca00faacd45580dcda6c9147065a8a10 | [
"Apache-2.0"
] | null | null | null | defmodule Linkex do
@moduledoc """
Encode and decode HTTP Link headers.
"""
alias Linkex.{Decoder, Encoder, LinkHeader}
@doc """
Encode a `Linkex.LinkHeader` struct to a Link HTTP header.
"""
@spec encode(LinkHeader.t()) :: {:ok, String.t()}
def encode(header), do: Encoder.encode(header)
def enco... | 21.771429 | 60 | 0.637795 |
e896776323ad17b05f8f5362aff21d9c59e4ad8a | 3,493 | exs | Elixir | test/movement/builders/new_version_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/movement/builders/new_version_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/movement/builders/new_version_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule AccentTest.Movement.Builders.NewVersion do
use Accent.RepoCase
alias Movement.Builders.NewVersion, as: NewVersionBuilder
alias Accent.ProjectCreator
alias Accent.{
Repo,
Translation,
User,
Language,
Version,
Document
}
@user %User{email: "test@test.com"}
setup do
... | 29.854701 | 146 | 0.587174 |
e8967cf27e7a92e410b1198ca9c3e16eca1f7f78 | 2,204 | ex | Elixir | lib/mail_sniffex/mail_source_parser.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | 3 | 2021-01-25T20:28:00.000Z | 2021-01-26T12:22:08.000Z | lib/mail_sniffex/mail_source_parser.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | lib/mail_sniffex/mail_source_parser.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | defmodule MailSniffex.MailSourceParser do
def parse(data) do
{body, headers} =
parse_data(data)
|> Map.split(["attachments", "html", "plain", "inline_files"])
%{body: body, headers: headers}
end
defp parse_data({"multipart", _subtype_name, mail_meta, _, body}) do
parse_bodies(body)
|... | 29.386667 | 88 | 0.635662 |
e8969dc21e81245e46670ea623cfec7de6a0e102 | 1,178 | ex | Elixir | lib/codes/codes_e32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_e32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_e32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_E32 do
alias IcdCode.ICDCode
def _E320 do
%ICDCode{full_code: "E320",
category_code: "E32",
short_code: "0",
full_name: "Persistent hyperplasia of thymus",
short_name: "Persistent hyperplasia of thymus",
category_name: "Persistent ... | 27.395349 | 59 | 0.591681 |
e896f71f73aa7d0c4c34471de889f88079c85e0d | 857 | ex | Elixir | lib/changelog_web/controllers/api_controller.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/controllers/api_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/controllers/api_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.ApiController do
use ChangelogWeb, :controller
alias Changelog.{Episode, Podcast, Repo}
def oembed(conn, params) do
[podcast_slug, episode_slug] =
case Map.get(params, "url") do
nil -> ["nope", "nope"]
url -> String.split(url, "/") |> Enum.take(-2)
end
... | 23.805556 | 106 | 0.597433 |
e8974ea8c2e9eb6e240cb8f28a4655412f9cdc9d | 873 | exs | Elixir | config/test.exs | Geekfish/random-user-points-service | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | null | null | null | config/test.exs | Geekfish/random-user-points-service | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | 4 | 2021-08-16T11:44:58.000Z | 2021-08-19T15:45:10.000Z | config/test.exs | Geekfish/user-points-manager | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :user_points_manager, UserPointsManager.Repo,
url:
System.get_env(
"TEST_DATABASE_URL",
"p... | 30.103448 | 76 | 0.765178 |
e89787f7476337a2ab212133f5d64656d066da37 | 344 | exs | Elixir | apps/auth/priv/repo/seeds.exs | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | apps/auth/priv/repo/seeds.exs | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | apps/auth/priv/repo/seeds.exs | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Auth.Repo.insert!(%Auth.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail i... | 28.666667 | 61 | 0.700581 |
e897a1a978ec16b719069b79ffdb1771374e88ea | 880 | ex | Elixir | clients/testing/lib/google_api/testing/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/testing/lib/google_api/testing/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/testing/lib/google_api/testing/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 32.592593 | 74 | 0.757955 |
e898046c8db805f024bab7c44168d871ea5ce49c | 6,355 | ex | Elixir | 2020/otp/big_brother/lib/big_brother/application.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/big_brother/lib/big_brother/application.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/big_brother/lib/big_brother/application.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule BigBrother.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
@doc """
#####
## Check if the supervisor its running and whats your PID:
#####
iex> GenServer.whereis(BigBrother.Supervisor)
#PID<0.154.0>
i... | 38.515152 | 323 | 0.690795 |
e89804927ef4a1e6e6b09ad5eba9bede2ce6a74f | 3,028 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/container.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/container.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/container.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.918919 | 185 | 0.674042 |
e8985e1aceef02543a79ef5332a5311d70b07cef | 2,015 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_ssl_proxy_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/target_ssl_proxy_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/target_ssl_proxy_list_warning_data.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... | 40.3 | 527 | 0.740447 |
e898847689c0f9657860466e276beb6b311d2990 | 3,860 | ex | Elixir | apps/grapevine/lib/grapevine/featured/implementation.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/grapevine/lib/grapevine/featured/implementation.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/grapevine/lib/grapevine/featured/implementation.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Grapevine.Featured.Implementation do
@moduledoc """
Implementation details for the Featured GenServer
"""
import Ecto.Query
require Logger
alias GrapevineData.Games
alias GrapevineData.Repo
@doc """
Calculate the delay to the next cycle check which runs at 6 AM UTC
"""
def calculate_... | 28.175182 | 99 | 0.65544 |
e898b2e343b6a924e8612f3b3ddf5255b1ddec1e | 1,665 | ex | Elixir | lib/hacker_news_aggregator_web/channels/user_socket.ex | acastemoreno/hacker_new_aggregator | 5734205d3308eccc98f203d4d3b875fd0f966de3 | [
"MIT"
] | null | null | null | lib/hacker_news_aggregator_web/channels/user_socket.ex | acastemoreno/hacker_new_aggregator | 5734205d3308eccc98f203d4d3b875fd0f966de3 | [
"MIT"
] | null | null | null | lib/hacker_news_aggregator_web/channels/user_socket.ex | acastemoreno/hacker_new_aggregator | 5734205d3308eccc98f203d4d3b875fd0f966de3 | [
"MIT"
] | null | null | null | defmodule HackerNewsAggregatorWeb.UserSocket do
use Phoenix.Socket
# A Socket handler
#
# It's possible to control the websocket connection and
# assign values that can be accessed by your channel topics.
## Channels
# Uncomment the following line to define a "room:*" topic
# pointing to the `HackerNe... | 31.415094 | 102 | 0.708108 |
e898cc3b53a82e99d68b50e0bb74f8d57b0529e2 | 1,238 | ex | Elixir | lib/membrane_http_adaptive_stream/storages/send_storage.ex | membraneframework/membrane_http_adaptive_stream_plugin | 13e6847dad7f7ff26a2ac33b3e38fd7afc9189f8 | [
"Apache-2.0"
] | 7 | 2020-06-09T09:51:22.000Z | 2021-12-26T19:12:58.000Z | lib/membrane_http_adaptive_stream/storages/send_storage.ex | membraneframework/membrane_http_adaptive_stream_plugin | 13e6847dad7f7ff26a2ac33b3e38fd7afc9189f8 | [
"Apache-2.0"
] | 11 | 2020-07-31T09:29:06.000Z | 2022-01-12T09:30:24.000Z | lib/membrane_http_adaptive_stream/storages/send_storage.ex | membraneframework/membrane_http_adaptive_stream_plugin | 13e6847dad7f7ff26a2ac33b3e38fd7afc9189f8 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.HTTPAdaptiveStream.Storages.SendStorage do
@moduledoc """
`Membrane.HTTPAdaptiveStream.Storage` implementation that sends a `t:message_t/0`
to given destination on each call to store/remove.
"""
@behaviour Membrane.HTTPAdaptiveStream.Storage
@enforce_keys [:destination]
defstruct @enf... | 27.511111 | 98 | 0.634895 |
e898f6d66430d962bd7e7b43034e32d64ecf8c71 | 270 | exs | Elixir | test/live_view_gallery_web/views/layout_view_test.exs | clarkware/live_view_covid_19 | dfe6ec0cb0ecf91ef30a58b549acc82d4614916a | [
"MIT"
] | 4 | 2020-03-20T13:37:51.000Z | 2020-03-27T23:53:55.000Z | test/live_view_gallery_web/views/layout_view_test.exs | clarkware/live_view_covid_19 | dfe6ec0cb0ecf91ef30a58b549acc82d4614916a | [
"MIT"
] | 2 | 2021-03-10T11:22:03.000Z | 2021-05-11T07:08:43.000Z | test/live_view_gallery_web/views/layout_view_test.exs | clarkware/live_view_covid_19 | dfe6ec0cb0ecf91ef30a58b549acc82d4614916a | [
"MIT"
] | null | null | null | defmodule Covid19Web.LayoutViewTest do
use Covid19Web.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30 | 65 | 0.766667 |
e8990483012859eeae7cea1ee0068e16bfd9b065 | 2,470 | ex | Elixir | lib/ecto/exceptions.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | lib/ecto/exceptions.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | lib/ecto/exceptions.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | alias Ecto.Query.Util
defexception Ecto.InvalidQuery, [:reason, :type, :query, :file, :line] do
def message(Ecto.InvalidQuery[] = e) do
if e.type && e.query && e.file && e.line do
fl = Exception.format_file_line(e.file, e.line)
"#{fl}: the query `#{e.type}: #{Macro.to_string(e.query)}` " <>
"is... | 31.265823 | 89 | 0.662348 |
e899224a9d4a45d0f618aa73bcb5781d8378ba0e | 1,301 | exs | Elixir | mix.exs | mattiaslundberg/css_colors | c0ca1c37edaf7abdc96816937233b7fc3a964f4a | [
"MIT"
] | 12 | 2017-05-23T18:07:33.000Z | 2021-09-08T15:25:04.000Z | mix.exs | mattiaslundberg/css_colors | c0ca1c37edaf7abdc96816937233b7fc3a964f4a | [
"MIT"
] | 6 | 2017-05-16T19:19:31.000Z | 2021-02-21T23:03:33.000Z | mix.exs | mattiaslundberg/css_colors | c0ca1c37edaf7abdc96816937233b7fc3a964f4a | [
"MIT"
] | 7 | 2018-03-05T19:23:41.000Z | 2022-02-28T03:56:15.000Z | defmodule CssColors.Mixfile do
use Mix.Project
def project do
[app: :css_colors,
version: "0.2.2",
elixir: "~> 1.4",
deps: deps(),
source_url: "https://github.com/alvinlindstam/css_colors",
name: "CssColors",
package: package(),
description: description()]
end
defp packa... | 24.092593 | 79 | 0.604919 |
e899233fc073521be20ddfbf483ea04f49d44477 | 192 | exs | Elixir | apps/re/priv/repo/migrations/20190325110114_add_user_uuid.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20190325110114_add_user_uuid.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20190325110114_add_user_uuid.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.AddUserUuid do
use Ecto.Migration
def change do
alter table(:users) do
add :uuid, :uuid
end
create unique_index(:users, [:uuid])
end
end
| 16 | 43 | 0.671875 |
e89924cfb4a4991045c09fc456cb8f24fd56aa86 | 1,909 | exs | Elixir | test/grizzly/command_class/user_code/users_number_get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/user_code/users_number_get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/user_code/users_number_get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.UserCode.UsersNumberGet.Test do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.UserCode.UsersNumberGet
describe "implements Grizzly.Command correctly" do
test "initializes to command" do
assert {:ok, %UsersNumberGet{}} == UsersNumberGet.in... | 34.089286 | 97 | 0.675746 |
e8993a6af887c6976927aeeaf5710a74768a9d2b | 78 | exs | Elixir | test/gen_fsm_helpers_test.exs | smpallen99/gen_fsm_helpers | 5ff79d70fa19f07c87397363ec618fd05523496e | [
"MIT"
] | null | null | null | test/gen_fsm_helpers_test.exs | smpallen99/gen_fsm_helpers | 5ff79d70fa19f07c87397363ec618fd05523496e | [
"MIT"
] | null | null | null | test/gen_fsm_helpers_test.exs | smpallen99/gen_fsm_helpers | 5ff79d70fa19f07c87397363ec618fd05523496e | [
"MIT"
] | null | null | null | defmodule GenFSMHelpersTest do
use ExUnit.Case
doctest GenFSMHelpers
end
| 13 | 30 | 0.820513 |
e8993dbc7a11e7c39461899b04264f19c6d2b453 | 2,482 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/enum_value_pair.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/enum_value_pair.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/enum_value_pair.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... | 49.64 | 865 | 0.752216 |
e89992585ff3e70d1ec264f2f27b97829018eb51 | 1,097 | exs | Elixir | test/lexicon_test.exs | rtvu/lexicon | 06fa0f0b20d718824df4dbedb908f7663cdab388 | [
"MIT"
] | null | null | null | test/lexicon_test.exs | rtvu/lexicon | 06fa0f0b20d718824df4dbedb908f7663cdab388 | [
"MIT"
] | null | null | null | test/lexicon_test.exs | rtvu/lexicon | 06fa0f0b20d718824df4dbedb908f7663cdab388 | [
"MIT"
] | null | null | null | defmodule LexiconTest do
use ExUnit.Case
doctest Lexicon
test "new lexicon" do
lexicon = Lexicon.new()
assert lexicon.size == 0
assert lexicon.prefix.is_word == false
assert lexicon.prefix.children == %{}
assert lexicon.suffix.is_word == false
assert lexicon.suffix.children == %{}
end
... | 29.648649 | 53 | 0.671832 |
e899aedb8dcec88c2c9bf7ac517ebdb98709d5a4 | 861 | exs | Elixir | test/grizzly/zwave/commands/association_remove_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/association_remove_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/association_remove_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.AssociationRemoveTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.AssociationRemove
test "creates the command and validates params" do
params = [grouping_identifier: 2, nodes: [4, 5, 6]]
{:ok, _command} = AssociationRemove.new(params)
end
test "enco... | 34.44 | 70 | 0.711963 |
e899d7cc3680814165e279afc87764973ab40626 | 8,312 | ex | Elixir | lib/game/command/train.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/command/train.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/command/train.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Game.Command.Train do
@moduledoc """
The "emote" command
"""
use Game.Command
alias Data.ActionBar
alias Game.Format.Skills, as: FormatSkills
alias Game.Player
alias Game.Session.GMCP
alias Game.Skill
alias Game.Skills
alias Game.Utility
commands(["train"], parse: false)
@impl Ga... | 28.563574 | 112 | 0.638474 |
e899ef686029a637c639dd7653f742dbf3d89010 | 1,254 | exs | Elixir | config/config.exs | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | config/config.exs | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | config/config.exs | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"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 :elixir, ansi_enabled: true
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file wo... | 36.882353 | 73 | 0.757576 |
e89a04114ffaa7c30f734bf0012e89323e4ce2ba | 193 | ex | Elixir | lib/ex_json_schema.ex | tinfoil/ex_json_schema | 6836d531c9adcd6abfa3a5e296d3da977f7b7fb1 | [
"MIT"
] | 301 | 2015-07-17T22:22:56.000Z | 2022-03-20T13:42:22.000Z | lib/ex_json_schema.ex | tinfoil/ex_json_schema | 6836d531c9adcd6abfa3a5e296d3da977f7b7fb1 | [
"MIT"
] | 70 | 2015-09-30T21:19:43.000Z | 2022-02-03T10:23:07.000Z | lib/ex_json_schema.ex | tinfoil/ex_json_schema | 6836d531c9adcd6abfa3a5e296d3da977f7b7fb1 | [
"MIT"
] | 100 | 2015-09-16T11:58:15.000Z | 2022-01-31T19:09:32.000Z | defmodule ExJsonSchema do
@type json_path :: String.t()
@type data :: nil | true | false | list | float | integer | String.t() | [data] | object
@type object :: %{String.t() => data}
end
| 32.166667 | 90 | 0.621762 |
e89a1ac1272e5dbc7d02e746243254cba1bb9657 | 644 | exs | Elixir | rock-paper-scissors/test/rock_paper_scissors_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | rock-paper-scissors/test/rock_paper_scissors_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | rock-paper-scissors/test/rock_paper_scissors_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | defmodule RockPaperScissorsTest do
use ExUnit.Case
import RockPaperScissors, only: [rps: 2]
test "player 1 win" do
assert rps("rock", "scissors") == "Player 1 won!"
assert rps("scissors", "paper") == "Player 1 won!"
assert rps("paper", "rock") == "Player 1 won!"
end
test "player 2 win" do
as... | 28 | 54 | 0.597826 |
e89a32448ef1f43d8cf4918d82c28f131d526ee2 | 4,971 | exs | Elixir | test/phoenix_sample_web/controllers/user_settings_controller_test.exs | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | test/phoenix_sample_web/controllers/user_settings_controller_test.exs | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | test/phoenix_sample_web/controllers/user_settings_controller_test.exs | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | defmodule PhoenixSampleWeb.UserSettingsControllerTest do
use PhoenixSampleWeb.ConnCase
alias PhoenixSample.Accounts
import PhoenixSample.AccountsFixtures
setup :register_and_log_in_user
describe "GET /users/settings" do
test "renders settings page", %{conn: conn} do
conn = get(conn, Routes.user_s... | 38.238462 | 96 | 0.652384 |
e89a5ff0e70e62b6e3fbab0e6ec6cf74c7947692 | 63 | ex | Elixir | lib/vispana_web/views/layout_view.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 30 | 2022-02-16T13:02:14.000Z | 2022-03-24T12:47:35.000Z | lib/vispana_web/views/layout_view.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 5 | 2022-02-16T02:21:01.000Z | 2022-03-13T09:29:56.000Z | lib/vispana_web/views/layout_view.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | null | null | null | defmodule VispanaWeb.LayoutView do
use VispanaWeb, :view
end
| 15.75 | 34 | 0.809524 |
e89a65d2ba573a44bb4b13225fddaceca84655ad | 868 | ex | Elixir | lib/koans/01_equalities.ex | jimmah/elixir-koans | c476981d47b4bf803b72cfe7261c49855f5993eb | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | jimmah/elixir-koans | c476981d47b4bf803b72cfe7261c49855f5993eb | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | jimmah/elixir-koans | c476981d47b4bf803b72cfe7261c49855f5993eb | [
"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.7 | 83 | 0.679724 |
e89a7e727735f409b596187bf836e21b7393d1f4 | 943 | exs | Elixir | test/sorting/merge_sort_test.exs | iccowan/Elixir | cc346493c0b24796fb07ad05de5b065ff132089e | [
"MIT"
] | 131 | 2019-10-28T19:44:55.000Z | 2022-03-27T21:48:48.000Z | test/sorting/merge_sort_test.exs | iccowan/Elixir | cc346493c0b24796fb07ad05de5b065ff132089e | [
"MIT"
] | 52 | 2021-08-09T22:40:20.000Z | 2022-03-07T16:56:36.000Z | test/sorting/merge_sort_test.exs | iccowan/Elixir | cc346493c0b24796fb07ad05de5b065ff132089e | [
"MIT"
] | 50 | 2019-11-17T16:59:04.000Z | 2022-03-23T00:16:51.000Z | defmodule Algorithms.Sorting.MergeSortTest do
alias Algorithms.Sorting.MergeSort
use ExUnit.Case
doctest Algorithms
describe "merge_sort/1 - example test cases" do
test "example 1" do
assert MergeSort.merge_sort([7, 1]) === [1, 7]
end
test "example 2" do
assert MergeSort.merge_sort([2... | 20.955556 | 72 | 0.399788 |
e89a821451815fd49189cc479a9039eee2646b8e | 706 | ex | Elixir | lib/phoenix_starter_web/controllers/user_session_controller.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 3 | 2021-03-19T10:39:02.000Z | 2021-07-25T19:54:09.000Z | lib/phoenix_starter_web/controllers/user_session_controller.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 204 | 2020-11-27T06:00:31.000Z | 2022-03-25T08:08:16.000Z | lib/phoenix_starter_web/controllers/user_session_controller.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | null | null | null | defmodule PhoenixStarterWeb.UserSessionController do
use PhoenixStarterWeb, :controller
alias PhoenixStarter.Users
alias PhoenixStarterWeb.UserAuth
def new(conn, _params) do
render(conn, "new.html", error_message: nil)
end
def create(conn, %{"user" => user_params}) do
%{"email" => email, "passwor... | 26.148148 | 74 | 0.703966 |
e89ab320c04138b43dcb045d4ec2db4b300a2660 | 3,787 | ex | Elixir | lib/exchange/trade.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 2 | 2021-09-01T08:30:14.000Z | 2022-02-08T18:15:11.000Z | lib/exchange/trade.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 35 | 2020-08-12T16:04:46.000Z | 2022-03-24T04:07:16.000Z | lib/exchange/trade.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 1 | 2020-09-17T13:07:50.000Z | 2020-09-17T13:07:50.000Z | defmodule Exchange.Trade do
@moduledoc """
Placeholder to define trades
"""
alias Exchange.Order
defstruct trade_id: UUID.uuid1(),
ticker: nil,
currency: nil,
buyer_id: nil,
seller_id: nil,
buy_order_id: nil,
sell_order_id: nil,
... | 28.261194 | 97 | 0.605492 |
e89ad913574e29ba902e55fba532ff38f5c749d4 | 4,238 | exs | Elixir | test/components/form/file_input_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/components/form/file_input_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/components/form/file_input_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.FileInputTest do
use ExUnit.Case, async: true
import ComponentTestHelper
alias Surface.Components.Form, warn: false
alias Surface.Components.Form.FileInput, warn: false
test "empty input" do
code =
quote do
~H"""
<FileInput form="user" field="pictu... | 24.639535 | 99 | 0.551911 |
e89b092bf60d442307cff9fd5c0fd4af3d18ed9a | 3,444 | ex | Elixir | apps/astarte_housekeeping/lib/astarte_housekeeping/release_tasks.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_housekeeping/lib/astarte_housekeeping/release_tasks.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_housekeeping/lib/astarte_housekeeping/release_tasks.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# 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 appl... | 25.701493 | 95 | 0.649535 |
e89b0c629d4d0f26ecf1d57459d19a91ab935b4c | 4,113 | ex | Elixir | lib/ecto/query/builder/order_by.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/order_by.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/order_by.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.OrderBy do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes an order by query.
The query is escaped to a list of `{direction, expression}`
pairs at runtime. Escaping also validates direction is one of
`:asc` or `:desc`.
## Examples
iex> escape(quote do [... | 31.396947 | 109 | 0.606613 |
e89b2313e3a372636a64f924141a55fa60fa76c6 | 230 | exs | Elixir | priv/repo/migrations/20180802130014_add_attendee_to_referrals.exs | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | priv/repo/migrations/20180802130014_add_attendee_to_referrals.exs | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | priv/repo/migrations/20180802130014_add_attendee_to_referrals.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Repo.Migrations.AddAttendeeToReferrals do
use Ecto.Migration
def change do
alter table(:referrals) do
add :attendee_id, references(:attendees, on_delete: :delete_all, type: :uuid)
end
end
end
| 23 | 83 | 0.73913 |
e89b24112c2a109dce3571fe4695f930510aa214 | 751 | exs | Elixir | test/parser_test.exs | rylek90/NOAA | eb70efcfd3058bccc9496f9083c9a7b509156c50 | [
"MIT"
] | null | null | null | test/parser_test.exs | rylek90/NOAA | eb70efcfd3058bccc9496f9083c9a7b509156c50 | [
"MIT"
] | null | null | null | test/parser_test.exs | rylek90/NOAA | eb70efcfd3058bccc9496f9083c9a7b509156c50 | [
"MIT"
] | null | null | null | defmodule ParserTest do
use ExUnit.Case
doctest Noaa.Parser
import Noaa.Parser, only: [parse_response: 1 ]
@test_data """
<current_observation version="1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.w... | 32.652174 | 107 | 0.743009 |
e89b6df92febb2f412f36a015a7261401425ddae | 118 | exs | Elixir | test/exstream_test.exs | evro/exstream | ab646a3fb6ee136d6776639708bcba2d1289b4a2 | [
"MIT"
] | null | null | null | test/exstream_test.exs | evro/exstream | ab646a3fb6ee136d6776639708bcba2d1289b4a2 | [
"MIT"
] | null | null | null | test/exstream_test.exs | evro/exstream | ab646a3fb6ee136d6776639708bcba2d1289b4a2 | [
"MIT"
] | null | null | null | defmodule ExstreamTest do
use ExUnit.Case
doctest Exstream
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.111111 | 25 | 0.677966 |
e89b9df6ab322f230a5d163de8696853326ba0f2 | 2,028 | exs | Elixir | config/prod.exs | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | config/prod.exs | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | config/prod.exs | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.709677 | 67 | 0.718935 |
e89bb521097ed045e3d944815e2cb1be5fab856a | 1,868 | exs | Elixir | mix.exs | ianwestcott/parking_lpr | bd6a56b369624d1cf938ee0179a239d7d3c6d14b | [
"MIT"
] | null | null | null | mix.exs | ianwestcott/parking_lpr | bd6a56b369624d1cf938ee0179a239d7d3c6d14b | [
"MIT"
] | null | null | null | mix.exs | ianwestcott/parking_lpr | bd6a56b369624d1cf938ee0179a239d7d3c6d14b | [
"MIT"
] | null | null | null | defmodule ParkingLpr.MixProject do
use Mix.Project
def project do
[
app: :parking_lpr,
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.880597 | 84 | 0.578694 |
e89bb5b07701b6dc7441d2472e34e0e096105261 | 2,583 | exs | Elixir | test/conduit_sqs/sqs_test.exs | rafaelsiqueira/conduit_sqs | 2e512fc03a9b36dcb96a5e050bbd44f4781c3840 | [
"MIT"
] | 9 | 2017-11-07T09:53:11.000Z | 2022-03-11T17:38:14.000Z | test/conduit_sqs/sqs_test.exs | rafaelsiqueira/conduit_sqs | 2e512fc03a9b36dcb96a5e050bbd44f4781c3840 | [
"MIT"
] | 84 | 2018-05-23T11:49:19.000Z | 2021-08-03T05:22:36.000Z | test/conduit_sqs/sqs_test.exs | rafaelsiqueira/conduit_sqs | 2e512fc03a9b36dcb96a5e050bbd44f4781c3840 | [
"MIT"
] | 11 | 2018-06-07T10:13:03.000Z | 2022-03-12T14:12:40.000Z | defmodule ConduitSQS.SQSTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias ConduitSQS.SQS
alias Conduit.Message
import Conduit.Message
setup do
opts = Application.get_env(:conduit, ConduitSQSTest)
{:ok, %{opts: opts}}
end
describe "setup_topology/2" do
test "creat... | 31.5 | 114 | 0.522648 |
e89bdd6240960229bcb6825afa5cda4f417e1192 | 2,217 | ex | Elixir | lib/exq/scheduler/server.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | null | null | null | lib/exq/scheduler/server.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | null | null | null | lib/exq/scheduler/server.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | 3 | 2021-04-07T14:50:17.000Z | 2021-04-07T14:50:30.000Z | defmodule Exq.Scheduler.Server do
@moduledoc """
The Scheduler is responsible for monitoring the `schedule` and `retry` queues.
These queues use a Redis sorted set (term?) to schedule and pick off due jobs.
Once a job is at or past it's execution date, the Scheduler moves the job into the
live execution queue... | 30.369863 | 93 | 0.623816 |
e89bdf8d57fe9b5c2950eca755fbd24ea7c06dd2 | 3,332 | ex | Elixir | web/managers/user_manager.ex | penn-state-dance-marathon/opencov | 6398419a9e77043293754adb8f7a65cd1590f5b1 | [
"MIT"
] | null | null | null | web/managers/user_manager.ex | penn-state-dance-marathon/opencov | 6398419a9e77043293754adb8f7a65cd1590f5b1 | [
"MIT"
] | null | null | null | web/managers/user_manager.ex | penn-state-dance-marathon/opencov | 6398419a9e77043293754adb8f7a65cd1590f5b1 | [
"MIT"
] | null | null | null | defmodule Opencov.UserManager do
use Opencov.Web, :manager
import SecurePassword, only: [with_secure_password: 1]
@required_fields ~w(email)a
@optional_fields ~w(admin name password)a
def changeset(model, params \\ :invalid, opts \\ []) do
model
|> cast(params, @required_fields ++ @option... | 32.666667 | 114 | 0.701381 |
e89bffb52ece32aa1bf4606814d06babee9e7af9 | 1,049 | ex | Elixir | web/models/product_category.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/models/product_category.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/models/product_category.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.ProductCategory do
use Nectar.Web, :model
schema "product_categories" do
belongs_to :product, Nectar.Product
belongs_to :category, Nectar.Category
field :delete, :boolean, virtual: true, default: false
timestamps()
extensions()
end
@required_fields ~w(product_id category... | 23.840909 | 70 | 0.694948 |
e89c11c13f557a8966c039e5fb374f99b2134339 | 3,428 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_timespan_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_timespan_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_timespan_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 61.214286 | 934 | 0.756709 |
e89c1d2a9f78ac16f2a7b38a88100ed1ce00a595 | 11,427 | ex | Elixir | lib/ex_admin/themes/admin_lte2/form.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 1 | 2017-03-23T00:50:59.000Z | 2017-03-23T00:50:59.000Z | lib/ex_admin/themes/admin_lte2/form.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/form.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | null | null | null | defmodule ExAdmin.Theme.AdminLte2.Form do
@moduledoc false
import Kernel, except: [div: 2]
import Xain
import ExAdmin.Utils
import ExAdmin.Form
require Integer
use ExAdmin.Adminlog
import ExAdmin.Helpers
import ExAdmin.Gettext
alias ExAdmin.Schema
@doc false
def build_form(conn, resource, items... | 26.761124 | 100 | 0.506432 |
e89c4322135d506b3840c3cd124cc5658f0e9095 | 8,762 | ex | Elixir | lib/hex/state.ex | kelvinst/hex | 2216bd709602b0f544a7e6e90102d14f43724ec6 | [
"Apache-2.0"
] | null | null | null | lib/hex/state.ex | kelvinst/hex | 2216bd709602b0f544a7e6e90102d14f43724ec6 | [
"Apache-2.0"
] | null | null | null | lib/hex/state.ex | kelvinst/hex | 2216bd709602b0f544a7e6e90102d14f43724ec6 | [
"Apache-2.0"
] | 1 | 2021-07-26T18:20:06.000Z | 2021-07-26T18:20:06.000Z | defmodule Hex.State do
@moduledoc false
@name __MODULE__
@api_url "https://hex.pm/api"
@pbkdf2_iters 32_768
def default_api_url(), do: @api_url
@config %{
api_key_read: %{
config: [:"$read_key"]
},
api_key_write: %{
config: [:"$write_key", :"$encrypted_key"]
},
api_key_wri... | 24.543417 | 95 | 0.581602 |
e89c508f3d79c706a9018f4e0404122debfff1aa | 81,263 | exs | Elixir | test/ecto/adapters/postgres_test.exs | hi-rustin/ecto_sql | a09868467827e0a31c74e42ed57d0b8c97277707 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | hi-rustin/ecto_sql | a09868467827e0a31c74e42ed57d0b8c97277707 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | hi-rustin/ecto_sql | a09868467827e0a31c74e42ed57d0b8c97277707 | [
"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... | 44.140684 | 176 | 0.576068 |
e89cab1c7911f80bb6a818101cf7d85f843794e2 | 173 | exs | Elixir | test/pond_test.exs | vic/pond | d0249cc285392a2bbf343ab2d258cc7dde3ee53f | [
"Apache-2.0"
] | 23 | 2018-03-28T15:36:16.000Z | 2021-01-10T14:17:34.000Z | test/pond_test.exs | vic/pond | d0249cc285392a2bbf343ab2d258cc7dde3ee53f | [
"Apache-2.0"
] | null | null | null | test/pond_test.exs | vic/pond | d0249cc285392a2bbf343ab2d258cc7dde3ee53f | [
"Apache-2.0"
] | 1 | 2020-09-21T12:43:23.000Z | 2020-09-21T12:43:23.000Z | defmodule PondTest do
use ExUnit.Case
import Pond
import Pond.Next
alias Pond.Acc
import Pond.Readme
doctest Pond
doctest Pond.Next
doctest Pond.Acc
end
| 11.533333 | 21 | 0.734104 |
e89cb464ab937171c787733e8bdf2e0af81efd00 | 801 | exs | Elixir | test/channels/push_change_channel_test.exs | mukilarasan101/todos-backend | b7b3e00aa17bb117ea031dd0cba1d14d3d298159 | [
"MIT"
] | null | null | null | test/channels/push_change_channel_test.exs | mukilarasan101/todos-backend | b7b3e00aa17bb117ea031dd0cba1d14d3d298159 | [
"MIT"
] | null | null | null | test/channels/push_change_channel_test.exs | mukilarasan101/todos-backend | b7b3e00aa17bb117ea031dd0cba1d14d3d298159 | [
"MIT"
] | null | null | null | defmodule Todo.PushChangeChannelTest do
use Todo.ChannelCase
alias Todo.PushChangeChannel
setup do
{:ok, _, socket} =
socket("user_id", %{some: :assign})
|> subscribe_and_join(PushChangeChannel, "pushchanges:lobby")
{:ok, socket: socket}
end
test "ping replies with status ok", %{socket... | 27.62069 | 68 | 0.636704 |
e89cba10700ea872431a1639c50d1eb160fd4f79 | 2,901 | ex | Elixir | lib/chat_api/conversations/conversation.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | lib/chat_api/conversations/conversation.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | lib/chat_api/conversations/conversation.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | defmodule ChatApi.Conversations.Conversation do
use Ecto.Schema
import Ecto.Changeset
alias ChatApi.{
Accounts.Account,
Customers.Customer,
Messages.Message,
Tags.ConversationTag,
Users.User
}
@type t :: %__MODULE__{
status: String.t(),
priority: String.t(),
... | 26.372727 | 91 | 0.613926 |
e89cc617ca93ff45a204921713a0a9fa4d6b5a6b | 95 | ex | Elixir | lib/jsonapi_ecto/get.ex | wojtekmach/jsonapi_ecto | 923e551c968fae2b7e06bd6113fe0fbbeafea534 | [
"Unlicense",
"MIT"
] | 5 | 2016-05-15T08:00:49.000Z | 2017-11-15T11:55:47.000Z | lib/jsonapi_ecto/get.ex | wojtekmach/jsonapi_ecto | 923e551c968fae2b7e06bd6113fe0fbbeafea534 | [
"Unlicense",
"MIT"
] | null | null | null | lib/jsonapi_ecto/get.ex | wojtekmach/jsonapi_ecto | 923e551c968fae2b7e06bd6113fe0fbbeafea534 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule JSONAPI.Ecto.Get do
def new(_query) do
"http://example.com/articles"
end
end
| 15.833333 | 33 | 0.705263 |
e89ce554df35dc155028e265858ef7dfed205024 | 1,011 | ex | Elixir | lib/adyen_checkout_ex/model/response_additional_data_delivery_address.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/response_additional_data_delivery_address.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/response_additional_data_delivery_address.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.ResponseAdditionalDataDeliveryAddress do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"deliveryAddre... | 28.083333 | 91 | 0.711177 |
e89ce5ccdaf58a842a21efb144525bdc61d7f797 | 2,219 | exs | Elixir | test/every_test.exs | sultaniman/every | b25592a81aa8470b27ed51a5cb24cc08e62bf50f | [
"Apache-2.0"
] | 9 | 2018-10-22T14:07:00.000Z | 2021-01-06T14:02:31.000Z | test/every_test.exs | imanhodjaev/every | b25592a81aa8470b27ed51a5cb24cc08e62bf50f | [
"Apache-2.0"
] | 25 | 2018-10-14T17:58:24.000Z | 2022-01-25T04:19:36.000Z | test/every_test.exs | sultaniman/every | b25592a81aa8470b27ed51a5cb24cc08e62bf50f | [
"Apache-2.0"
] | 2 | 2018-10-16T16:13:57.000Z | 2018-10-26T12:46:19.000Z | defmodule EveryTest do
@moduledoc false
use ExUnit.Case
doctest Every
setup do
{:ok, datetime: Timex.parse!("2018-10-14T16:48:12.000Z", "{ISO:Extended}")}
end
describe "::" do
test "Every minute works as expected", %{datetime: datetime} do
assert Every.minute(datetime) == 48_000
end
... | 29.586667 | 79 | 0.640829 |
e89d318e5de7e50f3b9f175fb0257b8db9453488 | 1,314 | ex | Elixir | lib/jeopardy/fsm/final_jeopardy/grading_answers.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy/fsm/final_jeopardy/grading_answers.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy/fsm/final_jeopardy/grading_answers.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule Jeopardy.FSM.FinalJeopardy.GradingAnswers do
use Jeopardy.FSM
alias Jeopardy.Games.{Player, Clue}
@impl true
def handle(:trebek_submit_grades, grades, %State{} = state) do
Enum.each(state.contestants, fn {player_id, c} ->
if grades[player_id],
do: correct(c, state),
else: in... | 32.85 | 97 | 0.66895 |
e89d3a020cb554a404be778fb5df9fac34856093 | 341 | ex | Elixir | test/support/stubs/code.ex | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | 15 | 2017-01-31T14:18:27.000Z | 2021-05-24T18:25:01.000Z | test/support/stubs/code.ex | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | 10 | 2016-09-18T23:55:28.000Z | 2016-09-30T06:35:10.000Z | test/support/stubs/code.ex | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | 11 | 2018-02-20T04:36:41.000Z | 2022-03-02T13:16:54.000Z | defmodule HtmlEntitiesNotLoaded do
def ensure_loaded?(HtmlEntities), do: false
def ensure_loaded?(_), do: true
end
defmodule MogrifyNotLoaded do
def ensure_loaded?(Mogrify), do: false
def ensure_loaded?(_), do: true
end
defmodule TempfileNotLoaded do
def ensure_loaded?(Tempfile), do: false
def ensure_load... | 22.733333 | 45 | 0.765396 |
e89d727ae53d29b86d1cfdab3bc0a42b65568354 | 89 | exs | Elixir | ListsAndRecursion/0.exs | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | ListsAndRecursion/0.exs | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | ListsAndRecursion/0.exs | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | defmodule MyList do
def sum([]), do: 0
def sum([head|tail]), do: head + sum(tail)
end | 17.8 | 43 | 0.629213 |
e89dd0b37c63fc4988357c12942fa969cb1aeebb | 399 | ex | Elixir | lib/type_check/default_overrides/system.ex | paulswartz/elixir-type_check | fa16ccf78ac1cb7e3db6e0a3836f54fd73bbdb31 | [
"MIT"
] | null | null | null | lib/type_check/default_overrides/system.ex | paulswartz/elixir-type_check | fa16ccf78ac1cb7e3db6e0a3836f54fd73bbdb31 | [
"MIT"
] | null | null | null | lib/type_check/default_overrides/system.ex | paulswartz/elixir-type_check | fa16ccf78ac1cb7e3db6e0a3836f54fd73bbdb31 | [
"MIT"
] | null | null | null | defmodule TypeCheck.DefaultOverrides.System do
use TypeCheck
@type! signal() ::
:sigabrt
| :sigalrm
| :sigchld
| :sighup
| :sigquit
| :sigstop
| :sigterm
| :sigtstp
| :sigusr1
| :sigusr2
@type! time_uni... | 22.166667 | 91 | 0.496241 |
e89dde17db2e4e4b1cd3b5a17c26cf4308d58250 | 850 | exs | Elixir | mix.exs | farazfazli/futuretweet | 0fa2c900d3fb9453862ade7a6346ef2dec288119 | [
"MIT"
] | 2 | 2016-11-29T09:33:42.000Z | 2016-11-29T11:31:45.000Z | mix.exs | farazfazli/futuretweet | 0fa2c900d3fb9453862ade7a6346ef2dec288119 | [
"MIT"
] | null | null | null | mix.exs | farazfazli/futuretweet | 0fa2c900d3fb9453862ade7a6346ef2dec288119 | [
"MIT"
] | null | null | null | defmodule FutureTweet.Mixfile do
use Mix.Project
def project do
[app: :future_tweet,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.ap... | 22.972973 | 77 | 0.587059 |
e89de5105e0ea6332c289d5f5ffa03ea7fb23e20 | 1,740 | exs | Elixir | priv/repo/migrations/20181012223338_add_search_vectors_to_posts_and_replies.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | priv/repo/migrations/20181012223338_add_search_vectors_to_posts_and_replies.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | priv/repo/migrations/20181012223338_add_search_vectors_to_posts_and_replies.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Repo.Migrations.AddSearchVectorsToPostsAndReplies do
use Ecto.Migration
def up do
alter table(:posts) do
add :search_vector, :tsvector
end
alter table(:replies) do
add :search_vector, :tsvector
end
execute """
CREATE FUNCTION posts_search_vector_trigger() RETUR... | 21.75 | 82 | 0.662069 |
e89e0ff18776dd682cffb1d76d2db072961d092a | 592 | exs | Elixir | config/config.exs | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 2 | 2015-09-23T19:18:50.000Z | 2015-09-24T21:08:13.000Z | config/config.exs | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 3 | 2015-09-24T20:38:41.000Z | 2015-09-26T21:26:49.000Z | config/config.exs | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 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.
use Mix.Config
config :nerves, :firmware,
rootfs_additions: "config/#{Mix.Project.config[:target]}... | 34.823529 | 63 | 0.778716 |
e89e1619a4bd994c55f6a62ff03059fdd4ec7307 | 754 | exs | Elixir | test/acceptances/warmer_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | test/acceptances/warmer_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | test/acceptances/warmer_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | defmodule Acceptances.WarmerTest do
use ExUnit.Case
alias Tirexs.{HTTP}
setup do
HTTP.delete("bear_test") && :ok
end
import Tirexs.Search.Warmer
test "index warmers" do
warmers = warmers do
warmer_1 [types: []] do
source do
query do
match_all
end
... | 20.378378 | 112 | 0.549072 |
e89e2c5f00de4baf1079362b5efe2be3ec208261 | 1,549 | ex | Elixir | src/test/project-stubs/elixir/exunit/agnostic/lib/agnostic_web/views/error_helpers.ex | dstrunk/agnostic-test | e4168a926574223982aab3b4da4534727c7b6445 | [
"MIT"
] | null | null | null | src/test/project-stubs/elixir/exunit/agnostic/lib/agnostic_web/views/error_helpers.ex | dstrunk/agnostic-test | e4168a926574223982aab3b4da4534727c7b6445 | [
"MIT"
] | 2 | 2021-06-05T02:35:39.000Z | 2021-11-05T14:49:36.000Z | src/test/project-stubs/elixir/exunit/agnostic/lib/agnostic_web/views/error_helpers.ex | dstrunk/vscode-test | e4168a926574223982aab3b4da4534727c7b6445 | [
"MIT"
] | null | null | null | defmodule AgnosticWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag... | 32.270833 | 77 | 0.663008 |
e89e35bfc77050ff780ab45d5fc5c597ecd6a6c7 | 24,266 | ex | Elixir | lib/iex/lib/iex.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/iex/lib/iex.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | defmodule IEx do
@moduledoc ~S"""
Elixir's interactive shell.
Some of the functionalities described here will not be available
depending on your terminal. In particular, if you get a message
saying that the smart terminal could not be run, some of the
features described here won't work.
## Helpers
IE... | 31.310968 | 105 | 0.681324 |
e89e3a5051acd7edb33323e12f4f4974d5ec8d40 | 2,604 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/activity_object_actor.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/activity_object_actor.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/activity_object_actor.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.294118 | 162 | 0.731567 |
e89e5ffd5ad01b0a54ff61411e23caad31b9dd36 | 14 | exs | Elixir | test/test_helper.exs | mtrudel/phoenix_alexa | 3418f7548d077ebe2e3fe039cc4d4825dcb01f3b | [
"MIT"
] | 55 | 2016-01-24T02:18:41.000Z | 2021-12-14T06:05:27.000Z | apps/tracing_5/test/test_helper.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 22 | 2017-03-17T23:28:44.000Z | 2018-02-10T04:05:04.000Z | apps/tracing_5/test/test_helper.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | ExUnit.start() | 14 | 14 | 0.785714 |
e89e627b35b89ee44600edb06bf5d024080df179 | 1,325 | exs | Elixir | config/dev.exs | meilab/meilab_blog | 86fca779c8b01559440ea3f686695700e8cf5ed2 | [
"MIT"
] | null | null | null | config/dev.exs | meilab/meilab_blog | 86fca779c8b01559440ea3f686695700e8cf5ed2 | [
"MIT"
] | null | null | null | config/dev.exs | meilab/meilab_blog | 86fca779c8b01559440ea3f686695700e8cf5ed2 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :meilab_blog, MeilabBlog.Endpoint,
http: [port... | 30.113636 | 73 | 0.699623 |
e89e6e8f674cdd60e974c0229b0fd0e23ea0eea1 | 1,529 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/case_expression.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/case_expression.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/case_expression.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... | 32.531915 | 154 | 0.744277 |
e89e8a3d8cdf6b0a02a9921c606badd208a00a5a | 689 | exs | Elixir | config/test.exs | JacquiManzi/codebeam_metaprogramming_2021 | 297e944b6436b3247c9a9075061f3454bd084ac4 | [
"MIT"
] | null | null | null | config/test.exs | JacquiManzi/codebeam_metaprogramming_2021 | 297e944b6436b3247c9a9075061f3454bd084ac4 | [
"MIT"
] | null | null | null | config/test.exs | JacquiManzi/codebeam_metaprogramming_2021 | 297e944b6436b3247c9a9075061f3454bd084ac4 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :codebeam_2021, Codebeam2021.Repo,
username: "postgres",
password: "postgres",
database: "codebeam_202... | 29.956522 | 72 | 0.759071 |
e89ef2edd77e174e5e23a712e84504a047779f71 | 1,548 | ex | Elixir | test/example_domain/money_transfer/money_transfer.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | test/example_domain/money_transfer/money_transfer.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | test/example_domain/money_transfer/money_transfer.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | defmodule Commanded.ExampleDomain.MoneyTransfer do
@moduledoc false
@derive Jason.Encoder
defstruct transfer_uuid: nil,
debit_account: nil,
credit_account: nil,
amount: 0,
state: nil
alias Commanded.ExampleDomain.MoneyTransfer
defmodule Commands do
defmodu... | 27.157895 | 89 | 0.69832 |
e89f27dad8d2cff06af90b1975efcd432cc7fa34 | 5,001 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/router.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/router.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/router.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... | 60.253012 | 490 | 0.69986 |
e89f312d3c8486978c7bff7128870379e3c22815 | 259 | ex | Elixir | test/support/test_modules/js_inline_assets.ex | cristineguadelupe/kino | 65348f632c5753d543cd16ff1357d06808b6a4a3 | [
"Apache-2.0"
] | 84 | 2021-07-17T09:19:45.000Z | 2022-03-21T20:43:21.000Z | test/support/test_modules/js_inline_assets.ex | cristineguadelupe/kino | 65348f632c5753d543cd16ff1357d06808b6a4a3 | [
"Apache-2.0"
] | 48 | 2021-07-21T11:59:20.000Z | 2022-03-31T16:34:16.000Z | test/support/test_modules/js_inline_assets.ex | cristineguadelupe/kino | 65348f632c5753d543cd16ff1357d06808b6a4a3 | [
"Apache-2.0"
] | 11 | 2021-09-05T16:30:23.000Z | 2022-02-19T02:06:48.000Z | defmodule Kino.TestModules.JSInlineAssets do
use Kino.JS
asset "main.js" do
"""
export function init(ctx, data) {
console.log(data);
}
"""
end
asset "main.css" do
"""
body {
padding: 16px;
}
"""
end
end
| 12.95 | 44 | 0.53668 |
e89f315d12d39257e01833ccbdf38ac60910a454 | 186 | exs | Elixir | apps/bytepack/priv/repo/migrations/20200921133307_add_external_doc_url_to_packages.exs | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack/priv/repo/migrations/20200921133307_add_external_doc_url_to_packages.exs | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack/priv/repo/migrations/20200921133307_add_external_doc_url_to_packages.exs | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule Bytepack.Repo.Migrations.AddExternalDocToPackages do
use Ecto.Migration
def change do
alter table(:packages) do
add :external_doc_url, :string
end
end
end
| 18.6 | 62 | 0.741935 |
e89f6d1eae7ca5323162b9577780f88e35c0310e | 340 | ex | Elixir | lib/ex_mon_web/auth/pipeline.ex | tarcisiooliveira/ExMon-Web-Api | 7771fe9db907d395a4141b8a3c8501ac48a028e6 | [
"MIT"
] | null | null | null | lib/ex_mon_web/auth/pipeline.ex | tarcisiooliveira/ExMon-Web-Api | 7771fe9db907d395a4141b8a3c8501ac48a028e6 | [
"MIT"
] | null | null | null | lib/ex_mon_web/auth/pipeline.ex | tarcisiooliveira/ExMon-Web-Api | 7771fe9db907d395a4141b8a3c8501ac48a028e6 | [
"MIT"
] | null | null | null | defmodule ExMonWeb.Auth.Pipeline do
@moduledoc """
Module Doc Name
"""
use Guardian.Plug.Pipeline, otp_app: :ex_mon
# a ordem influencia na verificação Verificar o Cabeçalho, autenticação e carregamento dos recursos
plug Guardian.Plug.VerifyHeader
plug Guardian.Plug.EnsureAuthenticated
plug Guardian.Pl... | 28.333333 | 101 | 0.785294 |
e89fb2cd3b3f87039ad74576aa34ef814499bc0c | 340 | ex | Elixir | lib/nkn_client/crypto/supervisor.ex | termoose/nkn_client | f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83 | [
"MIT"
] | 2 | 2019-02-14T19:13:55.000Z | 2020-01-21T14:18:30.000Z | lib/nkn_client/crypto/supervisor.ex | termoose/nkn_client | f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83 | [
"MIT"
] | 2 | 2020-02-03T10:51:19.000Z | 2020-04-12T10:13:23.000Z | lib/nkn_client/crypto/supervisor.ex | termoose/nkn_client | f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83 | [
"MIT"
] | 1 | 2020-04-11T06:38:23.000Z | 2020-04-11T06:38:23.000Z | defmodule NknClient.Crypto.Supervisor do
use Supervisor
alias NknClient.Crypto
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
{Crypto.Keys, Application.get_env(:nkn_client, :seed)}
]
Supervisor.init(children, strategy: :one... | 20 | 60 | 0.708824 |
e89fb5167a8a697a9d3de4f52790cb1d3b0bf763 | 1,200 | exs | Elixir | test/lib/code_corps_web/views/github_pull_request_view_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps_web/views/github_pull_request_view_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps_web/views/github_pull_request_view_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.GithubPullRequestViewTest do
use CodeCorpsWeb.ViewCase
test "renders all attributes and relationships properly" do
github_repo = insert(:github_repo)
github_pull_request = insert(:github_pull_request, github_repo: github_repo)
rendered_json = render(CodeCorpsWeb.GithubPullReques... | 33.333333 | 106 | 0.6175 |
e89ffad2822749f89beb9d6b3d401df90060abdd | 1,896 | ex | Elixir | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/api/log_files.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/api/log_files.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/api/log_files.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Database.MySql.Api.LogFiles do
@moduledoc """
API calls for all endpoints tagged `LogFiles`.
"""
alias Microso... | 45.142857 | 203 | 0.744198 |
e8a01bf1279de06222182ef0c0d623529e7ebc43 | 24,559 | ex | Elixir | lib/mox.ex | dashbitco/mox | 753408748b58a690343dc20bab1a034a674228c6 | [
"Apache-2.0"
] | 409 | 2020-01-20T14:55:51.000Z | 2022-03-31T22:31:20.000Z | lib/mox.ex | dashbitco/mox | 753408748b58a690343dc20bab1a034a674228c6 | [
"Apache-2.0"
] | 38 | 2020-02-12T17:31:52.000Z | 2022-03-21T08:32:28.000Z | lib/mox.ex | dashbitco/mox | 753408748b58a690343dc20bab1a034a674228c6 | [
"Apache-2.0"
] | 24 | 2020-03-30T07:17:39.000Z | 2022-03-28T21:08:57.000Z | defmodule Mox do
@moduledoc ~S"""
Mox is a library for defining concurrent mocks in Elixir.
The library follows the principles outlined in
["Mocks and explicit contracts"](https://dashbit.co/blog/mocks-and-explicit-contracts),
summarized below:
1. No ad-hoc mocks. You can only create mocks based on beha... | 31.566838 | 101 | 0.662079 |
e8a01c42fcf186abe7c3ef6fd7d40e9fe69e4c6d | 10,557 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/api/reports.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/reports.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/reports.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.129464 | 246 | 0.640996 |
e8a057c52335be863b51ac081b14193782985df9 | 110 | ex | Elixir | Next_Level_Week_4/rocketpay/lib/rocketpay/repo.ex | amaziero/next-level-weeek-1 | 2269252f6a7294a82a28aade4404770fb3c438e8 | [
"MIT"
] | 80 | 2021-02-26T13:26:00.000Z | 2022-01-31T15:13:18.000Z | Next_Level_Week_4/rocketpay/lib/rocketpay/repo.ex | amaziero/next-level-weeek-1 | 2269252f6a7294a82a28aade4404770fb3c438e8 | [
"MIT"
] | 9 | 2021-02-28T20:29:58.000Z | 2021-03-26T01:28:01.000Z | Next_Level_Week_4/rocketpay/lib/rocketpay/repo.ex | amaziero/next-level-weeek-1 | 2269252f6a7294a82a28aade4404770fb3c438e8 | [
"MIT"
] | 42 | 2021-02-26T13:26:19.000Z | 2021-12-11T16:32:47.000Z | defmodule Rocketpay.Repo do
use Ecto.Repo,
otp_app: :rocketpay,
adapter: Ecto.Adapters.Postgres
end
| 18.333333 | 35 | 0.736364 |
e8a071bb841c1e79510faf497cede95ee0c213fd | 6,062 | exs | Elixir | .credo.exs | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 933 | 2017-01-14T13:47:37.000Z | 2022-03-21T18:14:41.000Z | .credo.exs | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 189 | 2017-01-15T18:35:06.000Z | 2022-01-24T17:41:22.000Z | .credo.exs | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 54 | 2017-01-15T18:10:48.000Z | 2021-02-06T17:21:44.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 ... | 37.652174 | 91 | 0.633454 |
e8a07fdb799df7c82587f83ebd75bc3aa0190d59 | 133 | exs | Elixir | test/bitstyles_phoenix/component/tabs_test.exs | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | 4 | 2021-03-12T07:57:06.000Z | 2021-11-15T11:41:30.000Z | test/bitstyles_phoenix/component/tabs_test.exs | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | 39 | 2021-03-11T15:36:51.000Z | 2022-01-04T12:13:48.000Z | test/bitstyles_phoenix/component/tabs_test.exs | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | null | null | null | defmodule BitstylesPhoenix.Component.TabsTest do
use BitstylesPhoenix.ComponentCase
doctest BitstylesPhoenix.Component.Tabs
end
| 22.166667 | 48 | 0.864662 |
e8a086a8326d98a9bc28def5a5ca4c380cc3bcfa | 334 | ex | Elixir | lib/darknet_to_onnx/external_data_info.ex | stefkohub/darknet_to_onnx | 1d378a4dd33452e7eba7a6174e4a13a210fa8cb6 | [
"MIT"
] | 1 | 2021-12-05T10:52:26.000Z | 2021-12-05T10:52:26.000Z | lib/darknet_to_onnx/external_data_info.ex | stefkohub/darknet_to_onnx | 1d378a4dd33452e7eba7a6174e4a13a210fa8cb6 | [
"MIT"
] | 3 | 2021-12-17T10:12:22.000Z | 2022-02-28T12:17:21.000Z | lib/darknet_to_onnx/external_data_info.ex | stefkohub/darknet_to_onnx | 1d378a4dd33452e7eba7a6174e4a13a210fa8cb6 | [
"MIT"
] | null | null | null | defmodule DarknetToOnnx.ExternalDataInfo do
def start_link(tensor) do
initialState = %{
location: "",
offset: nil,
length: nil,
checksum: nil,
basepath: ""
}
if tensor.external_data != [] do
Map.merge(initialState, tensor.external_data)
else
initialState
... | 18.555556 | 51 | 0.613772 |
e8a09c7ff6f27ce33429effca5a9f687f051726f | 1,110 | exs | Elixir | mix.exs | digitalnatives/haphazard | 52f0e196bd596662b8bf00dd7f09e20f0a7336b7 | [
"MIT"
] | 12 | 2017-02-13T19:35:26.000Z | 2020-02-01T15:30:53.000Z | mix.exs | digitalnatives/haphazard | 52f0e196bd596662b8bf00dd7f09e20f0a7336b7 | [
"MIT"
] | null | null | null | mix.exs | digitalnatives/haphazard | 52f0e196bd596662b8bf00dd7f09e20f0a7336b7 | [
"MIT"
] | null | null | null | defmodule Haphazard.Mixfile do
use Mix.Project
def project do
[app: :haphazard,
version: "0.4.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
test_coverage: [tool: Ex... | 22.653061 | 122 | 0.563063 |
e8a09f43bd32be3d2c1765f8944a65e1b02a8ccd | 453 | ex | Elixir | lib/mix/tasks/phx_up.del.p.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 27 | 2020-02-22T21:15:33.000Z | 2021-12-25T07:31:14.000Z | lib/mix/tasks/phx_up.del.p.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 1 | 2020-03-07T12:14:12.000Z | 2020-03-07T12:14:12.000Z | lib/mix/tasks/phx_up.del.p.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 2 | 2020-03-03T13:09:08.000Z | 2020-07-24T05:07:45.000Z | defmodule Mix.Tasks.PhxUp.Del.P do
@shortdoc false
@moduledoc false
use Mix.Task
@doc false
def run(io_puts \\ true, args) do
if io_puts == true do
IO.puts("""
_ __ __ _____
___| |_ _ _ | | | _ |
| . | |_'_| | | | __|
| _|_|_|_,_|_____|... | 20.590909 | 46 | 0.461369 |
e8a0a3c006f462f9f05733a4d081f80c17fb9685 | 1,835 | exs | Elixir | test/credo/check/readability/redundant_blank_lines_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/readability/redundant_blank_lines_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/readability/redundant_blank_lines_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.RedundantBlankLinesTest do
use Credo.Test.Case
@described_check Credo.Check.Readability.RedundantBlankLines
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule ModuleWithoutRedundantBlankLines do
def a do
1
... | 16.096491 | 65 | 0.582016 |
e8a0d057752742a027cc195d620ef7ef8dfcd29a | 414 | ex | Elixir | year_2020/lib/input_test_file.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/lib/input_test_file.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/lib/input_test_file.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule InputTestFile do
def filename_for(n) do
day = n |> Integer.to_string() |> String.pad_leading(2, "0")
Path.join(:code.priv_dir(:year_2020), "test/day_#{day}.txt")
end
def contents_of(n, mode \\ :read)
def contents_of(n, :stream) do
filename_for(n)
|> File.stream!([], :line)
end
d... | 21.789474 | 64 | 0.625604 |
e8a0d8a6e9773c96d0a830dd027ea9b816d08b75 | 1,711 | ex | Elixir | lib/oli_web/plugs/maybe_gated_resource.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web/plugs/maybe_gated_resource.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web/plugs/maybe_gated_resource.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | defmodule Oli.Plugs.MaybeGatedResource do
import Plug.Conn
import Phoenix.Controller
import OliWeb.Common.FormatDateTime
alias OliWeb.Router.Helpers, as: Routes
alias Oli.Publishing.DeliveryResolver
alias Oli.Resources.Revision
alias Oli.Delivery.Gating
def init(opts), do: opts
def call(conn, _opts... | 26.734375 | 97 | 0.658095 |
e8a11b6245d863f1ae7a1f288ed04efad612b52e | 1,916 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/identity_selector.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/identity_selector.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/identity_selector.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.765957 | 466 | 0.751044 |
e8a12587efc8ee74686ed73dcbc7b9a5464b0a9b | 1,203 | exs | Elixir | config/config.exs | doctorcorral/gyx | f44990f817cd2cbac01510b3c72cdc374820ac8b | [
"BSD-2-Clause"
] | 19 | 2019-02-02T02:41:12.000Z | 2021-07-05T21:14:45.000Z | config/config.exs | doctorcorral/gyx | f44990f817cd2cbac01510b3c72cdc374820ac8b | [
"BSD-2-Clause"
] | 37 | 2018-11-27T06:41:07.000Z | 2022-01-28T19:39:00.000Z | config/config.exs | doctorcorral/gyx | f44990f817cd2cbac01510b3c72cdc374820ac8b | [
"BSD-2-Clause"
] | 2 | 2018-11-26T22:06:18.000Z | 2019-05-02T19:13:42.000Z | # 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,
format: "$time $metadata[$level] $levelpad$message\n"
# This configuration is loaded before any dependency and is restricted
# to this project. If ano... | 36.454545 | 73 | 0.743142 |
e8a12dbbb2bf68d103bb4dc0ae48ffff3617713e | 3,904 | ex | Elixir | lib/virgo/cache/utils/set.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo/cache/utils/set.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo/cache/utils/set.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | defmodule AstraeaVirgo.Cache.Utils.Set do
@moduledoc """
Interface for Cache Generic Set
- Contest
- Language
- Organization
Generate `exist?/1`, `index/0` and `show/1` operation for Cache
Note: Callback functions can be private
"""
@doc """
Cache Index Key
Example:
```elixir
defp ge... | 27.687943 | 137 | 0.52459 |
e8a13e0f943ada235ee86271781f1ee21884d14c | 400 | exs | Elixir | apps/data/priv/repo/migrations/20181028135233_add_api_id_to_connections.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/data/priv/repo/migrations/20181028135233_add_api_id_to_connections.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/data/priv/repo/migrations/20181028135233_add_api_id_to_connections.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineData.Repo.Migrations.AddApiIdToConnections do
use Ecto.Migration
def up do
execute ~s(create extension "uuid-ossp";)
alter table(:connections) do
add(:key, :uuid, default: fragment("uuid_generate_v4()"), null: false)
end
end
def down do
alter table(:connections) do
... | 20 | 76 | 0.6775 |
e8a14d9bcacf2c1655bd113f831f67cc516833eb | 400 | ex | Elixir | lib/addict/interactors/update_user_password.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 750 | 2015-01-18T23:00:36.000Z | 2021-03-24T22:11:09.000Z | lib/addict/interactors/update_user_password.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 130 | 2015-01-19T12:39:42.000Z | 2021-09-28T22:40:52.000Z | lib/addict/interactors/update_user_password.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 151 | 2015-01-19T09:24:44.000Z | 2020-09-21T13:52:46.000Z | defmodule Addict.Interactors.UpdateUserPassword do
alias Addict.Interactors.GenerateEncryptedPassword
@doc """
Updates the user `encrypted_password`
Returns `{:ok, user}` or `{:error, [errors]}`
"""
def call(user, password, repo \\ Addict.Configs.repo) do
user
|> Ecto.Changeset.change(encrypted_pa... | 25 | 90 | 0.725 |
e8a16a082e4f7d9aeb8c529259de97833527d33b | 3,324 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/training_run.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_run.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_run.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.612903 | 289 | 0.736763 |
e8a16cf8a70eef62c08476ecc05f14b2c4a7ec04 | 2,724 | ex | Elixir | lib/erlef_web/views/view_helpers.ex | juhalehtonen/website | 6d9a8a9cd37b86313e3143f1843985625886103a | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/views/view_helpers.ex | juhalehtonen/website | 6d9a8a9cd37b86313e3143f1843985625886103a | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/views/view_helpers.ex | juhalehtonen/website | 6d9a8a9cd37b86313e3143f1843985625886103a | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.ViewHelpers do
@moduledoc "View Helpers"
def author_name(["eef"]), do: "ErlEF"
def author_name([name]), do: name
def author_name(names), do: Enum.join(names, ", ")
def blog_tag_name("eef"), do: "announcements"
def blog_tag_name(name), do: name
def active_sponsors([]), do: []
def... | 24.540541 | 92 | 0.658223 |
e8a177158648e451e7e4ac15e41a5a88a051fa46 | 274 | exs | Elixir | test/cards_test.exs | Aguiar575/card-dealer-EX | e579f15a76f12fb4e4b8e9b8c89c4ac545fa48c5 | [
"MIT"
] | null | null | null | test/cards_test.exs | Aguiar575/card-dealer-EX | e579f15a76f12fb4e4b8e9b8c89c4ac545fa48c5 | [
"MIT"
] | null | null | null | test/cards_test.exs | Aguiar575/card-dealer-EX | e579f15a76f12fb4e4b8e9b8c89c4ac545fa48c5 | [
"MIT"
] | null | null | null | defmodule CardsTest do
use ExUnit.Case
doctest Cards
test "create deck makes 20 cards" do
assert Enum.count(Cards.create_deck()) == 20
end
test "shuffle cards" do
deck = Cards.create_deck()
refute Cards.shuffle(deck) == Cards.create_deck()
end
end
| 19.571429 | 53 | 0.69708 |
e8a1b0e151dd480fedde1e464a2ea7ecbbc30734 | 1,074 | exs | Elixir | mix.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | 1 | 2020-04-29T09:40:11.000Z | 2020-04-29T09:40:11.000Z | mix.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | mix.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | defmodule Geetest3.MixProject do
use Mix.Project
def project do
[
app: :geetest3,
version: "0.2.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/terianil/geetest3",
description: description(),
package: pack... | 22.375 | 71 | 0.565177 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.