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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93766d70f98214a9460d5062d97ab118297da5e9 | 1,400 | ex | Elixir | lib/chess_app/web/controllers/session_controller.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | 3 | 2017-06-02T20:47:07.000Z | 2018-05-25T11:17:12.000Z | lib/chess_app/web/controllers/session_controller.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | lib/chess_app/web/controllers/session_controller.ex | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | defmodule ChessApp.Web.SessionController do
use ChessApp.Web, :controller
plug :scrub_params, "session" when action in [:create]
action_fallback ChessApp.Web.FallbackController
def new(conn, params = %{}) do
request_path = params |> Map.get("redirect_to","/")
conn
|> assign(:redirect_to, request_pa... | 29.787234 | 97 | 0.622857 |
93767256fbb8388e7fd7f7bab73ef922357dbd0e | 8,854 | exs | Elixir | test/phoenix/endpoint/endpoint_test.exs | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | test/phoenix/endpoint/endpoint_test.exs | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | test/phoenix/endpoint/endpoint_test.exs | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | System.put_env("ENDPOINT_TEST_HOST", "example.com")
defmodule Phoenix.Endpoint.EndpointTest do
use ExUnit.Case, async: true
use RouterHelper
@config [url: [host: {:system, "ENDPOINT_TEST_HOST"}, path: "/api"],
static_url: [host: "static.example.com"],
server: false, http: [port: 80], https... | 37.35865 | 113 | 0.683307 |
9376a85709a7b719b1f2979056d4ae9f1fdf3348 | 9,579 | ex | Elixir | lib/rdf/statement.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | lib/rdf/statement.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | lib/rdf/statement.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.Statement do
@moduledoc """
Helper functions for RDF statements.
An RDF statement is either a `RDF.Triple` or a `RDF.Quad`.
"""
alias RDF.{BlankNode, IRI, Literal, Quad, Term, Triple, PropertyMap}
import RDF.Guards
@type subject :: IRI.t() | BlankNode.t()
@type predicate :: IRI.t() | Bl... | 40.417722 | 131 | 0.670007 |
9376b9ddc2d3babe1012524423fb645cbccd416f | 475 | ex | Elixir | test/cat/laws/functor_laws.ex | fehu/elixir-cat | 7ca3492e755937c875747d0c3914fa47901080df | [
"MIT"
] | null | null | null | test/cat/laws/functor_laws.ex | fehu/elixir-cat | 7ca3492e755937c875747d0c3914fa47901080df | [
"MIT"
] | null | null | null | test/cat/laws/functor_laws.ex | fehu/elixir-cat | 7ca3492e755937c875747d0c3914fa47901080df | [
"MIT"
] | null | null | null | alias Cat.{Fun, Functor}
alias Cat.Laws.Law
require Fun
defmodule Cat.Laws.FunctorLaws do
@moduledoc false
@typep t(_x) :: any
@spec identity(t(a)) :: Law.eq?(t(a)) when a: var
def identity(ta), do:
Law.eq? Functor.map(ta, Fun.id), ta
@spec composition(t(a), (a -> b), (b -> c)) :: Law.eq?(t(c)) when a... | 23.75 | 90 | 0.6 |
9376d0d573df9eaea6c48ec67c1c6b3923411346 | 1,149 | exs | Elixir | config/config.exs | viveks-accionlabs/elixir_tweet | cb7bf9f3c368ac1cd578a0dd552c3ecd9158d0a5 | [
"MIT"
] | null | null | null | config/config.exs | viveks-accionlabs/elixir_tweet | cb7bf9f3c368ac1cd578a0dd552c3ecd9158d0a5 | [
"MIT"
] | null | null | null | config/config.exs | viveks-accionlabs/elixir_tweet | cb7bf9f3c368ac1cd578a0dd552c3ecd9158d0a5 | [
"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... | 37.064516 | 73 | 0.75544 |
9376e5b840613549ae57a0dcca180af95051843a | 961 | ex | Elixir | lib/cizen/effects/monitor.ex | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | 1 | 2019-04-08T08:00:06.000Z | 2019-04-08T08:00:06.000Z | lib/cizen/effects/monitor.ex | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | null | null | null | lib/cizen/effects/monitor.ex | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | null | null | null | defmodule Cizen.Effects.Monitor do
@moduledoc """
An effect to monitor a saga.
Returns an event filter for MonitorSaga.Down event.
## Example
down_filter = perform id, %Monitor{
saga_id: some_id
}
# Wait until the saga finishes.
perform(id, %Receive{
event_filter: down... | 19.22 | 79 | 0.614984 |
9376eeaf80b676d2e6d8ab8c7fa51edb92bd7582 | 1,091 | ex | Elixir | template/$PROJECT_NAME$/test/support/feature_case.ex | paridin/phx_custom_template | e48ae570eea4d1e79d654f140cd0a329e346a03b | [
"Apache-2.0"
] | 1 | 2020-09-09T11:53:45.000Z | 2020-09-09T11:53:45.000Z | template/$PROJECT_NAME$/test/support/feature_case.ex | paridin/phx_custom_template | e48ae570eea4d1e79d654f140cd0a329e346a03b | [
"Apache-2.0"
] | 1 | 2020-06-25T17:07:31.000Z | 2020-06-25T17:07:31.000Z | template/$PROJECT_NAME$/test/support/feature_case.ex | paridin/phx_custom_template | e48ae570eea4d1e79d654f140cd0a329e346a03b | [
"Apache-2.0"
] | null | null | null | defmodule <%= @project_name_camel_case %>Web.FeatureCase do
@moduledoc """
Feature Case
"""
import Plug.BasicAuth
use ExUnit.CaseTemplate
using do
quote do
use Wallaby.DSL
import Plug.Conn
import Phoenix.ConnTest
import Phoenix.LiveViewTest
import <%= @project_name_camel_... | 28.710526 | 100 | 0.676444 |
937701c5b0dbbba6cc5d7548d343bcfdb3cb4769 | 491 | ex | Elixir | lib/graphito/util/struct_mapper.ex | qgadrian/graphito | a170cab6365445025b81c12060b7b01fc2745a22 | [
"MIT"
] | 5 | 2018-05-14T20:57:31.000Z | 2020-04-29T15:39:07.000Z | lib/graphito/util/struct_mapper.ex | qgadrian/graphito | a170cab6365445025b81c12060b7b01fc2745a22 | [
"MIT"
] | null | null | null | lib/graphito/util/struct_mapper.ex | qgadrian/graphito | a170cab6365445025b81c12060b7b01fc2745a22 | [
"MIT"
] | null | null | null | defmodule Graphito.Util.StructMapper do
@moduledoc false
defmacro __using__(_) do
quote do
@spec to_struct(any, map) :: struct
defp to_struct(kind, attrs) do
struct = struct(kind)
Enum.reduce(Map.to_list(struct), struct, fn {key, _}, acc ->
attrs
|> Map.fetch(At... | 22.318182 | 68 | 0.531568 |
93775a49e12ef0f675d98e488fd5331185b0662b | 3,226 | exs | Elixir | .credo.exs | adrianomitre/async_with | 1886fb27ec4cab2b592ea2ebfe667adeccb93234 | [
"MIT"
] | 148 | 2017-09-07T18:20:25.000Z | 2021-09-20T17:36:37.000Z | .credo.exs | adrianomitre/async_with | 1886fb27ec4cab2b592ea2ebfe667adeccb93234 | [
"MIT"
] | 65 | 2017-09-10T15:22:33.000Z | 2022-03-23T11:58:17.000Z | .credo.exs | adrianomitre/async_with | 1886fb27ec4cab2b592ea2ebfe667adeccb93234 | [
"MIT"
] | 6 | 2018-02-28T21:49:35.000Z | 2021-09-20T17:38:20.000Z | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "config/", "test/"],
excluded: ["/_build", "/deps"]
},
requires: [],
strict: true,
color: true,
checks: [
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.Line... | 43.013333 | 81 | 0.676379 |
93777bdc87d5980a710fb1201f1238adc6ef3058 | 75 | exs | Elixir | test/views/layout_view_test.exs | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | test/views/layout_view_test.exs | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | test/views/layout_view_test.exs | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | defmodule MemoApi.LayoutViewTest do
use MemoApi.ConnCase, async: true
end | 25 | 35 | 0.826667 |
937797cabd7ec6be6749e06460a91f8c43e022b8 | 4,731 | exs | Elixir | apps/payload/test/can_test.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/payload/test/can_test.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/payload/test/can_test.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 33.553191 | 164 | 0.662016 |
9377aca49ea060e772861aad8b3cc343156a9bde | 2,603 | ex | Elixir | lib/sparrow/fcm/v1/pool/supervisor.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 20 | 2019-01-15T10:13:16.000Z | 2021-12-30T09:39:30.000Z | lib/sparrow/fcm/v1/pool/supervisor.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 45 | 2018-10-02T10:14:57.000Z | 2021-04-30T21:57:28.000Z | lib/sparrow/fcm/v1/pool/supervisor.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 9 | 2019-05-08T17:25:56.000Z | 2022-03-06T10:16:41.000Z | defmodule Sparrow.FCM.V1.Pool.Supervisor do
@moduledoc """
Supervises a single FCM workers pool.
"""
use Supervisor
@fcm_default_endpoint "fcm.googleapis.com"
@account_key "client_email"
@spec start_link(Keyword.t()) :: Supervisor.on_start()
def start_link(arg) do
Supervisor.start_link(__MODULE__,... | 27.691489 | 80 | 0.651172 |
9377b55088d0f3be2662f2fca3b48976e3bf95f0 | 1,138 | ex | Elixir | lib/data/procificency.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/procificency.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/procificency.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Proficiency do
@moduledoc """
Schema for character proficiencies
"""
use Data.Schema
@types ["normal"]
defmodule Instance do
@moduledoc """
Struct for an proficiency in a character's save
"""
@derive {Jason.Encoder, only: [:id, :ranks]}
defstruct [:id, :name, :ranks]
... | 19.62069 | 55 | 0.625659 |
9377b71e240d0e9e99003424a111548ca2af3a69 | 5,776 | exs | Elixir | test/last_crusader/webmentions/webmentions_sender_test.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | 1 | 2021-11-19T01:13:45.000Z | 2021-11-19T01:13:45.000Z | test/last_crusader/webmentions/webmentions_sender_test.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | 11 | 2021-01-31T11:05:50.000Z | 2021-11-22T08:32:03.000Z | test/last_crusader/webmentions/webmentions_sender_test.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | null | null | null | defmodule LastCrusader.Webmentions.WebmentionsSenderTest do
@moduledoc false
use ExUnit.Case, async: true
import Tesla.Mock
alias LastCrusader.Webmentions.Sender
test "check webmention is OK" do
# setup for webmentions is a bit tricky, I hope these variables will help
webmention_target = "https://br... | 32.268156 | 198 | 0.572368 |
9377f8f63de846513fb03ed5eab72a28125d234a | 661 | ex | Elixir | lib/supply_chain_web/live/clock_live.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 5 | 2020-12-10T07:24:18.000Z | 2021-12-15T08:26:05.000Z | lib/supply_chain_web/live/clock_live.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | null | null | null | lib/supply_chain_web/live/clock_live.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 2 | 2020-12-12T17:06:13.000Z | 2021-04-09T02:12:31.000Z | defmodule SupplyChainWeb.ClockLive do
use Phoenix.LiveView
def render(assigns) do
~L"""
<div>
<h2>It's <%= NimbleStrftime.format(@date, "%H:%M:%S") %></h2>
<%= live_render(@socket, SupplyChainWeb.ImageLive, id: "image") %>
</div>
"""
end
def mount(_params, _session, socket) do
... | 22.033333 | 72 | 0.633888 |
937801f4ac66bcc12159516b6caefeb877b3f84f | 1,496 | exs | Elixir | test/changelog/kits/agent_kit_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | test/changelog/kits/agent_kit_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | test/changelog/kits/agent_kit_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule Changelog.AgentKitTest do
use ExUnit.Case
alias Changelog.AgentKit
describe "get_subscribers/1" do
test "returns :error and :no_ua_string when sent nil" do
assert {:error, :no_ua_string} = AgentKit.get_subscribers(nil)
end
test "returns :error and :no_subscribers when subscibers are... | 40.432432 | 112 | 0.701203 |
93780753f2e4bbcaacd66fad84f606bdc66c089c | 1,873 | exs | Elixir | installer/templates/phx_single/config/prod.exs | anirudh24seven/phoenix | b5580e9cd1c78e0460d2df30807f4f99bd8b3051 | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/prod.exs | anirudh24seven/phoenix | b5580e9cd1c78e0460d2df30807f4f99bd8b3051 | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/prod.exs | anirudh24seven/phoenix | b5580e9cd1c78e0460d2df30807f4f99bd8b3051 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 36.019231 | 66 | 0.690336 |
937809481fff2bf7a49c19932a787b1e608ddc24 | 1,804 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_error_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_error_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_error_errors.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... | 34.037736 | 156 | 0.717295 |
9378104b09a023d6a9ce012186dad2ab503c0e23 | 3,839 | ex | Elixir | lib/livebook_web/live/settings_live/add_file_system_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/settings_live/add_file_system_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/settings_live/add_file_system_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SettingsLive.AddFileSystemComponent do
use LivebookWeb, :live_component
alias Livebook.FileSystem
@impl true
def mount(socket) do
{:ok, assign(socket, data: empty_data(), error_message: nil)}
end
@impl true
def render(assigns) do
~H"""
<div class="p-6 pb-4 max-w-4xl fl... | 35.878505 | 149 | 0.58088 |
93785f5bcff5ff518b80ea8feaf0f0463276f14f | 919 | exs | Elixir | test/wobserver2/web/router_test.exs | aruki-delivery/wobserver | 7db6b219b405defc1e28bd86836f9a90eed235b6 | [
"MIT"
] | null | null | null | test/wobserver2/web/router_test.exs | aruki-delivery/wobserver | 7db6b219b405defc1e28bd86836f9a90eed235b6 | [
"MIT"
] | null | null | null | test/wobserver2/web/router_test.exs | aruki-delivery/wobserver | 7db6b219b405defc1e28bd86836f9a90eed235b6 | [
"MIT"
] | null | null | null | defmodule Wobserver2.Web.RouterTest do
use ExUnit.Case, async: true
use Plug.Test
alias Wobserver2.Web.Router
@opts Router.init([])
test "/api/nodes returns nodes" do
conn = conn(:get, "/api/nodes")
conn = Router.call(conn, @opts)
assert conn.state == :sent
assert conn.status == 200
a... | 19.978261 | 85 | 0.633297 |
937860747c2c26ed7802d21eb1094f358401886e | 90,035 | ex | Elixir | lib/elixir/lib/enum.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression:
Enum.map([1, 2, 3], &(&1 * 2))
invokes `Enume... | 27.266808 | 110 | 0.613861 |
9378878a87ef4ac4c2822cb33cb92f9e49e25613 | 89 | exs | Elixir | test/day22_test.exs | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | test/day22_test.exs | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | test/day22_test.exs | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | defmodule Day22Test do
use ExUnit.Case
doctest Day22.Part1
doctest Day22.Part2
end
| 14.833333 | 22 | 0.786517 |
9378c6f4fc0db4525f263809b6813d785a579ceb | 6,771 | exs | Elixir | test/plug/cowboy_test.exs | PragTob/plug_cowboy | 207d1a38aaefccc774837b4a86fb9932aba09193 | [
"Apache-2.0"
] | null | null | null | test/plug/cowboy_test.exs | PragTob/plug_cowboy | 207d1a38aaefccc774837b4a86fb9932aba09193 | [
"Apache-2.0"
] | null | null | null | test/plug/cowboy_test.exs | PragTob/plug_cowboy | 207d1a38aaefccc774837b4a86fb9932aba09193 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.CowboyTest do
use ExUnit.Case, async: true
import Plug.Cowboy
import ExUnit.CaptureIO
def init([]) do
[foo: :bar]
end
handler = {:_, [], Plug.Cowboy.Handler, {Plug.CowboyTest, [foo: :bar]}}
@dispatch [{:_, [], [handler]}]
test "supports Elixir child specs" do
spec = {Plug.Cowb... | 34.545918 | 98 | 0.556491 |
9378d80d91980bf60ba878f65a040f51d13238c0 | 5,055 | ex | Elixir | lib/code_corps/model/stripe_connect_account.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps/model/stripe_connect_account.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps/model/stripe_connect_account.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.StripeConnectAccount do
@moduledoc """
Represents a StripeConnectAccount stored on Code Corps.
"""
use CodeCorps.Model
@type t :: %__MODULE__{}
schema "stripe_connect_accounts" do
field :business_name, :string
field :business_url, :string
field :charges_enabled, :boolean
... | 34.862069 | 83 | 0.763205 |
9378e8b58b4c9c514a90ec64d3db4521f552ce13 | 1,077 | ex | Elixir | lib/virus_total/client.ex | FloatingGhost/virus_total_ex | e24a1910c88e4e8f805e97c033dc13c4ef12c3be | [
"MIT"
] | null | null | null | lib/virus_total/client.ex | FloatingGhost/virus_total_ex | e24a1910c88e4e8f805e97c033dc13c4ef12c3be | [
"MIT"
] | null | null | null | lib/virus_total/client.ex | FloatingGhost/virus_total_ex | e24a1910c88e4e8f805e97c033dc13c4ef12c3be | [
"MIT"
] | null | null | null | defmodule VirusTotal.Client do
@moduledoc """
A client for interacting with virustotal
"""
use Tesla
@adapter {
Tesla.Adapter.Hackney,
[pool: :virustotal]
}
@doc """
Create a VT client with the API listed in config
Uses :virustotal -> :api_key
"""
def new do
Application.get_env(:vi... | 22.914894 | 82 | 0.636955 |
9378fd9c7d311f509222c17c2182eb46ef32f0bc | 3,515 | ex | Elixir | lib/oban/plugins/stager.ex | fedeotaran/oban | 60274b76ff2c59d660ae1bf7721a3ff14854700b | [
"Apache-2.0"
] | null | null | null | lib/oban/plugins/stager.ex | fedeotaran/oban | 60274b76ff2c59d660ae1bf7721a3ff14854700b | [
"Apache-2.0"
] | null | null | null | lib/oban/plugins/stager.ex | fedeotaran/oban | 60274b76ff2c59d660ae1bf7721a3ff14854700b | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Plugins.Stager do
@moduledoc """
Transition jobs to the `available` state when they reach their scheduled time.
This module is necessary for the execution of scheduled and retryable jobs.
## Options
* `:interval` - the number of milliseconds between database updates. This is directly tied to... | 25.107143 | 102 | 0.631863 |
93792442a468724c5c081163e4a66e79352a61ef | 4,092 | ex | Elixir | lib/incident/event_store/in_memory/lock_manager.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | lib/incident/event_store/in_memory/lock_manager.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | lib/incident/event_store/in_memory/lock_manager.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | defmodule Incident.EventStore.InMemory.LockManager do
@moduledoc """
Manages aggregate locks for the InMemory adapter.
The Lock Manager can be configured during initialization for the retry logic and lock timeout.
"""
use GenServer
alias Incident.EventStore.InMemory.AggregateLock
@type config :: keywo... | 33 | 116 | 0.690127 |
9379639b449be8226b414d363a9be5229803bf8a | 1,540 | ex | Elixir | server/lib/taskerito_web/endpoint.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | 5 | 2020-06-18T20:31:11.000Z | 2021-07-23T10:05:56.000Z | server/lib/taskerito_web/endpoint.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | server/lib/taskerito_web/endpoint.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | defmodule TaskeritoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :taskerito
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_taske... | 28.518519 | 97 | 0.716883 |
937980da454d3ae58e91de2ccfbc4123b0b296be | 1,291 | ex | Elixir | backend/lib/spades_game/ai/game_ai.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_game/ai/game_ai.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_game/ai/game_ai.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesGame.GameAI do
@moduledoc """
...
"""
alias SpadesGame.{Card, GameUI, Game}
alias SpadesGame.GameAI.{Bid, Play}
@spec bid_amount(GameUI.t()) :: integer
def bid_amount(%GameUI{game: game} = _game_ui) do
# "Need to bid" |> IO.inspect()
# hand = game[game.turn].hand # Old way
#... | 24.826923 | 57 | 0.58172 |
93798988956865b49ff7c7d087097aa38bfdc33f | 571 | ex | Elixir | apps/artemis/lib/artemis/contexts/permission/create_permission.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis/lib/artemis/contexts/permission/create_permission.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 3 | 2019-03-05T23:55:09.000Z | 2019-05-29T13:46:34.000Z | apps/artemis/lib/artemis/contexts/permission/create_permission.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule Artemis.CreatePermission do
use Artemis.Context
alias Artemis.Permission
alias Artemis.Repo
def call!(params, user) do
case call(params, user) do
{:error, _} -> raise(Artemis.Context.Error, "Error creating permission")
{:ok, result} -> result
end
end
def call(params, user) d... | 20.392857 | 78 | 0.654991 |
9379ae53449864f1d97ca0a38b6ca559618872ef | 69 | exs | Elixir | test/test_helper.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | test/test_helper.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | test/test_helper.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(LibLeaf.Repo, :manual)
| 23 | 53 | 0.782609 |
9379b9b2e16442117eaf3b09abca025c156c133d | 734 | ex | Elixir | lib/glue_web/controllers/fallback_controller.ex | seanbreckenridge/glue | 60cbe6478be27572de6c6d5276a806b5940ffcbc | [
"Apache-2.0"
] | 5 | 2020-07-04T12:18:58.000Z | 2022-01-13T22:35:40.000Z | lib/glue_web/controllers/fallback_controller.ex | seanbreckenridge/glue | 60cbe6478be27572de6c6d5276a806b5940ffcbc | [
"Apache-2.0"
] | 37 | 2020-07-20T23:35:56.000Z | 2022-03-19T02:13:16.000Z | lib/glue_web/controllers/fallback_controller.ex | seanbreckenridge/glue | 60cbe6478be27572de6c6d5276a806b5940ffcbc | [
"Apache-2.0"
] | null | null | null | defmodule GlueWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use GlueWeb, :controller
# This clause handles errors returned by Ecto's insert/update/delete.
def call(conn, {:e... | 29.36 | 78 | 0.70436 |
9379bdb542345536582c03a1919fc6c08be2db52 | 1,281 | ex | Elixir | address_validator/apps/address_validation_rest/lib/address_validation_rest/endpoint.ex | aikssen/address_hackaton | 38f608d23705052776ce26f38ba67a6c1ef52ab2 | [
"MIT"
] | null | null | null | address_validator/apps/address_validation_rest/lib/address_validation_rest/endpoint.ex | aikssen/address_hackaton | 38f608d23705052776ce26f38ba67a6c1ef52ab2 | [
"MIT"
] | null | null | null | address_validator/apps/address_validation_rest/lib/address_validation_rest/endpoint.ex | aikssen/address_hackaton | 38f608d23705052776ce26f38ba67a6c1ef52ab2 | [
"MIT"
] | null | null | null | defmodule AddressValidationRest.Endpoint do
use Phoenix.Endpoint, otp_app: :address_validation_rest
socket "/socket", AddressValidationRest.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your stati... | 29.790698 | 69 | 0.733802 |
9379e8a5b8888073ee0a55c35eb05206efe359a5 | 355 | exs | Elixir | priv/repo/seeds.exs | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | priv/repo/seeds.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | priv/repo/seeds.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# BattleBox.Repo.insert!(%BattleBox.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 29.583333 | 61 | 0.709859 |
9379eeadd5e6d0daed8c28d914ba8fb4c9e4567e | 925 | ex | Elixir | demo/test/support/channel_case.ex | ZmagoD/phoenix_bootstrap_form | 4ef6b54afd586d03f9eb21f1f5ef73c56e668e95 | [
"MIT"
] | 40 | 2017-09-07T03:25:23.000Z | 2022-02-27T04:47:14.000Z | demo/test/support/channel_case.ex | ZmagoD/phoenix_bootstrap_form | 4ef6b54afd586d03f9eb21f1f5ef73c56e668e95 | [
"MIT"
] | 7 | 2017-09-06T23:56:36.000Z | 2019-09-06T09:49:16.000Z | demo/test/support/channel_case.ex | ZmagoD/phoenix_bootstrap_form | 4ef6b54afd586d03f9eb21f1f5ef73c56e668e95 | [
"MIT"
] | 15 | 2017-09-29T09:16:11.000Z | 2022-01-19T22:48:14.000Z | defmodule DemoWeb.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 datastructures and query the data layer.
Finally, if the test case interacts with ... | 24.342105 | 66 | 0.712432 |
937a07a9186d6dfc94de07cf1d7f52097aa70d8f | 322 | exs | Elixir | priv/repo/migrations/20200113214658_create_band_table.exs | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | 3 | 2020-03-09T04:29:49.000Z | 2020-07-14T16:09:50.000Z | priv/repo/migrations/20200113214658_create_band_table.exs | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200113214658_create_band_table.exs | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | null | null | null | defmodule Portishead.Repo.Migrations.CreateBandTable do
use Ecto.Migration
def change do
create table(:band) do
add :name, :string, null: false
add :country_code, references(:country, column: :code, type: :string), null: false, size: 3
add :metadata, :json
timestamps()
end
end
en... | 23 | 97 | 0.670807 |
937a0c7d94f2e376f24b66bda5e03b18c0a89078 | 6,421 | exs | Elixir | template/$PROJECT_NAME$/.credo.exs | svnlto/gen_template_code_quality | fb182a7ac65e996c4e84c386fccc5b14965ddca9 | [
"Apache-2.0"
] | 1 | 2019-11-06T18:25:46.000Z | 2019-11-06T18:25:46.000Z | template/$PROJECT_NAME$/.credo.exs | svnlto/gen_template_code_quality | fb182a7ac65e996c4e84c386fccc5b14965ddca9 | [
"Apache-2.0"
] | null | null | null | template/$PROJECT_NAME$/.credo.exs | svnlto/gen_template_code_quality | fb182a7ac65e996c4e84c386fccc5b14965ddca9 | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.152439 | 88 | 0.617972 |
937a14eec9d51401ecd62a64c28a12e6af2d8df8 | 3,073 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/create_image_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/create_image_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/model/create_image_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... | 57.981132 | 652 | 0.747153 |
937a2ee997aa6c0c560e9aef580d6c7a69d63274 | 4,492 | ex | Elixir | lib/bugsnag.ex | JonRowe/bugsnag-elixir | 525231a514e4627f00112064734942b4b32e4388 | [
"MIT"
] | null | null | null | lib/bugsnag.ex | JonRowe/bugsnag-elixir | 525231a514e4627f00112064734942b4b32e4388 | [
"MIT"
] | null | null | null | lib/bugsnag.ex | JonRowe/bugsnag-elixir | 525231a514e4627f00112064734942b4b32e4388 | [
"MIT"
] | null | null | null | defmodule Bugsnag do
use Application
import Supervisor.Spec
require Logger
alias Bugsnag.Payload
@notify_url "https://notify.bugsnag.com"
@request_headers [{"Content-Type", "application/json"}]
def start(_type, _args) do
config =
default_config()
|> Keyword.merge(Application.get_all_env... | 30.767123 | 97 | 0.665628 |
937a33e255e7870054f46e82dd0b60d7632be66f | 67 | exs | Elixir | elixir/prefix.exs | enricocolasante/sandbox | ba006c3e45bacef064d90cb9861c637c98545cfc | [
"MIT"
] | null | null | null | elixir/prefix.exs | enricocolasante/sandbox | ba006c3e45bacef064d90cb9861c637c98545cfc | [
"MIT"
] | null | null | null | elixir/prefix.exs | enricocolasante/sandbox | ba006c3e45bacef064d90cb9861c637c98545cfc | [
"MIT"
] | null | null | null | prefix = fn prefix -> fn suffix -> prefix <> " " <> suffix end end
| 33.5 | 66 | 0.597015 |
937a5073d10b0f3d5d5f1192d565995a779d3cc9 | 775 | exs | Elixir | test/views/layout_view_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | test/views/layout_view_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | test/views/layout_view_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlanner.LayoutViewTest do
use CoursePlannerWeb.ConnCase, async: true
alias CoursePlannerWeb.LayoutView
import CoursePlanner.Factory
test "get_program_name returns PROGRAM_NAME system_variable value" do
sys_var_key = "PROGRAM_NAME"
sys_var_value = "sample_program_name"
insert(:syste... | 33.695652 | 87 | 0.774194 |
937a6f6f6daa79d00af08decd2eb98b7e94e7468 | 1,121 | exs | Elixir | Dining/philo/config/config.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | Dining/philo/config/config.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | Dining/philo/config/config.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"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.16129 | 73 | 0.749331 |
937a6fa017946232c876050dd4060265011f7b3f | 7,668 | ex | Elixir | lib/ex_aws/elastic_load_balancing/parsers.ex | JustinTangg/ex_aws_elastic_load_balancing | e43871ecd07b12de49d42e7c4d1f442a32eaebae | [
"MIT"
] | null | null | null | lib/ex_aws/elastic_load_balancing/parsers.ex | JustinTangg/ex_aws_elastic_load_balancing | e43871ecd07b12de49d42e7c4d1f442a32eaebae | [
"MIT"
] | null | null | null | lib/ex_aws/elastic_load_balancing/parsers.ex | JustinTangg/ex_aws_elastic_load_balancing | e43871ecd07b12de49d42e7c4d1f442a32eaebae | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(SweetXml) do
defmodule ExAws.ElasticLoadBalancing.Parsers do
use ExAws.Operation.Query.Parser
def parse({:ok, %{body: xml} = resp}, :describe_load_balancers) do
parsed_body =
xml
|> SweetXml.xpath(
~x"//DescribeLoadBalancersResponse",
load_bala... | 34.08 | 88 | 0.601982 |
937a98b6f5b0c44f8382556c22752267f474d8c3 | 1,486 | exs | Elixir | test/post_test.exs | albertored/excoveralls | a716e6e66aae64f4dc9d6d29859c47959151b229 | [
"MIT"
] | 716 | 2015-01-04T20:41:01.000Z | 2022-03-29T08:44:09.000Z | test/post_test.exs | albertored/excoveralls | a716e6e66aae64f4dc9d6d29859c47959151b229 | [
"MIT"
] | 255 | 2015-01-03T23:41:58.000Z | 2022-03-19T23:06:06.000Z | test/post_test.exs | albertored/excoveralls | a716e6e66aae64f4dc9d6d29859c47959151b229 | [
"MIT"
] | 217 | 2015-03-31T20:17:58.000Z | 2022-02-20T23:46:41.000Z | defmodule ExCoveralls.PostTest do
use ExUnit.Case
import Mock
alias ExCoveralls.Post
@content "defmodule Test do\n def test do\n end\nend\n"
@counts [0, 1, nil, nil]
@source_info [%{name: "test/fixtures/test.ex",
source: @content,
coverage: @counts
... | 30.958333 | 103 | 0.536339 |
937aa7146165bdadba26a61ad7ef117890b2aea0 | 140 | exs | Elixir | monitoring_hub/apps/market_spread_reports/test/market_spread_reports_test.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/market_spread_reports/test/market_spread_reports_test.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/market_spread_reports/test/market_spread_reports_test.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | defmodule MarketSpreadReportsTest do
use ExUnit.Case
doctest MarketSpreadReports
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.555556 | 36 | 0.728571 |
937ae751b608ae5ae4a54eef7b28b522b2115c2d | 62 | exs | Elixir | test/exuvia_test.exs | meetwalter/exuvia | 5c87af7186727ffcd3c6267ea2b259c301cb0dd2 | [
"BSD-3-Clause"
] | 1 | 2016-10-20T05:28:36.000Z | 2016-10-20T05:28:36.000Z | test/exuvia_test.exs | meetwalter/exuvia | 5c87af7186727ffcd3c6267ea2b259c301cb0dd2 | [
"BSD-3-Clause"
] | 4 | 2017-02-03T19:58:38.000Z | 2017-02-03T20:44:44.000Z | test/exuvia_test.exs | meetwalter/exuvia | 5c87af7186727ffcd3c6267ea2b259c301cb0dd2 | [
"BSD-3-Clause"
] | null | null | null | defmodule Exuvia.Tests do
use ExUnit.Case, async: false
end
| 15.5 | 31 | 0.774194 |
937b31192b5c2d070b573dedecd16e8dc0661070 | 10,087 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/tzdata/lib/tzdata/period_builder.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/tzdata/lib/tzdata/period_builder.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/tzdata/lib/tzdata/period_builder.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule Tzdata.PeriodBuilder do
@moduledoc false
import Tzdata.BasicData
alias Tzdata.Util, as: TzUtil
alias Tzdata.BasicData, as: TzData
@min_year 1900 # the first year to use when looking at rules
# the last year to use when looking at rules
# 82 years from compile time
@years_in_the_future_where_p... | 43.106838 | 143 | 0.717557 |
937b3ec5783e88772f5dd5d131bf687da840f7f8 | 2,139 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/create.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/drive_activity/lib/google_api/drive_activity/v2/model/create.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/create.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... | 40.358491 | 213 | 0.72978 |
937b7eeed019da7119e8e5c777c8d584ba3bcab2 | 699 | ex | Elixir | web/models/project.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | 3 | 2015-08-24T11:44:19.000Z | 2016-10-01T21:37:05.000Z | web/models/project.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | web/models/project.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | defmodule Storm.Project do
use Storm.Web, :model
schema "projects" do
field :name, :string
belongs_to :user, Storm.User
has_many :missions, Storm.Mission, on_delete: :fetch_and_delete
timestamps
end
@required_fields ~w(name)
@optional_fields ~w()
@doc """
Creates a changeset based on t... | 22.548387 | 67 | 0.692418 |
937b7ef97e2138166edfad55fb5bcb4ab2b171c2 | 8,177 | ex | Elixir | lib/ecto/adapters/tds/types.ex | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 384 | 2018-10-03T17:52:39.000Z | 2022-03-24T17:54:21.000Z | lib/ecto/adapters/tds/types.ex | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 357 | 2018-10-06T13:47:33.000Z | 2022-03-29T08:18:02.000Z | deps/ecto_sql/lib/ecto/adapters/tds/types.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 251 | 2018-10-04T11:06:41.000Z | 2022-03-29T07:22:53.000Z | if Code.ensure_loaded?(Tds) do
defmodule Tds.Ecto.UUID do
@moduledoc """
An TDS adapter type for UUIDs strings.
If you are using Tds adapter and UUIDs in your project, instead of `Ecto.UUID`
you should use Tds.Ecto.UUID to generate correct bytes that should be stored
in database.
"""
use... | 26.722222 | 96 | 0.48881 |
937b993ac19826b11854661f01698a856c955dee | 1,883 | exs | Elixir | mix.exs | bruteforcecat/bitcoinex | 1382fecf133f2d8bf2cc42db13f7c4dde040f9c9 | [
"Unlicense"
] | null | null | null | mix.exs | bruteforcecat/bitcoinex | 1382fecf133f2d8bf2cc42db13f7c4dde040f9c9 | [
"Unlicense"
] | null | null | null | mix.exs | bruteforcecat/bitcoinex | 1382fecf133f2d8bf2cc42db13f7c4dde040f9c9 | [
"Unlicense"
] | null | null | null | defmodule Bitcoinex.MixProject do
use Mix.Project
def project do
[
app: :bitcoinex,
version: "0.1.1",
elixir: "~> 1.8",
package: package(),
start_permanent: Mix.env() == :prod,
dialyzer: dialyzer(),
deps: deps(),
aliases: aliases(),
description: description... | 23.5375 | 73 | 0.565587 |
937bbe69c74fb2bb015524a314985a3cd133bff5 | 644 | exs | Elixir | config/config.exs | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | config/config.exs | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | config/config.exs | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | use Mix.Config
config :exvcr,
vcr_cassette_library_dir: "test/support/fixture/vcr_cassettes",
custom_cassette_library_dir: "test/support/fixture/custom_cassettes"
config :ex_lemonway,
api_url:
System.get_env(
"LEMONWAY_API_URL",
"https://sandbox-api.lemonway.fr/mb/[ORG_SLUG]/dev/directkitjson2/s... | 28 | 85 | 0.73913 |
937bbf4e3f286164b352a13e288b1a1f703380a6 | 1,581 | ex | Elixir | lib/mux.ex | kianmeng/mux-elixir | b1b2c97c52300260ca29882132fbaa2a6e5f7a40 | [
"MIT"
] | 53 | 2018-06-29T22:49:29.000Z | 2022-03-23T00:01:44.000Z | lib/mux.ex | kianmeng/mux-elixir | b1b2c97c52300260ca29882132fbaa2a6e5f7a40 | [
"MIT"
] | 18 | 2019-05-12T00:41:57.000Z | 2022-01-09T13:46:59.000Z | lib/mux.ex | kianmeng/mux-elixir | b1b2c97c52300260ca29882132fbaa2a6e5f7a40 | [
"MIT"
] | 14 | 2019-01-24T23:44:34.000Z | 2022-03-21T15:28:42.000Z | defmodule Mux do
@external_resource "README.md"
@moduledoc @external_resource
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
@doc """
Same as `Mux.client/3`, but will attempt to pull your access token ID and secret from the
application configuration... | 27.258621 | 91 | 0.575585 |
937bc360884de3eab49d32030b5d5703da680f60 | 1,865 | exs | Elixir | lib/elixir/test/elixir/calendar/time_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar/time_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/elixir/test/elixir/calendar/time_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
Code.require_file("holocene.exs", __DIR__)
Code.require_file("fakes.exs", __DIR__)
defmodule TimeTest do
use ExUnit.Case, async: true
doctest Time
test "to_string/1" do
assert to_string(~T[23:00:07.005]) == "23:00:07.005"
end
test "inspect/2" do
holo... | 36.568627 | 82 | 0.640214 |
937be97182e9ada59e0e9e70c4449cf008ac362a | 2,365 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/metadata.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/metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/metadata.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 ... | 43 | 467 | 0.732347 |
937c20fa39799b78947564067c70e68f4ee871e0 | 943 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/no_parentheses_keywords_parsing_test_case/OctalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/no_parentheses_keywords_parsing_test_case/OctalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/no_parentheses_keywords_parsing_test_case/OctalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0o76543210.and key1: value1, key2: value2
0o76543210.&& key1: value1, key2: value2
0o76543210.|> key1: value1, key2: value2
0o76543210.@ key1: value1, key2: value2
0o76543210.& key1: value1, key2: value2
0o76543210.== key1: value1, key2: value2
0o76543210.+ key1: value1, key2: value2
0o76543210.^^^ key1: value1, key2: ... | 39.291667 | 43 | 0.753977 |
937c3b556e59974e5f2ec994d0010f9637cd7c17 | 1,468 | ex | Elixir | lib/screens/v2/candidate_generator/solari.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/v2/candidate_generator/solari.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/v2/candidate_generator/solari.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.V2.CandidateGenerator.Solari do
@moduledoc false
alias Screens.Config.Screen
alias Screens.Config.V2.Header.CurrentStopName
alias Screens.Config.V2.Solari
alias Screens.V2.CandidateGenerator
alias Screens.V2.CandidateGenerator.Widgets
alias Screens.V2.Template.Builder
alias Screens.V2... | 28.230769 | 89 | 0.700272 |
937c402b4886d2dd15d874a12eb86e151d5e1d5e | 1,646 | ex | Elixir | traceme/lib/traceme_web/controllers/castle_controller.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | 9 | 2017-10-29T17:35:14.000Z | 2020-04-19T14:06:50.000Z | traceme/lib/traceme_web/controllers/castle_controller.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | traceme/lib/traceme_web/controllers/castle_controller.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | defmodule TracemeWeb.CastleController do
use TracemeWeb, :controller
import Traceme.AvatarSvc, only: [get_avatar: 2]
import Traceme.Spans
alias Traceme.Avatar
alias Traceme.ExRay.Phx
use ExRay, pre: :start_span, post: :end_span
@trace kind: :action
def index(conn, _params) do
req_id = conn |> ... | 26.983607 | 83 | 0.62819 |
937c4a50533cfd19e64b813985202f2603442e02 | 421 | exs | Elixir | priv/repo/migrations/20210518083003_create_seen_timeline_events.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20210518083003_create_seen_timeline_events.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20210518083003_create_seen_timeline_events.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.CreateSeenTimelineEvents do
use Ecto.Migration
def change do
create table(:seen_timeline_events) do
add(:seen_at, :utc_datetime)
add(:user_id, references(:users, on_delete: :nothing))
add(:event_id, references(:timeline_events, on_delete: :nothing))
ti... | 26.3125 | 71 | 0.719715 |
937c5a554294147e59cb1c4bba7080f780de6115 | 2,145 | ex | Elixir | clients/script/lib/google_api/script/v1/model/version.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/version.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/version.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 37.631579 | 222 | 0.727273 |
937c5a79c0998cb1e00bd9284fb7eadd970f3e98 | 474 | ex | Elixir | packaging/debian/emacsen-remove.ex | colinkiama/ambition | ee37ed9c5821c4f5e131cb6969514bffb03c0361 | [
"Apache-2.0"
] | 19 | 2015-01-03T20:09:31.000Z | 2020-01-25T22:19:08.000Z | packaging/debian/emacsen-remove.ex | colinkiama/ambition | ee37ed9c5821c4f5e131cb6969514bffb03c0361 | [
"Apache-2.0"
] | 4 | 2016-01-11T19:05:39.000Z | 2021-04-13T18:20:39.000Z | packaging/debian/emacsen-remove.ex | colinkiama/ambition | ee37ed9c5821c4f5e131cb6969514bffb03c0361 | [
"Apache-2.0"
] | 5 | 2015-03-18T20:09:02.000Z | 2021-11-25T15:20:46.000Z | #!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/ambition
FLAVOR=$1
PACKAGE=ambition
if [ ${FLAVOR} != emacs ]; then
if test -x /usr/sbin/install-info-altdir; then
echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/in... | 29.625 | 97 | 0.670886 |
937c5b5bd3c49bb208f7cc4db504f1867bdf036b | 3,309 | ex | Elixir | lib/new_relic/harvest/collector/harvest_cycle.ex | TheRealReal/elixir_agent | db757b24543c3d213495435e71340897f9455d16 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/harvest_cycle.ex | TheRealReal/elixir_agent | db757b24543c3d213495435e71340897f9455d16 | [
"Apache-2.0"
] | 1 | 2019-02-08T01:08:31.000Z | 2019-02-20T00:24:51.000Z | lib/new_relic/harvest/collector/harvest_cycle.ex | cultureamp/elixir_agent | 6a6b883a9032cd60e1872925dae705e99487de69 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Harvest.Collector.HarvestCycle do
use GenServer
# Manages the harvest cycle for a given harvester.
@moduledoc false
alias NewRelic.Harvest.Collector
def start_link(config) do
GenServer.start_link(__MODULE__, config, name: config[:name])
end
def init(
name: name,
... | 26.902439 | 85 | 0.687519 |
937c6611c17fe394c9afa0a62ec523dd667b2ae3 | 2,063 | exs | Elixir | test/credo/check/refactor/module_dependencies_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/refactor/module_dependencies_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/refactor/module_dependencies_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Refactor.ModuleDependenciesTest do
use Credo.Test.Case
@described_check Credo.Check.Refactor.ModuleDependencies
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def some_function() do
[
Dat... | 18.256637 | 70 | 0.498303 |
937cbfbbc30abe1c02f2885e4661723f408208a8 | 2,852 | ex | Elixir | lib/google_api/translate/v3beta1/model/input_config.ex | dungkvy/google_api_translate | 3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a | [
"Apache-2.0"
] | null | null | null | lib/google_api/translate/v3beta1/model/input_config.ex | dungkvy/google_api_translate | 3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a | [
"Apache-2.0"
] | null | null | null | lib/google_api/translate/v3beta1/model/input_config.ex | dungkvy/google_api_translate | 3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a | [
"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... | 39.068493 | 157 | 0.709327 |
937ccff7f642934c792223d85cbda541cab3f4d2 | 6,168 | ex | Elixir | lib/glimesh_web/live/chat_live/index.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | lib/glimesh_web/live/chat_live/index.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | lib/glimesh_web/live/chat_live/index.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.ChatLive.Index do
use GlimeshWeb, :live_view
import Appsignal.Phoenix.LiveView, only: [instrument: 4]
alias Glimesh.Accounts
alias Glimesh.ChannelLookups
alias Glimesh.Chat
alias Glimesh.Chat.ChatMessage
alias Glimesh.Presence
alias Glimesh.Streams
alias Glimesh.Streams.Channel
... | 29.797101 | 101 | 0.6631 |
937ced3148703685106ed244a5b817ef75c707ac | 198 | ex | Elixir | testData/org/elixir_lang/parser_definition/no_parentheses_strict_parsing_test_case/EmptyParentheses.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/no_parentheses_strict_parsing_test_case/EmptyParentheses.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/no_parentheses_strict_parsing_test_case/EmptyParentheses.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | # space between function and empty parentheses is a compiler error, but it is allowed so that it can be marked as an
# error by {@link: org.elixir_lang.inspection.NoParenthesesStrict}
identifier ()
| 49.5 | 116 | 0.787879 |
937d0505e06f5c9d00de68be80a3198674996473 | 6,453 | ex | Elixir | lib/ash/actions/update.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | lib/ash/actions/update.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | lib/ash/actions/update.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | defmodule Ash.Actions.Update do
@moduledoc false
alias Ash.Actions.Relationships
alias Ash.Engine
alias Ash.Engine.Request
require Logger
alias Ash.Error.Changes.{InvalidAttribute, InvalidRelationship}
@spec run(Ash.api(), Ash.record(), Ash.action(), Keyword.t()) ::
{:ok, Ash.record()} | {:err... | 29.875 | 98 | 0.635518 |
937d3e7de57e29915ef05c53f9d2dc96430306c3 | 785 | ex | Elixir | elixir-in-action/ch-9/todo_agent/lib/todo/server.ex | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | elixir-in-action/ch-9/todo_agent/lib/todo/server.ex | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | elixir-in-action/ch-9/todo_agent/lib/todo/server.ex | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | defmodule Todo.Server do
use Agent, restart: :temporary
def start_link(list_name) do
Agent.start_link(
fn ->
IO.puts("Starting server for #{list_name}")
{list_name, Todo.Database.get(list_name) || Todo.List.new()}
end,
name: via_tuple(list_name)
)
end
defp via_t... | 23.088235 | 69 | 0.642038 |
937d3f04eba366aa04edc4db361219c5f7bf58d6 | 1,671 | exs | Elixir | apps/cucumber_expressions/mix.exs | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-05-18T18:20:05.000Z | 2022-02-13T00:15:06.000Z | apps/cucumber_expressions/mix.exs | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-04-22T00:28:17.000Z | 2021-05-19T21:04:20.000Z | apps/cucumber_expressions/mix.exs | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 4 | 2021-04-14T03:07:45.000Z | 2021-12-12T21:23:59.000Z | defmodule CucumberExpressions.MixProject do
use Mix.Project
@vsn "0.1.3"
@github "https://github.com/Ajwah/ex_cucumber/tree/master/apps/cucumber_expressions"
@name "CucumberExpressions"
def project do
[
app: :cucumber_expressions,
version: @vsn,
description: "Parse and match Cucumber E... | 25.707692 | 86 | 0.584081 |
937d3ffe80ca4f7f5c52d8ff9233acd117ef5f57 | 2,330 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/status.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... | 43.962264 | 427 | 0.723605 |
937d46311624c16837abdefa98de6c95fb3bf062 | 1,328 | ex | Elixir | lib/vutuv/devices/phone_number.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | lib/vutuv/devices/phone_number.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | lib/vutuv/devices/phone_number.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule Vutuv.Devices.PhoneNumber do
use Ecto.Schema
import Ecto.Changeset
alias Vutuv.UserProfiles.User
@type t :: %__MODULE__{
id: integer,
user_id: integer,
user: User.t() | %Ecto.Association.NotLoaded{},
type: String.t(),
value: String.t(),
ins... | 26.56 | 84 | 0.584337 |
937d5046911819c03639857d6f5c97403bc63d81 | 6,626 | exs | Elixir | .credo.exs | tomciopp/ecto_commons | 75ca493739a54b2f73b753c3d2623dc61781d91d | [
"MIT"
] | null | null | null | .credo.exs | tomciopp/ecto_commons | 75ca493739a54b2f73b753c3d2623dc61781d91d | [
"MIT"
] | null | null | null | .credo.exs | tomciopp/ecto_commons | 75ca493739a54b2f73b753c3d2623dc61781d91d | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.976471 | 88 | 0.617114 |
937d8705b517bdc2e15ad4bb457186ae8a92e7aa | 501 | ex | Elixir | lib/subscription_web/views/error_view.ex | manojsamanta/stripe-subscription | d544a9dbde4c1c05998561ba4d77c966f00b18a5 | [
"MIT"
] | null | null | null | lib/subscription_web/views/error_view.ex | manojsamanta/stripe-subscription | d544a9dbde4c1c05998561ba4d77c966f00b18a5 | [
"MIT"
] | null | null | null | lib/subscription_web/views/error_view.ex | manojsamanta/stripe-subscription | d544a9dbde4c1c05998561ba4d77c966f00b18a5 | [
"MIT"
] | null | null | null | defmodule SubscriptionWeb.ErrorView do
use SubscriptionWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the tem... | 29.470588 | 61 | 0.740519 |
937db1b5cd0d48dc8ec6b9c9c2b6714ce73cf217 | 1,641 | exs | Elixir | mix.exs | hez/excoveralls | a4c1140e3757df4c075f9f5918307b6e973e8d83 | [
"MIT"
] | null | null | null | mix.exs | hez/excoveralls | a4c1140e3757df4c075f9f5918307b6e973e8d83 | [
"MIT"
] | null | null | null | mix.exs | hez/excoveralls | a4c1140e3757df4c075f9f5918307b6e973e8d83 | [
"MIT"
] | null | null | null | defmodule ExCoveralls.Mixfile do
use Mix.Project
@source_url "https://github.com/parroty/excoveralls"
def project do
[
app: :excoveralls,
version: "0.13.4",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
docs: docs(),
description: descripti... | 21.88 | 79 | 0.54479 |
937dc707643ac93d8dee0865f9579e881fa7032d | 159 | ex | Elixir | lib/webpipe/router.ex | hyperngn/webpipe | 67393cdc6f5fc26fccc24d1081341239f2d7d733 | [
"MIT"
] | 36 | 2020-05-25T07:55:10.000Z | 2021-11-09T11:18:47.000Z | lib/webpipe/router.ex | hyperngn/webpipe | 67393cdc6f5fc26fccc24d1081341239f2d7d733 | [
"MIT"
] | null | null | null | lib/webpipe/router.ex | hyperngn/webpipe | 67393cdc6f5fc26fccc24d1081341239f2d7d733 | [
"MIT"
] | 1 | 2020-05-25T15:04:24.000Z | 2020-05-25T15:04:24.000Z | defmodule Webpipe.Router do
def routes do
:cowboy_router.compile([
{:_,
[
{:_, Webpipe.HTTPHandler, []}
]}
])
end
end
| 14.454545 | 38 | 0.509434 |
937dd12ac16ff836f23f143c802b87eb4bab04a0 | 390 | ex | Elixir | lib/yuki_helper/config/provider.ex | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | null | null | null | lib/yuki_helper/config/provider.ex | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | 1 | 2021-05-13T16:28:58.000Z | 2021-05-13T16:28:58.000Z | lib/yuki_helper/config/provider.ex | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | null | null | null | defmodule YukiHelper.Config.Provider do
@moduledoc false
defstruct access_token: nil
@type t() :: %__MODULE__{}
@spec new() :: t()
def new(), do: %__MODULE__{}
@spec new(map() | any()) :: t()
def new(%{"access_token" => ""}), do: %__MODULE__{}
def new(%{"access_token" => token}) when is_binary(token)... | 26 | 60 | 0.623077 |
937dea110b4e51b8bc08ecef145e9d39cb3eb36a | 273 | ex | Elixir | lib/absinthe/adapter/passthrough.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/adapter/passthrough.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/adapter/passthrough.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Adapter.Passthrough do
@moduledoc """
The default adapter, which makes no changes to incoming query document
ASTs or outgoing results.
"""
use Absinthe.Adapter
def load_document(doc), do: doc
def dump_results(results), do: results
end
| 18.2 | 72 | 0.739927 |
937df9c6e1680f1ac66c5ce4bca5fc84cfb2e457 | 1,497 | ex | Elixir | apps/dockup/lib/dockup/backends/compose/docker_compose_config.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 1 | 2019-08-20T07:45:10.000Z | 2019-08-20T07:45:10.000Z | apps/dockup/lib/dockup/backends/compose/docker_compose_config.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup/lib/dockup/backends/compose/docker_compose_config.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 2 | 2019-03-08T10:51:34.000Z | 2019-08-20T07:45:13.000Z | defmodule Dockup.Backends.Compose.DockerComposeConfig do
require Logger
alias Dockup.{
Project
}
def rewrite_variables(project_id, project \\ Project) do
Logger.info "Rewriting variables in docker-compose.yml of project #{project_id}"
config_file = compose_file(project_id)
config_file
|> ... | 28.788462 | 118 | 0.673347 |
937e1b5d68539f8e62fbdd2435d3d1a7deb70760 | 435 | exs | Elixir | test/models/catalog_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | 2 | 2016-08-07T12:27:07.000Z | 2017-07-19T22:28:36.000Z | test/models/catalog_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | null | null | null | test/models/catalog_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | 1 | 2018-11-22T03:08:25.000Z | 2018-11-22T03:08:25.000Z | defmodule Cataloger.CatalogTest do
use Cataloger.ModelCase
alias Cataloger.Catalog
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Catalog.changeset(%Catalog{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid ... | 22.894737 | 61 | 0.733333 |
937e440974304dea36ea580517a0f0ab06dec5af | 5,745 | ex | Elixir | lib/ex_css_modules/ex_css_modules.ex | DefactoSoftware/ex_css_modules | b3ff31b0976745cc06d88072626a14781c04888b | [
"MIT"
] | 16 | 2017-09-26T12:07:27.000Z | 2022-03-23T12:05:13.000Z | lib/ex_css_modules/ex_css_modules.ex | DefactoSoftware/ex_css_modules | b3ff31b0976745cc06d88072626a14781c04888b | [
"MIT"
] | 77 | 2017-10-06T13:13:13.000Z | 2022-03-28T04:18:44.000Z | lib/ex_css_modules/ex_css_modules.ex | DefactoSoftware/ex_css_modules | b3ff31b0976745cc06d88072626a14781c04888b | [
"MIT"
] | 1 | 2021-12-29T22:28:20.000Z | 2021-12-29T22:28:20.000Z | defmodule ExCSSModules do
@moduledoc """
CSS Modules helpers
"""
alias __MODULE__
alias Phoenix.HTML
@type key :: String.t() | atom()
@type key_tuple :: {key, as_boolean(term())}
@doc """
Reads a valid stylesheet definition. Returns a map if the stylesheet is
already a map. Reads the file if the s... | 27.488038 | 97 | 0.601567 |
937e6280762b5728cf945e243aefe00fb8a7d809 | 85 | ex | Elixir | web/views/layout_view.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | defmodule SimilarfilmsPhoenix.LayoutView do
use SimilarfilmsPhoenix.Web, :view
end
| 21.25 | 43 | 0.847059 |
937e8c398a293f4cd778c9b1f0f7856e5faacacc | 4,296 | exs | Elixir | test/sanbase/kafka/kafka_exporter_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | test/sanbase/kafka/kafka_exporter_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | test/sanbase/kafka/kafka_exporter_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule KafkaExporterTest do
use ExUnit.Case, async: true
setup do
topic = :crypto.strong_rand_bytes(12) |> Base.encode64()
%{topic: topic}
end
# Setting buffering max messages to 0 sends to kafka on each `persist` call
test "buffering max messages works", %{topic: topic} do
{:ok, exporter_pid... | 31.130435 | 92 | 0.667365 |
937ed063a9bac517f11d13076f296f008097eedc | 4,031 | ex | Elixir | lib/arc/file.ex | PharosProduction/arc | e799fb9e2abdff7fec5dd3f0c5926c501a3576d4 | [
"Apache-2.0"
] | null | null | null | lib/arc/file.ex | PharosProduction/arc | e799fb9e2abdff7fec5dd3f0c5926c501a3576d4 | [
"Apache-2.0"
] | null | null | null | lib/arc/file.ex | PharosProduction/arc | e799fb9e2abdff7fec5dd3f0c5926c501a3576d4 | [
"Apache-2.0"
] | null | null | null | defmodule Arc.File do
defstruct [:path, :file_name, :binary, :content_type]
def generate_temporary_path(file \\ nil) do
extension = Path.extname((file && file.path) || "")
file_name =
:crypto.strong_rand_bytes(20)
|> Base.encode32()
|> Kernel.<>(extension)
Path.join(System.tmp_dir, ... | 31.007692 | 90 | 0.657653 |
937ed80852f9dc61f7a49f8a9a1216db2b33509e | 700 | ex | Elixir | lib/blog_api_web/guardian.ex | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | lib/blog_api_web/guardian.ex | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | lib/blog_api_web/guardian.ex | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | defmodule BlogApiWeb.Guardian do
@moduledoc """
This module is required by Guardian, to implements all type or configuration for
the auth token.
Also, is used to retrieve and deliver the authentication subject to Guardian.
More details here: https://github.com/ueberauth/guardian#installation
"""
use Gu... | 33.333333 | 83 | 0.727143 |
937f00d02a350ac2ee6933aacb13b076b2d307a3 | 1,925 | exs | Elixir | config/dev.exs | raguiar9080/fractalman | 7fa5d87e23d3d3e718c8410e63a1b4c15036ce8e | [
"MIT"
] | null | null | null | config/dev.exs | raguiar9080/fractalman | 7fa5d87e23d3d3e718c8410e63a1b4c15036ce8e | [
"MIT"
] | null | null | null | config/dev.exs | raguiar9080/fractalman | 7fa5d87e23d3d3e718c8410e63a1b4c15036ce8e | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :gurren, GurrenWeb.Endpoint,
http: [port: 4000... | 32.627119 | 170 | 0.701818 |
937f2677fce636944874bad135e81c9fcdc02950 | 2,018 | ex | Elixir | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.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/unit_invoice_additional_charge.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.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 ... | 38.075472 | 142 | 0.736868 |
937f77d2a484e95731b1795228ba6de6bc0f81c5 | 128 | exs | Elixir | elixir/43.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/43.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/43.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | add_one = &(&1 + 1)
add_one.(44)
|> IO.puts
square = &(&1 * &1)
square.(8)
|> IO.puts
speak = &(IO.puts(&1))
speak.("Hello")
| 10.666667 | 22 | 0.523438 |
937f9b04626b15e30b4fc98932de7599bc7c045a | 8,839 | exs | Elixir | test/parse_default_test.exs | lafka/timex | 99334777d2f5bc13a8b17b19dcd9873058abc0dd | [
"MIT"
] | null | null | null | test/parse_default_test.exs | lafka/timex | 99334777d2f5bc13a8b17b19dcd9873058abc0dd | [
"MIT"
] | null | null | null | test/parse_default_test.exs | lafka/timex | 99334777d2f5bc13a8b17b19dcd9873058abc0dd | [
"MIT"
] | null | null | null | defmodule DateFormatTest.ParseDefault do
use ExUnit.Case, async: true
use Timex
test :parse_literal do
assert {:error, "There were no parsing directives in the provided string."} = parse("hello", "hello")
assert {:error, "There were no parsing directives in the provided string."} = parse("hello1", "hello... | 42.090476 | 106 | 0.530377 |
937fc8e167c3cf045b2f84912b222f3a120f3687 | 2,189 | ex | Elixir | lib/vite/manifest.ex | mindreframer/vite_phx | a3de00bf6b07fadb35f94c57b4195393d1080dda | [
"MIT"
] | 14 | 2021-02-01T12:02:56.000Z | 2022-02-22T19:10:45.000Z | lib/vite/manifest.ex | mindreframer/vite | a3de00bf6b07fadb35f94c57b4195393d1080dda | [
"MIT"
] | 3 | 2021-04-07T00:34:27.000Z | 2021-10-17T15:22:32.000Z | lib/vite/manifest.ex | mindreframer/vite | a3de00bf6b07fadb35f94c57b4195393d1080dda | [
"MIT"
] | 5 | 2021-02-01T12:03:11.000Z | 2021-07-14T05:14:56.000Z | defmodule Vite.Manifest do
alias Vite.ManifestReader
require Logger
@type entry_value :: binary() | list(binary()) | nil
@spec read() :: map()
def read() do
ManifestReader.read_vite()
end
@spec entries() :: [list()]
def entries() do
read()
|> Enum.filter(&isEntry/1)
|> Enum.map(fn {_,... | 28.802632 | 91 | 0.605299 |
938002f4dd7462ea70598e72a71fbfad0fb452b6 | 881 | exs | Elixir | .formatter.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | .formatter.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | .formatter.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | [
import_deps: [:phoenix],
inputs: [
"lib/**/*.{ex,exs}",
"test/**/*.{ex,exs}",
"mix.exs"
],
locals_without_parens: [
## ECTO
# Query
from: 2,
# Schema
field: 1,
field: 2,
field: 3,
timestamps: 0,
timestamps: 1,
belongs_to: 2,
belongs_to: 3,
has_one: ... | 14.442623 | 26 | 0.488082 |
938005784a27e1b0b2215370a349e1b546429e86 | 449 | ex | Elixir | lib/rocketpay_web/views/users_view.ex | ledoctah/rocketpay | ab347ad2b4cc1c2a0fa6443be0c39fd64d658c61 | [
"MIT"
] | null | null | null | lib/rocketpay_web/views/users_view.ex | ledoctah/rocketpay | ab347ad2b4cc1c2a0fa6443be0c39fd64d658c61 | [
"MIT"
] | null | null | null | lib/rocketpay_web/views/users_view.ex | ledoctah/rocketpay | ab347ad2b4cc1c2a0fa6443be0c39fd64d658c61 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersView do
alias Rocketpay.{Account, User}
def render("create.json", %{
user: %User{account: %Account{id: account_id, balance: balance}, id: id, name: name, nickname: nickname}
}) do
%{
message: "User created",
user: %{
id: id,
name: name,
... | 21.380952 | 110 | 0.541203 |
93806cef1798b51fbb868763dde59ec739103333 | 11,130 | ex | Elixir | lib/mappers/h3/h3.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 32 | 2021-04-22T01:55:31.000Z | 2022-02-25T13:17:21.000Z | lib/mappers/h3/h3.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 58 | 2021-06-04T18:42:59.000Z | 2022-03-31T07:17:01.000Z | lib/mappers/h3/h3.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 13 | 2021-04-10T06:09:15.000Z | 2022-03-23T13:07:37.000Z | defmodule Mappers.H3 do
alias Mappers.Repo
alias Mappers.H3.Res9
use MappersWeb, :controller
def create(message) do
# grab lat/lng if available
lat = message["decoded"]["payload"]["latitude"]
lng = message["decoded"]["payload"]["longitude"]
# find h3 index
h3_res9_id = :h3.from_geo({lat, l... | 37.474747 | 96 | 0.412668 |
9380845c3bef83eeb73dc5adf503d7e5ea3b0b1c | 1,354 | ex | Elixir | lib/hls_admin_web/endpoint.ex | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | 1 | 2020-12-22T08:30:37.000Z | 2020-12-22T08:30:37.000Z | lib/hls_admin_web/endpoint.ex | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | 8 | 2020-10-12T18:51:41.000Z | 2021-06-16T18:48:36.000Z | lib/hls_admin_web/endpoint.ex | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | null | null | null | defmodule HlsAdminWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hls_admin
socket "/socket", HlsAdminWeb.UserSocket,
websocket: true,
longpoll: false
socket "/live", Phoenix.LiveView.Socket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are r... | 27.632653 | 69 | 0.711965 |
9380873eae7a2068c38f912de2454876cdca4e75 | 2,472 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/UnknownBaseWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/UnknownBaseWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/UnknownBaseWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0zABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz9876543210.and unqualified positional, key: value
0zABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz9876543210.&& unqualified positional, key: value
0zABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz9876543210.|> unqualified positional, key: value
0zABCDEFGH... | 98.88 | 105 | 0.911408 |
9380965b5dd2259943bdb5c04920a2fe102a35ef | 602 | exs | Elixir | nerves.exs | rosetta-home/rosetta_rpi0 | c910c9929510f38a12a2d860485ae0cb0b08e917 | [
"Apache-2.0"
] | 2 | 2017-11-06T05:19:16.000Z | 2020-03-04T06:42:16.000Z | nerves.exs | rosetta-home/rosetta_rpi0 | c910c9929510f38a12a2d860485ae0cb0b08e917 | [
"Apache-2.0"
] | null | null | null | nerves.exs | rosetta-home/rosetta_rpi0 | c910c9929510f38a12a2d860485ae0cb0b08e917 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.trim
pkg = :rosetta_rpi0
config pkg, :nerves_env,
type: :system,
version: version,
compiler: :nerves_package,
artifact_url: [
"https://github.com/rosetta-home/#{pkg}/releases/download/v#{version}/#{pkg}-v#{version}.tar.g... | 19.419355 | 101 | 0.636213 |
9380c735ffc6a0327ae0e7bd74849acdda780766 | 128 | exs | Elixir | apps/language_server/test/fixtures/umbrella_test_code_lens_custom_path_and_pattern/apps/app1/custom_path/fixture_custom_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/test/fixtures/umbrella_test_code_lens_custom_path_and_pattern/apps/app1/custom_path/fixture_custom_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/test/fixtures/umbrella_test_code_lens_custom_path_and_pattern/apps/app1/custom_path/fixture_custom_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule UmbrellaTestCodeLensCustomPathAndPatternTest do
use ExUnit.Case
test "fixture test" do
assert true
end
end
| 16 | 57 | 0.789063 |
9380cd878def273b332dbe0a5934e5879eb2a917 | 291 | exs | Elixir | priv/repo/migrations/20171101023309_add_github_repo_to_github_comments.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20171101023309_add_github_repo_to_github_comments.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20171101023309_add_github_repo_to_github_comments.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.AddGithubRepoToGithubComments do
use Ecto.Migration
def change do
alter table(:github_comments) do
add :github_repo_id, references(:github_repos, on_delete: :nothing)
end
create index(:github_comments, [:github_repo_id])
end
end
| 24.25 | 73 | 0.75945 |
9380db10c09eb7e0503ca8c51c49893feb6fd8f6 | 952 | exs | Elixir | deps/gettext/mix.exs | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | 1 | 2016-08-17T11:39:26.000Z | 2016-08-17T11:39:26.000Z | deps/gettext/mix.exs | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | null | null | null | deps/gettext/mix.exs | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | null | null | null | defmodule Gettext.Mixfile do
use Mix.Project
@version "0.10.0"
@description "Internationalization and localization through gettext"
@repo_url "https://github.com/elixir-lang/gettext"
def project do
[app: :gettext,
version: @version,
elixir: "~> 1.1-beta",
build_embedded: Mix.env == :prod... | 22.139535 | 70 | 0.602941 |
9380e7ba40fcd2c07464dddd3ba4d22f79a9b138 | 61 | ex | Elixir | apps/welcome/lib/welcome_web/views/page_view.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/welcome/lib/welcome_web/views/page_view.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/welcome/lib/welcome_web/views/page_view.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | defmodule WelcomeWeb.PageView do
use WelcomeWeb, :view
end
| 15.25 | 32 | 0.803279 |
93811671cb9e31251c5686b9d863b3414538e8e4 | 237 | ex | Elixir | lib/expay_web/controllers/fallback_controller.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | 3 | 2021-04-17T15:25:42.000Z | 2021-04-22T22:31:23.000Z | lib/expay_web/controllers/fallback_controller.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | null | null | null | lib/expay_web/controllers/fallback_controller.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | null | null | null | defmodule ExpayWeb.FallbackController do
use ExpayWeb, :controller
def call(conn, {:error, result}) do
conn
|> put_status(:bad_request)
|> put_view(ExpayWeb.ErrorView)
|> render("400.json", result: result)
end
end
| 21.545455 | 41 | 0.687764 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.