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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62250fb6897af684e1a0896485c2f34225fdd6dc | 69 | exs | Elixir | test/conn_audit_test.exs | adigitalmonk/conn_audit | 8eaa2edec5a4a5a32706d3497addb91d5bbe969c | [
"MIT"
] | null | null | null | test/conn_audit_test.exs | adigitalmonk/conn_audit | 8eaa2edec5a4a5a32706d3497addb91d5bbe969c | [
"MIT"
] | 2 | 2019-12-18T02:20:49.000Z | 2019-12-19T15:39:06.000Z | test/conn_audit_test.exs | adigitalmonk/conn_audit | 8eaa2edec5a4a5a32706d3497addb91d5bbe969c | [
"MIT"
] | null | null | null | defmodule ConnAuditTest do
use ExUnit.Case
doctest ConnAudit
end
| 13.8 | 26 | 0.811594 |
62252169ce620821ab5825f1a6f051e91555dea1 | 531 | ex | Elixir | app/lib/rocdev_web/controllers/page_controller.ex | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 14 | 2017-10-10T19:11:21.000Z | 2019-04-20T20:11:01.000Z | app/lib/rocdev_web/controllers/page_controller.ex | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 41 | 2017-10-08T03:07:20.000Z | 2018-10-15T12:47:34.000Z | app/lib/rocdev_web/controllers/page_controller.ex | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 7 | 2017-10-18T10:44:04.000Z | 2019-04-15T20:44:49.000Z | defmodule RocdevWeb.PageController do
use RocdevWeb, :controller
require Logger
alias Rocdev.SlackAPI
def index(conn, _params) do
case SlackAPI.members do
{:ok, %{"members" => members}} ->
render conn, "index.html", members: members
{:error, reason} ->
Logger.warn fn ->
... | 24.136364 | 54 | 0.629002 |
622541f77322565772eef3272333f5104540fa98 | 1,780 | exs | Elixir | clients/policy_analyzer/mix.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_analyzer/mix.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_analyzer/mix.exs | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.567164 | 106 | 0.651124 |
62254ac934ee1c83cea6d6e5acec6e898aa7affd | 4,421 | ex | Elixir | lib/reservation_book_web/controllers/user_auth.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | lib/reservation_book_web/controllers/user_auth.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | lib/reservation_book_web/controllers/user_auth.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | defmodule ReservationBookWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias ReservationBook.Accounts
alias ReservationBookWeb.Router.Helpers, as: Routes
# Make the remember me cookie valid for 60 days.
# If you want bump or reduce this value, also change
# the token expiry itself in UserTo... | 29.473333 | 81 | 0.69758 |
622559dd1490cd1360ffac5ffab9bfe28f8554c9 | 595 | ex | Elixir | lib/schema.ex | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | 14 | 2016-12-19T23:16:44.000Z | 2021-07-08T02:22:01.000Z | lib/schema.ex | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | null | null | null | lib/schema.ex | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | 4 | 2017-08-15T10:44:10.000Z | 2020-03-09T17:07:33.000Z | defmodule FSRealtime.CampaignRT do
use Ecto.Schema
@moduledoc """
DB schema for rtinfo
"""
# dialer_cdr is the DB table
schema "dialer_campaign_rtinfo" do
field(:campaign_id, :integer, default: 0)
field(:host, :string)
field(:current_channels_total, :integer, default: 0)
field(:updated_dat... | 25.869565 | 65 | 0.707563 |
62257f1fdafad49fdcfb0893b75a9d83a4359867 | 1,476 | ex | Elixir | dave-course/hangman_proj/gallows/lib/gallows_web/views/error_helpers.ex | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/gnome/game/gallows/lib/gallows_web/views/error_helpers.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | learning/gnome/game/gallows/lib/gallows_web/views/error_helpers.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule GallowsWeb.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_ta... | 32.8 | 76 | 0.670732 |
622586cf7097e7f9f416f7365119957d7fb518a6 | 71 | exs | Elixir | test/test_helper.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/test_helper.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/test_helper.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Philopets.Repo, :manual)
| 23.666667 | 55 | 0.788732 |
6225a119ee5f0ea0ef04969ad1ca9560a755bdee | 68 | ex | Elixir | web/views/monitor_view.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 5 | 2016-07-05T20:31:46.000Z | 2021-03-20T20:11:48.000Z | web/views/monitor_view.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | null | null | null | web/views/monitor_view.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 1 | 2016-07-18T23:00:46.000Z | 2016-07-18T23:00:46.000Z | defmodule Webmonitor.MonitorView do
use Webmonitor.Web, :view
end
| 17 | 35 | 0.808824 |
6225e620f90f48a2703d6104163d518e5c816e7d | 1,692 | ex | Elixir | clients/content/lib/google_api/content/v21/model/productstatuses_custom_batch_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/v21/model/productstatuses_custom_batch_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/v21/model/productstatuses_custom_batch_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... | 33.176471 | 172 | 0.753546 |
6225f830f7e71e16843557400f38ba21bbec49ee | 689 | ex | Elixir | packaging/ubuntu_16/debian-pkg/preinst.ex | LEI/jobber | ed4629014711fd356485aab388599340e84933f7 | [
"MIT"
] | null | null | null | packaging/ubuntu_16/debian-pkg/preinst.ex | LEI/jobber | ed4629014711fd356485aab388599340e84933f7 | [
"MIT"
] | null | null | null | packaging/ubuntu_16/debian-pkg/preinst.ex | LEI/jobber | ed4629014711fd356485aab388599340e84933f7 | [
"MIT"
] | null | null | null | #!/bin/sh
# preinst script for jobber
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, ... | 19.138889 | 63 | 0.626996 |
62261b6dc56991c65045c1c61fa8e1aaece69b03 | 2,020 | exs | Elixir | test/payjp/uri_test.exs | shufo/payjp-elixir | 01e9d9678a1a9bf9bc0850d7c848534ef22490fa | [
"MIT"
] | 4 | 2017-02-20T00:26:02.000Z | 2019-05-22T01:02:25.000Z | test/payjp/uri_test.exs | shufo/payjp-elixir | 01e9d9678a1a9bf9bc0850d7c848534ef22490fa | [
"MIT"
] | 28 | 2020-03-06T03:28:28.000Z | 2021-08-02T20:38:55.000Z | test/payjp/uri_test.exs | shufo/payjp-elixir | 01e9d9678a1a9bf9bc0850d7c848534ef22490fa | [
"MIT"
] | 1 | 2017-06-16T12:56:47.000Z | 2017-06-16T12:56:47.000Z | defmodule Payjp.UriTest do
use ExUnit.Case
@moduletag :uri
test "keyword list encoding" do
assert Payjp.URI.encode_query([a: 1]) == "a=1"
assert Payjp.URI.encode_query([a: 1, b: 2]) == "a=1&b=2"
assert Payjp.URI.encode_query(["a": "1", "b": "2"]) == "a=1&b=2"
assert Payjp.URI.encode_query([a: ni... | 49.268293 | 94 | 0.574257 |
62264a9d7b9d9edde16f280dec62313aaa61673d | 10,928 | ex | Elixir | lib/elixir/lib/agent.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/agent.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/agent.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | defmodule Agent do
@moduledoc """
Agents are a simple abstraction around state.
Often in Elixir there is a need to share or store state that
must be accessed from different processes or by the same process
at different points in time.
The Agent module provides a basic server implementation that
allows s... | 35.596091 | 81 | 0.69903 |
62268e5466b94b9ddb9e505cc8bc2cf6cc0e8d7f | 1,031 | ex | Elixir | api/lib/grook/web/controllers/member_controller.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | 3 | 2017-05-22T13:28:13.000Z | 2018-06-29T16:39:19.000Z | api/lib/grook/web/controllers/member_controller.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | api/lib/grook/web/controllers/member_controller.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | defmodule Grook.Web.MemberController do
use Grook.Web, :controller
alias Grook.Chat
alias Grook.Schema.RoomMember
action_fallback Grook.Web.FallbackController
def action(conn, _) do
room = Chat.get_room!(conn.params["room_id"])
apply(__MODULE__, action_name(conn),
[conn, conn.params, room, G... | 27.864865 | 81 | 0.680892 |
6226a87444f3deb275ec22ae8bf2a86dc1acfd8e | 1,572 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/named_port.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/named_port.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/named_port.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.44 | 147 | 0.709924 |
6226aa239e885457c03273055418529f85598726 | 6,529 | exs | Elixir | .credo.exs | am-kantox/rambla | 961e7213da43cba7ce9d2f5f5010f3a647ea5adc | [
"MIT"
] | 4 | 2020-05-25T05:46:05.000Z | 2020-06-22T15:23:51.000Z | .credo.exs | am-kantox/rambla | 961e7213da43cba7ce9d2f5f5010f3a647ea5adc | [
"MIT"
] | 3 | 2020-10-08T05:41:47.000Z | 2021-05-13T05:53:30.000Z | .credo.exs | am-kantox/rambla | 961e7213da43cba7ce9d2f5f5010f3a647ea5adc | [
"MIT"
] | 1 | 2020-05-07T15:05:33.000Z | 2020-05-07T15:05:33.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 ... | 38.633136 | 88 | 0.613264 |
6226b73463bbf7f5e712235dd66270ac15eef5b2 | 4,091 | ex | Elixir | sense_wrapper/lib/sense_wrapper.ex | damnever/completor-elixir | f4210d15c128167f7a857669f1a2d8e548373a40 | [
"MIT"
] | 1 | 2018-02-22T14:32:52.000Z | 2018-02-22T14:32:52.000Z | sense_wrapper/lib/sense_wrapper.ex | damnever/completor-elixir | f4210d15c128167f7a857669f1a2d8e548373a40 | [
"MIT"
] | null | null | null | sense_wrapper/lib/sense_wrapper.ex | damnever/completor-elixir | f4210d15c128167f7a857669f1a2d8e548373a40 | [
"MIT"
] | null | null | null | defmodule SenseWrapper do
@moduledoc """
Wrapper for elixir_sense.
"""
alias ElixirSense.Server.ContextLoader
@doc """
input JSON string like this:
{
"type": "doc"/"definition"/"complete"/"signature",
"ctx": nil/{"env": "dev"/"test", "cwd": "/path/to/project"},
"code": "code snippet",
"li... | 22.355191 | 82 | 0.547055 |
6226bd6d431d3c7f83b6162a186ca142a44bd417 | 112 | exs | Elixir | test/curator_confirmable/hooks_test.exs | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | test/curator_confirmable/hooks_test.exs | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | test/curator_confirmable/hooks_test.exs | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | defmodule CuratorConfirmable.HooksTest do
use ExUnit.Case, async: true
doctest CuratorConfirmable.Hooks
end
| 22.4 | 41 | 0.830357 |
6226d7a4e0f8f4e2f5964aaf38f852dd722c9913 | 133 | ex | Elixir | lib/brand/visa.ex | ingresse/card-bin-ex | 251bd8900ed2bca893fe89531f59c65d48bfc289 | [
"MIT"
] | 1 | 2019-07-10T18:32:20.000Z | 2019-07-10T18:32:20.000Z | lib/brand/visa.ex | ingresse/card-bin-ex | 251bd8900ed2bca893fe89531f59c65d48bfc289 | [
"MIT"
] | 1 | 2019-05-17T01:11:22.000Z | 2019-05-17T18:01:27.000Z | lib/brand/visa.ex | ingresse/card-bin-ex | 251bd8900ed2bca893fe89531f59c65d48bfc289 | [
"MIT"
] | null | null | null | defmodule CardBinEx.Brand.Visa do
@moduledoc false
@behaviour CardBinEx.Brand
@doc false
def patterns do
[4]
end
end
| 12.090909 | 33 | 0.706767 |
6226e1799e6d27ae528f38d3664cfe2251350691 | 772 | ex | Elixir | lib/mix/tasks/nabo.gen.repo.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | lib/mix/tasks/nabo.gen.repo.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | lib/mix/tasks/nabo.gen.repo.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Nabo.Gen.Repo do
use Mix.Task
import Mix.Generator
@shortdoc "Generates a repo"
@recursive true
@moduledoc """
Generates a repo.
## Example
mix nabo.gen.repo MyApp.Repo
"""
@doc false
def run(args) do
case OptionParser.parse(args) do
{_, [repo], _} ->
... | 20.315789 | 68 | 0.593264 |
6226e887aba9c6032cb5d7f31bb60e05fcf5982f | 2,166 | exs | Elixir | lib/mix/test/mix/shell_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/shell_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/shell_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.ShellTest do
use MixTest.Case
defp capture_io(somefunc) do
ExUnit.CaptureIO.capture_io(somefunc) |> String.replace("\r\n", "\n")
end
defp capture_io(from, somefunc) do
ExUnit.CaptureIO.capture_io(from, somefunc) |> String.replace("\r\n", "... | 26.740741 | 89 | 0.605263 |
622708ab4ce2c4100ad901ad591047ff978ab044 | 21,576 | ex | Elixir | lib/faker/address/en.ex | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | lib/faker/address/en.ex | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | 40 | 2019-10-26T09:24:17.000Z | 2021-08-03T04:29:01.000Z | lib/faker/address/en.ex | fusillicode/faker | 4ec3a668ec350e8846c786a8b3fcc8e0b9ce4a89 | [
"MIT"
] | null | null | null | defmodule Faker.Address.En do
import Faker, only: [sampler: 2]
alias Faker.Name
@moduledoc """
Functions for generating addresses in English
"""
@doc """
Return random building number.
## Examples
iex> Faker.Address.En.building_number()
"15426"
iex> Faker.Address.En.building_numbe... | 16.69969 | 88 | 0.493511 |
62273acbe3741fb25ada114085247179e8dd6dcb | 7,347 | exs | Elixir | .credo.exs | joaoeliandro/api-heavy-processing | 4073b18e2e3e85f336e9d85d45f9cd8349805d51 | [
"MIT"
] | 2 | 2021-04-21T04:55:47.000Z | 2021-04-21T15:38:42.000Z | .credo.exs | joaoeliandro/api-heavy-processing | 4073b18e2e3e85f336e9d85d45f9cd8349805d51 | [
"MIT"
] | null | null | null | .credo.exs | joaoeliandro/api-heavy-processing | 4073b18e2e3e85f336e9d85d45f9cd8349805d51 | [
"MIT"
] | 1 | 2021-04-25T22:20:19.000Z | 2021-04-25T22:20:19.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 ... | 38.668421 | 97 | 0.613312 |
6227414d4e24da97c7422a6b3937cb42252396e9 | 259 | ex | Elixir | lib/suomidev/release.ex | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 19 | 2020-08-24T02:50:26.000Z | 2021-05-31T20:54:30.000Z | lib/suomidev/release.ex | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 2 | 2020-08-24T06:59:46.000Z | 2020-08-26T09:51:40.000Z | lib/suomidev/release.ex | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 6 | 2020-08-26T02:52:48.000Z | 2022-03-08T12:55:51.000Z | defmodule Suomidev.Release do
def migrate do
{:ok, _} = Application.ensure_all_started(:suomidev)
path = Application.app_dir(:suomidev, "priv/repo/migrations")
Ecto.Migrator.run(Suomidev.Repo, path, :up, all: true)
:init.stop()
end
end
| 21.583333 | 65 | 0.694981 |
62275d8506ea23b701b93ad760c67c1a049f1553 | 670 | ex | Elixir | test/support/fixtures/accounts_fixtures.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 1 | 2021-02-03T23:34:04.000Z | 2021-02-03T23:34:04.000Z | test/support/fixtures/accounts_fixtures.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 58 | 2021-02-16T10:16:08.000Z | 2022-03-07T10:57:32.000Z | test/support/fixtures/accounts_fixtures.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | null | null | null | defmodule Turret.AccountsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Turret.Accounts` context.
"""
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
def valid_user_password, do: "hello world!"
def user_fixture(attrs \\ %{}) do
{:ok... | 23.928571 | 73 | 0.635821 |
62278a1016d4666f3ad730f2eb6d51ccab2cb968 | 334 | exs | Elixir | test/pubsub/local_pubsub_test.exs | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/pubsub/local_pubsub_test.exs | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/pubsub/local_pubsub_test.exs | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.PubSub.LocalPubSubTest do
alias Commanded.PubSub.{LocalPubSub, PubSubTestCase}
use PubSubTestCase, pubsub: LocalPubSub
setup do
{:ok, child_spec, pubsub_meta} = LocalPubSub.child_spec(LocalPubSub, [])
for child <- child_spec, do: start_supervised!(child)
[pubsub_meta: pubsub_me... | 23.857143 | 76 | 0.751497 |
6227f06742c7a2fb5e8dff78f8da11023c746b97 | 2,513 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_localized_object_annotation.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_localized_object_annotation.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_localized_object_annotation.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.661538 | 219 | 0.736172 |
6227f9256f90a1e3b164dc223e5cd77a848e63fb | 259 | exs | Elixir | test/schemas/utf8.schema.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 410 | 2015-01-10T13:33:00.000Z | 2022-01-31T20:12:15.000Z | test/schemas/utf8.schema.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 140 | 2015-02-05T16:29:32.000Z | 2020-10-22T10:52:33.000Z | test/schemas/utf8.schema.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 65 | 2015-02-13T21:02:29.000Z | 2021-06-23T05:49:09.000Z | [
extends: [],
import: [],
mappings: [
"utf8": [
commented: false,
datatype: :binary,
default: "Fixé",
doc: "A string with an é.",
hidden: false,
to: "my_app.utf8"
],
],
transforms: [],
validators: []
]
| 15.235294 | 33 | 0.478764 |
62281c7dd9683f834da45603f608d4ea756122b9 | 497 | ex | Elixir | lib/tlc_app/school/course_reg.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | lib/tlc_app/school/course_reg.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | lib/tlc_app/school/course_reg.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | defmodule TlcApp.School.CourseReg do
use Ecto.Schema
import Ecto.Changeset
@fields [:diet, :user_id, :course_id, :stream_id]
schema "course_regs" do
field :diet, :string
belongs_to :user, TlcApp.Accounts.User
belongs_to :course, TlcApp.School.Course
belongs_to :stream, TlcApp.School.Stream
... | 20.708333 | 53 | 0.698189 |
622866f748df2914d3adfeb3b74ee98bdffcc6f7 | 1,717 | exs | Elixir | mix.exs | minibikini/paasaa | 7ba881492a4102e036458a7bd232132db1271869 | [
"MIT"
] | 96 | 2016-08-31T18:31:23.000Z | 2022-02-06T18:49:19.000Z | mix.exs | minibikini/paasaa | 7ba881492a4102e036458a7bd232132db1271869 | [
"MIT"
] | 13 | 2016-09-05T13:30:09.000Z | 2020-07-07T10:55:42.000Z | mix.exs | minibikini/paasaa | 7ba881492a4102e036458a7bd232132db1271869 | [
"MIT"
] | 12 | 2016-09-04T18:16:08.000Z | 2021-10-17T15:03:57.000Z | defmodule Paasaa.Mixfile do
use Mix.Project
def project do
[
app: :paasaa,
version: "0.5.1",
elixir: "~> 1.8",
description: description(),
package: package(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferr... | 24.528571 | 66 | 0.535818 |
6228a33c67a5cf5cb19dd088c6ea9e691b5a4abb | 2,978 | exs | Elixir | test/kerosene_test.exs | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | test/kerosene_test.exs | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | test/kerosene_test.exs | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | defmodule KeroseneTest do
use ExUnit.Case
alias Kerosene.Repo
alias Kerosene.Product
import Ecto.Query
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Kerosene.Repo)
end
defp create_products do
for i <- 1..15 do
%Product{name: "Product " <> to_string(i), price: 100.00}
|> Repo.inse... | 26.828829 | 91 | 0.652451 |
6228abd51b2a485212c3ab0e19e02595e8a91a27 | 1,505 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/add_filter_view_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/add_filter_view_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/add_filter_view_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.021277 | 114 | 0.742857 |
6228c13cfafb0fb851f0bc918082f5af74ed0ee7 | 2,006 | exs | Elixir | apps/nerves_hub_web_core/mix.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/mix.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/mix.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.MixProject do
use Mix.Project
def project do
[
app: :nerves_hub_web_core,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
start... | 27.479452 | 66 | 0.510967 |
6228d3c34ebaea3e5aedd5d6d1d238d20be3fefa | 156 | exs | Elixir | server/config/runtime.exs | thooton/secure-notepad | e780c660a9ea6e425a0e06ff1f9469f527251815 | [
"MIT"
] | null | null | null | server/config/runtime.exs | thooton/secure-notepad | e780c660a9ea6e425a0e06ff1f9469f527251815 | [
"MIT"
] | null | null | null | server/config/runtime.exs | thooton/secure-notepad | e780c660a9ea6e425a0e06ff1f9469f527251815 | [
"MIT"
] | null | null | null | import Config
config :secure_notepad_server, SecureNotepadServer.Database.Repo,
database: :code.priv_dir(:secure_notepad_server) |> Path.join("main.db")
| 31.2 | 74 | 0.801282 |
6228dcd40d13a39a2b54059c8720438e59ce766e | 4,967 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/retry_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/retry_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/retry_config.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... | 80.112903 | 991 | 0.752164 |
6228e8753a031cc6f77d34e8eb192ace1012c4e5 | 247 | exs | Elixir | projects/api/priv/repo/migrations/20171224042413_add_tags_table.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/priv/repo/migrations/20171224042413_add_tags_table.exs | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/priv/repo/migrations/20171224042413_add_tags_table.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule Margaret.Repo.Migrations.AddTagsTable do
use Ecto.Migration
def change do
create table(:tags) do
add(:title, :string, size: 64, null: false)
timestamps()
end
create(unique_index(:tags, [:title]))
end
end
| 17.642857 | 50 | 0.663968 |
622909b3182bee93846443d42186d896289b0db7 | 344 | exs | Elixir | config/test.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 5 | 2019-05-24T17:00:42.000Z | 2019-05-27T13:50:56.000Z | config/test.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 17 | 2019-05-27T08:59:36.000Z | 2020-02-17T06:45:27.000Z | config/test.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 1 | 2019-08-27T14:27:06.000Z | 2019-08-27T14:27:06.000Z | use Mix.Config
config :logger, level: :warn
config :corker, Corker.Repo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env("DATABASE_POSTGRESQL_USERNAME") || "postgres",
password: System.get_env("DATABASE_POSTGRESQL_PASSWORD") || "postgres",
database: "corker_test",
hostname: "localhost",
pool: Ec... | 28.666667 | 73 | 0.75 |
62290a7062aad5ea3fe46879ecadc1d61a7fc683 | 699 | ex | Elixir | lib/coins_ph/coins_ph.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/coins_ph/coins_ph.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/coins_ph/coins_ph.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | defmodule CryptoApis.CoinsPH do
@moduledoc """
https://docs.coins.asia/docs/market-rates-v2
"""
@root_url "https://quote.coins.ph/v2"
alias CryptoApis.Pair
defp process_pair(pair) do
pair |> Pair.new() |> Pair.join(delimiter: "-")
end
defp get(type, pair, opts) do
pair = pair && process_pair... | 19.971429 | 80 | 0.616595 |
62290b77c56b0a9d68f17817bd9bc81cb7fba9e3 | 1,747 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/file_content_hints.ex | CertifiedrLi/elixir-google-api | 4e0e261dd06ee7753c356cca413783f3facd5f03 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_content_hints.ex | CertifiedrLi/elixir-google-api | 4e0e261dd06ee7753c356cca413783f3facd5f03 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_content_hints.ex | CertifiedrLi/elixir-google-api | 4e0e261dd06ee7753c356cca413783f3facd5f03 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.351852 | 177 | 0.747567 |
622922dec78dfc151bc29ad35eb61560b98a9969 | 1,915 | ex | Elixir | lib/helpers.ex | danseid/checksum | c9a46eb8592687fa80b014a249b80bad15598288 | [
"MIT"
] | null | null | null | lib/helpers.ex | danseid/checksum | c9a46eb8592687fa80b014a249b80bad15598288 | [
"MIT"
] | null | null | null | lib/helpers.ex | danseid/checksum | c9a46eb8592687fa80b014a249b80bad15598288 | [
"MIT"
] | 1 | 2020-12-03T22:51:56.000Z | 2020-12-03T22:51:56.000Z | defmodule Checksum.Helpers do
use Bitwise
@doc """
Reorder the `bits` of a binary sequence `value`, by reflecting them about the middle position.
## Examples
iex> Checksum.Helpers.reflect(0x3E23, 3) == 0x3E26
true
"""
def reflect(value, bits), do: reflect(1, 1 <<< (bits-1), value, value)
@... | 27.753623 | 111 | 0.629765 |
62292ba441a551997748bce3940f7e484c1fd38d | 161 | ex | Elixir | lib/jumubase/schema.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase/schema.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase/schema.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule Jumubase.Schema do
defmacro __using__(_) do
quote do
use Ecto.Schema
@timestamps_opts [type: :naive_datetime_usec]
end
end
end
| 17.888889 | 51 | 0.695652 |
62295f2edf2cf1abe0679c2a2577e9f75847ac91 | 13,445 | ex | Elixir | lib/aws/generated/dev_ops_guru.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dev_ops_guru.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dev_ops_guru.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.DevOpsGuru do
@moduledoc """
Amazon DevOps Guru is a fully managed service that helps you identify anomalous
behavior in business critical operational applications.
You specify the AWS re... | 25.272556 | 175 | 0.64418 |
62299a16100b92208e76c997af40e4e85eb7bdd0 | 23,106 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_grpc_proxies.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_grpc_proxies.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_grpc_proxies.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 57.334988 | 2,276 | 0.650697 |
6229a0500e76903898dacc891608730a5c411a31 | 1,361 | exs | Elixir | test/phoenix_live_view/plug_test.exs | aforward-oss/phoenix_live_view | 90d240f5b33d4da2aef0a6a27f4fea400f73fb98 | [
"MIT"
] | null | null | null | test/phoenix_live_view/plug_test.exs | aforward-oss/phoenix_live_view | 90d240f5b33d4da2aef0a6a27f4fea400f73fb98 | [
"MIT"
] | null | null | null | test/phoenix_live_view/plug_test.exs | aforward-oss/phoenix_live_view | 90d240f5b33d4da2aef0a6a27f4fea400f73fb98 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.PlugTest do
use ExUnit.Case, async: true
use Phoenix.ConnTest
alias Phoenix.LiveView.Plug, as: LiveViewPlug
alias Phoenix.LiveViewTest.{DashboardLive, Endpoint}
setup config do
conn =
build_conn()
|> Plug.Test.init_test_session(config[:plug_session] || %{})
|... | 30.244444 | 99 | 0.643644 |
6229a4c694c27096e8f73ba81bb0e6b412021587 | 336 | ex | Elixir | lib/supabase_surface/components/icons/icon_film.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_film.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_film.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconFilm do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.film(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.4 | 62 | 0.714286 |
6229aee1994cf1c3073d522c0ada8d39cf4aa41a | 2,445 | ex | Elixir | lib/credo/check/readability/single_pipe.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/check/readability/single_pipe.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/check/readability/single_pipe.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.SinglePipe do
use Credo.Check,
base_priority: :high,
tags: [:controversial],
param_defaults: [allow_0_arity_functions: false],
explanations: [
check: """
Pipes (`|>`) should only be used when piping data through multiple calls.
So while this is fine... | 26.010638 | 96 | 0.593047 |
6229bfb48808996602a7fcd0188544e9d23ba771 | 1,925 | exs | Elixir | kousa/mix.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-03-25T12:35:40.000Z | 2021-03-25T12:35:40.000Z | kousa/mix.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2022-03-25T19:20:22.000Z | 2022-03-25T19:20:22.000Z | kousa/mix.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-03-19T13:04:24.000Z | 2021-03-19T13:04:24.000Z | defmodule Kousa.MixProject do
use Mix.Project
def project do
[
app: :kousa,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.htm... | 26.013514 | 94 | 0.501818 |
6229d9ccc58edc8485ea739ad47e84790a391fbb | 1,608 | exs | Elixir | test/absinthe/schema/notation/experimental/import_types_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/schema/notation/experimental/import_types_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/schema/notation/experimental/import_types_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Schema.Notation.Experimental.ImportTypesTest do
use Absinthe.Case, async: true
@moduletag :experimental
defmodule Source do
use Absinthe.Schema.Notation
object :one do
end
object :two do
end
object :three do
end
end
defmodule WithoutOptions do
use Absin... | 20.883117 | 75 | 0.69403 |
6229e621c0c645e283589f2db9ab0175ce3aa132 | 928 | exs | Elixir | test/lib/census/importer_test.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | test/lib/census/importer_test.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | test/lib/census/importer_test.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule BdPro.Census.ImporterTest do
use ExUnit.Case, async: true
use BdPro.ModelCase
import BdPro.Factories
alias BdPro.Census.Importer
setup do
{:ok, demographic_field: create(:demographic_field, name: "population_total", remote_name: "Tot_Population_ACS_09_13") }
end
setup do
{:ok, tract: c... | 37.12 | 144 | 0.730603 |
6229e695b89fb4af07acfb079c96439b73be2f69 | 197 | ex | Elixir | lib/nidavellir/router.ex | GabrielMalakias/nidavellir | 9e786f6813aa3e014f44bdedbf88a7c8259fe1f9 | [
"MIT"
] | 1 | 2021-01-20T04:15:01.000Z | 2021-01-20T04:15:01.000Z | lib/nidavellir/router.ex | GabrielMalakias/nidavellir | 9e786f6813aa3e014f44bdedbf88a7c8259fe1f9 | [
"MIT"
] | null | null | null | lib/nidavellir/router.ex | GabrielMalakias/nidavellir | 9e786f6813aa3e014f44bdedbf88a7c8259fe1f9 | [
"MIT"
] | null | null | null | defmodule Nidavellir.Router do
use Plug.Router
plug :match
plug :dispatch
get "/hello" do
send_resp(conn, 200, "world")
end
match _ do
send_resp(conn, 404, "oops")
end
end
| 13.133333 | 33 | 0.654822 |
6229ed8707428bad7a1e6964ba01dcd680f4bbb3 | 590 | ex | Elixir | lib/plausible_web/controllers/api/helpers.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | lib/plausible_web/controllers/api/helpers.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | lib/plausible_web/controllers/api/helpers.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule PlausibleWeb.Api.Helpers do
import Plug.Conn
def unauthorized(conn, msg) do
conn
|> put_status(401)
|> Phoenix.Controller.json(%{error: msg})
|> halt()
end
def bad_request(conn, msg) do
conn
|> put_status(400)
|> Phoenix.Controller.json(%{error: msg})
|> halt()
end
... | 18.4375 | 45 | 0.608475 |
622a24810ac306007cf969ad9e609943193f5a82 | 2,361 | exs | Elixir | config/prod.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"MIT"
] | 3 | 2016-08-08T07:07:35.000Z | 2019-11-08T05:20:31.000Z | config/prod.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"MIT"
] | null | null | null | config/prod.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"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... | 32.791667 | 73 | 0.720034 |
622a2f03eb137e4b09c5fb686b8aee0a07a1bef8 | 1,816 | exs | Elixir | apps/firestorm_data/test/firestorm_data/commands/follow_category_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_data/test/firestorm_data/commands/follow_category_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_data/test/firestorm_data/commands/follow_category_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormData.Commands.FollowCategoryTest do
use FirestormData.UnitCase
alias FirestormData.Commands.{CreateCategory, FollowCategory}
alias FirestormData.{User, Repo, Followable, Category}
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
describe "following a category" do
setu... | 33.018182 | 114 | 0.704846 |
622a4033d27faf8eaa6601eb800806e2ce35ccf8 | 64,868 | ex | Elixir | lib/ecto/repo.ex | kenny-evitt/ecto | 5585d1dfaebdc6472b30807dd3050dc2a6cfb14f | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | kenny-evitt/ecto | 5585d1dfaebdc6472b30807dd3050dc2a6cfb14f | [
"Apache-2.0"
] | 1 | 2021-03-09T16:43:23.000Z | 2021-03-09T16:43:23.000Z | lib/ecto/repo.ex | kenny-evitt/ecto | 5585d1dfaebdc6472b30807dd3050dc2a6cfb14f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo do
@moduledoc """
Defines a repository.
A repository maps to an underlying data store, controlled by the
adapter. For example, Ecto ships with a Postgres adapter that
stores data into a PostgreSQL database.
When used, the repository expects the `:otp_app` and `:adapter` as
option. Th... | 38.202591 | 137 | 0.674323 |
622a4fa57d13fee6a0eef289a5377a5eaa9f34fc | 620 | ex | Elixir | elixir/lib/com/spoonacular/client/model/inline_response_200_16.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 21 | 2019-08-09T18:53:26.000Z | 2022-03-14T22:10:10.000Z | elixir/lib/com/spoonacular/client/model/inline_response_200_16.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | null | null | null | elixir/lib/com/spoonacular/client/model/inline_response_200_16.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 55 | 2019-08-13T17:52:47.000Z | 2022-03-27T04:29:34.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.spoonacular.client.Model.InlineResponse20016 do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"parsedInstructions",
... | 20.666667 | 91 | 0.677419 |
622a5f08f7f46470381ee0457c3c417319de01c0 | 5,632 | ex | Elixir | lib/nostrum/struct/guild/member.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-12-08T23:47:17.000Z | 2020-12-08T23:47:17.000Z | lib/nostrum/struct/guild/member.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/struct/guild/member.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Struct.Guild.Member do
@moduledoc ~S"""
Struct representing a Discord guild member.
A `Nostrum.Struct.Guild.Member` stores a `Nostrum.Struct.User`'s properties
pertaining to a specific `Nostrum.Struct.Guild`.
## Mentioning Members in Messages
A `Nostrum.Struct.Guild.Member` can be menti... | 28.16 | 104 | 0.660334 |
622a9267d4b3c4ef8a35a493e42a9037e34ed423 | 1,334 | ex | Elixir | lib/dup_cli.ex | abhishekkr/dup | 8153b38f5f9d0f19794d9cd1202ed7a990a2089e | [
"MIT"
] | null | null | null | lib/dup_cli.ex | abhishekkr/dup | 8153b38f5f9d0f19794d9cd1202ed7a990a2089e | [
"MIT"
] | null | null | null | lib/dup_cli.ex | abhishekkr/dup | 8153b38f5f9d0f19794d9cd1202ed7a990a2089e | [
"MIT"
] | null | null | null | defmodule Dup.CLI do
@default_path "."
@worker_count Application.get_env(:dup, :worker_count, 2)
@moduledoc """
Handle cli parsing and dispatch to function using it.
"""
def main(argv), do: parse_args(argv) |> process()
@doc """
`argv` can be -h or --help which returns :help
otherwise it's a direc... | 26.68 | 90 | 0.644678 |
622a97dd86ee10b7429d8db28035bdfc7efce5d0 | 1,412 | ex | Elixir | lib/protected_hello_web/telemetry.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | lib/protected_hello_web/telemetry.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | lib/protected_hello_web/telemetry.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | defmodule ProtectedHelloWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms.... | 28.816327 | 86 | 0.673513 |
622afebc50dd79ec274a259b9ff5720e8aec4820 | 1,879 | ex | Elixir | clients/vector_tile/lib/google_api/vector_tile/v1/model/row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vector_tile/lib/google_api/vector_tile/v1/model/row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vector_tile/lib/google_api/vector_tile/v1/model/row.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.978723 | 545 | 0.741352 |
622b16ab609a202c9919f01a3aba7c2e28c533f3 | 2,750 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/http_header_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/http_header_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/http_header_action.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... | 49.107143 | 208 | 0.744727 |
622b16b6b4f15f049ace453db892e2915e46ed2a | 48,666 | exs | Elixir | lib/elixir/test/elixir/kernel/warning_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/test/elixir/kernel/warning_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.WarningTest do
use ExUnit.Case
import ExUnit.CaptureIO
defp capture_err(fun) do
capture_io(:stderr, fun)
end
test "outdented heredoc" do
output =
capture_err(fn ->
Code.eval_string("""
'''
outdented
... | 26.798458 | 149 | 0.492212 |
622b40b4bf09097a562debc9a0d6bb6db4660fdf | 1,375 | exs | Elixir | mix.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | mix.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | mix.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | defmodule PolyAmory.Mixfile do
use Mix.Project
@version "1.0.7"
@name "Ecto Poly"
@description "Polymorphic embeds for Ecto. Forked from ecto_poly to make it compatible with Ecto 3.5+."
@github "https://github.com/tableturn/poly_amory"
def project(),
do: [
name: @name,
description: @descri... | 22.916667 | 105 | 0.546909 |
622b6554066b5c162625dafe71377b298ee1379d | 2,418 | ex | Elixir | lib/banchan_web/live/auth_live/reset_password_live.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/live/auth_live/reset_password_live.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/live/auth_live/reset_password_live.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule BanchanWeb.ResetPasswordLive do
@moduledoc """
Account Forgot Password?
"""
use BanchanWeb, :surface_view
alias Surface.Components.Form
alias Banchan.Accounts
alias Banchan.Accounts.User
alias BanchanWeb.Components.Form.{Submit, TextInput}
alias BanchanWeb.Components.Layout
alias Bancha... | 27.793103 | 98 | 0.600083 |
622b68e74533f4fedcc3ae0a8d9994188ff0b508 | 61 | ex | Elixir | lib/spmapi_web/views/layout_view.ex | localgyros/spmapi | 90c0292de0bd2ca7f90395d2fbd62524ced66ce7 | [
"MIT"
] | 1 | 2018-06-04T01:03:05.000Z | 2018-06-04T01:03:05.000Z | lib/spmapi_web/views/layout_view.ex | localgyros/spmapi | 90c0292de0bd2ca7f90395d2fbd62524ced66ce7 | [
"MIT"
] | 5 | 2018-06-03T14:08:19.000Z | 2018-06-07T19:34:27.000Z | lib/spmapi_web/views/layout_view.ex | localgyros/spmapi | 90c0292de0bd2ca7f90395d2fbd62524ced66ce7 | [
"MIT"
] | null | null | null | defmodule SpmapiWeb.LayoutView do
use SpmapiWeb, :view
end
| 15.25 | 33 | 0.803279 |
622b77ce73995fcbe9b4f62885a1cb87aabe8528 | 4,939 | exs | Elixir | lib/logger/test/logger/handler_test.exs | vhf/elixir | 8e20b02a712e656cfffba617b07536aa503ab7e9 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/handler_test.exs | vhf/elixir | 8e20b02a712e656cfffba617b07536aa503ab7e9 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/handler_test.exs | vhf/elixir | 8e20b02a712e656cfffba617b07536aa503ab7e9 | [
"Apache-2.0"
] | null | null | null | defmodule Logger.HandlerTest do
use Logger.Case
@moduletag :logger
defmodule CustomTranslator do
def t(:debug, :info, :format, {'hello: ~p', [:ok]}) do
:skip
end
def t(:debug, :info, :format, {'world: ~p', [:ok]}) do
{:ok, "rewritten"}
end
def t(:debug, :info, :report, {:logger,... | 30.300613 | 92 | 0.603766 |
622b9317bfc256ff3a4bb9bb104d9d96b968210f | 795 | ex | Elixir | lib/level/spaces/space_setup_step.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level/spaces/space_setup_step.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level/spaces/space_setup_step.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule Level.Spaces.SpaceSetupStep do
@moduledoc """
The SpaceSetupStep schema.
"""
use Ecto.Schema
import Ecto.Changeset
alias Level.Spaces.Space
alias Level.Spaces.SpaceUser
@type t :: %__MODULE__{}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "s... | 23.382353 | 79 | 0.708176 |
622bfe8fd80c61d936f7d56ea696322476c57b7e | 2,763 | ex | Elixir | clients/spectrum/lib/google_api/spectrum/v1explorer/model/paws_init_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spectrum/lib/google_api/spectrum/v1explorer/model/paws_init_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spectrum/lib/google_api/spectrum/v1explorer/model/paws_init_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... | 48.473684 | 383 | 0.765834 |
622c1231355e300a722452cbef40d96eb089c981 | 11,343 | ex | Elixir | lib/nostrum/voice.ex | adrianparvino/nostrum | 66f6ec98281edc8b9f9b5a0a8a58cb8bc1154c9f | [
"MIT"
] | null | null | null | lib/nostrum/voice.ex | adrianparvino/nostrum | 66f6ec98281edc8b9f9b5a0a8a58cb8bc1154c9f | [
"MIT"
] | null | null | null | lib/nostrum/voice.ex | adrianparvino/nostrum | 66f6ec98281edc8b9f9b5a0a8a58cb8bc1154c9f | [
"MIT"
] | null | null | null | defmodule Nostrum.Voice do
@moduledoc """
Interface for playing audio through Discord's voice channels.
# Using Discord Voice Channels
To play sound in Discord with Nostrum, you'll need `ffmpeg` to be installed.
If you don't have the executable `ffmpeg` in the path, the absolute path may
be configured thro... | 28.571788 | 108 | 0.683946 |
622c471b48a309de58238b2d02a6ce91a6743a5d | 592 | ex | Elixir | apps/mcam_server/lib/mcam_server/unregistered_cameras/unregistered_camera_entry_supervisor.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/mcam_server/lib/mcam_server/unregistered_cameras/unregistered_camera_entry_supervisor.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/mcam_server/lib/mcam_server/unregistered_cameras/unregistered_camera_entry_supervisor.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule McamServer.UnregisteredCameras.UnregisteredCameraEntrySupervisor do
@moduledoc false
use DynamicSupervisor
@name __MODULE__
alias McamServer.UnregisteredCameras.UnregisteredCameraEntry
def start_link(init_arg) do
DynamicSupervisor.start_link(__MODULE__, init_arg, name: @name)
end
def init... | 25.73913 | 77 | 0.775338 |
622ca9872aaaafca12aa6224dd4809b0cb310ce1 | 18,497 | ex | Elixir | lib/phoenix_live_component.ex | easink/phoenix_live_view | 13642bc44193150e5cba8ecf7f550ebdc8ba6e38 | [
"MIT"
] | null | null | null | lib/phoenix_live_component.ex | easink/phoenix_live_view | 13642bc44193150e5cba8ecf7f550ebdc8ba6e38 | [
"MIT"
] | null | null | null | lib/phoenix_live_component.ex | easink/phoenix_live_view | 13642bc44193150e5cba8ecf7f550ebdc8ba6e38 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveComponent do
@moduledoc """
LiveComponents are a mechanism to compartmentalize state, markup, and
events in LiveView.
Components are defined by using `Phoenix.LiveComponent` and are used
by calling `Phoenix.LiveView.Helpers.live_component/1` in a parent LiveView.
Components run inside... | 37.217304 | 93 | 0.693302 |
622cb1eb76331f5df9380c7672f9e36e421a9440 | 23,314 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/instance_templates.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/instance_templates.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/instance_templates.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... | 48.469854 | 434 | 0.646993 |
622d0f53b53dffbbcfb613856312cbcaf37024bc | 462 | ex | Elixir | lib/uptom/pinger.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | lib/uptom/pinger.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | lib/uptom/pinger.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Uptom.Pinger do
def ping(url, opts \\ [timeout: 5_000]) do
response = HTTPotion.get(url, [timeout: opts[:timeout]])
case response do
%HTTPotion.Response{} ->
if HTTPotion.Response.success?(response) do
{:up, status_code: response.status_code}
else
{:down, st... | 28.875 | 60 | 0.623377 |
622d1e95508c7df398b05b5658f7d95cc3ebce87 | 3,770 | ex | Elixir | lib/iso3166.ex | Recruitee/iso3166ex | 050712f1c675821464aebe5047a49042895a03d2 | [
"MIT"
] | null | null | null | lib/iso3166.ex | Recruitee/iso3166ex | 050712f1c675821464aebe5047a49042895a03d2 | [
"MIT"
] | null | null | null | lib/iso3166.ex | Recruitee/iso3166ex | 050712f1c675821464aebe5047a49042895a03d2 | [
"MIT"
] | null | null | null | defmodule ISO3166 do
@title "ISO_3166-1"
@section "4"
@revid "690144849"
@url "https://en.wikipedia.org/w/api.php?action=parse§ion=#{@section}&prop=text&format=json&formatversion=2&oldid=#{@revid}"
@region_file_name Path.expand("../priv/ISO_3166-2.csv", __DIR__)
@file_cache Path.expand("../priv/#{@titl... | 34.587156 | 151 | 0.625729 |
622d215f58657dd57fc3753fe41ac42209475737 | 350 | exs | Elixir | test/stopsel/invoker_test.exs | Awlexus/stopsel | 0d207a65e786a5a057aea76cd7fde72d22ddfd78 | [
"MIT"
] | 3 | 2021-01-07T15:59:01.000Z | 2021-08-16T00:46:55.000Z | test/stopsel/invoker_test.exs | Awlexus/Stopsel | 0d207a65e786a5a057aea76cd7fde72d22ddfd78 | [
"MIT"
] | null | null | null | test/stopsel/invoker_test.exs | Awlexus/Stopsel | 0d207a65e786a5a057aea76cd7fde72d22ddfd78 | [
"MIT"
] | null | null | null | defmodule Stopsel.InvokerTest do
use ExUnit.Case
import ExUnit.CaptureIO
doctest Stopsel.Invoker
test "Applies stopsel" do
Stopsel.Router.load_router(MyApp.Router)
io =
capture_io(fn ->
assert {:ok, :ok} == Stopsel.Invoker.invoke("calculator 1 + 2", MyApp.Router)
end)
assert ... | 19.444444 | 85 | 0.648571 |
622d3c6cacea8c4da6aec9162285c6f0bc5aad03 | 455 | ex | Elixir | web/plugs/authentication.ex | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | web/plugs/authentication.ex | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | 22 | 2017-05-15T07:34:08.000Z | 2018-02-25T07:26:18.000Z | web/plugs/authentication.ex | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | defmodule Bibliotheca.Plugs.Authentication do
import Plug.Conn
@realm "Bibliotheca"
def realm, do: @realm
def unauthenticated(conn, _param),
do:
conn
|> send_resp(401, "Unauthorized")
|> halt()
def current_user(conn), do: Guardian.Plug.current_resource(conn)
# credo:disable-for-ne... | 23.947368 | 86 | 0.712088 |
622d5d3fce47e885e74b99b2d416403271d7c6e1 | 183 | exs | Elixir | priv/repo/migrations/20190501150326_tasks_table_alter_priority_field_type.exs | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | priv/repo/migrations/20190501150326_tasks_table_alter_priority_field_type.exs | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 2 | 2021-03-09T09:26:25.000Z | 2021-05-09T08:58:51.000Z | priv/repo/migrations/20190501150326_tasks_table_alter_priority_field_type.exs | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | null | null | null | defmodule Top52.Repo.Migrations.TasksTableAlterPriorityFieldType do
use Ecto.Migration
def change do
alter table(:tasks) do
modify :priority, :string
end
end
end
| 18.3 | 67 | 0.737705 |
622d6b3458e619b223243e4fb77340fc5916acec | 2,163 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.055556 | 349 | 0.749422 |
622d9f1103694e0f5495545b9edf1b6cf268f0b5 | 5,029 | ex | Elixir | lib/bsv.ex | slashrsm/bsv-ex | 6b7c4f0b7fd92462fea445e8d699d6233dd27c7d | [
"MIT"
] | null | null | null | lib/bsv.ex | slashrsm/bsv-ex | 6b7c4f0b7fd92462fea445e8d699d6233dd27c7d | [
"MIT"
] | null | null | null | lib/bsv.ex | slashrsm/bsv-ex | 6b7c4f0b7fd92462fea445e8d699d6233dd27c7d | [
"MIT"
] | null | null | null | defmodule BSV do
@moduledoc """



BSV-ex is a general purpose library for build... | 41.908333 | 370 | 0.682044 |
622df830ae4ab21da8ed892a72875235a1f2a142 | 2,673 | ex | Elixir | lib/statistics/distributions/f.ex | malcolmstill/elixir-statistics | 7134f89d3ff0fa22850b492f7a05551996812fae | [
"Apache-2.0"
] | null | null | null | lib/statistics/distributions/f.ex | malcolmstill/elixir-statistics | 7134f89d3ff0fa22850b492f7a05551996812fae | [
"Apache-2.0"
] | null | null | null | lib/statistics/distributions/f.ex | malcolmstill/elixir-statistics | 7134f89d3ff0fa22850b492f7a05551996812fae | [
"Apache-2.0"
] | null | null | null | defmodule Statistics.Distributions.F do
alias Statistics.Math
alias Statistics.Math.Functions
alias Statistics.Distributions.Beta
@moduledoc """
The F distribution
Note that `ppf/2` and `rand/2` here are very slow.
"""
@doc """
The probability density function
## Examples
iex> Statistics.... | 23.243478 | 98 | 0.62327 |
622e091c3519c41524d6be51829ae251d3125b68 | 2,033 | exs | Elixir | test/integration/custom_tag_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 117 | 2016-09-04T03:56:08.000Z | 2022-03-28T18:51:56.000Z | test/integration/custom_tag_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 73 | 2017-03-21T09:22:45.000Z | 2022-03-01T20:48:22.000Z | test/integration/custom_tag_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 25 | 2017-04-02T02:23:01.000Z | 2022-02-27T20:42:13.000Z | defmodule Solid.Integration.CustomTagsTest do
use ExUnit.Case, async: true
import Solid.Helpers
describe "custom tags" do
test "pass in custom tag that needs no arguments" do
assert render("{% get_current_date %}", %{}, parser: CustomDateParser) ==
to_string(DateTime.utc_now().year)
... | 31.276923 | 107 | 0.528283 |
622e25e13732c7bc036bc2427914b9fd3d5e3ee3 | 439 | exs | Elixir | priv/repo/migrations/20170621091223_create_comments_and_categories_tables.exs | edenlabllc/ecto_trail | 483fa58455c6cf15aa7f9030c622d0d30d32e244 | [
"MIT"
] | 49 | 2017-04-25T23:41:50.000Z | 2021-12-26T22:25:31.000Z | priv/repo/migrations/20170621091223_create_comments_and_categories_tables.exs | edenlabllc/ecto_trail | 483fa58455c6cf15aa7f9030c622d0d30d32e244 | [
"MIT"
] | 20 | 2017-04-25T20:32:13.000Z | 2019-03-12T13:37:34.000Z | priv/repo/migrations/20170621091223_create_comments_and_categories_tables.exs | Nebo15/change_logger | efe5ec64d76b6290d30d944e2a4cfe65a50cefe3 | [
"MIT"
] | 9 | 2017-11-20T16:48:19.000Z | 2020-07-16T13:54:18.000Z | defmodule EctoTrail.TestRepo.Migrations.CreateCommentsAndCategoriesTables do
@moduledoc false
use Ecto.Migration
def change do
create table(:comments) do
add :title, :string, null: false
add :resource_id, references(:resources, on_delete: :nothing)
end
create table(:categories) do
... | 25.823529 | 76 | 0.710706 |
622e2de00a853fbd9099cfefe82d1ab875840aa5 | 1,978 | ex | Elixir | clients/games/lib/google_api/games/v1/model/turn_based_match_modification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/turn_based_match_modification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/turn_based_match_modification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.62963 | 155 | 0.746714 |
622e8b17ca53347197d3f65207c24d8eb0764d4b | 2,632 | exs | Elixir | config/config.exs | DasThink/console | 54cde903e3f4e2ca93b14c1d3a7bf3b8a2c7372b | [
"Apache-2.0"
] | 1 | 2021-08-20T17:48:47.000Z | 2021-08-20T17:48:47.000Z | config/config.exs | mfalkvidd/console | 6427c82bc4f8619b5bb3a5940099a8bdd6167a9e | [
"Apache-2.0"
] | null | null | null | config/config.exs | mfalkvidd/console | 6427c82bc4f8619b5bb3a5940099a8bdd6167a9e | [
"Apache-2.0"
] | 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 :phoenix, :json_library, Jason
# General application configuration
config :con... | 30.252874 | 86 | 0.718845 |
622e9b05c18a7bdf00dce55074fb788a166a26bd | 950 | exs | Elixir | test/rocketpay/users/create_test.exs | mCodex/nlw4-elixir | e1e281d1790c4638cec5b6a4380d9bc6b7ef9472 | [
"MIT"
] | null | null | null | test/rocketpay/users/create_test.exs | mCodex/nlw4-elixir | e1e281d1790c4638cec5b6a4380d9bc6b7ef9472 | [
"MIT"
] | null | null | null | test/rocketpay/users/create_test.exs | mCodex/nlw4-elixir | e1e281d1790c4638cec5b6a4380d9bc6b7ef9472 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Users.CreateTest do
use Rocketpay.DataCase, async: true
alias Rocketpay.User
alias Rocketpay.Users.Create
describe "call/1" do
test "when all params are valid, returns an user" do
params = %{
name: "user1",
password: "123456",
nickname: "user1",
em... | 21.590909 | 63 | 0.574737 |
622ea7d2d6652a84d271d1f7122085cfea18bcf8 | 133 | ex | Elixir | web/views/page_view.ex | Contractbook/eview | 01166658910fd7c8c974874b116164873a382ac5 | [
"MIT"
] | 3 | 2018-11-11T22:43:04.000Z | 2020-03-11T12:17:11.000Z | web/views/page_view.ex | Contractbook/eview | 01166658910fd7c8c974874b116164873a382ac5 | [
"MIT"
] | 18 | 2016-10-28T16:10:22.000Z | 2018-09-11T11:35:28.000Z | web/views/page_view.ex | Contractbook/eview | 01166658910fd7c8c974874b116164873a382ac5 | [
"MIT"
] | 8 | 2017-01-11T16:14:46.000Z | 2022-03-21T13:06:10.000Z | defmodule Demo.PageView do
@moduledoc false
use Demo.Web, :view
def render("page.json", %{data: data}) do
data
end
end
| 13.3 | 43 | 0.661654 |
622eab4d92811429578437b1dc752831d3c37aaf | 1,757 | exs | Elixir | test/teiserver_web/controllers/battle/battle_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | test/teiserver_web/controllers/battle/battle_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/teiserver_web/controllers/battle/battle_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | # defmodule TeiserverWeb.Battle.MatchControllerTest do
# use TeiserverWeb.ConnCase
# alias Teiserver.Battle
# alias Teiserver.BattleTestLib
# alias Teiserver.Helpers.GeneralTestLib
# setup do
# GeneralTestLib.conn_setup(~w(horizon.manage))
# end
# @create_attrs %{name: "some name"}
# @update_attr... | 32.537037 | 85 | 0.655663 |
622eb6d49d5d4937ebddadaf2c6822e981070d36 | 522 | exs | Elixir | csvn_service/mix.exs | gsarwate/csv-normalizer | e8b09e4e1af30bb37d1b1abb5ff6ccbf1db7d91e | [
"MIT"
] | null | null | null | csvn_service/mix.exs | gsarwate/csv-normalizer | e8b09e4e1af30bb37d1b1abb5ff6ccbf1db7d91e | [
"MIT"
] | null | null | null | csvn_service/mix.exs | gsarwate/csv-normalizer | e8b09e4e1af30bb37d1b1abb5ff6ccbf1db7d91e | [
"MIT"
] | null | null | null | defmodule CsvnService.MixProject do
use Mix.Project
def project do
[
app: :csvn_service,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 18 | 59 | 0.557471 |
622eeb99d5cb0bfff6810e0639a0f18205e2fc94 | 10,628 | exs | Elixir | apps/re_web/test/graphql/accounts/query_test.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/test/graphql/accounts/query_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re_web/test/graphql/accounts/query_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.GraphQL.Accounts.QueryTest do
use ReWeb.{
AbsintheAssertions,
ConnCase
}
import Re.Factory
alias ReWeb.AbsintheHelpers
setup %{conn: conn} do
conn = put_req_header(conn, "accept", "application/json")
admin_user = insert(:user, email: "admin@email.com", role: "admin")
use... | 28.880435 | 97 | 0.502446 |
622f06dc90ba2e12a4f5f60ce87bb35e03633ecc | 891 | exs | Elixir | config/test.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | null | null | null | config/test.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | null | null | null | config/test.exs | ArthurPai/ex_admin | 8894a5e2d4a8ca0c0bfeceded16df3b7058ca665 | [
"MIT"
] | 1 | 2021-04-14T16:18:31.000Z | 2021-04-14T16:18:31.000Z | use Mix.Config
config :ex_admin, TestExAdmin.Endpoint,
http: [port: 4001],
secret_key_base: "HL0pikQMxNSA58DV3mf26O/eh1e4vaJDmx1qLgqBcnS14gbKu9Xn3x114D+mHYcX",
server: true
config :ex_admin, TestExAdmin.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "ex_admi... | 24.081081 | 86 | 0.744108 |
622f127d826c84bf090352c48d17b1483f211949 | 755 | exs | Elixir | mix.exs | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 49 | 2019-10-28T22:27:28.000Z | 2021-10-11T06:40:29.000Z | mix.exs | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 9 | 2019-08-30T13:15:36.000Z | 2019-10-10T21:25:14.000Z | mix.exs | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 7 | 2019-10-31T06:19:26.000Z | 2021-09-30T04:20:58.000Z | defmodule Igthorn.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "1.0.1",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "Igthorn",
source_url: "https://github.com/HedonSoftware/Igthorn",
homepage_url: "http://igthorn.... | 22.205882 | 61 | 0.580132 |
622f2d555a019096a647f2a36ce125436e16fa71 | 823 | ex | Elixir | lib/crius_chat/auth/user.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | lib/crius_chat/auth/user.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | 3 | 2021-03-09T17:37:23.000Z | 2021-09-01T22:28:38.000Z | lib/crius_chat/auth/user.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | defmodule CriusChat.Auth.User do
use Ecto.Schema
import Ecto.Changeset
alias CriusChat.Auth.AuthToken
schema "users" do
field :email, :string
field :nickname, :string
field :password_hash, :string
field :password, :string, virtual: true
has_many :auth_tokens, AuthToken
timestamps()
en... | 24.205882 | 73 | 0.673147 |
622f331e8ac45a9ed24d0c22d01382bec0a35a17 | 5,105 | exs | Elixir | test/json_schema_test_suite/draft6/dependencies_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/json_schema_test_suite/draft6/dependencies_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/json_schema_test_suite/draft6/dependencies_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft6.DependenciesTest do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|dependencies| do
setup do
%{schema: JsonXema.new(%{"dependencies" => %{"bar" => ["foo"]}})}
end
test ~s|neither|, %{schema: schema} do
assert valid?(schema, %{})
e... | 26.588542 | 86 | 0.529285 |
622f37a6edd3d316760d172eff840ec15567cd63 | 1,145 | exs | Elixir | config/config.exs | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | config/config.exs | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | config/config.exs | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
config :polygon, Polygon.Endpoint,
http: [
port: 4000,
protocol_options: [max_... | 30.945946 | 86 | 0.753712 |
622f3f5601980477f115f20d53f32ba82a9371e4 | 445 | ex | Elixir | lib/mix/tasks/gift.all.badges.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | lib/mix/tasks/gift.all.badges.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | lib/mix/tasks/gift.all.badges.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Mix.Tasks.Gift.All.Badges do
use Mix.Task
def run(args) do
cond do
length(args) != 1 ->
Mix.shell.info "Needs to receive only an id."
true ->
args |> List.first |> create
end
end
defp create(attendee_id) do
Mix.Task.run "app.start"
Safira.Contest.list_bad... | 22.25 | 109 | 0.633708 |
622f4d41a96c6fa44f47417589be834fc1eb7807 | 433 | exs | Elixir | test/server_test.exs | bradleyd/iris | 31438c46d4fc78bbea2d387a077db43a443426b2 | [
"MIT"
] | 3 | 2020-09-06T22:07:11.000Z | 2020-12-01T12:03:14.000Z | test/server_test.exs | bradleyd/iris | 31438c46d4fc78bbea2d387a077db43a443426b2 | [
"MIT"
] | null | null | null | test/server_test.exs | bradleyd/iris | 31438c46d4fc78bbea2d387a077db43a443426b2 | [
"MIT"
] | null | null | null | defmodule Iris.ServerTest do
use ExUnit.Case
test "options get set" do
assert {:ok, ["foobar", " ESMTP Bungadog"],
%Iris.Server.State{options: []}} = Iris.Server.init("foobar", 0, "127.0.0.1", [])
end
test "relay is false" do
assert {:ok, ["foobar", " ESMTP Bungadog"],
%Iris.Server.... | 27.0625 | 116 | 0.591224 |
622f4f6045936c41b456b62097cbe278cf2bbabb | 1,017 | ex | Elixir | lib/serum/dev_server/live_reload_handler.ex | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | lib/serum/dev_server/live_reload_handler.ex | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | lib/serum/dev_server/live_reload_handler.ex | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | defmodule Serum.DevServer.LiveReloadHandler do
@moduledoc false
_moduledocp = """
A Cowboy Websocket handler that sends signals to clients on file events.
"""
@behaviour :cowboy_websocket
require Serum.Util
import Serum.Util
alias Serum.DevServer.Service
@impl true
def init(req, state) do
{:... | 20.34 | 78 | 0.693215 |
622f608c27f043ef080dd4bd3434edb6397aa4f7 | 4,103 | ex | Elixir | lib/swoosh/attachment.ex | ntodd/swoosh | e2cc97b695543f9ef29c02d0c50dd692107762b0 | [
"MIT"
] | null | null | null | lib/swoosh/attachment.ex | ntodd/swoosh | e2cc97b695543f9ef29c02d0c50dd692107762b0 | [
"MIT"
] | null | null | null | lib/swoosh/attachment.ex | ntodd/swoosh | e2cc97b695543f9ef29c02d0c50dd692107762b0 | [
"MIT"
] | null | null | null | defmodule Swoosh.Attachment do
@moduledoc ~S"""
Struct representing an attachment in an email.
## Usage
For all usecases of `new/2` see the function documentation.
## Inline Example
new()
|> to({avenger.name, avenger.email})
|> from({"Red Skull", "red_skull@villains.org"})
|> subje... | 31.320611 | 133 | 0.610529 |
622f85c939c2911ece6340a8f17629e4470bd12f | 3,267 | ex | Elixir | lib/cog/token_reaper.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/token_reaper.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/token_reaper.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.TokenReaper do
@moduledoc """
Worker for periodic removal of expired tokens from the database.
As tokens expire and are no longer being used, they must be removed
from the database, or else the token table will fill with useless
data. This GenServer sleeps in the background, periodically waking... | 28.163793 | 100 | 0.683502 |
622f92aa3558bc38606f43ac327b5dd771dc7d9c | 68 | ex | Elixir | ch2/arity_calc.ex | TheEndIsNear/ElixirInAction | 9b18ebd4845723935e03ec2a0c3cf869aa955541 | [
"MIT"
] | null | null | null | ch2/arity_calc.ex | TheEndIsNear/ElixirInAction | 9b18ebd4845723935e03ec2a0c3cf869aa955541 | [
"MIT"
] | null | null | null | ch2/arity_calc.ex | TheEndIsNear/ElixirInAction | 9b18ebd4845723935e03ec2a0c3cf869aa955541 | [
"MIT"
] | null | null | null | defmodule Calculator do
def sum(a, b \\ 0) do
a + b
end
end
| 11.333333 | 23 | 0.588235 |
622f95519f190008311755d909cdded64422be01 | 4,612 | ex | Elixir | debian/init.d.ex | Aeronavics/dronekit-la | 6b9b48aec5dcc610ad87631514aad12b67b753a9 | [
"Apache-2.0"
] | 33 | 2016-02-08T19:54:14.000Z | 2022-03-22T22:25:38.000Z | debian/init.d.ex | hnjm/dronekit-la | 68c11b61e049e72ca8217cf9f9b94fab93c12eab | [
"Apache-2.0"
] | 48 | 2016-01-27T06:22:42.000Z | 2022-03-29T21:54:14.000Z | debian/init.d.ex | hnjm/dronekit-la | 68c11b61e049e72ca8217cf9f9b94fab93c12eab | [
"Apache-2.0"
] | 32 | 2016-01-27T17:24:32.000Z | 2022-03-15T00:54:49.000Z | #!/bin/sh
### BEGIN INIT INFO
# Provides: dronekit-la
# Required-Start: $local_fs $network $remote_fs $syslog
# Required-Stop: $local_fs $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <Enter a short description of the software>
# Description: ... | 27.616766 | 89 | 0.660668 |
622fa1385f7bd990fa1d273c48fd749d4d421ace | 2,419 | exs | Elixir | test/ptr_web/views/variety_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | test/ptr_web/views/variety_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | test/ptr_web/views/variety_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule PtrWeb.VarietyViewTest do
use PtrWeb.ConnCase, async: true
alias PtrWeb.VarietyView
alias Ptr.Options
alias Ptr.Options.Variety
import Phoenix.View
import Phoenix.HTML, only: [safe_to_string: 1]
test "renders empty.html", %{conn: conn} do
content = render_to_string(VarietyView, "empty.htm... | 27.179775 | 95 | 0.656056 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.