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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dfde870bc143a41df37c528f44853eee2288b3a | 6,996 | ex | Elixir | lib/exop/validation.ex | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | lib/exop/validation.ex | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | lib/exop/validation.ex | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | defmodule Exop.Validation do
@moduledoc """
Provides high-level functions for a contract validation.
The main function is valid?/2
Mostly invokes Exop.ValidationChecks module functions.
"""
import Exop.ValidationChecks
alias Exop.Utils
defmodule ValidationError do
@moduledoc """
An op... | 33 | 115 | 0.642224 |
2dfdf2dad198462083f424ff47c9a797f5a59a3f | 1,131 | exs | Elixir | mix.exs | dutra/astroboy | 37bdb072e20e2b458c468624778c42e53f2ef361 | [
"Apache-2.0"
] | null | null | null | mix.exs | dutra/astroboy | 37bdb072e20e2b458c468624778c42e53f2ef361 | [
"Apache-2.0"
] | null | null | null | mix.exs | dutra/astroboy | 37bdb072e20e2b458c468624778c42e53f2ef361 | [
"Apache-2.0"
] | null | null | null | defmodule Kepler.Mixfile do
use Mix.Project
def project do
[
app: :kepler,
version: "0.0.1",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description()
]
end
# Run "mix help compile.app" to learn about app... | 23.5625 | 121 | 0.607427 |
2dfdf40a21bad7a647005b621bc7a13502618fde | 5,727 | ex | Elixir | lib/aws/generated/mwaa.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/mwaa.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/mwaa.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.MWAA do
@moduledoc """
Amazon Managed Workflows for Apache Airflow
This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API
reference documentation.
For more in... | 20.165493 | 120 | 0.576916 |
2dfdf952ee3680baae583b64e344fcc2b221aaeb | 4,783 | ex | Elixir | web/controllers/cache_controller.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 3 | 2015-08-12T20:45:57.000Z | 2015-10-26T09:20:10.000Z | web/controllers/cache_controller.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 15 | 2015-08-12T16:20:42.000Z | 2015-10-12T16:12:15.000Z | web/controllers/cache_controller.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 1 | 2015-08-20T17:43:10.000Z | 2015-08-20T17:43:10.000Z | defmodule News.CacheController do
use News.Web, :controller
alias News.Story
@cache_control %{
default: "public, max-age=1209600",
error: "public, must-revalidate, max-age=7200",
low: "public, must-revalidate, max-age=30",
}
@low_cache_sha [
"f0e377c20a27c8d9bb6ec16bdfb5d2e21b38c9e6", #... | 34.912409 | 107 | 0.57119 |
2dfe43a223cf74167e20398a2d7a49ae32d4984f | 1,492 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/list_held_accounts_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/list_held_accounts_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/list_held_accounts_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.083333 | 85 | 0.753351 |
2dfe5d34269416a929570b6b0ac456e885569da4 | 268 | exs | Elixir | test/ketbin_web/views/layout_view_test.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 4 | 2020-08-05T20:05:34.000Z | 2020-10-01T10:01:56.000Z | test/ketbin_web/views/layout_view_test.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-07-08T05:02:12.000Z | 2020-09-25T10:05:11.000Z | test/ketbin_web/views/layout_view_test.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-08-30T12:59:49.000Z | 2020-08-30T12:59:49.000Z | defmodule KetbinWeb.LayoutViewTest do
use KetbinWeb.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
| 29.777778 | 65 | 0.764925 |
2dfea0f6c0f1a530e97afc6170bc508a3b7b56ed | 886 | exs | Elixir | config/vars.exs | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 28 | 2017-11-20T02:01:17.000Z | 2021-05-08T16:52:58.000Z | config/vars.exs | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 1 | 2018-12-05T06:07:36.000Z | 2018-12-09T17:33:28.000Z | config/vars.exs | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 3 | 2017-12-21T03:29:39.000Z | 2019-08-11T02:56:08.000Z | use Mix.Config
config :coderjobs,
admin_email: System.get_env("APP_ADMIN_EMAIL"),
locations: %{
"manila" => "Manila",
"quezon-city" => "Quezon City",
"cebu" => "Cebu",
"davao" => "Davao",
"caloocan" => "Caloocan",
"pasay" => "Pasay",
"las-piñas" => "Las Piñas",
"makati" => "Makati",... | 22.15 | 49 | 0.509029 |
2dfeb9d2a3d601e8e1cf17d44bedf8360b355629 | 3,796 | ex | Elixir | lib/logger/lib/logger/app.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/logger/lib/logger/app.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/logger/lib/logger/app.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule Logger.App do
@moduledoc false
require Logger
use Application
@doc false
def start(_type, _args) do
start_options = Application.get_env(:logger, :start_options)
otp_reports? = Application.fetch_env!(:logger, :handle_otp_reports)
config = Logger.Counter.new()
children = [
%{... | 25.648649 | 96 | 0.619336 |
2dfec2f264259b0089b90a6eff81c90fbc73f6a2 | 1,093 | ex | Elixir | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/ehlo/test/support/channel_case.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/ehlo/test/support/channel_case.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/ehlo/test/support/channel_case.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | defmodule EhloWeb.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 |
2dfef5aef47a0cdf5d65add79d0cfae3b9996fa0 | 802 | exs | Elixir | test/erlef_web/controllers/blog_controller_test.exs | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | test/erlef_web/controllers/blog_controller_test.exs | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | test/erlef_web/controllers/blog_controller_test.exs | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.BlogControllerTest do
use ErlefWeb.ConnCase
test "GET /news", %{conn: conn} do
conn = get(conn, Routes.news_path(conn, :index))
assert html_response(conn, 200) =~ "Find all the related news"
end
test "GET /news/:topic", %{conn: conn} do
conn = get(conn, Routes.news_path(conn, :i... | 33.416667 | 89 | 0.668329 |
2dff1809e7a0c315a106bc3bc50ec68b41717c0d | 57 | ex | Elixir | lib/zapex_web/views/page_view.ex | julioleitao/zapex | 7249360a1a3417831e53150686def0f7c987ff32 | [
"MIT"
] | null | null | null | lib/zapex_web/views/page_view.ex | julioleitao/zapex | 7249360a1a3417831e53150686def0f7c987ff32 | [
"MIT"
] | null | null | null | lib/zapex_web/views/page_view.ex | julioleitao/zapex | 7249360a1a3417831e53150686def0f7c987ff32 | [
"MIT"
] | null | null | null | defmodule ZapexWeb.PageView do
use ZapexWeb, :view
end
| 14.25 | 30 | 0.789474 |
2dffd46410b98f3a0698d1855312f39d1897060e | 669 | ex | Elixir | chromoid_web/lib/chromoid_discord/fake_api.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/fake_api.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/lib/chromoid_discord/fake_api.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule ChromoidDiscord.FakeAPI do
def create_message!(channel_id, content) do
{:ok, %Nostrum.Struct.Message{channel_id: channel_id, content: content}}
end
def get_channel!(channel_id) do
%Nostrum.Struct.Channel{
application_id: nil,
bitrate: nil,
guild_id: 643_947_339_895_013_416,
... | 23.892857 | 76 | 0.64275 |
2dffe212148b7acae61c4b8b6fd4e8a511e0ad34 | 2,009 | ex | Elixir | lib/clickhousex.ex | gridgentoo/ElixirClickHouse | cccfad5ef8b533df5c74c36a21eb061f2729843b | [
"Apache-2.0"
] | null | null | null | lib/clickhousex.ex | gridgentoo/ElixirClickHouse | cccfad5ef8b533df5c74c36a21eb061f2729843b | [
"Apache-2.0"
] | null | null | null | lib/clickhousex.ex | gridgentoo/ElixirClickHouse | cccfad5ef8b533df5c74c36a21eb061f2729843b | [
"Apache-2.0"
] | null | null | null | defmodule Clickhousex do
@moduledoc """
Clickhouse driver for Elixir.
This module handles the connection to Clickhouse, providing support
for queries, connection backoff, logging, pooling and
more.
"""
alias Clickhousex.Query
@typedoc """
A connection process name, pid or reference.
A connectio... | 28.7 | 93 | 0.640119 |
2dfff51a2e8ea8a505bd2b2008998f010672afdd | 144 | exs | Elixir | test/gen_report_test.exs | vscGabriel/gen_report | 984b17b48f80869761a4b0fdb95472f46c810429 | [
"MIT"
] | null | null | null | test/gen_report_test.exs | vscGabriel/gen_report | 984b17b48f80869761a4b0fdb95472f46c810429 | [
"MIT"
] | null | null | null | test/gen_report_test.exs | vscGabriel/gen_report | 984b17b48f80869761a4b0fdb95472f46c810429 | [
"MIT"
] | null | null | null | defmodule GenReportTest do
use ExUnit.Case
doctest GenReport
test "greets the world" do
assert GenReport.hello() == :world
end
end
| 16 | 38 | 0.722222 |
9300193bf4c437a807fa849300e4594c5b172590 | 1,111 | exs | Elixir | config/config.exs | savonarola/execv | 0fcbbcc171dcc87cc5a5183c83bee90f30a0f1a5 | [
"MIT"
] | 2 | 2017-06-12T13:16:20.000Z | 2018-06-26T08:50:20.000Z | config/config.exs | savonarola/execv | 0fcbbcc171dcc87cc5a5183c83bee90f30a0f1a5 | [
"MIT"
] | null | null | null | config/config.exs | savonarola/execv | 0fcbbcc171dcc87cc5a5183c83bee90f30a0f1a5 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.83871 | 73 | 0.749775 |
930041e7b0ecf25448d91e4c20cbd26a3d2f065a | 2,068 | ex | Elixir | lib/embed_chat_web/controllers/room_controller.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 27 | 2016-10-15T12:13:22.000Z | 2021-02-07T20:31:41.000Z | lib/embed_chat_web/controllers/room_controller.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | null | null | null | lib/embed_chat_web/controllers/room_controller.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 4 | 2016-08-21T15:03:29.000Z | 2019-11-22T13:15:29.000Z | defmodule EmbedChatWeb.RoomController do
use EmbedChatWeb, :controller
alias EmbedChat.Room
plug :scrub_params, "room" when action in [:create, :update]
plug Guardian.Plug.EnsureAuthenticated, [handler: EmbedChatWeb.AuthErrorHandler] when action in [:index, :new, :create, :edit, :update, :delete]
def index... | 29.542857 | 146 | 0.631528 |
93018957525cd12cdb104cba8ac1ffdc4682e938 | 3,148 | ex | Elixir | test/support/response_builder.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | test/support/response_builder.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | test/support/response_builder.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Support.ResponseBuilder do
@moduledoc """
Helper module to mock HTTPoison responses
"""
def build_response(file) do
content = File.read!(file)
{:ok,
%HTTPoison.Response{
body: content,
headers: [
{"Date", "Sat, 29 Feb 2020 21:16:46 GMT"},
{"Co... | 33.136842 | 121 | 0.54892 |
93019ce5172fda5269c8d65b9f58bbf59a4193a8 | 2,736 | ex | Elixir | lib/neko/achievement/store/registry.ex | xmaid/neko-achievements | 4998e462efcc977e4ee1b3e2471023f427e400f6 | [
"MIT"
] | 21 | 2017-05-11T19:19:22.000Z | 2021-06-15T23:43:18.000Z | lib/neko/achievement/store/registry.ex | xmaid/neko-achievements | 4998e462efcc977e4ee1b3e2471023f427e400f6 | [
"MIT"
] | 41 | 2017-11-20T18:43:31.000Z | 2021-12-09T18:17:25.000Z | lib/neko/achievement/store/registry.ex | xmaid/neko-achievements | 4998e462efcc977e4ee1b3e2471023f427e400f6 | [
"MIT"
] | 97 | 2017-10-11T15:38:11.000Z | 2022-01-21T09:56:01.000Z | defmodule Neko.Achievement.Store.Registry do
@moduledoc """
Registry of achievements stores:
each user is mapped to his achievement store.
"""
use GenServer
alias Neko.Achievement.Store.DynamicSupervisor
@name __MODULE__
# ------------------------------------------------------------------
# Client ... | 27.636364 | 78 | 0.592105 |
9301e2f6593747703a6a8267ea0de863c6430f68 | 489 | ex | Elixir | lib/kepler_web/views/error_view.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | lib/kepler_web/views/error_view.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | lib/kepler_web/views/error_view.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | defmodule KeplerWeb.ErrorView do
use KeplerWeb, :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 template name. ... | 28.764706 | 61 | 0.734151 |
930211b9a5e39d1578e13f74515e7c9356413060 | 431 | exs | Elixir | test/controllers/contact_controller_test.exs | KazuCocoa/hello_phoenix | 9c64de70588558e4439d8620757e39deb2a01b4b | [
"MIT"
] | null | null | null | test/controllers/contact_controller_test.exs | KazuCocoa/hello_phoenix | 9c64de70588558e4439d8620757e39deb2a01b4b | [
"MIT"
] | null | null | null | test/controllers/contact_controller_test.exs | KazuCocoa/hello_phoenix | 9c64de70588558e4439d8620757e39deb2a01b4b | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.ContactControllerTest do
use HelloPhoenix.Case, async: false
test "/index returns a list of contacts" do
contacts_as_json =
%Contact{name: "Gumbo", phone: "(801) 555-5555"}
|> Repo.insert
|> List.wrap
|> Poison.encode!
response = conn(:get, "/api/contacts") |... | 25.352941 | 58 | 0.670534 |
93021a089fb2d38e73c797cc656ee976163f1a68 | 878 | ex | Elixir | lib/ex_admin/themes/active_admin/paginate.ex | spunkedy/ex_admin | a576bead2a030f3dfe7abec0ff610809eb0db06f | [
"MIT"
] | 23 | 2018-04-10T07:45:48.000Z | 2019-12-31T01:11:07.000Z | lib/ex_admin/themes/active_admin/paginate.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 115 | 2018-04-15T14:11:18.000Z | 2021-08-01T11:20:34.000Z | lib/ex_admin/themes/active_admin/paginate.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 15 | 2018-10-04T19:09:00.000Z | 2020-06-25T16:02:30.000Z | defmodule ExAdmin.Theme.ActiveAdmin.Paginate do
@moduledoc false
import ExAdmin.Paginate
use Xain
def wrap_pagination1(fun) do
markup do
nav ".pagination" do
fun.()
end
end
end
def wrap_pagination2(fun) do
markup do
div ".pagination_information" do
fun.()
... | 18.291667 | 81 | 0.559226 |
93024beb3d2c75cf3f82022fff85561545b1d8b0 | 68 | ex | Elixir | lib/dobar_web/views/admin/dashboard_view.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | null | null | null | lib/dobar_web/views/admin/dashboard_view.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 14 | 2019-09-02T18:00:07.000Z | 2021-09-02T00:49:54.000Z | lib/dobar_web/views/admin/dashboard_view.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 1 | 2016-07-27T14:40:55.000Z | 2016-07-27T14:40:55.000Z | defmodule DobarWeb.Admin.DashboardView do
use DobarWeb, :view
end
| 17 | 41 | 0.808824 |
93025a54350118b57c16e305f84a1d0ec4e9e892 | 761 | exs | Elixir | mix.exs | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | 2 | 2019-07-09T18:18:54.000Z | 2020-01-18T10:30:34.000Z | mix.exs | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | null | null | null | mix.exs | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | null | null | null | defmodule Ahab.Mixfile do
use Mix.Project
@version "0.1.1"
@source_url "https://github.com/jquadrin/ahab"
def project do
[app: :ahab,
version: @version,
elixir: "~> 1.2",
deps: deps,
docs: docs,
name: "Ahab",
description: description,
package: package,
source_url: @... | 16.543478 | 58 | 0.588699 |
930263a0c10c8124bce44af2a1c90ce695d46623 | 2,093 | ex | Elixir | lib/ex_aliyun_ots/client/transaction.ex | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | lib/ex_aliyun_ots/client/transaction.ex | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | lib/ex_aliyun_ots/client/transaction.ex | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | defmodule ExAliyunOts.Client.Transaction do
@moduledoc false
alias ExAliyunOts.{PlainBuffer, Http}
alias ExAliyunOts.TableStore.{
StartLocalTransactionRequest,
StartLocalTransactionResponse,
CommitTransactionRequest,
CommitTransactionResponse,
AbortTransactionRequest,
AbortTransactionRes... | 23.784091 | 93 | 0.699474 |
93026e85d1a7f7fe6d442d8592b8ee69f73ce4e7 | 338 | exs | Elixir | mix.exs | leuchtturm-solutions/backoffice | 7c6671f3bd4e837417d59813b2ddaf01a20d0291 | [
"MIT"
] | null | null | null | mix.exs | leuchtturm-solutions/backoffice | 7c6671f3bd4e837417d59813b2ddaf01a20d0291 | [
"MIT"
] | null | null | null | mix.exs | leuchtturm-solutions/backoffice | 7c6671f3bd4e837417d59813b2ddaf01a20d0291 | [
"MIT"
] | null | null | null | defmodule Backoffice.MixProject do
use Mix.Project
def project do
[
app: :backoffice,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
... | 13.52 | 42 | 0.54142 |
93029a925683fb132a2559c9bc8748eaaa7cfdbc | 1,993 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/subaccounts_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/subaccounts_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/subaccounts_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.603774 | 159 | 0.731059 |
93029ac91e90f9970632a8d5f1cd7be1df3bc8f8 | 531 | ex | Elixir | lib/elixero/files_api/files.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | lib/elixero/files_api/files.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | lib/elixero/files_api/files.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.FilesApi.Files do
@resource "files"
@api_type :files
def upload(client, path_to_file, name) do
case(Application.get_env(:elixero, :app_type)) do
:private -> EliXero.Private.upload_multipart(client.access_token, @resource, @api_type, path_to_file, name)
:public -> EliXero.Public.... | 44.25 | 113 | 0.747646 |
93029e57cc9334f4af97044960ff47e5450da25c | 1,921 | ex | Elixir | test/registration/support/registration_test_case.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:23.000Z | 2018-12-28T20:48:23.000Z | test/registration/support/registration_test_case.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | test/registration/support/registration_test_case.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-05T18:15:03.000Z | 2018-12-05T18:15:03.000Z | defmodule Commanded.RegistrationTestCase do
import Commanded.SharedTestCase
define_tests do
alias Commanded.Registration
alias Commanded.Registration.{RegisteredServer, RegisteredSupervisor}
setup %{registry: registry} do
Application.put_env(:commanded, :registry, registry)
{:ok, supervis... | 30.492063 | 73 | 0.667361 |
9302cd209258914b308e72a5d7c6535e1b02d836 | 353 | exs | Elixir | priv/repo/seeds.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | 11 | 2021-12-19T09:07:30.000Z | 2022-01-01T17:54:43.000Z | priv/repo/seeds.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"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:
#
# Cookbook.Repo.insert!(%Cookbook.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they wi... | 29.416667 | 61 | 0.708215 |
9302e3a21fadf24ab3051b519c34f6e57abd5709 | 1,608 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_export_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_export_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_export_request.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... | 34.212766 | 147 | 0.758706 |
9302eddac6696e5d8ce2feeb58e34e4007670d3a | 11,156 | ex | Elixir | lib/bitstyles_phoenix/alpine3/sidebar.ex | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | 4 | 2021-03-12T07:57:06.000Z | 2021-11-15T11:41:30.000Z | lib/bitstyles_phoenix/alpine3/sidebar.ex | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | 39 | 2021-03-11T15:36:51.000Z | 2022-01-04T12:13:48.000Z | lib/bitstyles_phoenix/alpine3/sidebar.ex | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | null | null | null | defmodule BitstylesPhoenix.Alpine3.Sidebar do
use BitstylesPhoenix.Component
alias BitstylesPhoenix.Component.Sidebar, as: RawSidebar
import BitstylesPhoenix.Helper.Button
import Phoenix.LiveView.Utils, only: [random_id: 0]
@moduledoc """
Components for rendering a sidebar layout powered by Alpine 3.
""... | 42.743295 | 427 | 0.551542 |
93030590b7af55b8e9389fe4edba2a34816ae5d9 | 2,116 | exs | Elixir | test/changelog_web/controllers/news_item_comment_controller_test.exs | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | test/changelog_web/controllers/news_item_comment_controller_test.exs | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | test/changelog_web/controllers/news_item_comment_controller_test.exs | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.NewsItemCommentControllerTest do
use ChangelogWeb.ConnCase
import Mock
alias Changelog.{NewsItemComment, Notifier}
@tag :as_user
test "previewing a comment", %{conn: conn} do
conn = post(conn, news_item_comment_path(conn, :preview), md: "## Ohai!")
assert html_response(conn, ... | 34.129032 | 150 | 0.696125 |
930378f3fc9e8acfa4fe8d4e9c24b6cc636aacb9 | 1,482 | ex | Elixir | lib/opq.ex | gridgentoo/in-memory-queue | ff1d101b5b1083b6802f7dda909fd06bcf38c0d7 | [
"MIT"
] | null | null | null | lib/opq.ex | gridgentoo/in-memory-queue | ff1d101b5b1083b6802f7dda909fd06bcf38c0d7 | [
"MIT"
] | null | null | null | lib/opq.ex | gridgentoo/in-memory-queue | ff1d101b5b1083b6802f7dda909fd06bcf38c0d7 | [
"MIT"
] | null | null | null | defmodule OPQ do
@moduledoc """
A simple, in-memory queue with worker pooling and rate limiting in Elixir.
"""
alias OPQ.{Options, Feeder, RateLimiter, WorkerSupervisor}
alias OPQ.OptionsHandler, as: Opt
def init(opts \\ []) do
opts
|> Options.assign_defaults()
|> start_links()
end
def en... | 24.295082 | 76 | 0.656545 |
9303bd9c8aa10de48eeed25848841a72d4a3df46 | 24,521 | exs | Elixir | test/ecto/schema_test.exs | princemaple/ecto | 268d63ba60edd7e814048f68ee4510da7e4454ea | [
"Apache-2.0"
] | null | null | null | test/ecto/schema_test.exs | princemaple/ecto | 268d63ba60edd7e814048f68ee4510da7e4454ea | [
"Apache-2.0"
] | null | null | null | test/ecto/schema_test.exs | princemaple/ecto | 268d63ba60edd7e814048f68ee4510da7e4454ea | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../integration_test/support/types.exs", __DIR__
defmodule Ecto.SchemaTest do
use ExUnit.Case, async: true
defmodule Schema do
use Ecto.Schema
schema "my schema" do
field :name, :string, default: "eric", autogenerate: {String, :upcase, ["eric"]}
field :email, :string, un... | 32.564409 | 143 | 0.662534 |
9303cf44dde5b302bff28c3809be45cf3aaf1d17 | 881 | ex | Elixir | lib/hts221/temperature.ex | mattludwigs/hts221 | cf6c7b434a469ddf59bbd85b9b0f755edea56495 | [
"Apache-2.0"
] | 6 | 2018-11-15T17:18:48.000Z | 2021-05-16T20:56:27.000Z | lib/hts221/temperature.ex | mattludwigs/hts221 | cf6c7b434a469ddf59bbd85b9b0f755edea56495 | [
"Apache-2.0"
] | null | null | null | lib/hts221/temperature.ex | mattludwigs/hts221 | cf6c7b434a469ddf59bbd85b9b0f755edea56495 | [
"Apache-2.0"
] | null | null | null | defmodule HTS221.Temperature do
@moduledoc """
Temperature Registers
This module abstracts over the two temperature registers (0x2A, 0x2B) and
provide functionally to read both at once to provide the raw ADC data on in
the two registers.
"""
@type t() :: %__MODULE__{
temp_out_l: byte(),
... | 21.487805 | 77 | 0.629966 |
9303f43cb151412c4352228926325df25d8a7622 | 3,740 | ex | Elixir | lib/wallaby/query/xpath.ex | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | 1 | 2019-01-30T12:08:17.000Z | 2019-01-30T12:08:17.000Z | lib/wallaby/query/xpath.ex | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | 2 | 2019-04-10T08:23:27.000Z | 2021-01-25T16:37:23.000Z | lib/wallaby/query/xpath.ex | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | 1 | 2019-01-29T16:03:55.000Z | 2019-01-29T16:03:55.000Z | defmodule Wallaby.Query.XPath do
@moduledoc false
# credo:disable-for-this-file Credo.Check.Readability.MaxLineLength
@type query :: String.t
@type xpath :: String.t
@type name :: query
@type id :: query
@type label :: query
@doc """
XPath for links
this xpath is gracious ripped from capybara ... | 42.5 | 560 | 0.56631 |
930413209da61f8435dae5c6c11ee5d8a650b403 | 2,336 | ex | Elixir | clients/run/lib/google_api/run/v1/model/google_rpc_status.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/google_rpc_status.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/google_rpc_status.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... | 44.075472 | 427 | 0.720462 |
93041683ccf2fa3a56dc45f919ed1346f0011ee3 | 1,729 | ex | Elixir | lib/yuri_template.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 3 | 2020-05-03T15:30:21.000Z | 2021-05-09T01:35:41.000Z | lib/yuri_template.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 1 | 2021-04-15T20:08:14.000Z | 2021-04-18T20:48:17.000Z | lib/yuri_template.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | null | null | null | defmodule YuriTemplate do
@moduledoc """
Delegates and convenience wrappers.
"""
alias YuriTemplate.RFC6570
@spec parse(String.t(), RFC6570.name_conv()) :: {:ok, RFC6570.t()} | {:error, term}
defdelegate parse(str, name_conv \\ :atom), to: RFC6570
@spec parameters(RFC6570.t()) :: [atom] | [String.t()]
... | 27.015625 | 90 | 0.660497 |
93042a42d3af60eafa599057ff170ff9bc277912 | 711 | exs | Elixir | apps/frontend/test/test_helper.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/frontend/test/test_helper.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/frontend/test/test_helper.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 39.5 | 74 | 0.76512 |
9304380178eb38cca4a97eb211f3ac01fb2261f9 | 896 | ex | Elixir | lib/euclid/exists.ex | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | 4 | 2021-06-14T13:54:05.000Z | 2021-10-22T02:55:16.000Z | lib/euclid/exists.ex | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | 3 | 2021-06-15T21:45:51.000Z | 2022-01-14T20:08:32.000Z | lib/euclid/exists.ex | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | null | null | null | defmodule Euclid.Exists do
def any?(enum) when is_list(enum) or is_map(enum), do: enum |> Enum.any?(&present?/1)
def blank?(nil), do: true
def blank?(s) when is_binary(s), do: s |> String.trim() |> String.length() == 0
def blank?([]), do: true
def blank?(list) when is_list(list), do: false
def blank?(m) wh... | 40.727273 | 105 | 0.658482 |
93043d5b93a08a80cc03a7aa7a3e26706713bcfe | 1,707 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/debug_instance_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/debug_instance_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/debug_instance_request.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... | 36.319149 | 371 | 0.743409 |
9304488258186425fdefe65dfa40a76c1fee3d22 | 1,127 | exs | Elixir | 01_saying_hello/config/config.exs | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | 1 | 2015-12-15T04:46:41.000Z | 2015-12-15T04:46:41.000Z | 01_saying_hello/config/config.exs | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | null | null | null | 01_saying_hello/config/config.exs | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"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... | 36.354839 | 73 | 0.753327 |
93045397b1933418b6cc77a3d0cc692e2f8982d3 | 6,015 | exs | Elixir | .credo.exs | taxfix/grakn-elixir | 23d094bad69cfbd1c021cf782fd8aff1bff38140 | [
"MIT"
] | 16 | 2018-10-10T09:29:19.000Z | 2021-07-17T03:37:03.000Z | .credo.exs | liveforeverx/grakn_elixir | e64745fb200dd64956396c33b986b94706556ab4 | [
"MIT"
] | 19 | 2018-08-10T04:33:46.000Z | 2018-12-02T04:55:48.000Z | .credo.exs | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 7 | 2018-03-26T07:09:20.000Z | 2021-03-06T14:43: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.59375 | 91 | 0.633084 |
93049074ba4d11bad4e962dd9651a6cf11d25f7c | 2,948 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/snapshot.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/snapshot.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/snapshot.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 51.719298 | 758 | 0.735414 |
9304a17e9fb40b8a0666e7e16f5d128269040409 | 4,308 | ex | Elixir | lib/esquew/subscription/subscription.ex | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | lib/esquew/subscription/subscription.ex | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | lib/esquew/subscription/subscription.ex | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | defmodule Esquew.Subscription do
use GenServer
@moduledoc """
Genserver module for the state of a subscription
"""
@registry Esquew.Registry
defmodule SubscriptionState do
@moduledoc """
Struct representing Subscription state
"""
@enforce_keys [:topic, :subscription]
defstruct topic:... | 27.09434 | 99 | 0.624652 |
9304b1cc078dd628dc02203fd1eae3847bf9f1e8 | 1,813 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/clone_definition.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/clone_definition.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/clone_definition.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... | 36.26 | 182 | 0.737452 |
9304b1e5ec7e0b33ea7ce5109305d3f36a797b5c | 114,398 | ex | Elixir | lib/ecto/changeset.ex | Eiji7/ecto | 766aa8e9900ea1a23e8862a699eb27d41ee798ff | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | Eiji7/ecto | 766aa8e9900ea1a23e8862a699eb27d41ee798ff | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | Eiji7/ecto | 766aa8e9900ea1a23e8862a699eb27d41ee798ff | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating structs.
There is an example of working with changesets in the introductory
documentation in the `Ecto` module. The functions `cast/4` and
`change/2` are the usual en... | 38.337131 | 169 | 0.663115 |
9304b7d25a98b70b1781b253339b415269a2be2f | 1,984 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_billing_accounts_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_billing_accounts_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_billing_accounts_response.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... | 39.68 | 277 | 0.750504 |
9304c1f31418ec5d9f56bf9e68dbbc53a31b0a42 | 1,081 | ex | Elixir | apps/thundermoon_web/test/support/conn_case.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/thundermoon_web/test/support/conn_case.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/thundermoon_web/test/support/conn_case.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | defmodule ThundermoonWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, i... | 29.216216 | 92 | 0.72988 |
9304cabcb73a3541376fb5500e83c1df96021baf | 103 | ex | Elixir | lib/slipstream/commands/open_connection.ex | fhunleth/slipstream | cebd924384b93b7dd3c1aa6ae2ac8d237e942f18 | [
"Apache-2.0"
] | 63 | 2021-02-10T16:18:11.000Z | 2022-03-18T11:06:44.000Z | lib/slipstream/commands/open_connection.ex | fhunleth/slipstream | cebd924384b93b7dd3c1aa6ae2ac8d237e942f18 | [
"Apache-2.0"
] | 21 | 2021-01-30T21:00:06.000Z | 2021-12-27T04:27:15.000Z | lib/slipstream/commands/open_connection.ex | fhunleth/slipstream | cebd924384b93b7dd3c1aa6ae2ac8d237e942f18 | [
"Apache-2.0"
] | 6 | 2021-02-26T23:56:49.000Z | 2022-03-26T09:28:13.000Z | defmodule Slipstream.Commands.OpenConnection do
@moduledoc false
defstruct [:config, :socket]
end
| 17.166667 | 47 | 0.786408 |
9304d9ae283679f4594902f4384bd261a92f52f5 | 4,333 | ex | Elixir | lib/imagine/cms_templates/render_edit_helpers.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 25 | 2020-09-08T05:13:40.000Z | 2022-03-15T13:35:59.000Z | lib/imagine/cms_templates/render_edit_helpers.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | null | null | null | lib/imagine/cms_templates/render_edit_helpers.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 3 | 2021-08-11T03:48:54.000Z | 2022-02-09T20:11:06.000Z | defmodule Imagine.CmsTemplates.RenderEditHelpers do
@moduledoc """
Defines CMS template helpers like text_editor in Edit mode (i.e. editor controls)
"""
use Phoenix.HTML
alias Imagine.CmsPages.CmsPageObject
alias Imagine.CmsTemplates.RenderViewHelpers
# add shortened, @conn-free versions of all the help... | 37.034188 | 738 | 0.661205 |
93054e4d26fd169450c5b397f197c2a10c07a0ec | 2,056 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list_warning_data.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 ... | 41.12 | 527 | 0.746595 |
9305541c184ec1b3966398c6a6e3c2f97efc371f | 4,881 | exs | Elixir | test/aggregates/multi_test.exs | MainShayne233/commanded | dd9662718b4505ebeaaf3bf80d4c3ea3e6142fd5 | [
"MIT"
] | null | null | null | test/aggregates/multi_test.exs | MainShayne233/commanded | dd9662718b4505ebeaaf3bf80d4c3ea3e6142fd5 | [
"MIT"
] | null | null | null | test/aggregates/multi_test.exs | MainShayne233/commanded | dd9662718b4505ebeaaf3bf80d4c3ea3e6142fd5 | [
"MIT"
] | null | null | null | defmodule Commanded.Aggregate.MultiTest do
use ExUnit.Case
import Commanded.Enumerable
alias Commanded.DefaultApp
alias Commanded.EventStore
alias Commanded.Aggregate.Multi
alias Commanded.Aggregate.Multi.BankAccount
alias Commanded.Aggregate.Multi.BankAccount.Commands.{OpenAccount, WithdrawMoney}
ali... | 30.12963 | 96 | 0.641467 |
93057b7fc323c7ea7e24b047d01bf48b208ff186 | 4,741 | ex | Elixir | lib/livebook_web/live/output.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Output do
use Phoenix.Component
import LivebookWeb.Helpers
alias LivebookWeb.Output
@doc """
Renders a list of cell outputs.
"""
def outputs(assigns) do
~H"""
<%= for {idx, output} <- Enum.reverse(@outputs) do %>
<div class="max-w-full" id={"output-wrapper-#{@dom_id_... | 30.197452 | 145 | 0.622443 |
9305ba960a5bbdd1491c6ea6361927e139a96ca6 | 823 | ex | Elixir | priv/elixir/boss/repo.ex | 7i11/ChicagoBoss | 97a0356cf13f47b0d72ac6e6376d9d4b658c6160 | [
"MIT"
] | 922 | 2015-01-03T04:26:21.000Z | 2022-03-25T14:13:44.000Z | priv/elixir/boss/repo.ex | 7i11/ChicagoBoss | 97a0356cf13f47b0d72ac6e6376d9d4b658c6160 | [
"MIT"
] | 159 | 2015-01-02T13:48:49.000Z | 2021-12-13T21:00:52.000Z | priv/elixir/boss/repo.ex | 7i11/ChicagoBoss | 97a0356cf13f47b0d72ac6e6376d9d4b658c6160 | [
"MIT"
] | 171 | 2015-01-04T06:32:07.000Z | 2021-10-04T14:42:56.000Z | defmodule Boss.Repo.Sup do
use Supervisor.Behaviour
def start_link do
:supervisor.start_link({ :local, __MODULE__ }, __MODULE__, [])
end
def init([]) do
tree = [ worker(Boss.Repo, []) ]
supervise(tree, strategy: :one_for_all)
end
end
defmodule Boss.Repo do
use Ecto.Repo, adapter: Ecto.Adapter... | 30.481481 | 99 | 0.692588 |
9305bb49b03dc198443ae11441705763db7910c4 | 4,402 | ex | Elixir | lib/appsignal/span.ex | oliver-kriska/appsignal-elixir | 2de2759a67257c5325434f190084f53c4ab5f913 | [
"MIT"
] | null | null | null | lib/appsignal/span.ex | oliver-kriska/appsignal-elixir | 2de2759a67257c5325434f190084f53c4ab5f913 | [
"MIT"
] | null | null | null | lib/appsignal/span.ex | oliver-kriska/appsignal-elixir | 2de2759a67257c5325434f190084f53c4ab5f913 | [
"MIT"
] | null | null | null | defmodule Appsignal.Span do
alias Appsignal.{Config, Nif, Span}
defstruct [:reference, :pid]
@nif Application.get_env(:appsignal, :appsignal_tracer_nif, Appsignal.Nif)
def create_root(namespace, pid) do
if Config.active?() do
{:ok, reference} = @nif.create_root_span(namespace)
%Span{reference:... | 29.543624 | 96 | 0.684234 |
9305bdfd100810e7313950f5e5c476eb61fda286 | 5,472 | exs | Elixir | test/other_transaction_test.exs | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | null | null | null | test/other_transaction_test.exs | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | null | null | null | test/other_transaction_test.exs | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | null | null | null | defmodule OtherTransactionTest do
use ExUnit.Case
alias NewRelic.Harvest.Collector
setup do
reset_config = TestHelper.update(:nr_config, license_key: "dummy_key", harvest_enabled: true)
send(NewRelic.DistributedTrace.BackoffSampler, :reset)
on_exit(fn ->
reset_config.()
end)
:ok
end... | 30.569832 | 97 | 0.719115 |
9305e4e8444fe46aaabdcc03edeabe92d1b908b3 | 430 | ex | Elixir | lib/level/analytics.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/analytics.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/analytics.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Analytics do
@moduledoc """
Tracking identity and events in external providers.
"""
@adapter Application.get_env(:level, __MODULE__)[:adapter]
def identify(email, properties \\ %{}) do
Task.start(fn ->
@adapter.identify(email, properties)
end)
end
def track(email, action, ... | 21.5 | 60 | 0.660465 |
930605d7fa877e8bfa3e25625c1bdc2e85a6f1f9 | 320 | exs | Elixir | priv/repo/migrations/20190509170118_create_bids_table_unique_constraint.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2021-02-01T12:09:07.000Z | 2021-03-14T12:20:43.000Z | priv/repo/migrations/20190509170118_create_bids_table_unique_constraint.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 11 | 2019-04-09T18:01:16.000Z | 2019-05-16T15:02:24.000Z | priv/repo/migrations/20190509170118_create_bids_table_unique_constraint.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2019-04-30T22:43:18.000Z | 2019-05-15T20:34:49.000Z | defmodule Renaissance.Repo.Migrations.CreateBidsTableUniqueConstraint do
use Ecto.Migration
def up do
create unique_index(:bids, [:amount, :auction_id], name: :bids_amount_auction_id_index)
end
def down do
drop unique_index(:bids, [:amount, :auction_id], name: :bids_amount_auction_id_index)
end
end
| 26.666667 | 91 | 0.76875 |
9306280379bb60b58cebcc0bccaa1cbb46e16b96 | 4,185 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/model/player.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/model/player.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/model/player.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.556818 | 207 | 0.713501 |
93063a09fa75e17485f83e562bf00969f603f445 | 71 | ex | Elixir | lib/fotd.ex | aesmail/fotd | 03bc3f145ed2aa30bafa25198570c380a8d0ad31 | [
"Apache-2.0"
] | 1 | 2018-11-24T12:01:30.000Z | 2018-11-24T12:01:30.000Z | lib/fotd.ex | wojtekmach/fotd | f485b6b8d4d9e7b3385699f6175d1bc61d13035a | [
"Apache-2.0"
] | null | null | null | lib/fotd.ex | wojtekmach/fotd | f485b6b8d4d9e7b3385699f6175d1bc61d13035a | [
"Apache-2.0"
] | null | null | null | defmodule Fotd do
def random() do
Fotd.Cache.random()
end
end
| 10.142857 | 23 | 0.661972 |
93065223ad1605bc368e264823f00c319ec412eb | 557 | ex | Elixir | web/router.ex | andrewbredow/artprize-vote-phoenix | 01f597e85d935da114d48527b8bf1e32e4a3ad0a | [
"MIT"
] | 2 | 2015-11-18T16:44:19.000Z | 2018-04-04T16:54:42.000Z | web/router.ex | andrewbredow/artprize-vote-phoenix | 01f597e85d935da114d48527b8bf1e32e4a3ad0a | [
"MIT"
] | null | null | null | web/router.ex | andrewbredow/artprize-vote-phoenix | 01f597e85d935da114d48527b8bf1e32e4a3ad0a | [
"MIT"
] | null | null | null | defmodule Artprize.Router do
use Phoenix.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
# plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Artprize do
pipe_through :browser # Use the default browser s... | 19.892857 | 57 | 0.662478 |
93065f8c295e6589474c45e957ec9b6cba6a7a6e | 1,328 | ex | Elixir | exercism/elixir/house/lib/house.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/house/lib/house.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/house/lib/house.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule House do
@verbs [
"lay in",
"ate",
"killed",
"worried",
"tossed",
"milked",
"kissed",
"married",
"woke",
"kept",
"belonged to"
]
@actors [
"malt",
"rat",
"cat",
"dog",
"cow with the crumpled horn",
"maiden all forlorn",
"man all ta... | 22.133333 | 88 | 0.5625 |
930670244fee27b5283357e26c1e3b8cdba51457 | 4,951 | ex | Elixir | lib/advent_of_code/solutions/day08.ex | odarriba/advent_of_code_2021 | 658059cc83438c588d72fd6b30685f555cf8f7a2 | [
"MIT"
] | 5 | 2021-11-30T15:26:47.000Z | 2021-12-25T19:31:44.000Z | lib/advent_of_code/solutions/day08.ex | odarriba/advent_of_code_2021 | 658059cc83438c588d72fd6b30685f555cf8f7a2 | [
"MIT"
] | null | null | null | lib/advent_of_code/solutions/day08.ex | odarriba/advent_of_code_2021 | 658059cc83438c588d72fd6b30685f555cf8f7a2 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Solutions.Day08 do
@moduledoc """
Solution for day 8 exercise.
### Exercise
https://adventofcode.com/2021/day/8
"""
require Logger
@entry_separator " | "
def calculate_segments(filename, mode) do
entries =
filename
|> File.read!()
|> parse_entries()
... | 25.786458 | 80 | 0.623914 |
930680f81c750ecbdb740c4007811c7e1b776ccf | 1,535 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_advance_test_order_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/orders_advance_test_order_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_advance_test_order_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 ... | 32.659574 | 196 | 0.753094 |
9306a4715a6735858e9d12f075f7de4b58d16747 | 2,195 | ex | Elixir | lib/level_web/controllers/password_reset_controller.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level_web/controllers/password_reset_controller.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level_web/controllers/password_reset_controller.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule LevelWeb.PasswordResetController do
@moduledoc false
use LevelWeb, :controller
alias Level.Users
alias LevelWeb.ErrorView
plug :redirect_if_signed_in when action in [:new, :create]
plug :fetch_password_reset when action in [:show, :update]
def new(conn, _) do
conn
|> assign(:page_tit... | 24.662921 | 75 | 0.610478 |
9306e30531570e48741e79efd696e4628bcbcdf1 | 46 | ex | Elixir | test/fixtures/two_mods/lib/bar.ex | hauleth/mix_unused | 778f60773a1c0d10e62b85c5fd39611b71b41e53 | [
"MIT"
] | 116 | 2019-01-05T02:08:47.000Z | 2022-03-29T08:10:16.000Z | test/fixtures/two_mods/lib/bar.ex | hauleth/mix_unused | 778f60773a1c0d10e62b85c5fd39611b71b41e53 | [
"MIT"
] | 22 | 2020-04-12T23:29:14.000Z | 2022-03-30T17:23:21.000Z | test/fixtures/two_mods/lib/bar.ex | hauleth/mix_unused | 778f60773a1c0d10e62b85c5fd39611b71b41e53 | [
"MIT"
] | 2 | 2021-09-28T10:35:00.000Z | 2022-03-24T14:08:27.000Z | defmodule Bar do
def bar, do: Foo.bar()
end
| 11.5 | 24 | 0.673913 |
9306ec2ee4e47edc18c43469132758444c7ac94f | 15,023 | exs | Elixir | test/riffed/server_test.exs | fakeNetflix/pinterest-repo-riffed | 26ecaee4e97628174020c2da4cc477645633dc38 | [
"Apache-2.0"
] | 326 | 2015-12-18T20:40:26.000Z | 2022-02-20T18:14:19.000Z | test/riffed/server_test.exs | fakeNetflix/pinterest-repo-riffed | 26ecaee4e97628174020c2da4cc477645633dc38 | [
"Apache-2.0"
] | 50 | 2015-12-22T18:31:32.000Z | 2020-06-17T22:14:38.000Z | test/riffed/server_test.exs | fakeNetflix/pinterest-repo-riffed | 26ecaee4e97628174020c2da4cc477645633dc38 | [
"Apache-2.0"
] | 37 | 2015-12-20T05:35:34.000Z | 2020-12-24T11:23:43.000Z | defmodule ServerTest do
use ExUnit.Case, async: false
defmodule Server do
use Riffed.Server, service: :server_thrift,
structs: Data,
auto_build_structs: true,
functions: [config: &ServerTest.FakeHandler.config/2,
dictFun: &ServerTest.FakeHandler.dict_fun/1,
dictUserF... | 32.100427 | 114 | 0.627172 |
93070ca9c8393e1c7e27b071cdfc65ed50bfd854 | 3,360 | ex | Elixir | lib/xturn_cache.ex | Lazarus404/xturn-cache | faa9e04f3d1b3089289efb9e26d2fe3a003127e6 | [
"Apache-2.0"
] | null | null | null | lib/xturn_cache.ex | Lazarus404/xturn-cache | faa9e04f3d1b3089289efb9e26d2fe3a003127e6 | [
"Apache-2.0"
] | null | null | null | lib/xturn_cache.ex | Lazarus404/xturn-cache | faa9e04f3d1b3089289efb9e26d2fe3a003127e6 | [
"Apache-2.0"
] | null | null | null | ### ----------------------------------------------------------------------
###
### Copyright (c) 2013 - 2018 Lee Sylvester and Xirsys LLC <experts@xirsys.com>
###
### All rights reserved.
###
### XTurn is licensed by Xirsys under the Apache
### License, Version 2.0. (the "License");
###
### you may not use this file ex... | 25.454545 | 79 | 0.568155 |
930715fbd01d340f426cf8a8683f463bd7909002 | 788 | ex | Elixir | lib/brando/soft_delete/schema.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/soft_delete/schema.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/soft_delete/schema.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.SoftDelete.Schema do
@moduledoc """
Macro for adding field to schema.
## Example
use Brando.SoftDelete.Schema, obfuscated_fields: [:slug, :key]
Obfuscated fields will have a random string added to it when soft
deleting, and reset to its original value if undeleted. This should
only... | 23.176471 | 77 | 0.703046 |
93071f992c389d15d31e8f159d7e683f499d0911 | 71 | exs | Elixir | takso-hw5 2/test/test_helper.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | takso-hw5 2/test/test_helper.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | takso-hw5 2/test/test_helper.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Takso.Repo, :manual)
| 14.2 | 52 | 0.732394 |
930751ef17d59fbb555c4da092277a78c642c9c1 | 5,295 | ex | Elixir | clients/content/lib/google_api/content/v2/model/inventory_set_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/inventory_set_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/inventory_set_request.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... | 59.494382 | 368 | 0.701794 |
930769c5c1b2fce56e5a067f7fbc4878d7d562ed | 2,592 | ex | Elixir | lib/ueberauth/strategy/google/oauth.ex | axelson/ueberauth_google | ee6f9ddff059a0b8eb2cddaf64d3eefcc2202450 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google/oauth.ex | axelson/ueberauth_google | ee6f9ddff059a0b8eb2cddaf64d3eefcc2202450 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google/oauth.ex | axelson/ueberauth_google | ee6f9ddff059a0b8eb2cddaf64d3eefcc2202450 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Google.OAuth do
@moduledoc """
OAuth2 for Google.
Add `client_id` and `client_secret` to your configuration:
config :ueberauth, Ueberauth.Strategy.Google.OAuth,
client_id: System.get_env("GOOGLE_APP_ID"),
client_secret: System.get_env("GOOGLE_APP_SECRET")
""... | 29.793103 | 94 | 0.65625 |
930775e77bc52d34c74e750e9d246e9a05dbd9af | 598 | exs | Elixir | test/supervisor_test.exs | priestjim/exrpc | 84ab24987535fd2a62dfc8683b790f17dbe28760 | [
"Apache-2.0"
] | 12 | 2015-10-05T16:48:13.000Z | 2022-01-31T20:17:44.000Z | test/supervisor_test.exs | priestjim/exrpc | 84ab24987535fd2a62dfc8683b790f17dbe28760 | [
"Apache-2.0"
] | null | null | null | test/supervisor_test.exs | priestjim/exrpc | 84ab24987535fd2a62dfc8683b790f17dbe28760 | [
"Apache-2.0"
] | 4 | 2015-11-11T19:53:47.000Z | 2020-10-11T07:01:59.000Z | defmodule ExRPC.Test.Supervisor do
use ExUnit.Case
test "Supervisor startup" do
assert(is_pid(Process.whereis(ExRPC.Supervisor.Application)) === true)
assert(is_pid(Process.whereis(ExRPC.Supervisor.Server)) === true)
assert(is_pid(Process.whereis(ExRPC.Supervisor.Client)) === true)
assert(is_pid(Pr... | 39.866667 | 75 | 0.73913 |
9307c2cf495c53c36ad5a75fc72ea2d53d44a7a6 | 228 | exs | Elixir | priv/repo/migrations/20190902163742_change_account_transactions_table.exs | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | priv/repo/migrations/20190902163742_change_account_transactions_table.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | priv/repo/migrations/20190902163742_change_account_transactions_table.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Repo.Migrations.ChangeAccountTransactionsTable do
use Ecto.Migration
def change do
create_if_not_exists(index("account_transactions", ["account_address"], name: "account_txn_address"))
end
end
| 28.5 | 105 | 0.807018 |
930805b97878faf9171cbb4d7062e92c9831970a | 1,580 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/get_service_account_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/big_query/lib/google_api/big_query/v2/model/get_service_account_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/get_service_account_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 ... | 31.6 | 119 | 0.728481 |
930882fbf4226a3f7933be0fe75021a25b6c9512 | 767 | exs | Elixir | priv/repo/migrations/20201117132755_add_user_blockchain_addresses.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20201117132755_add_user_blockchain_addresses.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20201117132755_add_user_blockchain_addresses.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.AddUserBlockchainAddresses do
use Ecto.Migration
def change do
create table(:blockchain_address_user_pairs) do
add(:notes, :string)
add(:user_id, references(:users))
add(:blockchain_address_id, references(:blockchain_addresses))
end
create(unique_ind... | 29.5 | 92 | 0.740548 |
9308ebfe78525ddebe6667aa19912de791a65467 | 7,583 | ex | Elixir | lib/rdf/serializations/turtle_decoder.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | lib/rdf/serializations/turtle_decoder.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | lib/rdf/serializations/turtle_decoder.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.Turtle.Decoder do
@moduledoc """
A decoder for N-Triples serializations to `RDF.Graph`s.
As for all decoders of `RDF.Serialization.Format`s, you normally won't use these
functions directly, but via one of the `read_` functions on the `RDF.Turtle` format
module or the generic `RDF.Serialization`... | 33.852679 | 98 | 0.638402 |
930903cdf382b8636f091c14f3be85cb9adbfef8 | 8,501 | ex | Elixir | lib/moneybirx/resources/external_invoices.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2019-10-16T11:33:39.000Z | 2019-10-16T11:33:39.000Z | lib/moneybirx/resources/external_invoices.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | null | null | null | lib/moneybirx/resources/external_invoices.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2021-07-27T17:54:20.000Z | 2021-07-27T17:54:20.000Z | require Logger
defmodule Moneybirx.ExternalInvoice do
@moduledoc """
# Moneybird External Invoices
## Attributes
External Invoices are quite large data structures so we omitted full documentation examples. Here is a full Sales Invoice in JSON format.
{
"id": "293129730970879446",
"admi... | 26.400621 | 248 | 0.598988 |
93092cf8669a75c8c874848a3c0824d1bf5a77e2 | 2,054 | exs | Elixir | mix.exs | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | null | null | null | mix.exs | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | null | null | null | mix.exs | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | null | null | null | defmodule Preview.MixProject do
use Mix.Project
def project do
[
app: :preview,
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(),
... | 26.333333 | 84 | 0.549659 |
93097faf57ddb7201e66fb2755ac55ee58444501 | 11,982 | ex | Elixir | lib/options_tracker_web/live/position_live/index.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 12 | 2020-06-25T17:25:15.000Z | 2021-09-30T20:13:33.000Z | lib/options_tracker_web/live/position_live/index.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 5 | 2020-08-05T03:12:31.000Z | 2021-07-15T04:59:03.000Z | lib/options_tracker_web/live/position_live/index.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 2 | 2021-07-03T17:20:15.000Z | 2021-09-01T15:38:58.000Z | defmodule OptionsTrackerWeb.PositionLive.Index do
use OptionsTrackerWeb, :live_view
import OptionsTrackerWeb.PositionLive.Helpers
alias OptionsTracker.Accounts
alias OptionsTracker.Accounts.Position
alias OptionsTracker.Users
alias OptionsTracker.Users.User
alias OptionsTracker.Search
alias OptionsTrac... | 31.122078 | 159 | 0.658571 |
9309804e9e91ad9aed407b51c949f9be942bf0f4 | 1,762 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/commit_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/commit_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/commit_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.884615 | 124 | 0.729852 |
9309ba5eff086ada338f228f7fde06450db57fde | 1,444 | exs | Elixir | mix.exs | Lankester/exprotobuf | 86bc07bb0df6c96fb16596d0d9521004973631fa | [
"Apache-2.0"
] | 493 | 2015-01-05T03:33:34.000Z | 2022-03-05T01:12:15.000Z | mix.exs | Lankester/exprotobuf | 86bc07bb0df6c96fb16596d0d9521004973631fa | [
"Apache-2.0"
] | 99 | 2015-01-08T14:06:50.000Z | 2021-08-20T08:47:41.000Z | mix.exs | Lankester/exprotobuf | 86bc07bb0df6c96fb16596d0d9521004973631fa | [
"Apache-2.0"
] | 89 | 2015-01-07T21:17:24.000Z | 2021-07-31T17:48:59.000Z | defmodule Protobuf.Mixfile do
use Mix.Project
def project do
[app: :exprotobuf,
version: "1.2.17",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env),
preferred_cli_env: [
bench: :bench,
],
description: description(),
package: package(),
build_embedded: Mix.e... | 25.333333 | 68 | 0.597645 |
9309baee1997f36d25834edf514a12d4ab4e83cb | 285 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/workers/delete_firmware.ex | chrisdambrosio/nerves_hub_web | 91b6b27bb54ef61864a8f77ac91a8a24451b382d | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/workers/delete_firmware.ex | chrisdambrosio/nerves_hub_web | 91b6b27bb54ef61864a8f77ac91a8a24451b382d | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/workers/delete_firmware.ex | chrisdambrosio/nerves_hub_web | 91b6b27bb54ef61864a8f77ac91a8a24451b382d | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWebCore.Workers.DeleteFirmware do
use Oban.Worker,
max_attempts: 5,
queue: :delete_firmware
@uploader Application.fetch_env!(:nerves_hub_web_core, :firmware_upload)
@impl true
def perform(%Oban.Job{args: args}), do: @uploader.delete_file(args)
end
| 25.909091 | 74 | 0.761404 |
9309bdaadca20a69ae01769030c33cfb1a4e15e9 | 954 | ex | Elixir | test/support/channel_case.ex | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | 2 | 2016-03-15T09:35:48.000Z | 2016-03-16T10:27:06.000Z | test/support/channel_case.ex | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | 7 | 2016-03-15T08:33:54.000Z | 2016-03-15T09:12:39.000Z | test/support/channel_case.ex | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | null | null | null | defmodule TagIt.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be as... | 22.714286 | 64 | 0.698113 |
9309c1096591702f6e812b51ecac27db2c713096 | 1,815 | ex | Elixir | deps/exfswatch/lib/exfswatch/backends/inotify_wait.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | deps/exfswatch/lib/exfswatch/backends/inotify_wait.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | deps/exfswatch/lib/exfswatch/backends/inotify_wait.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | alias ExFSWatch.Utils
defmodule ExFSWatch.Backends.InotifyWait do
def find_executable do
System.find_executable("sh") |> to_charlist
end
def start_port(path, listener_extra_args) do
path = path |> Utils.format_path()
args = listener_extra_args ++ [
'-c', 'inotifywait $0 $@ & PID=$!; read a; k... | 27.5 | 86 | 0.58292 |
9309d305d8a90e89b51924e28d4e827ab2b14ef0 | 1,376 | ex | Elixir | lib/garlic/mint/client.ex | abiko-search/garlic | 9e8aada63291ac9f2d6530741f3d139b2d191e42 | [
"Apache-2.0"
] | null | null | null | lib/garlic/mint/client.ex | abiko-search/garlic | 9e8aada63291ac9f2d6530741f3d139b2d191e42 | [
"Apache-2.0"
] | null | null | null | lib/garlic/mint/client.ex | abiko-search/garlic | 9e8aada63291ac9f2d6530741f3d139b2d191e42 | [
"Apache-2.0"
] | null | null | null | defmodule Garlic.Mint.Client do
def request(pid, stream_id, host, port, method, path, headers, body) do
Stream.resource(
fn ->
opts = [
transport_opts: [pid: pid, stream_id: stream_id]
]
try do
with {:ok, conn} <- Mint.HTTP1.connect(Garlic.Mint.Transport, host, p... | 22.557377 | 90 | 0.527616 |
930a29288a61e1b8236ac3a11df58fb9f11646f1 | 1,403 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/related_entity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/related_entity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/related_entity.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... | 29.851064 | 83 | 0.734141 |
930a68efe84e72a97d307e921ce2341cd955be7b | 4,348 | ex | Elixir | lib/macros/scenario_play_macro.ex | young-skilled/Yst | 9c48c02df24fab93c8b8ec69971082b2ddec660a | [
"MIT"
] | null | null | null | lib/macros/scenario_play_macro.ex | young-skilled/Yst | 9c48c02df24fab93c8b8ec69971082b2ddec660a | [
"MIT"
] | null | null | null | lib/macros/scenario_play_macro.ex | young-skilled/Yst | 9c48c02df24fab93c8b8ec69971082b2ddec660a | [
"MIT"
] | null | null | null | defmodule ScenarioPlayMacro do
@moduledoc """
ScenarioPlayMacro injects play() function for Scenario
"""
defmacro __using__(_opts) do
quote do
alias Hound.Session
alias Hound.Helpers.Cookie
alias Hound.Helpers.Screenshot
alias :timer, as: Timer
@doc """
Play scripte... | 30.619718 | 126 | 0.522079 |
930a69e9700a908c50ef61ba597b665f834933b7 | 1,676 | ex | Elixir | apps/event_stream/lib/stax/event_stream/notification.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/event_stream/lib/stax/event_stream/notification.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/event_stream/lib/stax/event_stream/notification.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.EventStream.Notification do
@moduledoc """
Default notification structure.
For example on chain start system should fire event `:started`.
It will have such structure:
```elixir
%Staxx.EventStream.Notification{
id: "15054686724791906538",
event: :started,
data: %{
account... | 22.958904 | 65 | 0.625298 |
930a6d1659168aaa88addb6c4e288e92f728d8b0 | 1,318 | ex | Elixir | apps/speedrun_blog_engine_web/test/support/conn_case.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | null | null | null | apps/speedrun_blog_engine_web/test/support/conn_case.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | 1 | 2021-04-12T17:10:05.000Z | 2021-04-12T17:10:05.000Z | apps/speedrun_blog_engine_web/test/support/conn_case.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | null | null | null | defmodule SpeedrunBlogEngineWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Fin... | 29.954545 | 80 | 0.740516 |
930ac27ba5007563d3f114b79547617ac2417609 | 608 | exs | Elixir | test/support_pairs_web/views/error_view_test.exs | SonofNun15/support-pairs | 6001b04a42f5fa9be02a00dad5cdc0fd76859f9a | [
"MIT"
] | null | null | null | test/support_pairs_web/views/error_view_test.exs | SonofNun15/support-pairs | 6001b04a42f5fa9be02a00dad5cdc0fd76859f9a | [
"MIT"
] | null | null | null | test/support_pairs_web/views/error_view_test.exs | SonofNun15/support-pairs | 6001b04a42f5fa9be02a00dad5cdc0fd76859f9a | [
"MIT"
] | null | null | null | defmodule SupportPairsWeb.ErrorViewTest do
use SupportPairsWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(SupportPairsWeb.ErrorView, "404.html", []) ==
"Page not found"
end
te... | 27.636364 | 73 | 0.697368 |
930acecaef3de5a95654fc1c91f0f28daa7b8e22 | 2,020 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_unit_feed_ads_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_unit_feed_ads_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_unit_feed_ads_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.071429 | 136 | 0.70396 |
930b2563841f63895dacb25857a9301bd5db4f18 | 2,462 | exs | Elixir | test/controllers/movie_controller_test.exs | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | test/controllers/movie_controller_test.exs | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | test/controllers/movie_controller_test.exs | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | defmodule SimilarfilmsPhoenix.MovieControllerTest do
use SimilarfilmsPhoenix.ConnCase
alias SimilarfilmsPhoenix.Movie
@valid_attrs %{image_url: "some content", movie_id: 42, popularity: "120.5", rating: "120.5", title: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
... | 36.746269 | 118 | 0.68684 |
930b290a1877579892cef4595e5501d81e53b703 | 10,548 | ex | Elixir | lib/ex_unit/lib/ex_unit/formatter.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Formatter do
@moduledoc """
Helper functions for formatting and the formatting protocols.
Formatters are `GenServer`s specified during ExUnit configuration
that receives a series of events as cast messages.
The following events are possible:
* `{:suite_started, opts}` -
the suite... | 32.158537 | 110 | 0.662116 |
930b437231d69c5366ed178dadbe3d4b5cbd920b | 693 | ex | Elixir | apps/robby_web/web/models/message.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/web/models/message.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/web/models/message.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | defmodule RobbyWeb.Message do
use RobbyWeb.Web, :model
@derive {Poison.Encoder, only: [:user_id, :room_id, :body, :inserted_at]}
@required_fields [:body, :user_id, :room_id]
@optional_fields []
schema "messages" do
belongs_to :user, RobbyWeb.User
belongs_to :room, RobbyWeb.Room
field :body, :st... | 23.896552 | 75 | 0.689755 |
930b43afc3e5395d0e9270a79627ce28daf25e31 | 442 | ex | Elixir | lib/glimesh_web/live/user_live/profile.ex | YFG-Online/glimesh.tv | 5d9bb6f4ab383897c383bf33bbfac783b09e294e | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/profile.ex | YFG-Online/glimesh.tv | 5d9bb6f4ab383897c383bf33bbfac783b09e294e | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/profile.ex | YFG-Online/glimesh.tv | 5d9bb6f4ab383897c383bf33bbfac783b09e294e | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserLive.Profile do
use GlimeshWeb, :live_view
alias Glimesh.Accounts
def mount(%{"username" => username}, _session, socket) do
case Accounts.get_by_username(username) do
%Glimesh.Accounts.User{} = user ->
{:ok, socket
|> assign(:page_title, "#{username}'s Pr... | 22.1 | 61 | 0.59276 |
930b8f95e411fb0e9100ca2963ebb4a381e18a30 | 147 | exs | Elixir | apps/ema/.formatter.exs | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/ema/.formatter.exs | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/ema/.formatter.exs | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [name: 1, description: 1, action: 4]
]
| 24.5 | 61 | 0.612245 |
930c1f71688e20fbdacd604f2269393e01c74dcc | 9,654 | ex | Elixir | lib/mix/lib/mix/tasks/new.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/new.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/new.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.New do
use Mix.Task
import Mix.Generator
import Mix.Utils, only: [camelize: 1, underscore: 1]
@shortdoc "Create a new Elixir project"
@moduledoc """
Creates a new Elixir project.
It expects the path of the project as argument.
mix new PATH [--sup] [--module MODULE] [--app APP... | 26.377049 | 103 | 0.623472 |
930c8f4d3abd504c8d67ee2abcb921601051934b | 371 | ex | Elixir | lib/web/views/page_view.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | null | null | null | lib/web/views/page_view.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | lib/web/views/page_view.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 3 | 2020-11-15T16:17:58.000Z | 2021-06-04T11:26:42.000Z | defmodule BorsNG.PageView do
@moduledoc """
The dashboard and greeting page.
"""
use BorsNG.Web, :view
@doc """
Checks to see if there is an empty list then returns true
"""
def empty?([]), do: true
@doc """
Checks to see if the variable is a list with elements then returns false.
"""
def empt... | 20.611111 | 76 | 0.652291 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.