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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28f3fa3e7ff2f184523322426e9ff1ae89d53be1 | 262 | ex | Elixir | apps/packet/lib/packet/disconnect.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 8 | 2019-12-20T15:44:08.000Z | 2021-01-25T18:30:25.000Z | apps/packet/lib/packet/disconnect.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T17:20:00.000Z | 2019-11-08T17:20:00.000Z | apps/packet/lib/packet/disconnect.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | null | null | null | defmodule Packet.Disconnect do
use Bitwise
require Logger
@opaque decode_result :: {:disconnect, String.t()}
@spec decode(<<_::8>>, <<_::8>>) :: decode_result
def decode(<<14::4, 0::4>>, _payload) do
{:disconnect, "disconnect reasons"}
end
end
| 21.833333 | 52 | 0.648855 |
28f420132aa70935f4032e8affaf50f6317b7d0a | 2,073 | exs | Elixir | test/unit/quad_test.exs | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | test/unit/quad_test.exs | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | test/unit/quad_test.exs | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.QuadTest do
use RDF.Test.Case
doctest RDF.Quad
alias RDF.Quad
describe "values/1" do
test "with a valid RDF.Quad" do
assert Quad.values(
{~I<http://example.com/S>, ~I<http://example.com/p>, XSD.integer(42),
~I<http://example.com/Graph>}
) ==... | 33.983607 | 95 | 0.510371 |
28f4219ccbaaab3b3945a9648921d43b6b7c3904 | 20,971 | ex | Elixir | lib/pow_assent/plug.ex | Schultzer/pow_assent | 908baece87ea0606d55f2b8914ef399ac763b1d0 | [
"MIT"
] | 193 | 2019-10-30T00:58:21.000Z | 2022-03-09T20:26:37.000Z | lib/pow_assent/plug.ex | Schultzer/pow_assent | 908baece87ea0606d55f2b8914ef399ac763b1d0 | [
"MIT"
] | 82 | 2019-10-29T20:19:38.000Z | 2022-03-22T04:09:27.000Z | lib/pow_assent/plug.ex | Schultzer/pow_assent | 908baece87ea0606d55f2b8914ef399ac763b1d0 | [
"MIT"
] | 28 | 2019-10-31T12:38:10.000Z | 2021-11-01T18:05:23.000Z | defmodule PowAssent.Plug do
@moduledoc """
Plug helper methods.
If you wish to configure PowAssent through the Pow plug interface rather than
environment config, please add PowAssent config with `:pow_assent` config:
plug Pow.Plug.Session,
repo: MyApp.Repo,
user: MyApp.User,
pow_... | 34.099187 | 171 | 0.682323 |
28f43269bc285747cd9426a6acfd259d21702ec2 | 5,681 | ex | Elixir | lib/elasticsearch/cluster/cluster.ex | sambou/elasticsearch-elixir | 4d1ba74513c5276457709520a754bcd599306a61 | [
"MIT"
] | null | null | null | lib/elasticsearch/cluster/cluster.ex | sambou/elasticsearch-elixir | 4d1ba74513c5276457709520a754bcd599306a61 | [
"MIT"
] | null | null | null | lib/elasticsearch/cluster/cluster.ex | sambou/elasticsearch-elixir | 4d1ba74513c5276457709520a754bcd599306a61 | [
"MIT"
] | null | null | null | defmodule Elasticsearch.Cluster do
@moduledoc """
Defines and holds configuration for your Elasticsearch cluster.
defmodule MyApp.ElasticsearchCluster do
use Elasticsearch.Cluster
end
Once you have created your cluster, add it to your application's supervision tree:
children = [
... | 28.984694 | 92 | 0.614681 |
28f43f1d1c2e28d80fc58fdb85dbabba3b0173d3 | 565 | ex | Elixir | lib/expay_web/views/user_view.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | 3 | 2021-04-17T15:25:42.000Z | 2021-04-22T22:31:23.000Z | lib/expay_web/views/user_view.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | null | null | null | lib/expay_web/views/user_view.ex | osergioneto/expay | 928e586e8f8df27965edd266fd06f5a9b7c14409 | [
"Apache-2.0"
] | null | null | null | defmodule ExpayWeb.UserView do
# alias Expay.Users.Schemas.User
alias Expay.Accounts.Schemas.Account
def render("create.json", %{
user: %{
account: %{number: number, agency: agency, balance: balance},
id: user_id,
name: name,
email: email
}
}) do
... | 20.178571 | 71 | 0.499115 |
28f45d6fc4b35b02f3eec3ba9aeba451f3df1605 | 2,793 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authentication_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authentication_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authentication_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.338028 | 175 | 0.749015 |
28f45deb5a9112b117052f491d455ac19fecb1c4 | 782 | ex | Elixir | test/fixtures/elixir/post_with_urlencoded_data.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 536 | 2021-10-06T17:21:25.000Z | 2022-03-31T13:05:48.000Z | test/fixtures/elixir/post_with_urlencoded_data.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 74 | 2021-10-08T13:57:14.000Z | 2022-03-31T06:55:39.000Z | test/fixtures/elixir/post_with_urlencoded_data.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 104 | 2021-10-06T19:36:15.000Z | 2022-03-31T07:34:04.000Z | request = %HTTPoison.Request{
method: :post,
url: "http://localhost:28139/echo/html/",
options: [],
headers: [
{~s|Origin|, ~s|http://fiddle.jshell.net|},
{~s|Accept-Encoding|, ~s|gzip, deflate|},
{~s|Accept-Language|, ~s|en-US,en;q=0.8|},
{~s|User-Agent|, ~s|Mozilla/5.0 (Macintosh; Intel Mac OS... | 32.583333 | 147 | 0.595908 |
28f4797c17cb632a9102f011100a2032bc2cb35b | 12,862 | exs | Elixir | test/protobuf/protoc/generator/message_test.exs | jeanparpaillon/protobuf-elixir | 7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09 | [
"MIT"
] | null | null | null | test/protobuf/protoc/generator/message_test.exs | jeanparpaillon/protobuf-elixir | 7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09 | [
"MIT"
] | null | null | null | test/protobuf/protoc/generator/message_test.exs | jeanparpaillon/protobuf-elixir | 7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09 | [
"MIT"
] | null | null | null | defmodule Protobuf.Protoc.Generator.MessageTest do
use ExUnit.Case, async: true
alias Protobuf.Protoc.Context
alias Protobuf.Protoc.Generator.Message, as: Generator
test "generate/2 has right name" do
ctx = %Context{package: ""}
desc = Google.Protobuf.DescriptorProto.new(name: "Foo")
[msg] = Gener... | 28.968468 | 97 | 0.540507 |
28f4807aaa13097512523e63834d80813ff58a7a | 517 | ex | Elixir | worker/lib/worker_web/router.ex | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | null | null | null | worker/lib/worker_web/router.ex | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | 9 | 2018-06-30T09:51:19.000Z | 2018-07-03T13:14:47.000Z | worker/lib/worker_web/router.ex | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | null | null | null | defmodule WorkerWeb.Router do
use WorkerWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", WorkerWeb do
pipe_thr... | 19.148148 | 57 | 0.676983 |
28f499b17a76b9c0df55ab13257655837dee1b53 | 2,482 | exs | Elixir | test/gelfx/log_entry_test.exs | sirstrahd/gelfx | 2b42b52f4d15c5f54fb610ac97b1ce10f84ef5ba | [
"Apache-2.0"
] | 5 | 2019-06-25T08:15:35.000Z | 2021-05-14T07:56:55.000Z | test/gelfx/log_entry_test.exs | sirstrahd/gelfx | 2b42b52f4d15c5f54fb610ac97b1ce10f84ef5ba | [
"Apache-2.0"
] | 5 | 2020-10-19T08:03:12.000Z | 2021-12-08T15:21:55.000Z | test/gelfx/log_entry_test.exs | sirstrahd/gelfx | 2b42b52f4d15c5f54fb610ac97b1ce10f84ef5ba | [
"Apache-2.0"
] | 5 | 2020-04-02T01:27:46.000Z | 2021-11-04T13:10:27.000Z | defmodule Gelfx.LogEntryTest do
use ExUnit.Case
import Gelfx.LogEntry
@one_line "Mariaex.Protocol (#PID<0.14976.858>) failed to connect: ** (Mariaex.Error) tcp connect: timeout"
@multi_line ~S"Ranch protocol #PID<0.11579.883> of listener MyApp.Api.Endpoint.HTTP (cowboy_protocol) terminated
** (exit) exited... | 33.093333 | 133 | 0.609589 |
28f4a276e0e04e564b708b1bf9c841f64d5a6f7b | 30,981 | ex | Elixir | lib/elixir/lib/list.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/list.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/list.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | defmodule List do
@moduledoc """
Functions that work on (linked) lists.
Many of the functions provided for lists, which implement
the `Enumerable` protocol, are found in the `Enum` module.
Additionally, the following functions and operators for lists are
found in `Kernel`:
* `++/2`
* `--/2`
*... | 25.646523 | 104 | 0.611213 |
28f4d67f13d72bc96b24f0a69145647ac4c5c326 | 564 | ex | Elixir | elixir/scrap_preview/lib/scrap/behaviour/web_crawler.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/scrap_preview/lib/scrap/behaviour/web_crawler.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/scrap_preview/lib/scrap/behaviour/web_crawler.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Scrap.Behaviour.WebCrawler do
@moduledoc """
Checks if all web crawler GenServers have all required functions defined.
"""
@type index_job :: {:index_page, atom, String.t}
@type product_job :: {:product_page, atom, String.t}
@type jobs_list :: [index_job | product_job]
@callback initial_queue(... | 33.176471 | 75 | 0.723404 |
28f4ea874366a132b21350f7542260666c246e66 | 3,046 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/public_key.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/public_key.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/public_key.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... | 51.627119 | 746 | 0.72587 |
28f4ff51558dc298c8a6dfe708a072a84b0e3bfa | 160 | ex | Elixir | apps/discovery_api/lib/discovery_api.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/discovery_api/lib/discovery_api.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/discovery_api/lib/discovery_api.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi do
@moduledoc false
def instance(), do: :discovery_api
def prestige_opts(), do: Application.get_env(:prestige, :session_opts)
end
| 22.857143 | 72 | 0.7625 |
28f514f597d88461073a9b1bd7d1371ff7ce1dde | 8,236 | ex | Elixir | lib/skout/yaml/decoder.ex | marcelotto/skout | 89463103ae31d52aee47a513ad83b3ace7cb6afb | [
"MIT"
] | 15 | 2019-09-08T22:35:56.000Z | 2021-07-31T16:14:20.000Z | lib/skout/yaml/decoder.ex | marcelotto/skout | 89463103ae31d52aee47a513ad83b3ace7cb6afb | [
"MIT"
] | 3 | 2019-09-09T10:12:30.000Z | 2020-07-30T10:06:33.000Z | lib/skout/yaml/decoder.ex | marcelotto/skout | 89463103ae31d52aee47a513ad83b3ace7cb6afb | [
"MIT"
] | 3 | 2020-07-21T07:43:21.000Z | 2021-12-26T19:32:28.000Z | defmodule Skout.YAML.Decoder do
@moduledoc false
alias Skout.{Document, Manifest, IriBuilder}
alias RDF.NS.SKOS
alias RDF.IRI
import Skout.Helper
def decode(yaml_string, opts \\ []) do
with {:ok, preamble, body} <- parse_yaml(yaml_string),
{concept_scheme, preamble} <-
(if Keyword... | 30.846442 | 96 | 0.623482 |
28f515a6ed8839e445ad94a2cc061a5d9545005a | 504 | exs | Elixir | test/ultrasonic_test.exs | Tony1928/rpi-grovepi | 35fcf31607904aaff4b766a87e1328ff13866585 | [
"Apache-2.0"
] | null | null | null | test/ultrasonic_test.exs | Tony1928/rpi-grovepi | 35fcf31607904aaff4b766a87e1328ff13866585 | [
"Apache-2.0"
] | null | null | null | test/ultrasonic_test.exs | Tony1928/rpi-grovepi | 35fcf31607904aaff4b766a87e1328ff13866585 | [
"Apache-2.0"
] | null | null | null | defmodule GrovePi.UltrasonicTest do
use ComponentTestCase, async: true
setup %{prefix: prefix} = tags do
{:ok, _} = GrovePi.Ultrasonic.start_link(@pin, prefix: prefix)
{:ok, tags}
end
test "gets distance",
%{prefix: prefix, board: board} do
distance = 20
GrovePi.I2C.add_response(board, <<... | 26.526316 | 74 | 0.674603 |
28f51bbabb2dd31287f6f9c8f6d8362debf72163 | 143 | exs | Elixir | test/ex_termbox/position_test.exs | danielfrey/ex_termbox | e2d90293423e01935a661099a3184d7e65336072 | [
"MIT"
] | null | null | null | test/ex_termbox/position_test.exs | danielfrey/ex_termbox | e2d90293423e01935a661099a3184d7e65336072 | [
"MIT"
] | null | null | null | test/ex_termbox/position_test.exs | danielfrey/ex_termbox | e2d90293423e01935a661099a3184d7e65336072 | [
"MIT"
] | null | null | null | defmodule ExTermbox.PositionTest do
use ExUnit.Case, async: true
alias ExTermbox.Position
doctest ExTermbox.Position, import: true
end
| 17.875 | 42 | 0.79021 |
28f52dd79cd9d20fef171bddbe30753e8f1d71e5 | 1,013 | ex | Elixir | apps/andi/lib/andi/input_schemas/display_names.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 1 | 2020-03-18T21:14:39.000Z | 2020-03-18T21:14:39.000Z | apps/andi/lib/andi/input_schemas/display_names.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi/input_schemas/display_names.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | defmodule Andi.InputSchemas.DisplayNames do
@moduledoc false
@display_names %{
id: "ID",
benefitRating: "Benefit",
contactEmail: "Maintainer Email",
contactName: "Maintainer Name",
dataTitle: "Dataset Title",
description: "Description",
homepage: "Data Homepage URL",
issuedDate: "Re... | 26.657895 | 43 | 0.670286 |
28f53216edcc6da2e1a520a3fb5162415b8b106b | 1,850 | ex | Elixir | lib/plug_session_db_store_web/endpoint.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | 3 | 2021-02-15T13:03:15.000Z | 2022-01-25T11:07:47.000Z | lib/plug_session_db_store_web/endpoint.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | lib/plug_session_db_store_web/endpoint.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | defmodule PlugSessionDbStoreWeb.Endpoint do
@moduledoc false
use Phoenix.Endpoint, otp_app: :plug_session_db_store
max_age = 1_800
# 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 i... | 29.83871 | 97 | 0.734054 |
28f539e24c049c810f319e5657203121a317a9b2 | 1,318 | exs | Elixir | mix.exs | szTheory/plug_secex | 103d2fa5315a2dc3f9229ca4636edc4863f9e067 | [
"Apache-2.0"
] | 23 | 2016-07-17T02:03:04.000Z | 2021-06-07T13:04:23.000Z | mix.exs | szTheory/plug_secex | 103d2fa5315a2dc3f9229ca4636edc4863f9e067 | [
"Apache-2.0"
] | 3 | 2018-09-17T05:28:46.000Z | 2020-11-06T01:37:15.000Z | mix.exs | szTheory/plug_secex | 103d2fa5315a2dc3f9229ca4636edc4863f9e067 | [
"Apache-2.0"
] | 2 | 2019-10-29T18:25:56.000Z | 2020-11-06T01:34:52.000Z | defmodule PlugSecex.Mixfile do
use Mix.Project
def project do
[
app: :plug_secex,
version: "0.2.0",
elixir: "~> 1.2",
description: "A module to insert sensible security headers",
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
cover... | 22.338983 | 77 | 0.555387 |
28f53ddafb46f874bb85abd55e057537d1208983 | 1,086 | exs | Elixir | mix.exs | Betterez/logster | 4ceea3c5cff57e717b1d65c45d19b4e6409dfa44 | [
"MIT"
] | null | null | null | mix.exs | Betterez/logster | 4ceea3c5cff57e717b1d65c45d19b4e6409dfa44 | [
"MIT"
] | null | null | null | mix.exs | Betterez/logster | 4ceea3c5cff57e717b1d65c45d19b4e6409dfa44 | [
"MIT"
] | null | null | null | defmodule Logster.Mixfile do
use Mix.Project
def project do
[app: :logster,
version: "0.6.0",
name: "Logster",
description: "Easily parsable single-line plain text and JSON logger for Plug and Phoenix applications",
package: package(),
source_url: "https://github.com/navinpeiris/logste... | 26.487805 | 109 | 0.578269 |
28f552b27a84e0ae6ccd350ddeeb08e8a6baff49 | 374 | ex | Elixir | priv/templates/brando.install/lib/application_name_web/live_preview.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | priv/templates/brando.install/lib/application_name_web/live_preview.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | priv/templates/brando.install/lib/application_name_web/live_preview.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule <%= application_module %>Web.LivePreview do
use Brando.LivePreview
alias Brando.Pages
preview_target Pages.Page do
layout_module <%= application_module %>Web.LayoutView
view_module <%= application_module %>Web.PageView
view_template fn entry -> entry.template end
template_section fn ent... | 28.769231 | 57 | 0.751337 |
28f55e205b8f1e25f8f9bda46ec3f798ed5167e9 | 6,087 | exs | Elixir | csv_processor.exs | meilab/elixir_csv_analysis | 2bdead2be45d2e11cf35b8a0482a61c8dd38b10c | [
"MIT"
] | null | null | null | csv_processor.exs | meilab/elixir_csv_analysis | 2bdead2be45d2e11cf35b8a0482a61c8dd38b10c | [
"MIT"
] | null | null | null | csv_processor.exs | meilab/elixir_csv_analysis | 2bdead2be45d2e11cf35b8a0482a61c8dd38b10c | [
"MIT"
] | null | null | null | defmodule Csv do
def analyze_all(pathname) do
filenames = File.ls! pathname
filenames
|> Enum.filter(fn name ->
(not String.contains?(name, "txt"))
&& String.contains?(name, "CSV")
end)
|> Enum.map(fn (item) ->
filename = pathname <> "/" <> item
main(filen... | 25.57563 | 162 | 0.541318 |
28f570e1e9ed2dacc29af869f3f86e33f03a7b90 | 682 | ex | Elixir | lib/consul/request.ex | emoragaf/consul-ex | 4ae8f6ea76d48c7fe3177fa8c4897beaebffbc2c | [
"MIT"
] | 48 | 2015-03-27T01:29:57.000Z | 2021-03-02T04:09:49.000Z | lib/consul/request.ex | emoragaf/consul-ex | 4ae8f6ea76d48c7fe3177fa8c4897beaebffbc2c | [
"MIT"
] | 7 | 2015-03-11T20:44:33.000Z | 2019-03-13T09:02:52.000Z | lib/consul/request.ex | emoragaf/consul-ex | 4ae8f6ea76d48c7fe3177fa8c4897beaebffbc2c | [
"MIT"
] | 29 | 2015-03-11T20:41:26.000Z | 2020-07-01T05:02:01.000Z | #
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Undead Labs, LLC
#
defmodule Consul.Request do
use HTTPoison.Base
def process_url(url) do
case String.downcase(url) do
<<"http://"::utf8, _::binary>> ->
url
<<"https://"::utf8, _::binary>> ->
url
_ ->
Path.join("ht... | 16.238095 | 52 | 0.560117 |
28f5a8af95157602287d0a7e7050f9a60ecabc2f | 805 | exs | Elixir | mix.exs | sobolevn/daat | a8320fba98622ee8408d2f474c25a40c975a604e | [
"MIT"
] | null | null | null | mix.exs | sobolevn/daat | a8320fba98622ee8408d2f474c25a40c975a604e | [
"MIT"
] | null | null | null | mix.exs | sobolevn/daat | a8320fba98622ee8408d2f474c25a40c975a604e | [
"MIT"
] | 1 | 2020-05-10T13:17:03.000Z | 2020-05-10T13:17:03.000Z | defmodule Daat.MixProject do
use Mix.Project
def project do
[
app: :daat,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "Daat",
docs: docs(),
# Hex
description: "Parameterized modules for Elixir... | 17.888889 | 66 | 0.520497 |
28f61951a074c43a19c978d7392f253bd718473d | 257 | ex | Elixir | lib/lv_template.ex | ustrajunior/lv_template | 633c85d8c5810a130bbf24077845dda49e82ca3f | [
"MIT"
] | null | null | null | lib/lv_template.ex | ustrajunior/lv_template | 633c85d8c5810a130bbf24077845dda49e82ca3f | [
"MIT"
] | null | null | null | lib/lv_template.ex | ustrajunior/lv_template | 633c85d8c5810a130bbf24077845dda49e82ca3f | [
"MIT"
] | null | null | null | defmodule LvTemplate do
@moduledoc """
LvTemplate keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
28f61f0f27d758266bbb46d5bfa928639d7a8c29 | 2,237 | ex | Elixir | lib/types/datetime.ex | aforward-oss/timex_ecto | 40c7f0863b9bffab9ce81129b45eec694f66382e | [
"MIT"
] | null | null | null | lib/types/datetime.ex | aforward-oss/timex_ecto | 40c7f0863b9bffab9ce81129b45eec694f66382e | [
"MIT"
] | null | null | null | lib/types/datetime.ex | aforward-oss/timex_ecto | 40c7f0863b9bffab9ce81129b45eec694f66382e | [
"MIT"
] | null | null | null | defmodule Timex.Ecto.DateTime do
@moduledoc """
Support for using Timex with :datetime fields
"""
use Timex
@behaviour Ecto.Type
def type, do: :datetime
@doc """
We can let Ecto handle blank input
"""
defdelegate blank?(value), to: Ecto.Type
@doc """
Handle casting to Timex.Ecto.DateTime
"... | 31.069444 | 138 | 0.574877 |
28f646f6976f4afba35999b8b9d8d7edcaad0a66 | 2,912 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_webhook_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... | 46.967742 | 265 | 0.752747 |
28f65057609129093c436b924d6eedb58c247b82 | 1,949 | ex | Elixir | lib/oli/analytics/datashop/messages/tutor.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/analytics/datashop/messages/tutor.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/analytics/datashop/messages/tutor.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Analytics.Datashop.Messages.Tutor do
@moduledoc """
<tutor_message context_message_id="mary-smith-MAJOR-ARC-BFD-2-0">
<meta>
<user_id>mary-smith</user_id>
<session_id>6c6d381e-1598-4924-9b60-30dce843e417</session_id>
<time>2006-07-22 12:58:50 EST</time>
<time_zon... | 30.936508 | 130 | 0.655208 |
28f6c2bbfd26817ca37d61f9d366b5772a40fa8d | 1,780 | exs | Elixir | mix.exs | nitros12/formex_ecto | 320937c1a99242c62d646da57ca25b05713d81c8 | [
"MIT"
] | 1 | 2018-09-16T18:49:49.000Z | 2018-09-16T18:49:49.000Z | mix.exs | nitros12/formex_ecto | 320937c1a99242c62d646da57ca25b05713d81c8 | [
"MIT"
] | null | null | null | mix.exs | nitros12/formex_ecto | 320937c1a99242c62d646da57ca25b05713d81c8 | [
"MIT"
] | null | null | null | defmodule Formex.Ecto.Mixfile do
use Mix.Project
def project do
[
app: :formex_ecto,
version: "0.2.4",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
d... | 26.176471 | 92 | 0.548315 |
28f70548e51182ef7bf807f99516d4fde109947d | 2,445 | exs | Elixir | test/controllers/payment_controller_test.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | 1 | 2016-02-04T17:16:54.000Z | 2016-02-04T17:16:54.000Z | test/controllers/payment_controller_test.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | test/controllers/payment_controller_test.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | defmodule BasicBooks.PaymentControllerTest do
use BasicBooks.ConnCase
alias BasicBooks.Payment
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, payment_path(conn, :index)
assert html_response(conn, 200) =~ "Listing payments"... | 36.492537 | 98 | 0.694888 |
28f70ff6ed8f21a99c663ea415d7419cc72f0b11 | 637 | ex | Elixir | lib/scheduler_sup.ex | chashu-code/job-scheduler | 9e96e242acecae2ec9d16af9177c00d6fa226c8a | [
"MIT"
] | 1 | 2015-11-24T09:22:40.000Z | 2015-11-24T09:22:40.000Z | lib/scheduler_sup.ex | chashu-code/job-scheduler | 9e96e242acecae2ec9d16af9177c00d6fa226c8a | [
"MIT"
] | null | null | null | lib/scheduler_sup.ex | chashu-code/job-scheduler | 9e96e242acecae2ec9d16af9177c00d6fa226c8a | [
"MIT"
] | null | null | null | defmodule Job.SchedulerSup do
use Supervisor
def start_link(opts \\ [name: :job_scheduler_sup]) do
Supervisor.start_link(__MODULE__, [], opts)
end
def init(_conf) do
schedule_ls = Application.get_env :job_scheduler, :scheduler, []
children = Enum.map schedule_ls, fn ({name, info}) ->
id = S... | 21.233333 | 68 | 0.588697 |
28f711594fc5a6473a85842f454a9432e6c3a645 | 7,639 | ex | Elixir | lib/amqp/helper.ex | OpenMatchmaking/spotter | d4680b14074991811623147cc4c4bf73c95b3090 | [
"BSD-3-Clause"
] | null | null | null | lib/amqp/helper.ex | OpenMatchmaking/spotter | d4680b14074991811623147cc4c4bf73c95b3090 | [
"BSD-3-Clause"
] | 1 | 2018-09-03T15:50:45.000Z | 2018-11-29T07:37:19.000Z | lib/amqp/helper.ex | OpenMatchmaking/spotter | d4680b14074991811623147cc4c4bf73c95b3090 | [
"BSD-3-Clause"
] | null | null | null | defmodule Spotter.AMQP.Connection.Helper do
@moduledoc """
Helper functions to manage connections with AMQP.
This module produces verbose debug logs.
"""
use AMQP
require Logger
# Default settings for AMQP connection.
@defaults [
username: {:system, "SPOTTER_AMQP_USERNAME", "guest"},
password:... | 36.725962 | 120 | 0.653096 |
28f7204598a0c0c400fb2cb1b1f08f9dc193e7a5 | 1,063 | ex | Elixir | lib/mix/lib/mix/tasks/loadconfig.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/lib/mix/tasks/loadconfig.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/loadconfig.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Loadconfig do
use Mix.Task
@shortdoc "Loads and persists the given configuration"
@moduledoc """
Loads and persists the given configuration.
If no configuration file is given, it loads the project's
configuration file, "config/config.exs", if it exists. Keep in mind that
the "config... | 24.159091 | 91 | 0.678269 |
28f77a548f20d6eedc78d84153a51b2ebbe9f9d9 | 328 | exs | Elixir | benchmark.exs | technicalcapt/furlex | 361a8cd76a666e9e9a504ca4d0ab3b3154d63e8d | [
"Apache-2.0"
] | null | null | null | benchmark.exs | technicalcapt/furlex | 361a8cd76a666e9e9a504ca4d0ab3b3154d63e8d | [
"Apache-2.0"
] | null | null | null | benchmark.exs | technicalcapt/furlex | 361a8cd76a666e9e9a504ca4d0ab3b3154d63e8d | [
"Apache-2.0"
] | 1 | 2019-12-12T07:21:31.000Z | 2019-12-12T07:21:31.000Z | ## Parsers
### Vimeo
vimeo = File.read!("./test/fixtures/vimeo.html")
Benchee.run(%{
"facebook" => fn -> Furlex.Parser.Facebook.parse(vimeo) end,
"twitter" => fn -> Furlex.Parser.Twitter.parse(vimeo) end,
"json_ld" => fn -> Furlex.Parser.JsonLD.parse(vimeo) end,
"html" => fn -> Furlex.Parser.HTML.parse(vimeo)... | 27.333333 | 62 | 0.655488 |
28f7962c507ab1c077e60e4ac7a74c4a7e4c0cf7 | 823 | ex | Elixir | debian/watch.ex | vnz/carbon-c-relay | 58370a002b7c0d83a656e2bb12c6698277a08aad | [
"Apache-2.0"
] | null | null | null | debian/watch.ex | vnz/carbon-c-relay | 58370a002b7c0d83a656e2bb12c6698277a08aad | [
"Apache-2.0"
] | null | null | null | debian/watch.ex | vnz/carbon-c-relay | 58370a002b7c0d83a656e2bb12c6698277a08aad | [
"Apache-2.0"
] | null | null | null | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.co... | 34.291667 | 70 | 0.720535 |
28f7aefe106d9202780fb300b912b6e9c56e1ffb | 325 | ex | Elixir | lib/incendium/view.ex | tmbb/incendium | e95beb23c2d5916c99fd098e290c334eaf1dbd63 | [
"MIT"
] | 10 | 2021-07-05T01:37:11.000Z | 2022-01-22T19:31:30.000Z | lib/incendium/view.ex | tmbb/incendium | e95beb23c2d5916c99fd098e290c334eaf1dbd63 | [
"MIT"
] | 1 | 2021-07-16T11:30:17.000Z | 2021-07-16T11:30:17.000Z | lib/incendium/view.ex | tmbb/incendium | e95beb23c2d5916c99fd098e290c334eaf1dbd63 | [
"MIT"
] | null | null | null | defmodule Incendium.View do
@moduledoc false
# Helpers to render pages in the IncendiumController.
alias Incendium.Assets
@external_resource "#{__DIR__}/templates/latest-flamegraph.html.eex"
use Phoenix.View,
root: "#{__DIR__}/templates",
path: ""
def extra_css() do
Assets.extra_css()
end... | 18.055556 | 70 | 0.710769 |
28f7b6b12ae6cba4c3740f59bb4f5bc48504acc1 | 683 | exs | Elixir | test/cforum/jobs/user_mailer_job_test.exs | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | test/cforum/jobs/user_mailer_job_test.exs | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | test/cforum/jobs/user_mailer_job_test.exs | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule Cforum.Jobs.UserMailerJobTest do
use Cforum.DataCase, async: true
import Swoosh.TestAssertions
setup do
user = insert(:user)
{:ok, user: user}
end
test "it sends a reset password mail", %{user: user} do
Cforum.Jobs.UserMailerJob.enqueue(user, "reset_password")
assert %{success: 1,... | 29.695652 | 71 | 0.698389 |
28f7b9033f9ef721bd613f6b3a3026aaee0a4bfe | 295 | exs | Elixir | priv/repo/migrations/20210330103042_add_tag_list_to_articles.exs | mihkelal/mihkels-elixir-phoenix-realworld-example-app | f241093522b394c816e7bab8ccf5f18fdd854ac6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210330103042_add_tag_list_to_articles.exs | mihkelal/mihkels-elixir-phoenix-realworld-example-app | f241093522b394c816e7bab8ccf5f18fdd854ac6 | [
"MIT"
] | 4 | 2021-03-23T19:01:21.000Z | 2021-03-30T18:27:24.000Z | priv/repo/migrations/20210330103042_add_tag_list_to_articles.exs | mihkelal/mihkels-elixir-phoenix-realworld-example-app | f241093522b394c816e7bab8ccf5f18fdd854ac6 | [
"MIT"
] | null | null | null | defmodule RealWorld.Repo.Migrations.AddTaglistToArticles do
use Ecto.Migration
def change do
alter table(:articles) do
add(:tag_list, {:array, :string}, default: [], null: false)
end
execute("CREATE INDEX article_tag_list_index ON articles USING GIN(taglist)")
end
end
| 24.583333 | 81 | 0.722034 |
28f7c3332b53b1537d4872bcd42f7ea9d8f62ac1 | 102 | exs | Elixir | samples/phoenix_wobserver/test/web/views/layout_view_test.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | 11 | 2017-05-05T12:28:35.000Z | 2020-02-26T09:16:10.000Z | samples/phoenix_wobserver/test/web/views/layout_view_test.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | null | null | null | samples/phoenix_wobserver/test/web/views/layout_view_test.exs | IanLuites/wobserver-elixirconf-2017 | 86a56a392a5877d2d9a51dc7fbd7e0d8b576c711 | [
"MIT"
] | null | null | null | defmodule PhoenixWobserver.Web.LayoutViewTest do
use PhoenixWobserver.Web.ConnCase, async: true
end
| 25.5 | 48 | 0.843137 |
28f7e2889fe74c2cd521ea8c16e606f11d56199a | 446 | ex | Elixir | lib/inmana/supplies/expiration_notification.ex | alexfariac/inmana | 8ff51040c7c4902ef7a62b129373e5cad054c275 | [
"MIT"
] | null | null | null | lib/inmana/supplies/expiration_notification.ex | alexfariac/inmana | 8ff51040c7c4902ef7a62b129373e5cad054c275 | [
"MIT"
] | null | null | null | lib/inmana/supplies/expiration_notification.ex | alexfariac/inmana | 8ff51040c7c4902ef7a62b129373e5cad054c275 | [
"MIT"
] | null | null | null | defmodule Inmana.Supplies.ExpirationNotification do
alias Inmana.Mailer
alias Inmana.Supplies.ExpirationEmail
alias Inmana.Supplies.GetByExpiration
def send do
GetByExpiration.call()
|> Task.async_stream(fn {to_email, supplies} -> send_email(to_email, supplies) end)
|> Stream.run()
end
defp se... | 24.777778 | 87 | 0.737668 |
28f7f194c6bd7066699d9e416544b782a8d98ed3 | 349 | exs | Elixir | config/test.exs | Vandise/styx | ca1224830c0c6052efb05748cf6e18670eae4400 | [
"MIT"
] | null | null | null | config/test.exs | Vandise/styx | ca1224830c0c6052efb05748cf6e18670eae4400 | [
"MIT"
] | null | null | null | config/test.exs | Vandise/styx | ca1224830c0c6052efb05748cf6e18670eae4400 | [
"MIT"
] | null | null | null | use Mix.Config
config :styx, Styx.Zookeeper,
namespace: Test.Support.Workers,
namespace_depth: 3,
host: "192.168.99.100",
port: 2181
config :styx, Styx.SchemaRegistry,
host: "http://192.168.99.100",
port: 8081
config :kafka_ex,
# a list of brokers to connect to in {"HOST", port} format
brokers: [
... | 20.529412 | 60 | 0.667622 |
28f7f4aa34b80e92a14b62a2d213dd191317e88b | 77 | exs | Elixir | config/host.exs | nerves-build/tlc59116 | 6a6a097d1baef701b6c5473a971fc1482a99abcc | [
"MIT"
] | null | null | null | config/host.exs | nerves-build/tlc59116 | 6a6a097d1baef701b6c5473a971fc1482a99abcc | [
"MIT"
] | null | null | null | config/host.exs | nerves-build/tlc59116 | 6a6a097d1baef701b6c5473a971fc1482a99abcc | [
"MIT"
] | null | null | null | use Mix.Config
config :tlc59116, Tlc59116, i2c_handler: Tlc59116.MockI2CPin
| 19.25 | 60 | 0.818182 |
28f8035bd097f2f1a2d9a5dd2f991069b949d8cc | 167 | ex | Elixir | lib/rediscl/util/query_test_struct.ex | yusuf-demir/elixir-rediscl | 94add4947502399f21b82dab7921d7acd6e22188 | [
"MIT"
] | 14 | 2018-07-21T14:09:25.000Z | 2021-08-28T14:10:46.000Z | lib/rediscl/util/query_test_struct.ex | yusuf-demir/elixir-rediscl | 94add4947502399f21b82dab7921d7acd6e22188 | [
"MIT"
] | 2 | 2018-07-29T16:04:24.000Z | 2021-08-28T14:11:55.000Z | lib/rediscl/util/query_test_struct.ex | yusuf-demir/elixir-rediscl | 94add4947502399f21b82dab7921d7acd6e22188 | [
"MIT"
] | 3 | 2019-02-17T18:56:25.000Z | 2021-08-28T13:47:02.000Z | defmodule Rediscl.QueryTestStruct do
@moduledoc """
Test Struct
"""
@derive {Jason.Encoder, only: [:key, :value]}
defstruct [
:key,
:value
]
end
| 15.181818 | 47 | 0.610778 |
28f805425f5bb8f93d2ef629f6b8c039b8d7be83 | 2,160 | ex | Elixir | lib/credo/cli/output/ui.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/cli/output/ui.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/cli/output/ui.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Output.UI do
@edge "┃"
@ellipsis "…"
@shell_service Credo.CLI.Output.Shell
if Mix.env() == :test do
def puts, do: nil
def puts(_), do: nil
def puts(_, color) when is_atom(color), do: nil
def warn(_), do: nil
else
defdelegate puts, to: @shell_service
defdelegate pu... | 25.411765 | 95 | 0.6 |
28f805e70f4005e5a2c5eafe968a596835c4cd25 | 136 | exs | Elixir | config/prod.exs | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | null | null | null | config/prod.exs | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | 2 | 2021-03-10T22:00:43.000Z | 2021-05-11T17:17:30.000Z | config/prod.exs | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | null | null | null | use Mix.Config
config :ergo, ErgoWeb.Endpoint,
ache_static_manifest: "priv/static/cache_manifest.json"
config :logger, level: :info
| 19.428571 | 57 | 0.779412 |
28f80a1e33952d18715ba508fcfb222b56fb1529 | 3,144 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/operation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/model/operation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/model/operation.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... | 53.288136 | 543 | 0.71883 |
28f827220c471da5c8d1e75777c7f57b689ddbb4 | 1,938 | ex | Elixir | clients/os_login/lib/google_api/os_login/v1/model/ssh_public_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/os_login/lib/google_api/os_login/v1/model/ssh_public_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/os_login/lib/google_api/os_login/v1/model/ssh_public_key.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... | 34.607143 | 120 | 0.702786 |
28f832a9a82f1dfdad1e48792c8bf2288a6d52de | 931 | exs | Elixir | backend/config/config.exs | hbobenicio/fullstack-phoenix-vue | a81804e263a3972df222a306c876340755014ef9 | [
"MIT"
] | null | null | null | backend/config/config.exs | hbobenicio/fullstack-phoenix-vue | a81804e263a3972df222a306c876340755014ef9 | [
"MIT"
] | 1 | 2017-12-22T18:00:24.000Z | 2017-12-22T18:00:24.000Z | backend/config/config.exs | hbobenicio/fullstack-phoenix-vue | a81804e263a3972df222a306c876340755014ef9 | [
"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
# General application configuration
config :backend,
ecto_repos: [Backend.Repo]
# ... | 33.25 | 86 | 0.762621 |
28f83716e273d2d5db6aec51f717aff7a3a38fd7 | 136 | ex | Elixir | test/support/web/commanders/shared3_commander.ex | elixir-twister/drab | dd32512cd4be2e3f5cd2ed8e0632f79bea88ed1e | [
"MIT"
] | null | null | null | test/support/web/commanders/shared3_commander.ex | elixir-twister/drab | dd32512cd4be2e3f5cd2ed8e0632f79bea88ed1e | [
"MIT"
] | null | null | null | test/support/web/commanders/shared3_commander.ex | elixir-twister/drab | dd32512cd4be2e3f5cd2ed8e0632f79bea88ed1e | [
"MIT"
] | null | null | null | defmodule DrabTestApp.Shared3Commander do
@moduledoc false
use Drab.Commander
defhandler button_clicked(_socket, _) do
end
end
| 17 | 42 | 0.794118 |
28f841856565a4742d4bb7929703a8010b22e625 | 1,198 | ex | Elixir | lib/your_sanctuary/application.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 2 | 2018-10-23T13:30:00.000Z | 2018-10-24T14:32:52.000Z | lib/your_sanctuary/application.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 60 | 2018-10-23T13:39:19.000Z | 2019-02-11T14:18:01.000Z | lib/your_sanctuary/application.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | null | null | null | defmodule YourSanctuary.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# import env variables from .env file
unless Mix.env() == :prod do
Envy.auto_load()
Envy.... | 31.526316 | 91 | 0.711185 |
28f84946b07b207d3f1a00c9aba7f6c85e084c40 | 108 | exs | Elixir | .formatter.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | .formatter.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | .formatter.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | 1 | 2021-01-12T00:55:56.000Z | 2021-01-12T00:55:56.000Z | # Used by "mix format"
[
inputs: ["mix.exs", "{config,lib,test,priv}/**/*.{ex,exs}"],
line_length: 80
]
| 18 | 62 | 0.574074 |
28f849c8f4ce8322588fafbc4d8354cb28879f56 | 1,291 | ex | Elixir | lib/urkel/plugin/admin.ex | jrdnull/urkel | 08df98bb05df436e64154e6877e5ebadcef312de | [
"MIT"
] | 1 | 2021-02-27T19:16:05.000Z | 2021-02-27T19:16:05.000Z | lib/urkel/plugin/admin.ex | jrdnull/urkel | 08df98bb05df436e64154e6877e5ebadcef312de | [
"MIT"
] | null | null | null | lib/urkel/plugin/admin.ex | jrdnull/urkel | 08df98bb05df436e64154e6877e5ebadcef312de | [
"MIT"
] | null | null | null | defmodule Urkel.Plugin.Admin do
use Urkel.Plugin.Mixin
@password "password" # TODO: use Mix.config instead
def init(_), do: Agent.start_link(fn -> [] end, name: __MODULE__)
def handle(pid, msg = %Message{command: "PRIVMSG", trailing: text}) do
target = msg |> Irc.get_target
cond do
text =~ ~r/^... | 28.065217 | 74 | 0.59024 |
28f84ae2aa94eb7426f0b19f38af71e590945318 | 6,373 | ex | Elixir | lib/purple_web/live/finance_live/index.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple_web/live/finance_live/index.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple_web/live/finance_live/index.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | defmodule PurpleWeb.FinanceLive.Index do
use PurpleWeb, :live_view
import PurpleWeb.FinanceLive.FinanceHelpers
alias Purple.Finance
alias Purple.Finance.{Transaction, Merchant, PaymentMethod}
defp apply_action(socket, :edit_transaction, %{"id" => id}) do
socket
|> assign(:page_title, "Edit Transact... | 29.50463 | 93 | 0.590617 |
28f874d325a7bf3c34efd26b3eb0e4f755d5874e | 1,484 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_access_control.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_access_control.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/resource_access_control.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.574468 | 104 | 0.747305 |
28f87bffe40f0bb319f6659de563623ca301f25f | 1,727 | exs | Elixir | practice/exercism/exercism-demo/elixir/bob/bob_test.exs | tspires/personal | 7444621203e405739e02595a3c0b85b3fd63e894 | [
"MIT"
] | null | null | null | practice/exercism/exercism-demo/elixir/bob/bob_test.exs | tspires/personal | 7444621203e405739e02595a3c0b85b3fd63e894 | [
"MIT"
] | null | null | null | practice/exercism/exercism-demo/elixir/bob/bob_test.exs | tspires/personal | 7444621203e405739e02595a3c0b85b3fd63e894 | [
"MIT"
] | null | null | null | if System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("example.exs")
else
Code.load_file("bob.exs")
end
ExUnit.start
defmodule TeenagerTest do
use ExUnit.Case, async: true
doctest Teenager
test "stating something" do
assert Teenager.hey("Tom-ay-to, tom-aaaah-to.") == "Whatever."
end
test "... | 24.671429 | 96 | 0.645628 |
28f8b2381817f772d986d4d6e23ad4f382a8be7f | 884 | ex | Elixir | apps/gitgud/lib/gitgud/schemas/issue_label.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/schemas/issue_label.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/schemas/issue_label.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | defmodule GitGud.IssueLabel do
@moduledoc """
Issue label schema and helper functions.
"""
use Ecto.Schema
alias GitGud.Repo
import Ecto.Changeset
schema "issue_labels" do
belongs_to :repo, Repo
field :name, :string
field :description, :string
field :color, :binary
timestamps()
e... | 21.047619 | 60 | 0.647059 |
28f8ff4834f808fafab3e82378f801aa8dbc2e3a | 2,818 | ex | Elixir | lib/cert.ex | aforward/acme_ex | f199943be6a75e0e4672a64dc4820dfc15abf330 | [
"MIT"
] | 1 | 2020-02-01T19:30:44.000Z | 2020-02-01T19:30:44.000Z | lib/cert.ex | aforward/acme_ex | f199943be6a75e0e4672a64dc4820dfc15abf330 | [
"MIT"
] | null | null | null | lib/cert.ex | aforward/acme_ex | f199943be6a75e0e4672a64dc4820dfc15abf330 | [
"MIT"
] | null | null | null | defmodule AcmeEx.Cert do
def generate!(request, id) do
try do
request
|> generate(id)
|> (& &1.crt).()
|> File.read!()
after
clean(id)
end
end
def generate(request, {order, _account} = id) do
id
|> files()
|> (fn files ->
File.write!(files.index, ""... | 22.910569 | 90 | 0.555358 |
28f91e98e873d1e46e82c9c3dae18cabc2739ef4 | 7,809 | exs | Elixir | test/simple_markdown_lazy_renderer_html_test.exs | ScrimpyCat/SimpleMarkdownEx | 30f04a4defd3235c4a150589cb0d4189caf7481f | [
"BSD-2-Clause"
] | 5 | 2016-04-16T00:01:27.000Z | 2018-06-27T06:06:21.000Z | test/simple_markdown_lazy_renderer_html_test.exs | ScrimpyCat/SimpleMarkdownEx | 30f04a4defd3235c4a150589cb0d4189caf7481f | [
"BSD-2-Clause"
] | 1 | 2020-06-24T03:49:32.000Z | 2020-06-24T03:49:32.000Z | test/simple_markdown_lazy_renderer_html_test.exs | ScrimpyCat/SimpleMarkdownEx | 30f04a4defd3235c4a150589cb0d4189caf7481f | [
"BSD-2-Clause"
] | 1 | 2020-06-23T09:06:56.000Z | 2020-06-23T09:06:56.000Z | defmodule SimpleMarkdownLazyRendererHTMLTest do
use ExUnit.Case
test "rendering line break" do
assert "<br>" == [{ :line_break, [] }] |> SimpleMarkdown.ast_to_structs |> SimpleMarkdown.LazyRenderer.HTML.render |> Enum.join
end
test "rendering header" do
assert "<h1>test</h1>" == [{ :he... | 83.967742 | 646 | 0.617877 |
28f9222223d16646c12af4b78828b39d6e8f3b96 | 61,076 | ex | Elixir | lib/timex.ex | gchapim/timex | 628d9dbd49de88f93500490f4cd6e323da7f6797 | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | lib/timex.ex | gchapim/timex | 628d9dbd49de88f93500490f4cd6e323da7f6797 | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | lib/timex.ex | gchapim/timex | 628d9dbd49de88f93500490f4cd6e323da7f6797 | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule Timex do
@moduledoc File.read!("README.md")
use Application
@doc false
def start(_type, _args) do
apps = Application.started_applications()
tzdata_started? = Enum.find(apps, &(elem(&1, 0) == :tzdata)) != nil
cond do
tzdata_started? ->
case Calendar.get_time_zone_database()... | 30.971602 | 129 | 0.63958 |
28f93c427ef7f76193f6c2a1204c138855ed4460 | 4,451 | exs | Elixir | .credo.exs | lobo-tuerto/slime | 37e64cc0ad31e0c9e6a9d8cd3bfe290cfda5897a | [
"MIT"
] | 1 | 2021-04-15T00:39:21.000Z | 2021-04-15T00:39:21.000Z | .credo.exs | lobo-tuerto/slime | 37e64cc0ad31e0c9e6a9d8cd3bfe290cfda5897a | [
"MIT"
] | null | null | null | .credo.exs | lobo-tuerto/slime | 37e64cc0ad31e0c9e6a9d8cd3bfe290cfda5897a | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.463636 | 81 | 0.660076 |
28f9421f54caa99bd86e8d84d3a88e12fabcc060 | 79,092 | exs | Elixir | test/ecto/adapters/postgres_test.exs | kevinlang/ecto_sql | 1952ce2604419816f327833df858f0125eba5201 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | kevinlang/ecto_sql | 1952ce2604419816f327833df858f0125eba5201 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | kevinlang/ecto_sql | 1952ce2604419816f327833df858f0125eba5201 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.PostgresTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Queryable
alias Ecto.Adapters.Postgres.Connection, as: SQL
defmodule Schema do
use Ecto.Schema
schema "schema" do
field :x, :integer
field :y, :integer
field :z, :integer
field... | 44.358946 | 176 | 0.576531 |
28f96efb7d4b8c1cb3cd8ab5f0d095a5fc23a2a6 | 3,912 | ex | Elixir | lib/stripe/converter.ex | neneboe/stripity_stripe | e86be7cd8f19dd208ee3cb7d9bd6165be3e71f17 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/converter.ex | neneboe/stripity_stripe | e86be7cd8f19dd208ee3cb7d9bd6165be3e71f17 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/converter.ex | neneboe/stripity_stripe | e86be7cd8f19dd208ee3cb7d9bd6165be3e71f17 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Converter do
@doc """
Takes a result map or list of maps from a Stripe response and returns a
struct (e.g. `%Stripe.Card{}`) or list of structs.
If the result is not a supported Stripe object, it just returns a plain map
with atomized keys.
"""
@spec convert_result(%{String.t() => any})... | 23.709091 | 88 | 0.644939 |
28f976210b944d46b02cc929ea2034259ae2bc30 | 1,251 | ex | Elixir | lib/wobserver/system/statistics.ex | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | null | null | null | lib/wobserver/system/statistics.ex | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | null | null | null | lib/wobserver/system/statistics.ex | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | 1 | 2018-09-12T16:13:57.000Z | 2018-09-12T16:13:57.000Z | defmodule Wobserver.System.Statistics do
@moduledoc ~S"""
Handles system statistics.
"""
@typedoc ~S"""
System statistics.
"""
@type t :: %__MODULE__{
uptime: integer,
process_running: integer,
process_total: integer,
process_max: integer,
input: integer,... | 18.954545 | 51 | 0.565148 |
28f9917ae7869614dc1dba1ae36e5d622562f931 | 4,371 | ex | Elixir | apps/omg_api/test/support/test_helper.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/test/support/test_helper.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/test/support/test_helper.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 35.827869 | 119 | 0.623198 |
28f9d5b946ace3de7def61ed14f61653a5e3e3c8 | 4,354 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/consumer_config.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/consumer_config.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/consumer_config.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.097561 | 292 | 0.743225 |
28f9dde0a428f40469bafbd69e9b09a4a6d6a041 | 277 | exs | Elixir | test/channels/user_socket_test.exs | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | test/channels/user_socket_test.exs | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | test/channels/user_socket_test.exs | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | defmodule LoopsWithFriends.UserSocketTest do
use LoopsWithFriends.ChannelCase, async: true
alias LoopsWithFriends.UserSocket
test "`connect` assigns a UUID" do
assert {:ok, socket} = connect(UserSocket, %{})
assert UUID.info!(socket.assigns.user_id)
end
end
| 23.083333 | 51 | 0.747292 |
28f9e14163307cd554df38c7bd992cc1789fe438 | 1,558 | exs | Elixir | mix.exs | IvanShpotenko/stash | f32dc563f39b285e90cf0a4876d2388d65f5f1d7 | [
"MIT"
] | 1 | 2018-11-29T12:16:12.000Z | 2018-11-29T12:16:12.000Z | mix.exs | IvanShpotenko/stash | f32dc563f39b285e90cf0a4876d2388d65f5f1d7 | [
"MIT"
] | null | null | null | mix.exs | IvanShpotenko/stash | f32dc563f39b285e90cf0a4876d2388d65f5f1d7 | [
"MIT"
] | null | null | null | defmodule Stash.Mixfile do
use Mix.Project
@url_docs "http://hexdocs.pm/stash"
@url_github "https://github.com/zackehh/stash"
def project do
[
app: :stash,
name: "Stash",
description: "Simple ETS backed key/value store for Elixir",
package: %{
files: [
"lib",
... | 23.969231 | 77 | 0.517972 |
28f9f6105618377e2ffbcef0c1e999b3dac52cb4 | 367 | ex | Elixir | lib/upload/application.ex | arkgil/raxx_upload_example | f9c31141f54c92d07af9d7b185b95002eb59ba0f | [
"Apache-2.0"
] | null | null | null | lib/upload/application.ex | arkgil/raxx_upload_example | f9c31141f54c92d07af9d7b185b95002eb59ba0f | [
"Apache-2.0"
] | 3 | 2018-05-02T12:48:51.000Z | 2018-05-20T22:07:01.000Z | lib/upload/application.ex | arkgil/raxx_upload_example | f9c31141f54c92d07af9d7b185b95002eb59ba0f | [
"Apache-2.0"
] | 3 | 2018-05-02T12:25:50.000Z | 2018-05-02T23:02:33.000Z | defmodule Upload.Application do
@moduledoc false
use Application
def start(_type, _args) do
port = Application.fetch_env!(:upload, :port)
children = [
{Ace.HTTP.Service, [{Upload.Router, []}, [port: port, cleartext: true]]}
]
opts = [strategy: :one_for_one, name: Upload.Supervisor]
S... | 21.588235 | 78 | 0.6703 |
28fa21c5eb1cba824e2f3323e85f5f203818db26 | 1,131 | exs | Elixir | config/config.exs | techgaun/influx_ecto | db19e3c17b80b429e6860e4434dd02529bccf512 | [
"Apache-2.0"
] | null | null | null | config/config.exs | techgaun/influx_ecto | db19e3c17b80b429e6860e4434dd02529bccf512 | [
"Apache-2.0"
] | null | null | null | config/config.exs | techgaun/influx_ecto | db19e3c17b80b429e6860e4434dd02529bccf512 | [
"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.
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.483871 | 73 | 0.753316 |
28fa489aa72a98ab14c6e83b92d65b24c4aa87fd | 554 | ex | Elixir | lib/baambook_web.ex | AzazKamaz/baambook | ef69a0bbdbc1753eca0a6fa278562a7dc5e5d81b | [
"Unlicense"
] | 12 | 2021-09-24T17:45:26.000Z | 2021-10-15T22:13:57.000Z | lib/baambook_web.ex | AzazKamaz/baambook | ef69a0bbdbc1753eca0a6fa278562a7dc5e5d81b | [
"Unlicense"
] | 1 | 2021-10-10T12:49:16.000Z | 2021-10-10T12:49:16.000Z | lib/baambook_web.ex | AzazKamaz/baambook | ef69a0bbdbc1753eca0a6fa278562a7dc5e5d81b | [
"Unlicense"
] | null | null | null | defmodule BaambookWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use BaambookWeb, :controller
use BaambookWeb, :view
The definitions below will be executed for every view,
controlle... | 27.7 | 56 | 0.741877 |
28fa5a71711d98f5dbef03f3bd882a75039aef60 | 301 | ex | Elixir | lib/nomex/sentinel.ex | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-12-08T17:56:01.000Z | 2022-01-04T00:26:43.000Z | lib/nomex/sentinel.ex | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2017-11-24T18:10:47.000Z | 2017-11-26T17:58:11.000Z | lib/nomex/sentinel.ex | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-20T15:27:13.000Z | 2021-07-20T15:27:13.000Z | defmodule Nomex.Sentinel do
require Nomex
require Nomex.Request
alias Nomex.Request
Nomex.meta_moduledoc("Sentinel Policies", ["https://www.nomadproject.io/api/sentinel-policies.html"])
Request.meta_get :policies, "/sentinel/policies"
Request.meta_get_id :policy, "/sentinel/policy"
end
| 27.363636 | 103 | 0.770764 |
28fa610cadaca3a58bd4ab578a222c62476c29fa | 1,604 | exs | Elixir | programming/elixir/conduit/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule Conduit.Mixfile do
use Mix.Project
def project do
[
app: :conduit,
version: "0.0.1",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: ... | 25.460317 | 90 | 0.510599 |
28fa6810700169851e65342330b59bb079e7c6d4 | 2,017 | ex | Elixir | clients/firebase/lib/google_api/firebase/v1beta1/model/add_google_analytics_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/add_google_analytics_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/add_google_analytics_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.385965 | 135 | 0.735746 |
28fa6860e4e0da953fedd8bd15b72a1e3b4df337 | 854 | ex | Elixir | bowling_game/lib/iteration_01/bowling_game/day11.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/lib/iteration_01/bowling_game/day11.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/lib/iteration_01/bowling_game/day11.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule BowlingGameKata.Day11 do
import Kernel
import Enum
def score(game), do: score(game, 1, 0)
defp score(_, index, score) when index == 11, do: score
defp score(game, index, score) do
cond do
is_strike(game) ->
score(drop(game, 1), index + 1, score + strike_score(game))
is_spa... | 28.466667 | 67 | 0.640515 |
28fa8f2175825295813f10bc919d6ce29cfba5d2 | 1,197 | ex | Elixir | lib/visa_checkout/util.ex | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | lib/visa_checkout/util.ex | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | lib/visa_checkout/util.ex | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | defmodule VisaCheckout.Util do
def api_key do
Application.get_env(:visa_checkout_elixir, :api_key, System.get_env("VISA_CHECKOUT_API_KEY"))
end
def secret do
Application.get_env(:visa_checkout_elixir, :secret, System.get_env("VISA_CHECKOUT_SECRET"))
end
def decrypt_payload(wrapped_key, payload) do
... | 28.5 | 97 | 0.6934 |
28fa985e731776fad9aebe2cdbffe469caa5642c | 100 | ex | Elixir | lib/sema/repo.ex | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 1 | 2020-03-19T13:26:01.000Z | 2020-03-19T13:26:01.000Z | lib/sema/repo.ex | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 6 | 2019-05-29T16:34:19.000Z | 2021-09-01T02:10:43.000Z | lib/sema/repo.ex | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 68 | 2019-05-16T15:40:51.000Z | 2022-03-20T06:30:53.000Z | defmodule Sema.Repo do
use Ecto.Repo,
otp_app: :sema,
adapter: Ecto.Adapters.Postgres
end
| 16.666667 | 35 | 0.71 |
28fae89fd6eeabd8c7828e4d56d43aa4881d7f5a | 655 | exs | Elixir | mix.exs | ratnaprakirana/Bitcoin-Mining-and-Distribution | 05edd17f3d0cea09e6100e547225ecf2ec5cdb47 | [
"MIT"
] | null | null | null | mix.exs | ratnaprakirana/Bitcoin-Mining-and-Distribution | 05edd17f3d0cea09e6100e547225ecf2ec5cdb47 | [
"MIT"
] | null | null | null | mix.exs | ratnaprakirana/Bitcoin-Mining-and-Distribution | 05edd17f3d0cea09e6100e547225ecf2ec5cdb47 | [
"MIT"
] | 1 | 2021-10-16T02:44:36.000Z | 2021-10-16T02:44:36.000Z | defmodule Bitcoin.Mixfile do
use Mix.Project
def project do
[
app: :project4,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env == :prod,
escript: escript(),
deps: deps()
]
end
def escript do
[main_module: Bitcoin.Project4]
end
# Run "mix help co... | 19.264706 | 88 | 0.583206 |
28faf0248a3e2342f2cac038ccdd9044c898676a | 1,108 | ex | Elixir | apps/chain/test/support/chain_helper.ex | vapordao/ex_testchain | 0e954561502ae1ffefe6eb127f716fb350781ad7 | [
"Apache-2.0"
] | 5 | 2018-11-22T18:54:08.000Z | 2021-05-07T18:47:20.000Z | apps/chain/test/support/chain_helper.ex | vapordao/ex_testchain | 0e954561502ae1ffefe6eb127f716fb350781ad7 | [
"Apache-2.0"
] | 29 | 2018-12-04T16:55:01.000Z | 2019-01-29T14:33:26.000Z | apps/chain/test/support/chain_helper.ex | vapordao/ex_testchain | 0e954561502ae1ffefe6eb127f716fb350781ad7 | [
"Apache-2.0"
] | 3 | 2019-01-11T04:40:19.000Z | 2022-03-23T17:31:37.000Z | defmodule Chain.Test.ChainHelper do
@moduledoc """
Helper functions for tests
"""
@doc """
Receive loop for events.
Mainly this function is made for testing receiving notifications
from chain.
For example in test you could spawn a new pid and set it
as notifications receiver.
After that you coul... | 24.086957 | 70 | 0.65343 |
28fb378c312d019b1c2c253c9b7b4c7257338863 | 426 | ex | Elixir | lib/ipgeobase/mean.ex | szTheory/elixir_ipgeobase | e9624b34cb583fb7bac4a6df034f0c069002dfca | [
"MIT"
] | 9 | 2016-05-10T07:52:02.000Z | 2016-08-15T08:27:23.000Z | lib/ipgeobase/mean.ex | szTheory/elixir_ipgeobase | e9624b34cb583fb7bac4a6df034f0c069002dfca | [
"MIT"
] | null | null | null | lib/ipgeobase/mean.ex | szTheory/elixir_ipgeobase | e9624b34cb583fb7bac4a6df034f0c069002dfca | [
"MIT"
] | 1 | 2020-03-03T21:37:19.000Z | 2020-03-03T21:37:19.000Z | defmodule Ipgeobase.Mean do
def set_structure(city,country) do
%Ipgeobase{city: encode(city), country: encode(country)}
end
def mean(response) do
city = Floki.find(response,"city") |> Floki.text
country = Floki.find(response, "country") |> Floki.text
set_structure(city, country)
end
def enc... | 23.666667 | 60 | 0.685446 |
28fbc0e43aa399a1269cca45c94596f74366362f | 1,974 | exs | Elixir | clients/document_ai/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.462687 | 229 | 0.66768 |
28fbd64b6a155ca05abd86ddf1300049354dc128 | 16,288 | ex | Elixir | lib/xema/schema_validator.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | lib/xema/schema_validator.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | lib/xema/schema_validator.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.SchemaValidator do
@moduledoc """
A validator for the schema input.
"""
# credo:disable-for-this-file Credo.Check.Design.DuplicatedCode
alias Xema.{Ref, Schema, SchemaError}
defp schema,
do:
struct(Xema,
refs: %{
"#/definitions/keywords" => %Schema{
... | 34.95279 | 75 | 0.391884 |
28fbd9fcc23e49140b6fa42e1855bdb943bfffe1 | 1,574 | ex | Elixir | lib/tcp_connection.ex | deejay1/logger_logstash_backend | 9033b69139deb37263d1a107a310f1f6d33af0eb | [
"Apache-2.0"
] | 1 | 2018-10-30T15:12:13.000Z | 2018-10-30T15:12:13.000Z | lib/tcp_connection.ex | deejay1/logger_logstash_backend | 9033b69139deb37263d1a107a310f1f6d33af0eb | [
"Apache-2.0"
] | null | null | null | lib/tcp_connection.ex | deejay1/logger_logstash_backend | 9033b69139deb37263d1a107a310f1f6d33af0eb | [
"Apache-2.0"
] | 1 | 2019-10-29T09:53:10.000Z | 2019-10-29T09:53:10.000Z | defmodule LoggerLogstashBackend.TCP.Connection do
use Connection
def start_link(host, port, opts, timeout \\ 5000) do
Connection.start_link(__MODULE__, {host, port, opts, timeout})
end
def send(conn, data), do: Connection.call(conn, {:send, data})
def close(conn), do: Connection.call(conn, :close)
... | 27.137931 | 74 | 0.580686 |
28fc1a841930e177c0495baa789fb8cbb75e9ad9 | 1,015 | ex | Elixir | apps/feedex_core/lib/feedex_core/factory.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_core/lib/feedex_core/factory.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_core/lib/feedex_core/factory.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexCore.Factory do
@moduledoc """
ExMachina test constructors.
"""
use ExMachina.Ecto, repo: FeedexCore.Repo
alias FeedexCore.Ctx.Account.{User, Folder, Register}
alias FeedexCore.Ctx.News.{Feed, Post}
def feed_factory do
%Feed{
url: sequence(:url, &"http://test_dom.com/path_#{&1}... | 21.145833 | 61 | 0.594089 |
28fc215a3836a624aedb4af0c73a34e9d2ca4320 | 648 | exs | Elixir | test/support/test_gen_server.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | test/support/test_gen_server.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | test/support/test_gen_server.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | defmodule Sentry.TestGenServer do
def start_link(pid) do
GenServer.start_link(__MODULE__, pid)
end
def do_throw(pid) do
send(pid, :throw)
end
def bad_exit(pid) do
send(pid, :bad_exit)
end
def invalid_function(pid) do
send(pid, :invalid_function)
end
def init(pid) do
{:ok, pid}... | 15.804878 | 46 | 0.658951 |
28fc2637a3f33878582572281afe65f0d28ae76a | 662 | exs | Elixir | .iex.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 1 | 2019-12-19T14:12:20.000Z | 2019-12-19T14:12:20.000Z | .iex.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | null | null | null | .iex.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 4 | 2019-10-09T20:58:35.000Z | 2021-12-06T23:00:46.000Z | alias Stellar.XDR.Types
ledger_header_data = "AAAACcks7SEfHkDuhjvmvF+gKaINj3tDOa5WM4nJwaN5sMyn1D/Cw44W08u6FCpdM/FQHQ4aeskY9MAlKlq6A/xO1QgAAAAAW2I60gAAAAAAAAAAIlFSBMfJDmczeRK3yru+7i4ES6ft6COlHIPOJfE8FTaOu1onEG4cVZMH2qvVXAMaAjFjS2Qz7RANhJ/R0CQQMACdlSEOc/6udibiZAA/v9/PJqaoAAAA1gAAAAAACJANAAAAZABMS0AAAAAyKM0WUC2QMHCSFH/B9... | 60.181818 | 455 | 0.888218 |
28fc2d1263fa6ba70bb5cd30dd133ce95b45b0c5 | 551 | ex | Elixir | lib/storeHall/users/label.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | lib/storeHall/users/label.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | lib/storeHall/users/label.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHall.Users.Label do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, only: [:id, :item_id, :label]}
schema "user_labels" do
belongs_to :user, StoreHall.Users.User, type: :string
field :item_id, :integer
field :label, :string
timestamps(type: :utc_datetime)
end
... | 25.045455 | 60 | 0.684211 |
28fc39a6403980b1f345ece028295e0a27fd0495 | 4,953 | ex | Elixir | lib/zabbix/api.ex | ileamo/zabbix | 5a8c7c798f264b0d2a5843c473f99c3e88b7940f | [
"MIT"
] | null | null | null | lib/zabbix/api.ex | ileamo/zabbix | 5a8c7c798f264b0d2a5843c473f99c3e88b7940f | [
"MIT"
] | 2 | 2019-10-08T04:17:30.000Z | 2020-05-15T21:22:27.000Z | lib/zabbix/api.ex | ileamo/zabbix | 5a8c7c798f264b0d2a5843c473f99c3e88b7940f | [
"MIT"
] | 1 | 2020-06-09T16:16:03.000Z | 2020-06-09T16:16:03.000Z | defmodule Zabbix.API do
@moduledoc """
Provides simple wrapper to Zabbix API.
## Example usage
### Create client
iex(1)> Zabbix.API.create_client("https://zabbix.example.com")
:ok
### Log in
iex(2)> Zabbix.API.login("elixir", "elixir")
{:ok, "7959e30884cf778cbf693c66c46a382c"}
... | 27.825843 | 118 | 0.597416 |
28fc3a2262106881cfaba318026ef047164041fa | 731 | exs | Elixir | test/16_ticket_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | test/16_ticket_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | test/16_ticket_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | defmodule Advent20.TicketTest do
use ExUnit.Case, async: true
alias Advent20.Ticket
@input "16_ticket.txt" |> Path.expand("input_files") |> File.read!()
describe "1" do
test "unit test" do
input = """
class: 1-3 or 5-7
row: 6-11 or 33-44
seat: 13-40 or 45-50
your ticket:
... | 18.74359 | 70 | 0.592339 |
28fc50e78479c4c0cf1cf3281463a841b853f707 | 6,888 | ex | Elixir | lib/absinthe/type.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/type.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/type.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Type do
@moduledoc false
alias __MODULE__
alias Absinthe.Introspection
# ALL TYPES
@type_modules [Type.Scalar, Type.Object, Type.Interface, Type.Union, Type.Enum, Type.InputObject, Type.List, Type.NonNull]
@typedoc "These are all of the possible kinds of types."
@type t :: Type.Sc... | 30.75 | 157 | 0.691202 |
28fc5a01dde313f8b2b0a8b739558704309a6984 | 2,730 | exs | Elixir | src/test/changelog_web/controllers/feed_controller_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/test/changelog_web/controllers/feed_controller_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/test/changelog_web/controllers/feed_controller_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.FeedControllerTest do
use ChangelogWeb.ConnCase
alias ChangelogWeb.NewsItemView
test "the sitemap", %{conn: conn} do
post = insert(:published_post)
podcast = insert(:podcast)
episode = insert(:published_episode)
topic = insert(:topic)
news_source = insert(:news_source)... | 29.673913 | 64 | 0.674359 |
28fc5d1840c3f0d7fa4f75c04826ebf33ea63c77 | 614 | exs | Elixir | src/097/p097.exs | Ernulphus/polyglot-euler | a5b59b08e6844f0c278bff5ab798acefa95749f3 | [
"MIT"
] | 67 | 2017-12-05T20:44:33.000Z | 2022-03-04T08:13:16.000Z | src/097/p097.exs | Ernulphus/polyglot-euler | a5b59b08e6844f0c278bff5ab798acefa95749f3 | [
"MIT"
] | 49 | 2018-03-26T14:20:26.000Z | 2021-08-17T09:08:55.000Z | src/097/p097.exs | Ernulphus/polyglot-euler | a5b59b08e6844f0c278bff5ab798acefa95749f3 | [
"MIT"
] | 17 | 2018-03-25T23:40:47.000Z | 2022-03-04T08:13:44.000Z | defmodule Problem097 do
defp pow_mod10000000000(_, 0), do: 1
defp pow_mod10000000000(x, n) when rem(n, 2) != 0 do
x * pow_mod10000000000(x, n - 1)
|> Integer.digits()
|> Enum.take(-10)
|> Integer.undigits()
end
defp pow_mod10000000000(x, n) do
result = pow_mod10000000000(x, div(n, 2))
r... | 21.172414 | 54 | 0.610749 |
28fc80db4533d5b7f9e0203f2cbb6402532139fc | 2,843 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_cluster.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_cluster.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_cluster.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... | 41.202899 | 167 | 0.7172 |
28fcb8b576f6453a4c17f68e671ba3231a39b415 | 302 | ex | Elixir | lib/home_bot/monitoring.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_bot/monitoring.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_bot/monitoring.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | defmodule HomeBot.Monitoring do
@moduledoc "All tasks for monitoring"
alias HomeBot.Monitoring.MonitoringJob
alias HomeBot.Monitoring.DailyEnergyMonitoring
def run_monitoring_job do
MonitoringJob.run()
end
def run_daily_energy_monitoring do
DailyEnergyMonitoring.run()
end
end
| 20.133333 | 48 | 0.794702 |
28fcc5af66cd58a092dbb7e5116593ffc6c8c714 | 1,004 | exs | Elixir | priv/repo/migrations/20180403181445_create_groups.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | priv/repo/migrations/20180403181445_create_groups.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | priv/repo/migrations/20180403181445_create_groups.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Repo.Migrations.CreateGroups do
use Ecto.Migration
def up do
execute("CREATE TYPE group_state AS ENUM ('OPEN','CLOSED')")
create table(:groups, primary_key: false) do
add :id, :binary_id, primary_key: true
add :space_id, references(:spaces, on_delete: :nothing, type: :binary_id... | 25.1 | 92 | 0.629482 |
28fd02e1f31ca4d02a6b6cfa202c7143c1fedb7f | 22,023 | ex | Elixir | lib/aws/generated/fraud_detector.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/fraud_detector.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/fraud_detector.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.FraudDetector do
@moduledoc """
This is the Amazon Fraud Detector API Reference.
This guide is for developers who need detailed information about Amazon Fraud
Detector API actions, data t... | 36.889447 | 124 | 0.71784 |
28fd4bdcd31b0e15a3563f77ed5fe2695008d78c | 1,035 | ex | Elixir | lib/policr_mini_web/controllers/admin/api/statistic_controller.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini_web/controllers/admin/api/statistic_controller.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini_web/controllers/admin/api/statistic_controller.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniWeb.Admin.API.StatisticController do
@moduledoc """
和统计相关的后台 API 控制器。
"""
use PolicrMiniWeb, :controller
alias PolicrMini.StatisticBusiness
import PolicrMiniWeb.Helper
action_fallback PolicrMiniWeb.API.FallbackController
def find_recently(conn, params) do
chat_id = params["c... | 27.972973 | 79 | 0.703382 |
28fd555577043fa6cd7203cc6d429fa8ba35b34c | 49 | ex | Elixir | frameworks/Elixir/phoenix/web/views/page_view.ex | ztellman/FrameworkBenchmarks | 2efa214d727831922e5a95fc4436688588580684 | [
"BSD-3-Clause"
] | 6 | 2015-07-08T06:30:26.000Z | 2021-12-11T16:13:17.000Z | frameworks/Elixir/phoenix/web/views/page_view.ex | ztellman/FrameworkBenchmarks | 2efa214d727831922e5a95fc4436688588580684 | [
"BSD-3-Clause"
] | null | null | null | frameworks/Elixir/phoenix/web/views/page_view.ex | ztellman/FrameworkBenchmarks | 2efa214d727831922e5a95fc4436688588580684 | [
"BSD-3-Clause"
] | 1 | 2020-06-06T18:11:19.000Z | 2020-06-06T18:11:19.000Z | defmodule Hello.PageView do
use Hello.View
end
| 12.25 | 27 | 0.795918 |
28fd9dbb5991d0b460126e087f5facb1ee07fae5 | 900 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.333333 | 74 | 0.763333 |
28fdfa76cf4677eeb8494521790645401d16d5c6 | 1,988 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/log_line.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_line.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/logging/lib/google_api/logging/v2/model/log_line.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... | 35.5 | 153 | 0.707243 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.