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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a5f9a703b4d70337bea972825db81a42cc98089 | 2,397 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_custom_batch_response_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_custom_batch_response_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_custom_batch_response_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.95 | 178 | 0.733 |
4a5fffeac33cf02149759ea5e2f663d4b77ea004 | 3,506 | ex | Elixir | lib/runlet/cmd/tls.ex | msantos/runlet_net | 41174f0b3e3cc0a8d05f221aa6eb2e837f146ff1 | [
"0BSD"
] | 1 | 2020-04-25T15:31:46.000Z | 2020-04-25T15:31:46.000Z | lib/runlet/cmd/tls.ex | msantos/runlet_net | 41174f0b3e3cc0a8d05f221aa6eb2e837f146ff1 | [
"0BSD"
] | null | null | null | lib/runlet/cmd/tls.ex | msantos/runlet_net | 41174f0b3e3cc0a8d05f221aa6eb2e837f146ff1 | [
"0BSD"
] | null | null | null | defmodule Runlet.Cmd.TLS do
@moduledoc "Display information about a TLS server"
@doc """
Displays TLS protocol, cipher suite and certificate details
Args:
"1.1.1.1"
"1.1.1.1 1234"
"1.1.1.1:1234"
"""
@spec exec(binary) :: Enumerable.t()
def exec(address) do
{ip, port} =
case Regex.... | 21.776398 | 87 | 0.517114 |
4a6015aa23294600e8f5601be866a4b84e5f2158 | 3,775 | ex | Elixir | Chapter09/vocial-demo-chapter-9/lib/vocial/votes/votes.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 10 | 2018-05-13T14:53:05.000Z | 2021-11-08T13:10:44.000Z | Chapter09/vocial-demo-chapter-9/lib/vocial/votes/votes.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | null | null | null | Chapter09/vocial-demo-chapter-9/lib/vocial/votes/votes.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 2 | 2019-04-23T10:54:33.000Z | 2019-04-27T15:47:07.000Z | defmodule Vocial.Votes do
import Ecto.Query, warn: false
alias Vocial.Repo
alias Vocial.Votes.Poll
alias Vocial.Votes.Option
alias Vocial.Votes.Image
alias Vocial.Votes.VoteRecord
alias Vocial.Votes.Message
require IEx
def get_poll(id), do: Repo.get!(Poll, id) |> Repo.preload([:options, :image, :vo... | 25.33557 | 105 | 0.62543 |
4a606e3aad817d2c59ce21b8ef82983a7f323312 | 1,205 | exs | Elixir | config/config.exs | BlindingDark/SourceCounter | e6421f53ea52c8f2d59e6267eeaf28626ef07c20 | [
"Apache-2.0"
] | 2 | 2021-09-02T05:39:39.000Z | 2022-03-23T13:16:23.000Z | config/config.exs | BlindingDark/SourceCounter | e6421f53ea52c8f2d59e6267eeaf28626ef07c20 | [
"Apache-2.0"
] | null | null | null | config/config.exs | BlindingDark/SourceCounter | e6421f53ea52c8f2d59e6267eeaf28626ef07c20 | [
"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.515152 | 73 | 0.754357 |
4a60828a0f44934eaf495da7497338d8361bca88 | 1,975 | exs | Elixir | mix.exs | BlueBeanStudios/coherence | d903bfc1a1c5e671a2928099192fc230c8fd2f86 | [
"MIT"
] | null | null | null | mix.exs | BlueBeanStudios/coherence | d903bfc1a1c5e671a2928099192fc230c8fd2f86 | [
"MIT"
] | null | null | null | mix.exs | BlueBeanStudios/coherence | d903bfc1a1c5e671a2928099192fc230c8fd2f86 | [
"MIT"
] | null | null | null | defmodule Coherence.Mixfile do
use Mix.Project
@version "0.6.0"
def project do
[
app: :coherence,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
st... | 25 | 90 | 0.507342 |
4a6085ae453bf235415a3120a0e955e5174fd529 | 2,049 | ex | Elixir | video-code/03-transforms/servy/lib/servy/handler.ex | raviraj-mulasa/pragstudio-elixir-code | 7df34dfc5bba1f7f1f9926b5da278d4cf0e6fcdf | [
"Unlicense"
] | null | null | null | video-code/03-transforms/servy/lib/servy/handler.ex | raviraj-mulasa/pragstudio-elixir-code | 7df34dfc5bba1f7f1f9926b5da278d4cf0e6fcdf | [
"Unlicense"
] | null | null | null | video-code/03-transforms/servy/lib/servy/handler.ex | raviraj-mulasa/pragstudio-elixir-code | 7df34dfc5bba1f7f1f9926b5da278d4cf0e6fcdf | [
"Unlicense"
] | null | null | null | defmodule Servy.Handler do
def handle(request) do
request
|> parse
|> route
|> format_response
end
def log(conv) do
IO.inspect conv
end
def log_conscice(conv), do: IO.inspect conv
def parse(request) do
[method, path, _] =
request
|> String.split("\n")
|> Li... | 16.795082 | 67 | 0.607613 |
4a609aefb8d6e885d0fd83a95b229fb177babaac | 901 | ex | Elixir | lib/mail_slurp_api/model/test_new_inbox_ruleset_options.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/test_new_inbox_ruleset_options.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/test_new_inbox_ruleset_options.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-03-16T18:55:56.000Z | 2021-03-16T18:55:56.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.TestNewInboxRulesetOptions do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"inboxRulesetTestOptions",
... | 29.064516 | 112 | 0.759156 |
4a609d45821ae44776b158ccf18dedf33b2ab2c6 | 842 | ex | Elixir | lib/rig_inbound_gateway_web/connection_limit.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/rig_inbound_gateway_web/connection_limit.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/rig_inbound_gateway_web/connection_limit.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigInboundGatewayWeb.ConnectionLimit do
@moduledoc "Used to enforce a limit on the maximum connections per minute"
defmodule MaxConnectionsError do
defexception [:n_connections]
def message(%__MODULE__{}),
do: "Reached maximum number of connections"
end
use Rig.Config, [:max_connectio... | 26.3125 | 83 | 0.703088 |
4a60acaa2717affb67c2740dcfb7b03d204da1f3 | 1,123 | exs | Elixir | config/config.exs | he9qi/we_whisper_elixir | 5c9dc87cf2ce159778942201eef363b083f9dad7 | [
"MIT"
] | 3 | 2016-10-09T00:07:44.000Z | 2021-02-21T04:29:43.000Z | config/config.exs | he9qi/we_whisper_elixir | 5c9dc87cf2ce159778942201eef363b083f9dad7 | [
"MIT"
] | 4 | 2016-10-08T01:27:01.000Z | 2016-10-08T17:56:49.000Z | config/config.exs | he9qi/we_whisper_elixir | 5c9dc87cf2ce159778942201eef363b083f9dad7 | [
"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.225806 | 73 | 0.752449 |
4a60b0e6817f80e881666f952f553ebb3e27cd19 | 6,016 | ex | Elixir | lib/mango_pay.ex | nicolasblanco/mangopay-elixir | 20780ebc4302e136eb350daa5450221fb9870708 | [
"MIT"
] | null | null | null | lib/mango_pay.ex | nicolasblanco/mangopay-elixir | 20780ebc4302e136eb350daa5450221fb9870708 | [
"MIT"
] | null | null | null | lib/mango_pay.ex | nicolasblanco/mangopay-elixir | 20780ebc4302e136eb350daa5450221fb9870708 | [
"MIT"
] | 1 | 2019-03-19T07:57:26.000Z | 2019-03-19T07:57:26.000Z | defmodule MangoPay do
@moduledoc """
The elixir client for MangoPay API.
This module is the root of all the application.
## Configuring
Set your API key by configuring the :mangopay application.
```
config :mangopay, :client, id: YOUR_MANGOPAY_CLIENT_ID
config :mangopay, :client, passphrase: MANG... | 27.47032 | 145 | 0.636137 |
4a60ccf23ec20458ae3be585a8a4954c2dbd35ff | 863 | exs | Elixir | test/json_schema_test_suite/draft6/max_length_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/json_schema_test_suite/draft6/max_length_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/json_schema_test_suite/draft6/max_length_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule JsonSchemaTestSuite.Draft6.MaxLengthTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe ~s|maxLength validation| do
setup do
%{
schema:
Xema.from_json_schema(
%{"maxLength" => 2},
draft: "draft6",
atom: :force
)
... | 22.128205 | 87 | 0.577057 |
4a60e2f457455b9954fecf54898ea79a98651f67 | 1,488 | ex | Elixir | lib/edgedb/protocol/codecs/builtin/json.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/json.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/json.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.Codecs.Builtin.JSON do
@moduledoc false
use EdgeDB.Protocol.Codec
alias EdgeDB.Protocol.Datatypes
@format 1
@json_library Application.compile_env(:edgedb, :json, Jason)
defbuiltinscalarcodec(
type_name: "std::json",
type_id: Datatypes.UUID.from_string("00000000-0000-000... | 27.555556 | 92 | 0.646505 |
4a60eef656953566c0caf2f2fbefd75ec4918cbb | 3,168 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/account_summaries.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics/lib/google_api/analytics/v3/model/account_summaries.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/account_summaries.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 ... | 46.588235 | 299 | 0.708965 |
4a6112590105fa3efb973c7851b7a9668553396b | 18,761 | exs | Elixir | test/corsica_test.exs | qcam/corsica | b089e883952880d110c5b92288446793092ac1e6 | [
"MIT"
] | null | null | null | test/corsica_test.exs | qcam/corsica | b089e883952880d110c5b92288446793092ac1e6 | [
"MIT"
] | null | null | null | test/corsica_test.exs | qcam/corsica | b089e883952880d110c5b92288446793092ac1e6 | [
"MIT"
] | null | null | null | defmodule CorsicaTest do
use ExUnit.Case
use Plug.Test
import Corsica
import ExUnit.CaptureIO
import ExUnit.CaptureLog
describe "sanitize_opts/1" do
test ":max_age" do
assert sanitize_opts(origins: "*", max_age: 600).max_age == "600"
assert sanitize_opts(origins: "*").max_age == nil
en... | 39.747881 | 123 | 0.616971 |
4a61582f7bf47899c21795f139562b8ef74df540 | 1,380 | exs | Elixir | test/sequence/sequence_supervisor_test.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | test/sequence/sequence_supervisor_test.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | test/sequence/sequence_supervisor_test.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | # defmodule Sequence.SupervisorTest do
# @moduledoc false
# use ExUnit.Case, async: true
# use Amnesia
# alias Sequence.Supervisor, as: S
# use Farmbot.Sync.Database
#
# test "starts and stops sequence" do
# {:ok, pid} = S.add_child(sequence(), Timex.now())
# S.remove_child(sequence())
# state =... | 26.538462 | 64 | 0.575362 |
4a6159b7a843e335ab95db8fa699b44683f1843e | 349 | ex | Elixir | lib/ash_policy_authorizer/check/static.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | lib/ash_policy_authorizer/check/static.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | lib/ash_policy_authorizer/check/static.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | defmodule AshPolicyAuthorizer.Check.Static do
@moduledoc "This check is true when the provided result is true, and false otherwise"
use AshPolicyAuthorizer.SimpleCheck
@impl true
def describe(options) do
"always #{inspect(options[:result])}"
end
@impl true
def match?(_actor, _request, options) do
... | 23.266667 | 87 | 0.73639 |
4a615e3ce63ce192732f0ff6315980f6d8236a94 | 207 | exs | Elixir | projects/sirena_email/test/sirena_email_web/controllers/page_controller_test.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | projects/sirena_email/test/sirena_email_web/controllers/page_controller_test.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | projects/sirena_email/test/sirena_email_web/controllers/page_controller_test.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule SirenaEmailWeb.PageControllerTest do
use SirenaEmailWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23 | 60 | 0.695652 |
4a616802a16a4ee99f249148215eb2837208dc1f | 2,608 | exs | Elixir | test/draft/tree_test.exs | estermer/ex-draft | 346c877227a5b96a3e177464a478a821c75c4172 | [
"MIT"
] | null | null | null | test/draft/tree_test.exs | estermer/ex-draft | 346c877227a5b96a3e177464a478a821c75c4172 | [
"MIT"
] | null | null | null | test/draft/tree_test.exs | estermer/ex-draft | 346c877227a5b96a3e177464a478a821c75c4172 | [
"MIT"
] | null | null | null | defmodule TreeTest do
use ExUnit.Case
test "builds a tree" do
assert DraftTree.build_tree(
[
%{"length" => 1, "offset" => 0, "styles" => ["BOLD"]},
%{"key" => 0, "length" => 38, "offset" => 5},
%{"length" => 6, "offset" => 11, "styles" => ["BOLD"]},
... | 33.87013 | 71 | 0.284509 |
4a618436ed0ba1a91931bc6ba184063ae9393455 | 3,892 | ex | Elixir | lib/crawlie/response.ex | kianmeng/crawlie | 19883f17a208107927ba14d15312f5a908d5e8ea | [
"MIT"
] | 91 | 2016-12-29T12:31:14.000Z | 2021-09-25T23:09:34.000Z | lib/crawlie/response.ex | kianmeng/crawlie | 19883f17a208107927ba14d15312f5a908d5e8ea | [
"MIT"
] | 40 | 2016-12-14T00:55:52.000Z | 2022-01-29T08:46:03.000Z | lib/crawlie/response.ex | kianmeng/crawlie | 19883f17a208107927ba14d15312f5a908d5e8ea | [
"MIT"
] | 10 | 2017-04-06T11:18:10.000Z | 2021-10-30T00:04:09.000Z | defmodule Crawlie.Response do
@moduledoc """
Defines the struct representing a page retrieved by the http client.
"""
alias __MODULE__, as: This
@typedoc """
The `Crawlie.Response` struct type.
"""
@type t :: %This{
uri: URI.t,
status_code: integer,
headers: [{String.t, String.t}],
bo... | 26.297297 | 92 | 0.588129 |
4a6186eda65db179f293e5e54f4e177d211a6e9b | 676 | exs | Elixir | higher_order/mix.exs | pascal-p/elixir-etudes | 097937783f33ce19af0b61e1c331482226d1fd96 | [
"BSD-2-Clause"
] | null | null | null | higher_order/mix.exs | pascal-p/elixir-etudes | 097937783f33ce19af0b61e1c331482226d1fd96 | [
"BSD-2-Clause"
] | null | null | null | higher_order/mix.exs | pascal-p/elixir-etudes | 097937783f33ce19af0b61e1c331482226d1fd96 | [
"BSD-2-Clause"
] | null | null | null | defmodule HigherOrder.Mixfile do
use Mix.Project
def project do
[app: :higher_order,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app"... | 20.484848 | 77 | 0.613905 |
4a61917cd3608757ba177d871accc4b09badc70e | 1,431 | exs | Elixir | config/config.exs | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | null | null | null | config/config.exs | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | null | null | null | config/config.exs | leandrocp/preview | 9dd3a9bae4385dc4935e76f63328f70b9d78fe4d | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :preview,
queue_id: "dummy",
queue_pr... | 31.108696 | 86 | 0.770091 |
4a61948873e0293e3470c600d53ac3ea14d3f362 | 12,860 | exs | Elixir | test/experiment_test.exs | cwbriones/scientist | 897093daaef53d8c0c332d476342140703cf0b48 | [
"MIT"
] | 107 | 2016-04-17T08:04:45.000Z | 2021-12-17T00:16:27.000Z | test/experiment_test.exs | cwbriones/scientist | 897093daaef53d8c0c332d476342140703cf0b48 | [
"MIT"
] | 3 | 2016-10-31T11:09:11.000Z | 2020-05-25T09:58:14.000Z | test/experiment_test.exs | cwbriones/scientist | 897093daaef53d8c0c332d476342140703cf0b48 | [
"MIT"
] | 4 | 2016-04-23T21:47:41.000Z | 2020-05-20T12:31:25.000Z | defmodule ExperimentTest do
use ExUnit.Case
alias Scientist.Experiment
alias Scientist.Observation
alias Scientist.Result
test "it has a default name" do
assert Experiment.new().name == "Elixir.Scientist.Experiment"
end
test "it accepts a context" do
experiment = Experiment.new("Some experiment... | 28.325991 | 97 | 0.653033 |
4a61eeafd9b3b195f05b267467bb49dec4473d02 | 9,379 | exs | Elixir | test/job_board_web/controllers/job_controller_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | test/job_board_web/controllers/job_controller_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | test/job_board_web/controllers/job_controller_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.JobControllerTest do
use JobBoardWeb.ConnCase
alias JobBoard.Jobs
alias JobBoard.Repo
import JobBoard.TestHelpers
@create_attrs %{title: "some title", link: "http://SomeLink.com", stripeToken: "111111"}
@update_attrs %{title: "some updated title", link: "http://updatedlink.com"}
@... | 30.851974 | 99 | 0.630984 |
4a621cfc683ec6a82b1ca3885befcf3b4e5f8174 | 1,489 | ex | Elixir | lib/codes/codes_b69.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b69.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b69.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_B69 do
alias IcdCode.ICDCode
def _B690 do
%ICDCode{full_code: "B690",
category_code: "B69",
short_code: "0",
full_name: "Cysticercosis of central nervous system",
short_name: "Cysticercosis of central nervous system",
category_name... | 28.634615 | 66 | 0.602418 |
4a6239aa877968a2dfc9dcbd5e1e24d6356ba288 | 4,950 | ex | Elixir | lib/vintage_net/predictable_interface_name.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/predictable_interface_name.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/predictable_interface_name.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.PredictableInterfaceName do
@moduledoc """
Handles predictable interface names by subscribing to the property table and
renaming matching interface names based on the configuration in application
environment.
"""
use GenServer
require Logger
alias VintageNet.InterfaceRenamer
# L... | 27.5 | 104 | 0.648081 |
4a62ab56cce4dfe4107ad05aaabae8849b04b591 | 1,468 | ex | Elixir | clients/firebase/lib/google_api/firebase/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.952381 | 282 | 0.759537 |
4a62e2b7995870c69876cd14601e4a53257a6198 | 260 | exs | Elixir | chatter/priv/repo/migrations/20180601014435_create_user.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | chatter/priv/repo/migrations/20180601014435_create_user.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | chatter/priv/repo/migrations/20180601014435_create_user.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule Chatter.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :encrypted_password, :string
timestamps()
end
create unique_index(:users, [:email])
end
end
| 17.333333 | 47 | 0.673077 |
4a62e90605eb17afd61040deb4ea05c71ed92a55 | 775 | ex | Elixir | lib/mix/tasks/upload.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/mix/tasks/upload.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/mix/tasks/upload.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Farmbot.Upload do
@moduledoc false
use Mix.Task
alias Mix.Tasks.Firmware.Push
@shortdoc "Uploads a file to a url"
def run(args) do
otp_app = Mix.Project.config[:app]
target = Mix.Project.config[:target]
# TODO(Connor) change this back when nerves is stable again
# img_path ... | 32.291667 | 81 | 0.643871 |
4a63224d6b0d50d2d4a069ee6eb6e119ac6ea14c | 1,026 | ex | Elixir | lib/battle_box/utilities/paginator.ex | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | lib/battle_box/utilities/paginator.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | lib/battle_box/utilities/paginator.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBox.Utilities.Paginator do
import Ecto.Query
@default_per_page 25
@max_per_page 50
def paginate(query, params) do
%{page: page, per_page: per_page} = pagination_info(params)
query
|> limit(^per_page)
|> offset(^((page - 1) * per_page))
end
def pagination_info(params) do
... | 23.860465 | 70 | 0.617934 |
4a6325eec87b87a9593f25cbd9d41c2e6c4c7813 | 275 | ex | Elixir | apps/performance/lib/performance/setup_config.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/performance/lib/performance/setup_config.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/performance/lib/performance/setup_config.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Performance.SetupConfig do
@moduledoc """
A common struct for performance test scenario setup
"""
defstruct [
:messages,
prefetch_count: 0,
prefetch_bytes: 1_000_000,
max_bytes: 1_000_000,
max_wait_time: 10_000,
min_bytes: 0
]
end
| 19.642857 | 53 | 0.694545 |
4a632fdc2a45dc7cae451ff5585d9247c539a0ee | 4,934 | ex | Elixir | clients/poly/lib/google_api/poly/v1/model/asset.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/poly/lib/google_api/poly/v1/model/asset.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/poly/lib/google_api/poly/v1/model/asset.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... | 57.372093 | 342 | 0.688893 |
4a63322f1cbbff4bcfb776d5807706f77baf711e | 11,125 | ex | Elixir | lib/riffed/enumeration.ex | renderedtext/riffed | f7d772753236d6c52ba685cf49e501e9b7c930b0 | [
"Apache-2.0"
] | null | null | null | lib/riffed/enumeration.ex | renderedtext/riffed | f7d772753236d6c52ba685cf49e501e9b7c930b0 | [
"Apache-2.0"
] | null | null | null | lib/riffed/enumeration.ex | renderedtext/riffed | f7d772753236d6c52ba685cf49e501e9b7c930b0 | [
"Apache-2.0"
] | null | null | null | defmodule Riffed.Enumeration do
@moduledoc """
Provides enumeration semantics, but with an Elixir flavor.
## Usage
Thrift enums are not handled well by the erlang thrift bindings. They're turned into
ints and left to fend for themselves. This is no way to treat an Enum. The `Riffed.Enum`
module brings the... | 33.610272 | 178 | 0.636045 |
4a6344a8323e30e284198cf699b2834055cdf9ea | 9,826 | exs | Elixir | test/tree/r/delete_test.exs | tesseract-libs/tesseract-trees | 6863cd54e0413fa1b6a44811acb42db30c81a7fd | [
"MIT"
] | null | null | null | test/tree/r/delete_test.exs | tesseract-libs/tesseract-trees | 6863cd54e0413fa1b6a44811acb42db30c81a7fd | [
"MIT"
] | null | null | null | test/tree/r/delete_test.exs | tesseract-libs/tesseract-trees | 6863cd54e0413fa1b6a44811acb42db30c81a7fd | [
"MIT"
] | null | null | null | defmodule Tesseract.Tree.R.DeleteTest do
alias Tesseract.Tree.R
alias Tesseract.Tree.R.Validation
alias Tesseract.Tree.R.Util
use ExUnit.Case, async: true
test "[R] Delete: simple case #1" do
points = [
a: {1, 1, 1},
b: {2, 2, 2},
c: {3, 3, 3},
d: {4, 4, 4},
e: {5, 5, 5},
... | 27.294444 | 93 | 0.345715 |
4a63541ba4cba7114572d7ed3bdeffd494742b5e | 374 | ex | Elixir | lib/noven_media/supervisor.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 8 | 2020-09-10T09:18:17.000Z | 2022-03-25T03:43:25.000Z | lib/noven_media/supervisor.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | null | null | null | lib/noven_media/supervisor.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 4 | 2020-12-28T06:13:51.000Z | 2021-04-27T18:00:06.000Z | defmodule NovenMedia.Supervisor do
use DynamicSupervisor
def start_link(args) do
DynamicSupervisor.start_link(__MODULE__, args, name: __MODULE__)
end
def start_pipeline(device, port) do
DynamicSupervisor.start_child(__MODULE__, {NovenMedia.Pipeline, [device, port]})
end
def init(_args) do
Dyn... | 23.375 | 84 | 0.764706 |
4a6379a44ecf14d6ea645b191e33eb7877ba797d | 3,147 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/image_context.ex | vip30/elixir-google-api | 72f64426e800fe4b13b411cfe590abc20e8e3ae7 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/image_context.ex | vip30/elixir-google-api | 72f64426e800fe4b13b411cfe590abc20e8e3ae7 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/image_context.ex | vip30/elixir-google-api | 72f64426e800fe4b13b411cfe590abc20e8e3ae7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.681818 | 145 | 0.734986 |
4a637ae895d88f6f478c384b9eb9a2bc2ee30345 | 1,007 | exs | Elixir | apps/ello_feeds/config/dev.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_feeds/config/dev.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_feeds/config/dev.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | 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 :ello_feeds, Ello.Feeds.Endpoint,
http: [port:... | 28.771429 | 68 | 0.707051 |
4a638e5ef61f758640fa04fbf662c529e23df21e | 1,326 | ex | Elixir | lib/log.ex | Z1an-Wang/60009_Distributed_Algorithms | ab63dca86c8db5ae319cfd3a309dfb40279199c8 | [
"MIT"
] | null | null | null | lib/log.ex | Z1an-Wang/60009_Distributed_Algorithms | ab63dca86c8db5ae319cfd3a309dfb40279199c8 | [
"MIT"
] | null | null | null | lib/log.ex | Z1an-Wang/60009_Distributed_Algorithms | ab63dca86c8db5ae319cfd3a309dfb40279199c8 | [
"MIT"
] | null | null | null |
# distributed algorithms, n.dulay, 8 feb 2022
# coursework, raft consensus, v2
defmodule Log do
# s = server state (c.f. self/this)
# implemented as a Map indexed from 1.
def new(), do: Map.new() # used when process state is initialised
def new(s), do: Map.put(s, :log,... | 34 | 97 | 0.608597 |
4a63995ccd421adc4f09b94d3fb5e410f319cd07 | 1,170 | exs | Elixir | config/config.exs | launchdarkly/hello-phoenix | 3e812ad959789e89e1de8a216d1c30db659e4be2 | [
"Apache-2.0"
] | null | null | null | config/config.exs | launchdarkly/hello-phoenix | 3e812ad959789e89e1de8a216d1c30db659e4be2 | [
"Apache-2.0"
] | 2 | 2022-03-29T22:26:54.000Z | 2022-03-30T22:33:49.000Z | config/config.exs | launchdarkly/hello-phoenix | 3e812ad959789e89e1de8a216d1c30db659e4be2 | [
"Apache-2.0"
] | 1 | 2021-05-23T17:43:09.000Z | 2021-05-23T17:43:09.000Z | # 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.
# General application configuration
use Mix.Config
#config :hello_phoenix,
# ecto_repos: [HelloPho... | 33.428571 | 86 | 0.773504 |
4a63bd19a4df1d1b5b87cadeffaf0fd9b7340544 | 1,206 | exs | Elixir | config/config.exs | Koch-AG/blue_bird | fb84b8746104997c4c2e41ff800f16cf234a2bc9 | [
"MIT"
] | null | null | null | config/config.exs | Koch-AG/blue_bird | fb84b8746104997c4c2e41ff800f16cf234a2bc9 | [
"MIT"
] | null | null | null | config/config.exs | Koch-AG/blue_bird | fb84b8746104997c4c2e41ff800f16cf234a2bc9 | [
"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.545455 | 73 | 0.737977 |
4a63f27539a6a69445f952cbf9b5465e7de336c9 | 293 | ex | Elixir | lib/web/controllers/admin/dashboard_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/admin/dashboard_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/admin/dashboard_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Admin.DashboardController do
use Web.AdminController
alias Web.Announcement
alias Web.User
def index(conn, _params) do
conn
|> assign(:players, User.connected_players())
|> assign(:announcements, Announcement.recent())
|> render("index.html")
end
end
| 20.928571 | 52 | 0.709898 |
4a63f58be39609b30a3908f45a143c7f98d3382a | 2,641 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_snippet.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_snippet.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_snippet.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.920635 | 223 | 0.728133 |
4a643d3788b2b5eacd58516166118a72b0f809f2 | 615 | exs | Elixir | test/lib/ex_aws/config_test.exs | bettyblocks/ex_aws | 0c9b43b5a1afbfb5fb26131be7f80f69de4431d1 | [
"MIT",
"Unlicense"
] | null | null | null | test/lib/ex_aws/config_test.exs | bettyblocks/ex_aws | 0c9b43b5a1afbfb5fb26131be7f80f69de4431d1 | [
"MIT",
"Unlicense"
] | null | null | null | test/lib/ex_aws/config_test.exs | bettyblocks/ex_aws | 0c9b43b5a1afbfb5fb26131be7f80f69de4431d1 | [
"MIT",
"Unlicense"
] | 1 | 2021-01-22T12:16:23.000Z | 2021-01-22T12:16:23.000Z | defmodule ExAws.ConfigTest do
use ExUnit.Case, async: true
test "{:system} style configs work" do
value = "foo"
System.put_env("ExAwsConfigTest", value)
assert :s3
|> ExAws.Config.new([access_key_id: {:system, "ExAwsConfigTest"}])
|> Map.get(:access_key_id) == value
end
test "security_toke... | 30.75 | 122 | 0.687805 |
4a6455ae8c21200b529537f5717e22903d7ca06f | 1,605 | ex | Elixir | lib/user/user.ex | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | 1 | 2018-02-12T23:14:33.000Z | 2018-02-12T23:14:33.000Z | lib/user/user.ex | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | 16 | 2017-11-18T15:28:34.000Z | 2019-02-09T10:27:10.000Z | lib/user/user.ex | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | null | null | null | defmodule Fyyd.User do
@moduledoc """
Handles requests regarding User.
"""
alias Fyyd.API
alias Fyyd.Utils
@expected_fields ~w(id nick fullname bio url layoutImageURL thumbImageURL microImageURL)
defstruct ~w(id nick fullname bio url layoutImageURL thumbImageURL microImageURL)a
@type t :: %__MODULE_... | 25.47619 | 90 | 0.631153 |
4a64834363b6c8c60550ac07f96540b34923ae26 | 1,944 | ex | Elixir | lib/plug_session_db_store_web/telemetry.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/telemetry.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | lib/plug_session_db_store_web/telemetry.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | defmodule PlugSessionDbStoreWeb.Telemetry do
@moduledoc false
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements... | 32.949153 | 93 | 0.687243 |
4a64ae294845a9da0ef554bc27cdeedb6aa4225d | 989 | ex | Elixir | apps/ewallet/lib/ewallet/policies/account_policy.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet/lib/ewallet/policies/account_policy.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/account_policy.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWallet.AccountPolicy do
@moduledoc """
The authorization policy for accounts.
"""
@behaviour Bodyguard.Policy
alias EWalletDB.User
# Allowed by any role including none
def authorize(:all, _user_id, nil), do: true
# Fetches the user role then authorize by role
def authorize(action, user_id... | 27.472222 | 60 | 0.705763 |
4a64eb9f9c821d5c9b9ff10585213d5b7b65ed1a | 2,511 | ex | Elixir | writer_monad_from_first_principle/lib/monad.logger.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | writer_monad_from_first_principle/lib/monad.logger.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | writer_monad_from_first_principle/lib/monad.logger.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | defmodule Monad.Logger do
@enforce_keys [:run_logger]
defstruct [:run_logger]
def new({x, _} = t) when is_list(x), do: %Monad.Logger{run_logger: t}
def pure(x), do: new({[], x})
def log(s), do: new({[s], {}})
def logs(ss), do: new({ss, {}})
def map(ma, f) do
{logs, x} = ma.run_logger
new({lo... | 24.144231 | 174 | 0.56591 |
4a6524013dd5ec6730c5d0fa7744a37a2f714bf5 | 146 | exs | Elixir | test/ex_zxcvbn/matcher/reverse_dictionary_test.exs | unnawut/ex-zxcvbn | 767f75bf2eb6361604a46914cbd2a0d9410fa3fc | [
"MIT"
] | 1 | 2020-01-31T11:46:48.000Z | 2020-01-31T11:46:48.000Z | test/ex_zxcvbn/matcher/reverse_dictionary_test.exs | unnawut/ex_zxcvbn | 767f75bf2eb6361604a46914cbd2a0d9410fa3fc | [
"MIT"
] | null | null | null | test/ex_zxcvbn/matcher/reverse_dictionary_test.exs | unnawut/ex_zxcvbn | 767f75bf2eb6361604a46914cbd2a0d9410fa3fc | [
"MIT"
] | null | null | null | defmodule ExZxcvbn.Matcher.ReverseDictionaryTest do
use ExUnit.Case
descibe "match/1" do
test "matches against reversed words"
end
end
| 18.25 | 51 | 0.767123 |
4a6535761d0085e891140b109a08032072511daf | 4,704 | exs | Elixir | test/uuid/ecto/type_config_test.exs | ryanwinchester/elixir-uuids | e51629e88331d82ce8099da7cdd5dd8263b69c0d | [
"Apache-2.0"
] | 7 | 2020-10-15T01:39:48.000Z | 2022-03-24T16:26:23.000Z | test/uuid/ecto/type_config_test.exs | ryanwinchester/elixir-uuids | e51629e88331d82ce8099da7cdd5dd8263b69c0d | [
"Apache-2.0"
] | 11 | 2020-10-14T17:44:23.000Z | 2021-03-12T19:51:39.000Z | test/uuid/ecto/type_config_test.exs | ryanwinchester/elixir-uuids | e51629e88331d82ce8099da7cdd5dd8263b69c0d | [
"Apache-2.0"
] | null | null | null | defmodule UUID.Ecto.TypeConfigTest do
use ExUnit.Case
alias UUID.Ecto.TypeConfig
# ----------------------------------------------------------------------------
# Setup
# ----------------------------------------------------------------------------
alias UUID.{TestUUID1, TestUUID3, TestUUID4, TestUUID5, Te... | 31.152318 | 96 | 0.609269 |
4a653787c2da72b01a124fe128d6bf2476a522b2 | 2,272 | ex | Elixir | lib/thrift/transport/ssl.ex | pguillory/elixir-thrift | adff91ece6c303db3fd5cfc641fd43249d7c1dc9 | [
"Apache-2.0"
] | 209 | 2015-12-19T09:56:39.000Z | 2022-03-22T04:43:16.000Z | lib/thrift/transport/ssl.ex | Acidburn0zzz/elixir-thrift | ed84da9ced0e6f5d90ff90f1b22886830f2096ea | [
"Apache-2.0"
] | 312 | 2016-01-05T04:04:58.000Z | 2021-11-15T17:59:57.000Z | lib/thrift/transport/ssl.ex | Acidburn0zzz/elixir-thrift | ed84da9ced0e6f5d90ff90f1b22886830f2096ea | [
"Apache-2.0"
] | 40 | 2015-12-21T19:46:03.000Z | 2022-02-10T08:34:58.000Z | defmodule Thrift.Transport.SSL do
@moduledoc """
SSL configuration helpers.
Clients and servers support SSL with the `:ssl_opts` start_link option. There are additional options from
the [:`ssl` module](http://erlang.org/doc/man/ssl.html) but otherwise configuration is the same:
## Options
* :enabled -... | 31.123288 | 107 | 0.633803 |
4a65585bb170564e51365283677c81a06b78ea72 | 1,041 | ex | Elixir | lib/learn_phoenix/endpoint.ex | princemaple/learn-phoenix | f54c1e4d92b3701884298df8557790f878334f03 | [
"MIT"
] | null | null | null | lib/learn_phoenix/endpoint.ex | princemaple/learn-phoenix | f54c1e4d92b3701884298df8557790f878334f03 | [
"MIT"
] | null | null | null | lib/learn_phoenix/endpoint.ex | princemaple/learn-phoenix | f54c1e4d92b3701884298df8557790f878334f03 | [
"MIT"
] | null | null | null | defmodule LearnPhoenix.Endpoint do
use Phoenix.Endpoint, otp_app: :learn_phoenix
socket "/socket", LearnPhoenix.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 static files in production.
plu... | 26.025 | 69 | 0.71854 |
4a65a2cac523cd9ed2903ca99ba94d86b39100ac | 373 | exs | Elixir | priv/test_repo/migrations/20160504011813_add_accounts_table.exs | elixir-twister/fuentes | 11b152d639ecfe42aa53bbf686cb0a4216d08459 | [
"Apache-2.0"
] | 1 | 2021-07-02T12:38:20.000Z | 2021-07-02T12:38:20.000Z | priv/test_repo/migrations/20160504011813_add_accounts_table.exs | data-twister/fuentes | 11b152d639ecfe42aa53bbf686cb0a4216d08459 | [
"Apache-2.0"
] | 1 | 2018-04-16T17:36:40.000Z | 2018-04-16T17:36:40.000Z | priv/test_repo/migrations/20160504011813_add_accounts_table.exs | elixir-twister/fuentes | 11b152d639ecfe42aa53bbf686cb0a4216d08459 | [
"Apache-2.0"
] | 1 | 2018-04-16T17:36:14.000Z | 2018-04-16T17:36:14.000Z | defmodule Fuentes.TestRepo.Migrations.AddAccountsTable do
use Ecto.Migration
def change do
create table(:accounts) do
add :name, :string, null: false
add :type, :string, null: false
add :uuid, :string, null: false
add :contra, :boolean, default: false
timestamps
end
crea... | 21.941176 | 57 | 0.654155 |
4a65c2520eded6846320412a8aa6fa69000ad170 | 1,562 | exs | Elixir | api/config/dev.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | 3 | 2017-05-22T13:28:13.000Z | 2018-06-29T16:39:19.000Z | api/config/dev.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | api/config/dev.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"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 :grook, Grook.Web.Endpoint,
http: [port: 4000]... | 30.627451 | 170 | 0.731114 |
4a65df8e1e086a1a9da92e1df245f20411b47ace | 1,607 | ex | Elixir | example_app/test/support/model_case.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 750 | 2015-01-18T23:00:36.000Z | 2021-03-24T22:11:09.000Z | example_app/test/support/model_case.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 130 | 2015-01-19T12:39:42.000Z | 2021-09-28T22:40:52.000Z | example_app/test/support/model_case.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 151 | 2015-01-19T09:24:44.000Z | 2020-09-21T13:52:46.000Z | defmodule ExampleApp.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. F... | 25.919355 | 84 | 0.686994 |
4a65ef2d8144062bbd3097952d417c7f8fcd98c1 | 687 | ex | Elixir | lib/math.ex | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | 8 | 2020-01-08T06:55:36.000Z | 2021-03-10T15:44:46.000Z | lib/math.ex | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | lib/math.ex | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | defmodule MatrexNumerix.Math do
@moduledoc """
Common mathematical functions.
"""
@doc """
Calculates the nth root of a number.
"""
@spec nth_root(number, integer, float) :: float
def nth_root(x, n, precision \\ 1.0e-5)
def nth_root(x, _n, _precision) when x == 0, do: 0.0
def nth_root(_x, n, _preci... | 31.227273 | 90 | 0.636099 |
4a661af599f32c475634065d62eb86309196cd5d | 190 | exs | Elixir | config/config.exs | IanLuites/gocd | c27a2120d24e2210a289ad29861a9fa602efc6bd | [
"MIT"
] | null | null | null | config/config.exs | IanLuites/gocd | c27a2120d24e2210a289ad29861a9fa602efc6bd | [
"MIT"
] | null | null | null | config/config.exs | IanLuites/gocd | c27a2120d24e2210a289ad29861a9fa602efc6bd | [
"MIT"
] | null | null | null | use Mix.Config
# config :gocd, Example,
# url: System.get_env("GOCD_URL"),
# ciphers: [
# aes: System.get_env("GOCD_AES_CIPHER"),
# des: System.get_env("GOCD_DES_CIPHER")
# ]
| 21.111111 | 45 | 0.642105 |
4a661c8c02807fb593b79fc22c32406f232bbcff | 1,639 | ex | Elixir | lib/auto_api/capabilities/hood_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/hood_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/hood_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 36.422222 | 79 | 0.737035 |
4a66206253fc6bd1f2efae30d2507f8ea55d2a5c | 84 | exs | Elixir | apps/tracking_web/test/tracking_web/views/layout_view_test.exs | pcmarks/ddd_elixir_demo_stage1 | e496f95cfaca1f9aca0e65a660eb8b999450f2f3 | [
"MIT"
] | 44 | 2017-11-12T17:12:55.000Z | 2022-03-29T18:21:08.000Z | apps/tracking_web/test/tracking_web/views/layout_view_test.exs | pcmarks/ddd_elixir_demo_stage1 | e496f95cfaca1f9aca0e65a660eb8b999450f2f3 | [
"MIT"
] | 7 | 2017-09-11T12:17:36.000Z | 2017-09-25T13:15:21.000Z | apps/tracking_web/test/tracking_web/views/layout_view_test.exs | pcmarks/ddd_elixir_demo_stage1 | e496f95cfaca1f9aca0e65a660eb8b999450f2f3 | [
"MIT"
] | 4 | 2019-04-15T08:03:30.000Z | 2021-12-15T16:00:02.000Z | defmodule TrackingWeb.LayoutViewTest do
use TrackingWeb.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
4a6638359e70de1ecae535fbf1c4fe66b4b69db4 | 11,539 | ex | Elixir | clients/test_client/lib/google_api/test_client/v2/api/objects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/test_client/lib/google_api/test_client/v2/api/objects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/test_client/lib/google_api/test_client/v2/api/objects.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 ... | 35.179878 | 121 | 0.614871 |
4a667122155b6a17e48a5d47bd33d6765a76ca5a | 7,082 | ex | Elixir | lib/scanner/lib/language_support.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | 8 | 2020-07-27T09:11:24.000Z | 2020-09-21T20:57:45.000Z | lib/scanner/lib/language_support.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | 1 | 2021-05-14T13:30:27.000Z | 2021-05-14T13:30:27.000Z | lib/scanner/lib/language_support.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | null | null | null | defmodule ExGherkin.Scanner.LanguageSupport do
@gherkin_languages_source Application.get_env(:my_ex_gherkin, :file).source
@gherkin_languages_resource Application.get_env(:my_ex_gherkin, :file).resource
@homonyms Application.get_env(:my_ex_gherkin, :homonyms)
@moduledoc_homonyms @homonyms |> Enum.map(&" * ... | 28.906122 | 97 | 0.592347 |
4a668038f3508d70143d2c2c261c1b28367d231d | 1,246 | ex | Elixir | apps/red_robin_web/test/support/conn_case.ex | 3zcurdia/red_robin | a4aa6870d6bde05c95d375913311ecb392f7c44c | [
"MIT"
] | null | null | null | apps/red_robin_web/test/support/conn_case.ex | 3zcurdia/red_robin | a4aa6870d6bde05c95d375913311ecb392f7c44c | [
"MIT"
] | null | null | null | apps/red_robin_web/test/support/conn_case.ex | 3zcurdia/red_robin | a4aa6870d6bde05c95d375913311ecb392f7c44c | [
"MIT"
] | null | null | null | defmodule RedRobinWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 30.390244 | 71 | 0.732745 |
4a66833ef883658420ede2449a9a439a53a34166 | 1,084 | ex | Elixir | test/support/conn_case.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | defmodule EctoRelations.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with ... | 25.209302 | 72 | 0.711255 |
4a66d4cd9ac6ef688d1a0cdf8c2ad98d835c37f9 | 814 | ex | Elixir | backend/lib/kjer_si/accounts/user.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 2 | 2019-11-02T21:28:34.000Z | 2019-11-28T18:01:08.000Z | backend/lib/kjer_si/accounts/user.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 17 | 2019-11-29T16:23:38.000Z | 2022-02-14T05:11:41.000Z | backend/lib/kjer_si/accounts/user.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | null | null | null | defmodule KjerSi.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :uid, :string
field :nickname, :string
field :is_admin, :boolean, default: false
field :is_active, :boolean, default:... | 26.258065 | 98 | 0.699017 |
4a66f3af166aaf90dd92748faa1164b137e2a669 | 1,001 | exs | Elixir | test/tradehub/tx/send_token_test.exs | anhmv/tradehub-api-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | 5 | 2021-05-04T16:54:25.000Z | 2021-12-15T06:53:24.000Z | test/tradehub/tx/send_token_test.exs | anhmv/tradehub-api-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | 5 | 2021-05-19T04:49:00.000Z | 2021-06-01T13:36:50.000Z | test/tradehub/tx/send_token_test.exs | anhmv/tradehub-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | null | null | null | defmodule TradehubTest.Tx.SendTokenTest do
use ExUnit.Case, async: true
alias Tradehub.Tx.MsgInvalid
alias Tradehub.Tx.SendToken
import Tradehub.Tx.SendToken
setup do
{
:ok,
payload: %SendToken{
from_address: "address_1",
to_address: "address_2",
amount: [%{denom: "s... | 23.833333 | 85 | 0.655345 |
4a670f350c7107892541404b141e3a8c70c9ec8d | 1,585 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/replace_sites_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/replace_sites_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/replace_sites_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.723404 | 140 | 0.747003 |
4a671c97ca1fc6613ea6767005ae2589547b00ef | 2,268 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/service_attachment_aggregated_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/service_attachment_aggregated_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/service_attachment_aggregated_list_warning.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... | 38.440678 | 258 | 0.726631 |
4a672c2d0ca3f28ebcc8f878490e04d56de539e0 | 6,421 | exs | Elixir | test/entity/time_off_request_test.exs | aditya7iyengar/bamboohr_api | e45a54e32cc6231b12de2bb42cd6569fcb7d4858 | [
"MIT"
] | null | null | null | test/entity/time_off_request_test.exs | aditya7iyengar/bamboohr_api | e45a54e32cc6231b12de2bb42cd6569fcb7d4858 | [
"MIT"
] | null | null | null | test/entity/time_off_request_test.exs | aditya7iyengar/bamboohr_api | e45a54e32cc6231b12de2bb42cd6569fcb7d4858 | [
"MIT"
] | null | null | null | defmodule BamboohrApi.Entity.TimeOffRequestTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
@module BamboohrApi.Entity.TimeOffRequest
describe "@behaviour BamboohrApi.Entity" do
test "behaves like BamboohrApi.Entity" do
behaviour_modules =
:attributes
... | 26.643154 | 90 | 0.522193 |
4a674122535fc43e264e59c3afdbe675b9af3c0c | 775 | ex | Elixir | backend/lib/emoji_map/tweet_consumer.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 14 | 2018-01-12T08:47:00.000Z | 2020-06-18T04:59:27.000Z | backend/lib/emoji_map/tweet_consumer.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 1 | 2017-03-17T13:15:47.000Z | 2017-03-17T13:15:47.000Z | backend/lib/emoji_map/tweet_consumer.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 4 | 2018-07-31T12:29:15.000Z | 2021-01-05T19:22:49.000Z | defmodule EmojiMap.TweetConsumer do
@moduledoc """
The consumer side. Subscribes to the producer once it is started so when
it crashes and the supervisor restarts it, it automatically re-subscribes
"""
use GenStage
@doc """
Starts the consumer.
"""
def start_link() do
GenStage.start_link(__MODUL... | 25.833333 | 80 | 0.696774 |
4a674f034faeefb4bd6349e657997056e7d62a3b | 120 | exs | Elixir | test/ex_zendesk_test.exs | julienmarie/ex_zendesk | 89ea1b5096083406ab3446f869f342c7779b9ed9 | [
"MIT"
] | null | null | null | test/ex_zendesk_test.exs | julienmarie/ex_zendesk | 89ea1b5096083406ab3446f869f342c7779b9ed9 | [
"MIT"
] | null | null | null | test/ex_zendesk_test.exs | julienmarie/ex_zendesk | 89ea1b5096083406ab3446f869f342c7779b9ed9 | [
"MIT"
] | 1 | 2020-05-11T06:37:05.000Z | 2020-05-11T06:37:05.000Z | defmodule ExZendeskTest do
use ExUnit.Case
doctest ExZendesk
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.333333 | 26 | 0.683333 |
4a675451008028d204d0dac0970fd30396f620fb | 1,797 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.94 | 212 | 0.740679 |
4a67a1b9b8821c770caee967bde9e06dfc5066b2 | 9,079 | ex | Elixir | lib/utilities/texture.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1,716 | 2018-09-07T21:55:43.000Z | 2022-03-31T16:16:30.000Z | lib/utilities/texture.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 220 | 2018-09-08T01:28:00.000Z | 2022-03-22T03:55:17.000Z | lib/utilities/texture.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 137 | 2018-09-07T21:55:56.000Z | 2022-03-26T04:07:27.000Z | #
# Created by Boyd Multerer on 2019-03-17.
# Copyright © 2019 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Utilities.Texture do
alias Scenic.Primitive.Style.Paint.Color
@app Mix.Project.config()[:app]
# load the NIF
@compile {:autoload, false}
@on_load :load_nifs
@doc false
def load_ni... | 31.744755 | 96 | 0.544884 |
4a67c9c52e3866cb002c2a3ec5153c19c5c2be07 | 450 | exs | Elixir | test/jsox/parser_test/bool_test.exs | hrzndhrn/jsox | 7549769ecf12c1036fef2caa67dd6de3eaea6141 | [
"MIT"
] | null | null | null | test/jsox/parser_test/bool_test.exs | hrzndhrn/jsox | 7549769ecf12c1036fef2caa67dd6de3eaea6141 | [
"MIT"
] | null | null | null | test/jsox/parser_test/bool_test.exs | hrzndhrn/jsox | 7549769ecf12c1036fef2caa67dd6de3eaea6141 | [
"MIT"
] | null | null | null | defmodule Jsox.ParserTest.BoolTest do
use ExUnit.Case, async: true
import Jsox.Parser
test "parsing true" do
assert parse(~s(true)) === {:ok, true}
end
test "parsing false" do
assert parse(~s(false)) === {:ok, false}
end
test "parsing null" do
assert parse(~s(null)) === {:ok, nil}
end
... | 18.75 | 70 | 0.62 |
4a67dafb5a24b0b68ae6ff7212cac48484390e5a | 727 | ex | Elixir | lib/techblog_web/controllers/page_controller.ex | aforward/anunknown | 67838fe6f60825fd8c057c825f497ce7ef046083 | [
"MIT"
] | null | null | null | lib/techblog_web/controllers/page_controller.ex | aforward/anunknown | 67838fe6f60825fd8c057c825f497ce7ef046083 | [
"MIT"
] | null | null | null | lib/techblog_web/controllers/page_controller.ex | aforward/anunknown | 67838fe6f60825fd8c057c825f497ce7ef046083 | [
"MIT"
] | null | null | null | defmodule TechblogWeb.PageController do
use TechblogWeb, :controller
plug :put_layout, "page.html"
def index(conn, _params) do
conn
|> assign(:page_id, :home)
|> render("index.html", layout: {TechblogWeb.LayoutView, "app.html"})
end
def resume(conn, _params) do
conn
|> assign(:page_id, :... | 20.771429 | 73 | 0.643741 |
4a683e75514c806e0b7423f939bba49e3d29e266 | 46 | exs | Elixir | config/test.exs | jamesduncombe/petal | 17c7034554f0aa3548e63f2f4277bd4e25347cd8 | [
"MIT"
] | 1 | 2021-03-16T10:47:06.000Z | 2021-03-16T10:47:06.000Z | config/test.exs | jamesduncombe/petal | 17c7034554f0aa3548e63f2f4277bd4e25347cd8 | [
"MIT"
] | null | null | null | config/test.exs | jamesduncombe/petal | 17c7034554f0aa3548e63f2f4277bd4e25347cd8 | [
"MIT"
] | null | null | null | import Config
config :logger,
level: :info
| 9.2 | 15 | 0.717391 |
4a684338c6a71e52018950aa4c3284ef96d16983 | 2,856 | ex | Elixir | lib/talon/router.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 170 | 2017-05-25T15:09:53.000Z | 2021-07-09T04:04:14.000Z | lib/talon/router.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 78 | 2017-05-25T09:41:55.000Z | 2019-01-04T20:53:35.000Z | lib/talon/router.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 8 | 2017-06-24T12:28:06.000Z | 2018-09-17T16:11:56.000Z | defmodule Talon.Router do
@moduledoc """
Router macro for Talon sites.
Provides a helper macro for adding up Talon routes to your application.
## Examples:
defmodule MyProject.Router do
use MyProject.Web, :router
use Talon.Router
...
scope "/", MyProject do
...... | 35.259259 | 135 | 0.668417 |
4a684f92941851f4395e9b60ebb4dfef20b954ab | 1,908 | ex | Elixir | clients/books/lib/google_api/books/v1/model/annotation_layer_summary.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/annotation_layer_summary.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/annotation_layer_summary.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 ... | 36 | 150 | 0.726939 |
4a685c10cc16eba4fa49821e2bef789aa01f8e80 | 1,580 | ex | Elixir | lib/chartjs_phoenix_demo_web/views/error_helpers.ex | jszod/chartjs_phoenix_demo | 648b14d0dcdb5adf4b457adbd29172142f9fc8bf | [
"Apache-2.0"
] | null | null | null | lib/chartjs_phoenix_demo_web/views/error_helpers.ex | jszod/chartjs_phoenix_demo | 648b14d0dcdb5adf4b457adbd29172142f9fc8bf | [
"Apache-2.0"
] | null | null | null | lib/chartjs_phoenix_demo_web/views/error_helpers.ex | jszod/chartjs_phoenix_demo | 648b14d0dcdb5adf4b457adbd29172142f9fc8bf | [
"Apache-2.0"
] | null | null | null | defmodule ChartjsPhoenixDemoWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
c... | 32.916667 | 87 | 0.672152 |
4a68a5f73461eb30e6204fc7d7fab2acfe8a60e2 | 1,770 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_speech_to_text_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_speech_to_text_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_speech_to_text_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.122449 | 300 | 0.770621 |
4a68b4955c348eb698a7d65eed28ce6a085b078a | 866 | exs | Elixir | mix.exs | rupurt/juice | 5bb77b55b288f5dd244046a19479815bac8d54e6 | [
"MIT"
] | 24 | 2018-05-10T19:56:14.000Z | 2022-02-16T19:10:57.000Z | mix.exs | rupurt/juice | 5bb77b55b288f5dd244046a19479815bac8d54e6 | [
"MIT"
] | 2 | 2021-03-27T02:23:46.000Z | 2021-04-06T16:45:53.000Z | mix.exs | rupurt/juice | 5bb77b55b288f5dd244046a19479815bac8d54e6 | [
"MIT"
] | 2 | 2018-07-01T13:41:21.000Z | 2021-03-25T10:09:10.000Z | defmodule Juice.MixProject do
use Mix.Project
def project do
[
app: :juice,
version: "0.0.3",
elixir: "~> 1.7",
package: package(),
description: description(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applica... | 20.139535 | 73 | 0.555427 |
4a68c0c520aa33a789bfee3538ab30e5f8f120c9 | 733 | exs | Elixir | test/assertions/map/have_key_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | test/assertions/map/have_key_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | test/assertions/map/have_key_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule Map.HaveKeyTest do
use ExUnit.Case, async: true
defmodule SomeSpec do
use ESpec, async: true
subject %{a: 1, b: 2}
context "Success" do
it do: should(have_key :a)
it do: should_not(have_key :c)
end
context "Error" do
it do: should_not(have_key :a)
it do: sho... | 22.212121 | 82 | 0.642565 |
4a68f472858179c98a4df2e740dca0122c9ab7b6 | 9,038 | ex | Elixir | lib/romeo/transports/tcp.ex | PDXware/romeo-fork | 886345070d42dc08a1d13c72f95188079188f0d5 | [
"MIT"
] | null | null | null | lib/romeo/transports/tcp.ex | PDXware/romeo-fork | 886345070d42dc08a1d13c72f95188079188f0d5 | [
"MIT"
] | null | null | null | lib/romeo/transports/tcp.ex | PDXware/romeo-fork | 886345070d42dc08a1d13c72f95188079188f0d5 | [
"MIT"
] | null | null | null | defmodule Romeo.Transports.TCP do
@moduledoc false
@default_port 5222
@ssl_opts [reuse_sessions: true]
@socket_opts [packet: :raw, mode: :binary, active: :once]
@ns_jabber_client Romeo.XMLNS.ns_jabber_client
@ns_component_accept Romeo.XMLNS.ns_component_accept
@type state :: Romeo.Connection.t
use Ro... | 28.24375 | 85 | 0.589622 |
4a68f75ed0e4d5e57e9236be91c90ae5eee97416 | 2,471 | exs | Elixir | rustler_tests/test/term_test.exs | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 889 | 2017-01-16T01:46:12.000Z | 2019-03-07T21:04:36.000Z | rustler_tests/test/term_test.exs | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 102 | 2017-01-15T21:14:52.000Z | 2019-03-08T15:28:07.000Z | rustler_tests/test/term_test.exs | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 55 | 2017-02-10T05:00:40.000Z | 2019-03-05T20:24:36.000Z | defmodule RustlerTest.TermTest do
use ExUnit.Case, async: true
test "term_debug" do
assert RustlerTest.term_debug(33) == "33"
assert RustlerTest.term_debug("hello world") == "<<\"hello world\">>"
assert RustlerTest.term_debug("饂") == "<<233,165,130>>"
assert RustlerTest.term_debug({:atom, :pair}) =... | 32.946667 | 90 | 0.611898 |
4a68f7fd89eb6a00533fca7fbd657ddb8506c2d4 | 1,109 | exs | Elixir | test/elixir_ecommerce/authorization_test.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 4 | 2020-05-29T03:33:02.000Z | 2021-08-21T23:01:48.000Z | test/elixir_ecommerce/authorization_test.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 2 | 2020-07-29T01:50:46.000Z | 2021-08-31T20:10:47.000Z | test/elixir_ecommerce/authorization_test.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 1 | 2022-03-21T18:13:21.000Z | 2022-03-21T18:13:21.000Z | defmodule ElixirEcommerce.AuthorizationTest do
use ExUnit.Case
import ElixirEcommerce.Authorization, except: [can: 1]
alias ElixirEcommerce.Product
alias ElixirEcommerce.User
def can("user" = role) do
grant(role)
|> read!(Product)
end
def can("admin" = role) do
grant(role)
|> all!(Produc... | 21.326923 | 56 | 0.660956 |
4a69021f0d42d29969aeb652a3fab32e57c616f9 | 798 | ex | Elixir | lib/lolpoints/application.ex | zekroTJA/lolpoints | 3956c048d8b3fdfae6b2fd9e709d030a6a5cb8bc | [
"MIT"
] | null | null | null | lib/lolpoints/application.ex | zekroTJA/lolpoints | 3956c048d8b3fdfae6b2fd9e709d030a6a5cb8bc | [
"MIT"
] | null | null | null | lib/lolpoints/application.ex | zekroTJA/lolpoints | 3956c048d8b3fdfae6b2fd9e709d030a6a5cb8bc | [
"MIT"
] | null | null | null | require Logger
defmodule LoLPoints.Application do
use Application
def start(_type, _argv) do
cfg_file = System.get_env("CONFIG_FILE") || "config.yml"
cfg = Conf.load!(cfg_file)
port = System.get_env("PORT") || cfg["webserver"]["port"] || 8080
port = if not is_integer(port) do
case Integer.... | 22.166667 | 69 | 0.595238 |
4a69125ef34a7438c60e5b86758fe20efeeb9bfe | 3,429 | exs | Elixir | bob/test/bob_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | bob/test/bob_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | bob/test/bob_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | defmodule BobTest do
use ExUnit.Case
test "stating something" do
assert Bob.hey("Tom-ay-to, tom-aaaah-to.") == "Whatever."
end
# @tag :pending
test "shouting" do
assert Bob.hey("WATCH OUT!") == "Whoa, chill out!"
end
# @tag :pending
test "shouting gibberish" do
assert Bob.hey("FCECDFCAA... | 23.979021 | 89 | 0.610674 |
4a69239bb296b4f35f299380fc60dd2eb0007b9b | 3,037 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/operation_metadata_v1_alpha.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/operation_metadata_v1_alpha.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/operation_metadata_v1_alpha.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... | 44.014493 | 166 | 0.702996 |
4a6925873e70f815fec5447cb671082c7422868d | 607 | ex | Elixir | src/looping.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | src/looping.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | src/looping.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | # cd("C:\\Users\\jdorr\\Desktop\\Dev\\ElixirDump\\src")
# c("looping.ex")
# M.main
defmodule M do
def main do
looping_stuff()
end
def looping_stuff() do
IO.puts "Sum: #{sum([1,2,3])}"
IO.puts "-------------------------------------------------------"
loop(5, 1)
IO.put... | 18.393939 | 74 | 0.398682 |
4a693454ebf5781fed89a8efa8a7ca22f8ed0a2d | 1,072 | ex | Elixir | api/test/support/conn_case.ex | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 11 | 2017-01-20T15:54:54.000Z | 2020-03-24T19:12:34.000Z | api/test/support/conn_case.ex | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 13 | 2017-02-07T21:45:36.000Z | 2017-04-13T17:38:08.000Z | api/test/support/conn_case.ex | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 9 | 2017-03-13T19:49:04.000Z | 2021-01-16T00:24:55.000Z | defmodule Api.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the databas... | 23.822222 | 65 | 0.697761 |
4a69354181e80c35c27eaf3c39bd47ba49966198 | 2,278 | ex | Elixir | lib/mix/lib/mix/tasks/loadpaths.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/lib/mix/tasks/loadpaths.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/loadpaths.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Tasks.Loadpaths do
use Mix.Task
@moduledoc """
Loads the application and its dependencies paths.
## Configuration
* `:elixir` - matches the current Elixir version against the
given requirement
## Command line options
* `--no-archives-check` - does not check archive
* `--no... | 27.780488 | 82 | 0.630378 |
4a694cc54e63f63cecbc9ad978f494b451f407a6 | 1,844 | ex | Elixir | lib/ohio_elixir_web/controllers/speaker_controller.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 7 | 2021-01-22T00:20:04.000Z | 2022-03-30T22:07:32.000Z | lib/ohio_elixir_web/controllers/speaker_controller.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 11 | 2021-10-05T03:59:28.000Z | 2022-03-20T21:54:44.000Z | lib/ohio_elixir_web/controllers/speaker_controller.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 3 | 2021-06-10T02:48:54.000Z | 2021-10-09T03:43:06.000Z | defmodule OhioElixirWeb.SpeakerController do
use OhioElixirWeb, :controller
alias OhioElixir.Events
alias OhioElixir.Events.Speaker
def index(conn, _params) do
speakers = Events.list_speakers()
render(conn, "index.html", speakers: speakers)
end
def new(conn, _params) do
changeset = Events.cha... | 29.269841 | 73 | 0.652386 |
4a695fb5471236e1ab893bd172e0fe5689dd2e39 | 1,135 | ex | Elixir | lib/cgrates_web_jsonapi/tariff_plans/tp_destination.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi/tariff_plans/tp_destination.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi/tariff_plans/tp_destination.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapi.TariffPlans.TpDestination do
use Ecto.Schema
import Ecto.Changeset
use EctoConditionals, repo: CgratesWebJsonapi.Repo
@attributes ~w[tpid tag prefix]a
use CgratesWebJsonapi.CsvImport, module: __MODULE__, attributes: @attributes
schema "tp_destinations" do
field :tpid, :strin... | 28.375 | 84 | 0.700441 |
4a696e6bf37ef74603a82173bfd01e955dea4161 | 1,190 | exs | Elixir | config/config.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | config/config.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | config/config.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# By default, the umbrella project as well as each child
# application will require this configuration file, ensuring
# they all use the same configuration. While one could
# configu... | 33.055556 | 68 | 0.742017 |
4a697e0b456c9d4b11874906b526345bfc1859ac | 2,130 | exs | Elixir | test/protobuf/protoc/generator/service_test.exs | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 209 | 2020-11-19T11:17:27.000Z | 2022-03-20T12:47:31.000Z | test/protobuf/protoc/generator/service_test.exs | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 101 | 2020-11-22T20:20:11.000Z | 2022-03-06T16:09:26.000Z | test/protobuf/protoc/generator/service_test.exs | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 35 | 2020-11-26T14:45:13.000Z | 2022-03-22T23:22:00.000Z | defmodule Protobuf.Protoc.Generator.ServiceTest do
use ExUnit.Case, async: true
alias Protobuf.Protoc.Context
alias Protobuf.Protoc.Generator.Service, as: Generator
test "generate/2 generates services" do
ctx = %Context{
package: "foo",
dep_type_mapping: %{
".foo.Input0" => %{type_name... | 34.354839 | 75 | 0.590141 |
4a6990ca505618e4921eb42ed42fc608eb950e9a | 4,713 | ex | Elixir | lib/chat_api_web/router.ex | sbacarob/papercups | 1a04e9d3a2833b379a3aaaabaae960247c081542 | [
"MIT"
] | null | null | null | lib/chat_api_web/router.ex | sbacarob/papercups | 1a04e9d3a2833b379a3aaaabaae960247c081542 | [
"MIT"
] | null | null | null | lib/chat_api_web/router.ex | sbacarob/papercups | 1a04e9d3a2833b379a3aaaabaae960247c081542 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.Router do
use ChatApiWeb, :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(ChatApiWeb.IPAddressPlug)
plug(:accepts, ["json"])
plu... | 37.110236 | 96 | 0.709315 |
4a699837e3638425658b00582afcd7c61d876411 | 2,450 | ex | Elixir | lib/console/runbooks/display/base.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | lib/console/runbooks/display/base.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | lib/console/runbooks/display/base.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.Runbooks.Display.Base do
defmacro __using__(_) do
quote do
import Console.Runbooks.Display.Base
def validate(structured_message),
do: validate(__MODULE__, structured_message)
end
end
def validate(schema, %{"_type" => "root", "children" => children} = root) when is_l... | 29.166667 | 104 | 0.651429 |
4a69d5d804d17cf1e9d80bddd53cfb0c12285167 | 2,406 | exs | Elixir | test/live_component_change_tracking_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2021-04-30T14:28:08.000Z | 2021-04-30T14:28:08.000Z | test/live_component_change_tracking_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | test/live_component_change_tracking_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule LiveComponentChangeTrackingTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
@endpoint Endpoint
alias Surface.CheckUpdated
defmodule ViewPassingAssignsMap do
use Surface.LiveView
data count, :integer, default: 0
data test_pid, :integer
d... | 26.733333 | 90 | 0.643807 |
4a69e4d01328fc81573be387885cd8b964ed08d8 | 197 | ex | Elixir | test/support/mocks/neko/shikimori/mock_client.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | test/support/mocks/neko/shikimori/mock_client.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | test/support/mocks/neko/shikimori/mock_client.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | defmodule Neko.Shikimori.MockClient do
@behaviour Neko.Shikimori.Client.Behaviour
def get_user_rates!(_user_id), do: []
def get_achievements!(_user_id), do: []
def get_animes!, do: []
end
| 24.625 | 44 | 0.736041 |
4a6a807609316b28065ce5451d67a9cc037190dc | 2,650 | ex | Elixir | clients/container/lib/google_api/container/v1/model/set_network_policy_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_network_policy_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_network_policy_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.166667 | 246 | 0.74 |
4a6a8e48c6ebeb9b632d6d772cb1026b568c1e7e | 5,450 | ex | Elixir | lib/holidefs.ex | Frayt-Technologies/holidefs | 4251d7efa754493d70cb8620f4e889692f143a5a | [
"MIT"
] | null | null | null | lib/holidefs.ex | Frayt-Technologies/holidefs | 4251d7efa754493d70cb8620f4e889692f143a5a | [
"MIT"
] | null | null | null | lib/holidefs.ex | Frayt-Technologies/holidefs | 4251d7efa754493d70cb8620f4e889692f143a5a | [
"MIT"
] | 1 | 2021-12-23T21:56:48.000Z | 2021-12-23T21:56:48.000Z | defmodule Holidefs do
@moduledoc """
Holdefs is a holiday OTP application for multiple locales that loads the
dates from definition files on the startup.
"""
alias Holidefs.Definition
alias Holidefs.Definition.Store
alias Holidefs.Holiday
alias Holidefs.Options
@type error_reasons :: :no_def | :inva... | 26.980198 | 92 | 0.624771 |
4a6a98826391ec86d2728895bbb990c37b2237da | 2,674 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.323529 | 162 | 0.738594 |
4a6aa5a9aceaf7f62d935a7d5af29889c683241a | 18,710 | exs | Elixir | test/phoenix_live_view/engine_test.exs | liveforeverx/phoenix_live_view | 19ed14d93d321eb85f07b29b05c3dd3954ac5972 | [
"MIT"
] | null | null | null | test/phoenix_live_view/engine_test.exs | liveforeverx/phoenix_live_view | 19ed14d93d321eb85f07b29b05c3dd3954ac5972 | [
"MIT"
] | null | null | null | test/phoenix_live_view/engine_test.exs | liveforeverx/phoenix_live_view | 19ed14d93d321eb85f07b29b05c3dd3954ac5972 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.EngineTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView.{Engine, Rendered}
def safe(do: {:safe, _} = safe), do: safe
def unsafe(do: {:safe, content}), do: content
describe "rendering" do
test "escapes HTML" do
template = """
<start> <%= "<escaped>" %>
... | 37.049505 | 99 | 0.531106 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.